-
Notifications
You must be signed in to change notification settings - Fork 851
- 8000
VST-2898: Update license activation logic and add logging #2901
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
Conversation
fix: Enhanced error handling with logging for exceptions during activation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 8.024
Timestamp: 14-03-2025T13:02:10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 8.142
Timestamp: 14-03-2025T14:34:46
{ | ||
var activationUrl = new Uri(_platformOptions.LicenseActivationUrl + activationCode); | ||
var httpResponse = await httpClient.GetAsync(activationUrl); | ||
using (var httpClient = new HttpClient()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we make a refactoring It'll be better not to use the constructor for HttpClient. Instead of it .ner core has IHttpClientFactory or opportunity to inject IHttpClient to the constructor (needs also to declare the class via AddHttpClient in IColletionServices ) for better performance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 9.113
Timestamp: 17-03-2025T07:02:43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 8.052
Timestamp: 18-03-2025T12:59:59
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.755
Timestamp: 18-03-2025T13:18:06
Description
fix: Enhanced error handling with logging for exceptions during activation.
References
QA-test:
Jira-link:
https://virtocommerce.atlassian.net/browse/VCST-2898
Artifact URL:
Image tag:
ghcr.io/VirtoCommerce/platform:3.882.0-pr-2901-305f-vcst-2898-305fb3c1