Baptiste Jonglez
33aad60352
Clarify that the test config files are not used for all tests...
2021-07-10 00:39:54 +02:00
Baptiste Jonglez
2616bed4ff
Fix SQL query in has_multiple_currencies
...
The previous query was working fine on sqlite and mariadb, but not on
postgresql :
return self.get_bills_unordered().group_by(Bill.original_currency).count() > 1
psycopg2.errors.GroupingError: column "bill.id" must appear in the GROUP BY clause or be used in an aggregate function
The failing SQL query was:
[SQL: SELECT count(*) AS count_1
FROM (SELECT bill.id AS bill_id, ...
FROM bill JOIN person ON person.id = bill.payer_id JOIN project ON project.id = person.project_id
WHERE bill.payer_id = person.id AND person.project_id = project.id AND project.id = %(id_1)s GROUP BY bill.original_currency) AS anon_1]
The problem is that sqlalchemy creates a subquery for postgresql, and the
internal query does not make sense.
GROUP BY is not actually useful, we simply need to count the number of
distinct currencies in the list of bills.
2021-07-10 00:34:43 +02:00
Eugenia Russell
df5d27da50
Translated using Weblate (Greek)
...
Currently translated at 63.6% (147 of 231 strings)
Co-authored-by: Eugenia Russell <eugenia.russell2019@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/el/
Translation: I Hate Money/I Hate Money
2021-07-09 10:05:06 +02:00
Baptiste Jonglez
8b2da3757c
Add missing field description from #774
2021-07-09 01:24:29 +02:00
Baptiste Jonglez
42dd2d6f7d
Regenerate translation files
2021-07-09 01:20:50 +02:00
Baptiste Jonglez
ec1e6cf26e
project edit form: allow empty private code (= no change)
...
Currently, the private code is mandatory in the edit form, and it's not
clear whether it's meant to **check** for the right private code or to
**change** the private code.
Make the field optional and rename the help message to make it clearer
it's only meant to **change** the private code.
Also change the field type to "password" instead of simple string.
2021-07-09 01:20:50 +02:00
Baptiste Jonglez
856412a70d
project forms: Clarify relation between inheriting classes
...
The save() function is used to create a new project, so it belongs to the
form creation class.
Also clarify overriden form fields.
2021-07-09 01:20:50 +02:00
dependabot[bot]
f7ae02546e
Bump sphinx from 4.0.2 to 4.0.3
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 4.0.2 to 4.0.3.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.0.2...v4.0.3 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-07 22:35:21 +02:00
Baptiste Jonglez
dae7870b12
Fix error message syntax to allow translation extraction
2021-07-07 01:01:00 +02:00
Glandos
07b86bc580
Rework currency switching ( #661 )
...
Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
Currency switching is both simpler and less powerful. This was done primarily for users, to have a clear and logical understanding, but the code is also simpler. The main change is that it is now forbidden to switch a project to "no currency" if bills don't share the same currency.
Also, tests assume that projects are created without currency, as in the web UI.
2021-07-06 21:51:32 +02:00
Glandos
fec5a82b0c
Create SECURITY.md
2021-07-06 21:41:49 +02:00
Baptiste Jonglez
def6dba825
Replace MySQL by MariaDB in all documentation / README / changelog
...
Also document the new requirement for MariaDB >= 10.3.2
Fixes : #632
Fixes : #743
2021-07-05 08:52:13 +02:00
Baptiste Jonglez
477fc20cd4
Update Jinja dependency to >= 3.0
...
This is necessary since c62965d4bf
("fix basic deprecation warnings")
2021-07-04 12:52:21 +02:00
Glandos
25c42d36eb
Update README.rst
...
Badge to GitHub Actions instead of the dead Travis
2021-06-26 23:05:29 +02:00
Glandos
f9756cc87d
Update and rename python-package.yml to test-docs.yml
2021-06-26 23:03:32 +02:00
Eugenia Russell
6f662e9dae
Translated using Weblate (Greek)
...
Currently translated at 63.2% (146 of 231 strings)
Co-authored-by: Eugenia Russell <eugenia.russell2019@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/el/
Translation: I Hate Money/I Hate Money
2021-06-24 23:00:00 +02:00
Glandos
27c5a5f102
Run Lint & Docs
2021-06-23 22:58:24 +02:00
Glandos
45f672b3cd
First test of github actions
2021-06-23 22:49:55 +02:00
Glandos
27d95f2d01
fix flake8
2021-06-10 00:09:59 +02:00
Glandos
c62965d4bf
fix basic deprecation warnings
2021-06-10 00:09:59 +02:00
Glandos
44fa1af375
change method to find login_throttler
...
that was triggering a lot of deprecation warnings due to
iterating over all known objects.
2021-06-10 00:09:59 +02:00
Glandos
69a1ad6685
Adapt code for https://github.com/wtforms/wtforms/pull/568
2021-06-09 23:38:05 +02:00
Glandos
6c43ffaac4
Adapt code for https://github.com/wtforms/wtforms/pull/288
2021-06-09 23:38:05 +02:00
Glandos
901522e8e7
Upgrade WTForms to <2.4
2021-06-09 23:38:05 +02:00
dependabot[bot]
7f695ca25a
Update jinja2 requirement from ~=2.11 to >=2.11,<4.0
...
Updates the requirements on [jinja2](https://github.com/pallets/jinja ) to permit the latest version.
- [Release notes](https://github.com/pallets/jinja/releases )
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/jinja/compare/2.11.0...3.0.1 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-07 23:22:12 +02:00
Glandos
859aa8fb1e
Fix test for generate_hash_password ( #766 )
...
Use the function that check password instead of just checking the output length. This length can be variable and will change with Werkzeug 2
2021-06-07 23:11:38 +02:00
dependabot[bot]
3894f1568a
Update flask-migrate requirement from <3,>=2.5.3 to >=2.5.3,<4
...
Updates the requirements on [flask-migrate](https://github.com/miguelgrinberg/flask-migrate ) to permit the latest version.
- [Release notes](https://github.com/miguelgrinberg/flask-migrate/releases )
- [Changelog](https://github.com/miguelgrinberg/Flask-Migrate/blob/main/CHANGES.md )
- [Commits](https://github.com/miguelgrinberg/flask-migrate/compare/v2.5.3...v3.0.1 )
---
updated-dependencies:
- dependency-name: flask-migrate
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-06 15:26:01 +02:00
Glandos
74e222f1a1
remove usage of Flask-Script
...
Use flask.cli instead with compatibility layer for existing commands,
such as "runserver".
2021-06-06 15:13:21 +02:00
dependabot[bot]
eff871e83c
Update itsdangerous requirement from ~=1.1 to >=1.1,<3.0
...
Updates the requirements on [itsdangerous](https://github.com/pallets/itsdangerous ) to permit the latest version.
- [Release notes](https://github.com/pallets/itsdangerous/releases )
- [Changelog](https://github.com/pallets/itsdangerous/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/itsdangerous/compare/1.1.0...2.0.1 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-03 23:11:48 +02:00
dependabot[bot]
63fe3ed45b
Update flask requirement from ~=1.1 to >=1.1,<3.0
...
Updates the requirements on [flask](https://github.com/pallets/flask ) to permit the latest version.
- [Release notes](https://github.com/pallets/flask/releases )
- [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/flask/compare/1.1.0...2.0.1 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-03 22:54:30 +02:00
dependabot[bot]
9f029d52ca
Bump sphinx from 3.5.3 to 4.0.2
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 3.5.3 to 4.0.2.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/commits/v4.0.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-03 22:45:14 +02:00
dependabot[bot]
e8f9d1cd93
Update flask-babel requirement from ~=1.0 to >=1,<3
...
Updates the requirements on [flask-babel](https://github.com/python-babel/flask-babel ) to permit the latest version.
- [Release notes](https://github.com/python-babel/flask-babel/releases )
- [Commits](https://github.com/python-babel/flask-babel/compare/v1.0.0...v2.0.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-03 22:40:31 +02:00
Glandos
45f4d8f8b0
Using one job for all linting and doc generation
...
Requirements for doc are now an extra require in setup.cfg
2021-06-03 22:35:49 +02:00
Glandos
43ee61afe8
Upper bound for Flask-Migrate
...
Version 3.0.0 dropped support for Flask-Script which is used in our "db" command. We could migrate to Flask CLI instead.
2021-06-03 22:20:09 +02:00
Kristoffer Grundström
08b3765bdd
Translated using Weblate (Swedish)
...
Currently translated at 85.7% (198 of 231 strings)
Co-authored-by: Kristoffer Grundström <swedishsailfishosuser@tutanota.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/sv/
Translation: I Hate Money/I Hate Money
2021-06-03 21:57:06 +02:00
phlostically
065449bb5e
Translated using Weblate (Esperanto)
...
Currently translated at 100.0% (231 of 231 strings)
Translated using Weblate (Esperanto)
Currently translated at 94.8% (219 of 231 strings)
Translated using Weblate (Esperanto)
Currently translated at 92.6% (214 of 231 strings)
Co-authored-by: phlostically <phlostically@mailinator.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/eo/
Translation: I Hate Money/I Hate Money
2021-06-03 21:57:06 +02:00
Vsevolod
467870a245
Translated using Weblate (Russian)
...
Currently translated at 100.0% (231 of 231 strings)
Co-authored-by: Vsevolod <sevauserg.com@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ru/
Translation: I Hate Money/I Hate Money
2021-06-03 21:57:06 +02:00
Allan Nordhøy
6bea519c78
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 74.0% (171 of 231 strings)
Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/nb_NO/
Translation: I Hate Money/I Hate Money
2021-06-03 21:57:06 +02:00
Eugenia Russell
3a521c2f33
Translated using Weblate (Greek)
...
Currently translated at 55.8% (129 of 231 strings)
Translated using Weblate (Greek)
Currently translated at 42.8% (99 of 231 strings)
Translated using Weblate (Greek)
Currently translated at 26.4% (61 of 231 strings)
Co-authored-by: Eugenia Russell <eugenia.russell2019@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/el/
Translation: I Hate Money/I Hate Money
2021-06-03 21:57:06 +02:00
dependabot-preview[bot]
0e6d0d622f
Upgrade to GitHub-native Dependabot ( #748 )
...
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-05-22 21:31:53 +02:00
Sanjay S S
d2b86e95f1
Fixed Typo in docs/index.rst ( #751 )
2021-05-22 21:31:40 +02:00
dependabot-preview[bot]
5cd25e2659
Bump docutils from 0.17 to 0.17.1 ( #746 )
...
Bumps [docutils](http://docutils.sourceforge.net/ ) from 0.17 to 0.17.1.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-04-21 16:13:40 +02:00
fcoterroba
b79cfe8319
Translated using Weblate (Spanish)
...
Currently translated at 42.4% (98 of 231 strings)
Co-authored-by: fcoterroba <fcoterroba@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/es/
Translation: I Hate Money/I Hate Money
2021-04-16 23:24:19 +02:00
whenwesober
b09df5b05a
Translated using Weblate (Indonesian)
...
Currently translated at 100.0% (231 of 231 strings)
Co-authored-by: whenwesober <naomi16i_1298q@cikuh.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/id/
Translation: I Hate Money/I Hate Money
2021-04-16 23:24:19 +02:00
Reza Almanda
1a10e0ea0f
Translated using Weblate (Indonesian)
...
Currently translated at 100.0% (231 of 231 strings)
Co-authored-by: Reza Almanda <rezaalmanda27@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/id/
Translation: I Hate Money/I Hate Money
2021-04-16 23:24:19 +02:00
Eugenia Russell
20c7302683
Translated using Weblate (Greek)
...
Currently translated at 24.6% (57 of 231 strings)
Translated using Weblate (Greek)
Currently translated at 20.7% (48 of 231 strings)
Co-authored-by: Eugenia Russell <eugenia.russell2019@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/el/
Translation: I Hate Money/I Hate Money
2021-04-16 23:24:19 +02:00
Glandos
c617a17457
Deleted translation using Weblate (Telugu)
2021-04-12 23:13:53 +02:00
Pratyush Kongalla
d8f9ef2dc9
Added translation using Weblate (Telugu)
...
Co-authored-by: Pratyush Kongalla <connect2pratyush@gmail.com>
2021-04-12 23:13:53 +02:00
958a85148f
Navbar change ( #739 )
...
* Changed the navbar element spacing to make it look more even.
* Put history and settings in a submenu
Co-authored-by: Joshua <mckerracher@gmail.com>
2021-04-12 21:23:25 +02:00
Weblate (bot)
5454c68a7c
Translations update from Weblate ( #741 )
...
* Added translation using Weblate (Telugu)
Co-authored-by: Pratyush Kongalla <connect2pratyush@gmail.com>
* Deleted translation using Weblate (Telugu)
Co-authored-by: Pratyush Kongalla <connect2pratyush@gmail.com>
Co-authored-by: Glandos <bugs-github@antipoul.fr>
2021-04-11 19:25:26 +02:00