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

Changed update_entity to update_token #117

Merged
merged 5 commits into from Dec 10, 2019

Conversation

neilong31
Copy link
Contributor

Fixes #114
Every instance of the method update_entity has been renamed or is calling update_token now.

Copy link
Owner

@joegasewicz joegasewicz left a comment

Choose a reason for hiding this comment

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

@neilong31 can you re run tox & check the linting errors, & update the CHANGELOG.md referencing bothupdate_entity & register_entity being renamed, thank you.
Screenshot 2019-12-07 at 08 11 25

@@ -99,7 +99,7 @@ def register():
def login():
# I'm authorized & updating my token!
return jsonify({
"token": jwt_routes.update_entity(entity_id=1)
Copy link
Owner

Choose a reason for hiding this comment

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

If you can install Sphinx & run the following:

make html

I will update the Pipfile to add Sphinx as a dev dep in my Pr either today or tomorrow, thank you.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay I'll try and give it a go!

@codecov
Copy link

codecov bot commented Dec 8, 2019

Codecov Report

Merging #117 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #117   +/-   ##
=======================================
  Coverage   88.48%   88.48%           
=======================================
  Files           7        7           
  Lines         278      278           
  Branches       31       31           
=======================================
  Hits          246      246           
  Misses         25       25           
  Partials        7        7
Impacted Files Coverage Δ
flask_jwt_router/_jwt_routes.py 100% <ø> (ø) ⬆️
flask_jwt_router/_entity.py 76.78% <ø> (ø) ⬆️
flask_jwt_router/_authentication.py 91.17% <100%> (ø) ⬆️
flask_jwt_router/_jwt_router.py 90.32% <100%> (ø) ⬆️

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 83a5b94...1a9aec3. Read the comment docs.

CHANGELOG.md Outdated

- Renamed the `update_entity` public method to be called `update_token` [Issue #114](https://github.com/joegasewicz/Flask-JWT-Router/issues/114)

Copy link
Contributor

Choose a reason for hiding this comment

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

remove spaces after list items

@joegasewicz
Copy link
Owner

HI @neilong31 Thanks for the changes, could you just look at @kousikmitra comment and then i can merge your excellent work in, thank you.

@joegasewicz joegasewicz self-requested a review December 10, 2019 09:57
Copy link
Owner

@joegasewicz joegasewicz left a comment

Choose a reason for hiding this comment

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

Ill fix the linting errors in the merge, thanks

@joegasewicz joegasewicz merged commit f995dcb into joegasewicz:master Dec 10, 2019
@joegasewicz
Copy link
Owner

Thanks @neilong31 for the good work.

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.

Change public method name update_entity
3 participants