Skip to content

#4408-schema-changes - #4456

Merged
wavehassman merged 6 commits into
developfrom
#4409-schema-changes
Sep 15, 2026
Merged

wavehassman merged 6 commits into
developfrom
#4409-schema-changes

Conversation

@Steph375

@Steph375 Steph375 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Changes

Just adding an activationBufferDays to Organization in schema also snapshot fields for cr and timelineChangeFromUnmarkedBlocker for work package proposed changes.

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No yarn.lock changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #4409

@Steph375
Steph375 requested a review from wavehassman September 8, 2026 22:34
@Steph375
Steph375 marked this pull request as ready for review September 8, 2026 22:34
@Steph375 Steph375 self-assigned this Sep 9, 2026
@@ -0,0 +1,7 @@
-- AlterTable
ALTER TABLE "Change_Request" ADD COLUMN "snapshotBlockingCount" INTEGER,
ADD COLUMN "snapshotDuration" INTEGER,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could we not pull the duration and start date from the wbs element associated with the change request if the CR is not changing count or duration? If it is changing count or duration, shouldn't that be listed in the proposed changes or activation cr?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I think the issue is more that we need the start date/duration from when the CR was created, not whatever the WBS element has later.

Like if an Activation CR changes a WP startDate from Sept 1 → Sept 15, once it gets approved reviewActivationChangeRequest updates Work_Package.startDate to Sept 15. So if we pull it from the WBS element after that, we’ve lost the Sept 1 value. The proposed changes / Activation_CR only has the new value too, so that wouldn’t give us the original one.

And then for CRs that aren’t changing start date or duration, like Budget or most Standard CRs, we still need those values for the triage score. So I think we need to save them on the CR when it’s created so they stay tied to that point in time. Let me know your thoughts.

Comment thread src/backend/src/prisma/schema.prisma Outdated
wbsProposedChangesId String? @unique
wbsProposedChanges Wbs_Proposed_Changes? @relation("wbsProposedChanges", fields: [wbsProposedChangesId], references: [wbsProposedChangesId])
snapshotBlockingCount Int?
snapshotStartDate DateTime?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this should prob be db.Date

@wavehassman
wavehassman merged commit e4b72d0 into develop Sep 15, 2026
4 checks passed
@wavehassman
wavehassman deleted the #4409-schema-changes branch September 15, 2026 00:53
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.

[Change Requests] - Add activationBufferDays Schema Change

2 participants