-
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
Federation: Implement ID mapping (galley) #1134
Conversation
bf1a380
to
2faf6ac
Compare
The implementation for Galley is mostly done, so let's start getting this tested in CI. Feedback is very welcome, there are just a few important TODOs I'd like to ponder and/or discuss before doing very similar work in Brig. |
2faf6ac
to
064cdd8
Compare
docs/reference/cassandra-schema.cql
Outdated
@@ -325,6 +326,25 @@ CREATE TABLE galley_test.legalhold_service ( | |||
AND read_repair_chance = 0.0 | |||
AND speculative_retry = '99PERCENTILE'; | |||
|
|||
CREATE TABLE galley_test.uuid_mapping ( | |||
local_id uuid PRIMARY KEY, |
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.
UPDATE: Let's call the field mapped_id
.
Also rename the table from uuid_mapping
to id_mapping
|
||
selectIdMapping :: PrepQuery R (Identity (Id (Mapped a))) (Id (Remote a), Domain) | ||
selectIdMapping = | ||
"select remote_id, remote_domain from uuid_mapping where local_id = ?" |
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.
UPDATE: we can also return local_id
/mapped_id
here, which makes getIdMapping
simpler.
71432b1
to
02a3b88
Compare
I rebased and addressed all the things we talked about. @arianvp do you want to take another look? I suggest we do a separate PR for the corresponding changes in Brig. The only thing that I might still squeeze in is batch resolving of opaque IDs, but it could also go into a follow-up PR. |
02a3b88
to
0f14c5a
Compare
Rebased again, I think it's done from my side now. |
bb09624
to
f5979a3
Compare
This reverts commit 8845ebfb1ec321e29e83856993df0485213bb364.
f5979a3
to
46871f4
Compare
4bf4918
to
55bf8ea
Compare
55bf8ea
to
c14174f
Compare
Okay, we're having a few issues with CI, but I'm still gonna merge now. The ormolu job didn't get triggered, but it passed on the previous commit and also passes locally. |
Related to https://github.com/zinfra/backend-issues/issues/1178