UUID generator's v7 batch comes out in random order instead of time order
Los mantenedores suelen responder en 1 día
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Pick UUID v7 in the UUID generator, set the quantity to 5 and click Generate. They're usually made in the same millisecond, so they share the timestamp prefix, and everything after it is random. The list comes out in random order. The tool calls v7 "time-ordered", and RFC 9562 (section 6.2) asks that UUIDs generated in a batch keep their creation order too.
generate (app/(tools)/uuid-generator/UuidGeneratorClient.tsx, lines 84 to 105) calls uuidV7(Date.now(), random) for each UUID and shows them as they come.
What to do
- Keep a v7 batch in ascending order. Sorting the batch before
setGeneratedis enough. A counter in the bits after the timestamp (method 1 in RFC 9562, section 6.2) is the stricter option, if you'd rather do that.
Where to look
app/(tools)/uuid-generator/UuidGeneratorClient.tsx:generate(lines 84 to 105)app/(tools)/uuid-generator/UuidGeneratorClient.test.tsx. Careful: itsgetRandomValuesmock (lines 20 to 24) fills each UUID with a bigger value than the last, so a test that uses it passes even without the fix. FixDate.nowto one value and make the random bytes go down from one UUID to the next.
Acceptance criteria
- A v7 batch is in ascending order, even when every UUID has the same millisecond
- v4 batches work as before
- A test that fails on the current code
-
npm run lint,npm run testandnpm run buildpass
Want to work on this? Comment below and I'll assign it to you. Please take one issue at a time, branch off develop, and open your PR against develop with Closes #316 in the description.
- Lenguaje dominante
- TypeScript
- Estrellas
- 1
- Forks
- 9
- Merge medio
- 7 h 34 min
- PR fusionados (30 d)
- 146
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de codercops/toolbelt
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Cron explainer says "on weekdays" for `0 0 1-31 * 1-5`, but the next runs include weekendsPosiblemente ocupada @Saifjafri212213 la tomó hoy. Abiertobug hacktoberfest help wanted
codercops/toolbelt#329 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Invoice generator shows a subtotal of -$0.00 when the line items cancel outPosiblemente ocupada @shresthgoel77-png la tomó hoy. Abiertobug good first issue hacktoberfest
codercops/toolbelt#315 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
JSON formatter's "Did you mean" hint reads inside strings, so a missing comma near a URL says to remove commentsPosiblemente ocupada @kachamsiddarth la tomó hoy. Abiertobug good first issue hacktoberfest
codercops/toolbelt#314 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Base64 decode error points at the wrong character when the input has spaces or line breaksPosiblemente ocupada @Aaqibhafeezkhan la tomó hoy. Abiertobug good first issue hacktoberfest
codercops/toolbelt#310 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de codercops/toolbelt
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
braintrustdata/braintrust-sdk-javascript#2659 ·
Los mantenedores suelen responder en 1 día
-
body-parser 2.3.0 in the published ai-dial-chat-bff image is vulnerable (CVE-2026-111181, HIGH)Posiblemente ocupada @illya-havsiyevych la tomó hoy. Abiertobug
Dificultad 1/5 1-3 horas Aptitud para principiantes 87/100
epam/ai-dial-chat#9566 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día
-
はさみアイコンを修正するAbiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
-
resource.reload() while params is in error switches the resource to 'idle' instead of retryingAbiertoarea: core
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día