Skip to content

Conversation

reosarevok
Copy link
Member

@reosarevok reosarevok commented Jun 6, 2025

Implement MBS-14053 (II)

Description

This adds an ended attribute to aliases in XML to match what we already do in JSON. While ideally we would probably add a life-span element to aliases, that would be a big change given we already do dates as attributes, so it's probably better left for ws/3. For now, this matches what we do for the primary boolean.

Associated mmd-schema PR: metabrainz/mmd-schema#42

Testing

Added checks for this to the API tests. Additionally, since we weren't really testing aliases in the API other than the entirely bare minimum, added checks for the rest of the alias attributes on a separate commit.

AFAICT we were only testing the most basic alias display in the API,
namely aliases with sortnames and nothing else.
This adds testing for begin and end dates, types, and locale + primary.
This adds "ended" to aliases in XML to match what we already do in JSON.
While ideally we would probably add a life-span element to aliases,
that would be a big change given we already do dates as attributes,
so it's probably better left for ws/3.
For now, this matches what we do for the "primary" boolean.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant