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

Merge Berkeley schema (berkeley-schema-fy24/main) into Legacy schema (nmdc-schema/main) #2195

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1438 commits
Select commit Hold shift + click to select a range
437e6a5
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
7f133c7
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
3cb406a
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
e51bfc6
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
ce47afd
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
f66b878
Update pull_request_template_berk.md
mslarae13 Jun 26, 2024
b2535b1
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
91f533c
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
a7c1380
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
0974447
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
0c3b602
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
80cde05
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
6905509
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
5eab09c
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
680f12f
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
8167732
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
97cbac1
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
f2b64a1
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
6a2c947
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
db25b77
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
80c3e66
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
ec6750f
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
10db413
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
e0a5820
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
86d32a6
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
27cea2f
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
f7a1038
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
854ffb1
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
c61ae35
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
230f59e
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
6b4604f
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
537ef6b
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
92aeba8
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
baa0f51
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
743b03d
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
4cb1499
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
c8cf637
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
2a58667
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
e3fbf5a
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
92a4826
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
353de73
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
a191272
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
a03fca1
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
d148fcb
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
e93a715
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
bf786d7
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
ded44a1
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
6d36419
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
4340454
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
0281444
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
26e870e
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
4217dae
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
096da3e
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
7040a6c
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
634f60f
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
7748c08
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
1832c64
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
fce8a10
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
bec40ab
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
2cd47b5
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
078ba0b
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
a95852e
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
f532dc7
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
9803175
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
179d610
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
fed15ec
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
73fa430
Update pull_request_template_berk_schema.yml
mslarae13 Jun 26, 2024
3c83ffd
Update pull_request_template_berk.md
mslarae13 Jun 26, 2024
a5fbbc6
move to PR temp dir
mslarae13 Jun 26, 2024
e187b52
Rename partial migrators to indicate their final order
eecavanna Jun 28, 2024
e8a4c57
Consolidate 16 `import` statements into a single one
eecavanna Jun 28, 2024
5a3f1a8
Fix typos, rephrase things, eliminate redundant section
eecavanna Jul 1, 2024
de256fa
Use consistent terminology
eecavanna Jul 1, 2024
909bd6f
Merge pull request #218 from microbiomedata/1983-berkeley-schema-fy24…
eecavanna Jul 1, 2024
aad946e
all invalid files have one error, moved problems to problem/invalid
bmeluch Jul 2, 2024
64a20ee
Merge pull request #219 from microbiomedata/eecavanna-patch-1
mslarae13 Jul 3, 2024
47d2503
Update pull_request_template_berk.md
mslarae13 Jul 3, 2024
62630db
Update pull_request_template_berk.md
mslarae13 Jul 3, 2024
ce99381
Update pull_request_template_berk.md
mslarae13 Jul 3, 2024
aee86ec
Update pull_request_template_berk.md
mslarae13 Jul 3, 2024
be7fc26
first pass at fixing problem/invalid files
bmeluch Jul 3, 2024
97222c6
mam pr tempalte suggestions v1
turbomam Jul 3, 2024
59a98f0
enum/PV wording
turbomam Jul 3, 2024
1471d39
Merge pull request #221 from microbiomedata/mam-pr-template-suggestions
mslarae13 Jul 3, 2024
dc12709
Update .github/PULL_REQUEST_TEMPLATE/pull_request_template_berk.md
mslarae13 Jul 3, 2024
add661e
Update .github/PULL_REQUEST_TEMPLATE/pull_request_template_berk.md
mslarae13 Jul 3, 2024
3175fca
Update .github/PULL_REQUEST_TEMPLATE/pull_request_template_berk.md
mslarae13 Jul 3, 2024
b4ae068
Update .github/PULL_REQUEST_TEMPLATE/pull_request_template_berk.md
mslarae13 Jul 3, 2024
ebf48d3
Delete YAML file originally planned to be a PR template
eecavanna Jul 3, 2024
f4d2b4c
Merge pull request #217 from microbiomedata/1995-add-pr-template_berk…
mslarae13 Jul 3, 2024
5dab245
no restriction on known_as, delete invalid files
bmeluch Jul 9, 2024
85da876
deprecate EnvironmentalMaterialTerm
bmeluch Jul 9, 2024
1c489e4
deprecate FunctionalAnnotationTerm and children
bmeluch Jul 9, 2024
d9351f6
add deprecation date
bmeluch Jul 9, 2024
4e506f1
add deprecation dates
bmeluch Jul 9, 2024
bf75ae1
changing some Database invalid examples to Extraction invalid examples
aclum Jul 9, 2024
9745e69
correct deprecation strings
bmeluch Jul 10, 2024
47e144a
Remove extraneous parentheses on ids
kheal Jul 16, 2024
d47712d
Shorten typecodes to adhere to standards
kheal Jul 16, 2024
ff7d336
Add to Modeling Best Practices for id practices
kheal Jul 16, 2024
c48673b
Fix typecodes on example data and class-linking slots
kheal Jul 16, 2024
ebb6196
fix file name
mslarae13 Jul 16, 2024
965b947
Merge pull request #226 from microbiomedata/fix_pr-template
mslarae13 Jul 16, 2024
9f890fb
fake
mslarae13 Jul 16, 2024
bb7ca14
moving pr template
mslarae13 Jul 16, 2024
27ce828
Elaborate on CONTRIBUTING guide regarding ids
kheal Jul 16, 2024
e351786
leftovers
turbomam Jul 16, 2024
0c4cf42
Update migrator to treat `metatranscriptome_expression_analysis_set` …
eecavanna Jul 16, 2024
67cc6ee
nmdc.yaml still has conflicts
turbomam Jul 16, 2024
4c2d3b6
Elaborate on ID patterning and checks
kheal Jul 16, 2024
be415a2
problem tests remain
turbomam Jul 16, 2024
5ad8020
Merge pull request #227 from microbiomedata/test_pr-tempalte
mslarae13 Jul 16, 2024
8bbc043
all valid examples passing
turbomam Jul 16, 2024
44c95a8
require fastjsonschema for dev.dependencies
turbomam Jul 16, 2024
a3b029d
update poetry lock
turbomam Jul 17, 2024
0455c02
Add note regarding multiple typecodes
kheal Jul 17, 2024
16a3bad
Add note regarding multiple typecodes
kheal Jul 17, 2024
6b31abb
Update CONTRIBUTING.md
kheal Jul 17, 2024
44ae17e
Update CONTRIBUTING.md
kheal Jul 17, 2024
1dcf509
Update range of was_generated_by
aclum Jul 19, 2024
8623d8a
update template
mslarae13 Jul 19, 2024
199525b
Merge branch 'main' into backmerge-2024-07-16
turbomam Jul 19, 2024
08cc23d
requested changes esp @aclum and @eecavanna
turbomam Jul 19, 2024
0526ca6
Merge pull request #229 from microbiomedata/backmerge-2024-07-16
turbomam Jul 24, 2024
dc939e0
Merge pull request #231 from microbiomedata/2134-berkeley-fix-range-f…
aclum Jul 24, 2024
a74d8d6
Merge pull request #225 from microbiomedata/2122_typecode_fix
kheal Jul 24, 2024
877d88e
typos
mslarae13 Jul 25, 2024
8d2f0d0
recreating files; no documentation yet
turbomam Jul 25, 2024
e2bfd54
Update .github/pull_request_template.md
mslarae13 Jul 25, 2024
30240be
Update .github/pull_request_template.md
mslarae13 Jul 25, 2024
d833537
add persons role
mslarae13 Jul 25, 2024
6e3eac4
Update .github/pull_request_template.md
mslarae13 Jul 25, 2024
04fa522
Merge pull request #232 from microbiomedata/add-names-to-PR-template
mslarae13 Jul 26, 2024
f38fbd8
remove deprecation for OrthologyGroup, FunctionalAnnotationTerm
bmeluch Aug 1, 2024
5c5d800
Merge pull request #228 from microbiomedata/upstream-issue-2124-berke…
eecavanna Aug 7, 2024
1ce8a6a
Merge pull request #222 from microbiomedata/1881-deprecate-unused-cla…
bmeluch Aug 7, 2024
64999a7
Merge pull request #234 from microbiomedata/2150-berkeley-schema-fy24…
turbomam Aug 12, 2024
1827046
correct Database problem example files, delete PlaceholderClass
bmeluch Aug 14, 2024
021c7b0
deleted problem files that were corrected and moved to invalid
bmeluch Aug 14, 2024
53e6695
clarified error in file name
bmeluch Aug 14, 2024
6c21a7a
Update workflow_execution_activity.yaml
aclum Aug 19, 2024
b5ddcec
fix example data for MetatranscriptomeExpressionAnalysis
aclum Aug 19, 2024
a738e22
Add example invalid data
aclum Aug 19, 2024
80abc23
remove limit on pydantic 1
turbomam Aug 20, 2024
dce8ba7
remove magically commented lines
turbomam Aug 21, 2024
8c9f9c2
Expanding FailureWhereEnum to include all DataGeneration and Workflow…
aclum Aug 22, 2024
200203c
Merge pull request #238 from microbiomedata/ignore-less-for-releases
turbomam Aug 22, 2024
ecaefcf
add nmdc_schema/nmdc.py; no new content
turbomam Aug 22, 2024
87782b7
Update migrators to use `MetatranscriptomeExpressionAnalysis` type/enum
eecavanna Aug 23, 2024
3335b2a
tested with check-invalids-for-single-failure and then repaired
turbomam Aug 26, 2024
2adf67d
Merge branch 'main' into bjm-example-data-work
bmeluch Aug 27, 2024
3de7cc7
changing from Database to ReadQcAnalysis to get expected error messag…
aclum Aug 28, 2024
33856de
builds but src/data/problem/valid need collaborative debugging
turbomam Aug 28, 2024
88b497e
mixs.yaml is autogenerated but required in build so must be pushed
turbomam Aug 28, 2024
ef23d77
fix and move Database-metatranscriptome_workflow.yaml
aclum Aug 29, 2024
f30aec9
Update Database-metatranscriptome_workflow-invalidDatabase.yaml
aclum Aug 29, 2024
11e5514
Update MagsAnalysisActivity-invalid_ncbi_lineage_tax_ids.yaml
aclum Aug 29, 2024
296be18
deletions for @aclum; mv src/data/problem/valid/*yaml to src/data/valid
turbomam Aug 29, 2024
f5e3984
reorganzing location of create_legacy_orphan_deletion_requests.py
aclum Aug 29, 2024
f8af518
reorganzing location of create_legacy_orphan_deletion_requests.py
aclum Aug 29, 2024
8df3195
correcting comments and file names for clarity
bmeluch Sep 3, 2024
fa9510c
Rename Database-functional_annotation_agg.yaml to Database-functional…
bmeluch Sep 3, 2024
657ef40
Merge pull request #246 from microbiomedata/mam-stage-for-merging-ups…
turbomam Sep 3, 2024
4dd21a0
Merge pull request #220 from microbiomedata/bjm-example-data-work
bmeluch Sep 4, 2024
99e9857
Update instrument_set.yaml
aclum Sep 10, 2024
88594ec
Remove parthood from DataGeneration
aclum Sep 10, 2024
aa0cc7c
updating invalid data files
aclum Sep 10, 2024
1d61dd8
Remove part_of slot_usage on DataGeneration
kheal Sep 10, 2024
6f6f96e
fix migrator to map novaseq 6000 specifically
brynnz22 Sep 10, 2024
d0c2798
Updates to InstrumentModelEnum
aclum Sep 10, 2024
3d8b35c
More updates to InstrumentModelEnum
aclum Sep 10, 2024
52a4758
Merge branch 'main' into 2164-backmerge-metatranscriptome-issues
aclum Sep 10, 2024
d09a443
Removing duplicate slot on MetatranscriptomeExpressionAnalysis
aclum Sep 10, 2024
a8a5125
test uri vs url for alias_contexts
aclum Sep 10, 2024
f1a7cb9
Add doctest targeting special handling of "NovaSeq" name
eecavanna Sep 10, 2024
452e2f2
Eliminate unnecessary indentation of code block
eecavanna Sep 10, 2024
b4ce1f5
Fix issue where instance was being used as identifier
eecavanna Sep 10, 2024
9a894dc
Make the `if` condition be more explicit
eecavanna Sep 10, 2024
f062a9d
Refactor function to clarify logic
eecavanna Sep 10, 2024
117541a
Cache the instruments from the YAML file
eecavanna Sep 11, 2024
b726fe8
Codify example instrument name mappings that were reviewed
eecavanna Sep 11, 2024
b7afa0b
Add draft of protocol_link type migrator
kheal Sep 11, 2024
5759d5c
Add PR number and return to migrator
kheal Sep 11, 2024
edd2f24
Expand collections to search for protocol link
kheal Sep 11, 2024
1e93b11
Add valid and invalid examples for protocol_link type
kheal Sep 11, 2024
26c8bc6
Add part 17 to migrators for berkeley database
kheal Sep 11, 2024
bddcd68
reformatting structured_aliases for InstrumentModelEnum
aclum Sep 11, 2024
df9c0c3
More syntax fixes for structued_alises on InstrumentModelEnum
aclum Sep 11, 2024
05f2587
Syntax fixes for StructuredAliases for InstrumentModelEnum
aclum Sep 11, 2024
982eaa9
more fixing structued alias syntax
aclum Sep 11, 2024
4944064
Update nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/…
kheal Sep 11, 2024
06576cb
Change slot to field in docstring of migrator part 17
kheal Sep 11, 2024
4ba9bcc
Update LibraryPreparation.yaml
kheal Sep 11, 2024
a366005
Updating predicate for InstrumentTypeEnum
aclum Sep 11, 2024
7c6cea4
Merge pull request #247 from microbiomedata/modify-inst-migrator-asset
aclum Sep 11, 2024
7473211
Merge pull request #248 from microbiomedata/2179-berkeley-reverse-par…
aclum Sep 11, 2024
36e5db9
Merge pull request #250 from microbiomedata/2180_protocol_type_migrator
aclum Sep 11, 2024
015ddc4
add type protocol migrator to existing migrator
brynnz22 Sep 11, 2024
9cdc7d5
add metatranscritpome analysis after accidentally removing
brynnz22 Sep 11, 2024
d63a2d9
add three metatranscriptome sets
brynnz22 Sep 11, 2024
82b7de3
Add novaseq x to InstrumentModelEnum.
aclum Sep 11, 2024
3ffc416
Adding tsv to map GOLD seqMethod to NMDC instrument_set instance
aclum Sep 11, 2024
149b70e
Add doctests targeting recently-implemented functionality
eecavanna Sep 12, 2024
1d42298
Fix typos in comments (oops)
eecavanna Sep 12, 2024
3a56db9
Merge pull request #237 from microbiomedata/2164-backmerge-metatransc…
aclum Sep 12, 2024
07e80b4
Update nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/…
brynnz22 Sep 12, 2024
6836fa5
Update nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/…
brynnz22 Sep 12, 2024
7acd724
Merge branch 'main' into update-type-slot-migrator
brynnz22 Sep 12, 2024
986aa47
Update gold_seqMethod_to_nmdc_instrument_set.tsv
aclum Sep 12, 2024
4ba7c08
Merge pull request #249 from microbiomedata/2174-add-aliases-mappings…
aclum Sep 12, 2024
9536ba3
Merge pull request #251 from microbiomedata/update-type-slot-migrator
eecavanna Sep 16, 2024
7e79a06
Generate derivative files for release
eecavanna Sep 16, 2024
26d149d
Merge pull request #253 from microbiomedata/prepare-to-release-v11.0.…
eecavanna Sep 17, 2024
b809522
remove locus from id to match pattern restriction
bmeluch Sep 18, 2024
6aaf85a
Merge pull request #254 from microbiomedata/2175-fix-functional-annot…
bmeluch Sep 20, 2024
9de15fa
add schema changes
brynnz22 Sep 23, 2024
5fd4eb8
Add Reference Calibration File permissible value to FileTypeEnum
brynnz22 Sep 23, 2024
2a991ae
Update basic_slots.yaml
brynnz22 Sep 24, 2024
973cd83
Update basic_slots.yaml
brynnz22 Sep 24, 2024
09827f4
Update basic_slots.yaml
brynnz22 Sep 24, 2024
8ed0522
add NEON NMDC instrument name/id mapping file
sujaypatil96 Sep 24, 2024
cd6acbe
Merge pull request #257 from microbiomedata/issue-2185-neon-nmdc-inst…
sujaypatil96 Sep 24, 2024
cf300b0
temporary-ncbi-expansion-3
turbomam Sep 26, 2024
2b6850e
do-not-use-napa-api
turbomam Sep 26, 2024
c9ab0d0
update-selected-collections
turbomam Sep 26, 2024
dbef7f1
remove-jena-tdb-fuseki-gold-study-ids
turbomam Sep 26, 2024
ef02da2
Merge pull request #255 from microbiomedata/fix-calib-target-enum
brynnz22 Sep 30, 2024
8d74208
Merge pull request #256 from microbiomedata/add-file-type-enum
brynnz22 Sep 30, 2024
4cf6461
force-docs
turbomam Sep 30, 2024
8483e99
Delete deleteme
turbomam Sep 30, 2024
1955bf4
inlined-as-list-updates
turbomam Oct 2, 2024
d3dbf6f
add updated project.Makefile
turbomam Oct 2, 2024
2a58b76
Update project.Makefile
turbomam Oct 2, 2024
f149bd5
Merge pull request #269 from microbiomedata/inlined-as-list-updates
turbomam Oct 2, 2024
fa75ecf
Merge pull request #261 from microbiomedata/do-not-use-napa-api
turbomam Oct 2, 2024
8c70ab8
Merge pull request #262 from microbiomedata/update-selected-collections
turbomam Oct 2, 2024
5829cc9
Merge pull request #260 from microbiomedata/temporary-ncbi-expansion-3
turbomam Oct 2, 2024
f4ba810
Merge branch 'main' into exclude-metaproteomicsanalysis
turbomam Oct 2, 2024
dfd7416
got rid of fuseki stragglers
turbomam Oct 2, 2024
1129452
Merge pull request #263 from microbiomedata/remove-jena-tdb-fuseki-go…
turbomam Oct 2, 2024
4aadf0c
make-rdf-completes-but
turbomam Oct 2, 2024
2387ceb
Merge pull request #271 from microbiomedata/make-rdf-completes-but
turbomam Oct 2, 2024
54dd8b7
Merge branch 'main' into exclude-metaproteomicsanalysis
turbomam Oct 2, 2024
733e3eb
skip peptide_quantifications, not entire proteomics workflows
turbomam Oct 2, 2024
5555df2
skip peptide_quantifications, not entire proteomics workflows
turbomam Oct 2, 2024
0e93b74
Merge pull request #270 from microbiomedata/exclude-metaproteomicsana…
turbomam Oct 2, 2024
13bda2d
reason for skipping calibration_set
turbomam Oct 2, 2024
730e3cb
Merge pull request #272 from microbiomedata/reason-for-skipping-calib…
turbomam Oct 2, 2024
c000a53
v11.0.0rc24
turbomam Oct 7, 2024
75f1c8a
Merge branch 'main' into resolve-merge-conflict-in-nmdc.py
turbomam Oct 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 17 additions & 4 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,33 @@

## _Soft_ Schema Freeze

The `nmdc-schema` and `berkeley-schema-fy24` schemas are under a soft freeze, which means changes **should not** be made that have any downstream implications. To ensure this, all PRs created creating during the freeze will be closely reviewed with **every** component of the NMDC system in mind.
The `nmdc-schema` and `berkeley-schema-fy24` schemas are under a soft freeze, which means changes **should not** be made that have any downstream implications. To ensure this, all PRs created during the freeze will be closely reviewed with **every** component of the NMDC system in mind.

## Reviewers

To ensure no changes are made unexpectedly, PR creators will request reviews from _all_ [Berkeley Schema Roll Out task coordinators](https://docs.google.com/document/d/1XXN1YuaBuSkxPXeiLKm5YxYzXTamBPQrzzeLhlh7PWs/edit#heading=h.u52g8v319adh).
To ensure no changes are made unexpectedly, PR creators will use this PR template to tag and notify all task coordinators. Review should be specifically requested from _all_ [Berkeley Schema Roll Out task coordinators](https://docs.google.com/document/d/1XXN1YuaBuSkxPXeiLKm5YxYzXTamBPQrzzeLhlh7PWs/edit#heading=h.u52g8v319adh) that you expect to be affected by this PR.

We expect task coordinators to review PRs and provide feedback/approval within 1 week of when they are identified as reviewers.

PRs will **NOT** be merged until all task coordinators (or one of their delegates) have approved.
PRs will **NOT** be merged until all task coordinators (or their delegates) have approved it; either here on GitHub (via "`Review changes` > `Approve`" or an equivalent comment) or verbally.

Expedition, questions, and discussion can happen at any meeting.

Delays in review & merging should be addressed in meetings or with NMDC leadership.

| If you expect the changes to<br>impact this component... | ...[request a review](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review)<br>from this person |
| -- | -- |
| Metadata<br>Schema | @mslarae13 |
| Runtime<br>Mongo database<br>Database migrations | @eecavanna,<br>who will pull in<br>@shreddd as needed |
| Postgres<br>Ingest | @naglepuff |
| Data Portal | @aclum |
| Workflows: MG & MT | @mbthornton-lbl |
| Workflows: MetaB & NOM | @corilo |
| Workflows: LipidO | @kheal |
| Workflows: MetaP | @SamuelPurvine |
| ETL code | @sujaypatil96 |
| Jupyter notebooks | @brynnz22 |

# PR Information

## What type of PR is this? (check all applicable)
Expand Down Expand Up @@ -80,4 +93,4 @@ Delays in review & merging should be addressed in meetings or with NMDC leadersh
> Examples: any change here that requires a change to workflows, workflow automation, the Mongo-to-Postgres ingest process, Jupyter notebooks, the Runtime, etc.
- [ ] Yes _(Explain below)_
- [ ] No
- [ ] No
6 changes: 3 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

name: Build and test nmdc-schema

on: [pull_request]
on: [ pull_request ]

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10"]
python-version: [ "3.9", "3.10" ]

steps:

Expand Down Expand Up @@ -49,5 +49,5 @@ jobs:
# run test suite
#----------------------------------------------
- name: Run tests
run: make test
run: make squeaky-clean all test

2 changes: 1 addition & 1 deletion .github/workflows/test_pages_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
5 changes: 5 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[MASTER]
ignore-paths=nmdc_schema/migrators/*,nmdc_schema/nmdc_data.py,nmdc_schema/nmdc_version.py,nmdc_schema/validate_nmdc_json.py

[MESSAGES CONTROL]
disable=line-too-long
132 changes: 0 additions & 132 deletions CHANGELOG.md

This file was deleted.

4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ Core developers should read the material on the [LinkML site](https://linkml.io/
- Follow the naming conventions of the parent class
- Descriptions of child classes may reference parent classes in a genus-differentia definition structure (e.g. "A workflow execution activity that...")
- Inheritance should be monotonic: `slot_usage` should refine rather than override
- ID patterning and checks
- ID patterns for new classes should follow conventions found [here](https://microbiomedata.github.io/nmdc-schema/identifiers/)
- In the _rare_ case that NMCD records must support legacy typecodes, typecodes can be declared on new classes with multiple typecodes (i.e. `syntax: "{id_nmdc_prefix}:(dgns|omprc)-{id_shoulder}-{id_blade}$"`). In this case, the _first_ typecode is the one the NMDC Runtime's [minter](https://github.com/microbiomedata/nmdc-runtime/tree/main/nmdc_runtime/minter) will use when generating new ids for the class.
- Class-linking slots (i.e. `has_input`) should have a `slot_usage` declared that limits the slot's values to ids of instances of _only_ the specific classes you want to allow the slot to link to (e.g. using `syntax: "{id_nmdc_prefix}:chrcon-{id_shoulder}-{id_blade}$"` on the `structured_pattern` will make it so only ids having the typecode `chrcon` can fill that slot)

### Testing Changes Locally

Expand Down
40 changes: 31 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ TEMPLATEDIR = doc-templates

.PHONY: all clean examples-clean install site site-clean site-copy squeaky-clean test test-python test-with-examples


# note: "help" MUST be the first target in the file,
# when the user types "make" they should get help info

Expand Down Expand Up @@ -83,15 +84,19 @@ update-linkml:
create-data-harmonizer:
npm init data-harmonizer $(SOURCE_SCHEMA_PATH)

# Note: `all` is an alias for `site`.
all: site
site: clean site-clean gen-project gendoc migration-doctests nmdc_schema/gold-to-mixs.sssom.tsv
site: clean site-clean gen-project gendoc \
nmdc_schema/gold-to-mixs.sssom.tsv \
nmdc_schema/nmdc_materialized_patterns.schema.json nmdc_schema/nmdc_materialized_patterns.yaml \
migration-doctests

%.yaml: gen-project

# was deploy: all mkd-gh-deploy
deploy: gendoc mkd-gh-deploy

gen-project: $(PYMODEL) src/schema/mixs.yaml
gen-project: $(PYMODEL) # depends on src/schema/mixs.yaml # can be nuked with mixs-yaml-clean
$(RUN) gen-project \
--exclude excel \
--exclude graphql \
Expand All @@ -110,9 +115,8 @@ gen-project: $(PYMODEL) src/schema/mixs.yaml
-d $(DEST) $(SOURCE_SCHEMA_PATH) && mv $(DEST)/*.py $(PYMODEL)
cp project/jsonschema/nmdc.schema.json $(PYMODEL)


test: examples-clean site test-python examples/output
only-test: examples-clean test-python examples/output
test: examples-clean site test-python migration-doctests examples/output
only-test: examples-clean test-python migration-doctests examples/output

test-schema:
$(RUN) gen-project \
Expand Down Expand Up @@ -155,7 +159,7 @@ gendoc: $(DOCDIR)
# added copying of images and renaming of TEMP.md
cp $(SRC)/docs/*md $(DOCDIR) ; \
cp -r $(SRC)/docs/images $(DOCDIR) ; \
$(RUN) gen-doc -d $(DOCDIR) --template-directory $(SRC)/$(TEMPLATEDIR) $(SOURCE_SCHEMA_PATH)
$(RUN) gen-doc -d $(DOCDIR) --template-directory $(SRC)/$(TEMPLATEDIR) --include src/schema/deprecated.yaml $(SOURCE_SCHEMA_PATH)
mkdir -p $(DOCDIR)/javascripts
$(RUN) cp $(SRC)/scripts/*.js $(DOCDIR)/javascripts/

Expand Down Expand Up @@ -222,7 +226,9 @@ site-clean: clean
rm -rf nmdc_schema/*.tsv
rm -rf nmdc_schema/*.yaml


squeaky-clean: clean examples-clean rdf-clean shuttle-clean site-clean # does not include mixs-yaml-clean
mkdir project
rm -rf local/biosample_slots_ranges_report.tsv

nmdc_schema/nmdc_materialized_patterns.yaml:
Expand All @@ -238,12 +244,28 @@ nmdc_schema/nmdc_materialized_patterns.schema.json: nmdc_schema/nmdc_materialize
--include-range-class-descendants \
--top-class Database $< > $@

# todo this target makes a lot of prerequisites if necessary, but they aren't part of the copying prpocess
# the sssom/ files should be double checked too... they're probably not all SSSSOM files
nmdc_schema/gold-to-mixs.sssom.tsv: sssom/gold-to-mixs.sssom.tsv nmdc_schema/nmdc_materialized_patterns.schema.json \
nmdc_schema/nmdc_materialized_patterns.yaml
nmdc_schema/gold-to-mixs.sssom.tsv: sssom/gold-to-mixs.sssom.tsv
# just can't seem to tell pyproject.toml to bundle artifacts like these
# so reverting to copying into the module
cp $< $@


nmdc_schema/nmdc_schema_merged.yaml: project/nmdc_schema_merged.yaml
cp $< $@

####

.PHONY: check-invalids-for-single-failure

# echo "Running command: $$cmd"; \
check-invalids-for-single-failure:
for file in src/data/invalid/*.yaml; do \
echo "$$file:"; \
target_class=$$(basename $$file | cut -d'-' -f1); \
cmd="poetry run linkml-validate --schema nmdc_schema/nmdc_materialized_patterns.yaml --target-class $$target_class $$file"; \
output=$$($$cmd 2>&1 || true); \
echo "$$output" | sort | uniq; \
done

2 changes: 2 additions & 0 deletions assets/blanklines.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@


Loading
Loading