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 'isJarvis' check that always returned true #1460

Merged
merged 2 commits into from
Dec 11, 2024
Merged

Conversation

officiallygod
Copy link
Contributor

Proposed changes

Problem: The isJarvis Check that is defined in the helper util function checks for

if ( NewfoldRuntime.hasCapability( 'isJarvis' ) ) {
before sending the actual capability data and the way this function is defined is it returns the actual value itself and not 'if the key exists in the capabilities' Reference

Due to this even if the isJarvis capability is switched off in a prod site, the isJarvis function returned true, as the if case inside the function fails and the default return is true.

This created an issue where in Bluehost_India customers the link to Bluehost Account in the plugin was incorrect. PRESS0-2354
Screenshot 2024-12-10 at 13 33 36

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

@officiallygod officiallygod self-assigned this Dec 10, 2024
Copy link

cypress bot commented Dec 10, 2024

Bluehost Brand Plugin    Run #12230

Run Properties:  status check passed Passed #12230  •  git commit d45361faf7: Merge branch 'develop' into fix/isJarvis-check
Project Bluehost Brand Plugin
Branch Review fix/isJarvis-check
Run status status check passed Passed #12230
Run duration 33m 55s
Commit git commit d45361faf7: Merge branch 'develop' into fix/isJarvis-check
Committer Evan Mullins
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 2
Tests that did not run due to a developer annotating a test with .skip  Pending 32
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 415
View all changes introduced in this branch ↗︎

Copy link

cypress bot commented Dec 10, 2024

Bluehost Brand Plugin    Run #12206

Run Properties:  status check passed Passed #12206  •  git commit 2dedf1bf67 ℹ️: Merge efe1de11989048a70ed3b024fc750aee17960eca into f3bfc25b2fd263fd8435ed06df19...
Project Bluehost Brand Plugin
Branch Review fix/isJarvis-check
Run status status check passed Passed #12206
Run duration 34m 37s
Commit git commit 2dedf1bf67 ℹ️: Merge efe1de11989048a70ed3b024fc750aee17960eca into f3bfc25b2fd263fd8435ed06df19...
Committer Allen Benny
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 2
Tests that did not run due to a developer annotating a test with .skip  Pending 32
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 415
View all changes introduced in this branch ↗︎

arunshenoy99
arunshenoy99 previously approved these changes Dec 10, 2024
@circlecube circlecube added this to the December 18, 2024 Release milestone Dec 10, 2024
Base automatically changed from release/3.15.7 to main December 11, 2024 18:52
@circlecube circlecube dismissed arunshenoy99’s stale review December 11, 2024 18:52

The base branch was changed.

@circlecube circlecube changed the base branch from main to develop December 11, 2024 18:53
* develop:
  NPM(deps): Bump @wordpress/dom-ready from 4.13.0 to 4.14.0
  NPM(deps): Bump react-use from 17.5.1 to 17.6.0
  Composer(deps): Bump newfold-labs/wp-module-data from 2.6.7 to 2.6.8
  minor composer dependency updates
  update plugin version to 3.15.7
  also include npm i to update package lock file with new version
  alpha order command
  add cleanup, build and i18n to npm command too
  update plugin file in version bump script too
  update package.json version with a script
  NPM Dev(deps-dev): Bump cypress from 13.16.0 to 13.16.1
  NPM(deps): Bump @heroicons/react from 2.1.5 to 2.2.0
  NPM Dev(deps-dev): Bump tailwindcss from 3.4.15 to 3.4.16
  NPM(deps): Bump @wordpress/i18n from 5.12.0 to 5.13.0
  NPM(deps): Bump react-router-dom from 6.28.0 to 7.0.2
@circlecube circlecube merged commit daed04d into develop Dec 11, 2024
4 checks passed
@circlecube circlecube deleted the fix/isJarvis-check branch December 11, 2024 20:05
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.

3 participants