* Update required cryptography library version
* remove old env variable from dockerfile
- Was required when we based on alpine linux
- now we use python_slim
* Fix file contents
* Basic implementation of iCal feed
* Add calendar download to API
* Improve comments, remove unused outputs
* Basic implementation of iCal feed
* Add calendar download to API
* Improve comments, remove unused outputs
* Improve comment
* Implement filter include_completed
* update requirements.txt with pip-compile --output-file=requirements.txt requirements.in -U
* Fix less than filter
* Change URL to include calendar.ics
* Fix filtering of orders
* Remove URL/functions for calendar in views
* Lint
* More lint
* Even more style fixes
* Updated requirements-dev.txt because of style fail
* Now?
* Fine, fix it manually
* Gaaah
* Fix with same method as in common/settings.py
* Fix setting name; improve name of calendar endpoint
* Adapt InvenTreeAPITester get function to match post, etc (required for calendar test)
* Merge
* Reduce requirements.txt
* Update requirements-dev.txt
* Update tests
* Set expected codes in API calendar test
* SO completion can not work without line items; set a target date on existing orders instead
* Correct method to PATCH
* Well that didn't work for some reason.. try with cancelled orders instead
* Make sure there are more completed orders than other orders in test
* Correct wrong variable
* Lint
* Use correct status code
* Add test for unauthorized access to calendar
* Add a working test for unauthorised access
* Put the correct test in place, fix Lint
* Revert changes to requirements-dev, which appear magically...
* Lint
* Add test for basic auth
* make sample simpler
* Increment API version
Co-authored-by: Matthias Mair <code@mjmair.com>
* add model for feed entries
* add task to update feed entries
* Add API routes
* Fix name in model
* rename model
* fix read endpoint
* reduce duplication in NewsFeed API endpoints
* reduce duplicated code
* add ui elements to index
* add missing migrations
* add ressource route
* add new model to admin
* reorder fields
* format timestamp
* make title linked
* reduce migrations to 1
* fix merge
* fix js style
* add model to ruleset
* Remove control and non-printable characters from form fields (server side)
* Update regex to properly filter out control characters only
* Add regex lib to requirements flie
* Fix regex in javascript (client side)
* add required unicode flag
* Pin weasyprint version
- Revert to 54.3
- Fixes https://github.com/inventree/InvenTree/issues/3528
* Simplify label printing for multiple pages
* Simplify PDF generation for multiple report outputs
* Add content wrapper div for base label template
- Allows more extensibility
* Update django-allauth-2fa to latest version
* Remove custom view / form for removing token
* Revert "2FA disable" view to custom view
- Allows specification of custom redirect URL
* Include cargo / rustc in the docker image
- Otherwise cryptography library seems to fail
* Revert cryptography lib to older version
- New version requires rust, adds ~300MB to the image size!
* Pin django-stdimage to sub 6.0.0
- 6.0.0 breaks model serialization for background worker task
- NFI why it does this
* Fix requirements file
* remove windows deps. and append requirements
* Add unit tests for encoding and offloading tasks
Co-authored-by: Matthias <code@mjmair.com>
* Remove stat context variables
* Revert "Remove stat context variables"
This reverts commit 0989c308d0.
* remove old backport
* move requirements
* move isort
* move migrations-tests
* add pip-tools as req and add hook
* Use hashes and also run when txt files are added
* Update to hashes in requirements
* update requirements install path
* remove allauth-2fa for a test
* install dev-requirements
* re-enable allauth
* remove hashes from pre normal setup
* Remove version bindings if they are the laest
* move depencies to upper bound
* fix django-money
* remove windows specific requirements
* also install dependencies
* update markdownify
* remove django-admin-shell
* remove unneeded packages
* add docs
* remove pins and fix pre-commit pipeline
* pin django-money
* really remove admin shell
* return default behaviour for money serializer
* pip fix
* update filter name
* set decimal for output
* add migrations
* pin coveralls
* update requirements
Co-authored-by: Oliver Walters <oliver.henry.walters@gmail.com>
* Remove reliance on django-markdownx
- We are now rendering notes on the client side using easymde
- No longer any need to utilize the markdownx integration
- Adds character limit for notes fields`
* Adjust legacy migrations - remove references to markdownx
* Fix bug for company notes field
* Improvement and consolidation of various auth forms
* Update "disable 2FA" page to use form fields
Note: Requires merging of https://github.com/valohai/django-allauth-2fa/pull/135
* Update django-allauth-2fa requirements
* Simplified dockerfile
- Changed from alpine to python:slim
- Removed some database libs (because we *connect* to a db, not host it)
* - Add gettext as required package
- Only create inventree user as part of production build (leave admin access for dev build)
* Tweaks for tasks.py
* Fix user permissions (drop to inventree user)
* Drop to the 'inventree' user level as part of init.sh
- As we have mounted volumes at 'run time' we need to ensure that the inventree user has correct permissions!
- Ref: https://stackoverflow.com/questions/39397548/how-to-give-non-root-user-in-docker-container-access-to-a-volume-mounted-on-the
* Adjust user setup
- Only drop to non-root user as part of "production" build
- Mounted external volumes make it tricky when in the dev build
- Might want to revisit this later on
* More dockerfile changes
- reduce required system packages
-
* Add new docker github workflow
* Print some more debug
* GITHUB_BASE_REF
* Add gnupg to base requirements
* Improve debug output during testing
* Refactoring updates for label printing API
- Update weasyprint version to 55.0
- Generate labels as pdf files
- Provide filename to label printing plugin
- Additional unit testing
- Improve extraction of some hidden debug data during TESTING
- Fix a spelling mistake (notifaction -> notification)
* Working on github action
* More testing
* Add requirement for pdf2image
* Fix label printing plugin and update unit testing
* Add required packages for CI
* Move docker files to the top level directory
- This allows us to build the production image directly from soure
- Don't need to re-download the source code from github
- Note: The docker install guide will need to be updated!
* Fix for docker ci file
* Print GIT SHA
* Bake git information into the production image
* Add some exta docstrings to dockerfile
* Simplify version check script
* Extract git commit info
* Extract docker tag from check_version.py
* Newline
* More work on the docker workflow
* Dockerfile fixes
- Directory / path issues
* Dockerfile fixes
- Directory / path issues
* Ignore certain steps on a pull request
* Add poppler-utils to CI
* Consolidate version check into existing CI file
* Don't run docker workflow on pull request
* Pass docker image tag through to the build
Also check .j2k files
* Add supervisord.conf example file back in
* Remove --no-cache-dir option from pip install