Skip to content

refactor(shared): move events, landings and target heads into origin-shared - #115

Open
PiquelChips wants to merge 1 commit into
feat/server-shared-policyfrom
feat/server-shared-events
Open

PiquelChips wants to merge 1 commit into
feat/server-shared-policyfrom
feat/server-shared-events

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

Events, the outcome of a landing and where a target is are what the API will answer with, so the clients reading them need the types too.

They move to origin-shared, unchanged:

RecordId now displays as revision:<id> and parses back, which Subject used to spell out. The queue's file format for waiting landings becomes PendingFile, since Pending is no longer the queue's own type.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 63ad034d-3bfd-423c-b623-bdd59745e0bd
Commits

Reviewing files that changed from the base of the PR and between a4152e3 and aa82fb1.

Files selected for processing: 19

  • apps/origin-src/benches/land.rs
  • apps/origin-src/benches/store.rs
  • apps/origin-src/src/cli.rs
  • apps/origin-src/src/events.rs
  • apps/origin-src/src/oplog.rs
  • apps/origin-src/src/queue/mod.rs
  • apps/origin-src/src/queue/pending.rs
  • apps/origin-src/src/queue/session.rs
  • apps/origin-src/src/queue/tests/changes.rs
  • apps/origin-src/src/queue/tests/mod.rs
  • apps/origin-src/src/store/mod.rs
  • apps/origin-src/src/targets.rs
  • apps/origin-src/src/workspace/land.rs
  • apps/origin-src/src/workspace/ops.rs
  • crates/origin-shared/src/event.rs
  • crates/origin-shared/src/landing.rs
  • crates/origin-shared/src/lib.rs
  • crates/origin-shared/src/object/statement.rs
  • crates/origin-shared/src/target.rs
  • 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

@PiquelChips
PiquelChips added this pull request to stack #165 November 22, 2026 14:59
@PiquelChips
PiquelChips force-pushed the feat/server-shared-events branch 2 times, most recently from 33f7ab6 to 7799187 Compare November 22, 2026 18:54
…shared

Events, the outcome of a landing and where a target is are what the API
will answer with, so the clients that read them need the types too.
`Event`, `EventKind`, `Subject`, `Filter` and `Page` move to
`origin-shared`'s new `event` module, `Proposal`, `Landing`, `Pending`
and `Blocked` to its `landing` module, and `Head` next to `TargetName`.

The moves change no behaviour. `RecordId` now displays as
`revision:<id>` and parses back, which `Subject` used to spell out, and
the queue's file format for waiting landings becomes `PendingFile`, since
`Pending` is no longer the queue's own type.
@PiquelChips
PiquelChips force-pushed the feat/server-shared-events branch from 7799187 to aa82fb1 Compare November 22, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant