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

Unnecessary repeated machine.count calls #4488

Closed
sparkiegeek opened this issue Oct 18, 2022 · 1 comment · Fixed by #4497
Closed

Unnecessary repeated machine.count calls #4488

sparkiegeek opened this issue Oct 18, 2022 · 1 comment · Fixed by #4497
Assignees
Labels

Comments

@sparkiegeek
Copy link
Contributor

Describe the bug
When loading the machine listing page, 6 calls are made to machine.count, four are without parameters, two are with {"filter": {}}

All 6 get the same response with `{"count": 15}' or however many machines are available

maas-ui version
3.3.0~beta1

MAAS version
3.3.0~beta1

To Reproduce
Steps to reproduce the behaviour:

  1. Go to 'http://bolla.internal:5240/MAAS/r/machines'
  2. Open DevTools, Network and find the websocket
  3. Look at the Response tab
  4. Filter for machine.count
  5. See 6 machine.count

Expected behaviour
See one machine.count call

Screenshots

Desktop (please complete the following information):

  • OS: Ubuntu 22.04 LTS
  • Browser: Firefox
  • Version: 105.0.2

Additional context
Add any other context about the problem here.

@sparkiegeek sparkiegeek changed the title Unnecessary repeated machine.count calls Unnecessary repeated machine.count calls Oct 18, 2022
@sparkiegeek sparkiegeek changed the title Unnecessary repeated machine.count calls Unnecessary repeated machine.count calls Oct 18, 2022
@petermakowski
Copy link
Contributor

Related: #4274

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 a pull request may close this issue.

2 participants