-
Notifications
You must be signed in to change notification settings - Fork 467
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
Filter system host when is isRequired #28931
Filter system host when is isRequired #28931
Conversation
…equired-then-we-do-not-allowshow-system_host
...bs/edit-content/src/lib/fields/dot-edit-content-host-folder-field/store/methods/loadSites.ts
Outdated
Show resolved
Hide resolved
…equired-then-we-do-not-allowshow-system_host
...it-content/src/lib/fields/dot-edit-content-host-folder-field/store/methods/loadSites.spec.ts
Show resolved
Hide resolved
Are we sure this is the right approach? Because why required will exclude the system host? What about load without a value and if is marked as required user will have to add a value and that value could be system host. If we don't want the user to select system host we can do something else? Blacklist maybe? I don't know all the details behind this reasoning, but this is a component we might be using in a lot of places. |
@fmontes RE: don't show system host if required: |
...bs/edit-content/src/lib/fields/dot-edit-content-host-folder-field/store/methods/loadSites.ts
Show resolved
Hide resolved
…equired-then-we-do-not-allowshow-system_host
Quality Gate passedIssues Measures |
If a host/folder field is marked as required, then we do not allow/show SYSTEM_HOST ### Proposed Changes * Add isRequired attr to enable filter ### Checklist - [x] Tests - [x] Translations - [x] Security Implications Contemplated (add notes if applicable)
If a host/folder field is marked as required, then we do not allow/show SYSTEM_HOST
Proposed Changes
Checklist
This PR fixes: #28924