Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

fix(core): rank Top N labels like the analytics page - #131

Open
justanotherariel wants to merge 1 commit into
mainfrom
justanotherariel-top-n-analytics-types
Open

justanotherariel wants to merge 1 commit into
mainfrom
justanotherariel-top-n-analytics-types

Conversation

@justanotherariel

Copy link
Copy Markdown
Member

Proposed change

The Top 50/100/200 labels ranked every domain in the analytics data, so built-ins such as automation, person and sensor held 14 of the top 50 places. The analytics integrations page ranks only the integration, hub, device, helper and service types from integrations.json, and the rule now does the same. On today's data unifiprotect moves from 120th to 96th, so it gets Top 100 as on the page. The ranking is cached for 12 hours because the rule now also downloads the 377 kB integrations.json.

Type of change

  • Dependency upgrade
  • Bugfix
  • New rule or command
  • New repository manifest (enable the bot on another repo)
  • New feature (which adds functionality to an existing engine)
  • Code quality improvement or refactor (incl. tests)

Additional information

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • Local tests pass (mise run test). Your PR cannot be merged unless tests pass.
  • Lint and type checks pass (mise run check).
  • The code has been formatted (mise run format).
  • Tests have been added to verify that the new code works.
  • There is no commented out or debug code in this PR.
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

If behaviour, configuration, or environment variables changed:

  • README.md and .env.example have been updated accordingly.

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