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/context module #952

Merged
merged 25 commits into from
Feb 27, 2024
Merged

Add/context module #952

merged 25 commits into from
Feb 27, 2024

Conversation

circlecube
Copy link
Member

@circlecube circlecube commented Feb 20, 2024

Proposed changes

Adding a context module and reading context for certain features.

Read platform context and when atomic and disable certain features:

  • performance page and links
  • staging page and links and api endpoints
  • sets marketplace brand to bluehost-cloud

Type of Change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

Copy link

cypress bot commented Feb 20, 2024

Passing run #7260 ↗︎

0 333 24 0 Flakiness 0

Details:

Merge branch 'release/3.9.0' into add/context-module
Project: Bluehost Brand Plugin Commit: a1a0637861
Status: Passed Duration: 19:15 💡
Started: Feb 27, 2024 9:06 PM Ended: Feb 27, 2024 9:25 PM

Review all test suite changes for PR #952 ↗︎

Copy link

cypress bot commented Feb 20, 2024

47 failed tests on run #7126 ↗︎

47 0 0 310 Flakiness 0

Details:

Merge c8b74f6 into 95396b3...
Project: Bluehost Brand Plugin Commit: 62f39946b8 ℹ️
Status: Failed Duration: 07:18 💡
Started: Feb 23, 2024 5:36 PM Ended: Feb 23, 2024 5:43 PM
Failed  help.cy.js • 1 failed test

View Output Video

Test Artifacts
Help Page > Is Accessible Test Replay Screenshots Video
Failed  home.cy.js • 1 failed test

View Output Video

Test Artifacts
Home Page > Site Info Exists Test Replay Screenshots Video
Failed  navigation.cy.js • 1 failed test

View Output Video

Test Artifacts
Navigation > Admin submenu shouldn't exist inside app Test Replay Screenshots Video
Failed  settings.cy.js • 1 failed test

View Output Video

Test Artifacts
Settings Page > Is Accessible Test Replay Screenshots Video
Failed  version-check.cy.js • 1 failed test

View Output Video

Test Artifacts
Page > Is running the correct WP version Test Replay Screenshots Video

The first 5 failed specs are shown, see all 47 specs in Cypress Cloud.

Review all test suite changes for PR #952 ↗︎

moves platform detection into context module
moves adding all context to runtime into context module
supports cleaned up autoloading and removes requires
rearranges bootstrap for more linear representation of processing order
@circlecube circlecube changed the title WIP Add/context module Add/context module Feb 22, 2024
@circlecube circlecube marked this pull request as ready for review February 22, 2024 22:15
@circlecube circlecube changed the base branch from main to release/3.8.5 February 23, 2024 19:42
* main:
  Fix pretty permalink setup
* release/3.8.5:
  Update JS for ecomm
* release/3.9.0:
  minor react and wp package updates
  bump plugin version to 3.9.0
  module updates

# Conflicts:
#	composer.lock
@circlecube circlecube changed the base branch from release/3.8.5 to release/3.9.0 February 26, 2024 18:23
* release/3.9.0:
  update matrix to run on 8.3 and not on 7.2 and 7.1
  update marketplace module to 2.2.4
  update onboarding module to 2.1.3

# Conflicts:
#	composer.lock
@circlecube circlecube requested a review from wpscholar February 27, 2024 20:04
@circlecube circlecube self-assigned this Feb 27, 2024
@circlecube
Copy link
Member Author

I've got the tests fixed on this. The same onboarding sitegen tests failing as on the release branch. I'll tag releases for the staging and performance modules and get them into this and then we can merge this into release branch. @wpscholar

  - Upgrading newfold-labs/wp-module-performance (1.3.1 => 1.4.0)
  - Upgrading newfold-labs/wp-module-staging (1.2.3 => 1.3.0)
* release/3.9.0:
  update config to skip sitegen tests for now
@circlecube circlecube merged commit bcbbe12 into release/3.9.0 Feb 27, 2024
3 checks passed
@circlecube circlecube deleted the add/context-module branch February 27, 2024 21:31
@cypress cypress bot mentioned this pull request Feb 27, 2024
8 tasks
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.

2 participants