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

Fixed UI fails when inactive user is assigneed to a task/job #3343

Merged
merged 3 commits into from
Jun 18, 2021

Conversation

bsekachev
Copy link
Member

@bsekachev bsekachev commented Jun 17, 2021

Motivation and context

Resolved #3339

How has this been tested?

Manual testing.
@dvkruchinin Can we prepare a test for the issue?

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT

@bsekachev bsekachev added the bug Something isn't working label Jun 17, 2021
@bsekachev bsekachev requested a review from nmanovic as a code owner June 17, 2021 19:26
@bsekachev bsekachev requested a review from azhavoro as a code owner June 17, 2021 20:52
@@ -157,7 +155,7 @@ Cypress.Commands.add('submitReview', (decision, user) => {
cy.get('.cvat-submit-review-dialog').within(() => {
cy.contains(new RegExp(`^${decision}$`, 'g')).click();
if (decision === 'Review next') {
cy.intercept('GET', `/api/v1/users?is_active=true&search=${user}&limit=10`).as('searchUsers');
cy.intercept('GET', `/api/v1/users?search=${user}&limit=10&is_active=true`).as('searchUsers');
Copy link
Member Author

Choose a reason for hiding this comment

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

@dvkruchinin
Cypress tests failed because of this line. We do not really control the order of query parameters in these URLs (and probably we do not want to control it). Does cypress require exact order or maybe do you have ideas on how to improve it?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, the order must be followed. But in this case I think it can be processed through wildcard

cy.intercept('GET', '/api/v1/users*').as('searchUsers');

@dvkruchinin
Copy link
Contributor

Can we prepare a test for the issue?

Yes. A test will be prepared.

@nmanovic nmanovic merged commit 8a64394 into develop Jun 18, 2021
@nmanovic nmanovic deleted the bs/fixed_issue_3339 branch June 18, 2021 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't open a task that is assigned to inactive user
4 participants