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

Rework cookbook #149

Merged
merged 29 commits into from
Jan 13, 2023
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
662fb05
Reformat existing cookbooks to use the table layout for the recipe+js…
digitaldogsbody Dec 24, 2022
15759b5
Add mkdocs-awesome-pages and configure it to automatically add the co…
digitaldogsbody Dec 24, 2022
8f3d4b5
Add brief recipes introduction and update the docs nav
digitaldogsbody Dec 24, 2022
8890ae2
Move all cookbook python to individual files and update recipe markdo…
digitaldogsbody Dec 24, 2022
3e251be
Update mkdocs to use pymdownx snippets
digitaldogsbody Dec 24, 2022
2b92935
First pass cookbook testing utility
digitaldogsbody Dec 27, 2022
3413149
Lint recipe file, mark regex strings as raw, add qa ignore for functi…
digitaldogsbody Dec 27, 2022
4aa35a0
Lint recipes
digitaldogsbody Dec 27, 2022
a098ed9
Update recipes to correct errors discovered by the new tool
digitaldogsbody Dec 27, 2022
262d202
Update existing recipes to make use of the new `anno_id` and `anno_pa…
digitaldogsbody Dec 27, 2022
005efb3
Add deepdiff to the dev dependencies
digitaldogsbody Dec 27, 2022
659beef
First pass recipe checker workflow
digitaldogsbody Dec 27, 2022
2924e13
Make sure cache directory exists and remove unimplemented `--no-cache…
digitaldogsbody Dec 27, 2022
4823d44
Use the correct arg name (oops!)
digitaldogsbody Dec 27, 2022
77618c6
Update workflow to fail on missing files
digitaldogsbody Dec 27, 2022
956a92f
Add recipe but not script to test failure
digitaldogsbody Dec 27, 2022
316b44a
Stop script matching JSON group to test `--fail-missing`
digitaldogsbody Dec 27, 2022
71d4afa
Change the script back to the correct location
digitaldogsbody Dec 27, 2022
b66b4a3
Update auto_helper to apply AutoLabel to the `Class` meta-class, sinc…
digitaldogsbody Dec 27, 2022
0eaf219
Correct recipe description
digitaldogsbody Dec 27, 2022
20249cb
Add 0017 script
digitaldogsbody Dec 27, 2022
943a78a
Import and use Pydantic's JSON encoder function to ensure we can seri…
digitaldogsbody Jan 2, 2023
401760f
Add 0230-navdate recipe
digitaldogsbody Jan 2, 2023
8bb8777
Update cookbook test script regexes
digitaldogsbody Jan 2, 2023
e2e2c44
Fix bug with `insert` changetype
digitaldogsbody Jan 2, 2023
4f2e2a0
Add extra properties on ManifestRef changeset
digitaldogsbody Jan 2, 2023
b4dcf1b
Update skeleton
digitaldogsbody Jan 2, 2023
1654385
Update auto_helper to apply AutoLabel to the `Reference` meta-class
digitaldogsbody Jan 2, 2023
5b3a78b
Add second method to 0230 recipe
digitaldogsbody Jan 2, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update auto_helper to apply AutoLabel to the Reference meta-class
  • Loading branch information
digitaldogsbody committed Jan 2, 2023
commit 165438587b734d51f20a64133bbb9f0c2307e380
4 changes: 2 additions & 2 deletions iiif_prezi3/helpers/auto_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from ..config.config import Config, register_config
from ..skeleton import (Annotation, AnnotationCollection, AnnotationPage,
Canvas, Class, Collection, KeyValueString, Manifest, Range)
Canvas, Class, Collection, KeyValueString, Manifest, Range, Reference)


class AutoConfig(Config):
Expand Down Expand Up @@ -152,5 +152,5 @@ def manipulate_value(self, what, value=None):

# Set up some obvious defaults
ai.register_on_class(Collection, Manifest, Canvas, Range, Annotation, AnnotationPage, AnnotationCollection)
al.register_on_class(Collection, Manifest, Canvas, Range, AnnotationCollection, KeyValueString, Class)
al.register_on_class(Collection, Manifest, Canvas, Range, AnnotationCollection, KeyValueString, Class, Reference)
ait.register_on_class(Canvas, Range)