* set yarn version
* bump yarn to 4.1
* update dependency file
* upgrade all deps as far as possible
* cleanup diff
* bump node
* ignore lock in pre-commit
* fix lockfile
* bump yarn version
* switch back to yarn 1 for now
* only run if in an inventree org repo
* only sign into docker hub if username set
* use repo name for ghcr name
* renmae to not cause confusion
* rename vars
* use seperate step
* disable a bunch of stuff for testing
* use echo instead
* Revert "disable a bunch of stuff for testing"
This reverts commit 0ab5ff6d6d.
* Adjust docker filter
- Run if settings.py changes
* Revert API version
* Adjust logic in settings.py
- Only exit if in main server thread
* Update qc_checks.yaml
* Add wildcard for CSRF_TRUSTED_ORIGINS in DEBUG mode
* Update wildcard
* Simplify settings.py logic
* Throw error on invalid site access policy
- If ALLOWED_HOSTS is empty, exit
- If CSRF_TRUSTED_ORIGINS is empty, exit
- Closes https://github.com/inventree/InvenTree/issues/6730
* Set parameters for devcontainer
* Update documentation
* Ignore server exit in testing mode
* Add INVENTREE_SITE_URL to CI
* Further CI updates
* Update settings.py
* Unit test updates
* More unit test updates
* Bump API version
* Re-introduce checks in settings.py
- Allow more lenient behaviour in TESTING mode
* Install grpcio faster
- Pin version
- Update build packages
* Test dockerfile before push
- SImply test if invoke is present
* Revert commit to docker-compose
* Remove VIRTUAL_ENV from Dockerfile
* Fix pip install
* Run extra checks on docker image
* Ensure mariadb links are installed:
- Closes https://github.com/inventree/InvenTree/issues/6625
* Adjust CI
build docker image manually
* Should fail
- Test that revert fails CI
* Ok, this should break it
* Fix Dockerfile
* remove docker-sqlite file
- Do not want to encourage use of sqlite
* Add Caddyfile
* Add default site URL to .env
- Matches Caddyfile
* Cleanup / simplify .env file
* Remove dev nginx conf file
* Further cleanup of .env file
* Update docker-compose.yml
- Use caddy image instead of nginx as proxy
* Set max body size
* gunicorn: enable external logging
* Update file structure
* Cleanup docker-compose file
* Update docker/docker-compose.yml
Co-authored-by: Matthias Mair <code@mjmair.com>
* Update docker/Caddyfile
Co-authored-by: Matthias Mair <code@mjmair.com>
* Fix for postgresql packages
- Need postgresql13-client to be installed, it contains pg_dump
- Without this, backup / restore *does not work*
* Create static_i18n dir if it does not exist
* Reduce output from collectstatic
* Revert gunicorn logging
- Want to see the logs in docker
* Fix trailing slash
Ref: https://github.com/inventree/InvenTree/pull/6551#issuecomment-1962423765
* tasks.py - pass 'nouv' option through
* Update package requirements:
- Allow installation of rapidfuzz without building
* Install uv as part of docker image
* Add environment variable to control downstream URL
* Do not use uv package manager by default
- Currently does not work "correctly" - ignores installed packages
- Requires further work to run reliably
* Fix docker-compose file
- Do not build locally
* Cleanup gunicorn file
- Remove unused lien
* Cleanup docker-compose.yml
- Simpler volume management
* Update Caddyfile
Add newline
* Update requirements.txt
Add newline
* Update tasks.py
Add missing blank line
* Simplify Caddyfile
* Adds option for customizing web port
* cleanup docker-compose.yml
- Better mapping of caddy data
- Cleaner volume setup
* Add django version template
- Ensure all docs links point to the current django version we are using
* docs: cleanup intro.md
* Cleanup serving_files.md
* Cleanup config.md
* docker install docs updates
* Enable code block copying
* Fix include file
* Fix link
* Update docker install docs
* Update docker.md
* Add info about demo dataset
* Tweak heading
* Update docs link checks
* Fix workflow
* Another fix
* More ignore pattearns
---------
Co-authored-by: Matthias Mair <code@mjmair.com>
* push to ghcr (#168)
* Update docker.yaml
* Update docker.yaml
* Update docker.yaml
* use matrix to build for the plattforms (faster amd pub)
* try Buildjet
* switch to pyhton 3.9
* Update docker.yaml
* path python manually?
* bump python to 3.11
* Update Dockerfile
* step down vm
* cleanup workflow
* install docker on mac
* and docker compose too
* switch back to linux
* Docker tests (#175)
* push to ghcr (#168)
* Update docker.yaml
* Update docker.yaml
* Update docker.yaml
* use matrix to build for the plattforms (faster amd pub)
* try Buildjet
* switch to pyhton 3.9
* Update docker.yaml
* path python manually?
* bump python to 3.11
* Update Dockerfile
* step down vm
* cleanup workflow
* install docker on mac
* and docker compose too
* switch back to linux
* switch to uv
* fix uv install
* reintroduce checks
* cleanup diff
* use default setup action
* small change to trigger CI
* use enviroment step
* define python version
* us uv a bit more
* clean diff
* globally define python version
* test UV performance
* second dummy change
* fix CI
* set version - uv is already proving to be great
* dummy bump
* bump to newer uv
* use uv in more places
* revert uv
* add flag to disable UV
* fix vevn for CI
* bump uv version
* bump to uv-016
* bump
* bump
* switch to uv
* Add basic task for generating apidocs
* Fix SPECTACTULAR_SETTINGS
- Some provided options were not correct
* Update .gitignore
* Fix for duplicated API path
- `/api/plugins/activate` routed to PluginActivate view
- Must be associated with a specific plugin ID
* By default, fail if warnings are raised
* Use GenericAPIView for GetAuthToken
* Use GenericAPIView for RolesDetail endpoint
* Refactor more endpoints to use GenericApiView
* More API cleanup
* Add extra type hints for exposed methods
* Update RoleDetails endpoint
- Specify serializer
- Use RetrieveAPI class type
* More type hints
* Export API docs as part of CI
* add more api views docs
* even more docs
* extend tests to api-version
* simplify serializer
* and more docs
* fix serializer
* added more API docs
* clean diff
* Added APISearch base
* do not assume you know the user
he might be anonymously creating the schema ;-)
* set empty serializer where no input is needed
* Use dummy model for schema generation
* fix OpenAPI docs section
* only run if needed
* remove schema task
* Add version check
* pin version
* fix QC order
* fix assign
* refactor order
* optimize compile times
* fix assign
* onyl use install
* more fixing
* use full update cycle
* revert python change
* use api_version
* run py
* why?
* clean up output
* only check for api version diff if api_version was not touched
* add schema check again
* use seperate filter for API
* increment api_version
* Added push step
* seperate publishing step to lower complexity
* fix naming
* fix file ending
* Update qc_checks.yaml
---------
Co-authored-by: Oliver Walters <oliver.henry.walters@gmail.com>
* Add basic task for generating apidocs
* Fix SPECTACTULAR_SETTINGS
- Some provided options were not correct
* Update .gitignore
* Fix for duplicated API path
- `/api/plugins/activate` routed to PluginActivate view
- Must be associated with a specific plugin ID
* By default, fail if warnings are raised
* Use GenericAPIView for GetAuthToken
* Use GenericAPIView for RolesDetail endpoint
* Refactor more endpoints to use GenericApiView
* More API cleanup
* Add extra type hints for exposed methods
* Update RoleDetails endpoint
- Specify serializer
- Use RetrieveAPI class type
* More type hints
* Export API docs as part of CI
* add more api views docs
* even more docs
* extend tests to api-version
* simplify serializer
* and more docs
* fix serializer
* added more API docs
* clean diff
* Added APISearch base
* do not assume you know the user
he might be anonymously creating the schema ;-)
* set empty serializer where no input is needed
* Use dummy model for schema generation
* fix OpenAPI docs section
* Update .github/workflows/qc_checks.yaml
Co-authored-by: Matthias Mair <code@mjmair.com>
* REmove duplicate commands
* Ignore warnings in CI
---------
Co-authored-by: Matthias Mair <code@mjmair.com>
* Make base image configurable
* Refactor dockerfile
- Place extra packages into extra shell script
- Add pre-build stage where packages are installed, and then cache removed
- Run same script in dev target, but do not remove
* Run docker workflow whenever package requirements change
* Replace devcontainer dockerfile
* Install base packages in devcontainer
* --no-cache-dir
* Update docker image - base python version
- Also, build docker image on PR if any docker-related files have changed
* Update setuptools
* Update base level packages for docker image
* Reduce version
* Include docker workflow in filter
* Revert to python 3.10
* Remove call to upgrade setuptools
* Try newer version of setuptools
* Remove reliance on "minimal"
* Fix package URL
* Whoops. Fix typo
* Added first UI components for user managment
Ref #4962
* removed forgotten deepsource section
Follow up to #5851
* Revert "Added first UI components for user managment"
This reverts commit 624121ea29.
* Enable mysql checks as part of PR
* Add debug for CI
* Add delete_nodes method
- Ensure that the "parent" field is set to None before delete
- This means that we do not violate any ForeignKey constraints due to undefined order of operations
* Create dependency-review.yml
* Create scan.yml
* Create sonar-project.properties
* add option to use sections and refactro
* translate error messages
* remove unneeded vars
* move function code
* move data inside
* add global section
* add plugin section
* use translated section titles
* add translation strings
* rename scan action
* add user settings
* use ordered data
* fix settings url
* use debounced value for strings (not choices!)
* rename contex to context
* move i18n provider up
* move theme options into seperate context/ component
* renmae statrtup vars
* move translations out
* reactivate sentry
* move i18n provider to seperate context
* move langauge state completly out of App
* use theme out
* move theme context
* move LanguageContext
* move function into state
* make sentry optional for now
* add key to accordion
* init langauge context on top
* remove unneeded css files
* move errorpage to tsx
* add translation for error page
* Add error to title
* add typecast for error
* move type definition out
* remove todo -> type was already added
* upgrade deps
* add bootstrap
* remove @mantine/core
* readd core
* switch to bootstrap
* simplify import
* Add SPA views for react #2789
* split up frontend urls
* Add settings for frontend url loading
* add new UI scaffold
* remove tracking insert
* add platform app
* ensure static indexes work too
* add lingui
* add lingui config
* add mgmt tasks
* add base locales
* settings for frontend dev
* fix typo
* update deps
* add pre-commit
* add eslint
* add testing scaffold
* fix paths
* remove error - tests trip correctly
* merge workflow
* cleanup samples
* use name inline with other tests
* Add real worl frontend tests
* setup env
* tun migrations first
* optimize setup time
* setup demo dataset
* optimize run setup
* add test for class ui
* rename
* fix typo
* and another typo
* do install
* run migrations first
* fix name
* cleanup
* use other credentials
* use other credentials
* fix qc
* move envs to qc
* remove create_site
* reduce testing env
* fix test
* fix test call
* allaccess user
* add ui plattform check
* add better check
* remove unneeded env
* enable debug
* reduce wait time
* also build frontend on static
* add sekeleton
* fix various issues
* add locales
* clean output before building
* cleanup dir
* remove bootstrap
* clean up deps
* fix settings panel
* remove assets
* move logo
* split out router
* split up chunks
* fix zustand import syntax
* bundl
* update pre-render
* use vendor splitting
* maximes space usage
* enlarge breakpoints
* remove wired color changes
* cleanup tabs
* fix error
* update auth functions
* default to mail login
* add placeholder marking
* Add text to placeholder
* readd codespell
* add another test
* add sort plugin
* add sort plugin
* sort imports
* fix order
* Add mega menu
* run pre-commit fixes
* add node min version
* Docker container (#129)
* Fix allocation check for completing build order (#5199)
- Allocation check only applies to untracked line items
* docker dev
Install required node packages to docker development image
* add import order settings
* cleanout built ui
* Add "parttable" component
* Add task to serve front-end code dev
* remove default arg from build
* remove eslint
* optimize svg
* Adds generic function for rendering a table with server-side data
* Implement pagination and sorting
* Add more example columns
* Enable selection of table data rows
* add build step for plattform UI
* fix install command
* optional parameters
* Add simple stock table
* Add optional parameter for default sort
* Change "no records" text based on query result
* Translate
* Start writing some helper functions
* Add thumbnail component
* Fill out more columns for stock table
* Add simple skeleton for table search input
* Adjust default table properties
* Change loader variant
* Drop-down for selecting table columns
* Add search text callback
* use alpine commands
* do not use cache when creating image
* More updates for inventree table
- Fix search text entry
- Add "refresh" button
- Adjust variable names
* Search input improvements
- Add button to clear search input
* Enable mantine notification system
* Add "not yet implemented" notification message
* Add download action button
* Adds ButtonMenu component
- Button which expands to show other actions
- Add hooks for adding action menus to tables
* Add basic build order list table
* Add custom filters button for table
* Allow columns to be toggled
* Column visibility saved across table loads
* Adds display for table filters
- Define interface for table filter definition
- Add component for displaying filters
- Cleanup for part table
* Cleanup
* Define type for controlling column data
* Allow custom ordering term for table column
- Replaces "sortName" concept from bootstrap-table
* Improve build order table
- Fancy progress bars
* Reimplement invoke task to serve frontend files via yarn
* Update package files with mantine
* Implement callback when record selection is changed
* Adds generic "actionbutton" component
* Remove duplicate form components
* Remove tracked files in web/static
* Remove a bunch of files
- tracked in from the wrong original branch
* More page fixes
* Revert changes to reqiurements-dev.txt
* Spelling fix
* Component updates
* Cleanup components
* Cleanup
* Use spread operator
* Add some new dummy pages for testing
* Cleanup / simplify stockitem table
* Cleanup for part table
* Cleanup build order table
* Cleanup column toggle function
* Remove hard-coded URL
* Format updates
* Update deps
* npm required for inventree-python checks
* Fix search input
- Better debouncing
- Cleaner code
* Update package files
* vite polling fixes
* Implementation for download button
- Dropdown menu with file format options
* Implement callback for download of table data
* Better state management for hidden columns
* Implement state framework for active custom filters
* Silence some errors
* Revert change to vite config
* Implement collapsible filter list group
- Save active filters to local storage
- Add some example filters to the part table
- Add FilterBadge component
* Fix page names
* Simplify search input
- useDebouncedValue
* linting
* Refactor
* Remove debug msg
* Simplify search state
* Refactor function for constructing API query
* Add tooltip
* Update icons
* Add modal for selecting filter options
* Add more table filters for part table
* render custom item for filter select
* Complete implementation for selectable filters
- Allow choices to be specified as attribute
- Allow choices to be specified as function
- Handle state management for filter choice form
* Tweak badge
* Cleanup top-level yarn and npm files
* Less roundy
---------
Co-authored-by: Matthias Mair <code@mjmair.com>
* added language toggle component
* added language and theme controls onto start page
* moved host selection out of auth
* optimized rendering
* make server option less obvious
* changed EditButton save symbol
* longer welcome text
* removed ColorToggle color schema
* reduced code
* disabled host selection when options are changing
* fix type error
* use GH reporter
* fix tests?
* compile frontend
* fix assertation
* revert unneeded change
* split up into more components
* separated functions / use cases for LanguageToggle more
* moved color toggle to profile
* moved language out of main menu into profile
* remapped settings link
* Add SPA views for react #2789
* split up frontend urls
* Add settings for frontend url loading
* add new UI scaffold
* remove tracking insert
* add platform app
* ensure static indexes work too
* add lingui
* add lingui config
* add mgmt tasks
* add base locales
* settings for frontend dev
* fix typo
* update deps
* add pre-commit
* add eslint
* add testing scaffold
* fix paths
* remove error - tests trip correctly
* merge workflow
* cleanup samples
* use name inline with other tests
* Add real worl frontend tests
* setup env
* tun migrations first
* optimize setup time
* setup demo dataset
* optimize run setup
* add test for class ui
* rename
* fix typo
* and another typo
* do install
* run migrations first
* fix name
* cleanup
* use other credentials
* use other credentials
* fix qc
* move envs to qc
* remove create_site
* reduce testing env
* fix test
* fix test call
* allaccess user
* add ui plattform check
* add better check
* remove unneeded env
* enable debug
* reduce wait time
* also build frontend on static
* add sort plugin
* fix order
* run pre-commit fixes
* add node min version
* Docker container (#129)
* Fix allocation check for completing build order (#5199)
- Allocation check only applies to untracked line items
* docker dev
Install required node packages to docker development image
* add import order settings
* cleanout built ui
* remove default arg from build
* remove eslint
* optimize svg
* add build step for plattform UI
* fix install command
* use alpine commands
* do not use cache when creating image
* Added release pipeline
* trigger: ci
* Fix ci
* Fix ci
* Fix ci
* fix: workflow
* fix: workflow
* fix: doubble zipping
* fix: doubble zipping
* fix: doubble zipping
* fix: doubble zipping
* fix: doubble zipping
* Added frontend-download helper to tasks.py
* revert unrelated change
* Add frontend step to update task
* add frontend stuff to version info
* small change to trigger ci
* keep terminal output clean
* return found versions
* fix suggested command
* revert small change
* move to multiline
* add flag to stop frontend compile
* make node building optional on static
* add node trans to transalte task
* ammend commands to use new flag
* remove unneeded flag
* add warning
* add yarn bypass
* docstrings
* check for docker env
---------
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
Co-authored-by: wolflu05 <76838159+wolflu05@users.noreply.github.com>
* Add SPA views for react #2789
* split up frontend urls
* Add settings for frontend url loading
* add new UI scaffold
* remove tracking insert
* add platform app
* ensure static indexes work too
* add lingui
* add lingui config
* add mgmt tasks
* add base locales
* settings for frontend dev
* fix typo
* update deps
* add pre-commit
* add eslint
* add testing scaffold
* fix paths
* remove error - tests trip correctly
* merge workflow
* cleanup samples
* use name inline with other tests
* Add real worl frontend tests
* setup env
* tun migrations first
* optimize setup time
* setup demo dataset
* optimize run setup
* add test for class ui
* rename
* fix typo
* and another typo
* do install
* run migrations first
* fix name
* cleanup
* use other credentials
* use other credentials
* fix qc
* move envs to qc
* remove create_site
* reduce testing env
* fix test
* fix test call
* allaccess user
* add ui plattform check
* add better check
* remove unneeded env
* enable debug
* reduce wait time
* also build frontend on static
* add sort plugin
* fix order
* run pre-commit fixes
* add node min version
* Docker container (#129)
* Fix allocation check for completing build order (#5199)
- Allocation check only applies to untracked line items
* docker dev
Install required node packages to docker development image
* add import order settings
* cleanout built ui
* remove default arg from build
* remove eslint
* optimize svg
* add build step for plattform UI
* fix install command
* use alpine commands
* do not use cache when creating image
---------
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Disable migration testing
- Compare how long the unit tests take
* Change file
- To get unit tests to run
* Fix format
* Consolidate tasks.py
- Remove coverage task
- Add --coverage flag to test task
* Fix typo
* Run migration unit tests if migration files are updated
* Fix
* Touch migration file
- Should cause migration unit tests to be run
* Force migration checks for docker build
* Prevent default report creation in unit tests
- Should save some time
* Add simple profiling for plugin loading
- Display time taken to load each plugin
* Fix to invoke test
* Disable get_git_log (for testing)
* Disable get_git_path in CI
- Might remove this entirely?
- For now, bypass for unit testing
* Add debug for unit registry
- Display time taken to load registry
* Don't full-reload unit registry
* Adjust migration test workflow
- env var updates
- change paths-filter output
* Fix for migration_test.yaml
- Actually need to set the output
* env fix
* db name
* Prevent sleep if in test mode
* Reduce sleep time on wait_for_db
* move devcontainer docs
* rename bare metal pages
* fix backlinks
* Add getting started for devs
* add mermaid
* include contrib in docs
* use another plugin
* include everything
* update doc checks
* fix install command
* remove mermaid
* remove inclusion tag
* remove empty list item
* readd include-markdown
* use non-conflicting syntax for include
* fix table rendering in mkdocs
* make controbuting embedable
* re-add mermaid
* remove empty section
* resturcture
* remove mermaid again
* remove markuplint
* remove dedicated html step - will be done by pre-commit
* add djlint for django template linting
* Fix T003: Endblock should have name
* Fix H013: Img tag should have an alt attribute
* Fix H014: Found extra blank lines
* Fix T003: Endblock should have name
* Fix H013: Img tag should have an alt attribute
* small fixes
* Fix T001: Variables should be wrapped in a single whitespace
* Fix T003: Endblock should have name
* small fixes
* fix form method
* add entry to contributing
* fix template changes
* another fix
* use current version
* merge doc checks into main QC checks
* rename
* well both APIs are closed now so this would be useless
* make header more concise
* add check if server code changed - make run conditional
* reformat
* add check for links
* fix style
* call silently
* add dep
* add path
* ignore readme as it contains necesarry broken links
* fix syntax
* check recursevly
* run in sync
* use linkcheckmd instaead
* use sync
* add requests
* revert fix to check if checks still work
* fix lookup
* fix old link
* run check verbose
* run async
* remove recurse
* introduce error for test
* fix link
* Test fix for ongoing CI issues
(cherry picked from commit 3bf5492cb6)
* Run docker test on PR (temporarily)
* Add token to unit testing env
* Add github token to env file
* Fix for github token
* Ignore blank tokens
* Don't run on PR
* Import setuptools in manage.py
Ref: https://github.com/pypa/setuptools/issues/3706
* Import all the things
* Show setuptools version
* Update setuptools to latest verseion
* Force upgrade of setuptools version
* Remove debug
* Prevent docker builds on PR
* Remove setuptools imports
* Append correct python path if not present (only during testing)
* Add a bunch more debug info
* Display docker compose version
* More unit test fixes
* More debug info
* Ensure correct python path is included for docker build (only for testing)
* Remove debug statements
* Don't run docker workflow on PR
* Debug for docker workflow
* Show docker image hash
* More debug output
* Debug system path
* Disable pty for invoke test
* Disable pty as part of invoke test
* remove debug statements
* Disable docker workflow on pull request
* Test for docker workflow
* Ensure yaml is installed in the local env
* Install the right package
* Debug yaml path
* Check data directory first
* Let them run
* More debug info
* Try reverting a recent change
* Disable test
* Check envvar directory
* Remove debug prints
* Re-enable unit test
* Use os.getenv
* Prevent docker workflow from running on pull requests
* Re-add InvenTree.helpers import
* add initial advanced installer
* add symlink
* add dist detection
* make output uniform
* switch command to use wget
leave the installer on device
* regen script
* only install if not already there
* add os/version check
Closes#3835
* regenerate script
* fix case syntax
* fix typo
* rename assets to replace installer
* Add issue template for install problems
* Add link to open issue
* Update linked file
* Specify minimum python version for docker build workflow
(cherry picked from commit 18c55b30b81aef66c131a960586b52d655a621f9)
* Specify python version for translation checker
(cherry picked from commit 14360507f5c9d77ed8321755aab25a79fbcf10f9)
* Disable social media workflow
(has never worked, anyway)
(cherry picked from commit 56fbcbeae25b165978d149aa484ae7335f8f67a4)
* Add runtime
* add procfile
* add settings for packaging
* use heroku buildpack
* maybe a hash works?
* try brnach instead of tag or hash
* remove reference alltogether
* maybe this syntax?
* switch back to normal buildpack
* and heroku again
* try official sample
* maybe a tar?
* just git clone?
* lower version
* lower version
* switch of settings
* try this again
* maybe install python before?
* no sudo?
* just build for ubuntu?
* set runtime lower and use custom buildpack
* remove initial command
* add release command
* do not collect static while releaseing
* switch to custom backend
* Update .pkgr.yml
* new backend
* upgrade runtime version
* consolidate env
* update python version
* add debian as target
* fix os name
* extend requirements
* remove release command
* remove ssl dep
* add worker command
* add scripts
* debug listing
* make scripts executable
* use python3
* add python install
* add python as dep
* debug step
* switch to app home
* set paths right
* check local command
* remove path
* update path
* add sample install script
* more debugging
* dbg msg
* more enviroment stuff
* more dbugging
* more defined install script
* reduce function
* add debug script
* and more
* remove before
* reduce lines
* cleanup deps
* maybe this way?
* rm "
* rename env
* fix files
* use dot annotation
* ls
* add msgs
* move activation
* ref?
* use source
* use point annotation
* remove activate
* create env and add it to the enviroment
* use full paths
* move python init
* use modern python
* use version numbers for ubuntu
* add default env vars ( for now)
* use export
* use shorthand command
* add more variables
* use apphome reference in paths
* add wasyprint dependencies
* also use wheels
* add gettext for comiling messages
* add nginx setting
* remove postgres from required stack
* refactor fiel configs
* make sure parent dirs exsist
* add wheels
* move python setup again
* update packe name
* update gunicron command
* move to config
* try cleaner procfile
* use python 3 wheels
* update service def
* Add enviroment settings to packaging
* restart nginx
* remove slack
* change nginx config name
* fix styles
* set permissions on update
* Add single line install to README
* move nginx names back
* use production sample as nginx config
* fix sed statement
* cleaner nginx setup
* keep configs in config file instead of packaging index
* fix sed connamds to remove spaces
* reintroduce spaces
* Also disable debug mode
* fix file permissions
* remove unneeded commands
* readd missing spaces
* add admin user generation
* Show public ipadress in final message
* small cleanups
* Add log to setup
* remove logging
* remove logging parts
* chown all dirs
* run update command as right user already
* set path before running command
* fix permission setup
* switch right assignment
* run commands with sudo
* pass in envs
* preserve only selected enviroment
* show enviroment variables
* silence curl
* fix envs
* clean up final message
* move nginx file to variable
* make admin creation conditional
* a bit more overview for setup variables
* test if nginx is available
* unlink instead of delet
* clean up functions
* well that was dumb
* ok double dumb - now i tested it
* use config for admin generation
* fix logic
* show value - not call it
* switch functions to sh
* fix syntax
* add admin data to exposed envs
* remove keeping of admin pwd
* switch to true/false
* make nginx file location configureable
* use gunicorn instead
* fix syntax
* set base dir
* move env to seperate function
* Also use/write database settings
* use conf values if available
* format sh
* update passed envs
* fix dep
* enable installing extra packages via env (ie database backends)
* ann more logging steps
* add more debuggin steps
* get local envs
* add more debug and reorder
* more code for testing
* fix call
* Add debug msg
* turn install quiet
* fix syntax
* reduce debugging
* add log step
* add datestamp
* add marker to inv execution
* fix syntax
* add codeowner
* Adds 'consumable' field to BomItem model
* Add consumable field to API
* Consumable items always count as "allocated" for a build
* Add new BOM fields to BOM item checksum calculation
* Display 'consumable' status in BOM table
* Fix order of database migrations
* Update unit tests
* Fix for BOM table
* Remove "infinite" field from StockItem model
- Not used anywhere for functionality
- Hidden from the user
- Now replaced by the "consumable" concept in the BuildOrder model
* Update build order allocation table display
* Prevent auto-allocation of stock to consumable BOM items
* Ignore consumable BOM items when allocating stock to a build order
* Reimplmement "footer" row for BOM table
* Fix "can_build" calculation
- Ignore "consumable" BOM items
* Unrelated typo fix
* Tweak BOM table
* More visual tweaks to BOM table
* Add unit test for consumable field
* disable failing tests for sanity check
* run postgrest too
* only run problematic tests
* make paths relative
* refactor to reduce duplicate code
* remove testing restrictions again
* Update development docker-compose file
- Remove external volume definition
- v2 does not allow relative path spec here
- Simplification is only required for dev version
* Remove old debug messages
* Update docker build CI step
- Check that required directories / files have been created in the correct location(s)
* Add check for pgdb directory
* Run partial docker check on pull_request
* Disable workflow running on pull requests
* [FR] Automated releases
automated messages on the socials
Fixes#3078
* Add more details to Reddit
* Fix twitter text
* fix syntax
* Update release.yml
Add hashtags to twitter post
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Install dev requirements when running unit tests
* Disable mysql and postgresql checks for pull requests
* Install required dev packages when running tests on docker build
* 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>
* Adds a custom translation node class to strip dirty characters from translated strings
* Update javascript files to use new template tag
* Override behaviour of {% load i18n %}
- No longer requires custom tag loading
- All templates now use escaped translation values
- Requires re-ordering of app loading
- Revert js_i18n to simply i18n
* CI step now lints JS files compiled in each locale
* Checking that the CI step fails
* Revert "Checking that the CI step fails"
This reverts commit ba2be0470d.
* Simplify version_check script
- Allow 'x.x.x' or 'x.x.x dev' on master branch (because we need to be able to tag releases from master)
- Remove duplicate regex checks
- Fix docstrings
* Run version check on all branches
- Will ensure we cannot merge in duplicate tags
* Add requests package
* Add requests package
* Add pre-commit to the stack
* exclude static
* Add locales to excludes
* fix style errors
* rename pipeline steps
* also wait on precommit
* make template matching simpler
* Use the same code for python setup everywhere
* use step and cache for python setup
* move regular settings up into general envs
* just use full update
* Use invoke instead of static references
* make setup actions more similar
* use python3
* refactor names to be similar
* fix runner version
* fix references
* remove incidential change
* use matrix for os
* Github can't do this right now
* ignore docstyle errors
* Add seperate docstring test
* update flake call
* do not fail on docstring
* refactor setup into workflow
* update reference
* switch to action
* resturcture
* add bash statements
* remove os from cache
* update input checks
* make code cleaner
* fix boolean
* no relative paths
* install wheel by python
* switch to install
* revert back to simple wheel
* refactor import export tests
* move setup keys back to not disturbe tests
* remove docstyle till that is fixed
* update references
* continue on error
* add docstring test
* use relativ action references
* Change step / job docstrings
* update to merge
* reformat comments 1
* fix docstrings 2
* fix docstrings 3
* fix docstrings 4
* fix docstrings 5
* fix docstrings 6
* fix docstrings 7
* fix docstrings 8
* fix docstirns 9
* fix docstrings 10
* docstring adjustments
* update the remaining docstrings
* small docstring changes
* fix function name
* update support files for docstrings
* Add missing args to docstrings
* Remove outdated function
* Add docstrings for the 'build' app
* Make API code cleaner
* add more docstrings for plugin app
* Remove dead code for plugin settings
No idea what that was even intended for
* ignore __init__ files for docstrings
* More docstrings
* Update docstrings for the 'part' directory
* Fixes for related_part functionality
* Fix removed stuff from merge 99676ee
* make more consistent
* Show statistics for docstrings
* add more docstrings
* move specific register statements to make them clearer to understant
* More docstrings for common
* and more docstrings
* and more
* simpler call
* docstrings for notifications
* docstrings for common/tests
* Add docs for common/models
* Revert "move specific register statements to make them clearer to understant"
This reverts commit ca96654622.
* use typing here
* Revert "Make API code cleaner"
This reverts commit 24fb68bd3e.
* docstring updates for the 'users' app
* Add generic Meta info to simple Meta classes
* remove unneeded unique_together statements
* More simple metas
* Remove unnecessary format specifier
* Remove extra json format specifiers
* Add docstrings for the 'plugin' app
* Docstrings for the 'label' app
* Add missing docstrings for the 'report' app
* Fix build test regression
* Fix top-level files
* docstrings for InvenTree/InvenTree
* reduce unneeded code
* add docstrings
* and more docstrings
* more docstrings
* more docstrings for stock
* more docstrings
* docstrings for order/views
* Docstrings for various files in the 'order' app
* Docstrings for order/test_api.py
* Docstrings for order/serializers.py
* Docstrings for order/admin.py
* More docstrings for the order app
* Add docstrings for the 'company' app
* Add unit tests for rebuilding the reference fields
* Prune out some more dead code
* remove more dead code
Co-authored-by: Oliver Walters <oliver.henry.walters@gmail.com>
* Updates for docker version check script:
- Do not run on a push to stable
- Check existing versions via GitHub API
- Add stable docker image tag also
* Fix regex pattern
* Check for null regex result
* Push to stable on tagged release
* 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
* Add pre-commit to the stack
* exclude static
* Add locales to excludes
* fix style errors
* rename pipeline steps
* also wait on precommit
* make template matching simpler
* Use the same code for python setup everywhere
* use step and cache for python setup
* move regular settings up into general envs
* just use full update
* Use invoke instead of static references
* make setup actions more similar
* use python3
* refactor names to be similar
* fix runner version
* fix references
* remove incidential change
* use matrix for os
* Github can't do this right now
* ignore docstyle errors
* Add seperate docstring test
* update flake call
* do not fail on docstring
* refactor setup into workflow
* update reference
* switch to action
* resturcture
* add bash statements
* remove os from cache
* update input checks
* make code cleaner
* fix boolean
* no relative paths
* install wheel by python
* switch to install
* revert back to simple wheel
* refactor import export tests
* move setup keys back to not disturbe tests
* remove docstyle till that is fixed
* update references
* continue on error
* use relativ action references
* Change step / job docstrings