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

Add a way to hide ContentTypeDefinitionSettings #15472

Merged
merged 8 commits into from
Mar 24, 2024

Conversation

MikeAlhayek
Copy link
Member

No description provided.

@hishamco
Copy link
Member

What are the reasons for hiding the ContentTypeDefinitionSettings?

@MikeAlhayek
Copy link
Member Author

In certain cases like when creating CustomSettings or CustomUserSettings, these options are useless. So it would be nice to hide them instead since they do nothing.

@hishamco
Copy link
Member

I remembered the related issue, could you please share a GIF screenshot to show how it works in the UI

@hyzx86
Copy link
Contributor

hyzx86 commented Mar 21, 2024

relate :#13335

Copy link
Member

@Piedone Piedone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "Full-text" section is something like this too. How about hiding that as well?

MikeAlhayek and others added 4 commits March 22, 2024 17:00
…ntTypeSettingsDisplayDriver.cs

Co-authored-by: Zoltán Lehóczky <[email protected]>
…ntTypeSettingsDisplayDriver.cs

Co-authored-by: Zoltán Lehóczky <[email protected]>
…ntTypeSettingsDisplayDriver.cs

Co-authored-by: Zoltán Lehóczky <[email protected]>
Copy link
Member

@Piedone Piedone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hyzx86
Copy link
Contributor

hyzx86 commented Mar 23, 2024

Note that in the permissions module is recommended to be retained, because I have used the ContentType permissions to distinguish which users can view or modify the specified CustomSettings

@Piedone
Copy link
Member

Piedone commented Mar 23, 2024

Good point. Perhaps hiding the other options is not as obviously generally beneficial as we thought either.

@MikeAlhayek
Copy link
Member Author

Good point. Maybe we should only show "Securable" option only and hide the rest of the options since they are related to the content UI

@hyzx86
Copy link
Contributor

hyzx86 commented Mar 23, 2024

Similarly with CustomUserSettings,
I use the dynamic permissions to determine if the user can modify these extended properties on their own
It's just that these functions are in my react client, and I open up some web api from OC.
So if someone has deleted the dynamic permissions... I will lost my function 😂

@MikeAlhayek
Copy link
Member Author

Well you can still change the settings via code (migration). But, not the UI. So yes it is not a good idea to remove securable option from the UI. I'll change the setting to show Securable and hide the rest

@MikeAlhayek
Copy link
Member Author

@Piedone @hyzx86 I kept the securable options in custom site/user settings.

@Piedone
Copy link
Member

Piedone commented Mar 23, 2024

That looks good, but I'm still awaiting your answer on #15472 (review) :)

@MikeAlhayek
Copy link
Member Author

That looks good, but I'm still awaiting your answer on #15472 (review) :)

Sorry I missed your comment couple of times. Full-Text settings are part of a different driver FullTextAspectSettingsDisplayDriver. I would say, that that out of this PR if we need to hide that too. But, not sure we should hide it. Is it possible that someone want to allow search in the custom user settings or site settings? Probably now, but not sure.

@Piedone
Copy link
Member

Piedone commented Mar 24, 2024

I'd guess that people wanting to search Custom Settings has a lower chance than them wanting to list them.

@MikeAlhayek
Copy link
Member Author

I am not against hiding the search settings. But I just don't want to do it in this PR. The intention behind this PR was just to add configuration to show/hide the listable, creatable, draftable, flags. We can create another PR around the search settings and other settings like Elasticsearch, Lucene,Azure AI.

Copy link
Member

@Piedone Piedone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK then!

@MikeAlhayek MikeAlhayek merged commit 5b91276 into main Mar 24, 2024
5 checks passed
@MikeAlhayek MikeAlhayek deleted the ma/content-type-settings-options branch March 24, 2024 22:21
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.

4 participants