UUID generator's v7 batch comes out in random order instead of time order
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 1
- Fork
- 9
- Merge trung bình
- 7 giờ 34 phút
- Pull request đã merge (30 ngày)
- 146
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codercops/toolbelt
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Cron explainer says "on weekdays" for `0 0 1-31 * 1-5`, but the next runs include weekendsCó thể đã có người làm @Saifjafri212213 đã nhận hôm nay. Đang mởbug hacktoberfest help wanted
codercops/toolbelt#329 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Invoice generator shows a subtotal of -$0.00 when the line items cancel outCó thể đã có người làm @shresthgoel77-png đã nhận hôm nay. Đang mởbug good first issue hacktoberfest
codercops/toolbelt#315 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
JSON formatter's "Did you mean" hint reads inside strings, so a missing comma near a URL says to remove commentsCó thể đã có người làm @kachamsiddarth đã nhận hôm nay. Đang mởbug good first issue hacktoberfest
codercops/toolbelt#314 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Base64 decode error points at the wrong character when the input has spaces or line breaksCó thể đã có người làm @Aaqibhafeezkhan đã nhận hôm nay. Đang mởbug good first issue hacktoberfest
codercops/toolbelt#310 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của codercops/toolbelt
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
braintrustdata/braintrust-sdk-javascript#2659 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
body-parser 2.3.0 in the published ai-dial-chat-bff image is vulnerable (CVE-2026-111181, HIGH)Có thể đã có người làm @illya-havsiyevych đã nhận hôm nay. Đang mởbug
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 87/100
epam/ai-dial-chat#9566 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
はさみアイコンを修正するĐang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
-
resource.reload() while params is in error switches the resource to 'idle' instead of retryingĐang mởarea: core
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày