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

feat: Weight percentiles report #512 #708

Merged

Conversation

barakplasma
Copy link
Contributor

@barakplasma barakplasma commented Sep 20, 2023

  • closes Feature Request: who comparative data in weight chart #512
  • instead of adding the sex of the child to the DB model, or adding units to the weight report, I added new links to specific reports for boys and girls
  • also bumps plotly versions
  • adds quality of developer experience changes to the devcontainer / codespace extensions
  • adds pre-commit black formatting / linting hook for devenv users

@barakplasma barakplasma force-pushed the weight-percentiles-in-weight-graph branch from fe5df7b to 4535f84 Compare September 20, 2023 18:21
@barakplasma barakplasma changed the title feat: Weight percentiles in weight graph #512 feat: Weight percentiles report #512 Sep 20, 2023
@barakplasma barakplasma force-pushed the weight-percentiles-in-weight-graph branch 3 times, most recently from af1d179 to 0221ae4 Compare September 20, 2023 19:19
@coveralls
Copy link

coveralls commented Sep 20, 2023

Coverage Status

coverage: 98.94% (-0.2%) from 99.176% when pulling 04a49f3 on barakplasma:weight-percentiles-in-weight-graph into cb2197e on babybuddy:master.

@barakplasma barakplasma marked this pull request as ready for review September 20, 2023 19:24
cdubz
cdubz previously requested changes Sep 21, 2023
Copy link
Member

@cdubz cdubz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I open the PR in codspaces the .devcontainer.json file has modifications after everything boots up --

@cdubz ➜ /workspaces/babybuddy (weight-percentiles-in-weight-graph ✗) $ git diff .devcontainer.json 
diff --git a/.devcontainer.json b/.devcontainer.json
index 75877d8..7110e18 100644
--- a/.devcontainer.json
+++ b/.devcontainer.json
@@ -4,7 +4,8 @@
       "extensions": [
         "bbenoist.Nix",
         "ms-python.python",
-        "batisteo.vscode-django"
+        "batisteo.vscode-django",
+        "ms-python.black-formatter"
       ]
     }
   },

reports/graphs/weight_change.py Show resolved Hide resolved
@barakplasma barakplasma force-pushed the weight-percentiles-in-weight-graph branch from 0221ae4 to 32c6c86 Compare September 21, 2023 04:58
barakplasma added a commit to barakplasma/babybuddy that referenced this pull request Sep 21, 2023
@barakplasma
Copy link
Contributor Author

barakplasma commented Sep 21, 2023

When I open the PR in codspaces the .devcontainer.json file has modifications after everything boots up --

@cdubz ➜ /workspaces/babybuddy (weight-percentiles-in-weight-graph ✗) $ git diff .devcontainer.json 
diff --git a/.devcontainer.json b/.devcontainer.json
index 75877d8..7110e18 100644
--- a/.devcontainer.json
+++ b/.devcontainer.json
@@ -4,7 +4,8 @@
       "extensions": [
         "bbenoist.Nix",
         "ms-python.python",
-        "batisteo.vscode-django"
+        "batisteo.vscode-django",
+        "ms-python.black-formatter"
       ]
     }
   },

fixed as well; and I added a default formatting option for black within vscode / devcontainer / codespaces

@barakplasma barakplasma force-pushed the weight-percentiles-in-weight-graph branch from 1e8834c to 21ed62d Compare September 21, 2023 05:19
barakplasma and others added 2 commits September 21, 2023 05:26
tested and stops the python commit if formatting is bad. then it runs black and fixes the formatting, resulting in a new git change to add/commit again
@cdubz cdubz self-requested a review September 27, 2023 12:20
@cdubz cdubz dismissed their stale review September 27, 2023 12:20

I don't remember what I requested 🤷

@cdubz cdubz added the enhancement Feature requests or improvements to existing functionality label Sep 27, 2023
@cdubz cdubz added this to the 2.1.0 milestone Sep 27, 2023
@cdubz cdubz merged commit 8d8006a into babybuddy:master Sep 27, 2023
17 checks passed
@barakplasma barakplasma deleted the weight-percentiles-in-weight-graph branch September 29, 2023 12:38
barakplasma added a commit to barakplasma/babybuddy that referenced this pull request Sep 30, 2023
* feat: weight percentiles report
babybuddy#512

* fix: formatting on weight percentile graph to extend out only 1 day more than the last weigh in date
babybuddy#708 (comment)

* feat: pre-commit lint with black hook
tested and stops the python commit if formatting is bad. then it runs black and fixes the formatting, resulting in a new git change to add/commit again

---------

Co-authored-by: Christopher Charbonneau Wells <10456740+cdubz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests or improvements to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: who comparative data in weight chart
3 participants