-
Notifications
You must be signed in to change notification settings - Fork 1
STTYPES-21 Update ACQ interfaces to reflect BE changes: userLimit type (number → string) and schema cleanup
#85
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
Conversation
…e (number → string) and schema cleanup
|
zburke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@usavkov-epam , Uh, I know I'm late to the party and what's really happening here is reflecting backend changes into the response-shapes we have to deal with on the frontend, but can you explain why userLimit's type is changing from number to string?
The Trillium release of Stripes is not intended to be breaking, but bumping stripes-types to v4 works against that, so this change puts us in an awkward position. @ncovercash , @JohnC-80 , a penny for your thoughts on how to handle type-changes like this one (if we agree it is legit) or other things (e.g. type-narrowing). What is conventional in TypeScript-land?
|
@ncovercash , @JohnC-80 , strictly from the point of view of compatibility, is there any merit (or danger) to defining instead of just |
|
@zburke I believe you’ve already seen Dennis Bridges’ message in Slack (link), where he explains the business logic behind changing the field type—specifically, that some vendors may need to include alphanumeric characters rather than just numbers. I agree that, at first glance, simply changing the field type seems like a minor adjustment, but it has led to a significant number of changes across the project, which does raise some concerns. Regarding the |
|
Thanks for weighing in, @usavkov-epam. In yet another Slack conversation, we concluded that ACQ types really shouldn't be part of stripes-types in the first place and that instead of implementing a breaking change here and now, we should instead:
If you're OK with this plan, let's close this PR. I will open a ticket in STYPES to remove the ACQ types in Umbrella-leaf (assuming that is the next release with breaking changes). |



JIRA https://folio-org.atlassian.net/browse/STTYPES-21
Changes in BE (#1108, #1104):
userLimittype changed fromnumberto string.alerts,reportingCodes).