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

Cli project features #337

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Cli project features #337

wants to merge 7 commits into from

Conversation

sept-en
Copy link
Contributor

@sept-en sept-en commented May 11, 2018

Hi!

This PR is required by InfraBox/cli#34 CLI improvements.

Take a look at this, please.

Best regards,
Kirill Abramov.

sept-en added 7 commits April 26, 2018 16:11
* 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.
@sept-en sept-en requested a review from ib-steffen May 11, 2018 12:54
@@ -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.')
Copy link
Contributor

Choose a reason for hiding this comment

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

no . at the end

Copy link
Contributor Author

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?

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.

2 participants