Commit Graph

43 Commits

Author SHA1 Message Date
3eb4050d82 Refactor job model and optimize job streaming.
Updated the `JobModel` with foreign key relationships and string-based status to enhance database consistency, and improved job event streaming by using `jsonable_encoder` for better serialization. Also, streamlined dependencies by adding `urllib3` to handle HTTP requests.
2025-04-29 09:47:57 +02:00
fda9142155 Add job processing system with streaming endpoint
Introduced a `processing` router to handle job streaming using server-sent events. Added `Jobs` and `JobStatus` models for managing job-related data, along with database creation logic. Updated the `sample` router to create new job entries during experiment creation.
2025-04-10 11:53:36 +02:00
5a0047b6d5 Refactor AareDB backend and update schemas and paths.
Revised backend schema definitions, removing unnecessary attributes and adding new configurations. Updated file path references to align with the aaredb structure. Cleaned up redundant notebook content and commented out unused database regeneration logic in the backend.

Added posting a result to the database
2025-03-17 11:51:07 +01:00
fbc32474ff Refine event types and update related models and logic
Standardized event types with stricter validation using `Literal`. Adjusted related data and logic to align with new types, including changes to PGROUP assignments, event timeline increments, and schema updates. Cleaned up unused code and clarified database initialization behavior.
2025-03-14 13:11:05 +01:00
2e1d87c31b Update dependencies and migrate to Node 18 minimum support
Upgraded multiple package versions, including `@esbuild` and dependencies like `@mui/x-data-grid-premium`. Adjusted `node` engine requirement to `>=18` for compatibility. This ensures modernization and alignment with current toolchain standards.
2025-03-04 10:42:24 +01:00
1606e80f81 Add Image models and clean up test code structure
Introduced `ImageCreate` and `Image` models to handle image-related data in the backend. Improved the organization and readability of the testing notebook by consolidating and formatting code into distinct sections with markdown cells.
2025-02-26 13:33:23 +01:00
f588bc0cda Add endpoint for creating local contacts with access control
Introduced a new `local_contact_router` to handle creation of local contacts. The endpoint enforces role-based access control and ensures no duplication of email addresses. Updated the router exports for consistency and cleaned up a large test file to improve readability.
2025-02-26 09:58:19 +01:00
25673ae05c added tabs to logistics frontend 2025-02-05 11:55:46 +01:00
780ba1959f Add SetTellPositionRequest schema and minor cleanup.
Added a new `SetTellPositionRequest` schema in `schemas.py` to support bulk updates of TELL positions. Commented out redundant metadata operations in `main.py` and cleaned up unused content in the test notebook for better readability.
2025-02-04 14:43:59 +01:00
c2215860bf Refactor Dewar service methods and improve field handling
Updated Dewar API methods to use protected endpoints for enhanced security and consistency. Added `pgroups` handling in various frontend components and modified the LogisticsView contact field for clarity. Simplified backend router imports for better readability.
2025-01-30 13:39:49 +01:00
44582cf38e Add pgroup handling in dewars and enhance ShipmentDetails UI
Introduced a new `pgroups` attribute for dewars in the backend with schema and model updates. Modified the frontend to display `pgroups` as chips, integrate new visual icons for pucks and crystals, and enhance the UI/UX in `ShipmentDetails` and `DewarStepper` components. Added reusable SVG components for better modularity and design consistency.
2025-01-23 13:57:25 +01:00
173e192fc4 Integrate pgroups for shipment data security
Added `pgroups` to secure and associate data with specific permission groups. Updated backend routers, database models, and API endpoints to handle authorization based on `pgroups`. Adjusted frontend components and hooks to support `pgroups` in data fetching and management workflows.
2025-01-22 22:53:37 +01:00
382b1eaba8 Refactor contact handling across backend and frontend
Replaced usage of "ContactPerson" with "Contact" for consistency across the codebase. Updated related component props, state variables, API calls, and database queries to align with the new model. Also enhanced backend functionality with stricter validations and added support for handling active pgroups in contact management.
2025-01-22 16:31:08 +01:00
6cde57f783 **Commit Message:**
Enhance app with active pgroup handling and token updates

