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

SOLR-3, SOLR-66: Bring event to current search parity #45

Merged
merged 8 commits into from Oct 23, 2017

Conversation

samj1912
Copy link
Contributor

No description provided.

@samj1912 samj1912 changed the title SOLR-66: Bring event to current search parity SOLR-3, SOLR-66: Bring event to current search parity Oct 16, 2017
:type obj: :class:`mbdata.models.LinkAreaEvent`
"""
relation = models.relation(direction="backward",
type_=obj.link.link_type.name)
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this also output type_id? I also wonder why convert_area_relation above doesn't output attributes, but this does.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I dont see a type_id anywhere in the current search results - https://musicbrainz.org/ws/2/event?query=area:Berlin

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Although I can see it has been added in ws results.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

@mwiencek mwiencek Oct 19, 2017

Choose a reason for hiding this comment

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

Not sure if there are tickets for that, but it should be made to match the standard WS results. Relationships should be serialized in the same way everywhere, other than the target entity -- I think it'd make sense to only have one method for serializing all relationships that accepts a callback to add in the target.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made it uniform.

@samj1912 samj1912 merged commit bb474e2 into metabrainz:master Oct 23, 2017
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