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

Volume delta fix #1022

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Volume delta fix #1022

wants to merge 1 commit into from

Conversation

SteveMicroNova
Copy link
Contributor

@SteveMicroNova SteveMicroNova commented Jan 27, 2025

What does this change intend to accomplish?

Closes #1021

We had a system of figuring out the delta of every individual zone attached to a source and then forcing those through the source endpoints one by one, and that caused lag. This PR brings that behavior to the backend, handles it with the /zones endpoint so we can do this more effectively and keep the system from lagging due to having a large number of fetch requests if you move the volume bar up and down rapidly.

Checklist

  • Have you tested your changes and ensured they work?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • If applicable, have you updated the CHANGELOG?
  • Does your submission pass linting & tests? You can test on localhost using ./scripts/test
  • Have you written new tests for your core features/changes, as applicable?

@SteveMicroNova
Copy link
Contributor Author

This is a draft at the present moment as there is garbage in this PR that I am going to use the github comparison view to clean out

@SteveMicroNova SteveMicroNova marked this pull request as ready for review January 28, 2025 20:03
amplipi/ctrl.py Outdated Show resolved Hide resolved
amplipi/ctrl.py Outdated Show resolved Hide resolved
amplipi/models.py Outdated Show resolved Hide resolved
amplipi/ctrl.py Outdated Show resolved Hide resolved
Add api skip function to the frontend to help avoid race conditions

Co-authored-by: Lincoln Lorenz <[email protected]>
@SteveMicroNova
Copy link
Contributor Author

Add tests before moving on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Volume changes lag with multiple child zones
2 participants