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

[ENGA3-420]: Updated Omise_Capabilities class to prevent calling capabilities API when the keys are null. #305

Merged
merged 3 commits into from
Sep 6, 2022

Conversation

aashishgurung
Copy link
Contributor

1. Objective

Prevent calling capabilities API when the keys are null.

Jira Ticket: #420

2. Description of change

Updated Omise_Capabilities class to prevent calling capabilities API when the keys are null. Added a check that compares the newly fetched keys with the previously saved keys. If the keys are different then then we call to capabilities API else we return previously built instance.

🔧 Environments:

  • WooCommerce: v6.8.0
  • WordPress: v6.0.2
  • PHP version: 8.1
  • Omise plugin version: Omise-WooCommerce 4.23.3

Copy link
Contributor

@new4762 new4762 left a comment

Choose a reason for hiding this comment

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

Thank you for your hard work. 🙇

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 6, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@aashishgurung aashishgurung merged commit 1d392cd into master Sep 6, 2022
@aashishgurung aashishgurung deleted the feature/ENGA3-420 branch September 20, 2022 10:35
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.

5 participants