-
Notifications
You must be signed in to change notification settings - Fork 19
STSMACOM-938 Provide the ability to hide system custom fields from settings #1619
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
base: main
Are you sure you want to change the base?
Conversation
|
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.
This feels like the right solution to the wrong problem, like giving somebody a lead-lined wallet to prevent their uranium credit card from poisoning them. Sure, it works, but a better solution is not to manufacture uranium credit cards in the first place. I get it; I wrote UIU-2499 (folio-org/ui-users#2013) and here I will add the same caution: a UI-only fix isn't really a fix at all because a determined user can still get at this data via APIs.
Additionally, the cognitive dissonance of a "system" custom-field is extraordinary. What is "custom" about it if it's being provided by the system itself? And if originaltenantid is necessary for authentication, why is that data being stored in a custom field?!?
Did we bump this up a level to find out from an architect if this is a good solution? Maybe the boss/architect says, "Yeah, I understand that manufacturing radioactive credit cards is problematic, but that's not your problem to solve today. Today I need you to focus on lead-lined wallets." then I grudgingly approved this nicely-implemented PR. Still, my hope is the boss says, "Whoops, you're right, adding lead will cause its own problems. Instead of doing that, we should back up and see if this whole situation can be avoided."
@SerhiiNosko, Maybe you can better describe the architectural approach with custom fields? |
|
@usavkov-epam, @SerhiiNosko: It's less "Is there somebody who understands the big-picture architecture who can explain it to |



Purpose
https://folio-org.atlassian.net/browse/STSMACOM-938
originaltenantidcustom field (which breaks identity-provider links and prevents logins).Settings → Users → Custom fieldsso admins cannot remove or edit them via the UI.Approach
refIdmatches known system ref ids (CUSTOM_FIELDS_SYSTEM_REF_IDSincludesoriginaltenantid).systemFieldsprop to the settings pages for tenant-specific or future system fields.CUSTOM_FIELDS_SYSTEM_REF_IDSconstant with['originaltenantid'].excludeSystemCustomFields(systemFields, customFields)utility that removes fields whoserefIdis in the union ofCUSTOM_FIELDS_SYSTEM_REF_IDSand thesystemFieldsprop.Screen recording
Screen.Recording.2026-01-27.at.22.16.45.mov