Skip to content

Conversation

@leplatrem
Copy link
Contributor

@leplatrem leplatrem commented Sep 13, 2022

This removes the hard-coded steps from default.py and deletes the default_with_assignee_and_status action.

@leplatrem leplatrem requested a review from a team as a code owner September 13, 2022 09:10
@leplatrem leplatrem added breaking-change Pull requests that introduce a breaking change enhancement New feature or request labels Sep 13, 2022
Copy link
Contributor

@grahamalama grahamalama left a 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.

Copy link
Contributor

@grahamalama grahamalama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@leplatrem leplatrem merged commit 60a116e into 213-change-role-of-context Sep 29, 2022
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

breaking-change Pull requests that introduce a breaking change enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants