-
Notifications
You must be signed in to change notification settings - Fork 27
Reformat messages that are displayed for REST request errors #993
Conversation
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Display HTTP response error message. Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
to NextVerFeatures to avoid circular dependency. Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #993 +/- ##
==========================================
+ Coverage 89.68% 89.73% +0.04%
==========================================
Files 210 211 +1
Lines 11431 11471 +40
Branches 2541 2554 +13
==========================================
+ Hits 10252 10293 +41
+ Misses 1179 1178 -1
☔ View full report in Codecov by Sentry. |
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.
LGTM, but a question regarding the sonarcloud failure. The code that is being flagged has not changed in years. Was that originally checked in before sonarcloud scanning was required?
Re SonarCloud failure: This code was probably created before our use of SonarCloud. It certainly was in the code before I added anything. I guess the perspective is "you touched it, you own it". Even though this is a piece of test-code that is supposed to crash, I will take a swing at appeasing SonarCloud. |
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
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.
LGTM.
Signed-off-by: Gene Johnston <Eugene.Johnston@broadcom.com>
Kudos, SonarCloud Quality Gate passed! |
Release succeeded for the The following packages have been published:
Powered by Octorelease 🚀 |
What It Does
The intent is to highlight the information that is relevant to the end user, and to appropriately categorize the additional details that are displayed. The enhancement was motivated by issue #935.
Because this could be considered a breaking change, The user enables this new behavior by setting the environment variable named ZOWE_V3_ERR_FORMAT to "true". Once Zowe V3 is released, the environment variable will no longer be needed. Zowe CLI will only display this new format in V3.
How to Test
Additional changes from the v3-err-format branch of zowe-cli must also be merged into master before all V3 error format changes are complete. To really test, the v3-err-format branches of both imperative and zowe-cli would have to be built locally (and CLI linked to the local imperative source) to get the exact results below.
One command that generates an error and demonstrates the behavior is
zowe zos-files list all-members "DATASET.DOES.NOT.EXIST"
.Running that command will display the following results.
Set ZOWE_V3_ERR_FORMAT to "true". Running the same command again will display the following results.
Review Checklist
I certify that I have:
Additional Comments
The imperative branch must be merged into master before the CLI pipeline can successfully build. I am opening up this imperative PR for review while I complete automated tests for the CLI branch. Once both PRs are approved, the CLI branch should be merged as soon as possible after the imperative branch.