Skip to content

fix: update schema where necessary to make rg-db-group checks run without warnings #1237

@sbillinge

Description

@sbillinge

Problem

Warnings abound when rg-db-group checks are run:
e.g. (but there are many more)

/usr/share/miniconda/envs/test/lib/python3.11/site-packages/regolith/schemas.py:186: UserWarning: "backburner" is not in the preferred entries for "status", please consider changing this entry to conform or add this to the ``eallowed`` field in the schema.
  warn(
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/regolith/schemas.py:186: UserWarning: "pr" is not in the preferred entries for "type", please consider changing this entry to conform or add this to the ``eallowed`` field in the schema.
  warn(
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/regolith/schemas.py:186: UserWarning: "skeleton" is not in the preferred entries for "type", please consider changing this entry to conform or add this to the ``eallowed`` field in the schema.
  warn(
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/regolith/schemas.py:186: UserWarning: "pending" is not in the preferred entries for "status", please consider changing this entry to conform or add this to the ``eallowed`` field in the schema.
  warn(
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/regolith/schemas.py:186: UserWarning: "converge" is not in the preferred entries for "status", please consider changing this entry to conform or add this to the ``eallowed`` field in the schema.
  warn(
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/regolith/schemas.py:186: UserWarning: "deliverable" is not in the preferred entries for "type", please consider changing this entry to conform or add this to the ``eallowed`` field in the schema.
  warn(
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/regolith/schemas.py:186: UserWarning: "finish" is not in the preferred entries for "status", please consider changing this entry to conform or add this to the ``eallowed`` field in the schema.
  warn(
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/regolith/schemas.py:186: UserWarning: "sent" is not in the preferred entries for "type", please consider changing this entry to conform or add this to the ``eallowed`` field in the schema.
  warn(
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/regolith/schemas.py:186: UserWarning: "tbd" is not in the preferred entries for "type", please consider changing this entry to conform or add this to the ``eallowed`` field in the schema.
  warn(
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/regolith/schemas.py:186: UserWarning: "beamtime" is not in the preferred entries for "type", please consider changing this entry to conform or add this to the ``eallowed`` field in the schema.
  warn(
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/regolith/schemas.py:186: UserWarning: "Masters Researcher" is not in the preferred entries for "position", please consider changing this entry to conform or add this to the ``eallowed`` field in the schema.
  warn(
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/regolith/schemas.py:186: UserWarning: "masters" is not in the preferred entries for "status", please consider changing this entry to conform or add this to the ``eallowed`` field in the schema.
  warn(

Proposed solution

we would like to get rid of these warnings. Some will require updating the databases in rg-db-group, but some are errors because we need to add desired vallues to eallowed fields in schemas.json here in regolith

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions