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

WIP: Refine update progress reports #443

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

joaquimrocha
Copy link
Collaborator

I have been working on this PR to make the group's stats a bit more accurate to what the user perceives: the issue is that we are gathering any instances with a certain state (downloaded/downloading/update-granted/error), regardless of whether they are updated or have updated to the version that the group declares.
This may hint, for example, that there are 3 instances downloading (the group's version), when they may be actually downloading a previous version, if the group's channel has just updated to a newer package.

Also, instances that have pinged the group and are in the group's version, will have no status change, and this showed up as "undefined" but they're actually instances that are up to date.
Another thing that's added is that there was no way to show instances that have timed out, and this patch includes those.

Important: This PR is still missing some important things beyond the charts, like having a way to filter by "time out", etc. otherwise the instances list view will not be accurate.

So this is WIP ATM.

  • groups: Replace GetGroupInstancesStats's query by goqu
  • backend: Change how the groups' stats are calculated
  • frontend: Update circular charts to the match update progress
  • frontend: Add a notice to the group's charts area if there's no version

The groups' stats were being computed without taking into account the
version of the group, so the information could be mistakenly
interpreted by users (e.g. having instances in an "update complete"
state but that being for an older version because the instances stopped
querying for updates for a while).

So this patch changes the query that performs the stats in order to show
exactly how many instances are up to date or updating to the current
version.
The update progress report has been changed to be more accurate, so this
patch also updates the group's charts to reflect that change.
Because without a version, the group's report is not accurate.
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.

1 participant