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

Open
#1,237 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

Start by running the rg-db-group checks and reviewing the warnings against schemas.json. Identify which values should be added to the schema's eallowed fields and which require updates to the rg-db-group databases. The work is done when the checks run without these warnings.

Written by the indexing model from the issue text.

Description

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

Dominant language
Python
Stars
16
Forks
71
Avg merge
21m
Merged PRs (30d)
27

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

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 regro/regolith

All issues in regro/regolith

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.