Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Propose schema 2.9.1 #975

Merged
merged 41 commits into from
Jan 22, 2025
Merged

Conversation

slangeveld
Copy link
Contributor

Propose schema for new February release 2025.02

tnatt and others added 30 commits January 22, 2025 08:36
This creates a distinct directory that we will serve from the Radix
endpoint. The script that modifies the id when the Docker image starts
is still present, but modified. It will be removed when the schemas URLs
are set from the relevant branch (main for dev, staging for prod).
This reverts the docker `chown` back to the workdir without specifying
the schemas dir directly, which was incorrect to do.
This implements some additional linting rules and prepares a few others.
It also adds the `--cov --cov-report term-missing` coverage report to be
emitted at the end of test runs, which may be noisier but still useful
to see. The test runs install the package with `-e` now so that the code
lines missing test coverage are visible.
This creates a pattern for defining schema versions, filenames, and
paths. These can then be used throughout the code without being
hardcoded strings.

The dev and prod URLs are also now present in the code. In the main
branch the `$id` URLs now point to the dev enviroment, as this
environment tracks main anyway. The idea is that these URLs switching to
the production ones will be a step during the promotion to the staging
environment. Currently this is done "secretly" with a shell script but
as the number of schemas grows, I think it makes more sense to have this
be explicit.
mferrera and others added 10 commits January 22, 2025 08:36
This will cause the schemas to overwrite with an updated $id field, but
only if nothing else has changed. It is also tested in GitHub Actions.
This restructures how these classes are formed and where they live. It
was confusing to locate them with the model when they are really just
tweaks to the model for us when exporting. This refactor tries to bring
some clarity to that relationship.
This change moves the dev and prod url changes and checks to the dev
release side. It is checked in the 'staging' branch so that it happens
explicitly.
@slangeveld slangeveld requested a review from mferrera January 22, 2025 07:38
@slangeveld slangeveld merged commit 23d4c8e into equinor:staging Jan 22, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants