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

SLING-12265 - Improve node type registration in JCR_OAK #37

Merged
merged 3 commits into from
Apr 10, 2024

Conversation

csaboka
Copy link
Contributor

@csaboka csaboka commented Mar 11, 2024

Instead of calling CndImporter (and triggering one commit per CND file), parse each CND file separately and register them all at once. This doesn't just reduce the number of commits, but also takes care of inter-type dependencies.

@csaboka csaboka force-pushed the SLING-12265 branch 2 times, most recently from 1f13653 to 20b39e9 Compare March 11, 2024 20:31
@csaboka csaboka changed the title SLING-11265 - Improve node type registration in JCR_OAK SLING-12265 - Improve node type registration in JCR_OAK Mar 12, 2024
Instead of calling CndImporter (and triggering one commit per CND file),
parse each CND file separately and register them all at once. This
doesn't just reduce the number of commits, but also takes care of
inter-type dependencies.
Copy link
Member

@stefanseifert stefanseifert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @csaboka for this contribution, this looks very good! i've run some unit tests locally with this PR, and there is really a considerable improvement if JCR_OAK is used.
please check my review comment.

Turns out Oak already does this for us on commit, so there is no need
for duplicating the code. The Mock JCR implementation doesn't, but we
won't try to register node types for it in the first place.
Copy link

sonarcloud bot commented Apr 9, 2024

@stefanseifert stefanseifert merged commit 4ff35ad into apache:master Apr 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants