Skip to content

Fixed: Global options not respected in relationship links rendering #946

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

Merged
merged 2 commits into from
Feb 10, 2021

Conversation

bart-degreed
Copy link
Contributor

Bugfix: relationship links were rendered for ToMany relationships, even when explicitly turned off in global options (and not configured on the relationship itself).

Fixes #945.

@bart-degreed
Copy link
Contributor Author

Let's not merge this yet, I should add some tests first.

@maurei
Copy link
Member

maurei commented Feb 8, 2021

It was assigned to me, was that on purpose, or did you mean to request a review?

@bart-degreed bart-degreed assigned bart-degreed and unassigned maurei Feb 9, 2021
@bart-degreed
Copy link
Contributor Author

Not on purpose, I intended to ask for review.

…en when explicitly turned off in global options (and not configured on the relationship itself).
@bart-degreed bart-degreed force-pushed the relationship-links-fix branch from 21e8842 to eec96a7 Compare February 9, 2021 12:49
…n value setters because this is a flags enum, so the checks were incorrect. For example, you are not allowed to pass `Links.Paging`, but are allowed to pass `Links.Related | Links.Paging` or `Links.All`, which all mean "include paging in the set of links".
@bart-degreed bart-degreed requested a review from maurei February 9, 2021 16:08
@bart-degreed
Copy link
Contributor Author

@maurei Added tests, can you please take another look?

@maurei maurei merged commit 04ba8b1 into master Feb 10, 2021
@maurei maurei deleted the relationship-links-fix branch February 10, 2021 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Global options not respected in relationship links rendering
2 participants