-
Notifications
You must be signed in to change notification settings - Fork 0
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
remove unused import #48
Conversation
`js_translations` never gets used in this function/script It also doesn't appear to get used anywhere in this repo: https://github.com/search?q=repo%3ARMI-PACTA%2Fworkflow.pacta.dashboard%20js_translations&type=code which suggests that these could be removed also: https://github.com/RMI-PACTA/workflow.pacta.dashboard/blob/main/inst/extdata/translation/js_labels.json https://github.com/RMI-PACTA/workflow.pacta.dashboard/blob/main/inst/extdata/translation/update_translations.R but I'm not sure if those are somehow getting picked up by https://github.com/RMI-PACTA/pacta-dashboard-svelte/issues
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #48 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 25 25
Lines 1208 1205 -3
=====================================
+ Misses 1208 1205 -3 ☔ View full report in Codecov by Sentry. |
Docker build status
|
|
Searching the |
Putting in draft mode until @MonikaFu confirms |
@cjyetman it is correct that we don't need this data in the dashboard. In the interactive report it contains a bunch of labels for different plots that could then we translated to different languages based on another dataset containing translations. For the dashboard I decided to hardcode the labels as part of the plots for now as this simplified the implementation and there were no requirements to display the dashboard in any other language than English. |
Like I said, I'm not sure if those are somehow getting picked up by pacta-dashboard-svelte (or elsewhere)... but if they are, they should probably be moved over there because one repo having a dependency on an otherwise orphaned file in another repo is too easy to get mixed up. |
Alternatively, we could maybe document what these files are for in this repo so it's clear? |
@cjyetman they are not used in |
Remove them all |
also deleted data files per @jdhoffa, opening for review |
js_translations
never gets used in this function/scriptIt also doesn't appear to get used anywhere in this repo:
https://github.com/search?q=repo%3ARMI-PACTA%2Fworkflow.pacta.dashboard%20js_translations&type=code
which suggests that these could be removed also:
inst/extdata/translation/js_labels.json
inst/extdata/translation/update_translations.R
but I'm not sure if those are somehow getting picked up by pacta-dashboard-svelte