Commit f73d40a
fix(analytics): log scalar auto-inferred cubes at debug, not warn (#2223)
* chore: bump objectui to 2270239793db
feat(core,react): scoped style-object rendering (ADR-0065) (#1912)
objectui@2270239793db989e3aec2f8fccfcc1925963b2e9
* fix(analytics): log scalar auto-inferred cubes at debug, not warn
`object-metric` KPI tiles (e.g. the showcase home/My Work pages) query
analytics by the raw object name with a bare aggregate and no grouping.
No explicit Cube is registered for those names, so the service auto-infers
a trivial count/sum cube — the intended behaviour for that first-class
"metric over an object" path. Logging that at warn spams the boot/render
path ("No cube registered for showcase_task ...") for a non-problem.
Downgrade the auto-infer message to debug for scalar queries (measures
only, no `dimensions`/`timeDimensions`). Keep warn for grouped queries
over an unregistered cube, where a forgotten cube registration is a real
mistake worth surfacing.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* chore(changeset): patch @objectstack/service-analytics
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent cb82ec8 commit f73d40a
3 files changed
Lines changed: 56 additions & 3 deletions
File tree
- .changeset
- packages/services/service-analytics/src
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
645 | | - | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
646 | 654 | | |
647 | 655 | | |
648 | 656 | | |
649 | | - | |
650 | | - | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
651 | 660 | | |
652 | 661 | | |
653 | 662 | | |
| |||
0 commit comments