Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warn offline users before replicating too many docs (#5793)
Adds /api/v1/users-info endpoint which returns the number of docs a user will replicate and a warn flag if this number exceeds the recommended limit. when queried as an offline user, returns the requester doc count. when queried as an online user, requires facility_id and role params, plus an optional contact_id param (either GET or POST). is queried as a new step in webapp bootstrapper. When resulting warn flag is truthy, the user has to confirm to actually continue bootstrapping and start replication. Cancelling redirects to login. is queried as a new step in admin user creation/updating. When resulting warn flag is truthy, a warning message is displayed. The admin would need to click on "Submit" the 2nd time to actually create or update the user document. Once an hour, API will log warnings of users that have replicated more than 10 000 docs. Updates webapp bootstrapper to display correct doc count progression, even when interrupted. #5362
- Loading branch information
1 parent
af98a8e
commit e9809c6
Showing
22 changed files
with
1,189 additions
and
205 deletions.
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
Oops, something went wrong.