Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.58 KB

meeting.import.md

File metadata and controls

32 lines (26 loc) · 1.58 KB

Payload

{
  committee_id: Id;
  meeting: File; // JSON file with Object<MeetingImportData>
}

Action

Import one meeting from a file. The file must only contain exactly one meeting.

  • All previously used IDs (i.e motion sequential number) will be replace with new valid fqids.
  • link to committee (meeting/committee_id and committee/meeting_ids)
  • meeting/enable_anonymous will be disabled
  • meeting/imported_at hints if and when the meeting was imported.
  • The request user is assigned to the admin group.
  • meeting.is_active_in_organization_id is set.
  • It has to be checked, whether the organization.limit_of_meetings is unlimited(=0) or lower than the active meetings in organization.active_meeting_ids, if the new meeting is not archived (is_active_in_organization_id is set)
  • Search for users and if username, first-name, last-name and email are identical use this existing user instead of creating a duplicate. Keep the data, including password, of the existing user. Relevant relations such as to the meeting will be updated though.
  • Users, that still have to be duplicated:
    • Imported usernames will be checked for uniqueness and adjusted in the case of collisions.
    • All previously set user passwords will be replaced
  • Genders will only be updated or imported if a new user needs to be created. Updated users will not have their genders updated.

Permissions

The user must be the committee manager of the given committee.

Info

The meeting object must contain a valid _migration_index on root level. The meeting object cannot have locked_from_inside set to true.