-
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 calls to pacta.portfolio.report:::translate_df_contents("data_key_bars_portfolio", dictionary)
#28
Comments
In principle I agree. I was thinking about it as well. We can always bring it in if needed. |
Note to self, we will need to preserve the output data-frame to ensure compatibility with the dashboard.
|
ah, good call, I believe they are not actually. The translation also changes some of the variables in English and for example - makes them more verbose. We also use the |
We should keep the step for now. The changes required to remove it would not be worth it. And we would still need some mechanism to extend some of the labels. |
@MonikaFu thanks for the input! but there are slightly more things to consider 😊 Currently we depend on a lot of internal functions from If we remove that dependency, we will need to recode that functionality either way, so if we are "abusing" the translation function just to reformat a few columns, then I think that is overkill |
Relates to #29 |
Fair. I meant more that at the moment it's not straightforward to just remove it. But we should potentially implement a more robust solution long-term. |
I think this is resolved by #30 since all the |
The spirit of this issue is to actually remove the And this still exists in the repo: https://github.com/RMI-PACTA/workflow.pacta.dashboard/blob/main/R/translate_df_contents.R So this issue should be left open. |
So, I don't really see the point in removing the If you want to reduce the complexity of it, we could probably get away with removing the additional language columns from dataframe_labels.csv without much hassle. Obviously we could change the function name. |
That is sort of my point ahah. For the interactive report, translation likely involved a bit more of an involved process. I thin we can simplify this whole function immensely if the only purpose is to do simple label formatting prior to plotting... |
The dashboard (at least currently) is only going to be offered in EN, so it doesn't seem like this translation step is actually necessary?
@MonikaFu what do you think?
The text was updated successfully, but these errors were encountered: