-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Hide deprecated fields from SearchKit & Afform #25113
Conversation
(Standard links)
|
@colemanw just hypothetically if someone had created a saved search kit using one of these fields would that mean the search display / Search kit breaks doing this because the field no longer renders in the Admin UI / any UI? |
@seamuslee001 yes, the search will still run, but that field will disappear next time you edit it. |
|
OTOH, the longer we leave it in, the more likely someone is to use it. Do you know of anyone already doing so? I was assuming probably not. |
I see your point, and I forgot we already did
So it doesn't block this PR but I'll look at doing an upgrade message for anyone who has an activity with is_current_revision=0, and point them to the snippet. The previous one was just for people with the setting still turned on. |
Overview
Hides any fields marked
@deprecated
from the SK & Afform UI. Follow-up to #25112.Before
Now you see them.
After
Now you don't.
Technical Details
This builds on #24248 and #25112 and more recently #25112 by exposing the 'deprecated' attribute to APIv4
getfields
and then filtering them out in SK & Afform.