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

REST API tests: project accessibility #4496

Merged
merged 21 commits into from
Apr 5, 2022
Merged

REST API tests: project accessibility #4496

merged 21 commits into from
Apr 5, 2022

Conversation

ivk
Copy link
Contributor

@ivk ivk commented Mar 22, 2022

REST API, check if admin can see any project even he has no ownerships for this project

@ivk ivk requested a review from sizov-kirill March 22, 2022 16:19
@ivk ivk requested a review from azhavoro as a code owner March 22, 2022 16:19
Copy link
Contributor

@sizov-kirill sizov-kirill left a comment

Choose a reason for hiding this comment

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

Use the pull requests template for future requests.

If you are currently continue working on pull request, then for reviewers convenience and for reducing the number of workflows in GitHub Actions. you can add [WIP] in the title of pull requests.

tests/rest_api/test_projects.py Outdated Show resolved Hide resolved
tests/rest_api/test_projects.py Outdated Show resolved Hide resolved
tests/rest_api/test_projects.py Outdated Show resolved Hide resolved
tests/rest_api/test_projects.py Outdated Show resolved Hide resolved
tests/rest_api/test_projects.py Outdated Show resolved Hide resolved
Comment on lines 199 to 200
# [organization] Member of organization that has role supervisor, maintainer or owner can create a project
# (POST /projects/)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, leave a comment for tests in case when it's really necessary. For example, in this case I think we don't need to mention (POST /projects) because this TestPostProject test class. And developers can easy understand what this test really do from the name of test function.

Copy link
Contributor

@sizov-kirill sizov-kirill 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 to me

@nmanovic nmanovic merged commit de30cb2 into cvat-ai:develop Apr 5, 2022
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.

3 participants