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

Fix bug preventing deeper nested hierach collection creation #121

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

donaldgray
Copy link
Member

Fixes #119. Issue was how slug was concatenated, slash was missing meaning all path segments were concatenated. Using examples from ticket:

  • /nest_test_a - resulted in looking for parent with slug "" (root)
  • /nest_test_a/nest_test_b - resulted in looking for parent with slug "nest_test_a" (created above).
  • /nest_test_a/nest_test_b/nest_test_c - resulted in looking for parent with slug "nest_test_bnest_test_c" as segments were joined with string.Empty which was not found. Fix is to concatenate elements with "/" so we now look for "nest_test_b/nest_test_c"

Also added missing tests for RetrieveHierarchy

Issue was how slug was concatenated, slash was missing
@donaldgray donaldgray merged commit 310b759 into main Oct 25, 2024
3 checks passed
@donaldgray donaldgray deleted the feature/bugfix_nestedcollection branch October 25, 2024 10:51
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.

IIIF collections created via POST hierarchical URL can be no more than two collections deep
2 participants