-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description of Bug
Trying to create metrics from RemKiT variables gives errors like:
[1, 'e-i_odd_C1Il+2_h=2Ion', '[key]'] │ str != string_pattern_mismatch │ String should match pattern '^[a-zA-Z0-9\\-\\_\\s\\/\\.:=><]+$'
Checked with Andrew, the server validation is:
^[a-zA-Z0-9\-\_\s\/\.:=><+\(\)]+$
Whereas in the Python API it is:
METRIC_KEY_REGEX: str = r"^[a-zA-Z0-9\-\_\s\/\.:=><]+$"
Need to change this to match the server version
Steps To Reproduce
Steps to reproduce the behavior:
- Try to create a metric with a '+' in the name
Expected behavior
Name should be accepted
Actual Behaviour
Name is rejected due to failing validation
Setup
- OS: Ubuntu
- Python version: 3.11
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working