microbiomedata / sheets_and_friends

Enhance a LinkML model with imported and optionally modified slots
0 stars 0 forks source link

Ready for MERGE! netlify test with manually copied linkml-datastructure output #101

Closed turbomam closed 2 years ago

turbomam commented 2 years ago
netlify[bot] commented 2 years ago

Deploy Preview for voluble-pika-79eed4 ready!

Name Link
Latest commit 057e9b6b077fb3a36c24bea5c54066e83ac58db4
Latest deploy log https://app.netlify.com/sites/voluble-pika-79eed4/deploys/6269a3114617c200086e8c0d
Deploy Preview https://deploy-preview-101--voluble-pika-79eed4.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

subdavis commented 2 years ago

@turbomam I'd like to help fix this branch, but I don't know how it works. The problem is that there are, as far as I can tell, 3 different main.js files, and I don't know which one ends up in the build.

Based on dev_notes.txt I think that last one is the right one. I tried to make the modification and build, but I'm still not able to do so:

~$ make all
rm -rf DataHarmonizer/template/nmdc
rm -rf artifacts/*yaml
rm -rf docs/*
rm -rf logs/*log
rm -rf project/*py
rm -rf project/docs/*
rm -rf project/excel/*
rm -rf project/graphql/*
rm -rf project/java/*
rm -rf project/jsonld/*
rm -rf project/jsonschema/*
rm -rf project/owl/*
rm -rf project/prefixmap/*
rm -rf project/protobuf/*
rm -rf project/shacl/*
rm -rf project/shex/*
rm -rf project/sqlschema/*
rm -rf target/*log
rm -rf target/*tsv
rm -rf target/*txt
poetry run cogs add schema_boilerplate
poetry run cogs fetch
WARNING: Local sheet 'cornerstone' has been renamed to 'schema_boilerplate' remotely:
  - 'cornerstone' is removed from tracking and replaced with 'schema_boilerplate'
  - cornerstone.tsv will not be updated when running `cogs pull` 
  - changes to cornerstone.tsv will not be pushed to the remote spreadsheet
sleep 10
poetry run cogs add dh_interfaces
poetry run cogs fetch
sleep 10
poetry run cogs add mixins
poetry run cogs fetch
sleep 10
poetry run cogs add mixin_slots
poetry run cogs fetch
sleep 10
poetry run cogs add sections_as_slots
poetry run cogs fetch
sleep 10
poetry run cogs fetch
poetry run sheets2linkml -o artifacts/from_sheets2linkml.yaml .cogs/tracked/schema_boilerplate.tsv .cogs/tracked/dh_interfaces.tsv .cogs/tracked/mixins.tsv .cogs/tracked/mixin_slots.tsv .cogs/tracked/enums.tsv .cogs/tracked/sections_as_slots.tsv 2>> logs/sheets2linkml.log
Makefile:67: recipe for target 'artifacts/from_sheets2linkml.yaml' failed
make: *** [artifacts/from_sheets2linkml.yaml] Error 1

I then found that, after this failed run, docs/script/main_linkml.js has been deleted, so that seems like a file that gets generated from another file during build.

In order to resolve this, I need to...