indico / indico/indico-plugins-cern

Burotel: Disallow invalid electronic-lock values

Open
#222 0 comments 0 reactions 0 assignees View on GitHub
burotel
Dominant language
Python
Stars
8
Forks
28
PR merge metrics
No merged PRs in 30d

Description

People put "on", "Yes", etc. and none of these values work, since it has to be literally "yes".

It would be nice if we failed validation when a value for that attribute is provided but anything but "yes".
To disable they should remove the attribute altogether, so no need to handle "no" etc.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the electronic-lock attribute handling and its validation entry point in the CERN-specific Indico plugin. Confirm how provided values are currently processed, then make validation accept only the literal "yes" and treat an omitted attribute as disabled; verify the invalid-value and omitted-value cases with the plugin's existing checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.