Commit graph

1689 commits

Author SHA1 Message Date
Cayo Puigdefabregas 60d9c04e2d view of export 2022-02-22 11:11:53 +01:00
Cayo Puigdefabregas 4ce359fec4 Merge branch 'feature/server-side-render' into feature/server-side-render-actions-trade 2022-02-21 13:05:38 +01:00
Cayo Puigdefabregas 83a9c66a46 show documents in list device of trade lot 2022-02-21 13:04:56 +01:00
Cayo Puigdefabregas bda39d0fc9 add trade document template 2022-02-21 13:04:13 +01:00
Cayo Puigdefabregas d056d1867b fix template trade 2022-02-21 13:03:35 +01:00
Cayo Puigdefabregas c18532f265 new view and endpoint for trade document 2022-02-21 13:03:03 +01:00
Cayo Puigdefabregas 4a2cd7adfe new form for trade documents 2022-02-21 13:02:28 +01:00
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 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
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
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
dependabot[bot] a864bfc78d
Bump flask-cors from 3.0.6 to 3.0.9 (#142)
* Bump flask-cors from 3.0.6 to 3.0.9

Bumps [flask-cors](https://github.com/corydolphin/flask-cors) from 3.0.6 to 3.0.9.
- [Release notes](https://github.com/corydolphin/flask-cors/releases)
- [Changelog](https://github.com/corydolphin/flask-cors/blob/master/CHANGELOG.md)
- [Commits](https://github.com/corydolphin/flask-cors/compare/3.0.6...3.0.9)

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

* Bump flask-cors from 3.0.9 to 3.0.10

Bumps [flask-cors](https://github.com/corydolphin/flask-cors) from 3.0.9 to 3.0.10
- [Release notes](https://github.com/corydolphin/flask-cors/releases)
- [Changelog](https://github.com/corydolphin/flask-cors/blob/master/CHANGELOG.md)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Santiago Lamora <santiago@ribaguifi.com>
2022-02-07 18:07:53 +01:00
Santiago L 31728613a7
Merge pull request #197 from eReuse/ci-enable-pip-cache
Enable pip cache on GitHub Actions
2022-02-07 14:54:10 +01:00
Santiago L 574ac41239 Render messages on base_site.html & add new action message 2022-02-07 14:52:17 +01:00
Santiago L 0d27800948 Create module to store user messages using sessions
Module ereuse_devicehub.messages inspired by django.contrib.messages
2022-02-07 14:50:19 +01:00
Cayo Puigdefabregas 2542719378 fix insert hash for force not to do a commit 2022-02-07 14:03:01 +01:00