Consolidate outcomes logic into outcomes state and deprecate project-outcome-alignment#470
Open
sheshankarvapally wants to merge 1 commit intothoth-tech:10.0.xfrom
Conversation
WaelAlahamdi
approved these changes
Apr 24, 2026
WaelAlahamdi
left a comment
There was a problem hiding this comment.
Hi Sheshank, I reviewed and tested this PR locally.
The changes are limited to the expected outcomes/project-outcome-alignment files and the scope looks appropriate.
I verified the functionality through:
http://localhost:4200/projects/2/outcomes
Both tabs are working correctly:
- Outcome Achievement
- Outcome Alignment
Approved from my side.
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.
Title:
Consolidate outcomes logic into outcomes state and deprecate project-outcome-alignment
Summary:
This PR consolidates the outcomes feature by making the outcomes state
(doubtfire.projects.states.outcomes) the single source of truth and removing
duplicate logic previously shared with the project-outcome-alignment component.
Background:
During dependency investigation of the projects module (projects.coffee), it was found that:
• states/outcomes/outcomes.coffee
• project-outcome-alignment/project-outcome-alignment.coffee
Both implementations handle:
This duplication creates a migration blocker because there is no clear source of truth.
Changes in this PR:
Outcomes state is now the source of truth
src/app/projects/states/outcomes/outcomes.coffee
Outcomes UI is now rendered directly from the state
with direct template rendering inside outcomes.tpl.html
Removed duplication from project-outcome-alignment
Updated parent module dependencies
doubtfire.projects.project-outcome-alignment
Added clear documentation in code
What was NOT changed:
Reason:
This keeps the PR safe and allows reviewers to confirm that there are no hidden dependencies before full removal.
Next Steps (Post Review):
If confirmed by reviewers, we can:
• project-outcome-alignment.coffee
• project-outcome-alignment.tpl.html
src/app/doubtfire-angularjs.module.ts
Impact:
Testing:
Additional Notes:
This PR also confirms a previous task comment stating that
"project-outcome-alignment may be a blocker". This investigation validates that
concern, as the duplication directly impacts migration clarity.