Skip to content

Instantly share code, notes, and snippets.

@Naoray
Last active April 17, 2020 11:54
Show Gist options
  • Select an option

  • Save Naoray/91efb48fca1642800f5c7ddda652c454 to your computer and use it in GitHub Desktop.

Select an option

Save Naoray/91efb48fca1642800f5c7ddda652c454 to your computer and use it in GitHub Desktop.
Ideas on how to add addon's definition to blueprint
models:
Post:
author_id: id:user
# other field definitions
Comment:
post_id: id
addons:
nova:
Post:
author: searchable
Comment:
post: searchable
models:
Post:
author_id: id:user
# other field definitions
Comment:
post_id: id
# other field definitions
nova:
Post:
author: searchable
Comment:
post: searchable
models:
Post:
author_id: id:user searchable
# other field definitions
Comment:
post_id: id searchable
# other field definitions
@Naoray

Naoray commented Apr 17, 2020

Copy link
Copy Markdown
Author

The easiest for the addon devs would be to simply merge their definitions with the original blueprint definitions like adding a searchable to the field definition draft.yaml. This would most likely cause a lot of confusion and probably errors from the blueprint:build command.

The other ideas are hopefully self-explanatory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment