-
Notifications
You must be signed in to change notification settings - Fork 6
Engagement Workflow v2 #3245
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
Open
atGit2021
wants to merge
19
commits into
develop
Choose a base branch
from
0039-engagement-workflow
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Engagement Workflow v2 #3245
Changes from 14 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
85f7b13
Engagement Workflow v2
2e9ea25
Add project step condition
CarsonF b05ace6
Polish transition names
CarsonF c84ef4c
Fix permissions
CarsonF 17a71fb
Remove end/reject proposal condition on project state
CarsonF d5f1ff8
Work around needing engagement.project.step for migration
CarsonF cceaf88
Revised engagement seeding for new engagement workflow events
e0accee
Remove most of the engagement workflow tests / Replace with a couple …
CarsonF 7da0e5b
Engagement Workflow v2
038cc25
Rename step -> state
CarsonF fb76d70
Drop unused code
CarsonF 928cbfe
Rename file
CarsonF 4623234
Drop another superfluous override
CarsonF 5c64b76
publish event for engagements
0ae2d8a
removed conflicting migration file
7c73772
add primary location to test project
facba60
added funding account to project in order to resolve missing departme…
b827061
removed ProjectStep PendingTerminationApproval to Terminated from array
df796e0
fix permissions error when creating engagement
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
module Engagement { | ||
type WorkflowEvent extending Project::ContextAware { | ||
required engagement: default::Engagement { | ||
readonly := true; | ||
on target delete delete source; | ||
}; | ||
required who: default::Actor { | ||
readonly := true; | ||
default := global default::currentActor; | ||
}; | ||
required at: datetime { | ||
readonly := true; | ||
default := datetime_of_statement(); | ||
}; | ||
transitionKey: uuid { | ||
readonly := true; | ||
}; | ||
required to: Status { | ||
readonly := true; | ||
}; | ||
notes: default::RichText { | ||
readonly := true; | ||
}; | ||
|
||
trigger setEngagementStatus after insert for all do ( | ||
update default::Engagement | ||
filter default::Engagement in __new__.engagement | ||
set { | ||
status := default::Engagement.latestWorkflowEvent.to ?? Engagement::Status.InDevelopment | ||
} | ||
); | ||
trigger refreshEngagementStatus after delete for all do ( | ||
update default::Engagement | ||
filter default::Engagement in __old__.engagement | ||
set { | ||
status := default::Engagement.latestWorkflowEvent.to ?? Engagement::Status.InDevelopment | ||
} | ||
); | ||
} | ||
|
||
scalar type Status extending enum< | ||
InDevelopment, | ||
DidNotDevelop, | ||
Rejected, | ||
|
||
Active, | ||
ActiveChangedPlan, | ||
|
||
DiscussingTermination, | ||
DiscussingReactivation, | ||
DiscussingChangeToPlan, | ||
DiscussingSuspension, | ||
Suspended, | ||
|
||
FinalizingCompletion, | ||
Terminated, | ||
Completed, | ||
|
||
# deprecated / legacy | ||
Converted, | ||
Unapproved, | ||
Transferred, | ||
NotRenewed, | ||
>; | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.