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

fix(oauth-transients): remove redundant cleanup #3112

Merged
merged 5 commits into from
May 14, 2024

Conversation

dkoo
Copy link
Contributor

@dkoo dkoo commented May 14, 2024

All Submissions:

Changes proposed in this Pull Request:

Removes a redundant cleanup call on get, and implements a way to let us temporarily disable and reenable cron jobs via an environment constant.

How to test the changes in this Pull Request:

  1. Check out this branch
  2. On wp cron event list, confirm that np_oauth_transients_cleanup is scheduled for weekly execution
  3. Add define( 'NEWSPACK_CRON_DISABLE', [ 'np_oauth_transients_cleanup' ] ); to your wp-config.php
  4. On wp cron event list, confirm that np_oauth_transients_cleanup is no longer scheduled
  5. Remove np_oauth_transients_cleanup from the NEWSPACK_CRON_DISABLE array in wp-config.php and confirm that np_oauth_transients_cleanup job is scheduled again

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@dkoo dkoo added the [Status] Needs Review The issue or pull request needs to be reviewed label May 14, 2024
@dkoo dkoo self-assigned this May 14, 2024
@dkoo dkoo requested a review from a team as a code owner May 14, 2024 16:54
@github-actions github-actions bot added [Status] Approved The pull request has been reviewed and is ready to merge and removed [Status] Needs Review The issue or pull request needs to be reviewed labels May 14, 2024
@dkoo dkoo merged commit c123c02 into release May 14, 2024
7 checks passed
@dkoo dkoo deleted the hotfix/remove-redundant-cleanup branch May 14, 2024 19:13
matticbot pushed a commit that referenced this pull request May 14, 2024
## [3.8.5](v3.8.4...v3.8.5) (2024-05-14)

### Bug Fixes

* **oauth-transients:** remove redundant cleanup ([#3112](#3112)) ([c123c02](c123c02))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 3.8.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request May 15, 2024
# [4.0.0-alpha.4](v4.0.0-alpha.3...v4.0.0-alpha.4) (2024-05-15)

### Bug Fixes

* autocomplete orders only for virtual products ([#3111](#3111)) ([bfbe554](bfbe554))
* **google-login:** get the email from the /tokeninfo endpoint ([#3117](#3117)) ([3296f1a](3296f1a))
* **google-oauth:** use a custom table for transients ([#3106](#3106)) ([d4a2f5c](d4a2f5c))
* **oauth-transients:** remove redundant cleanup ([#3112](#3112)) ([c123c02](c123c02))
* **ras:** sync purchase data only for most recent order/subscription ([#3086](#3086)) ([2c7763a](2c7763a))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 4.0.0-alpha.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@matticbot
Copy link
Contributor

🎉 This PR is included in version 4.0.0-epic-ras-acc.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released on @alpha released on @epic/ras-acc released [Status] Approved The pull request has been reviewed and is ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants