Commit Graph

42 Commits

Author SHA1 Message Date
Xavier Mehrenberger 519045d5e7 Improve fake data for height percentile reports
As requested by @cdubz on https://github.com/babybuddy/babybuddy/pull/741
2023-12-25 06:48:33 -08:00
Christopher C. Wells 4df816984d Move cache table creation to a migration 2023-07-25 17:40:01 -07:00
John Merlie 7918b9aca8 updated pumping fake data for start/end/duration 2023-07-09 08:48:54 -07:00
Christopher Charbonneau Wells 31a0aa4741
513: Make nap user toggleable (#641)
* Add `nap` field, remove `napping` field.

* Default `nap` property to NULL

* Update existing tests

* Format the code!!

* Allow `Sleep.nap` to be blank

* Migrate settings from `NAP_START_MIN` AND `NAP_START_MAX`

* Remove `active` class from boolean fields

* Correct test method name and user config

* Add forms test

* Use settings for Sleep nap model tests
2023-05-07 15:10:50 -07:00
Christopher C. Wells 10a58e61b5 Refactor read only group creation as post migrate operation 2023-02-11 10:31:14 -08:00
Christopher C. Wells ae06cbd47e Update `createuser` to match behavior of UI 2023-02-10 06:14:37 -08:00
Christopher C. Wells 90e16431b8 Format code 2023-02-10 06:14:37 -08:00
Christopher C. Wells cd44a473cf Replace references to Django core `User` model with `get_user_model` 2023-02-10 06:14:37 -08:00
Christopher C. Wells 6b7196cfb7 Pass verbosity argument to `createcachetable` 2022-11-05 07:15:28 -07:00
earthcomfy eb8ed1bcd1 Fix empty password bug in createuser command 2022-11-02 13:05:03 -07:00
earthcomfy 6f83611f42 Remove group arg and add --read-only flag to createuser command 2022-10-31 06:49:55 -07:00
earthcomfy b50748598b fix - Remove staff type from group and add is-staff arg 2022-10-31 06:49:55 -07:00
earthcomfy 400ad66968 feat: Add group argument to createuser command 2022-10-31 06:49:55 -07:00
Christopher C. Wells 6392ffb37b Add cache table creation to reset command 2022-10-29 19:39:18 -07:00
Christopher C. Wells de4d66cecd Set superuser for CLI created users
Closes #543
2022-10-15 14:02:55 -07:00
Hana Belay 74582effb1
Create a user add management command (#534)
* feat: Create management command to add a user

* feat: Test user create management command

* feat: Remove unnecessary args from createuser command

* fix: remove in-active arg from createuser command

* feat: Add doc to createuser command

Co-authored-by: Christopher C. Wells <git-2022@chris-wells.net>
2022-10-04 08:24:01 -07:00
Marcelino Alberdi Pereira 9d3c32fec1
Fix filtering not working for capitalized tags (#480)
Closes #467.
2022-06-12 19:07:19 -07:00
Christopher C. Wells 838020ceff Update Faker API usage 2022-05-28 07:02:13 -07:00
Christopher Charbonneau Wells 4916a810e0 Don't require wet or solid when generating fake data 2022-04-15 20:56:34 -07:00
bugbountyguy 4ceb6095d3 Rename breastpump to pumping 2022-04-04 20:39:39 -07:00
bugbountyguy b9e98b16a2 Fix lint errors 2022-04-04 20:39:39 -07:00
bugbountyguy 5c45b037f0 Finish up adding the brestpump measurement 2022-04-04 20:39:39 -07:00
Christopher C. Wells 5159e97aff Add tags to fake data 2022-04-03 18:13:25 -07:00
Christopher C. Wells cd946280cb Format code with black 2022-02-09 16:00:30 -08:00
Yulian Kuncheff 0af4521005 Linting and faker changes 2021-12-31 09:19:53 -05:00
Yulian Kuncheff 9b604627a1 Add Height, Head Circumference, and BMI, corresponding reports, and move to separate menu with Weight and Temperature. 2021-12-31 09:19:53 -05:00
Christopher C. Wells 426378c3e1 Disable system checks for `gulp reset` command 2020-08-12 19:58:53 -07:00
Christopher C. Wells a751b0b2e0 Add random notes to faker 2020-02-16 15:09:57 -08:00
Christopher C. Wells 6662d1036d Clear cache during `reset` operation 2020-01-31 09:09:01 -08:00
Christopher C. Wells f4f7b8f5af Don't run `createcachetables` during `reset`
The `reset` command can only be run after initial app setup, which will include cache tables creation so running it again won't ever do anything since the table will already exist.
2020-01-31 09:09:01 -08:00
Christopher C. Wells c720f0b581 Add cache table support (WIP) 2020-01-31 09:09:01 -08:00
Christopher C. Wells 7f258f972d Add Diaper Change amounts to fake data generation 2020-01-26 13:32:02 -08:00
Christopher C. Wells 4397d4a406 Add temperature tracking. 2019-05-16 21:33:26 -07:00
Christopher C. Wells efc613c637 Fix minor linting issues. 2019-02-02 19:17:25 -08:00
Christopher Charbonneau Wells 5dc372281b Remove all unicode_literals imports. 2018-02-17 17:09:40 -05:00
Christopher Charbonneau Wells 4aa51e44da Re-add random color for solid Diaper Changes in `fake` command. 2017-11-18 06:55:39 -05:00
Christopher Charbonneau Wells f9f6ea5e88 Add management command tests. 2017-11-11 17:25:28 -05:00
Christopher Charbonneau Wells 5dec231147 Refactor "fake" command.
This commit simplifies the "fake" code code and makes the data much more realistic by preventing activity intersection. It also uses atomic transactions to make fake data generation _much_ faster on slow computers (like my old laptop!).
2017-11-11 13:01:40 -05:00
Christopher Charbonneau Wells 37ae4056ab Make weight increase over time for "fake" command. 2017-11-10 08:13:29 -05:00
Christopher Charbonneau Wells 067be4bf07 Add weight tracking. 2017-11-09 21:15:09 -05:00
Christopher Charbonneau Wells 5fbf77e014 Override migrate command to create admin/admin user. 2017-10-22 16:50:47 -04:00
Christopher Charbonneau Wells e45101b75c Rename project Baby Buddy. 2017-10-22 14:00:42 -04:00