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 database hydration #115

Merged
merged 6 commits into from
May 16, 2022
Merged

Fix database hydration #115

merged 6 commits into from
May 16, 2022

Conversation

lossyrob
Copy link
Member

There's a bug caused by a misordering of parameters on one of the content_hydrate overloads. This surfaced in queries that used database hydration when the base item had assets that did not belong to the target item. Assets were 'added' from the base item that did not have hrefs, therefore causing invalid items to be produced.

Added tests that check for a valid item after load, and modified the hydration tests to use content_hydrate instead of merge_jsonb.

Updates to 0.6.3

lossyrob added 4 commits May 14, 2022 18:45
The problem is in the ordering of arguments
to content_hydrate; this shows true failures across
other hydrate tests
@lossyrob lossyrob requested a review from bitner May 16, 2022 14:11
@lossyrob
Copy link
Member Author

Will merge and release once #114 is merged and integrated

@lossyrob lossyrob merged commit 78e7ad0 into main May 16, 2022
@lossyrob lossyrob deleted the fix/rde/db-hydration branch May 16, 2022 16:49
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