Commit Graph
149 Commits
Author SHA1 Message Date
Donkie 535fa40ad2 Updated most python dependencies
Primarily FastAPI and Pydantic to v2. Also ruff to latest.

Updated some code to support Pydantic v2
2024-05-23 19:42:27 +02:00
Donkie 26f5eaa2f7 Fixed base path issues 2024-05-22 20:15:39 +02:00
Donkie 620febc3ab Moved hishel cache directory into spoolmans data directory
This is to prevent permission issues
2024-05-21 11:25:08 +02:00
Donkie 59295a3e5a Added permission error catch for setting up hishel cache 2024-05-21 00:00:10 +02:00
Donkie ca545b72b9 Fixed spool price sorting not working
Resolves #349
2024-05-20 22:42:44 +02:00
Donkie 52c52bcfd8 Updated external db sync to handle spool types and new color hex format 2024-05-20 22:39:25 +02:00
Donkie c4693d3f34 Implemented used_length spool sort 2024-05-15 20:18:24 +02:00
Donkie 51c3b46f1f Fixed wrong remaining weight and length spool sort 2024-05-15 20:17:00 +02:00
Donkie 46ab709f72 Added extruder and bed temp to materials external db 2024-05-12 22:12:13 +02:00
Donkie e4d2ecf0dc Filament/vendor find by ext id + integration tests 2024-05-12 21:58:01 +02:00
Donkie 4af975d390 Removed 404 codes from find apis because they will never return that 2024-05-12 21:58:01 +02:00
Donkie c2f2f845f6 Removed hashtag from external db color 2024-05-12 21:58:01 +02:00
Donkie 7f8606050b Made external db density field required 2024-05-12 21:58:00 +02:00
Donkie 1e4c73138c Added external ID fields to filaments and vendors 2024-05-12 21:58:00 +02:00
Donkie eca8e32a55 Removed plural from new api to match others 2024-05-12 21:57:43 +02:00
Donkie cbaa7b81df Added API for fetching external database, removed parameters structure, 2024-05-12 12:14:25 +02:00
Donkie 21d541a680 Added script to download files from external db 2024-05-12 10:48:33 +02:00
Donkie bc32f1e890 Now supports running under a sub path
Just set the SPOOLMAN_BASE_PATH environment variable and it should work.

Resolves #95
2024-05-10 11:37:09 +02:00
Matt Gerega 153b21408b Merge branch 'master' into feature/spool_revisions 2024-04-17 17:26:14 -04:00
Matt Gerega fdec032d19 Updated handling of higher measurements 2024-04-15 16:41:14 -04:00
Dmitry Belousov 91d922d0b8 fixed version prometheus-client
added env variable SPOOLMAN_METRICS_ENABLED for enabled database collector

set metrics path as /metrics

checked Null values at vendors, init weight and price
removed some logs
2024-04-15 00:17:36 +03:00
Dmitry Belousov 2aa0a4f1b0 WA for FastApi session manager 2024-04-12 01:20:35 +03:00
Matt Gerega c6f9abeced Changed initial_weight to be net weight, not gross weight 2024-04-10 11:00:46 -04:00
Dmitry Belousov 28b2bfec50 Added prometheus client
Added scheduler for compute current spool metrics and info
2024-04-09 15:25:09 +03:00
Matt Gerega dad446621f Changed g to grams in API docs for clarity 2024-04-08 17:40:22 -04:00
Matt Gerega 23cfb42ba8 Updated based on PR requests 2024-04-08 17:38:18 -04:00
Matt Gerega 37804c14a8 modified default settings 2024-04-08 09:27:15 -04:00
Matt Gerega a6ae808389 Added additional integration tests for measure and add 2024-03-28 09:29:39 -04:00
Matt Gerega 19c414da4b Add integration tests for new measure endpoint 2024-03-27 15:44:54 -04:00
Matt Gerega 3ea4937f24 Updated spool UIs (create/edit) 2024-03-27 14:47:05 -04:00
Matt Gerega 3aed735cea Updated vendor API to correct issues - Implement new UI 2024-03-26 21:26:41 -04:00
Matt Gerega e68f88da2a Added empty spool weight as an option field for the vendor 2024-03-26 20:35:50 -04:00
Matt Gerega 83fd3073ec Fixed formatting 2024-03-26 14:02:17 -04:00
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