05d0cd539cImprove CORS error handling in index.js by logging allowed origins and the rejected origin. This change enhances debugging capabilities by providing clearer context when a request is denied due to CORS policy.
main
Tom Butcher2026-08-02 01:27:20 +01:00
627de41ccaRefactor CORS origin handling in index.js to support multiple origins using a Set for uniqueness. Log allowed origins during server initialization for better visibility and debugging.Tom Butcher2026-08-02 01:18:05 +01:00
87256257d7Update CORS configuration in config.json and README.md to allow multiple origins. Refactor CORS handling in index.js to utilize new server.corsOrigins setting, enhancing API security and flexibility.Tom Butcher2026-08-02 01:01:50 +01:00
0dafdf1edaUpdate slicer.js and slicer.test.js to include createFileThumbnails function. This change integrates thumbnail creation into the slicer service and updates the test suite to mock the new function, enhancing testing coverage for file upload scenarios.Tom Butcher2026-08-01 18:30:26 +01:00
f69c88926cRefactor allowedFilters in inventory and management routes to improve consistency and readability. Cleaned up whitespace and ensured all filters are properly formatted for better query handling across purchase orders, shipments, and filament SKUs.Tom Butcher2026-08-01 18:25:59 +01:00
c0112d61fbAdd thumbnail creation call in slicerUploadRouteHandler to generate file thumbnails upon upload. This enhancement improves the user experience by ensuring thumbnails are created for uploaded files.Tom Butcher2026-08-01 15:22:04 +01:00
6b80aee80aRefactor thumbnail creation logic in createFileThumbnails function to handle GCode file types and improve thumbnail source validation. Cleaned up whitespace and enhanced caching logic for better performance in database.js.Tom Butcher2026-08-01 15:10:59 +01:00
6c694d7d48Add boolean field handling to filtering logic in utils.jsTom Butcher2026-08-01 14:33:03 +01:00
c043ad7a86Enhance allowedFilters across multiple routes to include 'createdAt', 'updatedAt', and '_reference' for improved filtering capabilities. This update applies to finance, inventory, management, and sales modules, ensuring consistency and better query handling.Tom Butcher2026-08-01 14:26:40 +01:00
c233be5d80Enhance allowedFilters in printers.js and subjobs.js to include 'state' and '_reference' for improved filtering capabilities. Cleaned up whitespace for better code readability.Tom Butcher2026-08-01 13:31:27 +01:00
664a3a4884Update allowedFilters in jobs.js to include '_id' and '_reference' for enhanced filtering capabilities in job queries. Cleaned up whitespace for improved code readability.Tom Butcher2026-08-01 13:28:50 +01:00
7606afcf11Add getObjectNeighbors mock implementation in various test files for improved neighbor retrieval functionality across multiple modules.Tom Butcher2026-08-01 13:26:23 +01:00
300478b62bUpdate package.json to specify pnpm as the package manager and add minimumReleaseAge to pnpm-workspace.yaml for improved workspace configuration.Tom Butcher2026-08-01 13:24:36 +01:00
74c0d8eb52Refactor propertiesAllowedFilters across various routes to streamline filtering logic. Removed redundant allowedFilters definitions and replaced them with propertiesAllowedFilters for improved query handling in finance, inventory, and management modules.Tom Butcher2026-08-01 13:22:51 +01:00
1e807beacfImplement neighbors caching and retrieval for various entities in the inventory and finance modules. Introduced new route handlers for fetching neighbors in invoices, payments, tax records, filament stocks, order items, part stocks, product stocks, purchase orders, shipments, stock audits, stock events, stock locations, and stock transfers. Updated allowed filters for improved query capabilities across these routes. Enhanced database.js with caching logic for neighbors, including cache invalidation on object updates.Tom Butcher2026-08-01 13:20:01 +01:00
6a9cd2a2eaRefactor Redis integration to use ioredis instead of redis, enhancing performance and compatibility. Updated connection handling and command syntax for improved functionality. Added new dependencies for ioredis and updated mongoose version in package.json.Tom Butcher2026-08-01 12:42:08 +01:00
7a1b85bb19Updated allowedFilters in printers.js to include '_id' and '_reference' for enhanced filtering capabilities in printer queries. Cleaned up unnecessary whitespace in the file.Tom Butcher2026-08-01 12:41:29 +01:00
3155733642Add filterDistributeKeys function and DISTRIBUTE_KEYS constant to utils.js for improved data handling in distributed updates. Updated distribution functions to utilize these enhancements, ensuring only relevant keys are published.Tom Butcher2026-07-28 02:51:09 +01:00
8ca49e5a87Added vendor property to document printer route handlers for improved data handling during printer updates and creation.Tom Butcher2026-07-27 02:37:36 +01:00
e1b6814efdEnhanced gcodeFile schema to populate part information during validation, improving data integrity for parts. Updated service functions to reflect changes in population logic for parts, ensuring accurate data retrieval.Tom Butcher2026-07-26 21:21:30 +01:00
5a4fecbae0Refactored editObject function in database.js to utilize a merged object for updates, improving code clarity and reducing redundancy. Updated printer schema to include a default ID generation method and added alerts handling in editPrinterRouteHandler for enhanced printer management.Tom Butcher2026-07-26 21:11:43 +01:00
3a79526edaAdded unit property to spotlight object in trimSpotlightObject function, enhancing the object structure for improved data handling.Tom Butcher2026-07-26 20:03:06 +01:00
0b3a911611Added recalculation logic to printer schema for managing printer states based on activity and online status. Integrated editObject utility for state updates, enhancing printer state management.Tom Butcher2026-07-26 19:40:16 +01:00
02a05231d1Added support for tags in new host creation by including tags from the request body in the host object. This enhancement improves the data structure for host management.Tom Butcher2026-07-26 19:40:11 +01:00
6f59f75b41Refactored newFilamentStockRouteHandler test to accommodate updated filament stock structure, including net and gross weight properties. Adjusted mock implementations to ensure accurate testing of stock creation and event handling.Tom Butcher2026-07-26 19:28:01 +01:00
5ee8f332e2Enhanced filament schema and related service functions to include vendor information. Updated route handlers to support vendor population in filament queries and exports, improving data management and retrieval capabilities.Tom Butcher2026-07-26 19:07:41 +01:00
fa74c464f9Added history tracking to inventory schemas (filament, part, product stocks) and stock events, enabling better state management and historical data retention. Updated related service functions to incorporate new history logic for stock events and recalculations.Tom Butcher2026-07-26 18:37:55 +01:00
9a22fd6452Updated log level in config.json to 'trace' for more detailed logging. Refactored inventory schemas by removing redundant stock event calculation functions and integrating stock event recalculation logic into the stockevent schema, enhancing overall data management and performance.Tom Butcher2026-07-26 16:10:31 +01:00
8423db2858Implemented a merge utility function for object updates in database.js to handle array merging correctly, enhancing cache update logic for improved data integrity.Tom Butcher2026-07-26 15:00:37 +01:00
c710f46a6fAdded mock implementations for createFileThumbnails and getThumbnail functions in the file management tests to enhance testing capabilities for thumbnail generation and retrieval.Tom Butcher2026-07-26 03:10:32 +01:00
4231d548ccAdded sharp and blurhash dependencies, implemented thumbnail generation and retrieval functionality in the file management system. Updated database schema to include thumbnail metadata and enhanced route handlers for thumbnail access.Tom Butcher2026-07-26 03:07:23 +01:00
4db7ffff6aUpdated createOrUpdateUser function in auth.js to return the expanded object IDs from the new user document directly, ensuring accurate data representation upon user creation or update.Tom Butcher2026-07-26 00:43:32 +01:00
5e71afe246Updated deleteObject function in database.js to convert ID values to strings before logging deletions and notifications, ensuring consistent data handling across operations.Tom Butcher2026-07-25 01:36:20 +01:00
13ddcbce61Added mock implementations for getPropertyValues in various test files to enhance testing capabilities across multiple services, including management, finance, inventory, and production modules. This update ensures consistent behavior in tests by simulating property value retrieval.Tom Butcher2026-07-24 23:28:11 +01:00
287e74b682Added new route handlers and service functions to retrieve distinct property values for various entities, including invoices, payments, tax records, filament stocks, and more. Updated corresponding routes to support these new functionalities across multiple management and production modules, enhancing data querying capabilities.Tom Butcher2026-07-24 23:19:48 +01:00
3dd80b7790Updated expandObjectIds function in utils.js to exclude specific fields from expansion, ensuring proper handling of object IDs. Added console.log for debugging filter clauses in getFilter function.Tom Butcher2026-07-24 21:53:00 +01:00
11ff82a9afEnhanced various route handlers and services to support an additional master filter parameter for improved data querying capabilities. Updated related functions across multiple management and production routes, ensuring consistent handling of master filters in property-based queries.Tom Butcher2026-07-24 21:52:54 +01:00
a42f953e9aRemoved console.log statements across various files to clean up the code and improve performance. This includes logging related to audit logs, user notifications, database operations, and session management.Tom Butcher2026-07-23 21:44:32 +01:00
82ca27756dRefactored editObject function to flatten object ID references before updating the database, ensuring proper data structure. Added corresponding test case to verify the flattening functionality in update operations.Tom Butcher2026-07-20 02:28:13 +01:00
491900bdafRefactored user model mock in app password tests to utilize a lean query for improved consistency in test behavior. Updated related test cases to reflect this change, ensuring accurate user data retrieval during authentication tests.Tom Butcher2026-07-20 02:18:36 +01:00
cb16385b33Added printer and filament profile schemas, routes, and associated logic for managing profiles. Enhanced authentication for slicer uploads and integrated new routes for handling slicer-related operations. Updated database utilities and services to support new features, improving overall functionality and user experience.Tom Butcher2026-07-20 02:11:44 +01:00
e5981ce419Updated expandObjectIds function in utils.js to convert _id values to strings, ensuring consistent data formatting for object IDs.Tom Butcher2026-07-18 16:28:25 +01:00
e112ec4386Implemented job editing functionality by adding an editJobRouteHandler and associated logic to update draft jobs. Enhanced job schema with a recalculate method to manage subjob creation and updates based on job quantity and printer assignments. Updated tests to cover new editing capabilities and ensure proper state checks.Tom Butcher2026-07-18 15:19:11 +01:00
5419b3fbd1Added user settings schema to the database, defining user preferences and default settings. This new model includes fields for view mode, sidebar visibility, and timestamps for creation and updates, enhancing user customization capabilities.Tom Butcher2026-07-18 14:48:41 +01:00
9bba139998Removed paymentDate field from payment schema and updated related route handlers to reflect this change, streamlining payment data management.Tom Butcher2026-07-18 14:00:44 +01:00
e192c04000Enhanced courier service and listing schemas by adding cost-related fields and integrating courier services into listings. Updated route handlers and service logic to accommodate new fields, improving data management and retrieval capabilities.Tom Butcher2026-07-18 13:36:01 +01:00
561520be9aAdded 'operation' to allowed filters in audit log route for enhanced filtering capabilities.Tom Butcher2026-07-13 23:26:55 +01:00
bf3e23ddf1Implemented subscribe and unsubscribe audit log functions in utils.js and integrated them into user notifier route handlers for tracking subscription changes. This enhances audit capabilities and maintains user activity logs.Tom Butcher2026-07-13 03:12:48 +01:00
367891eb33Refactored population logic in invoice, payment, order item, and other route handlers to use constants for improved readability and maintainability. This change enhances consistency across the codebase and simplifies future updates to population fields.Tom Butcher2026-07-04 20:48:27 +01:00
0c7469b7c1Added searchObjects mock implementation across various test files to enhance testing capabilities for finance, inventory, management, and sales modules. This update ensures that search functionality can be effectively tested in unit tests.Tom Butcher2026-07-04 16:56:50 +01:00
50eacb3974Added text indexes to various schemas for improved search capabilities across finance, inventory, and management modules. Updated route handlers to include search functionality for invoices, payments, tax records, and inventory items, enhancing data retrieval efficiency.Tom Butcher2026-07-04 16:48:50 +01:00
710bfc6de6Added searchObjects function to database module for enhanced querying capabilities, allowing searches by reference, ID, or text. Improved error handling and result formatting in the search process.Tom Butcher2026-07-04 16:43:50 +01:00
e23ac3f6a3Updated artifact URL construction in appupdate.js to ensure proper formatting of relative paths, enhancing reliability in artifact retrieval.Tom Butcher2026-07-04 15:11:15 +01:00
759aa1017fRefactored login callback route handler to differentiate redirect behavior based on the redirect type, improving flexibility in response handling.Tom Butcher2026-06-22 03:02:01 +01:00
efb3fdbcb9Refactored filament recalculation logic to utilize filament SKUs instead of order items, improving efficiency. Updated allowed filters in the filament SKUs route to include 'costWithTax' and modified population logic in the service for better data retrieval.Tom Butcher2026-06-21 23:59:33 +01:00
74a9139002Removed 'fileName' field from part schema and corresponding route handlers to streamline data management and improve clarity in part creation and editing processes.Tom Butcher2026-06-21 23:15:35 +01:00
f74b85bb88Added authorisation and decline functionality for payments, including new route handlers and schema updates to track authorisation and decline timestamps. Updated payment cancellation logic to reflect changes in payment states.Tom Butcher2026-06-21 22:32:57 +01:00
2996b1670fRefactored tax record management by moving tax record schema and routes to the finance directory, enhancing organization. Implemented CRUD operations for tax records in the new service and added corresponding tests for route handlers.Tom Butcher2026-06-21 22:23:14 +01:00
a2bfd707e2Removed unused 'populateFields' variable from the invoice route handler to streamline the code and improve clarity.Tom Butcher2026-06-21 21:41:22 +01:00
e14c1405daUpdated invoice route handler to reference 'toType' and 'fromType' fields, ensuring consistency with the latest schema adjustments.Tom Butcher2026-06-21 21:30:09 +01:00
99ef989cc5Updated invoice route handler to include dynamic reference types for 'to' and 'from' fields, aligning with recent schema changes.Tom Butcher2026-06-21 21:29:43 +01:00
6e7419da67Updated invoice schema to support dynamic reference types for 'from' and 'to' fields, and modified related service handlers to accommodate new 'fromType' and 'toType' properties.Tom Butcher2026-06-21 19:08:20 +01:00
c507f708ebEnhanced app update service with Redis caching for branch retrieval and current build information, improving performance and reducing API calls.Tom Butcher2026-06-21 15:42:19 +01:00
afce36b30aAdded app update storage URL to config and modified artifact mapping to use the new storage path in app update service.Tom Butcher2026-06-21 04:04:50 +01:00
b4b87380d2Refactor Jenkinsfile to remove unnecessary script execution during dependency installation and add pnpm workspace configuration for specific package builds.Tom Butcher2026-06-15 00:13:47 +01:00
7a2de82586Update Jenkinsfile to allow script execution during dependency installationTom Butcher2026-06-14 23:55:14 +01:00
af0934b163Added product category support, including new routes, database schemas, and service updates. Enhanced existing product functionalities to incorporate product categories in filtering and population.Tom Butcher2026-06-14 23:51:51 +01:00
d3c662a9ecAdded stock location and stock transfer features, including new routes, database schemas, and service updates. Enhanced existing stock-related functionalities to support filtering and population of stock location data.Tom Butcher2026-03-21 23:14:07 +00:00
1b858d8814Added better listing and listing varient support.Tom Butcher2026-03-21 21:39:10 +00:00
b4837c8b8cAdded mock for deleteObject in filaments test suite to support new delete functionality tests.Tom Butcher2026-03-08 01:58:41 +00:00
0300e00c8fEnhanced delete functionality for filaments by adding a route handler that checks for dependencies before deletion. Updated the database service to support this check, ensuring objects in use cannot be deleted. Refactored related routes for consistency.Tom Butcher2026-03-08 01:53:07 +00:00
866c29f33fSet default state as 'draft' and introduced 'postedAt' field. Implemented postProductStock route handler to transition product stock from draft to posted state, including state validation checks. Updated related service functions for consistency.Tom Butcher2026-03-07 20:37:41 +00:00
420ab75467Added user existence check in userRouteHandler to return 401 status if user is not found, enhancing authentication flow.Tom Butcher2026-03-07 20:32:36 +00:00
5f5eedc798Enhanced user management in auth.js by ensuring user data is returned with expanded object IDs, updated user retrieval to use lean queries for performance, and added profile image support in user info response.Tom Butcher2026-03-07 19:22:32 +00:00
7c44f36590Implemented product stocks and minor improvements.Tom Butcher2026-03-07 13:38:05 +00:00