Matt Gerega
1d6830d769
Added initial_weight and empty_weight to spool
2024-03-26 13:55:44 -04:00
Donkie
c2335366bb
Fixed sorting by remaining weight/length
2024-02-02 22:10:11 +01:00
Donkie
290eb5cb81
Added backend ability to sort by combined_name
2024-01-30 18:20:53 +01:00
Donkie
46c95eb5dd
Fixed valueerror on invalid build date
2024-01-25 22:14:31 +01:00
Donkie
b40da6e2ee
Updated commit and build date capturing
...
It's now written to a build.txt file instead of using environment variables internally. Standalone installs now has this properly as well.
2024-01-25 22:03:18 +01:00
Donkie
c0b4951a68
Read Spoolman version directly from pyproject.toml instead
2024-01-25 21:54:10 +01:00
Donkie
fb23024ed0
Extra fields now finished for filaments
2024-01-23 18:58:58 +01:00
Donkie
f9787158b8
Extra field settings UI done
2024-01-23 18:58:57 +01:00
Donkie
9362d04dad
Add caching for extra fields retrieval
2024-01-23 18:58:57 +01:00
Donkie
36a346bf64
Added restrictions on changing existing fields
2024-01-23 18:58:57 +01:00
Donkie
09b8705133
Existing extra fields for entities are now cleared if a field is deleted
2024-01-23 18:58:57 +01:00
Donkie
86e126f775
Added some basic field CRUD tests
2024-01-23 18:58:57 +01:00
Donkie
06e3849862
No longer need to specify entity_type in body
2024-01-23 18:58:57 +01:00
Donkie
77ac9d6a5c
Added custom extra fields to backend
...
No integration tests yet, TBD
2024-01-23 18:58:57 +01:00
Donkie
44da991d47
Added a new backend settings system
...
This can be used for saving runtime-configurable settings in the database.
2024-01-16 19:17:06 +01:00
pdsccode
50ac398519
Fixed missing comma in api model spool price
2023-12-30 09:29:26 +01:00
pdsccode
f659284bed
Fixed api missing spool price return
2023-12-30 09:28:08 +01:00
pdsccode
d18d21d8fd
Fixed db access to spool price field
2023-12-30 09:18:37 +01:00
Sebastian
0185cbf43e
Resolved indentation error
2023-12-30 08:30:17 +01:00
pdsccode
1eb78f01df
Added pricing field for single spool
2023-12-30 07:29:27 +01:00
Donkie
57daa961f3
Fixed issue in bump script
2023-12-29 11:33:34 +01:00
Donkie
315ff1d980
Added node package bumping to bump script
2023-12-29 00:14:26 +01:00
Donkie
cf8d7472f5
Added backend filament search by similar color
2023-12-19 21:37:07 +01:00
Donkie
0dee856e80
Added env vars to override all storage dirs
2023-11-25 21:59:05 +01:00
Donkie
796523a860
Fixed db backups not using the fancy get_backups_dir function
2023-11-25 21:58:20 +01:00
Donkie
d119a27cc2
Added separate get_logs_dir function for logs dir
...
Instead of piggy-backing on the data dir
2023-11-25 21:42:56 +01:00
Donkie
fef41a5628
Added warning if in docker and data dir isn't mounted
...
Had to remove the VOLUME definition in the dockerfile for this, otherwise the data dir would always be mounted by an anonymous volume if the user didn't mount it correctly, so the python script wouldn't be able to detect it.
2023-11-07 21:45:58 +01:00
Donkie
a9f19774e4
Added an explicit data folder permissions check on startup
...
It will try resolve the permission issue on its own, but if not successful it will crash with a helpful message.
2023-11-06 22:17:36 +01:00
Donkie
9eb3aef08d
Removed unused default registered func
2023-10-21 11:49:00 +02:00
Donkie
5f7a063125
Added resource field in websocket message
...
Used to differentiate resources for root-level subscriptions
2023-10-15 20:39:53 +02:00
Donkie
3e2bbed17e
Added more websocket endpoints
...
Can now subscribe to:
- spool/filament/vendor level events, not specific to any specific ID
- root level events, captures all events sent
2023-10-15 20:36:48 +02:00
Donkie
03be75abca
Subscription tree data structure for websockets
...
It holds the subscriptions in a tree fashion, sending the message down the branches while broadcasting on each node.
2023-10-15 20:16:29 +02:00
Donkie
7a3c2e3a68
Added event response model in api documentation
2023-10-15 19:46:28 +02:00
Donkie
a6d527aaf0
Added/deleted-type websocket messages
...
Events are now sent for not only when an object changes but also when one is created or deleted.
For now it's not really possible to subscribe to these events however.
This breaks backwards-compatibility with the websocket messages.
2023-10-15 19:46:10 +02:00
Donkie
3c5b3cea5a
Added websocket endpoints for filament and vendors
2023-10-15 15:39:39 +02:00
Donkie
9595aec675
Fixed registered field having wrong timezone
...
This happened with at least Postgres, which took it's server's timezone. It's complicated. Let's just set it from our side instead where we have some control.
2023-10-02 21:36:50 +02:00
Donkie
205574fa2c
Fixed timezone being returned incorrectly
...
Happened if you've set TZ to non-UTC.
Apparently astimezone and replace doesn't do the same thing even if tzinfo is None.
2023-10-02 21:36:50 +02:00
Donkie
82600347da
Improved API documentation regarding empty fields
2023-09-20 21:10:38 +02:00
Donkie
597dca7c28
Fixed combining empty and non-empty filter
...
Previously it would then act as a wildcard filter
2023-09-20 21:02:49 +02:00
Donkie
b795680226
Added missing timezone in responses
...
Fixes #114
2023-09-20 20:13:02 +02:00
Donkie
cadb707fdd
Added WebSocket notify API for spools
2023-09-17 22:00:00 +02:00
Donkie
1a3efd9ea9
Added git commit and build date env and API
2023-09-17 10:51:28 +02:00
Donkie
6f94c17050
Renamed vendor.x to filament.vendor.x in spool API
2023-09-16 11:13:30 +02:00
Donkie
6ee3b8df70
Added support for multiple int where's
2023-09-16 11:13:30 +02:00
Donkie
6d68a40313
Added support for multiple string where's
2023-09-16 11:13:30 +02:00
Donkie
841cc8b6df
Added sort by remaining weight
2023-09-16 11:13:30 +02:00
Donkie
a4d14c5b52
Added X-Total-Count test asserts
...
Fixed issue with incorrect total count for vendors
2023-09-16 11:13:30 +02:00
Donkie
e436aa4975
Added tests for spool find sorting
2023-09-16 11:13:30 +02:00
Donkie
f47eacd2a9
Added support for finding empty vendor fields
2023-09-16 11:13:30 +02:00
Donkie
3b8db0b5f7
Expose X-Total-Count header
2023-09-16 11:13:30 +02:00