[WPB-23644] refactor user type in wire-subsystems#5074
Conversation
9ea4b9f to
effb4d1
Compare
…factor inferUserType Co-authored-by: fisx <10210727+fisx@users.noreply.github.com>
e881280 to
de3e000
Compare
| -- | Returned by 'browseTeam' under @/teams/:tid/search@. | ||
| data TeamContact = TeamContact | ||
| { teamContactUserId :: UserId, | ||
| teamContactUserType :: UserType, |
There was a problem hiding this comment.
I see you've checked the item for having read and followed PR guidelines, but I don't see an update to the v15 API. Perhaps this should also be part of changelog?
There was a problem hiding this comment.
| "id": "00000002-0000-0002-0000-000100000002", | ||
| "managed_by": null, | ||
| "name": "퓵}O", | ||
| "name": "\ud4f5}O", |
There was a problem hiding this comment.
Do you know why this is changing?
There was a problem hiding this comment.
i think it's equivalent. copilot didn't like the previous one.
There was a problem hiding this comment.
Did copilot generate this JSON? Or is it generated by aeson?
There was a problem hiding this comment.
i asked copilot to fix the golden tests. i also read the changes, just didn't bother to undo this one because i saw no harm.
i've changed it back: b77e7b8
in hindsight i should have just done something with find, and perl, would have been much faster both in implementation and in code review...
There was a problem hiding this comment.
I think it would be nice if these JSON files can be automatically regenerated and our current machinery is maintained for this. It shouldn't require extra massaging. I'll dig into what happened here, for now I guess its ok.
| "id": "00000002-0000-0002-0000-000100000002", | ||
| "managed_by": null, | ||
| "name": "퓵}O", | ||
| "name": "\ud4f5}O", |
There was a problem hiding this comment.
I think it would be nice if these JSON files can be automatically regenerated and our current machinery is maintained for this. It shouldn't require extra massaging. I'll dig into what happened here, for now I guess its ok.
f560ec9 to
31b6e3a
Compare
|
The CI errors consistently happen on this branch and nowhere else, but I don't understand: This PR doesn't change helm charts or values at all, especially not the security context stuff. How can it be realted to this branch? Or is this a red herring? |
the logs contain network errors involving cassandra. but i'm only changing the migration logic in this PR, nothing in helm charts or values where PodSecurity would mean anything. the riddle deepens... |
f02ae2f to
eea2326
Compare
This has been forgotten before when changing `Contact` similarly.
only relevant in case of inconsistent `StoredUser`s (happens in test cases).
Co-authored-by: Akshay Mankar <akshay@wire.com>
Co-authored-by: Akshay Mankar <akshay@wire.com>
Co-authored-by: Akshay Mankar <akshay@wire.com>
fda21d2 to
b6654a3
Compare
Historically, we kept track of the user type "app" only in postgres. By now we have duplicated this information into cassandra, so a lot of code becomes more simple to write. This PR is fixing a few spots that I've missed when introducing user type storage in cassandra.
Checklist
changelog.d