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

Follow-up: Wait until survey trigger is complete #7222

Merged
merged 4 commits into from
Jun 29, 2023

Conversation

nfmohit
Copy link
Collaborator

@nfmohit nfmohit commented Jun 28, 2023

Summary

Addresses issue:

Relevant technical choices

This follow-up PR aims to resolve this issue reported by the QA team, where User Input completion navigates the user to the Site Kit dashboard, but doesn't wait for the survey trigger to complete. Thus, the survey trigger request is often cancelled.

PR Author Checklist

  • My code is tested and passes existing unit tests.
  • My code has an appropriate set of unit tests which all pass.
  • My code is backward-compatible with WordPress 5.2 and PHP 5.6.
  • My code follows the WordPress coding standards.
  • My code has proper inline documentation.
  • I have added a QA Brief on the issue linked above.
  • I have signed the Contributor License Agreement (see https://cla.developers.google.com/).

Do not alter or remove anything below. The following sections will be managed by moderators only.

Code Reviewer Checklist

  • Run the code.
  • Ensure the acceptance criteria are satisfied.
  • Reassess the implementation with the IB.
  • Ensure no unrelated changes are included.
  • Ensure CI checks pass.
  • Check Storybook where applicable.
  • Ensure there is a QA Brief.

Merge Reviewer Checklist

  • Ensure the PR has the correct target branch.
  • Double-check that the PR is okay to be merged.
  • Ensure the corresponding issue has a ZenHub release assigned.
  • Add a changelog message to the issue.

@github-actions
Copy link

github-actions bot commented Jun 28, 2023

Size Change: -6 B (0%)

Total Size: 1.38 MB

Filename Size Change
./dist/assets/js/googlesitekit-datastore-user-********************.js 23.3 kB -6 B (0%)
ℹ️ View Unchanged
Filename Size
./dist/assets/css/googlesitekit-admin-css-********************.min.css 49.9 kB
./dist/assets/css/googlesitekit-adminbar-css-********************.min.css 11.2 kB
./dist/assets/css/googlesitekit-wp-dashboard-css-********************.min.css 7.55 kB
./dist/assets/js/30-********************.js 2.8 kB
./dist/assets/js/31-********************.js 2.28 kB
./dist/assets/js/32-********************.js 3.72 kB
./dist/assets/js/33-********************.js 3.12 kB
./dist/assets/js/analytics-advanced-tracking-********************.js 769 B
./dist/assets/js/googlesitekit-activation-********************.js 24.1 kB
./dist/assets/js/googlesitekit-ad-blocking-recovery-********************.js 51.9 kB
./dist/assets/js/googlesitekit-adminbar-********************.js 33 kB
./dist/assets/js/googlesitekit-api-********************.js 9.86 kB
./dist/assets/js/googlesitekit-components-gm2-********************.js 5.29 kB
./dist/assets/js/googlesitekit-components-gm3-********************.js 9.92 kB
./dist/assets/js/googlesitekit-data-********************.js 2.17 kB
./dist/assets/js/googlesitekit-datastore-forms-********************.js 9.28 kB
./dist/assets/js/googlesitekit-datastore-location-********************.js 2.09 kB
./dist/assets/js/googlesitekit-datastore-site-********************.js 16.5 kB
./dist/assets/js/googlesitekit-datastore-ui-********************.js 9.38 kB
./dist/assets/js/googlesitekit-entity-dashboard-********************.js 66.3 kB
./dist/assets/js/googlesitekit-i18n-********************.js 3.92 kB
./dist/assets/js/googlesitekit-main-dashboard-********************.js 80.4 kB
./dist/assets/js/googlesitekit-modules-********************.js 21.6 kB
./dist/assets/js/googlesitekit-modules-adsense-********************.js 104 kB
./dist/assets/js/googlesitekit-modules-analytics-4-********************.js 55.2 kB
./dist/assets/js/googlesitekit-modules-analytics-********************.js 87.9 kB
./dist/assets/js/googlesitekit-modules-optimize-********************.js 20.6 kB
./dist/assets/js/googlesitekit-modules-pagespeed-insights-********************.js 21.4 kB
./dist/assets/js/googlesitekit-modules-search-console-********************.js 52.3 kB
./dist/assets/js/googlesitekit-modules-tagmanager-********************.js 32.4 kB
./dist/assets/js/googlesitekit-polyfills-********************.js 379 B
./dist/assets/js/googlesitekit-settings-********************.js 49.1 kB
./dist/assets/js/googlesitekit-splash-********************.js 66.6 kB
./dist/assets/js/googlesitekit-user-input-********************.js 42 kB
./dist/assets/js/googlesitekit-vendor-********************.js 310 kB
./dist/assets/js/googlesitekit-widgets-********************.js 18 kB
./dist/assets/js/googlesitekit-wp-dashboard-********************.js 62.9 kB
./dist/assets/js/runtime-********************.js 1.26 kB

compressed-size-action

@github-actions
Copy link

github-actions bot commented Jun 28, 2023

Build files for 89b5d1d have been deleted.

@aaemnnosttv aaemnnosttv changed the base branch from develop to main June 29, 2023 00:49
@aaemnnosttv aaemnnosttv force-pushed the enhancement/#6180-user-input-survey-followup branch from 783862e to 118ff33 Compare June 29, 2023 00:50
Copy link
Collaborator

@aaemnnosttv aaemnnosttv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good and works well in my testing. I'll push a few small tweaks but otherwise this is G2G! 👍

.dispatch( CORE_USER )
.triggerSurvey( triggerID );
const { response, error } = yield Data.commonActions.await(
yield dispatch( CORE_USER ).triggerSurvey( triggerID )
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This yield is unneccessary – dispatch returns a promise. yield is for "raw" actions.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, my mistake for overlooking, thank you for correcting!

@aaemnnosttv aaemnnosttv merged commit 26357c3 into main Jun 29, 2023
15 of 16 checks passed
@aaemnnosttv aaemnnosttv deleted the enhancement/#6180-user-input-survey-followup branch June 29, 2023 01:34
@nfmohit
Copy link
Collaborator Author

nfmohit commented Jun 30, 2023

This looks good and works well in my testing. I'll push a few small tweaks but otherwise this is G2G! 👍

Ah, thank you so much for the corrections here, I've duly noted the mistakes and improvements for future reference, thank you @aaemnnosttv!

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.

Implement HaTS survey triggers for users who answers "Other" to any User Input question
2 participants