Commit Graph

1694 Commits

Author SHA1 Message Date
Cayo Puigdefabregas 791d2a5894 manager better the error messages in trade form 2022-02-18 13:37:45 +01:00
Cayo Puigdefabregas b72f9f37c6 add trade action iun devices when this device is insert in a lot with a trade 2022-02-18 11:29:12 +01:00
Cayo Puigdefabregas a2b074e707 problem display none for adding tag form 2022-02-18 11:18:54 +01:00
Cayo Puigdefabregas 8b27b18fc1 change supplier for user_from and receiver for user_to 2022-02-18 09:30:20 +01:00
Cayo Puigdefabregas 538e355026 add save instance correctly, create phantom accounts and change the owner for devices 2022-02-17 13:52:55 +01:00
Cayo Puigdefabregas 37779ca05c fix trade form for unassigned list 2022-02-17 13:51:59 +01:00
Cayo Puigdefabregas 403717ccf2 fix readonly and deviceslist 2022-02-17 13:51:27 +01:00
Cayo Puigdefabregas 5e46141622 fix save trade action 2022-02-16 14:03:01 +01:00
Santiago L e185ba297b Move testing requirements to separate file
Created requirements-testing.txt
2022-02-11 12:53:19 +01:00
Santiago L 5cf6adb1c3 Drop Werkzeug because it's a Flask dependency 2022-02-11 12:49:10 +01:00
Santiago L d66c335118 Drop python-dotenv from requirements.txt (unused) 2022-02-11 12:28:18 +01:00
Santiago L 0b41b526fd Drop tqdm as requirement (added but never used) 2022-02-11 12:25:48 +01:00
Santiago L cb231a35f8 Merge branch 'testing' into upgrade-dependencies 2022-02-11 12:09:21 +01:00
Santiago L 17ed850e10 Merge branch 'testing' into feature/server-side-render 2022-02-11 12:03:46 +01:00
Santiago L 5335507c40
Merge pull request #202 from eReuse/autoformat-black
Run black, flake8 & isort as pre-commit hook
2022-02-11 11:33:03 +01:00
Santiago L 36da72ac6b Add check pdb as pre-commit hook
Avoid commits with pdb.set_trace() statements
2022-02-11 11:30:57 +01:00
Santiago L e2d412c7d0 Add CONTRIBUTING.nd & requirements-dev.txt 2022-02-10 20:30:40 +01:00
Santiago L e31104d038 Add pre-commit hook to run black, flake8 & isort 2022-02-10 14:05:26 +01:00
Cayo Puigdefabregas 86f3c3f483 fix validate trade form 2022-02-10 13:53:52 +01:00
Cayo Puigdefabregas adad689acd type to message from form.type.data instead of instance 2022-02-10 13:31:49 +01:00
Cayo Puigdefabregas f3ffcd89ca fixing js form for trade 2022-02-10 13:22:47 +01:00
Santiago L 9cfcbd1c22 flake8: exclude legacy code 2022-02-10 11:37:45 +01:00
Santiago L ea26dc2e2f
Merge pull request #201 from eReuse/feature/server-side-render-actions-documents
Server side render Data Wipe Action
2022-02-10 11:30:16 +01:00
Santiago L df4c6f7407 flake8: remove unused imports & sort them 2022-02-10 11:29:47 +01:00
Santiago L d66e2b77fd Run flake8 linter on github workflow 2022-02-10 11:16:57 +01:00
Santiago L 09649fee29 Sort requirements alphabetically 2022-02-10 09:51:42 +01:00
Cayo Puigdefabregas cd16baaadb skeleton for trade action 2022-02-09 14:06:28 +01:00
Cayo Puigdefabregas f2d6c198cc fix css for form documents into data_wipe html 2022-02-09 11:28:57 +01:00
Cayo Puigdefabregas 1ed5d394c5 fix the new version of dispatch for NewDataWipeView 2022-02-09 11:27:08 +01:00
Cayo Puigdefabregas d102eaed9c resolve conflict 2022-02-09 10:18:56 +01:00
Santiago L 74432031e4 Revert "Add pytest-xdist to run test in parallel"
This reverts commit 3a395bed80.
2022-02-09 09:54:57 +01:00
Santiago L 3a395bed80 Add pytest-xdist to run test in parallel
Disable coverage because it's not compatible with parallel execution
2022-02-09 09:42:44 +01:00
Santiago L 01b85661b9 Fix "message" parameter of pytest.raises (part 2) 2022-02-09 09:29:15 +01:00
Santiago L 4256a8ba81 Add missing dependency `more-itertools` 2022-02-08 14:53:44 +01:00
Santiago L 311369691f Fix "message" parameter of pytest.raises
Removed in version 5.0 of pytest
https://docs.pytest.org/en/7.0.x/deprecations.html#message-parameter-of-pytest-raises
2022-02-08 14:48:54 +01:00
Santiago L 8c8323308b Bump pytest to 7.0.0 and drop deprecated pytest-runner 2022-02-08 14:38:13 +01:00
Cayo Puigdefabregas 764d749db0 datawipe form example as 2 forms in one 2022-02-08 13:59:50 +01:00
Santiago L 0af1de4a1b
Merge pull request #133 from eReuse/dependabot/pip/pyyaml-5.4
Bump pyyaml from 3.13 to 5.4
2022-02-08 13:24:37 +01:00
Santiago L 9013e7a7e1 Merge branch 'testing' into feature/server-side-render 2022-02-08 11:58:48 +01:00
Santiago L 0eec5b549f
Merge pull request #196 from eReuse/feature/server-side-render-actions
Feature: server side render actions
2022-02-08 11:54:05 +01:00
Santiago L b103a1a51d Rename attribute `_form` --> `form_class` 2022-02-08 11:52:30 +01:00
Santiago L e15e457481 Refactor: create method `get_next_url()` 2022-02-08 11:49:13 +01:00
Santiago L f1a78e23f6 Include action type on message 2022-02-08 11:39:27 +01:00
Santiago L aeb765dcd7 Use built-in flask.flash to implement messages 2022-02-08 11:39:08 +01:00
Santiago L 5dbbe775d8 Bump sqlalchemy from 1.2.17 to 1.3.24 2022-02-07 18:56:34 +01:00
dependabot[bot] 54a28856f0
Bump sqlalchemy from 1.2.17 to 1.3.0
Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.2.17 to 1.3.0.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/master/CHANGES)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 17:35:05 +00:00
dependabot[bot] b9c5ae0822
Bump webargs from 4.0.0 to 5.5.3 (#198)
Bumps [webargs](https://github.com/marshmallow-code/webargs) from 4.0.0 to 5.5.3.
- [Release notes](https://github.com/marshmallow-code/webargs/releases)
- [Changelog](https://github.com/marshmallow-code/webargs/blob/dev/CHANGELOG.rst)
- [Commits](https://github.com/marshmallow-code/webargs/compare/4.0.0...5.5.3)

---
updated-dependencies:
- dependency-name: webargs
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-07 18:34:14 +01:00
dependabot[bot] dd15860b6e
Bump pyyaml from 3.13 to 5.4
Bumps [pyyaml](https://github.com/yaml/pyyaml) from 3.13 to 5.4.
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/3.13...5.4)

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 17:31:08 +00:00
dependabot[bot] d95e6a5f29
Bump requests from 2.19.1 to 2.27.1 (#5)
* Bump requests from 2.19.1 to 2.20.0

Bumps [requests](https://github.com/requests/requests) from 2.19.1 to 2.20.0.
- [Release notes](https://github.com/requests/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md)
- [Commits](https://github.com/requests/requests/compare/v2.19.1...v2.20.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump requests from 2.20.0 to 2.27.1

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Santiago Lamora <santiago@ribaguifi.com>
2022-02-07 18:30:16 +01:00
dependabot[bot] c965ead7ed
Bump werkzeug from 0.14.1 to 0.15.3 (#2)
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 0.14.1 to 0.15.3.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/master/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/0.14.1...0.15.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Santiago Lamora <santiago@ribaguifi.com>
2022-02-07 18:20:01 +01:00