Repository navigation
fix(import,web): imported items keep their authors, dates, threads, verdicts and diffs (FG-6) - #147
Merged
Merged
Conversation
…ase and fork head, thread before state (FG-6 WIP) An item whose source comment count is more than the since window returned is read in full (L-05). Long bodies and release notes are cut at a paragraph, line or word boundary, open code is closed, and a note links the full text (L-06, L-74). Release notes open with who published it and when (L-04). A mirrored PR's body names its base commit and a fork's head branch (L-36, L-37). Comments and reviews are written before the close or merge that followed them (L-46). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…se and head (FG-6 WIP) A trusted mirror's imported issue, PR, comment and review show the original author as text and the original date, tagged mirrored (L-04). Reviews show their source verdict as not counted here (L-45). A closed PR says wanted to merge (L-76), and a mirrored PR names its fork head (L-37) and is diffed from the base commit its source recorded, else its head's parent with a note, never an error (L-36). Releases show who published them and when. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…-6 notes line until then Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
One pass closes code, a match builds the PR origin line, full_thread serves both thread paths, fork detection is case-insensitive, Byline and ItemAuthor share one author choice, pullSpec takes the parsed base, and the timeline's comment verb and review provenance read plainly. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ance quote The browser QA on the fd mirror showed the origin line folded into the provenance sentence. An empty quote line now separates them, and the web reader accepts either form. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Imported PRs are diffed from the merge base of the source's recorded base and the head (GitHub's base.sha is the branch tip, not the merge base), and a stopped or failed search falls back like any PR, with a link to the source diff. GitLab reads merged and closed MRs once more for diff_refs, and a fork needs both project ids to differ. A refused comment no longer skips the state. An imported PR's source head label beats the mirror ref. Undated releases write no line. close_code handles ~~~ and long fences, double-backtick spans and escaped backticks. PRs whose line comments outnumber the window are read in full, and imported line comments and replies show the original author. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Warning Review limit reachedNext included review available in 19 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (31)
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. Comment |
…tever its fence The closer for a long fence or span run could exceed the 5 bytes reserved, and the text overflowed the 5120-byte field: the write refused, the item skipped and the cursor stuck. The cut now shrinks until text, closer and note fit, with a test for fences and spans of 3 to 200. Also removes the unreachable search-stopped branch and a stale comment (review). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FG-6 (imported data fidelity) from the dash-ux QA sweep: L-04, L-05, L-06, L-36, L-37, L-45, L-46, L-74, L-76 (
dash-forge-qa/evidence/dash-ux/LEDGER.md). This PR changes no contracts. Where the schema has no field, the importer writes a provenance line into the body or notes, and the web reads it. The web believes that line, and anyimportedrecord, only when the document's signer is the repo owner or a current maintainer (trustedOrigin, the same trust set as the mirror note and issue numbering). The proper fields are proposed for the fresh registration indocs/design/release-asset-manifest.md§4:release.imported, andimported.baseOid/headLabelon PRs.<time>element with the exact time on hover, plus a mirrored tag. Releases open their notes with> Published on github.com by @x on YYYY-MM-DD, and the release card and rail show that date.sincewindow returned is re-read in full. A PR whose detailreview_commentscount exceeds the window's line comments is re-read too.fit_textcuts at a paragraph, line or word boundary and closes open code: ``` and ~~~ fences of any length, N-backtick spans, and escaped backticks. A note links the full text on bodies and release notes.> Base <oid> · head …). The web tries it first as a merge-base candidate. GitHub'sbase.shais the branch tip, so the merge base is taken, not the raw tip. Otherwise it falls back to the head's parent with a note and a link to the source diff, never an error. GitLab re-reads merged and closed MRs once fordiff_refs.base_sha.owner:branch), in preference to the mirror'srefs/mirror/pull/N/head.state_after).Live proof (moutai, 1.556 DASH of the 2 DASH cap; moutai-disk 78.5%)
The mirror is
sharkdp/fd, imported into a fresh repo (fd-fg6-2f5ead2d): code, releases and labels, then issues and PRs with a 30-day--statewindow. I checked it in a browser on a local build of this branch, with the build SHA verified. Screenshots are indash-forge-qa/evidence/impl/fix-import-fidelity-fg6/.Tests
every_kind_of_open_code_is_closed);an_item_whose_window_missed_comments_is_read_in_full);diff_refsand fork detection;state_follows_the_thread_even_past_a_refused_comment).Bylineand date-only times;loadPullComparison: the source base as a merge-base candidate (the moved-tip case, with no revert of base-branch changes; this test fails on the old code), and the parent fallback for imported PRs.cargo clippy --workspace --all-targets -D warnings,cargo test -p forge-import -p forge-core -p dg, vitest (2,800+), tsc and eslint are all green.Reviews
cd34dd57/fc72f748: merge-base from the source base, GitLabdiff_refs, the state after an item error, date-only release times,close_coderobustness, and more. Item 11 was left as is on purpose; the wipe makes it moot.A re-import applies this to existing mirrors. The showcase will be re-imported after the wipe, not before.
🤖 Generated with Claude Code