GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — id: show file origin node + upload time in listings (#4973) by dezren39 · Pull Request #5191 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 41 minutes. View limit details
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 1be45f87f7
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…, offline list metadata, legacy origin guard, web refresh params, 4-col test assertions (#4973)
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 614484149e
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| List { | ||
| /// All names as (hash, name) pairs. | ||
| items: Vec<(Hash, String)>, | ||
| /// All names with their origin node and upload time (#4973). | ||
| items: Vec<ListEntry>, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Add the required dated design record for the listing API
This changes the List wire payload, CLI output contract, and file-provenance semantics without the dated design record required by pkgs/id/AGENTS.md for interface and system-behavior changes. Repository-wide searches of documentation, including doc/, planning/, and thoughts/, found no corresponding origin/upload-time design document. Add the dated document prescribed by docs/DOCUMENTATION_PROTOCOL.md, recording the intent and rationale for the compatibility and legacy-provenance decisions; source docstrings do not fulfill that requirement.
AGENTS.md reference: pkgs/id/AGENTS.md:L159-L168
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| req.name.as_bytes(), | ||
| b"origin", | ||
| Some(state.node_id.as_bytes()), |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Preserve recorded provenance on archive aliases
For a newly uploaded file with recorded provenance, saving it in the web editor creates an archive through archive_original_tag, which only claims a blob name and never copies the source's metadata (routes.rs:2532–2580). The new listing consequently reports that archived version's origin as unknown and excludes it when filtering by its known origin node. FileOps::rename(..., archive=true) has the same omission for archived_original, unlike replacement archives, which already transfer metadata. Snapshot the source's recorded origin and upload timestamp onto these archive aliases so newly archived files do not lose known provenance.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if let Some(ref origin) = origin_filter { | ||
| if origin == "unknown" { | ||
| files.retain(|f| f.origin_node.is_none()); | ||
| } else { | ||
| files.retain(|f| f.origin_node.as_deref() == Some(origin.as_str())); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Include origin in the file-list deduplication key
When two separately named files contain identical bytes and have the same custom name display tag and user tags, but were uploaded by different nodes, get_file_list collapses them before this origin filter runs: its deduplication key contains only hash, display name, and user tags (routes.rs:990–1000), and this change explicitly excludes origin from user tags. Filtering by the discarded file's origin therefore returns no matching file even though it exists with that recorded origin. Include origin in the deduplication key, or apply the origin constraint before deduplication, so files with distinct displayed provenance remain discoverable.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.