Commit graph

735 commits

Author SHA1 Message Date
Andrew Dickinson
470f2e58d2 Fix API test 2020-04-17 16:21:50 -04:00
Andrew Dickinson
0b206daab2 Replace JavaScript-based dependent checkboxes with WTForms BooleanFields 2020-04-17 16:16:32 -04:00
Andrew Dickinson
114c151501 Mark RegEx string as raw 2020-04-17 15:53:28 -04:00
Andrew Dickinson
9a875fd476
Revert Mistakenly Committed Debugging Change 2020-04-17 15:50:15 -04:00
Andrew Dickinson
24c38fa81f Mark RegEx strings as raw 2020-04-17 15:46:53 -04:00
Andrew Dickinson
e3e889e480 Work-around to patch SQLAlchemy-Continuum 1.3.9 to fix the unrelated change causes change to owers bug 2020-04-17 15:40:17 -04:00
Andrew Dickinson
825386ce99 Add test to verify unrelated-change owers bug without web requests 2020-04-17 14:51:21 -04:00
Andrew Dickinson
5cc8b5a68c
Replace loop in web.py with generator expression
Co-Authored-By: Glandos <bugs-github@antipoul.fr>
2020-04-13 19:35:52 -04:00
Andrew Dickinson
e7848e39c6 Configure SQLite to disable ID reuse 2020-04-13 19:32:54 -04:00
Andrew Dickinson
d008e88f31 Remove hardcoded ids from history tests 2020-04-13 19:32:04 -04:00
Andrew Dickinson
931b3f84da Added test cases exposing id duplication and owers change bugs 2020-04-13 16:51:53 -04:00
Andrew Dickinson
32ad3d7775 Convert whitespace mess to assertRegex() calls 2020-04-13 16:44:46 -04:00
Andrew Dickinson
e9fa30f3d4 Change some assertTrue's to assertEquals 2020-04-13 16:26:19 -04:00
Andrew Dickinson
f16495a1e4 Change logging_preference to be NOT NULL 2020-04-13 01:22:58 -04:00
Andrew Dickinson
e9831d97c4 Merge branch 'master' of https://github.com/spiral-project/ihatemoney into project-history
 Conflicts:
	ihatemoney/static/css/main.css
