Fixes#10701
The issue was that the table row key was using 'props.item.pk', but the
API returns 'id' instead. This caused React to not properly render the
rows with their values.
Changed the key to use 'props.item.id' with a fallback to 'props.idx'
for new rows that don't have an ID yet.
(cherry picked from commit 8d1f7f39b4)
Signed-off-by: Akhil Singh <singhakhil69@gmail.com>
Co-authored-by: Akhil Singh <35478226+akhilsingh-git@users.noreply.github.com>
* Improve rendering of SupplierPart in forms
- Display pack_quantity
* Ensure boolean values have default
(cherry picked from commit 636477ac13)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Cleaner handling of inputs
* Fix for frontend form:
- Fix typo in field
- Better option defaults
* Tweak part category delete form
* Add frontend tests
(cherry picked from commit 23d580c4a9)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* [docker] Allow HTTPS port to be specified for Caddy proxy
* Fix naming collision for INVENTREE_WEB_PORT
* Push InvenTree version first
* Adjust Caddyfile
- Change backup server
* Fix docstring
* Tweak for site URL check:
- Ignore port if SITE_LAX_PROTOCOL_CHECK is set
- Invert logic for readability
* Additional checks for port mismatch
* Adjust middleware checks
- Allow for less strict checking of CSRF_TRUSTED_ORIGINS
* Slight refactor
(cherry picked from commit f9ce9e20b2)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
- Remove TODO entry
- Placeholder when adding external build order support
(cherry picked from commit a466926aef)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Clear selected records when search term changes
* Clear selection after performing stock actions
(cherry picked from commit f22417fd1f)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Adjust config template
- Don't hard-code cookie mode into template
- Revert to the "default" values (which are the same)
* [ui] better feedback on login error
- Show error code, at least
* Revert removed code
* Adjust playwright tests
(cherry picked from commit 6badc0148f)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* implement version loading in more contexts
closes#10554
* factor version file out
* ensure results do not contain new strings
(cherry picked from commit 6327707c0e)
Co-authored-by: Matthias Mair <code@mjmair.com>
- Prevent process interlock
- Prevent migration check if already running migrations
(cherry picked from commit 067cb1fccb)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* [UI] Prevent warning flash
- Display warning element after a delay
* Support no-javascript
(cherry picked from commit 1a171b5705)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* show warning text
* fix formatting
* try to gather site-url correctly
* protect envs that are set in the config
* raise issue if they appear
* prefer app setting over file config
* preserve setting if injected via envs
(cherry picked from commit c83a9b01ce)
Co-authored-by: Matthias Mair <code@mjmair.com>
* Fix "unallocated_quantity" calculation
- Take "consumed" quantity into account also
* Account for consumed quantity in:
- build.is_fully_allocated
- build.is_overallocated
* Additional unit tests
- Ensure the new calculations work properly
* Adjust API filter
* Try splitting query
* Another fix
* Try ExpressionWrapper
* Change order of operations?
* Refactor
* Adjust filtering strategy
* Change ordering
* Use Max wrapper
* Add comments
(cherry picked from commit 6fdc6b3a8c)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
- Show allocated quantity even if fully consumed
- Handles edge case where fully consumed but more stock allocated
(cherry picked from commit 1670523dab)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Ensure all user sessions are cleared
* remove double warning text on user delete
(cherry picked from commit 4794d69687)
Co-authored-by: Matthias Mair <code@mjmair.com>