Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## 4.22 #12336 +/- ##
============================================
+ Coverage 18.00% 18.08% +0.07%
- Complexity 16219 16336 +117
============================================
Files 5936 5938 +2
Lines 535716 536130 +414
Branches 65596 65650 +54
============================================
+ Hits 96459 96960 +501
+ Misses 428268 428138 -130
- Partials 10989 11032 +43
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
86379b7 to
c938bd1
Compare
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
Framework-level improvements for for contextual and localized API error messages Design doc: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Error+Message+Consistency%2C+Customization%2C+and+Localization+Framework Signed-off-by: Abhishek Kumar <[email protected]>
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19077 |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
Signed-off-by: Abhishek Kumar <[email protected]>
Signed-off-by: Abhishek Kumar <[email protected]>
Signed-off-by: Abhishek Kumar <[email protected]>
Signed-off-by: Abhishek Kumar <[email protected]>
Signed-off-by: Abhishek Kumar <[email protected]>
Signed-off-by: Abhishek Kumar <[email protected]>
Signed-off-by: Abhishek Kumar <[email protected]>
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19280 |
harikrishna-patnala
left a comment
There was a problem hiding this comment.
very minor comments added @shwstppr , can you please check them.
I've not verified all of the error labels and strings but checked the logic in implementing them. looks good so far. Thank you.
| private String errorText = "Command failed due to Internal Server Error"; | ||
|
|
||
| @SerializedName("errortextkey") | ||
| @Param(description = "the key for the text associated with this error", since = "4.24.0") |
There was a problem hiding this comment.
change the version to 4.22.2 !!
Signed-off-by: Abhishek Kumar <[email protected]>
Signed-off-by: Abhishek Kumar <[email protected]>
Signed-off-by: Abhishek Kumar <[email protected]>
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19410 |
| @@ -0,0 +1,732 @@ | |||
| { | |||
There was a problem hiding this comment.
Apologies @shwstppr I missed reviewing this file.
Is it possible to group these labels somehow ? may be group them by resources and APIs like we have the APIs here https://cloudstack.apache.org/api/apidocs-4.23/
I'm thinking in terms of ease of use to the admins.
There was a problem hiding this comment.
@harikrishna-patnala that won't be possible due a couple of reasons:
- There is not always 1:1 mapping between the API and the error message. Many APIs may use the same underlying method, returning same message
- For the above reason, we are using the error key structure defined here, https://cwiki.apache.org/confluence/spaces/CLOUDSTACK/pages/406618482/Error+Message+Consistency+Customization+and+Localization+Framework#ErrorMessageConsistency%2CCustomization%2CandLocalizationFramework-TemplateFormat. So essentially error messages are grouped with resource type and actions
Also, with the recent changes, operator can use multiple error message JSON files and group desired keys in different files for override which is defined here, https://cwiki.apache.org/confluence/spaces/CLOUDSTACK/pages/406618482/Error+Message+Consistency+Customization+and+Localization+Framework#ErrorMessageConsistency%2CCustomization%2CandLocalizationFramework-PluginandOperatorOverrides and also in doc PR
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
1 similar comment
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
Description
Framework-level improvements for contextual and localized API error messages
Design spec: Error Message Consistency, Customization, and Localization Framework
Documentation PR: apache/cloudstack-documentation#684
Developed focused documentation is also added at
api/src/main/java/org/apache/cloudstack/error/README.mdTypes of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
Refined error message with additional context for admin

User facing error, with localization

Example API response
How Has This Been Tested?
End-to-end testing and the following smoke test,
How did you try to break this feature and the system with this change?