Skip to content

Conversation

@vedangimittal
Copy link

@vedangimittal vedangimittal marked this pull request as draft June 20, 2024 08:54
@vedangimittal vedangimittal force-pushed the system-parameters branch 2 times, most recently from 4f67d38 to ce42837 Compare June 28, 2024 07:04
@vedangimittal vedangimittal marked this pull request as ready for review June 28, 2024 07:05
@vedangimittal
Copy link
Author

Will remove the comments before getting it merged.

},
actions: {
async getAggressivePrefetch({ commit }) {
async getApi({ commit }) {
Copy link
Collaborator

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([
Copy link
Collaborator

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 }) {
Copy link
Collaborator

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'),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unused code

Copy link
Collaborator

@Nikhil-Ashoka Nikhil-Ashoka left a 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

@vedangimittal vedangimittal force-pushed the system-parameters branch 2 times, most recently from bfee9e3 to 32c39b5 Compare July 12, 2024 09:10
Comment on lines 322 to 329
// 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);
// },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove these lines.

- 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>
@Nikhil-Ashoka Nikhil-Ashoka self-requested a review July 15, 2024 13:25
@rfrandse rfrandse merged commit 70880e3 into ibm-openbmc:1110 Jul 15, 2024
vedangimittal added a commit to vedangimittal/webui-vue that referenced this pull request Nov 13, 2025
- Reduced api calls on System Parameters page
- PR Link: ibm-openbmc#247
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants