Skip to content
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

fix(machines): repeated machine.count API calls #4497

Merged

Conversation

petermakowski
Copy link
Contributor

@petermakowski petermakowski commented Oct 19, 2022

Done

  • Itemised list of what was changed by this PR.

QA

MAAS deployment

To run this branch you will need access to one of the following MAAS deployments:

Running the branch

You can run this branch by:

QA steps

  • Go to machine list
  • Verify that only 2 machine.count API calls are made when there are no search filters
  • Select a filter
  • Verify that a single additional single call has been made for the count of machines matching the selected filter

Fixes

Fixes: #4488

Launchpad issue

Related Launchpad maas issue in the form lp#number.

Backports

In general, please propose fixes against main rather than release branches (e.g. 2.7), unless the fix is only applicable for that specific release. Please apply backport labels to the PR (e.g. "Backport 2.7") for the appropriate releases to target.

Only bug and security fixes should be backported, new features should only land in main.

Screenshots

It could be helpful to provide some screenshots to aid in QAing the change.

@webteam-app
Copy link

Demo starting at https://maas-ui-4497.demos.haus

@petermakowski petermakowski force-pushed the repeated-machine-count-api-calls-4488 branch 3 times, most recently from dbb0a62 to a7c934c Compare October 19, 2022 10:09
@ndv99
Copy link
Contributor

ndv99 commented Oct 19, 2022

Is this ready for review or is it still in draft?

@petermakowski petermakowski force-pushed the repeated-machine-count-api-calls-4488 branch from a7c934c to 74268e3 Compare October 19, 2022 12:14
@petermakowski petermakowski marked this pull request as ready for review October 19, 2022 12:15
@petermakowski
Copy link
Contributor Author

Is this ready for review or is it still in draft?

Ready for review now.

Copy link
Contributor

@ndv99 ndv99 left a comment

Choose a reason for hiding this comment

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

Looks good!

@ndv99
Copy link
Contributor

ndv99 commented Oct 19, 2022

@sparkiegeek has requested that we hold off on merging this, awaiting his approval to merge.

@ndv99 ndv99 removed the Don't merge label Oct 19, 2022
@ndv99 ndv99 merged commit 0672557 into canonical:main Oct 19, 2022
@petermakowski petermakowski deleted the repeated-machine-count-api-calls-4488 branch May 9, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unnecessary repeated machine.count calls
3 participants