Page MenuHomePhabricator

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

Authored by bartek on Tue, Dec 3, 3:38 AM.

Details

Reviewers
kamil
varun
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
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Tue, Dec 3, 3:55 AM
kamil added inline comments.
services/identity/src/comm_service/backup.rs
64–67

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.Wed, Dec 4, 1:28 AM