precision-sustainable-ag / Craft-Management

0 stars 0 forks source link

Test Dev Webhooks #58

Closed saseehav closed 1 week ago

saseehav commented 2 weeks ago

To the develop craft forms database, forms table Add the producation version of the Grower's Survey Update the name of the current line to reflect that it is the Dev version. Make production craft forms , forms table match the develop Update the sections of duplicate and send email

Things we've updated so far to test the dev Webhook

  1. We've updated the forms table to have the forms we want and delete the ones not active
  2. Updated the can dupe and receive email columns
  3. Update resource group admins table to point to the resource group (craft data psa email)

Test these things: a) get an email or not b) get a dup or not bb) that the duplication works c) that the show in the submission table of the dev craft forms

Test the follow surveys on the DEV webhook https://developformsapi.craft-data.org/webhooks/user-forms

Pre-audit checklist

Dev Growers Survey

Growers Survey

Cycle 6 application

saseehav commented 2 weeks ago

In the resource group admins, update the email to go to a default email? currently says trevorpuckett@gmail

Code says that for every form that has a resource group admin, send an email.

Form confirmations for Dev Craft Growers ARE coming into Craft - psa- data email Form confirmations for Pre-audit checklist are NOT coming to Craft-psa-data email

saseehav commented 2 weeks ago

502 Error: update to the pre-audit Survey email confirmation work flow

Steps we did:

  1. Toggled ON the 'receive email confirmation' in forms table for the Pre-Audit form.
  2. We submitted Pre-Audit checklist. An email was sent to "false" at the craft-data-psa resource group admin account
  3. The email contains a View button
  4. The View button goes to a 502 error,, submission malformed "Sorry, the submission you are attempting to copy does not have a proper form ID association. Please contact support if your problem persists."
  5. Form does exist in submissions

Speaking with Trevor on this issue. will return. fixed by adding proper permissions to the craft_service account.

saseehav commented 2 weeks ago

Merge to Main AFTER Friday Nov 13, 2024 5pm

saseehav commented 2 weeks ago

Discovered that there was a bug in the production webhook for the Craft Cycle 6 application causing the email confirmation to not send. At this point, we are going to get rid of the view or print fields work flow prior to cycle 6 closing. button will appear to view or print form.

saseehav commented 1 week ago

Merged to main Monday 11/18