Commit Graph

85 Commits

Author SHA1 Message Date
c45a46b07b Add example scripts and enhance puck event queries
Introduced a new Jupyter Notebook with API usage examples for managing pucks and samples. Refactored puck retrieval logic to include the latest event type and `tell_position`, improving data accuracy. Updated backend version to 0.1.0a16 accordingly.
2025-01-09 16:56:38 +01:00
9bfcc30981 Refactor dewar and sample handling; improve grid data binding
Updated Dewar and Sample schemas, added nested relationships, and adjusted API responses for better data handling. Simplified puck normalization, enhanced data grid logic in the frontend, and implemented a PUT endpoint for updating samples. Incremented backend version to 0.1.0a15 and added new HTTP request example.
2025-01-09 13:01:52 +01:00
a9cb7a41b0 Refactor set_tell_positions logic with updated rules.
Revised the set_tell_positions endpoint to handle updated business rules for puck positioning. Improved event handling to ensure proper nullification, updates, and removal of tell_positions based on the provided payload. Enhanced query performance and normalized puck name processing for consistency.
2025-01-09 09:44:59 +01:00
0fdd5e54b7 Refactor set_tell_positions logic with updated rules.
Revised the set_tell_positions endpoint to handle updated business rules for puck positioning. Improved event handling to ensure proper nullification, updates, and removal of tell_positions based on the provided payload. Enhanced query performance and normalized puck name processing for consistency.
2025-01-08 17:01:42 +01:00
fb5e930096 Refactor set_tell_positions logic with updated rules.
Revised the set_tell_positions endpoint to handle updated business rules for puck positioning. Improved event handling to ensure proper nullification, updates, and removal of tell_positions based on the provided payload. Enhanced query performance and normalized puck name processing for consistency.
2025-01-08 16:59:46 +01:00
6c91bc78da Refactor set_tell_positions logic with updated rules.
Revised the set_tell_positions endpoint to handle updated business rules for puck positioning. Improved event handling to ensure proper nullification, updates, and removal of tell_positions based on the provided payload. Enhanced query performance and normalized puck name processing for consistency.
2025-01-08 15:18:08 +01:00
4f73f41717 Refactor and extend puck handling with tell_position updates
Refactored puck updating logic to use Pydantic models for validation and normalization. Added a new endpoint to retrieve all pucks with a tell_position and their associated samples. Updated project version to 0.1.0a11 in pyproject.toml.
2025-01-08 14:11:34 +01:00
6d67d02259 Expand sample data handling and grid display.
Integrated additional sample parameters into backend and frontend for enhanced data collection. Updated pyproject version to reflect these changes. This improves user interface flexibility and enriches displayed sample metadata.
2025-01-08 09:52:15 +01:00
9b4f8599f3 Add support for data collection parameters across layers
Introduced serialization for `data_collection_parameters` in backend models and processing. Added logic to parse and attach data collection parameters in the frontend. This ensures consistent handling and storage of these parameters throughout the application.
2025-01-08 09:19:23 +01:00
35369fd13c Add column type mapping and enhance validation
Introduced a backend mapping for column expected types, improving validation and error handling. Updated UI to highlight default and corrected values, with additional detailed validation for data collection parameters.
2025-01-07 16:07:13 +01:00
92306fcfa6 Add column type mapping and enhance validation
Introduced a backend mapping for column expected types, improving validation and error handling. Updated UI to highlight default and corrected values, with additional detailed validation for data collection parameters.
2025-01-07 15:45:08 +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
27d2717a05 Refactor slot UI and backend refill logic.
Updated slot styling for improved user feedback and responsiveness. Simplified LN2 representation with a new level bar and adjusted refill logic to a 48-hour interval. Removed unused functions for cleaner backend code.
2024-12-20 13:20:45 +01:00
da5dbb9e31 Refactor puck handling and update tell position setting
Simplify and standardize puck name normalization and validation. Refactor `set_tell_positions` to handle batch operations, improve error handling, and provide detailed responses for each puck. Removed unnecessary `with-tell-position` endpoint for better clarity and maintainability.
2024-12-19 15:16:21 +01:00
14eaca81c6 Update tell position logic and add new endpoint
Refactored tell position logic to use `segment` and `puck_in_segment` fields, replacing the previous single `tell_position` field. Introduced a new `/set-tell-positions` endpoint for setting tell positions based on these changes and removed the deprecated endpoint handling the old logic. Enhanced validation and streamlined handling of related logistics and puck events.
2024-12-19 13:21:37 +01:00
ef981d1e45 Refactor OpenAPI fetcher for improved clarity and robustness
Reorganized and enhanced the OpenAPI fetch logic for better maintainability and error handling. Key updates include improved environment variable validation, more detailed error messages, streamlined configuration loading, and additional safety checks for file paths and directories. Added proper logging and ensured the process flow is easy to trace.
2024-12-18 14:22:37 +01:00
9b6ad107bb Refactor OpenAPI fetcher for improved clarity and robustness
Reorganized and enhanced the OpenAPI fetch logic for better maintainability and error handling. Key updates include improved environment variable validation, more detailed error messages, streamlined configuration loading, and additional safety checks for file paths and directories. Added proper logging and ensured the process flow is easy to trace.
2024-12-17 16:25:53 +01:00
dbf7864e7e Refactor OpenAPI fetcher for improved clarity and robustness
Reorganized and enhanced the OpenAPI fetch logic for better maintainability and error handling. Key updates include improved environment variable validation, more detailed error messages, streamlined configuration loading, and additional safety checks for file paths and directories. Added proper logging and ensured the process flow is easy to trace.
2024-12-17 16:16:54 +01:00
19c5d7f880 Refactor environment-specific configurations and data loading.
Refactored database and server configuration to handle environments (dev, test, prod) explicitly, including tailored database setup and SSL management. Separated slot and sample data loading for better control during initialization. Improved environment variable usage and error handling for production certificates.
2024-12-17 13:11:26 +01:00
0178de96fd fixing bugs with ci pipeline 2024-12-16 22:50:04 +01:00
a0be71bdfe Fix formatting with black 2024-12-16 10:41:56 +01:00
24afe9fa9e tentative to add ci pipeline 2024-12-13 15:37:48 +01:00
530c9efae0 retrieve pucks that are in the tell dewar 2024-12-12 15:10:14 +01:00
6c88ff9651 fixed bug with uk zip code and add retrieved timestamp for dewars at the beamline 2024-12-12 11:59:42 +01:00
fd17c0e672 refined output of retrieving pucks and dewars at beamlines 2024-12-12 11:31:27 +01:00
156533f372 get puck events 2024-12-11 17:01:52 +01:00
5d7dcebe2e get puck events 2024-12-11 16:59:22 +01:00
c3e476002a get puck events 2024-12-11 16:54:16 +01:00
3b79951a43 get puck events 2024-12-11 16:50:59 +01:00
f83dc1ea58 get puck events 2024-12-11 16:44:38 +01:00
e44212e642 get puck events 2024-12-11 16:35:01 +01:00
ed84060563 get puck events 2024-12-11 16:24:22 +01:00
9cd0d81dac get puck events 2024-12-11 15:39:16 +01:00
328a95d76e fixed bug with generate qrcode 2024-12-11 14:28:31 +01:00
958c9167fc added puck events 2024-12-11 13:57:23 +01:00
66a0ce3281 fixed bug with unique id creation during spreadsheet upload 2024-12-11 12:32:33 +01:00
9160339961 fixed bug with logistics 2024-12-11 10:10:43 +01:00
250e090133 fixed bug with spreadsheet import 2024-12-10 16:36:36 +01:00
29a9d16bc3 various bugs fixing 2024-12-06 14:53:27 +01:00
996fc66d76 switched to mariaDB 2024-12-05 21:49:00 +01:00
7b00db3c0d added sample tracker on the frontend 2024-12-04 14:45:47 +01:00
1a1a710edf added pet data for samples events 2024-12-04 11:23:21 +01:00
0d1374ded7 added login page and started integrated of security 2024-12-03 23:01:38 +01:00
1798c480f6 outgoing by scanning the outgoing qr code 2024-12-02 13:36:48 +01:00
7d5e86932d added more informations in the slot summary 2024-11-28 12:24:57 +01:00
69c8bcbbcd changed schemas 2024-11-28 11:21:41 +01:00
99bc808ca1 can now return the dewar to its slot 2024-11-28 10:32:00 +01:00
a42124a56f can now return the dewar to its slot 2024-11-28 10:09:28 +01:00
fbb868e255 retrieved return events working but bug with return to be fixed 2024-11-26 17:41:01 +01:00
fc8bb8d200 retrieved event working 2024-11-22 22:04:44 +01:00