You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Removing evidence from promise does not update promise #75
When inspecting and editing the promise I noticed that there was an area titled "Linked Evidence ID's" and it looks like the Bill C202 is still included in the linked evidence. I've since tried to remove it to see if it effects anything on the promises page here: https://www.buildcanada.com/promise/LPC_20250419_OTHER_71c8234b. Nothing seemed to occur which makes me wonder if there is a similar bi-directional data problem with when the linked_evidence gets changed that the actual promise page will need to be updated as well.
Hopefully not but Id advise to review the whole editing workflow from end to end before we start making any big data changes so that we don't have to syncing issues.
See screenshot.
I reviewed the update logic and confirmed that the backend update removes the promise ID from the evidence item, but does not remove the evidence ID from the promise’s linked_evidence field. i.e., removing a promise from an evidence item doesn’t update the associated promise’s linked_evidence array.
I’ve written a patch to address this but ran into a few frontend bugs that are stopping me from testing. Working branch bug/issue-75-admin-update-issue
Draft PR [WIP] with patch https://github.com/BuildCanada/PromiseTracker/pull/87
Activity
thomas-hul commentedon Jun 11, 2025
Confirmed the promise (LPC_20250419_OTHER_71c8234b) has been removed from evidence item (https://www.parl.ca/legisinfo/en/bill/45-1/C-202).
When inspecting and editing the promise I noticed that there was an area titled "Linked Evidence ID's" and it looks like the Bill C202 is still included in the linked evidence. I've since tried to remove it to see if it effects anything on the promises page here: https://www.buildcanada.com/promise/LPC_20250419_OTHER_71c8234b. Nothing seemed to occur which makes me wonder if there is a similar bi-directional data problem with when the linked_evidence gets changed that the actual promise page will need to be updated as well.
Hopefully not but Id advise to review the whole editing workflow from end to end before we start making any big data changes so that we don't have to syncing issues.
See screenshot.
I reviewed the update logic and confirmed that the backend update removes the promise ID from the evidence item, but does not remove the evidence ID from the promise’s linked_evidence field. i.e., removing a promise from an evidence item doesn’t update the associated promise’s linked_evidence array.
I’ve written a patch to address this but ran into a few frontend bugs that are stopping me from testing. Working branch
bug/issue-75-admin-update-issueDraft PR [WIP] with patch
https://github.com/BuildCanada/PromiseTracker/pull/87melkuo commentedon Aug 27, 2025
I believe this is fixed now with BuildCanada/OutcomeTrackerAPI#28