-
Notifications
You must be signed in to change notification settings - Fork 5
fix: fix errors on apiv2 schema updates #467
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
base: main
Are you sure you want to change the base?
Conversation
| update-schema: codegen alembic-autogenerate alembic-upgrade-head | ||
| # $(docker_compose_run) $(CONTAINER) ruff check --fix . | ||
| $(docker_compose_run) $(APP_CONTAINER) sh -c 'strawberry export-schema main:schema > /app/graphql_api/schema.graphql' | ||
| linkml generate erdiagram --structural --classes Alignment --classes AnnotationAuthor --classes AnnotationFile --classes AnnotationShape --classes Annotation --classes DatasetAuthor --classes DatasetFunding --classes Dataset --classes DepositionAuthor --classes Deposition --classes Frame --classes PerSectionAlignmentParameters --classes AnnotationMethodLink --classes GainFile --classes FrameAcquisitionFile --classes Run --classes Tiltseries --classes PerSectionParameters --classes TomogramAuthor --classes TomogramVoxelSpacing --classes Tomogram schema/schema.yaml> schema/README.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Makefile
Outdated
| .PHONY: update-api-schema | ||
| update-api-schema: | ||
| $(MAKE) -C apiv2 update-schema | ||
| pre-commit run --all-files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might not be needed for --all-files when only files inside apiv2 would have changed.
Also, should this be a part of the make command for apiv2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohhh I didn't realize we can run pre-commit from subdirectories!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait actually it is part of that make target. It looks like pre-commit behaves differently when run from inside vs outside the apiv2 directory
# Conflicts: # apiv2/schema/README.md
This pr does a couple things: