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

Write a function to select all unsent drafts #4

Closed
mattkiefer opened this issue Mar 30, 2018 · 5 comments
Closed

Write a function to select all unsent drafts #4

mattkiefer opened this issue Mar 30, 2018 · 5 comments
Assignees

Comments

@mattkiefer
Copy link
Collaborator

mattkiefer commented Mar 30, 2018

work this into msg.compose.distribute so you can follow a two-step process:

  1. prep drafts
  2. send prepped drafts
@mattkiefer mattkiefer self-assigned this Mar 30, 2018
@mattkiefer mattkiefer added this to the end-to-end testing milestone Mar 30, 2018
@mattkiefer
Copy link
Collaborator Author

mattkiefer commented Apr 4, 2018

The tricky part is deriving the name of the agency the unsent draft belongs to ... that's required for msg.compose.sender() to assign the agency label on the outgoing message

@mattkiefer
Copy link
Collaborator Author

for unsent drafts:

  1. delete all drafts
  2. write a new function that gets all agencies without sent messages
  3. pass those agencies to prep_drafts via contacts_by_agency

@mattkiefer
Copy link
Collaborator Author

report.report.get_threads() can check for unsent FOIAs

@mattkiefer
Copy link
Collaborator Author

all drafts are unsent so just make sure there is a way to select all drafts and distribute them

@mattkiefer
Copy link
Collaborator Author

fixed in aec3b8b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant