Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Harmonize package deletion and claiming #4448

Merged
merged 1 commit into from
May 9, 2017

Conversation

chadwhitacre
Copy link
Contributor

Update for #4305 now that #4438 is in.

  • Move upsert & delete onto Package
  • Make verification results easier to debug
  • Smooth out a slight very wrinkle in return value for paypal_updated
  • Implement and test desired behavior

- Move upsert & delete onto Package
- Make verification results easier to debug
- Smooth out a slight very wrinkle in return value for paypal_updated
- Implement and test desired behavior
@chadwhitacre
Copy link
Contributor Author

Ready for review, @dowski @rohitpaulk! :)

@chadwhitacre
Copy link
Contributor Author

Bump! I am ready to bring #4305 in for a landing!

Copy link
Contributor

@clone1018 clone1018 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

cursor = cursor or self.db
if self.load_team(cursor):
self.unlink_team(cursor)
cursor.run("DELETE FROM claims WHERE package_id=%s", (self.id,))
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the comma at the end of (self.id,) expected?

Copy link
Contributor Author

@chadwhitacre chadwhitacre May 9, 2017

Choose a reason for hiding this comment

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

Yes, it's a Python wart. We want this to be a tuple, but without the comma it is just a parenthetical expression.

@clone1018 clone1018 merged commit 8a2e258 into project/claim-packages May 9, 2017
@clone1018 clone1018 deleted the project/claim-packages-deletion branch May 9, 2017 15:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants