You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/05/02 15:21:14 UTC

[GitHub] [superset] stevetracvc opened a new pull request, #19920: fix(table viz): correctly sort by multiple columns in a table

stevetracvc opened a new pull request, #19920:
URL: https://github.com/apache/superset/pull/19920

   Recent commit to sort alphanumeric columns via case insensitive
   comparison broke the multi-column sort option. React-table only sorts
   by the second (or third...) column if the first column matches.
   Since the alphanumeric sort only returned -1 or 1, it never would move
   to the subsequent columns when the earlier column values matched.
   
   ### SUMMARY
   prior commit only returned -1 or +1, resulting in a value of -1 when two rows had the same value for a given column.
   
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   <!--- Skip this if not applicable -->
   
   ### TESTING INSTRUCTIONS
   I added a new test to check for properly sorting by multiple columns (using react-table's 
   
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [X] Has associated issue: #19919
   - [ ] Required feature flags:
   - [X] 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


[GitHub] [superset] stevetracvc commented on pull request #19920: fix(table viz): correctly sort by multiple columns in a table

Posted by GitBox <gi...@apache.org>.
stevetracvc commented on PR #19920:
URL: https://github.com/apache/superset/pull/19920#issuecomment-1115048965

   For reference, there's something on the react-table repo about this too
   
   https://github.com/TanStack/react-table/issues/3512


-- 
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


[GitHub] [superset] michael-s-molina merged pull request #19920: fix(table viz): correctly sort by multiple columns in a table

Posted by GitBox <gi...@apache.org>.
michael-s-molina merged PR #19920:
URL: https://github.com/apache/superset/pull/19920


-- 
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


[GitHub] [superset] codecov[bot] commented on pull request #19920: fix(table viz): correctly sort by multiple columns in a table

Posted by GitBox <gi...@apache.org>.
codecov[bot] commented on PR #19920:
URL: https://github.com/apache/superset/pull/19920#issuecomment-1115065512

   # [Codecov](https://codecov.io/gh/apache/superset/pull/19920?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#19920](https://codecov.io/gh/apache/superset/pull/19920?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (abbae32) into [master](https://codecov.io/gh/apache/superset/commit/aff10a7fad0b6a48c578e70d2746d04bdf4d753c?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (aff10a7) will **not change** coverage.
   > The diff coverage is `100.00%`.
   
   > :exclamation: Current head abbae32 differs from pull request most recent head 8cce51f. Consider uploading reports for the commit 8cce51f to get more accurate results
   
   ```diff
   @@           Coverage Diff           @@
   ##           master   #19920   +/-   ##
   =======================================
     Coverage   66.52%   66.52%           
   =======================================
     Files        1714     1714           
     Lines       65052    65052           
     Branches     6722     6721    -1     
   =======================================
     Hits        43279    43279           
     Misses      20061    20061           
     Partials     1712     1712           
   ```
   
   | Flag | Coverage Δ | |
   |---|---|---|
   | javascript | `51.25% <100.00%> (ø)` | |
   
   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=The+Apache+Software+Foundation#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   | [Impacted Files](https://codecov.io/gh/apache/superset/pull/19920?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [...DataTable/utils/sortAlphanumericCaseInsensitive.ts](https://codecov.io/gh/apache/superset/pull/19920/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3VwZXJzZXQtZnJvbnRlbmQvcGx1Z2lucy9wbHVnaW4tY2hhcnQtdGFibGUvc3JjL0RhdGFUYWJsZS91dGlscy9zb3J0QWxwaGFudW1lcmljQ2FzZUluc2Vuc2l0aXZlLnRz) | `100.00% <100.00%> (ø)` | |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/superset/pull/19920?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/superset/pull/19920?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). Last update [aff10a7...8cce51f](https://codecov.io/gh/apache/superset/pull/19920?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
   


-- 
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


[GitHub] [superset] stevetracvc commented on pull request #19920: fix(table viz): correctly sort by multiple columns in a table

Posted by GitBox <gi...@apache.org>.
stevetracvc commented on PR #19920:
URL: https://github.com/apache/superset/pull/19920#issuecomment-1156410253

   @stephenLYZ @kgabryje anything else you think this needs?


-- 
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