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 2021/01/26 17:47:43 UTC
[GitHub] [superset] michael-s-molina opened a new pull request #12774: refactor: Bootstrap to AntD - Label
michael-s-molina opened a new pull request #12774:
URL: https://github.com/apache/superset/pull/12774
### SUMMARY
- Migrates Label component from Bootstrap to AntD.
- Removes unused properties.
- Add typescript checking to `bsStyle` property.
- Improves CSS readability.
- Modifies storybook to use controls instead of handles.
- Updates tests.
See: #10254
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
<img width="575" alt="Screen Shot 2021-01-26 at 2 09 26 PM" src="https://user-images.githubusercontent.com/70410625/105881857-c7d87a00-5fe3-11eb-9b11-bcf012941ae8.png">
<img width="539" alt="Screen Shot 2021-01-26 at 2 28 45 PM" src="https://user-images.githubusercontent.com/70410625/105881877-cdce5b00-5fe3-11eb-8ffb-1adb320a3ce9.png">
<img width="308" alt="Screen Shot 2021-01-26 at 2 10 08 PM" src="https://user-images.githubusercontent.com/70410625/105881861-c9a23d80-5fe3-11eb-82ee-d4cf272eb3aa.png">
<img width="306" alt="Screen Shot 2021-01-26 at 2 27 07 PM" src="https://user-images.githubusercontent.com/70410625/105881872-cd35c480-5fe3-11eb-86fa-13d6013508be.png">
<img width="886" alt="Screen Shot 2021-01-26 at 2 27 29 PM" src="https://user-images.githubusercontent.com/70410625/105881875-cd35c480-5fe3-11eb-9b29-22687e5c44e1.png">
<img width="883" alt="Screen Shot 2021-01-26 at 2 12 56 PM" src="https://user-images.githubusercontent.com/70410625/105881866-cb6c0100-5fe3-11eb-8c24-3decfe14468b.png">
<img width="1157" alt="Screen Shot 2021-01-26 at 2 10 59 PM" src="https://user-images.githubusercontent.com/70410625/105881863-ca3ad400-5fe3-11eb-8d62-efd9fc471f80.png">
<img width="1153" alt="Screen Shot 2021-01-26 at 2 26 49 PM" src="https://user-images.githubusercontent.com/70410625/105881869-cc049780-5fe3-11eb-9034-cefa67895815.png">
@rusackas @junlincc
### TEST PLAN
1 - Open any screen that contains a label (explore, profile, dashboards, etc.)
2 - All labels should have the same theme and behavior
3 - Additional testing can be done using Storybook
### ADDITIONAL INFORMATION
- [ ] Has associated issue:
- [x] Changes UI
- [ ] Requires DB Migration.
- [ ] Confirm DB Migration upgrade and downgrade tested.
- [ ] 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.
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 commented on pull request #12774: refactor: Bootstrap to AntD - Label
Posted by GitBox <gi...@apache.org>.
michael-s-molina commented on pull request #12774:
URL: https://github.com/apache/superset/pull/12774#issuecomment-768430120
> I can see that Database label is a little bit moved. On master is straight.
> <img alt="Zrzut ekranu 2021-01-27 o 17 12 48" width="1424" src="https://user-images.githubusercontent.com/25153919/106024931-8a015180-60c8-11eb-9253-044c7179e83c.png">
> No other info found. @junlincc Could you set priority on this?
@adam-stasiak Thank you so much for reviewing! I'll wait until the end of today to see if you find anything else so I can commit the fixes only once.
----------------------------------------------------------------
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.
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] adam-stasiak commented on pull request #12774: refactor: Bootstrap to AntD - Label
Posted by GitBox <gi...@apache.org>.
adam-stasiak commented on pull request #12774:
URL: https://github.com/apache/superset/pull/12774#issuecomment-768424793
I can see that Database label is a little bit moved. On master is straight.
<img width="1424" alt="Zrzut ekranu 2021-01-27 o 17 12 48" src="https://user-images.githubusercontent.com/25153919/106024931-8a015180-60c8-11eb-9253-044c7179e83c.png">
----------------------------------------------------------------
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.
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-io edited a comment on pull request #12774: refactor: Bootstrap to AntD - Label
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on pull request #12774:
URL: https://github.com/apache/superset/pull/12774#issuecomment-767814574
# [Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=h1) Report
> Merging [#12774](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=desc) (be737c2) into [master](https://codecov.io/gh/apache/superset/commit/49e6e420da517e7348599a53722afc8ab2231559?el=desc) (49e6e42) will **decrease** coverage by `3.61%`.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #12774 +/- ##
==========================================
- Coverage 66.99% 63.38% -3.62%
==========================================
Files 1022 488 -534
Lines 50049 30127 -19922
Branches 4914 0 -4914
==========================================
- Hits 33532 19096 -14436
+ Misses 16393 11031 -5362
+ Partials 124 0 -124
```
| Flag | Coverage Δ | |
|---|---|---|
| cypress | `?` | |
| javascript | `?` | |
| python | `63.38% <ø> (-0.71%)` | :arrow_down: |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags#carryforward-flags-in-the-pull-request-comment) to find out more.
| [Impacted Files](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [superset/db\_engines/hive.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGJfZW5naW5lcy9oaXZlLnB5) | `0.00% <0.00%> (-85.72%)` | :arrow_down: |
| [superset/sql\_validators/postgres.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvc3FsX3ZhbGlkYXRvcnMvcG9zdGdyZXMucHk=) | `50.00% <0.00%> (-50.00%)` | :arrow_down: |
| [superset/db\_engine\_specs/hive.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGJfZW5naW5lX3NwZWNzL2hpdmUucHk=) | `73.84% <0.00%> (-17.31%)` | :arrow_down: |
| [superset/utils/cache.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvdXRpbHMvY2FjaGUucHk=) | `76.34% <0.00%> (-8.77%)` | :arrow_down: |
| [superset/databases/commands/create.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGF0YWJhc2VzL2NvbW1hbmRzL2NyZWF0ZS5weQ==) | `83.67% <0.00%> (-8.17%)` | :arrow_down: |
| [superset/databases/commands/update.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGF0YWJhc2VzL2NvbW1hbmRzL3VwZGF0ZS5weQ==) | `85.71% <0.00%> (-8.17%)` | :arrow_down: |
| [superset/connectors/sqla/models.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvY29ubmVjdG9ycy9zcWxhL21vZGVscy5weQ==) | `84.31% <0.00%> (-6.28%)` | :arrow_down: |
| [superset/db\_engine\_specs/sqlite.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGJfZW5naW5lX3NwZWNzL3NxbGl0ZS5weQ==) | `90.62% <0.00%> (-6.25%)` | :arrow_down: |
| [superset/databases/commands/test\_connection.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGF0YWJhc2VzL2NvbW1hbmRzL3Rlc3RfY29ubmVjdGlvbi5weQ==) | `84.78% <0.00%> (-4.35%)` | :arrow_down: |
| [superset/utils/celery.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvdXRpbHMvY2VsZXJ5LnB5) | `96.42% <0.00%> (-3.58%)` | :arrow_down: |
| ... and [533 more](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=footer). Last update [49e6e42...be737c2](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
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.
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] rusackas commented on a change in pull request #12774: refactor: Bootstrap to AntD - Label
Posted by GitBox <gi...@apache.org>.
rusackas commented on a change in pull request #12774:
URL: https://github.com/apache/superset/pull/12774#discussion_r565088916
##########
File path: superset-frontend/src/components/Label/index.tsx
##########
@@ -17,149 +17,98 @@
* under the License.
*/
import React, { CSSProperties } from 'react';
-import { Label as BootstrapLabel } from 'react-bootstrap';
-import { styled } from '@superset-ui/core';
-import cx from 'classnames';
+import { Tag } from 'src/common/components';
+import { useTheme } from '@superset-ui/core';
-export type OnClickHandler = React.MouseEventHandler<BootstrapLabel>;
+export type OnClickHandler = React.MouseEventHandler<HTMLElement>;
+
+export type BsStyle =
Review comment:
The name BsStyle/bsStyle is a reference to bootstrap. Now that it's out of the picture, we can rename this globaly to something more general, like type/variant/style/etc.
----------------------------------------------------------------
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.
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] adam-stasiak edited a comment on pull request #12774: refactor: Bootstrap to AntD - Label
Posted by GitBox <gi...@apache.org>.
adam-stasiak edited a comment on pull request #12774:
URL: https://github.com/apache/superset/pull/12774#issuecomment-768424793
I can see that Database label is a little bit moved. On master is straight.
<img width="1424" alt="Zrzut ekranu 2021-01-27 o 17 12 48" src="https://user-images.githubusercontent.com/25153919/106024931-8a015180-60c8-11eb-9253-044c7179e83c.png">
No other info found. @junlincc Could you set priority on this?
----------------------------------------------------------------
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.
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-io commented on pull request #12774: refactor: Bootstrap to AntD - Label
Posted by GitBox <gi...@apache.org>.
codecov-io commented on pull request #12774:
URL: https://github.com/apache/superset/pull/12774#issuecomment-767814574
# [Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=h1) Report
> Merging [#12774](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=desc) (656fec2) into [master](https://codecov.io/gh/apache/superset/commit/017f11f9d84ac88019a6c42eb65a67b617966e95?el=desc) (017f11f) will **increase** coverage by `0.25%`.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #12774 +/- ##
==========================================
+ Coverage 63.13% 63.39% +0.25%
==========================================
Files 1022 488 -534
Lines 50032 30115 -19917
Branches 4915 0 -4915
==========================================
- Hits 31587 19090 -12497
+ Misses 18245 11025 -7220
+ Partials 200 0 -200
```
| Flag | Coverage Δ | |
|---|---|---|
| javascript | `?` | |
| python | `63.39% <ø> (-0.71%)` | :arrow_down: |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags#carryforward-flags-in-the-pull-request-comment) to find out more.
| [Impacted Files](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [superset/sql\_validators/postgres.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvc3FsX3ZhbGlkYXRvcnMvcG9zdGdyZXMucHk=) | `50.00% <0.00%> (-50.00%)` | :arrow_down: |
| [superset/views/database/views.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvdmlld3MvZGF0YWJhc2Uvdmlld3MucHk=) | `62.50% <0.00%> (-25.07%)` | :arrow_down: |
| [superset/databases/commands/create.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGF0YWJhc2VzL2NvbW1hbmRzL2NyZWF0ZS5weQ==) | `83.67% <0.00%> (-8.17%)` | :arrow_down: |
| [superset/databases/commands/update.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGF0YWJhc2VzL2NvbW1hbmRzL3VwZGF0ZS5weQ==) | `85.71% <0.00%> (-8.17%)` | :arrow_down: |
| [superset/sql\_validators/base.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvc3FsX3ZhbGlkYXRvcnMvYmFzZS5weQ==) | `93.33% <0.00%> (-6.67%)` | :arrow_down: |
| [superset/db\_engine\_specs/base.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGJfZW5naW5lX3NwZWNzL2Jhc2UucHk=) | `79.59% <0.00%> (-6.38%)` | :arrow_down: |
| [superset/db\_engine\_specs/presto.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGJfZW5naW5lX3NwZWNzL3ByZXN0by5weQ==) | `82.25% <0.00%> (-6.28%)` | :arrow_down: |
| [superset/db\_engine\_specs/sqlite.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGJfZW5naW5lX3NwZWNzL3NxbGl0ZS5weQ==) | `90.62% <0.00%> (-6.25%)` | :arrow_down: |
| [superset/views/database/forms.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvdmlld3MvZGF0YWJhc2UvZm9ybXMucHk=) | `83.33% <0.00%> (-5.56%)` | :arrow_down: |
| [superset/databases/commands/test\_connection.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGF0YWJhc2VzL2NvbW1hbmRzL3Rlc3RfY29ubmVjdGlvbi5weQ==) | `84.78% <0.00%> (-4.35%)` | :arrow_down: |
| ... and [540 more](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=footer). Last update [017f11f...656fec2](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
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.
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 removed a comment on pull request #12774: refactor: Bootstrap to AntD - Label
Posted by GitBox <gi...@apache.org>.
michael-s-molina removed a comment on pull request #12774:
URL: https://github.com/apache/superset/pull/12774#issuecomment-768430120
> I can see that Database label is a little bit moved. On master is straight.
> <img alt="Zrzut ekranu 2021-01-27 o 17 12 48" width="1424" src="https://user-images.githubusercontent.com/25153919/106024931-8a015180-60c8-11eb-9253-044c7179e83c.png">
> No other info found. @junlincc Could you set priority on this?
@adam-stasiak Thank you so much for reviewing! I'll wait until the end of today to see if you find anything else so I can commit the fixes only once.
----------------------------------------------------------------
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.
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-io edited a comment on pull request #12774: refactor: Bootstrap to AntD - Label
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on pull request #12774:
URL: https://github.com/apache/superset/pull/12774#issuecomment-767814574
# [Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=h1) Report
> Merging [#12774](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=desc) (993024c) into [master](https://codecov.io/gh/apache/superset/commit/49e6e420da517e7348599a53722afc8ab2231559?el=desc) (49e6e42) will **decrease** coverage by `3.97%`.
> The diff coverage is `93.33%`.
[](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #12774 +/- ##
==========================================
- Coverage 66.99% 63.02% -3.98%
==========================================
Files 1022 1022
Lines 50049 50014 -35
Branches 4914 4899 -15
==========================================
- Hits 33532 31520 -2012
- Misses 16393 18294 +1901
- Partials 124 200 +76
```
| Flag | Coverage Δ | |
|---|---|---|
| cypress | `?` | |
| javascript | `61.64% <93.33%> (-0.04%)` | :arrow_down: |
| python | `63.93% <ø> (-0.16%)` | :arrow_down: |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags#carryforward-flags-in-the-pull-request-comment) to find out more.
| [Impacted Files](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...rset-frontend/src/SqlLab/components/QueryTable.jsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL1NxbExhYi9jb21wb25lbnRzL1F1ZXJ5VGFibGUuanN4) | `66.66% <ø> (ø)` | |
| [...erset-frontend/src/SqlLab/components/SouthPane.jsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL1NxbExhYi9jb21wb25lbnRzL1NvdXRoUGFuZS5qc3g=) | `82.05% <ø> (ø)` | |
| [...erset-frontend/src/SqlLab/components/SqlEditor.jsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL1NxbExhYi9jb21wb25lbnRzL1NxbEVkaXRvci5qc3g=) | `54.67% <ø> (-1.41%)` | :arrow_down: |
| [...perset-frontend/src/addSlice/AddSliceContainer.tsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2FkZFNsaWNlL0FkZFNsaWNlQ29udGFpbmVyLnRzeA==) | `75.86% <ø> (ø)` | |
| [superset-frontend/src/common/components/index.tsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2NvbW1vbi9jb21wb25lbnRzL2luZGV4LnRzeA==) | `100.00% <ø> (ø)` | |
| [...erset-frontend/src/components/DatabaseSelector.tsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2NvbXBvbmVudHMvRGF0YWJhc2VTZWxlY3Rvci50c3g=) | `88.29% <ø> (-2.13%)` | :arrow_down: |
| [...-frontend/src/explore/components/RowCountLabel.jsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2V4cGxvcmUvY29tcG9uZW50cy9Sb3dDb3VudExhYmVsLmpzeA==) | `100.00% <ø> (ø)` | |
| [...perset-frontend/src/views/CRUD/chart/ChartCard.tsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL3ZpZXdzL0NSVUQvY2hhcnQvQ2hhcnRDYXJkLnRzeA==) | `72.22% <ø> (-8.34%)` | :arrow_down: |
| [...et-frontend/src/components/Label/Label.stories.tsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2NvbXBvbmVudHMvTGFiZWwvTGFiZWwuc3Rvcmllcy50c3g=) | `76.92% <66.66%> (-6.42%)` | :arrow_down: |
| [...frontend/src/SqlLab/components/QueryStateLabel.jsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL1NxbExhYi9jb21wb25lbnRzL1F1ZXJ5U3RhdGVMYWJlbC5qc3g=) | `100.00% <100.00%> (ø)` | |
| ... and [207 more](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=footer). Last update [49e6e42...993024c](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
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.
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 commented on pull request #12774: refactor: Bootstrap to AntD - Label
Posted by GitBox <gi...@apache.org>.
michael-s-molina commented on pull request #12774:
URL: https://github.com/apache/superset/pull/12774#issuecomment-768514528
@adam-stasiak Thank you so much for reviewing! Fixed!
----------------------------------------------------------------
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.
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-io edited a comment on pull request #12774: refactor: Bootstrap to AntD - Label
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on pull request #12774:
URL: https://github.com/apache/superset/pull/12774#issuecomment-767814574
# [Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=h1) Report
> Merging [#12774](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=desc) (656fec2) into [master](https://codecov.io/gh/apache/superset/commit/017f11f9d84ac88019a6c42eb65a67b617966e95?el=desc) (017f11f) will **increase** coverage by `0.66%`.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #12774 +/- ##
==========================================
+ Coverage 63.13% 63.79% +0.66%
==========================================
Files 1022 488 -534
Lines 50032 30115 -19917
Branches 4915 0 -4915
==========================================
- Hits 31587 19212 -12375
+ Misses 18245 10903 -7342
+ Partials 200 0 -200
```
| Flag | Coverage Δ | |
|---|---|---|
| javascript | `?` | |
| python | `63.79% <ø> (-0.30%)` | :arrow_down: |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags#carryforward-flags-in-the-pull-request-comment) to find out more.
| [Impacted Files](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [superset/sql\_validators/postgres.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvc3FsX3ZhbGlkYXRvcnMvcG9zdGdyZXMucHk=) | `50.00% <0.00%> (-50.00%)` | :arrow_down: |
| [superset/databases/commands/create.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGF0YWJhc2VzL2NvbW1hbmRzL2NyZWF0ZS5weQ==) | `83.67% <0.00%> (-8.17%)` | :arrow_down: |
| [superset/databases/commands/update.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGF0YWJhc2VzL2NvbW1hbmRzL3VwZGF0ZS5weQ==) | `85.71% <0.00%> (-8.17%)` | :arrow_down: |
| [superset/db\_engine\_specs/sqlite.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGJfZW5naW5lX3NwZWNzL3NxbGl0ZS5weQ==) | `90.62% <0.00%> (-6.25%)` | :arrow_down: |
| [superset/databases/commands/test\_connection.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGF0YWJhc2VzL2NvbW1hbmRzL3Rlc3RfY29ubmVjdGlvbi5weQ==) | `84.78% <0.00%> (-4.35%)` | :arrow_down: |
| [superset/utils/celery.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvdXRpbHMvY2VsZXJ5LnB5) | `96.42% <0.00%> (-3.58%)` | :arrow_down: |
| [superset/models/core.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvbW9kZWxzL2NvcmUucHk=) | `85.86% <0.00%> (-2.99%)` | :arrow_down: |
| [superset/views/core.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvdmlld3MvY29yZS5weQ==) | `72.93% <0.00%> (-2.46%)` | :arrow_down: |
| [superset/db\_engine\_specs/mysql.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGJfZW5naW5lX3NwZWNzL215c3FsLnB5) | `89.79% <0.00%> (-2.05%)` | :arrow_down: |
| [superset/datasets/api.py](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGF0YXNldHMvYXBpLnB5) | `89.49% <0.00%> (-1.83%)` | :arrow_down: |
| ... and [537 more](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=footer). Last update [017f11f...656fec2](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
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.
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] rusackas merged pull request #12774: refactor: Bootstrap to AntD - Label
Posted by GitBox <gi...@apache.org>.
rusackas merged pull request #12774:
URL: https://github.com/apache/superset/pull/12774
----------------------------------------------------------------
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.
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] rusackas commented on a change in pull request #12774: refactor: Bootstrap to AntD - Label
Posted by GitBox <gi...@apache.org>.
rusackas commented on a change in pull request #12774:
URL: https://github.com/apache/superset/pull/12774#discussion_r565094868
##########
File path: superset-frontend/src/components/Label/index.tsx
##########
@@ -17,149 +17,98 @@
* under the License.
*/
import React, { CSSProperties } from 'react';
-import { Label as BootstrapLabel } from 'react-bootstrap';
-import { styled } from '@superset-ui/core';
-import cx from 'classnames';
+import { Tag } from 'src/common/components';
+import { useTheme } from '@superset-ui/core';
-export type OnClickHandler = React.MouseEventHandler<BootstrapLabel>;
+export type OnClickHandler = React.MouseEventHandler<HTMLElement>;
+
+export type BsStyle =
+ | 'success'
+ | 'warning'
+ | 'danger'
+ | 'info'
+ | 'default'
+ | 'primary'
+ | 'secondary';
export interface LabelProps {
key?: string;
className?: string;
- id?: string;
- tooltip?: string;
- placement?: string;
onClick?: OnClickHandler;
- bsStyle?: string;
+ bsStyle?: BsStyle;
style?: CSSProperties;
children?: React.ReactNode;
role?: string;
}
-const SupersetLabel = styled(BootstrapLabel)`
- /* un-bunch them! */
- margin-right: ${({ theme }) => theme.gridUnit}px;
- max-width: 100%;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- vertical-align: middle;
+export default function Label(props: LabelProps) {
+ const theme = useTheme();
+ const { colors, transitionTiming } = theme;
+ const { bsStyle, onClick, children, ...rest } = props;
+ const {
+ primary,
+ secondary,
+ grayscale,
+ success,
+ warning,
+ error,
+ info,
+ } = colors;
- &:first-of-type {
- margin-left: 0;
- }
- &:last-of-type {
- margin-right: 0;
- }
- display: inline-block;
- border-width: 1px;
- border-style: solid;
- cursor: ${({ onClick }) => (onClick ? 'pointer' : 'default')};
- transition: background-color ${({ theme }) => theme.transitionTiming}s;
- &.label-warning {
- background-color: ${({ theme }) => theme.colors.warning.base};
- border-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.warning.dark1 : 'transparent'};
- &:hover {
- background-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.warning.dark1 : theme.colors.warning.base};
- border-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.warning.dark2 : 'transparent'};
- }
- }
- &.label-danger {
- background-color: ${({ theme }) => theme.colors.error.base};
- border-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.error.dark1 : 'transparent'};
- &:hover {
- background-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.error.dark1 : theme.colors.error.base};
- border-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.error.dark2 : 'transparent'};
- }
- }
- &.label-success {
- background-color: ${({ theme }) => theme.colors.success.base};
- border-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.success.dark1 : 'transparent'};
- &:hover {
- background-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.success.dark1 : theme.colors.success.base};
- border-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.success.dark2 : 'transparent'};
- }
- }
- &.label-default {
- background-color: ${({ theme }) => theme.colors.grayscale.light3};
- color: ${({ theme }) => theme.colors.grayscale.dark1};
- border-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.grayscale.light2 : 'transparent'};
- &:hover {
- background-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.primary.light2 : theme.colors.grayscale.light3};
- border-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.primary.light1 : 'transparent'};
- }
- }
- &.label-info {
- background-color: ${({ theme }) => theme.colors.info};
- border-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.info.dark1 : 'transparent'};
- &:hover {
- background-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.info.dark1 : theme.colors.info.base};
- border-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.info.dark2 : 'transparent'};
- }
- }
- &.label-primary {
- background-color: ${({ theme }) => theme.colors.primary.base};
- border-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.primary.dark1 : 'transparent'};
- &:hover {
- background-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.primary.dark2 : theme.colors.primary.base};
- border-color: ${({ theme, onClick }) =>
- onClick
- ? theme.colors.primary.dark2
- : 'transparent'}; /* would be nice if we had a darker color, but that's the floor! */
- }
- }
- /* note this is NOT a supported bootstrap label Style... this overrides default */
- &.label-secondary {
- background-color: ${({ theme }) => theme.colors.secondary.base};
- color: ${({ theme }) => theme.colors.grayscale.light4};
- border-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.secondary.dark1 : 'transparent'};
- &:hover {
- background-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.secondary.dark1 : theme.colors.secondary.base};
- border-color: ${({ theme, onClick }) =>
- onClick ? theme.colors.secondary.dark2 : 'transparent'};
+ let backgroundColor = grayscale.light3;
+ let backgroundColorHover = onClick ? primary.light2 : grayscale.light3;
+ let borderColor = onClick ? grayscale.light2 : 'transparent';
+ let borderColorHover = onClick ? primary.light1 : 'transparent';
+ let color = grayscale.dark1;
+
+ if (bsStyle && bsStyle !== 'default') {
+ color = grayscale.light4;
+
+ let baseColor;
+ if (bsStyle === 'success') {
+ baseColor = success;
+ } else if (bsStyle === 'warning') {
+ baseColor = warning;
+ } else if (bsStyle === 'danger') {
+ baseColor = error;
+ } else if (bsStyle === 'info') {
+ baseColor = info;
+ } else if (bsStyle === 'secondary') {
+ baseColor = secondary;
+ } else {
+ baseColor = primary;
Review comment:
This is all so much cleaner. Love it!
----------------------------------------------------------------
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.
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-io edited a comment on pull request #12774: refactor: Bootstrap to AntD - Label
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on pull request #12774:
URL: https://github.com/apache/superset/pull/12774#issuecomment-767814574
# [Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=h1) Report
> Merging [#12774](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=desc) (993024c) into [master](https://codecov.io/gh/apache/superset/commit/49e6e420da517e7348599a53722afc8ab2231559?el=desc) (49e6e42) will **decrease** coverage by `4.13%`.
> The diff coverage is `93.33%`.
[](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #12774 +/- ##
==========================================
- Coverage 66.99% 62.86% -4.14%
==========================================
Files 1022 1022
Lines 50049 50012 -37
Branches 4914 4899 -15
==========================================
- Hits 33532 31441 -2091
- Misses 16393 18371 +1978
- Partials 124 200 +76
```
| Flag | Coverage Δ | |
|---|---|---|
| cypress | `?` | |
| javascript | `61.64% <93.33%> (-0.04%)` | :arrow_down: |
| python | `63.67% <ø> (-0.42%)` | :arrow_down: |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags#carryforward-flags-in-the-pull-request-comment) to find out more.
| [Impacted Files](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...rset-frontend/src/SqlLab/components/QueryTable.jsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL1NxbExhYi9jb21wb25lbnRzL1F1ZXJ5VGFibGUuanN4) | `66.66% <ø> (ø)` | |
| [...erset-frontend/src/SqlLab/components/SouthPane.jsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL1NxbExhYi9jb21wb25lbnRzL1NvdXRoUGFuZS5qc3g=) | `82.05% <ø> (ø)` | |
| [...erset-frontend/src/SqlLab/components/SqlEditor.jsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL1NxbExhYi9jb21wb25lbnRzL1NxbEVkaXRvci5qc3g=) | `54.67% <ø> (-1.41%)` | :arrow_down: |
| [...perset-frontend/src/addSlice/AddSliceContainer.tsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2FkZFNsaWNlL0FkZFNsaWNlQ29udGFpbmVyLnRzeA==) | `75.86% <ø> (ø)` | |
| [superset-frontend/src/common/components/index.tsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2NvbW1vbi9jb21wb25lbnRzL2luZGV4LnRzeA==) | `100.00% <ø> (ø)` | |
| [...erset-frontend/src/components/DatabaseSelector.tsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2NvbXBvbmVudHMvRGF0YWJhc2VTZWxlY3Rvci50c3g=) | `88.29% <ø> (-2.13%)` | :arrow_down: |
| [...-frontend/src/explore/components/RowCountLabel.jsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2V4cGxvcmUvY29tcG9uZW50cy9Sb3dDb3VudExhYmVsLmpzeA==) | `100.00% <ø> (ø)` | |
| [...perset-frontend/src/views/CRUD/chart/ChartCard.tsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL3ZpZXdzL0NSVUQvY2hhcnQvQ2hhcnRDYXJkLnRzeA==) | `72.22% <ø> (-8.34%)` | :arrow_down: |
| [...et-frontend/src/components/Label/Label.stories.tsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2NvbXBvbmVudHMvTGFiZWwvTGFiZWwuc3Rvcmllcy50c3g=) | `76.92% <66.66%> (-6.42%)` | :arrow_down: |
| [...frontend/src/SqlLab/components/QueryStateLabel.jsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL1NxbExhYi9jb21wb25lbnRzL1F1ZXJ5U3RhdGVMYWJlbC5qc3g=) | `100.00% <100.00%> (ø)` | |
| ... and [210 more](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=footer). Last update [49e6e42...993024c](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
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.
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] rusackas commented on a change in pull request #12774: refactor: Bootstrap to AntD - Label
Posted by GitBox <gi...@apache.org>.
rusackas commented on a change in pull request #12774:
URL: https://github.com/apache/superset/pull/12774#discussion_r565087194
##########
File path: superset-frontend/src/components/Label/Label.test.tsx
##########
@@ -34,23 +34,13 @@ describe('Label', () => {
it('works with an onClick handler', () => {
const mockAction = jest.fn();
wrapper = mount(<Label onClick={mockAction} />);
- wrapper.find('.label').simulate('click');
+ wrapper.find(Label).simulate('click');
expect(mockAction).toHaveBeenCalled();
});
// test stories from the storybook!
- it('renders all the sorybook gallery variants', () => {
Review comment:
oops!
----------------------------------------------------------------
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.
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] rusackas merged pull request #12774: refactor: Bootstrap to AntD - Label
Posted by GitBox <gi...@apache.org>.
rusackas merged pull request #12774:
URL: https://github.com/apache/superset/pull/12774
----------------------------------------------------------------
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.
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-io edited a comment on pull request #12774: refactor: Bootstrap to AntD - Label
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on pull request #12774:
URL: https://github.com/apache/superset/pull/12774#issuecomment-767814574
# [Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=h1) Report
> Merging [#12774](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=desc) (993024c) into [master](https://codecov.io/gh/apache/superset/commit/49e6e420da517e7348599a53722afc8ab2231559?el=desc) (49e6e42) will **decrease** coverage by `4.13%`.
> The diff coverage is `93.33%`.
[](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #12774 +/- ##
==========================================
- Coverage 66.99% 62.86% -4.14%
==========================================
Files 1022 1022
Lines 50049 50014 -35
Branches 4914 4899 -15
==========================================
- Hits 33532 31442 -2090
- Misses 16393 18372 +1979
- Partials 124 200 +76
```
| Flag | Coverage Δ | |
|---|---|---|
| cypress | `?` | |
| javascript | `61.64% <93.33%> (-0.04%)` | :arrow_down: |
| python | `63.67% <ø> (-0.42%)` | :arrow_down: |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags#carryforward-flags-in-the-pull-request-comment) to find out more.
| [Impacted Files](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...rset-frontend/src/SqlLab/components/QueryTable.jsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL1NxbExhYi9jb21wb25lbnRzL1F1ZXJ5VGFibGUuanN4) | `66.66% <ø> (ø)` | |
| [...erset-frontend/src/SqlLab/components/SouthPane.jsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL1NxbExhYi9jb21wb25lbnRzL1NvdXRoUGFuZS5qc3g=) | `82.05% <ø> (ø)` | |
| [...erset-frontend/src/SqlLab/components/SqlEditor.jsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL1NxbExhYi9jb21wb25lbnRzL1NxbEVkaXRvci5qc3g=) | `54.67% <ø> (-1.41%)` | :arrow_down: |
| [...perset-frontend/src/addSlice/AddSliceContainer.tsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2FkZFNsaWNlL0FkZFNsaWNlQ29udGFpbmVyLnRzeA==) | `75.86% <ø> (ø)` | |
| [superset-frontend/src/common/components/index.tsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2NvbW1vbi9jb21wb25lbnRzL2luZGV4LnRzeA==) | `100.00% <ø> (ø)` | |
| [...erset-frontend/src/components/DatabaseSelector.tsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2NvbXBvbmVudHMvRGF0YWJhc2VTZWxlY3Rvci50c3g=) | `88.29% <ø> (-2.13%)` | :arrow_down: |
| [...-frontend/src/explore/components/RowCountLabel.jsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2V4cGxvcmUvY29tcG9uZW50cy9Sb3dDb3VudExhYmVsLmpzeA==) | `100.00% <ø> (ø)` | |
| [...perset-frontend/src/views/CRUD/chart/ChartCard.tsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL3ZpZXdzL0NSVUQvY2hhcnQvQ2hhcnRDYXJkLnRzeA==) | `72.22% <ø> (-8.34%)` | :arrow_down: |
| [...et-frontend/src/components/Label/Label.stories.tsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2NvbXBvbmVudHMvTGFiZWwvTGFiZWwuc3Rvcmllcy50c3g=) | `76.92% <66.66%> (-6.42%)` | :arrow_down: |
| [...frontend/src/SqlLab/components/QueryStateLabel.jsx](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL1NxbExhYi9jb21wb25lbnRzL1F1ZXJ5U3RhdGVMYWJlbC5qc3g=) | `100.00% <100.00%> (ø)` | |
| ... and [209 more](https://codecov.io/gh/apache/superset/pull/12774/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=footer). Last update [49e6e42...993024c](https://codecov.io/gh/apache/superset/pull/12774?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
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.
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