Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

bug: Fix delete error reporting. resolves bugzilla:1215253 #281

Merged
merged 1 commit into from Dec 21, 2015

Conversation

jrconlin
Copy link
Member

Checked over the delete code to ensure that proper states and errors are
being returned. Added tests to better guard against changes.

  • Removed "all" flag for delete_message
  • check state where possible and without increasing read costs.

@bbangert r?

Checked over the delete code to ensure that proper states and errors are
being returned. Added tests to better guard against changes.

* Removed "all" flag for delete_message
* check state where possible and without increasing read costs.
@@ -408,16 +417,14 @@ def delete_message(self, uaid, channel_id, message_id, updateid=None):
channel_id, message_id))
return True

def delete_messages(self, uaid, chidmessageids, all=False):
def delete_messages(self, uaid, chidmessageids):
with self.table.batch_write() as batch:
for chidmessageid in chidmessageids:
Copy link
Member

Choose a reason for hiding this comment

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

filter(None, chidmessageids) will remove the need for the if check on 423.

@bbangert
Copy link
Member

r+, minor nit though it's not needed so I'm merging as is

bbangert added a commit that referenced this pull request Dec 21, 2015
bug: Fix delete error reporting. resolves bugzilla:1215253
@bbangert bbangert merged commit 0dfb5f9 into master Dec 21, 2015
@bbangert bbangert deleted the feature/rest_int branch December 21, 2015 16:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants