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

Documentation updates #364

Merged
merged 6 commits into from
Mar 6, 2025
Merged

Documentation updates #364

merged 6 commits into from
Mar 6, 2025

Conversation

marc-white
Copy link
Collaborator

@marc-white marc-white commented Mar 6, 2025

Closes #353 and closes #362 .

This PR adds documentation updates to:

  • Explicitly state the use case of access-nri-intake-catalog without Gadi access;
  • Clearer instructions on creating an experiment's metadata.yaml file;
  • Minor style & formatting edits.

A small code edit was also added - the metadata-template utility function will now automatically add the correct
schema_version constant to the template metadata.yaml output.

Copy link

codecov bot commented Mar 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.79%. Comparing base (66b8aed) to head (d09c822).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #364   +/-   ##
=======================================
  Coverage   98.79%   98.79%           
=======================================
  Files          15       15           
  Lines        1245     1247    +2     
=======================================
+ Hits         1230     1232    +2     
  Misses         15       15           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@charles-turner-1 charles-turner-1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 minor queries, otherwise looks great!

@@ -601,10 +601,13 @@ def metadata_template(loc: str | Path | None = None) -> None:

template = {}
for name, descr in EXP_JSONSCHEMA["properties"].items():
if name in EXP_JSONSCHEMA["required"]:
description = f"<REQUIRED {descr['description']}>"
if "const" in descr.keys():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not 100% sure I follow what this addition is doing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the schema defines the name should be a const, it dumps that straight into the output YAML, instead of the description.

So, before, if you ran metadata-template, the first line would be:

schema: <The version of the schema (string)>

If the user leaves that in and doesn't update it to match the current schema version, metadata-validate will fail.

With this change, the first line of metadata-template output will be:

schema: 1-0-3

@charles-turner-1 charles-turner-1 self-requested a review March 6, 2025 03:43
@marc-white marc-white merged commit 06c29d1 into main Mar 6, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
2 participants