Commit Graph

58 Commits (900978936e6e7d69b0c0bb2923276cc3d04c5758)

Author SHA1 Message Date
Davide Borgonovo 900978936e Nuovo decoratore per django 4 2023-03-16 17:03:29 +01:00
Davide Borgonovo 075f507412 Risolto errore che impediva il salvataggio in presenza di campi della form
estranei o property dell'admin
2021-09-06 18:14:08 +02:00
Thu Trang Pham 5a085012c5
Adding localstack to docker and S3 file storage testing (#26)
* Adding localstack to docker

* Unit tests for localstack S3 working

* Github flow

* Github flow fix s3 tests

* Playing with github actions, tests working on dev via localhost and docker

* Try using IP

* Try using github services in CI

* Try without volumes on services

* Try something else..'

* Use seperate docker compose yaml for CI

* Specify docker compose ym;l file to use for test

* Fix -f option

* volume mounting

* try mount again

* try use permissions

* Update dir for permissioning

* Update create bucket script to output commands

* Try to create bucket

* Try using awscli not awslocal

* Add region

* Add connection timeout

* Add overwrite

* Add debug

* More debug

* Use conftest to create s3 bucket instead

* Adding health check for localstack service

* Try netwrok mode bridge for tests

* Try some other stuff

* Ignore when failing create bucket if exists

* Make sure github actions is using the localhost as the ip for selenium

* Try setting values from the docker compose for diff envs

* Try using network mode host

* Remove ports

* Use container name instead of docker-compose run

* Clean up host variables

* Clean up code

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-06-22 11:17:21 -07:00
Thu Trang Pham 50e42fa8e7
Create pull_request_template.md 2021-05-26 11:25:33 -07:00
Thu Trang Pham 4a3bceb968
Create CODE_OF_CONDUCT.md 2021-05-26 11:14:58 -07:00
Thu Trang Pham 21a2a36846
Create CONTRIBUTING.md 2021-05-26 11:14:11 -07:00
Thu Trang Pham 48a1d4a27f Update issue templates 2021-05-26 10:37:30 -07:00
Thu Trang Pham f03f55dda7 Update documentation 2021-04-28 14:38:26 -07:00
Thu Trang Pham 16642b991c Version 0.2.4 2021-04-28 12:34:04 -07:00
Thu Trang Pham 3c38890dbb Adding license and status badges to readme 2021-04-28 12:04:35 -07:00
Thu Trang Pham 14dc6268b0
fix(Issue-27): Confirmations not triggered on models with validation failures (#30)
* feat(ISSUE-27): Added some validation integration tests

* feat(ISSUE-27): Integration tests for validations

* feat(ISSUE-27): Unable to select autocomplete with selenium

* feat(ISSUE-27): Fix file caching with proper FileCache

* feat(ISSUE-27): Some minor tweaks

* feat(ISSUE-27): Try reviewdog

* feat(ISSUE-27): Remove noisy linting

* feat(ISSUE-27): Black format

* feat(ISSUE-27): Adding some simple file cache tests

* feat(ISSUE-27): Some cleaning up

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-04-28 12:03:16 -07:00
Thu Trang Pham 4d6b2900d8
Added testing for DateField, DateTimeField, and validators on the Model and ModelForm (#23)
* Added testing for DateField and DateTimeField

* Update makefile

* Adding some of the tests with validators on model

* Added ModelForm clean_field and clean tests

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-03-31 12:46:02 -07:00
Thu Trang Pham c88eb16a9b v0.2.3 2021-03-30 14:22:16 -07:00
Thu Trang Pham 447e915fb6
Add some more testing (#21)
* Fix local build and remove warnings

* Added test for radio buttons

* Added some more testing

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-03-07 10:31:28 -08:00
Thu Trang Pham ad7409b567
Add integration tests (#20)
* Adding integration tests with inlines

* Adding more tests

* FIx make file

* Setup CI build matrix to work with integration tests

* Try again

* Fix workflow synctax

* Clean up workflow

* Format and some lint stuff

* Try codecov

* yml

* More Testing

* Minor lint things

* Update

* Try again for codecov

* Updates

* Try?

* Ignore quotes

* Exclude test project

* try this?

* checkout required

* Rename

* clean up configs

* Fix

* Allow to fail

* ignores

* FInish the integration tests for cache

* Fix workflow yml

* fix

* Try up again

* TRy again

* Fix

* Fix

* Fix tests

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-03-05 19:54:01 -08:00
Thu Trang Pham 4f50c63f7b
WIP: 2021 02 24 dockerize (#18)
* Use cache for most fields and admin form for m2m files

* MR comments/clean up

* Cache should obey exclude and fields

* Some more tests and docs

* Only use cache for image files

* Even more tests and handle save as new

* fix test

* More tests

* minor refactor

* Improve test coverage

* Adding tests for fieldsets

* Added cache timeout

* Added another test for an edge case

* Fix issue with ManagementForm tampered with

* Update cache to only set when form is_multipart

* Even more testing changes

* Dockerize

* Setting up tests in docker

* Update github actions

* Got first integration test to work

* Refactor a bit

* Fix github action yml

* Use docker-compose up -d in github actions

* combine coveralls

* Updated readme

* Clean up code

* Remove dup code from rebase

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-03-03 07:42:24 -08:00
Thu Trang Pham 06d3e1a208
fix(MR-16): Use cache for FileField and ImageField (#17)
* Remove casting to list in _get_form_data

* Use cache for most fields and admin form for m2m files

* MR comments/clean up

* Cache should obey exclude and fields

* Some more tests and docs

* Only use cache for image files

* Even more tests and handle save as new

* fix test

* More tests

* minor refactor

* Improve test coverage

* Add no cover for some places

* V0.2.3.dev7

* Adding tests for fieldsets

* Added cache timeout

* Added another test for an edge case

* Fix issue with ManagementForm tampered with

* Update cache to only set when form is_multipart

* Even more testing changes

* Update based on comments on MR and clean up a bit

* make test names better

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-02-27 15:39:01 -08:00
Thu Trang Pham cc36492bfe
fix(ISSUE-8): try using admin form (#16)
* Remove casting to list in _get_form_data

* feat(ISSUE-8): Use Django's form and hide with css

* feat(ISSUE-8): Updated dev release on testpypi

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-02-26 09:56:57 -08:00
Thu Trang Pham 302e02b1e4 Upload new dev version 2021-02-20 09:13:48 -08:00
Thu Trang Pham fea907b3c8
ISSUE-8: format m2m confirmation values (#15)
* feat(ISSUE-8): Formatting m2m confirmation values as html lists

* feat(ISSUE-8): Remove comments

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-02-20 08:58:32 -08:00
Thu Trang Pham 6f41e6cfdb
Update tests and remove print stmt (#14)
Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-02-20 08:14:31 -08:00
Thu Trang Pham 5b93ed5eb7 Add classifiers to setup and version badges to readme 2021-02-19 23:49:08 -08:00
Thu Trang Pham 758564f668
Change github action triggers (#13)
* feat(ISSUE-3): Coveralls

* feat(ISSUE-3): Run coveralls

* feat(ISSUE-3): use github token

* feat(ISSUE-3): Try again

* feat(ISSUE-3): env instead of with

* feat(ISSUE-3): Fix yaml

* feat(ISSUE-3): try try and try again

* feat(ISSUE-3): t

* feat(ISSUE-3): t2

* feat(ISSUE-3): Adding relative files config

* feat(ISSUE-3): Adding relative files config

* feat(ISSUE-3): Change github actions triggers

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-02-19 23:23:02 -08:00
Thu Trang Pham 8c60b4565c
feat(ISSUE-3): Coveralls (#12)
* feat(ISSUE-3): Coveralls

* feat(ISSUE-3): Run coveralls

* feat(ISSUE-3): use github token

* feat(ISSUE-3): Try again

* feat(ISSUE-3): env instead of with

* feat(ISSUE-3): Fix yaml

* feat(ISSUE-3): try try and try again

* feat(ISSUE-3): t

* feat(ISSUE-3): t2

* feat(ISSUE-3): Adding relative files config

* feat(ISSUE-3): Adding relative files config

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-02-19 23:17:38 -08:00
Thu Trang Pham 37c12b8ccb Fix MANIFEST.in 2021-02-19 22:32:00 -08:00
Thu Trang Pham 09744c7f2a
fix(ISSUE-8): contd m2m save values (#11)
* feat(ISSUE-8): ISSUE-8: ManyToManyField causes error on confirmations

* feat(ISSUE-8): Update some readme and remove print statements

* feat(ISSUE-8): Generate new version of package

* feat(ISSUE-3): Adding .travis.yml

* feat(ISSUE-3): Adding coveralls

* feat(ISSUE-3): Trying github actions

* feat(ISSUE-3): remove travis

* feat(ISSUE-3): Change python versions to test

* feat(ISSUE-3): Some refactoring and trying tox

* feat(ISSUE-3): Try action matrix

* feat(ISSUE-3): Some more refactors

* feat(ISSUE-3): Fix tests

* feat(ISSUE-3): Refactor/fix tests

* feat(ISSUE-3): Remove tox

* feat(ISSUE-3): Adding pypi version badge to readme

* feat(ISSUE-3): Update readme again

* feat(ISSUE-3): Remove tox from readme

* feat(ISSUE-8): Adding some tests for m2m and fix save value issue

* feat(ISSUE-8): Updating test todos

* feat(ISSUE-8): Finish up the tests

* feat(ISSUE-8): Rename

* feat(ISSUE-8): Update gitignore

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-02-19 21:31:30 -08:00
Thu Trang Pham 9a9dfa75e8
feat(ISSUE-3): travis and coveralls (#10)
* feat(ISSUE-8): ISSUE-8: ManyToManyField causes error on confirmations

* feat(ISSUE-8): Update some readme and remove print statements

* feat(ISSUE-8): Generate new version of package

* feat(ISSUE-3): Adding .travis.yml

* feat(ISSUE-3): Adding coveralls

* feat(ISSUE-3): Trying github actions

* feat(ISSUE-3): remove travis

* feat(ISSUE-3): Change python versions to test

* feat(ISSUE-3): Some refactoring and trying tox

* feat(ISSUE-3): Try action matrix

* feat(ISSUE-3): Some more refactors

* feat(ISSUE-3): Fix tests

* feat(ISSUE-3): Refactor/fix tests

* feat(ISSUE-3): Remove tox

* feat(ISSUE-3): Adding pypi version badge to readme

* feat(ISSUE-3): Update readme again

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-02-19 21:28:17 -08:00
Thu Trang Pham 375b3d0917
feat(ISSUE-8): fixing error caused by ManyToManyField on confirmation (#9)
* feat(ISSUE-8): ISSUE-8: ManyToManyField causes error on confirmations

* feat(ISSUE-8): Update some readme and remove print statements

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-02-19 21:25:15 -08:00
Thu Trang Pham af31f2f966 Ensure version is set when uploading to pypi 2021-02-09 17:38:00 -08:00
Thu Trang Pham c381eb4b87 Tested and added release process to readme, also some minor changes to change confirm 2021-02-09 17:28:32 -08:00
Thu Trang Pham d334ec630f Don't include pyenv libs in coverage 2021-02-09 17:10:05 -08:00
Thu Trang Pham fa59f88ac4 Point screenshots to main branch 2021-02-09 17:04:33 -08:00
Thu Trang Pham 209de62c9d
Setting up pyenv and show default value on confirm add (#7)
Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-02-09 17:03:18 -08:00
Thu Trang Pham 591aa48ba0
fix(ISSUE-4): pip install missing templates (#5)
* feat(ISSUE-4): fix(ISSUE-4): missing template and css files in package

* feat(ISSUE-4): chore: add makefile command to upload to pypi

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-01-21 13:38:34 -08:00
Thu Trang Pham ea1e882f32 Version 0.2 2020-11-30 09:18:15 -08:00
Thu Trang Pham 975f40c16f Move the screenshot back so pypi can see it and use commit specific links for screenshots from now on 2020-11-30 09:12:10 -08:00
Thu Trang Pham 86b87308ab Updating readme 2020-11-30 08:36:35 -08:00
Thu Trang Pham 264900a216 Updating project description in setup 2020-11-29 13:47:25 -08:00
Thu Trang Pham 1b617170bf
Feat/confirm actions (#2)
* Working wrapper for actions

* checking permissions for action

* Refactor/clean change_confirmation template a bit

* Update README

* Update README

* Adding unit tests for confirm_action decorator

* Updated tests/readme

* Update after testing upload to test pypi

* Clean up and format code

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2020-11-29 13:31:27 -08:00
Thu Trang Pham 9edc66f31a Updating Makefile and readme 2020-11-11 12:06:24 -08:00
Thu Trang Pham 32192d3988 Updating for packaging 2020-11-08 11:24:59 -08:00
Thu Trang Pham 739953a0e2
Update README.md 2020-11-08 11:01:00 -08:00
Thu Trang Pham 6bb357ac4f Adding tox 2020-11-08 10:58:21 -08:00
Thu Trang Pham a95383cfa2 Formatted with black and reached 100% coverage 2020-11-08 09:51:49 -08:00
Thu Trang Pham c586100098 Clean up and refactor a bit 2020-11-08 07:48:45 -08:00
Thu Trang Pham b845e57285 All tests work 2020-11-07 13:21:24 -08:00
Thu Trang Pham c6a44f6426 Happy with test cases 2020-11-06 01:10:14 -08:00
Thu Trang Pham 081aec4821 Adding feature list 2020-11-05 08:34:39 -08:00
Thu Trang Pham bf9b3e6b75 Got some tests working 2020-11-02 09:58:41 -08:00
Thu Trang Pham ca1019765b Updating readme 2020-11-01 21:11:33 -08:00