Skip to content

check input variable type for .delete_variables() #1064

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

Merged
merged 11 commits into from
Jul 17, 2020

Conversation

systemshift
Copy link
Contributor

Pull Request Description

close #1059

If someone has better warning string that is more informative let me know.


After creating the pull request: in order to pass the changelog_updated check you will need to update the "Future Release" section of docs/source/changelog.rst to include this pull request.

@codecov
Copy link

codecov bot commented Jul 14, 2020

Codecov Report

Merging #1064 into main will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1064   +/-   ##
=======================================
  Coverage   98.35%   98.35%           
=======================================
  Files         126      126           
  Lines       13089    13098    +9     
=======================================
+ Hits        12874    12883    +9     
  Misses        215      215           
Impacted Files Coverage Δ
featuretools/entityset/entity.py 96.19% <100.00%> (+0.02%) ⬆️
featuretools/tests/entityset_tests/test_entity.py 100.00% <100.00%> (ø)

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 b48a9c5...ade296e. Read the comment docs.

Copy link
Contributor

@thehomebrewnerd thehomebrewnerd left a comment

Choose a reason for hiding this comment

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

Let's also update the docstring for this method to include information on the arguments that are acceptable and the return value (none). For an example, look at the docstring for the add_interesting_values method.

Copy link
Contributor

@thehomebrewnerd thehomebrewnerd left a comment

Choose a reason for hiding this comment

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

Looking good, but please also update the docstring for delete_variables() to more clearly indicate what is expected for the variable_ids argument.

@systemshift
Copy link
Contributor Author

Looking good, but please also update the docstring for delete_variables() to more clearly indicate what is expected for the variable_ids argument.

should I add anything else?

Copy link
Contributor

@thehomebrewnerd thehomebrewnerd left a comment

Choose a reason for hiding this comment

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

Looks good

@thehomebrewnerd thehomebrewnerd requested a review from rwedge July 16, 2020 19:03
Copy link
Contributor

@rwedge rwedge left a comment

Choose a reason for hiding this comment

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

For the test case, can we confirm that the variable was not deleted, similar to how we check variables were removed in test_delete_variables

@systemshift systemshift requested a review from rwedge July 17, 2020 17:56
Copy link
Contributor

@rwedge rwedge left a comment

Choose a reason for hiding this comment

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

Looks good

@rwedge rwedge merged commit 6c3406b into alteryx:main Jul 17, 2020
@systemshift systemshift deleted the warn_entity_delete branch July 23, 2020 03:07
@rwedge rwedge mentioned this pull request Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warn user if supplying wrong input to Entity.delete_variables()
3 participants