Add sequential_numbers check to the test_data

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
58/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Domain
backend, testing

Research direction

Start with the backend test meeting.import.test_check_calc_fields and inspect its test_data. Add cases for a supplied sequential_number, a value smaller than the sequence digest, and an omitted value. Done means the test verifies the supplied values are preserved and the omitted value increments only after the first case.

Written by the indexing model from the issue text.

Description

Check the cases described in the backend test meeting.import.test_check_calc_fields:

  1. sequential_number is set in the payload => sequential_number = given value
  2. sequential_number in the payload is smaller than the diggest value in the sequence => sequential_number = given value
  3. sequential_number is not in the payload => sequential_number = the value given in step 1 increased by 1 (it was correctly updated in step 1 and didn't increase in step 2)
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 Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.