-
Notifications
You must be signed in to change notification settings - Fork 15
Reduced API calls on System Parameters page #247
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
vedangimittal
commented
Jun 20, 2024
- Reduced API calls on System Parameters page for performance improvement
- Jira Story- https://jsw.ibm.com/browse/PFEBMC-2945
4f67d38 to
ce42837
Compare
|
Will remove the comments before getting it merged. |
| }, | ||
| actions: { | ||
| async getAggressivePrefetch({ commit }) { | ||
| async getApi({ commit }) { |
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.
Rename: "getApi" to "getBiosAttributesRegistry"
| }, | ||
| created() { | ||
| this.startLoader(); | ||
| Promise.all([ |
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.
No need of Promise.all as we are making only one API call
| }) | ||
| .catch((error) => console.log(error)); | ||
| }, | ||
| // async getAggressivePrefetch({ commit }) { |
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.
Remove unused code
| this.$store.dispatch('systemParameters/getRpdScheduledRun'), | ||
| this.$store.dispatch('systemParameters/getRpdScheduledRunDuration'), | ||
| this.$store.dispatch('systemParameters/getApi'), | ||
| // this.$store.dispatch('systemParameters/getLateralCastOutMode'), |
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.
Remove unused code
Nikhil-Ashoka
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.
Please address the comments
bfee9e3 to
32c39b5
Compare
| // async getLateralCastOutMode({ commit }) { | ||
| // const lateralCastOutMode = this.registryEntries.Attributes.filter( | ||
| // (Attribute) => Attribute.AttributeName == 'hb_lateral_cast_out_mode' | ||
| // ); | ||
| // let lateralCastOutModeValue = lateralCastOutMode[0].CurrentValue; | ||
| // let modeValue = lateralCastOutModeValue == 'Enabled' ? true : false; | ||
| // commit('setLateralCastOutMode', modeValue); | ||
| // }, |
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.
Please remove these lines.
32c39b5 to
badc84d
Compare
- Reduced API calls on System Parameters page for performance improvement - Jira Story- https://jsw.ibm.com/browse/PFEBMC-2945 Signed-off-by: Vedangi Mittal <vedangimittal3004@gmail.com>
badc84d to
2fc1623
Compare
- Reduced api calls on System Parameters page - PR Link: ibm-openbmc#247