Skip to content

[claude] Make regenerate-snapshot admin-only - #3006

Merged
myieye merged 1 commit into
developfrom
admin-only-regenerate-snapshot
Nov 19, 2026
Merged

myieye merged 1 commit into
developfrom
admin-only-regenerate-snapshot

Conversation

@myieye

@myieye myieye commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Only site admins can call /api/fw-lite/sync/regenerate-snapshot now; it rewrites the merge base FwHeadless syncs against, and no client calls it.

🤖 Generated with Claude Code

It rewrites the merge base FwHeadless syncs against, so project editors and managers should not be able to call it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the 📦 Lexbox issues related to any server side code, fw-headless included label Nov 19, 2026
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The RegenerateProjectSnapshot endpoint now has the AdminRequired attribute. Its route, scope requirement, parameters, and implementation are unchanged.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Possibly related PRs

Suggested reviewers: hahn-kev, rmunn

Merge Risk: Minimal · up to d7e17

The snapshot regeneration endpoint is now limited to site admins, which protects the sync merge base from project editors and managers. No merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title states the main change: the regenerate-snapshot endpoint is restricted to admins. The raw summary confirms that RegenerateProjectSnapshot gained the [AdminRequired] attribute and nothing els…
Description check Passed The description states that only site admins can call /api/fw-lite/sync/regenerate-snapshot and explains why: the endpoint rewrites the merge base that FwHeadless syncs use. This matches the single-at…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: the regenerate-snapshot endpoint is restricted to admins. The raw summary confirms that RegenerateProjectSnapshot gained the [AdminRequired] attribute and nothing else changed. The '[claude]' prefix is a tag, not a substantive part of the title, and does not make the title misleading.

Full details: Description check

Explanation

The description states that only site admins can call /api/fw-lite/sync/regenerate-snapshot and explains why: the endpoint rewrites the merge base that FwHeadless syncs use. This matches the single-attribute change to SyncController.cs in the raw summary.

  • 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

A rabbit checks the gate,
AdminRequired marks the way.
The route stays as it was,
The scope and work remain.
I nibble greens and hop away.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 63525a20-e167-44b8-834a-d08b0e2c3002
Commits

Reviewing files that changed from the base of the PR and between 322d78d and d7e172d.

Files selected for processing: 1

  • backend/LexBoxApi/Controllers/SyncController.cs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@myieye
myieye merged commit a629fa9 into develop Nov 19, 2026
26 checks passed
@myieye
myieye deleted the admin-only-regenerate-snapshot branch November 19, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📦 Lexbox issues related to any server side code, fw-headless included

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant