You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "michael-s-molina (via GitHub)" <gi...@apache.org> on 2023/12/27 19:26:49 UTC

[PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

michael-s-molina opened a new pull request, #26372:
URL: https://github.com/apache/superset/pull/26372

   ### SUMMARY
   As part of the [4.0 approved initiatives](https://github.com/orgs/apache/projects/292/views/1), this PR removes the deprecated GENERIC_CHART_AXES feature flag.
   
   ### TESTING INSTRUCTIONS
   CI should be sufficient for merging this PR. We'll do a complete testing of 4.0 after all approved proposals are merged.
   
   ### ADDITIONAL INFORMATION
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] 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
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "villebro (via GitHub)" <gi...@apache.org>.
villebro commented on PR #26372:
URL: https://github.com/apache/superset/pull/26372#issuecomment-1889732816

   @Vitor-Avila this should be a fairly straight forward change, and I can support you if you wish. But if you prefer I can open a PR and tag you for a review.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on code in PR #26372:
URL: https://github.com/apache/superset/pull/26372#discussion_r1453754945


##########
superset-frontend/src/explore/components/controls/DateFilterControl/DateFilterLabel.tsx:
##########
@@ -401,7 +401,7 @@ export default function DateFilterLabel(props: DateFilterControlProps) {
           ref={labelRef}
         />
       </Tooltip>
-      {/* the zIndex value is from trying so that the Modal doesn't overlay the AdhocFilter when GENERIC_CHART_AXES is enabled */}
+      {/* the zIndex value is from trying so that the Modal doesn't overlay the AdhocFilter */}

Review Comment:
   I think the developer meant that the z-index value was set, after multiple tentative values, to make sure the modal doesn't overlay the filter.
   
   Agree it's confusing 🤷🏼‍♂️ 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on PR #26372:
URL: https://github.com/apache/superset/pull/26372#issuecomment-1889676989

   hey @michael-s-molina one concern with the `GENERIC_CHART_AXES` removal, is that currently with the FF set to `True` the **TIME GRAIN** control for legacy charts is no longer visible:
   
   ![image](https://github.com/apache/superset/assets/96086495/19c44678-2fa6-4ddb-96c9-fb45754a8d61)
   
   Reported in https://github.com/apache/superset/issues/26474.
   
   Existing charts will still work, but users are no longer able to change the time grain configuration if needed. Also, new legacy charts can't be properly created without this configuration. 
   
   Given we're not yet automatically migrating all legacy charts to ECharts, the full removal of the FF would introduce this issues to Organizations still using legacy charts. 
   
   I suspect we can fix this by setting the `time_grain_sqla`'s visibility to return `true` in case we don't have an `x_axis` set in `controls` (in `superset-frontend/packages/superset-ui-chart-controls/src/shared-controls/sharedControls.tsx`). Something like this: https://github.com/apache/superset/compare/master...Vitor-Avila:superset:time-grain-legacy-charts?expand=1
   
   Unsure if we would want to fix the bug first, and then make sure it's working properly before we move forward with this removal PR, or if you would actually prefer to include the fix here. I'm also further testing that branch to confirm if additional changes would be needed.
   
   Let me know your thoughts! Happy to submit a PR from that branch.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on PR #26372:
URL: https://github.com/apache/superset/pull/26372#issuecomment-1919499796

   Woohoo!!!!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on PR #26372:
URL: https://github.com/apache/superset/pull/26372#issuecomment-1912693942

   @mistercrunch It seems the CI step called Label Migration PR is [failing](https://github.com/apache/superset/actions/runs/7673342918/job/20915775011?pr=26372). Could you take a look?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on code in PR #26372:
URL: https://github.com/apache/superset/pull/26372#discussion_r1453761846


##########
superset-frontend/src/explore/components/controls/DateFilterControl/DateFilterLabel.tsx:
##########
@@ -401,7 +401,7 @@ export default function DateFilterLabel(props: DateFilterControlProps) {
           ref={labelRef}
         />
       </Tooltip>
-      {/* the zIndex value is from trying so that the Modal doesn't overlay the AdhocFilter when GENERIC_CHART_AXES is enabled */}
+      {/* the zIndex value is from trying so that the Modal doesn't overlay the AdhocFilter */}

Review Comment:
   The problem here is that we don't have a z-index registry which would automatically resolve this type of issue. Maybe we'll have one some day.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on PR #26372:
URL: https://github.com/apache/superset/pull/26372#issuecomment-1889727780

   I feel like @villebro's suggestion seems more granular and scalable, but I'm still ramping up so I might not have the knowledge to implement it. 
   
   I thought this was mostly related with how we're checking if `time_grain_sqla` should be visible in the chart controls, but seems like it's also related with each visualization type configuration.  


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #26372:
URL: https://github.com/apache/superset/pull/26372#issuecomment-1870574804

   ## [Codecov](https://app.codecov.io/gh/apache/superset/pull/26372?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   All modified and coverable lines are covered by tests :white_check_mark:
   > Comparison is base [(`863f8bb`)](https://app.codecov.io/gh/apache/superset/commit/863f8bbbcdd078814973d444368c12e06ad0c0c0?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) 69.18% compared to head [(`29149b2`)](https://app.codecov.io/gh/apache/superset/pull/26372?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) 58.96%.
   
   
   <details><summary>Additional details and impacted files</summary>
   
   
   ```diff
   @@             Coverage Diff             @@
   ##           master   #26372       +/-   ##
   ===========================================
   - Coverage   69.18%   58.96%   -10.22%     
   ===========================================
     Files        1946     1946               
     Lines       75988    75919       -69     
     Branches     8479     8428       -51     
   ===========================================
   - Hits        52570    44769     -7801     
   - Misses      21228    28989     +7761     
   + Partials     2190     2161       -29     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/superset/pull/26372/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [hive](https://app.codecov.io/gh/apache/superset/pull/26372/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [mysql](https://app.codecov.io/gh/apache/superset/pull/26372/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [postgres](https://app.codecov.io/gh/apache/superset/pull/26372/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [presto](https://app.codecov.io/gh/apache/superset/pull/26372/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `53.64% <25.00%> (+<0.01%)` | :arrow_up: |
   | [python](https://app.codecov.io/gh/apache/superset/pull/26372/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `61.54% <100.00%> (-21.32%)` | :arrow_down: |
   | [sqlite](https://app.codecov.io/gh/apache/superset/pull/26372/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [unit](https://app.codecov.io/gh/apache/superset/pull/26372/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `55.80% <100.00%> (-0.01%)` | :arrow_down: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/superset/pull/26372?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #26372:
URL: https://github.com/apache/superset/pull/26372#issuecomment-1919252119

   Ephemeral environment shutdown and build artifacts deleted.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "geido (via GitHub)" <gi...@apache.org>.
geido commented on code in PR #26372:
URL: https://github.com/apache/superset/pull/26372#discussion_r1453721704


##########
superset-frontend/src/explore/components/controls/DateFilterControl/DateFilterLabel.tsx:
##########
@@ -401,7 +401,7 @@ export default function DateFilterLabel(props: DateFilterControlProps) {
           ref={labelRef}
         />
       </Tooltip>
-      {/* the zIndex value is from trying so that the Modal doesn't overlay the AdhocFilter when GENERIC_CHART_AXES is enabled */}
+      {/* the zIndex value is from trying so that the Modal doesn't overlay the AdhocFilter */}

Review Comment:
   Unrelated: Not sure I get the meaning of the sentence in this comment



##########
superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx:
##########
@@ -191,35 +188,41 @@ const config: ControlPanelConfig = {
           },
         ],
         [
-          hasGenericChartAxes && isAggMode
-            ? {
-                name: 'time_grain_sqla',
-                config: {
-                  ...sharedControls.time_grain_sqla,
-                  visibility: ({ controls }) => {
-                    const dttmLookup = Object.fromEntries(
-                      ensureIsArray(controls?.groupby?.options).map(option => [
-                        option.column_name,
-                        option.is_dttm,
-                      ]),
-                    );
+          {
+            name: 'time_grain_sqla',
+            config: {
+              ...sharedControls.time_grain_sqla,
+              visibility: ({ controls }) => {

Review Comment:
   Not related to this PR. These are bunch of repeated logics that we should probably centralize at some point



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on PR #26372:
URL: https://github.com/apache/superset/pull/26372#issuecomment-1889693174

   Hi @Vitor-Avila. You're correct, we should solve this in a specific PR and merge it before merging this PR. This problem was reported before and fixed for each chart that does not correctly handle both feature flag states. Check https://github.com/apache/superset/pull/26439 and https://github.com/apache/superset/pull/23865 for more context.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "sivasathyaseeelan (via GitHub)" <gi...@apache.org>.
sivasathyaseeelan commented on PR #26372:
URL: https://github.com/apache/superset/pull/26372#issuecomment-1889912263

   > @villebro @Vitor-Avila Can any of you open a PR to fix this problem? Maybe we can even ask help from @sivasathyaseeelan. I have many things on my plate right now 😢
   
   @michael-s-molina I can help you in this if you give me permission


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "geido (via GitHub)" <gi...@apache.org>.
geido commented on code in PR #26372:
URL: https://github.com/apache/superset/pull/26372#discussion_r1453720306


##########
superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx:
##########
@@ -191,35 +188,41 @@ const config: ControlPanelConfig = {
           },
         ],
         [
-          hasGenericChartAxes && isAggMode
-            ? {
-                name: 'time_grain_sqla',
-                config: {
-                  ...sharedControls.time_grain_sqla,
-                  visibility: ({ controls }) => {
-                    const dttmLookup = Object.fromEntries(
-                      ensureIsArray(controls?.groupby?.options).map(option => [
-                        option.column_name,
-                        option.is_dttm,
-                      ]),
-                    );
+          {
+            name: 'time_grain_sqla',
+            config: {
+              ...sharedControls.time_grain_sqla,
+              visibility: ({ controls }) => {

Review Comment:
   Not related to this PR. There are bunch of repeated logics between pivot table and chart table that we could probably centralize at some point



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on PR #26372:
URL: https://github.com/apache/superset/pull/26372#issuecomment-1891204128

   hey @villebro I was checking both the line and bar charts from nvd3 (the charts I reproduced the missing time grain issue), and I believe they both use the `legacyTimeseriesTime`:
   
   ``` ts
   export const legacyTimeseriesTime: ControlPanelSectionConfig = {
     ...baseTimeSection,
     controlSetRows: [
       ['granularity'],
       ['granularity_sqla'],
       ['time_grain_sqla'],
       ['time_range'],
     ],
   };
   ```
   
   I suspect the issue here is that the visibility settings for `time_grain_sqla` actually doesn't account for the scenario in which `GENERIC_CHART_AXES` is enabled but the chart doesn't have an X Axis (a legacy temporal chart):
   
   ``` ts
   const time_grain_sqla: SharedControlConfig<'SelectControl'> = {
     type: 'SelectControl',
     label: TIME_FILTER_LABELS.time_grain_sqla,
   
     ...
   
     visibility: ({ controls }) => {
       if (!hasGenericChartAxes) {
         return true;
       }
   
       const xAxis = controls?.x_axis;
       const xAxisValue = xAxis?.value;
       if (isAdhocColumn(xAxisValue)) {
         return true;
       }
       if (isPhysicalColumn(xAxisValue)) {
         return !!(xAxis?.options ?? []).find(
           (col: ColumnMeta) => col?.column_name === xAxisValue,
         )?.is_dttm;
       }
       return false;
     },
   };
   
   ```
   
   Is your suggestion to create these two new shared time sections so that legacy nvd3 charts also support X-Axis (categorical) axes? We can also sync tomorrow via Slack.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina merged PR #26372:
URL: https://github.com/apache/superset/pull/26372


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "zhaoyongjie (via GitHub)" <gi...@apache.org>.
zhaoyongjie commented on code in PR #26372:
URL: https://github.com/apache/superset/pull/26372#discussion_r1453750978


##########
superset-frontend/src/explore/components/controls/DateFilterControl/DateFilterLabel.tsx:
##########
@@ -401,7 +401,7 @@ export default function DateFilterLabel(props: DateFilterControlProps) {
           ref={labelRef}
         />
       </Tooltip>
-      {/* the zIndex value is from trying so that the Modal doesn't overlay the AdhocFilter when GENERIC_CHART_AXES is enabled */}
+      {/* the zIndex value is from trying so that the Modal doesn't overlay the AdhocFilter */}

Review Comment:
   @geido The z-index value comes from _trying_, I'm not sure what's value is an appreciate value when I made this function.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on PR #26372:
URL: https://github.com/apache/superset/pull/26372#issuecomment-1885734428

   Cypress Tests LGTM.... I can hit the code owner approval button, but might like to have a more holistic review/approval first.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on PR #26372:
URL: https://github.com/apache/superset/pull/26372#issuecomment-1914809203

   /testenv up


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "yousoph (via GitHub)" <gi...@apache.org>.
yousoph commented on PR #26372:
URL: https://github.com/apache/superset/pull/26372#issuecomment-1879326323

   We have some small improvements/fixes that we are planning to work on to help unblock some of our users from being able to enable the GENERIC_CHART_AXES flag. It would be appreciated if we could hold on merging this  PR near the end of the breaking change window for Superset 4.0 so that we can get our changes completed first :) Thanks!! 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "villebro (via GitHub)" <gi...@apache.org>.
villebro commented on PR #26372:
URL: https://github.com/apache/superset/pull/26372#issuecomment-1889697330

   I suggest we introduce two new shared time sections for legacy charts:
   - one that works with temporal charts (=has time grain)
   - one that works with non-temporal charts
   
   Essentially these would be the same as `genericTime` and `legacyRegularTime`, but without the check for `hasGenericChartAxes`. These could then be used on legacy charts that don't want to support generic x-axis. These could then be removed once the last legacy chart has been removed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on PR #26372:
URL: https://github.com/apache/superset/pull/26372#issuecomment-1889714681

   @villebro @Vitor-Avila Can any of you open a PR to fix this problem? Maybe we can even ask help from @sivasathyaseeelan. I have many things on my plate right now 😢 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on code in PR #26372:
URL: https://github.com/apache/superset/pull/26372#discussion_r1453745567


##########
superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx:
##########
@@ -191,35 +188,41 @@ const config: ControlPanelConfig = {
           },
         ],
         [
-          hasGenericChartAxes && isAggMode
-            ? {
-                name: 'time_grain_sqla',
-                config: {
-                  ...sharedControls.time_grain_sqla,
-                  visibility: ({ controls }) => {
-                    const dttmLookup = Object.fromEntries(
-                      ensureIsArray(controls?.groupby?.options).map(option => [
-                        option.column_name,
-                        option.is_dttm,
-                      ]),
-                    );
+          {
+            name: 'time_grain_sqla',
+            config: {
+              ...sharedControls.time_grain_sqla,
+              visibility: ({ controls }) => {

Review Comment:
   True. I also noticed many repeated code between ECharts plugins. I'm delaying removing this repetition until after the migrations because I think we'll have a better overview of the common patterns.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "geido (via GitHub)" <gi...@apache.org>.
geido commented on code in PR #26372:
URL: https://github.com/apache/superset/pull/26372#discussion_r1453720306


##########
superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx:
##########
@@ -191,35 +188,41 @@ const config: ControlPanelConfig = {
           },
         ],
         [
-          hasGenericChartAxes && isAggMode
-            ? {
-                name: 'time_grain_sqla',
-                config: {
-                  ...sharedControls.time_grain_sqla,
-                  visibility: ({ controls }) => {
-                    const dttmLookup = Object.fromEntries(
-                      ensureIsArray(controls?.groupby?.options).map(option => [
-                        option.column_name,
-                        option.is_dttm,
-                      ]),
-                    );
+          {
+            name: 'time_grain_sqla',
+            config: {
+              ...sharedControls.time_grain_sqla,
+              visibility: ({ controls }) => {

Review Comment:
   Not related to this PR. There are bunch of repeated logics between pivot table, chart table, and Box Plot that we could probably centralize at some point



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] refactor: Removes the deprecated GENERIC_CHART_AXES feature flag [superset]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #26372:
URL: https://github.com/apache/superset/pull/26372#issuecomment-1914813036

   @michael-s-molina Ephemeral environment spinning up at http://35.89.141.221:8080. Credentials are `admin`/`admin`. Please allow several minutes for bootstrapping and startup.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org