-
Notifications
You must be signed in to change notification settings - Fork 26
Load default action steps from configuration #253
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
Merged
leplatrem
merged 12 commits into
213-change-role-of-context
from
213-load-steps-from-config
Sep 29, 2022
Merged
Load default action steps from configuration #253
leplatrem
merged 12 commits into
213-change-role-of-context
from
213-load-steps-from-config
Sep 29, 2022
Conversation
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
Co-authored-by: bsieber-mozilla <[email protected]>
grahamalama
reviewed
Sep 23, 2022
Contributor
grahamalama
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! A first round of comments.
grahamalama
approved these changes
Sep 28, 2022
Contributor
grahamalama
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
leplatrem
added a commit
that referenced
this pull request
Oct 4, 2022
…ors) (#236) * Rename ActionLogContext to ActionContext * Rename log_context to context * Remove := operator and chain operations * Remove the maybe_ from services.jira * Align signatures of action functions * Do not duplicate parameters between init and call * Runner now instantiates context * Pass actions contexts to action tests * Update actions docs * Remove redundant parameters * Adjust parameters between default.py and jira.py * Inherit JiraContext from Context * Remove useless and confusing condition * Replace repetitive calls with list of steps * Let the runner set the ActionContext operation * Reintroduce maybe_ for optional steps * Load default action steps from configuration (#253) * Move steps to jbi.actions.steps * Rename test_default to test_steps * Move test_default_with_assignee_and_status into test_steps * Load default action steps from configuration * Add tests for the default action behaviour * Rename groups of steps. create -> new, update -> existing * Remove default value config/config.prod.yaml Co-authored-by: bsieber-mozilla <[email protected]> * Move remapping of steps into helper * Remove useless pylint annotation * Adjust docstrings * Merge unspecified groups with default ones * Update secrets baseline Co-authored-by: bsieber-mozilla <[email protected]> Co-authored-by: bsieber-mozilla <[email protected]>
leplatrem
added a commit
that referenced
this pull request
Oct 5, 2022
…#236, #253) (#232) * Extract create and update issue * Remove client as action attributes * Remove useless code * Extract add comment * Remove indirection with comments for changes * Instantiate context in __call__ instead of each method * Remove usage of self in _update_issue() * Split default with status and assignee into smaller bits * Rename create_comment() * Remove class inheritance between default and default with status and assignee (ref #77) (#233) * Move helpers to jbi.services.jira and bugzilla * Move bugzilla out of jira module * Add type annotations * Update code comment about bug.comment * Chain operations instead of using nested conditions (with `:=` operators) (#236) * Rename ActionLogContext to ActionContext * Rename log_context to context * Remove := operator and chain operations * Remove the maybe_ from services.jira * Align signatures of action functions * Do not duplicate parameters between init and call * Runner now instantiates context * Pass actions contexts to action tests * Update actions docs * Remove redundant parameters * Adjust parameters between default.py and jira.py * Inherit JiraContext from Context * Remove useless and confusing condition * Replace repetitive calls with list of steps * Let the runner set the ActionContext operation * Reintroduce maybe_ for optional steps * Load default action steps from configuration (#253) * Move steps to jbi.actions.steps * Rename test_default to test_steps * Move test_default_with_assignee_and_status into test_steps * Load default action steps from configuration * Add tests for the default action behaviour * Rename groups of steps. create -> new, update -> existing * Remove default value config/config.prod.yaml Co-authored-by: bsieber-mozilla <[email protected]> * Move remapping of steps into helper * Remove useless pylint annotation * Adjust docstrings * Merge unspecified groups with default ones * Update secrets baseline Co-authored-by: bsieber-mozilla <[email protected]> Co-authored-by: bsieber-mozilla <[email protected]> Co-authored-by: bsieber-mozilla <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
This removes the hard-coded steps from
default.pyand deletes thedefault_with_assignee_and_statusaction.