Skip to content

fix(id/web): classify_tag only treats .archive.{unix-ts} names as archives (#2793) - #2794

Merged
dezren39 merged 1 commit into
mainfrom
creator-a/2793-archive-classify
Oct 30, 2026
Merged

dezren39 merged 1 commit into
mainfrom
creator-a/2793-archive-classify

Conversation

@dezren39

@dezren39 dezren39 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Fixes #2793

classify_tag returned FileKind::Archive for any filename containing .archive., discarding the result of parsing the suffix as a unix timestamp. An ordinary file like notes.archive.txt therefore rendered with an archive: ? badge, linked to /hash/{hash} instead of /edit/{name}, sorted after every primary file, and was excluded from hash_to_primary parent resolution.

This applies the same rule #810 applied to the auto- prefix in the same function (#809): only a suffix that actually parses counts. No producer mints a non-numeric archive suffix — free_archive_name always formats a u64 (fileops.rs).

Verified on the laptop (pinned 1.99 toolchain): cargo test --features web classify_tag — 8 passed, 0 failed, including the rewritten #2793 regression test.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner October 30, 2026 17:53
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T17:55:08.187750Z 20d2a19 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39 dezren39 added kind/bug Something isn't working (prefixed form of the classic bug label) app/id Package/app: id (pkgs/ or apps/ in this repo) source/creator Filed by the new-issue-creator job priority/low Nice to have; do when convenient effort/xs Trivial: expected under 30 minutes of work labels Oct 30, 2026
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dezren39
dezren39 merged commit c90fcbc into main Oct 30, 2026
1 check failed
@dezren39
dezren39 deleted the creator-a/2793-archive-classify branch October 30, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app/id Package/app: id (pkgs/ or apps/ in this repo) effort/xs Trivial: expected under 30 minutes of work kind/bug Something isn't working (prefixed form of the classic bug label) priority/low Nice to have; do when convenient source/creator Filed by the new-issue-creator job

Projects

None yet

1 participant