-
Notifications
You must be signed in to change notification settings - Fork 6
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
Cli project features #337
base: master
Are you sure you want to change the base?
Cli project features #337
Conversation
* Added more conditions and appropriate messages on secrets deletion to check: - if provided secret_id is a valid uuid4; - if secret with provided secret_id is exists. * Stylystic fixes.
* Removed redundant code to get projects list in `handlers/project.py` file which duplicated `handlers/projects/project.py`; * Updated `project_model` schema to have also `public` field; * When returning project from query, return `public` field also.
* On project deletion: - validate project id before executing anything with it; - check if project with provided id exists.
@@ -20,7 +20,7 @@ def test_collaborators_root(self): | |||
r = TestClient.post('api/v1/projects/%s/collaborators' % self.project_id, | |||
data=self.test_collaborator_data, | |||
headers=TestClient.get_user_authorization(self.user_id)) | |||
self.assertEqual(r['message'], 'Successfully added user') | |||
self.assertEqual(r['message'], 'Successfully added user.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no . at the end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this to keep consistency across the code. Since some requests return with dot at the end and some without. We can consider to remove dots at the end everywhere, but always add a dot in the logger.
What do you think?
Hi!
This PR is required by InfraBox/cli#34 CLI improvements.
Take a look at this, please.
Best regards,
Kirill Abramov.