Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linting #5790

Merged
merged 1 commit into from
Sep 20, 2018
Merged

Linting #5790

merged 1 commit into from
Sep 20, 2018

Conversation

mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented Sep 1, 2018

Found this https://lgtm.com/projects/g/airbnb/caravel/alerts/?mode=list and started hammering at it to see what it's all about.

Related, there's more work to do, opened an issue here: #5791

@codecov-io
Copy link

codecov-io commented Sep 1, 2018

Codecov Report

Merging #5790 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5790      +/-   ##
==========================================
+ Coverage   63.78%   63.78%   +<.01%     
==========================================
  Files         364      364              
  Lines       23111    23101      -10     
  Branches     2587     2587              
==========================================
- Hits        14741    14735       -6     
+ Misses       8355     8351       -4     
  Partials       15       15
Impacted Files Coverage Δ
superset/assets/src/visualizations/sunburst.js 0% <ø> (ø) ⬆️
...uperset/assets/src/dashboard/components/Header.jsx 58.51% <ø> (ø) ⬆️
...ets/src/SqlLab/components/ExploreResultsButton.jsx 82.22% <ø> (-0.2%) ⬇️
.../explore/components/controls/DatasourceControl.jsx 66.66% <ø> (+0.49%) ⬆️
...uperset/assets/src/datasource/DatasourceEditor.jsx 73.03% <ø> (+0.1%) ⬆️
superset/assets/src/datasource/DatasourceModal.jsx 75% <ø> (+0.42%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8a4b1b7...56094a5. Read the comment docs.

const wrapper = shallow(<ExploreResultsButton {...emptyQuery} />, {
context: { store },
}).dive();
expect(wrapper.state().hints).to.deep.equal([]);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hints was unused in the component.

@@ -28,9 +28,6 @@ const defaultProps = {
class ExploreResultsButton extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
hints: [],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hints is unused in the component

@@ -6,6 +6,10 @@
Create Date: 2016-05-27 15:03:32.980343

"""
from __future__ import absolute_import
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: puts these inline
from __future__ import absolute_import, division, print_function, unicode_literals

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somehow it's not the standard and I think the linter would complain. Not quite sure why though.

Copy link
Member

@hughhhh hughhhh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@mistercrunch mistercrunch merged commit 5b97fe5 into apache:master Sep 20, 2018
@mistercrunch mistercrunch deleted the fix_alerts branch September 20, 2018 15:11
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Oct 12, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants