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 2024/01/26 14:30:51 UTC

[PR] fix(time-series table): Can't compare from the beginning of the time range [superset]

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

   ### SUMMARY
   When using the Time-series table chart, many times users want to compare the current value of a metric with the beginning of the time range. The problem is that the time lag is a fixed number of periods calculated from the last data point, and as time advances, users lose the initial reference, making it impossible to compare a value agains the beginning of the time range. This PR fixes this problem by allowing negative time lag values which will calculate the time period starting from the beginning of the time range, increasing the chart's flexibility. 
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   https://github.com/apache/superset/assets/70410625/dd5daaab-7573-4c5e-a94c-f8a330837d25
   
   ### TESTING INSTRUCTIONS
   Check the video for instructions.
   
   ### 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] fix(time-series table): Can't compare from the beginning of the time range [superset]

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


-- 
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] fix(time-series table): Can't compare from the beginning of the time range [superset]

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

   ## [Codecov](https://app.codecov.io/gh/apache/superset/pull/26814?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   Attention: `3 lines` in your changes are missing coverage. Please review.
   > Comparison is base [(`23460b2`)](https://app.codecov.io/gh/apache/superset/commit/23460b21f693f51d67bd68d62276dfd12e9e53f0?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) 67.22% compared to head [(`950ce6a`)](https://app.codecov.io/gh/apache/superset/pull/26814?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) 67.22%.
   > Report is 1 commits behind head on master.
   
   | [Files](https://app.codecov.io/gh/apache/superset/pull/26814?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
   |---|---|---|
   | [...rontend/src/visualizations/TimeTable/TimeTable.jsx](https://app.codecov.io/gh/apache/superset/pull/26814?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL3Zpc3VhbGl6YXRpb25zL1RpbWVUYWJsZS9UaW1lVGFibGUuanN4) | 0.00% | [3 Missing :warning: ](https://app.codecov.io/gh/apache/superset/pull/26814?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   
   <details><summary>Additional details and impacted files</summary>
   
   
   ```diff
   @@            Coverage Diff             @@
   ##           master   #26814      +/-   ##
   ==========================================
   - Coverage   67.22%   67.22%   -0.01%     
   ==========================================
     Files        1894     1894              
     Lines       74191    74194       +3     
     Branches     8245     8245              
   ==========================================
   + Hits        49876    49877       +1     
   - Misses      22243    22245       +2     
     Partials     2072     2072              
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/superset/pull/26814/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [javascript](https://app.codecov.io/gh/apache/superset/pull/26814/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `56.98% <0.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/26814?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