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

update: Enhanced Error Handling for License Server API Calls #41

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

nurul-umbhiya
Copy link
Contributor

@nurul-umbhiya nurul-umbhiya commented Mar 27, 2024

This pull request introduces significant improvements to the error handling mechanisms within the License.php file of the Appsero client. The changes ensure that API calls to the license server are more robust and reliable. Here are the key updates:

  • WP_Error Integration: The send_request method now returns WP_Error objects, providing more detailed error information.

  • Error Handling Consistency: Error responses are now consistently handled across different methods, such as activate, deactivate, and check_license_status.

  • Improved User Feedback: Error messages are more informative, ensuring users receive clear communication in case of issues.

The modifications enhance the overall stability and user experience of the Appsero client’s licensing functionality.

How to Test this PR

Turn off the internet from your local machine, this will simulate a CURL error.

Before Changes

Screenshot 2024-03-27 at 2 13 37 PM

After Changes

Screenshot 2024-03-27 at 3 54 42 PM

@nurul-umbhiya nurul-umbhiya changed the title update: enhanced error handling method for license server API calls update: Enhanced Error Handling for License Server API Calls Mar 28, 2024
@anisAronno anisAronno self-requested a review April 16, 2024 05:00
@saiftheboss7
Copy link
Contributor

@Rubaiyat-E-Mohammad Need to test this

@Rubaiyat-E-Mohammad Rubaiyat-E-Mohammad added the QA: In Progress To be applied to PR's that are QA testing on progress label Jul 5, 2024
@Rubaiyat-E-Mohammad
Copy link

Rubaiyat-E-Mohammad commented Jul 5, 2024

Updated and replaced the license.php file and executed the scenario. video: Link

@Rubaiyat-E-Mohammad Rubaiyat-E-Mohammad added the Needs Dev Review This PR needs review by a developer label Jul 5, 2024
@saiftheboss7
Copy link
Contributor

@Rubaiyat-E-Mohammad Do an overall test of license checking/license expiration date/license action (regular license related stuff). If all good, please mark the PR as QA passed.

@Rubaiyat-E-Mohammad Rubaiyat-E-Mohammad added QA Approved This PR is approved by the QA team Status: Ready to Merge This PR is now ready to merge and removed Needs Dev Review This PR needs review by a developer QA: In Progress To be applied to PR's that are QA testing on progress labels Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA Approved This PR is approved by the QA team Status: Ready to Merge This PR is now ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants