SUBMIT-752 Entity - Display Assessment Early Engagement Card on Projects Page#808
Open
leodube-aot wants to merge 3 commits intobcgov:developfrom
Open
SUBMIT-752 Entity - Display Assessment Early Engagement Card on Projects Page#808leodube-aot wants to merge 3 commits intobcgov:developfrom
leodube-aot wants to merge 3 commits intobcgov:developfrom
Conversation
leodube-aot
commented
Mar 3, 2026
Comment on lines
31
to
+37
| account_project_works = db.relationship( | ||
| 'AccountProjectWork', | ||
| primaryjoin='AccountProjectWork.account_project_id==AccountProject.id', | ||
| lazy='select', | ||
| cascade='all, delete', | ||
| passive_deletes=True) | ||
| passive_deletes=True, | ||
| back_populates='account_project') |
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Ticket: SUBMIT-752 Entity - Display Assessment Early Engagement Card on Projects Page
Description
Frontend
Projectcomponent slightly to move most of the logic intoProjectSubmissionsCard. This allows us to more easily reuse the cards on the projects page for different package types in the future (including IPD).Backend
TrackWork,TrackPhaseandAccountProjectWorkmodelsDatabase:
REQUESTED_BY_EAOtopackagestatusenum.Note: Until the track sync is complete, this must be manually tested by creating the necessary database entries. The sample data I used to test this PR can be found here: queries.sql
Sample API response
GET /api/projects/accounts/142This endpoint was updated to include
account_project_works. The rest of the response remains unchanged.[ { "account_id": 142, "account_project_works": [ { "id": 3, "work": { "current_phase": { "ea_act_id": 3, "id": 2, "legislated": true, "name": "Early Engagement", "number_of_days": 90, "sort_order": 2, "work_type_id": 1, "work_type_name": "ASSESSMENT" }, "current_phase_id": 2, "id": 1, "project_id": 187, "title": "Sample Work Title", "work_state": "IN_PROGRESS" }, "work_id": 1 } ], "id": 164, "packages": [ // unchanged... ], "project": { // unchanged... }, "project_id": 187 } ]Screenshots