Added active pgroup state management across the app for user-specific settings. Improved token handling with decoding, saving user data, and setting OpenAPI authorization. Updated components, API calls, and forms to support dynamic pgroup selection and user-specific features.
2025-01-22 13:55:26 +01:00
4630bcfac5 Add mount_count and unmount_count tracking for samples
Introduced `mount_count` and `unmount_count` fields to track mounting events for samples. Updated models, schemas, and front-end components to support dynamic calculation and display of these counts. Enhanced backend queries and API responses to include the new data.
2025-01-20 13:04:20 +01:00
3b315f2997 Add mount_count and unmount_count tracking for samples
Introduced `mount_count` and `unmount_count` fields to track mounting events for samples. Updated models, schemas, and front-end components to support dynamic calculation and display of these counts. Enhanced backend queries and API responses to include the new data.
2025-01-20 11:02:56 +01:00
54975b5919 Add spreadsheet enhancements and default handling
Implemented a toggleable spreadsheet UI component for sample data, added fields such as priority and comments, and improved backend validation. Default values for "directory" are now assigned when missing, with feedback highlighted in green on the front end.
2025-01-06 14:40:02 +01:00
a0be71bdfe Fix formatting with black 2024-12-16 10:41:56 +01:00
958c9167fc added puck events 2024-12-11 13:57:23 +01:00
9160339961 fixed bug with logistics 2024-12-11 10:10:43 +01:00
e28c8b05d4 fixed bug with spreadsheet import 2024-12-10 15:18:48 +01:00
996fc66d76 switched to mariaDB 2024-12-05 21:49:00 +01:00
1a1a710edf added pet data for samples events 2024-12-04 11:23:21 +01:00
a42124a56f can now return the dewar to its slot 2024-11-28 10:09:28 +01:00
fc8bb8d200 retrieved event working 2024-11-22 22:04:44 +01:00
c7e6c0390e now with a working countdowntimer for each dewar 2024-11-21 13:18:58 +01:00
db610da588 now with a working countdowntimer for each dewar 2024-11-20 22:37:18 +01:00
98d6265ae1 now associating a dewar to a slot 2024-11-19 14:43:26 +01:00
fa1e9c86b8 now associating a dewar to a slot 2024-11-19 13:43:54 +01:00
a931bfb8ec https and ssl integration on the backend, frontend and started integration of logistics app as a separate frontend 2024-11-19 09:56:05 +01:00
0eb0bc3486 added a router for logistics, now creating label 2024-11-15 14:04:30 +01:00
6083c72a1d added dewar type, serial number, generate unique id, qr code and generate label 2024-11-14 23:17:20 +01:00
8f7c90bab0 now creating dewars, pucks and samples from spreadsheet and replacing dewars if a dewar with the same name exists 2024-11-12 17:03:38 +01:00
86883133a7 now creating dewars from spreadsheet 2024-11-12 14:00:32 +01:00
52fe68b2bc changed models and schemasa 2024-11-11 15:00:20 +01:00
701c42c0dd updated models and schemas for shipments and dewars 2024-11-11 11:43:49 +01:00
d5c7e7e6f3 changed shipment_id to integers 2024-11-09 08:11:03 +01:00
4e76db4c9f added contacts and addresses manager 2024-11-04 21:31:01 +01:00
9fa499a582 added pucks and samples 2024-11-04 16:20:53 +01:00
23e7ebb819 added pucks and samples 2024-11-04 11:34:14 +01:00
84f270b647 Integration of sqlite3 database now fully functional with all implemented functions 2024-11-02 12:12:30 +01:00
a01114a178 Better integration of sqlite3 database 2024-11-02 00:54:37 +01:00
48cd233231 Added the sqlite3 database 2024-11-01 14:13:38 +01:00