Skip to content

Use real enums#3408

Open
vkrasnovyd wants to merge 16 commits intoOpenSlides:mainfrom
vkrasnovyd:409-real-enums
Open

Use real enums#3408
vkrasnovyd wants to merge 16 commits intoOpenSlides:mainfrom
vkrasnovyd:409-real-enums

Conversation

@vkrasnovyd
Copy link
Copy Markdown
Contributor

@vkrasnovyd vkrasnovyd commented Mar 20, 2026

Adjusts backend to the changes in OpenSlides/openslides-meta#424

Needs changes in vote service (OpenSlides/openslides-vote-service#471) .

Database writer is now using the correcponding enum as a type for updating list fields with items.enum.

Copy link
Copy Markdown
Member

@hjanott hjanott left a comment

Choose a reason for hiding this comment

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

Also see the general comment in the related meta issue.

@hjanott hjanott assigned vkrasnovyd and unassigned hjanott Mar 24, 2026
@vkrasnovyd vkrasnovyd requested a review from hjanott March 25, 2026 12:20
@vkrasnovyd vkrasnovyd assigned hjanott and unassigned vkrasnovyd Mar 25, 2026
@vkrasnovyd
Copy link
Copy Markdown
Contributor Author

Also see the general comment in the related meta issue.

There is no need for us to register enums - they are already dumped as normal strings by default. For enum arrays I've adjusted database reader.

MappedFields.collections were not used. Withthe current logic I can see only the cases where one collection can be useful for the MappedFields. Updated this attribute and utilized it for building select statements.

Copy link
Copy Markdown
Member

@hjanott hjanott left a comment

Choose a reason for hiding this comment

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

There is good improvements. Especially the new tests.

@hjanott hjanott assigned vkrasnovyd and unassigned hjanott Mar 27, 2026
vkrasnovyd and others added 2 commits March 27, 2026 16:55
Co-authored-by: Hannes Janott <hannes.janott@openslides.com>
Co-authored-by: Hannes Janott <hannes.janott@openslides.com>
Copy link
Copy Markdown
Member

@hjanott hjanott left a comment

Choose a reason for hiding this comment

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

Also this is done now. Just waiting for the vote service to get fixed.

@vkrasnovyd vkrasnovyd added the waiting Waiting for some other PR/feature; more details in comments label Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

staging-t1 waiting Waiting for some other PR/feature; more details in comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants