diff --git a/UPDATING.md b/UPDATING.md index 392e0cbb44725..b680f2701c395 100644 --- a/UPDATING.md +++ b/UPDATING.md @@ -23,7 +23,7 @@ This file documents any backwards-incompatible changes in Superset and assists people when migrating to a new version. ## Next - +- [31774](https://github.com/apache/superset/pull/31774): Fixes the spelling of the `USE-ANALAGOUS-COLORS` feature flag. Please update any scripts/configuration item to use the new/corrected `USE-ANALOGOUS-COLORS` flag spelling. - [31582](https://github.com/apache/superset/pull/31582) Removed the legacy Area, Bar, Event Flow, Heatmap, Histogram, Line, Sankey, and Sankey Loop charts. They were all automatically migrated to their ECharts counterparts with the exception of the Event Flow and Sankey Loop charts which were removed as they were not actively maintained and not widely used. If you were using the Event Flow or Sankey Loop charts, you will need to find an alternative solution. - [31198](https://github.com/apache/superset/pull/31198) Disallows by default the use of the following ClickHouse functions: "version", "currentDatabase", "hostName". - [29798](https://github.com/apache/superset/pull/29798) Since 3.1.0, the intial schedule for an alert or report was mistakenly offset by the specified timezone's relation to UTC. The initial schedule should now begin at the correct time. diff --git a/superset-frontend/packages/superset-ui-core/src/color/CategoricalColorScale.ts b/superset-frontend/packages/superset-ui-core/src/color/CategoricalColorScale.ts index 707ae3d4afd66..53a5b855bf87e 100644 --- a/superset-frontend/packages/superset-ui-core/src/color/CategoricalColorScale.ts +++ b/superset-frontend/packages/superset-ui-core/src/color/CategoricalColorScale.ts @@ -65,7 +65,7 @@ class CategoricalColorScale extends ExtensibleFunction { ); // holds original color scheme colors this.originColors = colors; - // holds the extended color range (includes analagous colors) + // holds the extended color range (includes analogous colors) this.colors = colors; // holds the values of this specific slice (label+color) this.chartLabelsColorMap = new Map(); @@ -139,7 +139,7 @@ class CategoricalColorScale extends ExtensibleFunction { // a forced color will always be used independently of the usage count if (!forcedColor && !isExistingLabel) { - if (isFeatureEnabled(FeatureFlag.UseAnalagousColors)) { + if (isFeatureEnabled(FeatureFlag.UseAnalogousColors)) { this.incrementColorRange(); } if ( diff --git a/superset-frontend/packages/superset-ui-core/src/utils/featureFlags.ts b/superset-frontend/packages/superset-ui-core/src/utils/featureFlags.ts index e20d94c7d8549..3bf3c0c6e394a 100644 --- a/superset-frontend/packages/superset-ui-core/src/utils/featureFlags.ts +++ b/superset-frontend/packages/superset-ui-core/src/utils/featureFlags.ts @@ -58,7 +58,7 @@ export enum FeatureFlag { SshTunneling = 'SSH_TUNNELING', TaggingSystem = 'TAGGING_SYSTEM', Thumbnails = 'THUMBNAILS', - UseAnalagousColors = 'USE_ANALAGOUS_COLORS', + UseAnalogousColors = 'USE_ANALOGOUS_COLORS', ForceSqlLabRunAsync = 'SQLLAB_FORCE_RUN_ASYNC', SlackEnableAvatars = 'SLACK_ENABLE_AVATARS', EnableDashboardScreenshotEndpoints = 'ENABLE_DASHBOARD_SCREENSHOT_ENDPOINTS', diff --git a/superset-frontend/packages/superset-ui-core/test/color/CategoricalColorScale.test.ts b/superset-frontend/packages/superset-ui-core/test/color/CategoricalColorScale.test.ts index 9ba4bcc5b01a4..dbd72881a706f 100644 --- a/superset-frontend/packages/superset-ui-core/test/color/CategoricalColorScale.test.ts +++ b/superset-frontend/packages/superset-ui-core/test/color/CategoricalColorScale.test.ts @@ -165,7 +165,7 @@ describe('CategoricalColorScale', () => { }); it('get analogous colors when number of items exceed available colors', () => { window.featureFlags = { - [FeatureFlag.UseAnalagousColors]: true, + [FeatureFlag.UseAnalogousColors]: true, }; const scale = new CategoricalColorScale(['blue', 'red', 'green']); scale.getColor('pig'); diff --git a/superset-frontend/packages/superset-ui-core/test/color/LabelsColorMapSingleton.test.ts b/superset-frontend/packages/superset-ui-core/test/color/LabelsColorMapSingleton.test.ts index 24521d2d9dbb0..c4ac0e4ff31a2 100644 --- a/superset-frontend/packages/superset-ui-core/test/color/LabelsColorMapSingleton.test.ts +++ b/superset-frontend/packages/superset-ui-core/test/color/LabelsColorMapSingleton.test.ts @@ -212,7 +212,7 @@ describe('LabelsColorMap', () => { it('should use recycle colors', () => { window.featureFlags = { - [FeatureFlag.UseAnalagousColors]: false, + [FeatureFlag.UseAnalogousColors]: false, }; labelsColorMap.addSlice('a', 'red', 1); labelsColorMap.addSlice('b', 'blue', 2); @@ -224,9 +224,9 @@ describe('LabelsColorMap', () => { expect(getAnalogousColorsSpy).not.toHaveBeenCalled(); }); - it('should use analagous colors', () => { + it('should use analogous colors', () => { window.featureFlags = { - [FeatureFlag.UseAnalagousColors]: true, + [FeatureFlag.UseAnalogousColors]: true, }; labelsColorMap.addSlice('a', 'red', 1); diff --git a/superset/config.py b/superset/config.py index f36ffade3cfed..7ab30185bceb4 100644 --- a/superset/config.py +++ b/superset/config.py @@ -513,7 +513,7 @@ class D3TimeFormat(TypedDict, total=False): # This could cause the server to run out of memory or compute. "ALLOW_FULL_CSV_EXPORT": False, "ALLOW_ADHOC_SUBQUERY": False, - "USE_ANALAGOUS_COLORS": False, + "USE_ANALOGOUS_COLORS": False, # Apply RLS rules to SQL Lab queries. This requires parsing and manipulating the # query, and might break queries and/or allow users to bypass RLS. Use with care! "RLS_IN_SQLLAB": False,