-
Notifications
You must be signed in to change notification settings - Fork 332
Feature flag for exposing invite URLs to team admins [SQPIT-1368] #2684
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
Merged
Merged
Changes from 53 commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
2212103
libs/wire-api: add optional URL field to Invitations.
sysvinit 76e3882
libs/wire-api: update golden tests.
sysvinit e8d2fed
libs/wire-api: add exposeInvitationURLsToTeamAdmin feature flag defin…
sysvinit 1cf1d5a
galley: add exposeInvitationURLsToTeamAdmin feature flag to Cassandra…
sysvinit 57a6b69
libs/galley-types: add exposeInvitationURLsToTeamAdmin to galley feat…
sysvinit a069fec
galley: add feature flag toggle logic for exposeInvitationURLsToTeamA…
sysvinit 823da24
libs/wire-api: add galley routes for exposeInvitationURLsToTeamAdmin …
sysvinit 39160c5
galley: implement feature config routes for exposeInvitationURLsToTea…
sysvinit cf4d9b3
galley: add internal endpoints for exposeInvitationURLsToTeamAdmin fe…
sysvinit 8dd780f
galley: add option for specifying teams with admin-visible invitation…
sysvinit 88130c9
galley: only allow enabling feature for explicitly configured teams
sysvinit eeac0bf
libs/wire-api: add separate feature flag for team allowlist.
sysvinit 6c557ff
galley: remove lock status for exposeInvitationURLsToTeamAdmin.
sysvinit ba7e153
libs/galley-types: add feature flag configuration for invite url allo…
sysvinit 507d609
galley: re-scope effect row constraint for exposeInvitationURLsToTeam…
sysvinit c20b900
galley: add feature status internals for allowlist config.
sysvinit 574d362
galley: use allowlist feature config for setting exposeInvitationURLs…
sysvinit 6d71330
galley: remove top-level configuration option for team allowlist
sysvinit 107671d
libs/{wire-api,galley-types}: lock exposeInvitationURLsToTeamAdmin by…
sysvinit cbcbe81
galley: validate based on state transition instead of target state.
sysvinit 3c3f2ac
galley: add missing imports to galley-schema
sysvinit 655db60
galley: note to self.
sysvinit a88e872
brig: add function for checking invite link visibility in galley
sysvinit b453550
brig: add checks for exposeInvitationUrlsToTeamAdmin in team invite e…
sysvinit b16c032
brig: swap wrapClient for wrapHttp to handle extra typeclass constrai…
sysvinit eabaf06
brig: formatting and style.
sysvinit 73d0135
galley: override getConfigForTeam for exposeInvitationURLsToTeamAdmin
sysvinit 74e5fe9
galley: formatting.
sysvinit b1bb6ef
galley: style
sysvinit f51f510
Fix type checking issue
supersven 658b160
Fix golden tests
supersven 4ee0994
Ensure the url for invitation QR code is a HttpsUrl
supersven 6b5d079
Less naive approach to HttpsUrl parsing / error handling
supersven f3ce88a
Add more interesting golden test.
fisx b53d770
make git-add-cassandra-schema
fisx d05cdcc
Merge remote-tracking branch 'origin/develop' into sysvinit/feature-i…
fisx 1985013
The list of allowed TeamIds doesn't need to be a feature config
supersven 37e46ce
Invitation URLs may not always be HTTPS
supersven ccf99e4
Test the basic feature behavior
supersven 55f93cf
Server config takes precedence over team feature config
supersven b173539
Move test cases
supersven 3e56087
Delete ExposeInvitationURLsTeamAllowlistConfig team feature left overs
supersven 5d0ff3f
Add changelog
supersven d312ed3
Add allow list config to Helm chart
supersven 0db1bd7
Add section to config-options.md
supersven 6a5248d
Fix Helm chart
supersven 82b83a3
Simplify Galley YAML config
supersven b2bca90
Fix galley mock setup
supersven 85f4d29
Fix Helm chart
supersven 9d08e5d
Merge remote-tracking branch 'origin/develop' into sysvinit/feature-i…
fisx 6469018
Move allow list from feature flags to settings.
fisx c2a8ddb
rm trailing whitespace.
fisx 5304f1b
Fixup
fisx 93c9920
Add comment
supersven 480ce95
Simplify expression
supersven d05c896
Refer to docs in changelog
supersven 1a3c688
Move the decision of invitation url rendering out of DB
supersven 4f603bc
Add FUTUREWORK note
supersven 325b588
Explain why a test case is needed (Haddock)
supersven 1a93732
Remove *all* the lookups to the feature flag from `Brig.Team.DB`.
fisx 904b0b0
Make custom bool.
fisx f0bb831
Move Bool into the first argument position in all of `Brig.Team.DB`.
fisx ff74b29
Expose `ShowOrHideInvitationUrl` to application logic consistently.
fisx 96b35f6
Cleanup
fisx 1e69fd0
hlint
fisx 53e4106
ormolu
fisx 9a23835
Merge remote-tracking branch 'origin/develop' into sysvinit/feature-i…
fisx d03ad32
Simplify expression
supersven dc543a9
Remove unused import
supersven File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Optionally add invitation urls to the body of `/teams/{tid}/invitations`. This allows further processing; e.g. to send those links with custom emails or distribute them as QR codes. As this feature can cause privacy issues (the administrator could do the registrations on their own), it's enabled in two steps: First, the team ID has to be added to the list `settings.featureFlags.exposeInvitationURLsTeamAllowlist` in galley's server configuration. Then, the team feature flag `exposeInvitationURLsToTeamAdmin` can be enabled. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.