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

MBS-13925: Instrument name erroneously displayed in link type autocomplete #3467

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mwiencek
Copy link
Member

@mwiencek mwiencek commented Feb 8, 2025

Problem

MBS-13925

This was due to _getRequiredAttributes inappropriately caching its result when attributesByRootName was specified. Results should only be cached when root attributes are being returned.

Solution

I've removed the attributesByRootName argument altogether and now just merge the relationship-specific attribute names within getPhraseAndExtraAttributes instead.

Testing

Manual testing + unit tests added in root/static/scripts/edit/utility/linkPhrase.js.

…plete

This was due to `_getRequiredAttributes` inappropriately caching its result
when `attributesByRootName` was specified. Results should only be cached when
root attributes are being returned.

I've removed the `attributesByRootName` argument altogether and now just merge
the relationship-specific attribute names within `getPhraseAndExtraAttributes`
instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant