-
Notifications
You must be signed in to change notification settings - Fork 79
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
fix: expose ShowInSearch field in access UI #1399
Conversation
There's something odd happening with the behat tests... can you please rebase your PR to see if that resolves it? |
Rebased now. |
@GuySartorelli should be under 'Permissions' |
Oh, interesting. Was it under "permissions" in CMS 3? That doesn't seem like an intuitive place for it, but if that's where it was in CMS 3 then I'd be okay with it. Please add an exception for Folder - there is a comment in the $db definition that says it shouldn't be inherited for folder, so we shouldn't show the field for folders. |
@GuySartorelli Done added a check to exclude folder. |
Awesome, thanks for making that change. Can you please also answer the question from my previous comment?
|
Can you please resolve the behat failures, and also respond to my question in the previous comments? |
Not sure about 3 but I think it's fine under Permissions as it relates to some form of Permission (is it permitted to be in search). |
Permissions is more about user permissions than what the record is "permitted" to do. I wouldn't like to make a precedent that this sort of thing is a "permission". If this is where it was for CMS 3 then I'm fine with it. If it wasn't there in CMS 3 or we can't verify one way or another, please move it out of permissions. |
This pull request hasn't had any activity for a while. If you're still interested in having this merged, can you please either move it out of permissions or else validate where it was in CMS 3? If there's no more action after a few weeks I will close the PR, and you can reopen it when you're ready to work on it again. |
Hi @GuySartorelli happy to move it out to main. In this 3 build there were no tabs. Everything is under 'Main'. |
Sounds good - when that change is made, I'll be happy to re-review and merge. |
Upgrading from SilverStripe 3 to SilverStripe 5 it appears the ShowInSearch field is no longer displayed in the UI. The File record still contains this data and the implementation was to match Page instances which contain the 'Show in search' option to CMS editors.
@GuySartorelli done. |
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.
LGTM, will merge on green.
Upgrading from SilverStripe 3 to SilverStripe 5 it appears the ShowInSearch field is no longer displayed in the UI.
The File record still contains this data and the implementation was to match Page instances which contain the 'Show in search' option to CMS editors.
Issue
ShowInSearch
field not exposed for Files in access UI #1400