Skip to content

test(semantic-layer): pin review follow-ups for dashboard and Explore fixes - #46364

Merged
mikebridge merged 2 commits into
apache:masterfrom
mikebridge:test-semantic-launch-fix-followups
Nov 19, 2026
Merged

mikebridge merged 2 commits into
apache:masterfrom
mikebridge:test-semantic-launch-fix-followups

Conversation

@mikebridge

Copy link
Copy Markdown
Member

SUMMARY

TL;DR: Strengthen tests for recently merged dashboard and Explore fixes, remove redundant test cases, and clarify one developer-guide sentence. No production behavior changes.

Follow-up What this pins or clarifies
#46329 Real select-plugin default-first selection emits a value; ordinary dataset filters remain excluded from semantic charts.
#46337 Labelled Time axes retain the underlying column in temporal cross-filters and single/mixed-chart Drill to detail.
#46343 The guide names the Group remaining as "Others" control explicitly.
#46336 Collapse saved/unsaved menu cases that execute identical code; retain semantic-view, table and query coverage.
#46330 Query-kind datasources do not look up SQL-dataset RLS metadata, even when numeric IDs match; SQL-table positive control remains.
#46339 A query-level grain without a temporal axis is refused even when text grain variants are advertised; narrow the bounded-axis test docstring.
#46315 Display-control saves render the actual 400 validation-dictionary shape, alongside the filter endpoint's 422 shape.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Not applicable: tests and documentation only.

TESTING INSTRUCTIONS

  • Run Jest for FilterValue.test.tsx, useFilterConfigModal.test.tsx, DatasourceControl.test.tsx and plugins/plugin-chart-echarts/test/Timeseries/axisColumn.test.tsx: 97 tests passed.
  • Run pytest for tests/unit_tests/commands/explore/test_get_explore_rls.py and tests/unit_tests/semantic_layers/mapper_test.py: 491 tests passed.
  • Changed-file pre-commit checks passed, including MyPy and frontend type checking.
  • Temporarily reverted the relevant production guards/column expressions/error normalization and observed the new assertions fail, then restored the production files byte-for-byte and reran green. Separately disabled the real plugin's default-first branch and observed its auto-selection test fail. Production reversions are not included in this PR.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@github-actions github-actions Bot added doc Namespace | Anything related to documentation plugins labels Nov 19, 2026
@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.60%. Comparing base (5c617f7) to head (27d14df).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #46364      +/-   ##
==========================================
+ Coverage   85.58%   85.60%   +0.02%     
==========================================
  Files        3107     3107              
  Lines      214487   214487              
  Branches    50709    50709              
==========================================
+ Hits       183565   183615      +50     
+ Misses      27492    27452      -40     
+ Partials     3430     3420      -10     
Flag Coverage Δ
hive 33.99% <ø> (ø)
javascript 82.25% <ø> (+0.01%) ⬆️
mysql 51.65% <ø> (ø)
postgres 51.68% <ø> (?)
presto 35.68% <ø> (ø)
python 88.25% <ø> (+0.03%) ⬆️
sqlite 51.36% <ø> (?)
unit 83.46% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mikebridge
mikebridge marked this pull request as ready for review November 19, 2026 11:15
@codeant-ai-for-open-source

codeant-ai-for-open-source Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

CodeAnt  CodeAnt PR Risk

🟢  Low Risk

  • The PR appears safe to merge; the temporal click path is independently checked for the exact month range, while this test covers labelled-axis identity.

Assessed commit: 27d14df432f3

@aminghadersohi aminghadersohi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new cases fail when the production guards they pin are removed; one comment is inaccurate.

Nit: useFilterConfigModal.test.tsx:142: both endpoints return 400 for schema errors and 422 for dataset validation.

@mikebridge
mikebridge merged commit 264b16f into apache:master Nov 19, 2026
80 checks passed
hainenber pushed a commit that referenced this pull request Nov 21, 2026
… fixes (#46364)

Co-authored-by: Mike Bridge <michael.bridge@ext.preset.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Namespace | Anything related to documentation plugins size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants