Harvester-role Review Entries with project setting#4260
Conversation
|
|
fa0a5e8 to
c3bdb03
Compare
|
Claude's analysis of the permissions for this pr: Backend Controller Permission Changes NeededRoot causeThe branch allows Harvesters (who have only What doesn't need changing
Three changes needed in UserEditController.cs
These three are used by the goal-tracking machinery any time a user starts or saves progress on a goal. Harvesters need them to track their ReviewEntries sessions. Project-setting enforcementThe Open questionThe |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4260 +/- ##
==========================================
+ Coverage 75.93% 75.95% +0.02%
==========================================
Files 303 304 +1
Lines 11352 11372 +20
Branches 1404 1405 +1
==========================================
+ Hits 8620 8638 +18
- Misses 2330 2332 +2
Partials 402 402
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@coderabbitai full review |
This comment was marked as outdated.
This comment was marked as outdated.
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThis PR implements a new "Harvester Review Entries" feature that allows project administrators to conditionally grant Harvesters limited access to Review Entries functionality. The implementation spans backend model changes, frontend UI controls, permission gating logic, and documentation updates. ChangesHarvester Review Entries Feature
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
jasonleenaylor
left a comment
There was a problem hiding this comment.
@jasonleenaylor reviewed 17 files and all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on imnasnainaec).
Agent-Logs-Url: https://github.com/sillsdev/TheCombine/sessions/d3a2f77a-33cf-42be-a1b3-7f658daa7f95 Co-authored-by: imnasnainaec <6411521+imnasnainaec@users.noreply.github.com>
57fdeed to
2ef17b8
Compare
2ef17b8 to
1f74975
Compare
jasonleenaylor
left a comment
There was a problem hiding this comment.
@jasonleenaylor reviewed 5 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on imnasnainaec).
imnasnainaec
left a comment
There was a problem hiding this comment.
@imnasnainaec reviewed all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on copilot[bot]).
jasonleenaylor
left a comment
There was a problem hiding this comment.
@jasonleenaylor made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on copilot[bot]).
imnasnainaec
left a comment
There was a problem hiding this comment.
@imnasnainaec resolved 1 discussion and dismissed @coderabbitai[bot] from a discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on copilot[bot]).
Allows Harvesters limited access to Review Entries when enabled by an Administrator via a new project setting (off by default). Harvesters can update pronunciations and flags but cannot edit or delete entries.
Backend
HarvesterReviewEntriesEnabled(OffOnSetting, defaultOff) toProjectmodel (constructor +Clone())Frontend — Types & API
harvesterReviewEntriesEnabled: OffOnSettingto the generatedProjectinterface andnewProject()factoryFeature Behavior
harvesterReviewEntriesEnabled === On(detected by havingWordEntrybut notMergeAndReviewEntriespermission)Project Settings
ProjectHarvesterReviewEntriescomponent (On/Off select with tooltip) added to the Basic Settings tab, visible only to AdministratorsSetting.HarvesterReviewEntriesadded to the settings enum and test helper mapsDocumentation
project.md: Updated Harvester role description; addedHarvester Review Entriessetting sectiongoals.md: Added note on Harvester-limited Review Entries accessThis change is
Summary by CodeRabbit
New Features
Documentation
Tests