Refactor committee import

Open
#268 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
sql
Domain
databases

Research direction

The issue names no file or test. First trace the organization-tag import and inspect the model definition, then resolve whether import state, duplicate names, existing tags, and a unique name field are intended to change; implementation is not ready until those questions have an agreed outcome.

Written by the indexing model from the issue text.

Description

clean up

When importing organization tags we currently check that no duplicate tags are created. I have a few questions regarding this.

Wouldn't it be better to check the import state to be ImportState.NEW?
What would happen if multiple tags with the same name are created?
What if a tag with the same name already exists?
Why isn't the name field unique in the models definition?

Dominant language
PLpgSQL
Stars
0
Forks
25
Avg merge
2d 1h
Merged PRs (30d)
16

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenSlides/openslides-meta

All issues in OpenSlides/openslides-meta

Similar issues

More Databases issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.