HomePhabricator
Diffusion Comm 9a1eee09a936

[keyserver] Factor out importJSON

Description

[keyserver] Factor out importJSON

Summary: I was using copy-pasted code in several places, which is an anti-pattern. This diff should be a pure refactor.

Test Plan:
Here's my plan:

  1. Test backup: create keyservers/facts/backups.json, update cronjob schedule to run right now, and make sure backup is created:
  2. Test GeoIP update: create keyservers/secrets/geoip_license.json, and then run cd keyserver && yarn update-geoip
  3. Test push notifs on both iOS and Android (see @palys-swm's instructions in a comment below)
  4. Test URLs (make sure keyserver works)

Reviewers: palys-swm, atul

Reviewed By: palys-swm, atul

Subscribers: Adrian, yayabosh, palys-swm

Differential Revision: https://phabricator.ashoat.com/D4024

Details

Provenance
ashoatAuthored on May 12 2022, 6:39 PM
Reviewer
tomek
Differential Revision
D4024: [keyserver] Factor out importJSON
Parents
rCOMMe6da88fd7513: [web] Implement danger zone UI
Branches
Unknown
Tags
Unknown