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

New gender model #1023

Closed
Elblinator opened this issue Sep 20, 2024 · 1 comment · Fixed by #1025
Closed

New gender model #1023

Elblinator opened this issue Sep 20, 2024 · 1 comment · Fixed by #1025
Labels
Milestone

Comments

@Elblinator
Copy link
Member

Elblinator commented Sep 20, 2024

The client and the backend have a new model for the genders
it appears that the autoupdate needs to implement the new collection.

       The autoupdate service gives following:

Error: getting next message: creating first time data: create keys for
keysbuilder: load needed keys: restricting data: getting restiction mode for
gender/A: collection "gender" is not implemented, maybe run go generate ./...
to fetch all fields from the models.yml

I suppose that the autoupdate service needs to implement the new 'gender' collection in the restrictor.
Running go generate doesn't help-

Originally posted by @reiterl in OpenSlides/openslides-client#4027 (comment)

The new gender:

  • The Gender stays optional for the user (you are allowed to give no gender at all)
  • the four base genders (male, female, diverse, non-binary) are the default genders
  • the default genders cannot be deleted
  • new additional genders can be created
  • The name of new genders can be changed and they can be deleted
  • genders are now called via the gender_ids

Please look into the changed in models.yml and the action in the respective PRs
https://github.com/OpenSlides/openslides-meta/pull/116/files
https://github.com/OpenSlides/openslides-backend/pull/2485/files

@Elblinator Elblinator added this to the 4.2 milestone Sep 20, 2024
@ostcar ostcar linked a pull request Sep 21, 2024 that will close this issue
@ostcar
Copy link
Member

ostcar commented Sep 21, 2024

I created a PR

When should a user see the gender collection? For the start, I set it to always. So every buddy, even anonymous, can see all genders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants