prime-reportstream icon indicating copy to clipboard operation
prime-reportstream copied to clipboard

Create CLI command that downloads reports

Open victor-chaparro opened this issue 1 year ago • 0 comments

Problem statement

To be able to download messages from production we need a CLI command that allows us to download reports from the blob storage. The CLI command will take one or more report-ids and a target environment. All reports downloaded will be de-identified and synthesized.

What you need to know

Inside HistoryFunctions.kt there's a function getReportById that find a report's blob URL given a reportID and downloads the report from the blob storage.

The CLI also needs to only let you download from the target environment if you've logged in using the ./prime login command

Acceptance criteria

  • [ ] Prime CLI command lets you download a report from a blob storage given a reportID
  • [ ] Prime CLI de-identifies/synthesizes data on report
  • [ ] Prime CLI has an optional parameter to specify a sender transform

To do

  • [ ] ...

victor-chaparro avatar Jul 30 '24 17:07 victor-chaparro