Skip to content

Commit

Permalink
Temporary LINC meter fix (front-end) (#342)
Browse files Browse the repository at this point in the history
* Update chart.module.js

* Docker compose format change
  • Loading branch information
s-egge authored Sep 24, 2024
1 parent 145d3f5 commit 12ec274
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gh-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
- name: unit tests
working-directory: backend
run: |
docker-compose build
docker-compose run --rm test
docker-compose down
docker compose build
docker compose run --rm test
docker compose down
build-deploy-gh-pages:
name: Build / Deploy to gh-pages
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-build-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
- name: unit tests
working-directory: backend
run: |
docker-compose build
docker-compose run --rm test
docker-compose down
docker compose build
docker compose run --rm test
docker compose down
build-deploy-s3:
name: Build / Deploy to S3 Test Build
Expand Down
9 changes: 9 additions & 0 deletions src/store/chart.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ const actions = {

await chartModifier.postGetData(chartData, reqPayload, this, store)

// fix LINC meter being off by factor of 10
// TODO: look into fixing data as it goes into the database instead of here
// See this issue for more info: https://github.com/OSU-Sustainability-Office/energy-dashboard/issues/341
if (store.getters.meterGroupPath.split('_')[2] === '199' && store.getters.point === 'accumulated_real') {
chartData.data.map(d => {
d.y = d.y * 10
})
}

// fix PacificPower meters chart being filled by the energy_change chart modifier
if (isPacificPowerMeter) {
chartData.fill = false
Expand Down

0 comments on commit 12ec274

Please sign in to comment.