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

[Bugfix] d3 v4 bmi chart problem #314

Conversation

petervanderdoes
Copy link
Member

After upgrading the D3 library to v4 the BMI did not work anymore due to changes between v3 and v4. For a complete list of changes see: https://github.com/d3/d3/blob/master/CHANGES.md

@petervanderdoes
Copy link
Member Author

The check for Python 3.5 failed with:

The command "curl -s -o python-3.5.tar.bz2 ${archive_url}" failed and exited with 18 during .

Don't know why that happened.

…al_deprecated_warnings

Fix django.core.context_processors deprecation warnings
@rolandgeider
Copy link
Member

Sometimes the CI has such strange errors, if it doesn't happen in all builds, it's OK to just ignore them.

Besides that thanks for the PR, I know that my D3 code is really ugly... 👼 I'll test it this evening and merge it

@petervanderdoes
Copy link
Member Author

Don't worry about the D3 code, I had never done anything with D3 before this PR. It was crazy to find v4 code that could do what we wanted, quiet a bit a trial and error on my side.

On a side note, I know you want Python to be PEP8 formatted, do you have a preference for Javascript? Like AirBnB, Google.....? Want to add eslint for javascript? I could do a new PR for that if you want it.

The colors used in the legend are not the same as teh colors in the
graph.
…erdoes/wger into bugfix/d3_v4_bmi_chart_problem
@petervanderdoes
Copy link
Member Author

Ugh, tried to rebase the bugfix branch with the changes of the deprecated changes merged already.

@rolandgeider
Copy link
Member

Hehe, you couldn't wait! (In case you did it so that there are less merges, I don't care about them, I know that it's kind of the git way, but I think they are important ant just show how the development took place). In any case, I just tested this and everything seems to be working again

@rolandgeider
Copy link
Member

As for adding some linter for JS, yeah, that would be great. If you add it, can you add it to the rest of the travis checks?

BTW, have you any experience with angular2?

@rolandgeider rolandgeider merged commit b25d7f8 into wger-project:master Aug 19, 2016
@rolandgeider rolandgeider added this to the 1.8 milestone Aug 19, 2016
@petervanderdoes petervanderdoes deleted the bugfix/d3_v4_bmi_chart_problem branch August 19, 2016 20:13
@petervanderdoes
Copy link
Member Author

No experience with angular2, I'll open a new issue for the style guide of Javascript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants