-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 1046-replace-tinymce
- Loading branch information
Showing
6 changed files
with
62 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,42 +22,49 @@ jobs: | |
path: "." | ||
ref: main | ||
submodules: "recursive" | ||
|
||
- name: Checkout latest commits | ||
env: | ||
BRANCH: ${{ github.event.pull_request.head.repo.owner.login == 'OpenSlides' && contains(github.head_ref, 'feature/') && github.head_ref || github.base_ref }} | ||
run: git submodule foreach 'git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" && ((git fetch origin ${{ env.BRANCH }} && git checkout ${{ env.BRANCH }}) || (git checkout main && git pull origin main)) && git submodule update --init' | ||
|
||
- name: Delete the client folder | ||
run: rm -r openslides-client | ||
|
||
- name: Clone openslides-client | ||
uses: actions/checkout@v3 | ||
with: | ||
path: "./openslides-client" | ||
- name: Copy example data | ||
run: cp openslides-backend/global/data/example-data.json openslides-datastore-service/cli/ | ||
|
||
- name: Use example data instead of initial data | ||
working-directory: "./openslides-backend/global/data/" | ||
run: cp example-data.json initial-data.json | ||
|
||
- name: Start setup | ||
working-directory: "./dev/localprod" | ||
run: | | ||
./setup.sh | ||
sed -i '/x-default-environment/a \ \ DATASTORE_INITIAL_DATA_FILE: cli/example-data.json' docker-compose.yml | ||
echo -n "admin" > secrets/superadmin | ||
docker compose build --parallel | ||
docker compose up -d | ||
- name: Wait for dev setup | ||
uses: iFaxity/[email protected] | ||
with: | ||
resource: https://localhost:8000 | ||
timeout: 30000 | ||
- name: Setup initial data | ||
working-directory: "./dev/localprod" | ||
run: docker compose exec -T datastoreWriter python cli/create_initial_data.py | ||
- name: Start tests | ||
|
||
- name: Start tests | ||
working-directory: "./openslides-client" | ||
run: make run-playwright | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: "./openslides-client/client/tests/playwright-report/" | ||
retention-days: 7 | ||
|
||
- name: Shut down setup | ||
if: always() | ||
working-directory: "./dev/localprod" | ||
|
53 changes: 19 additions & 34 deletions
53
client/src/app/domain/models/comittees/committee.constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,27 @@ | ||
import { marker as _ } from '@colsen1991/ngx-translate-extract-marker'; | ||
|
||
import { Id } from '../../definitions/key-types'; | ||
|
||
export const ID = `id`; | ||
export const NAME = `name`; | ||
export const DESCRIPTION = `description`; | ||
export const FORWARD_TO_COMMITTEE_IDS = `forward_to_committee_ids`; | ||
export const ORGANIZATION_TAG_IDS = `organization_tag_ids`; | ||
export const MANAGER_IDS = `manager_ids`; | ||
export const MEETING = `meeting`; | ||
export const MEETING_START_DATE = `meeting_start_date`; | ||
export const MEETING_END_DATE = `meeting_end_date`; | ||
export const MEETING_ADMIN_IDS = `meeting_admin_ids`; | ||
export const MEETING_TEMPLATE_ID = `meeting_template_id`; | ||
const ID = `id`; | ||
const NAME = `name`; | ||
const DESCRIPTION = `description`; | ||
const FORWARD_TO_COMMITTEES = `forward_to_committees`; | ||
const ORGANIZATION_TAGS = `organization_tags`; | ||
const MANAGERS = `managers`; | ||
const MEETING_NAME = `meeting_name`; | ||
const MEETING_START_TIME = `meeting_start_time`; | ||
const MEETING_END_TIME = `meeting_end_time`; | ||
const MEETING_ADMINS = `meeting_admins`; | ||
const MEETING_TEMPLATE = `meeting_template`; | ||
|
||
export interface CommitteeCsvPort { | ||
[ID]: Id; | ||
[NAME]: string; | ||
[DESCRIPTION]?: string; | ||
[FORWARD_TO_COMMITTEE_IDS]?: string; | ||
[ORGANIZATION_TAG_IDS]?: string; | ||
[MANAGER_IDS]?: string | number[]; | ||
[MEETING]?: string | number; | ||
[MEETING_START_DATE]?: string | number; | ||
[MEETING_END_DATE]?: string | number; | ||
[MEETING_ADMIN_IDS]?: string | number[]; | ||
[MEETING_TEMPLATE_ID]?: string | number; | ||
[FORWARD_TO_COMMITTEES]?: string; | ||
[ORGANIZATION_TAGS]?: string; | ||
[MANAGERS]?: string | number[]; | ||
[MEETING_NAME]?: string | number; | ||
[MEETING_START_TIME]?: string | number; | ||
[MEETING_END_TIME]?: string | number; | ||
[MEETING_ADMINS]?: string | number[]; | ||
[MEETING_TEMPLATE]?: string | number; | ||
} | ||
|
||
export const COMMITTEE_PORT_HEADERS_AND_VERBOSE_NAMES: Partial<CommitteeCsvPort> = { | ||
[NAME]: _(`Title`), | ||
[DESCRIPTION]: _(`Description`), | ||
[FORWARD_TO_COMMITTEE_IDS]: _(`Can forward motions to committee`), | ||
[ORGANIZATION_TAG_IDS]: _(`Tags`), | ||
[MANAGER_IDS]: _(`Administrators`), | ||
[MEETING]: _(`Meeting`), | ||
[MEETING_START_DATE]: _(`Start date`), | ||
[MEETING_END_DATE]: _(`End date`), | ||
[MEETING_ADMIN_IDS]: _(`Meeting administrator`), | ||
[MEETING_TEMPLATE_ID]: _(`Meeting template`) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters