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

Send Attendee Survey for 3 (Three) WordPress Events #1287

Closed
devinmaeztri opened this issue Apr 16, 2024 · 3 comments
Closed

Send Attendee Survey for 3 (Three) WordPress Events #1287

devinmaeztri opened this issue Apr 16, 2024 · 3 comments
Assignees
Labels
[Priority] Medium [Type] Operation Use this label for issues that require manual intervention or operational tasks.

Comments

@devinmaeztri
Copy link
Member

The Attendees Survey for new WordPress Events is automated and should be sent as soon as the event is completed. However, due to an issue, some events were affected and didn't receive the survey. The issue has been fixed, and we want to resend the Attendee Survey for 3 (three) events for reporting purposes:

  1. Women WordPress Day - March 8, 2024
  2. Switzerland Community Day - March 23, 2024
  3. WordPress in Education Technology Showcase - April 6, 2024

The Attendee Survey Report on WordCamp Central Dashboard:

Screenshot 2024-04-16 at 10 10 17
@devinmaeztri devinmaeztri changed the title Sending Attendees Survey for 3 (Three) WordPress Events Send Attendees Survey for 3 (Three) WordPress Events Apr 16, 2024
@renintw renintw self-assigned this Apr 21, 2024
@renintw
Copy link
Contributor

renintw commented Apr 21, 2024

Just noted: Following the steps described here, running wc_attendee_survey_email doesn't change the post status in ticket->email from draft to pending. Perhaps it needs setting the end date to 2 days ago. A local testing is needed.

Update
Yep. It needs to be exactly two days. Ref.

@renintw
Copy link
Contributor

renintw commented Apr 22, 2024

Hey @devinmaeztri 👋 I've sent out attendee surveys for the designated three events as requested, thanks for raising the issue.

And here's the record of the process for manually sending them: cc @pkevan

Since the code is set to send the survey exactly 2 days after an event ends, so it needs using the sandbox to adjust the setting to > 2 days (return gmdate('Y-m-d', $send_date) < current_time('Y-m-d', true)) to make the cron job be able to be manually triggered.

  1. After adjusting, check under the event site dashboard's tickets > email to see if there is a draft post with the title: [first_name], tell us what you thought: Post-event survey.
  2. In the sandbox's wordcamp/public_html directory, run wp cron event list --url={event site url}.
    • I have an alias for wp, otherwise, the general path is under the bin in wporg.
  3. You will see two jobs: wc_attendee_survey_email and tix_scheduled_every_ten_minutes.
  4. Run wp cron event run wc_attendee_survey_email --url={event site url}.
  5. If successful, you will see that the status of [first_name], tell us what you thought: Post-event survey changes to pending.
  6. Then execute wp cron event run tix_scheduled_every_ten_minutes --url={event site url}.
  7. The post status will change to published, indicating the email has been sent. Can also check the total sent counts at https://central.wordcamp.org/wp-admin/admin.php?page=attendee_survey.
  8. To this, all processes are completed. Then we just wait for two weeks, and the cron job wc_attendee_disable_survey will automatically run to close the survey and stop it from being filled out. This does NOT require manual execution from us.

Reference PR: #997

@renintw renintw closed this as completed Apr 22, 2024
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Community Events Active Tasks Apr 22, 2024
@renintw renintw added [Priority] Medium [Type] Operation Use this label for issues that require manual intervention or operational tasks. labels Apr 22, 2024
@devinmaeztri devinmaeztri changed the title Send Attendees Survey for 3 (Three) WordPress Events Send Attendee Survey for 3 (Three) WordPress Events Jul 11, 2024
@devinmaeztri
Copy link
Member Author

Thank you, Ren!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Priority] Medium [Type] Operation Use this label for issues that require manual intervention or operational tasks.
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants