Skip to content

feat: Disable new versions if there is already a draft #2453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2025

Conversation

dhaselhan
Copy link
Collaborator

  • Add is newest_flag to report chain to confirm whether newer versions exist, but dont return their data
  • Use this flag to control the supplemental and assessment buttons with dialogs + text

Copy link

github-actions bot commented Apr 10, 2025

Backend Test Results

675 tests   675 ✅  2m 36s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit 69466dc.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 10, 2025

Frontend Test Results

  1 files  152 suites   1m 7s ⏱️
635 tests 615 ✅ 20 💤 0 ❌
637 runs  617 ✅ 20 💤 0 ❌

Results for commit 69466dc.

♻️ This comment has been updated with latest results.

@dhaselhan dhaselhan force-pushed the feat/daniel-disable-double-draft-2376 branch 3 times, most recently from aa131b7 to f3379c3 Compare April 10, 2025 20:18
Copy link
Collaborator

@AlexZorkin AlexZorkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just want to confirm that one point.

report.compliance_report_group_uuid
)

is_newest = len(compliance_report_chain) - 1 == report.version
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice one 👍

title={
reportData.isNewest
? ''
: 'Government has a reassessment in progress.'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just want to confirm that business area is ok with telling suppliers this is the case?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep!

@dhaselhan dhaselhan force-pushed the feat/daniel-disable-double-draft-2376 branch 2 times, most recently from ebf32f9 to 135cf3a Compare April 15, 2025 17:42
* Add is newest_flag to report chain to confirm whether newer versions exist, but dont return their data
* Use this flag to control the supplemental and assessment buttons with dialogs + text
@dhaselhan dhaselhan force-pushed the feat/daniel-disable-double-draft-2376 branch from 135cf3a to 69466dc Compare April 15, 2025 17:43
@dhaselhan dhaselhan merged commit 8dc71b4 into develop Apr 15, 2025
12 checks passed
@dhaselhan dhaselhan deleted the feat/daniel-disable-double-draft-2376 branch April 15, 2025 17:57
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.

2 participants