SEARCH-751: Add the target-type property to relationships in event and work JSON#68
SEARCH-751: Add the target-type property to relationships in event and work JSON#68mwiencek wants to merge 4 commits into
Conversation
|
I am a bit confused. Is this a breaking change only if also applied to areas and URLs? Or is it a breaking change anyway but we are ok with it for events and works? Generally for JSON we have implemented this sort of improvement when it would be a breaking change by having both the old weird way and the new corrected way together in the response, haven't we? Is there a big reason this would not work here? The change itself seems fine AFAICT, based on the tests. |
The larger breaking change I was talking about for areas and URLs is SEARCH-444, not SEARCH-751. The problem is that injecting the It would be technically possible to add separate adapter classes that only inject If we're just talking about adding
So, if we're talking about SEARCH-444, preserving the old weird way would require duplicating all relationships in the response. |
|
Oh, I see. But normally the suggestion for breaking changes in the JSON stuff has been "with ws/3" - I'm not opposed to do so during the schema change, but then we need to be very clear about it and announce it very clearly in advance I expect, because waiting for ws/3 is why we duplicate all the other stuff now :) (and if we are willing to do that, I expect there's a bunch of other stuff we could fix at the same time...) |
…d work JSON The `target-type` is also missing from area and URL relationships, but this commit only affects event and work relationships. Extending the `RelationAdapter` usage to areas and URLs would add the `target-type` but also fix SEARCH-444, which is a larger breaking change.
|
For future clarification, we agreed in a team meeting to release this now and fix the rest of the issues during the next schema change, as discussed above :) |
reosarevok
left a comment
There was a problem hiding this comment.
LGTMBDNT. I'd still appreciate an @yvanzo review as well.
This adds the
target-typeproperty to event and work relationships, which is present in the JSON output of musicbrainz-server.Extending the
RelationAdapterusage to areas and URLs would fix SEARCH-444, but is a larger breaking change, which is why this only applies to events and works.Tested via manual queries on my local search server, and by adding to or updating existing tests.