-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Enteprise onboarding settings #20508
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
Conversation
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.
Did a bit of a cleanup on the policies page, including having extracted some components to their own files under policies/
.
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.
Nice, looks like a very clean cut!
@@ -48,6 +48,11 @@ message RoleRestrictionEntry { | |||
repeated OrganizationPermission permissions = 2; | |||
} | |||
|
|||
message OnboardingSettings { |
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 will house all other onboarding settings we plan to introduce
@filiptronicek Can't load the preview atm; do we need to re-create it? |
@geropl I last re-deployed it about an hour ago, interesting that it's gone again. leeway'ing now... |
if ( | ||
!isURL(settings.onboardingSettings.internalLink ?? "", { | ||
require_protocol: true, | ||
host_blacklist: ["localhost", "127.0.0.1"], |
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.
Do we need to exclude IPv6 localhost (::1
) as well?
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.
Sounds good, will add. We don't have to be too strict here though, I just wanted to add URLs that you probably really don't want to add and might try to accidentally.
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.
Ah, correct. 👍
@filiptronicek I can see the setting now (and not edit, as member). But it's not used anywhere else, yet - correct? |
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.
Code looks good, tested and works! ✔️
Description
Note
This PR is the first one to touch protobufs since the New Year, meaning a lot of changes in copyright headers. Sorry in advance!
This PR adds a couple of things:
onboardingSettings
shape for the DB, protocol and API proto definition, with for now a singular property,internalLink
.Related Issue(s)
Fixes CLC-1064
How to test
/hold