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

Setup queue for request form submissions that have passed validation #120

Closed
2 of 11 tasks
malikkotob opened this issue Sep 13, 2017 · 4 comments
Closed
2 of 11 tasks

Comments

@malikkotob
Copy link

malikkotob commented Sep 13, 2017

As a FOIA API product owner, in order to ensure FOIA requests that need to be sent out to agency components are processed and preserved in a robust fashion, I need a queue that holds completed request form submission to be sent out.

This queue will allow the system to process requests in a more robust and efficient manner. Queue processing will take place in #122

Acceptance criteria

  • Create a new webform handler that enqueues submissions using Drupal's DatabaseQueue
  • Update the foia_webform_webform_insert implementation in foia_webform.module to add this handler to new webforms instead of the foia_email handler (we will leverage the foia_email handler when performing queue processing)

UAT

Test: Submit a FOIA Request
Applicable roles: admin, agency administrator

@Tom-Camp
Copy link

Tom-Camp commented Oct 2, 2017

Functional Review

  • Login to the dev environment
  • Go to the Webform administration page (/admin/structure/webform)
  • Click + Add webform
  • Create new form making sure that the Use FOIA Agency template checkbox is checked
  • On the form edit page, click the Emails / Handlers tab
  • Confirm that the FOIA Submission Queue is Enabled
  • Click the View tab
  • Fill out the form and submit
  • Go to the Recent log messages page (/admin/reports/dblog)
  • You should see a new message of the Type: foia_webform with the message FOIA form submission #[some number] added to queue.
  • To the right of that message, click View
  • You should see your form submission

@Tom-Camp
Copy link

Tom-Camp commented Oct 2, 2017

Developer Review

  • Checkout doj-120-tc-mk
  • Follow Functional Review steps
  • Using drush check the queue using drush queue-list
  • You should see foia_submissions 1 Drupal\Core\Queue\DatabaseQueue in the list

@Tom-Camp Tom-Camp removed their assignment Oct 2, 2017
@malikkotob malikkotob self-assigned this Oct 3, 2017
@Tom-Camp Tom-Camp assigned Tom-Camp and unassigned malikkotob Oct 3, 2017
@malikkotob malikkotob assigned malikkotob and unassigned Tom-Camp Oct 3, 2017
@malikkotob malikkotob assigned dangur and kristusacquia and unassigned malikkotob Oct 3, 2017
@kristusacquia kristusacquia removed their assignment Oct 3, 2017
@dangur dangur removed their assignment Oct 3, 2017
@malikkotob
Copy link
Author

Merged into develop.

@gsolomon123
Copy link

I successfully submitted a FOIA request and confirmed that the request arrived with a status Queued for submission. I confirmed the submission ID and content in the backstage. (I opened a separate UAT ticket, #471, regarding the request form.)

mattdanger pushed a commit to forumone/foia.gov that referenced this issue Aug 8, 2023
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

5 participants