-
Notifications
You must be signed in to change notification settings - Fork 325
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
SCIM cleanup 2 #1172
Merged
Merged
SCIM cleanup 2 #1172
Changes from 2 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
55bf9ac
Drop table `spar.scim_user` and obtain most information from brig.
fisx 99aab12
simplify!
fisx 1bf0566
Fix: write access times if they are missing, ...
fisx 9e5aea4
Parse rich-info returned by brig as RichInfoAssocList
akshaymankar 400a6b9
Ensure rich info has at least 1 field in tests
akshaymankar 00f0a57
Move assocListToRichInfo to its rightful place
akshaymankar 4ed0946
Write down our regained context about RichInfo
akshaymankar 3e0a8a2
Ensure order of RichInfoAssocList is always maintained
akshaymankar 0c1645b
haddocks
fisx 194467d
Forgotten rename
akshaymankar 050fd8f
Cleanup test cases for getScim, add failing ones.
fisx 3d346ea
Do team membership test outside synthesizeStoredUser.
fisx dad0a70
Make up a handle if none is present (corner case).
fisx 4079b8c
More tests; duplicate more integration test plumbing.
fisx 4e6b534
Cleanup.
fisx 0497fd9
Make function only take what it needs (more robust that way).
fisx be711e7
Fix tests.
fisx 9365da9
Fix hscim test suite.
fisx df63407
Refactor RichInfo; haddocks.
fisx d6a2236
Link to github issue about future work.
fisx 5dc68e9
Fix haddocks.
fisx fabbbca
Fixup
fisx 5d089f1
Fixup
fisx 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 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 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 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 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 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 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 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,38 @@ | ||
-- This file is part of the Wire Server implementation. | ||
-- | ||
-- Copyright (C) 2020 Wire Swiss GmbH <opensource@wire.com> | ||
-- | ||
-- This program is free software: you can redistribute it and/or modify it under | ||
-- the terms of the GNU Affero General Public License as published by the Free | ||
-- Software Foundation, either version 3 of the License, or (at your option) any | ||
-- later version. | ||
-- | ||
-- This program is distributed in the hope that it will be useful, but WITHOUT | ||
-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
-- FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more | ||
-- details. | ||
-- | ||
-- You should have received a copy of the GNU Affero General Public License along | ||
-- with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
module V9 | ||
( migration, | ||
) | ||
where | ||
|
||
import Cassandra.Schema | ||
import Imports | ||
import Text.RawString.QQ | ||
|
||
migration :: Migration | ||
migration = Migration 9 "As replacement for `scim_user`, add smaller table for storing time stamps only" $ do | ||
void $ | ||
schema' | ||
[r| | ||
CREATE TABLE if not exists scim_user_times | ||
( uid uuid | ||
, created_at timestamp | ||
, last_updated_at timestamp | ||
, primary key (uid) | ||
) with compaction = {'class': 'LeveledCompactionStrategy'}; | ||
|] | ||
arianvp marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains 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 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 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.
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.
Point
(a)
doesnt make sense given the timestamp is stored by cassandra; not brigThere 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.
it's still further away from spar: if ti's in spar-cassandra, it goes from cassandra to spar; if it's in brig cassandra, it goes from cassandra to brig to spar, and brig holds data that it has no business holding.
how can i make this point more clear/
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.
lets just remove
(a)