Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
TT-94 feat: remove todos
  • Loading branch information
Angeluz-07 committed Jan 5, 2021
commit b97f87ba26c5ae7baacab8a1f2e89cd99228a978
2 changes: 0 additions & 2 deletions time_tracker_api/users/users_namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def get(self):
return AzureConnection().users()


# TODO : DEPRECATE
@ns.route('/<string:id>/roles')
@ns.response(HTTPStatus.NOT_FOUND, 'User not found')
@ns.response(HTTPStatus.UNPROCESSABLE_ENTITY, 'The id has an invalid format')
Expand All @@ -77,7 +76,6 @@ def post(self, id):
return AzureConnection().update_user_role(id, ns.payload['role'])


# TODO : DEPRECATE
@ns.route('/<string:user_id>/roles/<string:role_id>')
@ns.response(HTTPStatus.NOT_FOUND, 'User not found')
@ns.response(HTTPStatus.UNPROCESSABLE_ENTITY, 'The id has an invalid format')
Expand Down
1 change: 0 additions & 1 deletion utils/azure_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def users(self) -> List[AzureUser]:
assert 'value' in response.json()
return [self.to_azure_user(item) for item in response.json()['value']]

# TODO : DEPRECATE
def update_user_role(self, id, role):
endpoint = "{endpoint}/users/{user_id}?api-version=1.6".format(
endpoint=self.config.ENDPOINT, user_id=id
Expand Down