Skip to content

feat(policy): let admins abandon changes - #140

Open
PiquelChips wants to merge 1 commit into
feat/permissions-policy-rightsfrom
feat/permissions-admin-abandon
Open

PiquelChips wants to merge 1 commit into
feat/permissions-policy-rightsfrom
feat/permissions-admin-abandon

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

Only a change's creator could abandon it, so a change nobody else may give up could only wait for its creator.

core.abandon now also counts from an admin of the policy in force. Policy::authorizes adds them to what core allows, and the landing queue, origin abandon and origin show all count abandonments through it. Who may issue a reserved kind is decided from a RevisionView, where the revisions it needs are read, so more than a store can answer it: the write checks above read a batch being put through it.

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: 8adecd3f-ef97-43eb-a0da-00dd22c0a33c
Commits

Reviewing files that changed from the base of the PR and between 54650c0 and fa28789.

Files selected for processing: 6

  • apps/origin-src/src/annotations/mod.rs
  • apps/origin-src/src/policy.rs
  • apps/origin-src/src/queue/session.rs
  • apps/origin-src/src/queue/tests/changes.rs
  • apps/origin-src/src/workspace/mod.rs
  • apps/origin-src/tests/cli.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/permissions-admin-abandon branch 3 times, most recently from c766920 to 69647ae Compare November 22, 2026 18:54
Only a change's creator could abandon it, so a change nobody else may
give up could only stay in the way, or wait for its creator.

`core.abandon` now also counts from an `admin` of the policy in force:
`Policy::authorizes` adds them to what core allows, and the landing
queue, `origin abandon` and `origin show` all count abandonments by it.
Who may issue a reserved kind is decided from a `RevisionView`, where
the revisions it needs are read, so more than a store can answer it.
@PiquelChips
PiquelChips force-pushed the feat/permissions-admin-abandon branch from 69647ae to fa28789 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