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

Cypress. New organization pipeline. #4143

Merged
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
b47fdb2
The folder renamed
dvkruchinin Dec 28, 2021
42a861a
Add classes
dvkruchinin Dec 29, 2021
8afe4af
Rename the folder
dvkruchinin Dec 29, 2021
a737196
Rename/rework the script for remoing users, tasts, projects,
dvkruchinin Dec 29, 2021
fee2f2a
Added commands for organizations
dvkruchinin Dec 29, 2021
461673a
Fix eslint issues
dvkruchinin Dec 29, 2021
05bb1f7
Fix workflow
dvkruchinin Dec 29, 2021
63ab57e
Move the test to the registration_involved folder
dvkruchinin Dec 29, 2021
afc8f4c
Added class
dvkruchinin Dec 30, 2021
d9e0367
Update the test. Added some commands.
dvkruchinin Dec 30, 2021
77985d6
Merge branch 'develop' of https://github.com/openvinotoolkit/cvat int…
dvkruchinin Dec 30, 2021
3da686d
Added class
dvkruchinin Dec 30, 2021
4bc1315
Add a command. Updated the test.
dvkruchinin Dec 30, 2021
6cb168a
Fix eslint issue
dvkruchinin Dec 30, 2021
f633fcd
Merge branch 'develop' of https://github.com/openvinotoolkit/cvat int…
dvkruchinin Dec 30, 2021
ce729ea
Merge branch 'develop' of https://github.com/openvinotoolkit/cvat int…
dvkruchinin Jan 10, 2022
ccb40e2
Added some classes
dvkruchinin Jan 10, 2022
6f931dc
Added cypress command. Update corespinding test.
dvkruchinin Jan 10, 2022
5ae98f5
Continue writin the test. Update commands.
dvkruchinin Jan 10, 2022
c0b4967
Continue writing the test
dvkruchinin Jan 10, 2022
a09a750
Update main.yml
dvkruchinin Jan 10, 2022
8c607a8
Add className
dvkruchinin Jan 10, 2022
98dc15e
Update the test. Add command
dvkruchinin Jan 10, 2022
9b21875
Update the test
dvkruchinin Jan 10, 2022
a9eb74e
Added command for remove a tasks, users, progects, orgs
dvkruchinin Jan 10, 2022
646a3cb
Some reworks
dvkruchinin Jan 10, 2022
30a8f52
Merge branch 'develop' of https://github.com/openvinotoolkit/cvat int…
dvkruchinin Jan 10, 2022
709ddfc
Add a class
dvkruchinin Jan 11, 2022
09c48d1
Update the test
dvkruchinin Jan 11, 2022
e21e2bd
Added check issue 4096
dvkruchinin Jan 12, 2022
ad91d77
Merge branch 'develop' of https://github.com/openvinotoolkit/cvat int…
dvkruchinin Jan 13, 2022
2abb6f4
Update year
dvkruchinin Jan 13, 2022
64e4bcd
Update years
dvkruchinin Jan 13, 2022
0dda630
Merge branch 'develop' of https://github.com/openvinotoolkit/cvat int…
Jan 17, 2022
434a3f5
Update the stept in the test
Jan 17, 2022
7650b1c
Rework command to remove users, etc.
Jan 17, 2022
0c08d8e
The tests adaptation
Jan 17, 2022
3c0f3c8
Rework command to deleting users, etc.
Jan 19, 2022
9aaebe2
Apply comments
Jan 19, 2022
0e5726b
Revert changes except base_actions_project test
Jan 19, 2022
4e8af63
Rename the command to delete a task by api
Jan 19, 2022
9991014
Apply commenst. Split tests
Jan 20, 2022
e3adaea
Merge branch 'develop' of https://github.com/openvinotoolkit/cvat int…
Jan 20, 2022
2822d04
Update the command, the test.
Jan 20, 2022
981c6b9
Added steps to check
Jan 20, 2022
0e31e14
Fix support/index.js
Jan 20, 2022
d57b3dc
Merge branch 'develop' of https://github.com/openvinotoolkit/cvat int…
Jan 24, 2022
ab0e848
Merge branch 'develop' of https://github.com/openvinotoolkit/cvat int…
Jan 24, 2022
de7dfa1
The test adaptation.
Jan 24, 2022
ea397bd
Removed comments.
Jan 24, 2022
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
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
strategy:
fail-fast: false
matrix:
specs: ['actions_tasks', 'actions_tasks2', 'actions_tasks3', 'actions_objects', 'actions_objects2', 'actions_users', 'actions_projects_models', 'canvas3d_functionality', 'canvas3d_functionality_2', 'issues_prs', 'issues_prs2']
specs: ['actions_tasks', 'actions_tasks2', 'actions_tasks3', 'actions_objects', 'actions_objects2', 'actions_users', 'actions_projects_models', 'actions_organizations', 'canvas3d_functionality', 'canvas3d_functionality_2', 'issues_prs', 'issues_prs2']
steps:
- uses: actions/checkout@v2
- name: Getting SHA from the default branch
Expand Down Expand Up @@ -193,16 +193,16 @@ jobs:
npm ci
if [[ ${{ github.ref }} == 'refs/heads/develop' ]]; then
if [ ${{ matrix.specs }} == 'canvas3d_functionality' ] || [ ${{ matrix.specs }} == 'canvas3d_functionality_2' ]; then
npx cypress run --headed --browser chrome --config-file cypress_canvas3d.json --spec 'cypress/integration/${{ matrix.specs }}/**/*.js,cypress/integration/remove_users_tasks_projects.js'
npx cypress run --headed --browser chrome --config-file cypress_canvas3d.json --spec 'cypress/integration/${{ matrix.specs }}/**/*.js,cypress/integration/remove_users_tasks_projects_organizations.js'
else
npx cypress run --browser chrome --spec 'cypress/integration/${{ matrix.specs }}/**/*.js,cypress/integration/remove_users_tasks_projects.js'
npx cypress run --browser chrome --spec 'cypress/integration/${{ matrix.specs }}/**/*.js,cypress/integration/remove_users_tasks_projects_organizations.js'
fi
mv ./.nyc_output/out.json ./.nyc_output/out_${{ matrix.specs }}.json
else
if [ ${{ matrix.specs }} == 'canvas3d_functionality' ] || [ ${{ matrix.specs }} == 'canvas3d_functionality_2' ]; then
npx cypress run --headed --browser chrome --env coverage=false --config-file cypress_canvas3d.json --spec 'cypress/integration/${{ matrix.specs }}/**/*.js,cypress/integration/remove_users_tasks_projects.js'
npx cypress run --headed --browser chrome --env coverage=false --config-file cypress_canvas3d.json --spec 'cypress/integration/${{ matrix.specs }}/**/*.js,cypress/integration/remove_users_tasks_projects_organizations.js'
else
npx cypress run --browser chrome --env coverage=false --spec 'cypress/integration/${{ matrix.specs }}/**/*.js,cypress/integration/remove_users_tasks_projects.js'
npx cypress run --browser chrome --env coverage=false --spec 'cypress/integration/${{ matrix.specs }}/**/*.js,cypress/integration/remove_users_tasks_projects_organizations.js'
fi
fi
- name: Creating a log file from "cvat" container logs
Expand Down
17 changes: 10 additions & 7 deletions cvat-ui/src/components/header/header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2020-2021 Intel Corporation
// Copyright (C) 2020-2022 Intel Corporation
//
// SPDX-License-Identifier: MIT

