* add option for hiding empty dashboard cards
* rework add option for hiding empty dashboard cards
missed statistics.html
* don't exit early in cards
* add forms test for dashboard_hide_empty
* add tests for cards
* fix early exit in card_diaperchange_latest
* change dependency of migration
* rename migration
* introduce hiding of cards in templates
* linting
* add context to test_card_diaperchange_last
* setup MockUserRequest
* add context to all cards test cases
* add test for settings_dashboard_hide_empty_on
* change dashboard_hide_test, but it doesn't work
* add test for _user_wants_hide
* fix test_user_wants_hide user object, simpliy check for data['empty']
* add test for user_wants_hide to every card
* linting
* fix trailing whitespace
* rename user_wants_hide to hide_empty
* fix hidden statistics
* add user.refresh_from_db to test case, add test case for dashboard_refresh_rate
* Follow redirect and correct assertion
Co-authored-by: jcgoette <jcgoette@gmail.com>
Co-authored-by: Benjamin Häublein <benjaminh@debian.vm.hp>
Co-authored-by: Christopher C. Wells <git@chris-wells.net>
The previous setting of "Etc/UTC" appears to no longer be valid in certain
circumstances. This was causes tests to fail on user settings because the
provided default was invalid. "UTC" should be more uniformly recognized so
hopefully this does not have any downstream effects.
Closes#203
Currently it is easy for a child with non-ascii name to get empty slug:
'Мааян' 'Паскин-Чернявский' => '-'
'Мааян' 'Паскин' => ''
Once any child has an empty slug, many pages break with NoReverseMatch
errors. This commit at least prevents setting such names;
slug computation to be fixed later.
* Updated docker.py to allow for custom PSQL env input
* Updated README.md with new PSQL env variables
* Updated with new variable names and adjusted inline logic
* Updated README.md to reflect new env variable names
* Updated database password fallback to prevent breaking existing deployments
* Updated with new env variables
* Further edits per PR discussion
* Removed unnecessary variables from example docker-compose file
* Use regular dicts for sleep pattern (WIP)
* Remove dataframes code from sleep pattern graph
* Reimplement UTC offset change handling
* Move label formatting in to a function
* Remove pandas!
* Fix linting issue
* Add dev requirements to generated requirements.txt
* Stop committing Pipfile.lock
Pipenv is designed to pin to a specific version of Python. Including the lock
file can lead to failed builds or broken package configurations on different
system architectures and/or Python versions.