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

Improve doc type setting #14

Merged
merged 3 commits into from
Nov 21, 2023
Merged

Improve doc type setting #14

merged 3 commits into from
Nov 21, 2023

Conversation

marijnkoolen
Copy link
Collaborator

The way document types were set was illogical and unintuitive. The StructureDoc classes have their own base type, which is added as a type by default, but if the user provides a type, that should be set as the main type.

When setting a parent id in the metadata of a child, the main type should be used in the id property name.

- Make sure user-provided type is main type
This makes the API more consistent between physical and logical domains.
@brambg brambg merged commit 5a54627 into master Nov 21, 2023
1 of 9 checks passed
@brambg brambg deleted the improve_doc_type branch November 21, 2023 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants