Cleanup Dammi

Open
#3,865 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
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start by reading the sql_diff_generator and the discussion in pull request 3670 linked from the issue, which points out repeated trigger name generation. Identify the duplicated strategy and the scope of the broader refactoring before making changes; done means the boilerplate is reduced and the requested general cleanup is addressed.

Written by the indexing model from the issue text.

Description

clean up

Especially the sql_diff_generator needs some code cleanup.
There's quite a bit of boilerplate in there as is made evident by https://github.com/OpenSlides/openslides-backend/pull/3670#discussion_r4587500278 (the trigger name generation is done in verbose code form in multiple places via the exact same strategy)

This should be remedied, along with a more general refactoring

Dominant language
Python
Stars
9
Forks
41
Avg merge
1d 20h
Merged PRs (30d)
48

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

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-backend

All issues in OpenSlides/openslides-backend

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.