Feature: Allow re-uploading subsets of files by marcleblanc2 · Pull Request #1188 · sourcegraph/src-cli
It happens from time to time that when migrating from self-hosted to Cloud, a customer admin may need to re-upload a database export. These database files can be very large, and may be uploaded from the other side of the planet from the GCS bucket, and some admins may be working from home with slow upload speeds. So, when the IE team needs to ask a customer to re-upload a database file, maybe with a different set of args, or a different format, it can be quite a problem to have to re-upload all 4 files when maybe only 1 is needed.
- Added the
--filearg, where customer admins can specify all / any / none of the database dump files, and / or the summary.json file, to upload to the GCS bucket - Decomposed for readability, maintainability, and testability
- Documented for clarity
- Added tests
Test plan
Tested on marc-dev cloud migration and bucket