Skip to content
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

DWPF-704 update dw usage of feedback package and implement custom notifications #433

Conversation

nicopicchio
Copy link
Contributor

No description provided.

@nicopicchio nicopicchio marked this pull request as ready for review August 30, 2023 08:38
@nicopicchio nicopicchio requested a review from CamLamb August 30, 2023 08:38
src/feedback/utils.py Outdated Show resolved Hide resolved
src/feedback/utils.py Outdated Show resolved Hide resolved
src/feedback/utils.py Outdated Show resolved Hide resolved
src/feedback/utils.py Outdated Show resolved Hide resolved
Copy link
Contributor

@CamLamb CamLamb left a comment

Choose a reason for hiding this comment

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

When we merge PRs, their title become the commit message on the main branch.
Since this is the case, I like to make sure the ticket number is in the format that will be picked up by Jira:

Dwpf 704 > DWPF-704

@nicopicchio nicopicchio changed the title Dwpf 704 update dw usage of feedback package and implement custom notifications DWPF-704-update-dw-usage-of-feedback-package-and-implement-custom-notifications Aug 30, 2023
@nicopicchio
Copy link
Contributor Author

When we merge PRs, their title become the commit message on the main branch. Since this is the case, I like to make sure the ticket number is in the format that will be picked up by Jira:

Dwpf 704 > DWPF-704

I am not sure why the title gets changed. I assumed the PR was getting the same name I give to the branch.

@nicopicchio nicopicchio changed the title DWPF-704-update-dw-usage-of-feedback-package-and-implement-custom-notifications DWPF-704 update dw usage of feedback package and implement custom notifications Sep 4, 2023
Copy link
Contributor

@marcelkornblum marcelkornblum left a comment

Choose a reason for hiding this comment

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

Looks good! There are a few things in the tests I'd ideally improve but no blockers

src/feedback/test/test_utils.py Show resolved Hide resolved
src/feedback/test/test_utils.py Show resolved Hide resolved
freezer.move_to("2023-09-03")
assert not feedback_received_within()


Copy link
Contributor

Choose a reason for hiding this comment

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

the following ones are all fine, but very repetitive - if you want you could consider parameterising them to make it a bit more concise and (IMO) easier to see what's happening between the tests. There's examples of this in DW somewhere if you search around.

@nicopicchio nicopicchio merged commit 46d7e3a into main Sep 7, 2023
1 check passed
@nicopicchio nicopicchio deleted the DWPF-704-update-dw-usage-of-feedback-package-and-implement-custom-notifications branch September 7, 2023 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants