Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporary LINC meter fix (front-end) #342

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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