-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[UI] Use GET request method for list API calls #11354
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
[UI] Use GET request method for list API calls #11354
Conversation
|
@sureshanaparti a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
ui/src/api/index.js
Outdated
| } from '@/store/mutation-types' | ||
|
|
||
| const getAPICommandsRegex = /^(get|list|query|find)\w+$/i | ||
| const addlGetAPICommandsList = [ |
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.
| const addlGetAPICommandsList = [ | |
| const addGetAPICommandsList = [ |
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.
sry, it's for additional get api list, will update to otherGetAPICommandsList, fine @nvazquez ?
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.
Ahh sure @sureshanaparti, I thought it was a typo 👍🏼
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.
Or maybe also: additionalGetAPICommandsList
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.
done
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.
@sureshanaparti could you please explain how did we get this list of additional APIs?
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.
@Pearl1594 all these additional APIs are the read calls from DB or the configuration (added regex for regular list/get cmds, these doesn't match with regular list, so, added them as additional). I've checked the execute() calls of these API cmds while working on this - #10899.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11354 +/- ##
============================================
+ Coverage 3.76% 17.17% +13.41%
- Complexity 0 15007 +15007
============================================
Files 436 5869 +5433
Lines 35575 521737 +486162
Branches 6455 63511 +57056
============================================
+ Hits 1338 89609 +88271
- Misses 34077 422071 +387994
- Partials 160 10057 +9897
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
code lgtm - just have a query regarding the list of additional APIs. |
|
@sureshanaparti a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
nvazquez
left a comment
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
|
@blueorangutan package |
|
@sureshanaparti 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. |
790baa1 to
d4f2bbd
Compare
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14482 |
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.
* [UI] Use GET request method for list API calls * Updated UI unit tests






Description
This PR updates UI to use GET request method for list API calls.
Earlier some API calls (in generic methods) from UI are using POST request method for the list calls, added here: #10899. This PR updates these call to use the GET request method.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Verified the request method (in browser's inspect window) of some list API calls from the CloudStack UI.
How did you try to break this feature and the system with this change?