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

Refactor submission deletion queryset #1808

Merged
merged 3 commits into from
Apr 24, 2020
Merged

Conversation

KipSigei
Copy link
Contributor

@KipSigei KipSigei commented Apr 7, 2020

Changes / Features implemented

  • Refactor to remove .update() since it doesn't call the Instance model's. save() method
  • .update() method doesn't send post_save signal required by google exports or any other micro service

Steps taken to verify this change does what is intended

Side effects of implementing this change

Closes #

@moshthepitt
Copy link
Contributor

Should we add a test that it is now called?

Copy link
Contributor

@ivermac ivermac 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. As @moshthepitt has mentioned, we could just add a test to check the post_save signal is called. May be use mocking?

@KipSigei KipSigei requested a review from ivermac April 8, 2020 06:12
ivermac
ivermac previously approved these changes Apr 8, 2020
Copy link
Contributor

@ivermac ivermac 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 to me

DavisRayM
DavisRayM previously approved these changes Apr 8, 2020
moshthepitt
moshthepitt previously approved these changes Apr 8, 2020
moshthepitt
moshthepitt previously approved these changes Apr 9, 2020
This is because .update() doesn't emit a post_save signal
and doesn't call .save() on the Instance model

Signed-off-by: Kipchirchir Sigei <[email protected]>
Signed-off-by: Kipchirchir Sigei <[email protected]>
@faith-mutua faith-mutua added the QA+ PR passed QA testing label Apr 24, 2020
@DavisRayM DavisRayM merged commit d30029b into master Apr 24, 2020
@DavisRayM DavisRayM deleted the submission-deletion-tweaks branch April 24, 2020 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA+ PR passed QA testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants