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

Add organizer debrief survey #1028

Closed
wants to merge 69 commits into from
Closed

Add organizer debrief survey #1028

wants to merge 69 commits into from

Conversation

renintw
Copy link
Contributor

@renintw renintw commented Sep 6, 2023

Closes #930

Should be part of the New event infrastructure

Flow

  • Create a debrief page in draft status

  • Email to lead organizer

    • Make inputting lead organizer Required
  • Add Admin page to central.wordpress.org

  • Send email after event ends 2 days

    • Can’t Trash
  • Schedule a daily cron job

CronJob

  • Check if we already sent an email for this camp
  • Check to make sure the camp ended 2 days ago
  • Publish Survey page
  • Associate attendees to tix_email?
    • Add tix_email to the queue (set to pending)
      • email gets picked up by camptix cron email sending queue tix_scheduled_every_ten_minutes
  • Schedule single event to unpublish the Survey page 2 weeks later.

Screenshots

How to test the changes in this Pull Request:

@renintw renintw self-assigned this Sep 6, 2023
StevenDufresne and others added 9 commits September 7, 2023 11:28
ba7fa61 refactored this function, but accidentally started accessing the `Id` field before checking if the response was a `WP_Error`. That triggers a fatal error because it's treating an object like an array.
* Add new Attendees section

* Tweak styles accordingly

* Add Sponsor Ticket

* Add per-sponsor to the calculations in expenses

* Add Complimentary Tickets as an expense category
* Only show pay by check/ACH when the US is selected

* Add is_visible to render_radio_input

* Remove setDefaultPaymentMethod

A few reasons to remove this.

1. It kind of didn't work as expected, from what is observed, it would always default to 'Wire' and doesn't change when switching to a different currency. This is because when the callback is triggered for the first time, 'USD' doesn't equal newCurrency, and therefore the 'Wire' is selected. And later when a user selects an option, triggering callback again, it would always return as 'undefined !== selectedPaymentMethod' is always true.
2. Currently, once the 'Country for payment receipt' is selected, the system lists all payment methods based on whether the chosen country is the US. After this, users pick a payment method, and only then does the relevant form for that method become visible.
So even though the setDefaultPaymentMethod might work initially, it ends up auto-selecting either Wire or Direct Deposit for the user based on the currency they choose, but the desired outcome is to let users choose between Deposit or Check only when the payment receipt country is set to the US, rather than basing it on the currency.
@renintw renintw force-pushed the add/debrief_survey branch 3 times, most recently from 34880b5 to b76d50b Compare September 12, 2023 01:26
@renintw
Copy link
Contributor Author

renintw commented Sep 13, 2023

Closed in favor of #1038.

@renintw renintw closed this Sep 13, 2023
@renintw renintw deleted the add/debrief_survey branch September 13, 2023 09:45
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.

New event debrief survey for organizers
3 participants