Page MenuHomePhabricator

[identity] Add function to check if user has backup
ClosedPublic

Authored by bartek on Dec 3 2024, 3:38 AM.
Tags
None
Referenced Files
F3652911: D14072.id46171.diff
Sun, Jan 5, 8:21 AM
F3650841: D14072.id.diff
Sun, Jan 5, 5:57 AM
Unknown Object (File)
Wed, Jan 1, 5:44 AM
Unknown Object (File)
Mon, Dec 30, 1:59 AM
Unknown Object (File)
Fri, Dec 27, 11:00 AM
Unknown Object (File)
Fri, Dec 27, 10:25 AM
Unknown Object (File)
Fri, Dec 27, 7:26 AM
Unknown Object (File)
Fri, Dec 27, 6:04 AM
Subscribers

Details

Summary

Address ENG-9692.
We call the backup info endpoint to see if user has backup

Generally I think this is not perfect and we could create a dedicated backup service endpoint for this which would query directly by user_id and be callable only by other services

Test Plan

Tested in the next diff

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Dec 3 2024, 3:55 AM
kamil added inline comments.
services/identity/src/comm_service/backup.rs
64–67 ↗(On Diff #46171)

Not sure if this is accurate, there are more cases when Backup can return BAD_REQUEST - but probably doesn't matter

This revision is now accepted and ready to land.Dec 4 2024, 1:28 AM

Generally I think this is not perfect and we could create a dedicated backup service endpoint for this which would query directly by user_id and be callable only by other services

Created ENG-9983

services/identity/src/comm_service/backup.rs
64–67 ↗(On Diff #46171)

Doesn't matter. Looking at that endpoint code, in 99% of the cases MissingItem will be the cause, but it should never happen anyway because Identity gives correct names. Also, this problem disappears when ENG-9983 is implemented