Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add optional max, min number of children to each item in the children strand #30

Open
3 tasks
thclark opened this issue Jun 23, 2020 · 1 comment
Open
3 tasks
Assignees
Labels
feature A new feature of the app

Comments

@thclark
Copy link
Collaborator

thclark commented Jun 23, 2020

Specifically allow for specifying a max_num (default -1, or inf) or a min_num (default 0) to each item in the children strand of a twine.

NB use max_num rather than minimum because it's unambiguous as to what the max refers to.

  • Update the twine schema
  • Update the children validation method to check against quantity limits
  • Add unit tests covering scenarios of too many, too few, correct number with entries, correct number without entries
@thclark thclark self-assigned this Jun 23, 2020
@thclark thclark added feature A new feature of the app schema labels Jun 23, 2020
@thclark thclark removed this from Octue Board Dec 1, 2021
@thclark thclark moved this to Priority 2 (Medium) in Octue Board Dec 1, 2021
@thclark thclark removed the schema label Jan 10, 2022
@cortadocodes
Copy link
Member

What's the use case of this @thclark?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature A new feature of the app
Projects
Status: Priority 2 (Medium)
Development

No branches or pull requests

2 participants