2020-04-13 00:27:38 -04:00
Andrew Dickinson
86872c93b2 Add versioning and history tests 2020-04-13 00:25:03 -04:00
Andrew Dickinson
5d10374540 Made logging_preference a required field in the project edit form 2020-04-13 00:24:27 -04:00
Andrew Dickinson
bd30892865 Whitespace tweaks in history.html 2020-04-13 00:20:42 -04:00
Andrew Dickinson
e6013a2c11 Add logging_preference item to API expected output 2020-04-12 21:42:52 -04:00
Andrew Dickinson
0d4fe30d24 Add SQLAlchemy to dependencies 2020-04-12 21:23:40 -04:00
Andrew Dickinson
c95e50aba5 Add history page and endpoints 2020-04-12 21:05:23 -04:00
Andrew Dickinson
b9f5658aae Add functions to query project history 2020-04-12 21:04:43 -04:00
Andrew Dickinson
9b3dfa506c Refactor versioning classes to avoid circular dependencies 2020-04-12 21:03:40 -04:00
Andrew Dickinson
ade3e26b72 Add __str__ functions to all logged models 2020-04-12 21:01:06 -04:00
Andrew Dickinson
71c12b562d Only update password if changed to prevent spurious log entries 2020-04-12 20:58:20 -04:00
Andrew Dickinson
745c3fb8b5 Add moment.js w/ Jinja integration 2020-04-12 20:53:45 -04:00
Glandos
91ef80ebb7
Fix spelling (#552) 2020-04-12 10:45:35 +02:00
Allan Nordhøy
da89c35390
Spelling in documentation fixed, Weblate link (#551) 2020-04-12 09:58:00 +02:00
Andrew Dickinson
5ebcc8bd51 Integrate SQLAlchemy-Continuum to support version tracking 2020-04-11 13:46:55 -04:00
Andrew Dickinson
edaab5501b Add logging preferences 2020-04-10 21:50:37 -04:00
eMerzh
03251c090e
merge settings and import to avoid clutter (#550) 2020-04-08 14:00:24 +02:00
Charles Rose
4b79efe18a
updated web.py to make session permanent (#547)
* moved making session permanent to after authentication in web.py

Co-authored-by: Charlie Rose <charlierose@Charlies-MacBook-Pro.local>
2020-04-07 17:09:33 +02:00
eMerzh
23b7e397f2
fix(Home): correct responsive width of cards (#549) 2020-04-05 23:39:50 +02:00
bmatt
a8e74c98df
Bmatticus/feature/112 dashboard sorting (#538)
* Added DataTables for table sorting, pagination, and searching of bill_table for dashboard. Issue #112

* Moved datatables CSS/JS to dashboard to reduce loaded data throughout

* Moved link back to proper place, in head tab, but added if to prevent loading CSS/JS for datatables outside of the dashboard. Also added eye icon to drill into list_billa API to be more consistent with the look and feel of the overall site.

Co-authored-by: bmatt <bmatt@nuc01.attlocal.net>
2020-03-06 23:06:17 +01:00
am97
eea50b9b2c
Misc small updates (#536) 2020-02-23 19:27:39 +01:00
d128e84860
We have maintainers :-) 2020-02-20 20:21:37 +01:00
Glandos
5ec3dc0acc
Align tables in statistics (#535)
* Align tables in statistics

The table in sidebar is now aligned with the one in content, to avoid
redundant informations.
All tables are back to normal on small devices.

* fix test

* run black on tests
2020-02-20 09:43:50 +01:00
zorun
9378694034
Paginate the list of bills (#480)
We display 100 bills on each page.  We only show previous/next buttons (at
the top of the view) and the list of pages (at the bottom) if there are
more than one pages.

This uses built-in pagination support from Flask-SQLAlchemy:

  https://flask-sqlalchemy.palletsprojects.com/en/2.x/api/#flask_sqlalchemy.BaseQuery.paginate
  https://flask-sqlalchemy.palletsprojects.com/en/2.x/api/#flask_sqlalchemy.Pagination
2020-02-20 09:43:00 +01:00
DavidRThrashJr
72653c0d3a
Added support for multiple API versions (#533)
* Added support for multiple API versions

Note that no changes were made to the api, the code was refactored to allow for new versions of the api to be created down the road.

Here's what this would look like:
+-- api/
    +-- v1/
        +-- __init__.py
        +-- resources.py
    +-- v1_1/
        +-- __init__.py
        +-- resources.py
    +-- v2/
        +-- __init__.py
        +-- resources.py
    +-- __init__.py
    +-- common.py

* reformatted using black

/Users/drthrash/PycharmProjects/ihatemoney/ihatemoney/api/v1/resources.py
reformatted /Users/drthrash/PycharmProjects/ihatemoney/ihatemoney/api/common.py
All done!  🍰 

* Applying fix for unused import in init.py

https://stackoverflow.com/questions/31079047/python-pep8-class-in-init-imported-but-not-used

* Formatting changes recommended by black

All done!  🍰 
1 file reformatted, 22 files left unchanged.
2020-02-20 09:35:03 +01:00
DavidRThrashJr
32d76178c0
Use SQL statement for summing up weights
* Update models: Bill.pay_each()
* Import sql func
* reformatted using black
* Added ModelsTestCase.test_bill_pay_each() in order to test the SQL query change within pay_each.
Had to add Project.ProjectQuery.get_by_name() for the test.
2020-02-17 18:39:51 +01:00
Weblate (bot)
e4f18f0600
Update from Weblate (#510)
* Added translation using Weblate (Indonesian)

* Translated using Weblate (Indonesian)

Currently translated at 100.0% (158 of 158 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/id/

* Added translation using Weblate (Ukrainian)

* Translated using Weblate (Ukrainian)

Currently translated at 11.4% (18 of 158 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/uk/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 20.9% (33 of 158 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/zh_Hans/

* Translated using Weblate (German)

Currently translated at 100.0% (155 of 155 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/de/

Co-authored-by: Muhammad Fauzi <fauzipadlaw@users.noreply.github.com>
Co-authored-by: Muge Niu <mugeniu12138@gmail.com>
Co-authored-by: flolilo <30194876+flolilo@users.noreply.github.com>
2020-02-13 21:39:08 +01:00
Edwin Smulders
02242f2e12
Initial montly expenses (#526) 2020-02-09 13:03:52 +01:00
DavidRThrashJr
bf691660ee
Update forms.html (#531)
Made the html formatting more readable
2020-02-09 13:01:47 +01:00
James Leong
1f62f18154 Statistics view #323
Remove header and table column of 'Balance' in statistics view
2020-02-08 23:17:02 +01:00
Nicolas Vanvyve
9aa7e62d0f Import previously exported json data (#518)
Fix #417 

* New tab upload

* Extract data from JSON

* Add users

* Black format

* Try to add bill

* Import bills

* Add french translation msg

* Black reformat missing

* Deactivated users are supported

* Test import

* Remove temp file in upload_json()

* Incomplete tests

* tests import

* Update ihatemoney/translations/fr/LC_MESSAGES/messages.po

Co-Authored-By: Rémy HUBSCHER <hubscher.remy@gmail.com>

* Remove useless variable and check json format

* Use String.IO and test for wrong json

* Remove coma

Co-authored-by: Rémy HUBSCHER <hubscher.remy@gmail.com>
2020-01-13 21:17:55 +01:00
John-Michael Reed
73a4d139ff Fixed typos in tests.py (#521) 2019-12-29 20:34:04 +01:00
Rémy HUBSCHER
a18d5db622
Add a maintener wanted badge. 2019-12-17 10:29:03 +01:00
Weblate (bot)
a00a9ff6b0 Translated using Weblate (Norwegian Bokmål) (#509)
Currently translated at 84.8% (134 of 158 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/nb_NO/
2019-11-13 16:45:18 +00:00
Tom Biju
c44784c3ed prevent bill cancellation when cancelling autocomplete (#506) 2019-11-01 01:11:03 +00:00
Weblate (bot)
3cae4de40d Added translation using Weblate (Czech) (#505) 2019-10-25 11:18:50 +00:00