Expand Down Expand Up @@ -266,11 +266,11 @@ function HeaderContainer(props: Props): JSX.Element {
icon={organizationsFetching ? <LoadingOutlined /> : <TeamOutlined />}
>
{currentOrganization ? (
<Menu.Item icon={<SettingOutlined />} key='open_organization' onClick={() => history.push('/organization')}>
<Menu.Item icon={<SettingOutlined />} key='open_organization' onClick={() => history.push('/organization')} className='cvat-header-menu-open-organization'>
Settings
</Menu.Item>
) : null}
<Menu.Item icon={<PlusOutlined />} key='create_organization' onClick={() => history.push('/organizations/create')}>Create</Menu.Item>
<Menu.Item icon={<PlusOutlined />} key='create_organization' onClick={() => history.push('/organizations/create')} className='cvat-header-menu-create-organization'>Create</Menu.Item>
{ organizationsList.length > 5 ? (
<Menu.Item
key='switch_organization'
Expand Down Expand Up @@ -315,7 +315,8 @@ function HeaderContainer(props: Props): JSX.Element {
<Menu.Divider />
<Menu.ItemGroup>
<Menu.Item
className={!currentOrganization ? 'cvat-header-menu-active-organization-item' : ''}
className={!currentOrganization ?
'cvat-header-menu-active-organization-item' : 'cvat-header-menu-organization-item'}
key='$personal'
onClick={resetOrganization}
>
Expand All @@ -324,7 +325,7 @@ function HeaderContainer(props: Props): JSX.Element {
{organizationsList.map((organization: any): JSX.Element => (
<Menu.Item
className={currentOrganization?.slug === organization.slug ?
'cvat-header-menu-active-organization-item' : ''}
'cvat-header-menu-active-organization-item' : 'cvat-header-menu-organization-item'}
key={organization.slug}
onClick={() => setNewOrganization(organization)}
>
Expand Down Expand Up @@ -475,13 +476,15 @@ function HeaderContainer(props: Props): JSX.Element {
<UserOutlined className='cvat-header-dropdown-icon' />
<Row>
<Col span={24}>
<Text strong>
<Text strong className='cvat-header-menu-user-dropdown-user'>
{user.username.length > 14 ? `${user.username.slice(0, 10)} ...` : user.username}
</Text>
</Col>
{ currentOrganization ? (
<Col span={24}>
<Text>{currentOrganization.slug}</Text>
<Text className='cvat-header-menu-user-dropdown-organization'>
{currentOrganization.slug}
</Text>
</Col>
) : null }
</Row>
Expand Down
3 changes: 2 additions & 1 deletion cvat-ui/src/components/organization-page/member-item.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2021 Intel Corporation
// Copyright (C) 2021-2022 Intel Corporation
//
// SPDX-License-Identifier: MIT

Expand Down Expand Up @@ -65,6 +65,7 @@ function MemberItem(props: Props): JSX.Element {
<CloseOutlined
onClick={() => {
Modal.confirm({
className: 'cvat-modal-organization-member-remove',
title: `You are removing "${username}" from this organization`,
content: 'The person will not have access to the organization data anymore. Continue?',
okText: 'Yes, remove',
Expand Down
6 changes: 5 additions & 1 deletion cvat-ui/src/components/organization-page/top-bar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2021 Intel Corporation
// Copyright (C) 2021-2022 Intel Corporation
//
// SPDX-License-Identifier: MIT

Expand Down Expand Up @@ -194,6 +194,7 @@ function OrganizationTopBar(props: Props): JSX.Element {
onOk: () => {
dispatch(leaveOrganizationAsync(organizationInstance));
},
className: 'cvat-modal-organization-leave-confirm',
content: (
<>
<Text>Please, confirm leaving the organization</Text>
Expand Down Expand Up @@ -260,6 +261,7 @@ function OrganizationTopBar(props: Props): JSX.Element {
</Col>
</Row>
<Modal
className='cvat-organization-invitation-modal'
visible={visibleInviteModal}
onCancel={() => {
setVisibleInviteModal(false);
Expand Down Expand Up @@ -294,6 +296,7 @@ function OrganizationTopBar(props: Props): JSX.Element {
<Row className='cvat-organization-invitation-field' key={field.key}>
<Col span={10}>
<Form.Item
className='cvat-organization-invitation-field-email'
hasFeedback
name={[field.name, 'email']}
fieldKey={[field.fieldKey, 'email']}
Expand All @@ -307,6 +310,7 @@ function OrganizationTopBar(props: Props): JSX.Element {
</Col>
<Col span={10} offset={1}>
<Form.Item
className='cvat-organization-invitation-field-role'
name={[field.name, 'role']}
fieldKey={[field.fieldKey, 'role']}
initialValue='worker'
Expand Down
3 changes: 2 additions & 1 deletion tests/cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"issues_prs2/**/*.js",
"actions_users/**/*.js",
"actions_projects_models/**/*.js",
"remove_users_tasks_projects.js"
"actions_organizations/**/*.js",
"remove_users_tasks_projects_organizations.js"
]
}
Loading