bcgov / zeva

Zero Emission Vehicles Act
Apache License 2.0
5 stars 13 forks source link

feat: 2207 - sales forecast #2211

Closed tim738745 closed 3 months ago

tim738745 commented 3 months ago

Remarks:

(1) developers will need to put the forecast template located in api/app_templates in their local minio bucket (inside a folder named "templates", which is possibly inside a folder named "docs" (depending on what they've set as their "MINIO_PREFIX")).

(2) the frontend will be able to download the forecast template by doing:

axios.get('/forecasts/template_url').then((response) => {
  const url = response.data.url
  download(url, {headers: {Authorization: null}})
})

where download is in src/app/utilities/download.js

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
3 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud