Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Should we allow creation of participants with uuids provided by the client?

Abierto
#130 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
elixir
Área
api, backend

Línea de trabajo

Comienza leyendo issue #128 y el comportamiento actual de participant upsert durante la creación de delegaciones y votaciones. Aclara si se deben aceptar las participant UUIDs proporcionadas por el cliente y documenta las decisiones sobre la seguridad de los identificadores, las UUIDs de solo lectura y los identificadores efímeros.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

This has come up during investigation of #128, and needs further discussion:

One of the reasons we decided to use uuids as ids is to enable passing around of identifiers to/from clients and other services, and we're supporting for pre-existing resources in our system - votes, delegations and participants already persisted in the database.

Currently we support upserts of participants on delegation and voting creation based on emails provided by the client.

Another potential scenario is when the client already generates uuids for their participants (for which they're the source the truth), and submits that to us instead of an email. For instance, when creating a delegation, submitting delegator_id and delegate_id instead of a delegator_email and delegate_email. This could be a way to improve the privacy of the participant in our system. We'd only know their client-side id.

Questions raised so far:

  • YAGNI?
  • any security issues with passing around a direct db identifier like that?
  • in some instances clients will create a view-only uuid, and sometimes that's ephemeral. How do we handle that?
Lenguaje dominante
Elixir
Estrellas
17
Forks
3
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de liquidvotingio/api

Todos los issues de liquidvotingio/api

Issues similares

Más issues de Elixir

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.