Commit graph

1374 commits

Author SHA1 Message Date
Éloi Rivard
c9a709953f
chore: support for wtforms 3.1 (#1248) 2023-10-18 23:47:21 +02:00
Éloi Rivard
eb7338c76c
chore: migrate from setup.cfg to pyproject.toml (#1243) 2023-10-08 01:56:25 +02:00
Baptiste Jonglez
e360ee7dfb Back to development: 6.1.2 2023-10-04 00:17:08 +02:00
Baptiste Jonglez
c74935c03c Preparing release 6.1.1 2023-10-04 00:16:07 +02:00
Baptiste Jonglez
38f3dd0d56 Prepare next release 2023-10-04 00:14:53 +02:00
zorun
1a2fa0476b
Currency hotfixes (#1240)
* hotfix: hardcode list of currencies to workaround failing API calls

See https://github.com/spiral-project/ihatemoney/issues/1232 for a discussion on currencies

* Temporarily disable some currency operations to prevent crashes

Here is what is disabled:

- setting or changing the default currency on an existing project

- adding or editing a bill with a currency that differs from the default
  currency of the project

---------

Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
2023-10-04 00:05:10 +02:00
Jojo144
c5c8dba631
Default owers when adding a bill (#1222)
* Remember last owers for next new bill

* Add a test for last_selected_payed_for
2023-10-03 20:20:58 +02:00
Jojo144
b92a36c049 Add backward compatibility for last_selected_payer 2023-10-02 23:50:25 +02:00
Jojo144
d4b178ed66 Add a test for last_selected_payer_per_project 2023-10-02 23:50:25 +02:00
Jojo144
3bcc9afb50 [Fix] Remember the last selected payer for each project (and not only for one) 2023-10-02 23:50:25 +02:00
Baptiste Jonglez
cda60d1626 Update changelog 2023-10-02 23:49:01 +02:00
Baptiste Jonglez
6741d1056f Revert "Limit version of flask-wtf to avoid an upstream bug"
This reverts commit d393c39d42.
2023-10-02 23:46:33 +02:00
Jojo144
ff43a83262 [History] Add details of bills in history 2023-10-01 23:57:47 +02:00
Jojo144
7412d67ed6 [History] Truncate external links in history when they are too long 2023-10-01 23:57:47 +02:00
Jojo144
c0f49cb124 [History] Small code reorganization 2023-10-01 23:57:47 +02:00
Baptiste Jonglez
382780b05c Update changelog 2023-10-01 23:56:11 +02:00
Baptiste Jonglez
d393c39d42 Limit version of flask-wtf to avoid an upstream bug 2023-10-01 23:55:53 +02:00
Éloi Rivard
21408f8bc9 tests: migrate to pytest
- replace setUp/tearDown with pytest fixtures
- rename test classes to use the pytest convention
- use pytest assertions

Co-authored-by: Glandos <bugs-github@antipoul.fr>
2023-10-01 23:33:36 +02:00
Weblate (bot)
2ce76158d2
Translations update from Hosted Weblate (#1230)
* Translated using Weblate (Spanish)

Currently translated at 100.0% (276 of 276 strings)

Translated using Weblate (Spanish)

Currently translated at 47.4% (131 of 276 strings)

Co-authored-by: Kamborio <Kamborio15@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/es/
Translation: I Hate Money/I Hate Money

* Translated using Weblate (Spanish)

Currently translated at 100.0% (276 of 276 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (276 of 276 strings)

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/es/
Translation: I Hate Money/I Hate Money

---------

Co-authored-by: Kamborio <Kamborio15@users.noreply.hosted.weblate.org>
Co-authored-by: gallegonovato <fran-carro@hotmail.es>
2023-09-26 15:47:33 +02:00
Mihail Iosilevitch
3681981a5c Translated using Weblate (Russian)
Currently translated at 100.0% (276 of 276 strings)

Co-authored-by: Mihail Iosilevitch <yosik@tutanota.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ru/
Translation: I Hate Money/I Hate Money
2023-09-17 19:38:34 +02:00
xXx
438263826b Translated using Weblate (Russian)
Currently translated at 100.0% (276 of 276 strings)

Co-authored-by: xXx <xxx_xxx_xxxxxxxxx@mail.ru>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ru/
Translation: I Hate Money/I Hate Money
2023-09-17 19:38:34 +02:00
Baptiste
f70ad5367b Translated using Weblate (Kannada)
Currently translated at 31.8% (88 of 276 strings)

Co-authored-by: Baptiste <weblate@bitsofnetworks.org>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/kn/
Translation: I Hate Money/I Hate Money
2023-09-17 19:38:34 +02:00
Chandrashekar MC
a642a17e40 Translated using Weblate (Kannada)
Currently translated at 31.8% (88 of 276 strings)

Co-authored-by: Chandrashekar MC <mc.chandrashekar@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/kn/
Translation: I Hate Money/I Hate Money
2023-09-17 19:38:34 +02:00
Kristoffer Grundström
a27f678428 Translated using Weblate (Swedish)
Currently translated at 100.0% (276 of 276 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
2023-09-17 19:38:34 +02:00
Eryk Michalak
3464c2cf33 Translated using Weblate (Polish)
Currently translated at 100.0% (276 of 276 strings)

Co-authored-by: Eryk Michalak <gnu.ewm@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/pl/
Translation: I Hate Money/I Hate Money
2023-09-03 12:24:23 +02:00
Jojo144
fcdc057dba Simplifies adding a bill with keyboard only 2023-09-03 12:14:08 +02:00
Weblate (bot)
04c375e2e7
Translated using Weblate (Polish) (#1218)
Currently translated at 95.2% (263 of 276 strings)


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

Co-authored-by: Eryk Michalak <gnu.ewm@protonmail.com>
2023-08-24 17:58:13 +02:00
Weblate (bot)
a169b89563
Translated using Weblate (German) (#1217)
Currently translated at 89.4% (247 of 276 strings)


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

Co-authored-by: Ettore Atalan <atalanttore@googlemail.com>
2023-08-22 01:15:00 +02:00
Éloi Rivard
15c43f496e
chore: remove travis configuration (#1216) 2023-08-13 02:17:09 +02:00
Éloi Rivard
857ca2d5b0
tests: speed up unit tests (#1215)
Adds two configuration parameters that are passed to
generate_password_hash:

- PASSWORD_HASH_METHOD
- PASSWORD_HASH_SALT_LENGTH

The unit tests use high-speed low-security values and
gain 50% speed.
2023-08-13 00:04:06 +02:00
Alessandro Andro
0187932365 Translated using Weblate (Italian)
Currently translated at 100.0% (276 of 276 strings)

Co-authored-by: Alessandro Andro <pasandro.pasandro@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/it/
Translation: I Hate Money/I Hate Money
2023-08-06 11:14:19 +02:00
a-g-rao
11ec51d36b Translated using Weblate (Kannada)
Currently translated at 30.4% (84 of 276 strings)

Co-authored-by: a-g-rao <athrigrao@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/kn/
Translation: I Hate Money/I Hate Money
2023-08-06 11:14:19 +02:00
noelopdur
d886218457 Translated using Weblate (Spanish)
Currently translated at 47.1% (130 of 276 strings)

Co-authored-by: noelopdur <noelialopezduran@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/es/
Translation: I Hate Money/I Hate Money
2023-08-06 11:14:19 +02:00
Puyma
35f434b031 Translated using Weblate (Spanish)
Currently translated at 47.1% (130 of 276 strings)

Co-authored-by: Puyma <puyma@amyup.xyz>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/es/
Translation: I Hate Money/I Hate Money
2023-08-06 11:14:19 +02:00
Éloi Rivard
2a0ec05648 docs: dynamic year 2023-07-30 14:36:55 +02:00
Baptiste Jonglez
e54302040b Fix changelog syntax 2023-07-29 15:10:23 +02:00
Baptiste Jonglez
33bb91a016 Back to development: 6.1.1 2023-07-29 15:09:44 +02:00
Baptiste Jonglez
154365456e Preparing release 6.1.0 2023-07-29 15:08:55 +02:00
Baptiste
30ead1de0e Translated using Weblate (French)
Currently translated at 100.0% (276 of 276 strings)

Co-authored-by: Baptiste <weblate@bitsofnetworks.org>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
Translation: I Hate Money/I Hate Money
2023-07-29 15:07:58 +02:00
Baptiste Jonglez
376b646dd5 Update translation catalog for new strings 2023-07-29 14:28:20 +02:00
Baptiste Jonglez
4ebe471131 Fix indentation of translation string 2023-07-29 14:28:20 +02:00
Baptiste
266fc42744 Translated using Weblate (French)
Currently translated at 99.6% (275 of 276 strings)

Co-authored-by: Baptiste <weblate@bitsofnetworks.org>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
Translation: I Hate Money/I Hate Money
2023-07-29 14:17:46 +02:00
Baptiste Jonglez
32a79b17c5 Update translation catalog for new strings 2023-07-29 14:06:38 +02:00
Baptiste Jonglez
7a8fa22a0c Update changelog 2023-07-29 14:06:00 +02:00
Baptiste Jonglez
7d30794420 security docs: Clarify what is possible with a token 2023-07-29 14:02:49 +02:00
Baptiste Jonglez
3e5cd9e04e API docs: new current_password field 2023-07-29 14:02:49 +02:00
Baptiste Jonglez
73c8a31dd2 Invite page: document the security implication of all options
Also move the "invitation link" option first, because it's the preferred
way to give access to people that only need to handle participants and
bills.

Sharing the identifier and private becomes the last option, because it
gives full access to changing settings.
2023-07-29 14:02:49 +02:00
Baptiste Jonglez
5dc9984577 Better feedback when changing project settings
We now display a success flash message, and we stay on the same page
(instead of redirecting to the list of bills, which makes little sense)
2023-07-29 14:02:49 +02:00
Baptiste Jonglez
68e1dac75c Require private code to edit a project settings
This is something we had documented in our security documentation [1], but
we didn't actually do it...

As mentioned in [1], this has good security properties: you can invite
somebody with an invitation link, and they will be able to access the
project but not change the private code (because they don't know the
current private code).

This new check also applies to all other settings (email address, history
settings, currency), which is desirable.  Only somebody with knowledge of
the private code can now change these settings.

[1] https://ihatemoney.readthedocs.io/en/latest/security.html#giving-access-to-a-project
2023-07-29 14:02:49 +02:00
Éloi Rivard
b1d4f34193
tests: unit test assertion fixes (#1203)
`self.assertTrue(200, resp.status_code)` style are always True
and thus are useless. It looks like the original author wanted
`self.assertEqual` there instead.
2023-07-28 17:44:43 +02:00