Repository navigation
A base can follow a gitlab.com project's issues and, when switched on, its merge requests (#1327) - #1508
Merged
WaylandYang merged 3 commits intoNov 16, 2026
Conversation
…, its merge requests, each as one document whose history comes from resource events (deeplethe#1327) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Quintin Botes <quintinbotes@outlook.com>
…that can see it does not hand it to every viewer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
WaylandYang
approved these changes
Nov 16, 2026
WaylandYang
left a comment
Contributor
There was a problem hiding this comment.
Thanks, this is careful work: the shared checkpoint is handled correctly and the clear-on-edit guard closes a real gap. One thing I fixed on the branch in 0ff5e4f: with a token that can see them, GitLab also lists confidential issues (public projects included), and they would have become readable by every viewer of the base, so they are now listed (checkpoint and re-read unchanged) but not written, with a test. And yes, please open the issue for the same checkpoint gap on GitHub's repo / include_pull_requests. Merging.
This was referenced Nov 16, 2026
Closed
Merged
WaylandYang
pushed a commit
to rollroyces/utopia
that referenced
this pull request
Nov 18, 2026
Keeps dev's reads_by_timestamp for the three ticket sources (deeplethe#1508 added gitlab_issues) and the custom checkpoint from this branch beside it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Second of the two PRs agreed in #1327, on the shared ticket document from #1378 and as 0013 decision 7 describes it.
What it does
gitlab_issues. Each issue is one document; each merge request is one too wheninclude_merge_requestsis on (default off, asinclude_pull_requestsis for GitHub). A merge request has!<iid>in its heading and "Merged on" beside "Closed on".## Historycomes fromresource_state_events,resource_label_eventsandresource_milestone_events, never from system notes, so a change is not told twice.## Commentsholds non-system notes only.updated_after,order_by=updated_at,sort=asc, a run stops only at a timestamp boundary, and a second listing pass checks nothing moved.updated_afteris inclusive on gitlab.com (checked 2026-11-14), so rows at or before the checkpoint are skipped.doc_timeare cut to the second. The checkpoint keeps the milliseconds, otherwise a later ticket in the same second would be read again every round.project, or switching merge requests on, clears the checkpoint so the older tickets are read; unchanged ones dedupe. A sync still running under the old config is failed in the same transaction, because with a NULL checkpoint the clear alone would not stop it committing.Not in this PR
repoandinclude_pull_requests: the checkpoint survives the edit. I kept the fix togitlab_issuesand can open an issue for the other two.gitlab_repodoes today.Why it is one PR
About 1,120 lines of code and tests (1,427 with the fixture, golden file and docs). The kind, its reader, the checkpoint wiring and the dialog only work together: without the enum variant and the store's kind list the checkpoint never saves, and without the dialog the kind cannot be created. The renderer was already split out as #1378.
Fixture
Recorded with a
read_apitoken from https://gitlab.com/QuintinBotes/utopia-gitlab-fixture and trimmed to the fields read: two issues (one closed and reopened twice with label and milestone events, one closed) and two merge requests (one merged, one closed unmerged). The merged one carries a system note, which the render test asserts is left out.What was run
macOS (Apple silicon), on f33f9fc plus this commit, Postgres 17.12 with pgvector 0.8.7 (the compose file uses the pg16 image),
UTOPIA_DATABASE_URLset andUTOPIA_TEST_REQUIRE_DB=1:cargo fmt --all -- --check: cleancargo clippy --workspace --all-targets -- -D warnings: cleancargo test --workspace --no-fail-fast: 1853 passed, 0 failed, 6 ignored, 47 test binariespnpm buildinweb: passes;pnpm test: 343 passed in 49 filesNew tests: render from the recording (issue, merged and closed merge request); the shared checkpoint across both lists; a ticket that moves between the two listing passes; a database-backed sync over the recording; GitLab added to the 0072 checkpoint tests (1,001 equal-time tickets, failed listing, failed write, recovery). The race test was checked by disabling the guard: it fails without it.
ticket_render_golden.jsongained the four GitLab tickets; no GitHub or Jira line changed.🤖 Generated with Claude Code