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

GO-128 Do not download related messages to drafts #486

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

luciajanikova
Copy link
Member

Pri syncovani boxu chceme stahovat iba suvisiace spravy k plnohodnotnym outboxovym spravam, aby sme vylucili drafty.

@@ -4,7 +4,7 @@ def perform(box, from: Date.today - 1.week, to: Date.tomorrow)
raise unless box.is_a?(Fs::Box)
return unless box.syncable?

box.messages.outbox.find_each do |outbox_message|
box.messages.outbox.where(type: [nil, 'Message']).find_each do |outbox_message|
Copy link
Member

Choose a reason for hiding this comment

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

Spravme si tu nejaky scope except_drafts lebo toto sa neda uplne pochopit.

Copy link
Member

Choose a reason for hiding this comment

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

Alebo mozno not.drafts by sa mohlo tiez dat spravit

Copy link
Member

Choose a reason for hiding this comment

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

pozeram ze best practice je spravit prefix not_ a nie except_ sorry, necham na tvoje zvazenie.

@luciajanikova luciajanikova merged commit 62f0b03 into main Nov 14, 2024
3 checks passed
@luciajanikova luciajanikova deleted the GO-128/do_not_download_related_messages_to_drafts branch November 14, 2024 11:49
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.

2 participants