bcgov / bcgov/wps

HFI Calculator: Disable editing of previous prep periods

Open
#2,063 0 comments 0 reactions 0 assignees View on GitHub
User Story
Dominant language
Python
Stars
65
Forks
11
Avg merge
21h 25m
Merged PRs (30d)
70

Description

**As a** *Prep Planner* **I want** *to be able to view previous prep periods without being able to edit them* **So That** *I can easily understand that I've switched to a view-only prep period, where I'm only retrieving historical values*

**Additional Context**
- Editing only makes sense for current a future prep periods.

**Acceptance Criteria**
- [ ] Given I switch to a prep period where the date range is in the past, Then I am unable to edit fields regardless of permissions

**Definition of Done**
- Ready to Demo in Sprint Review
- Does what I have made have appropriate test coverage?
- Documentation and/or scientific documentation exists and can be found
- Peer Reviewed by 2 people on the team
- Manual testing of all PRs in Dev and Prod
- Merged

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Locate the HFI Calculator's prep-period fields, date-range handling, and permission checks, then verify that a past period cannot be edited regardless of permissions and add appropriate test coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
fastapi, python, react
Domain
full-stack
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.