Skip to content

MBS-14053 (server): Add ended flag to aliases #3559

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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