Commit Graph

230 Commits

Author SHA1 Message Date
Torsten Schulz (local)
41c0e5a6f2 code fixes
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m52s
2026-06-06 13:26:45 +02:00
Torsten Schulz (local)
35377e3b59 Wahlproblem gefixt
Some checks failed
Deploy yourpart (blue-green) / deploy (push) Failing after 1m22s
2026-06-06 12:35:27 +02:00
bad5b86951 Merge pull request 'Update Rust crate rand to 0.9' (#2) from renovate/rand-0.x into main
Some checks failed
Deploy yourpart (blue-green) / deploy (push) Failing after 1m25s
Reviewed-on: #2
2026-06-06 12:23:53 +02:00
Torsten Schulz (local)
e5e17c2c5e Updated politics worker
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 2m2s
2026-06-05 20:28:06 +02:00
Torsten Schulz (local)
facd11b14f Füge zusätzliche Informationen zu Lagerzerstörungen hinzu: Erweitere die Funktionen zur Verarbeitung von persönlichen und regionalen Lager-Schäden, um die ID und den Titel des Ereignisses als Schadensursache zu übergeben und in den Rückgaben zu integrieren.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m56s
2026-05-27 18:23:02 +02:00
Torsten Schulz (local)
f09033a99d Füge neue SQL-Abfragen für die Abfrage von Lagerbeständen nach Typ hinzu: Implementiere QUERY_GET_REGION_STOCKS_BY_TYPE und QUERY_GET_USER_STOCKS_BY_TYPE, um die Abfrage von Lagerbeständen zu optimieren. Aktualisiere die Logik in events.rs, um die neuen Abfragen zu verwenden und erweitere die Struktur StorageDamageInfo, um zusätzliche Informationen zu zerstörten Einheiten und betroffenen Regionen zu speichern. Ergänze die Dokumentation in AGENTS.md mit Projektleitlinien und Entwicklungsbefehlen.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m48s
2026-05-27 17:51:39 +02:00
Torsten Schulz (local)
86d79c90a5 Füge Logik zur Durchsetzung der Wahlvorlaufzeit hinzu: Implementiere die Funktion enforce_election_lead_time, um sicherzustellen, dass Wahlen erst nach Ablauf von 2 Tagen seit ihrer Erstellung ausgewertet werden. Aktualisiere SQL-Abfragen zur Berücksichtigung des Vorlaufs bei der Planung neuer Wahlen.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m41s
2026-05-26 10:04:37 +02:00
Torsten Schulz (local)
88eda493ff Verbessere Logik zur Berechnung von Reputation und Ehezufriedenheit: Aktualisiere die Kategorien und täglichen Deltas für Reputation und Ehezufriedenheit basierend auf Standsgruppen, um die Auswirkungen von Liebschaften präziser darzustellen. Füge Dokumentation zu Standsgruppen und deren Effekten hinzu.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m31s
2026-05-21 11:01:41 +02:00
Torsten Schulz (local)
342eb512b4 Füge Logik zur Berechnung von Reputation und Ehezufriedenheit basierend auf Liebschaften hinzu: Implementiere Funktionen zur Bewertung der Standsgruppe und zur Berechnung täglicher Deltas für Reputation und Ehezufriedenheit, um die Auswirkungen von Liebschaften auf die Beziehungen zu berücksichtigen.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m30s
2026-05-21 10:54:28 +02:00
Torsten Schulz (local)
773665635d Behebe unnötige Zählvariablen und verbessere die Lesbarkeit in mehreren Modulen: Entferne die Zählvariable für Transporte in DirectorWorker, optimiere die Filterung in FalukantFamilyWorker und passe die Bedingungen in FalukantServants und Underground an, um die Lesbarkeit zu erhöhen.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m34s
2026-05-21 09:42:12 +02:00
Torsten Schulz (local)
173776fb52 Behebe Warnung über ungenutzte logische Operation in DirectorWorker: Ändere die Bedingung für den Transportstart, um das Ergebnis der Funktion zu ignorieren und die Lesbarkeit zu verbessern.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m28s
2026-05-21 09:40:17 +02:00
Torsten Schulz (local)
43cb58294c Verbessere Fehlerbehandlung in Transport- und Produktionslogik: Optimiere die Bedingungen für den Transportstart und die Verarbeitung abgeschlossener Produktionen, um die Lesbarkeit zu erhöhen und Fehler effizienter zu handhaben.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m24s
2026-05-21 09:38:02 +02:00
Torsten Schulz (local)
87f6e7315d Aktualisiere Logik zur Schwangerschaftsplanung: Ändere die Intervalle für die Schwangerschaftsplanung in den SQL-Abfragen auf 18 Stunden und entferne nicht benötigte Abfragen zur Geburt. Dies verbessert die Einhaltung der Regel, dass eine Mutter pro Kalendertag nur ein Kind gebären kann.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m44s
2026-05-21 09:31:02 +02:00
Torsten Schulz (local)
cb22b111a3 Enhance birth delivery queries to prevent multiple births per mother per day: Updated SQL queries for marriage and planned character birth deliveries to include checks that prevent a mother from having more than one child born on the same calendar day. This change ensures compliance with the business rule of one child per mother per day, regardless of the father.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m46s
2026-05-13 22:06:09 +02:00
Torsten Schulz (local)
208f16e30b Refactor satisfaction update logic in DirectorWorker: Simplified the SQL query for updating director satisfaction by introducing a common table expression (CTE) for updated satisfaction values. This change enhances readability and maintains the integrity of satisfaction updates while ensuring accurate data retrieval from both new and adjusted income calculations.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 2m23s
2026-05-09 09:19:17 +02:00
Torsten Schulz (local)
2d62ba4b51 Enhance income update logic in DirectorWorker: Introduced a nested SQL query to calculate desired income based on title of nobility and knowledge averages. Updated the income setting logic to utilize this calculated desired income, ensuring more accurate adjustments for directors with auto-adjust settings enabled.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m30s
2026-05-08 11:28:56 +02:00
Torsten Schulz (local)
dd8d8be79b Refactor WebSocket server access control logic for worker schedules: Updated the handling of user permissions in handle_connection to utilize tokio::task::spawn_blocking, improving error handling and debugging information in the WorkerScheduleAccessDebug struct. This change enhances the robustness of access checks and provides clearer feedback when access is denied.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m40s
2026-05-08 11:15:53 +02:00
Torsten Schulz (local)
d27230a0b5 Enhance worker schedule access control with detailed debugging information: Updated the user_can_read_worker_schedules function to return a WorkerScheduleAccessDebug struct, providing detailed error messages and access information. Improved WebSocket server responses to include debug data when access is denied, facilitating better troubleshooting and monitoring of user permissions.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m38s
2026-05-08 10:45:32 +02:00
Torsten Schulz (local)
f7eb53ae90 Add user right for main admin and enhance worker schedule access control: Introduced a new user right mainadmin to improve access management. Updated the logic in user_can_read_worker_schedules to include checks for this new right, enhancing the SQL queries for user permissions and ensuring robust access control for worker schedules.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m32s
2026-05-08 10:31:22 +02:00
Torsten Schulz (local)
42f71d831f Implement worker schedule access control and runtime tracking: Added a new user right worker_schedule_read to manage access to the getWorkerSchedules WebSocket endpoint. Enhanced the WebSocket server to handle requests for worker schedules, including detailed responses. Introduced runtime tracking for workers, allowing for monitoring of their current state and activity. Updated relevant SQL and Rust structures to support these features.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m36s
2026-05-08 09:04:21 +02:00
Torsten Schulz (local)
b7d7705bbe Enhance satisfaction update logic in DirectorWorker: Introduced an adjusted income calculation to update director incomes based on their wished income and auto-adjust settings. Modified the SQL query for satisfaction updates to include this new logic, ensuring accurate satisfaction calculations while maintaining existing functionality for directors not utilizing auto-adjust income.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m36s
2026-05-07 13:32:42 +02:00
Torsten Schulz (local)
48a374e3ac Add satisfaction check to DirectorWorker: Introduced a new field for tracking the last satisfaction check and updated the calculation logic to ensure it runs only once every 24 hours. Enhanced SQL query for updating satisfaction to include a salary gap calculation, improving the accuracy of satisfaction updates based on income and title of nobility.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m30s
2026-05-07 11:30:27 +02:00
Torsten Schulz (local)
d0ff6cad68 Add branch and region details to DirectorWorker: Enhanced resignation candidate structure by including branch_id, region_id, and region_label. Updated resignation risk and resignation payloads to incorporate these new fields. Modified SQL query to retrieve branch and region information, ensuring accurate data handling for director resignations.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m49s
2026-05-07 11:25:48 +02:00
Torsten Schulz (local)
9022b58dc7 Refactor revenue and tax handling in DirectorWorker: Updated logic to separately account for gross revenue and tax deductions during product sales. Enhanced monetary transactions to ensure accurate tax income distribution, particularly when the seller differs from the treasury user, improving financial tracking and compliance.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 2m8s
2026-05-06 11:09:42 +02:00
Torsten Schulz (local)
8509a7e171 Update monetary limits for numeric precision in BaseWorker and UserCharacterWorker: Changed maximum absolute values from numeric(10,2) to numeric(14,2) to accommodate larger monetary amounts. Adjusted related comments and clamping logic to reflect the new limits, ensuring accurate handling of monetary values.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 2m19s
2026-05-06 11:04:45 +02:00
Torsten Schulz (local)
43eb6ed0ab Refactor event effect handling in EventsWorker: Improved logic for handling empty effect results to prevent unnecessary database writes. Enhanced error handling for retrieving current money, ensuring robust behavior when user data is unavailable. Simplified the response for insufficient funds scenarios in the "theft" event, returning None instead of a detailed JSON response.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m52s
2026-04-24 10:00:45 +02:00
Torsten Schulz (local)
05f713c5e1 Refactor Falukant certificate processing logic: Introduced a new SQL query to check for the existence of the completion_count column in the production log, allowing for conditional selection of certificate input rows. Added a legacy query for environments lacking this column, enhancing compatibility and robustness in certificate processing.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m34s
2026-04-21 15:34:58 +02:00
Torsten Schulz (local)
397b612bf1 Implement election candidate table readiness check in character deletion process: Added a new SQL query to verify the existence of the election candidate table before attempting to delete associated records. Updated the deletion logic in both EventsWorker and UserCharacterWorker to conditionally execute the deletion of election candidates based on the table's readiness, improving robustness and preventing errors in environments where the table may not exist.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m39s
2026-04-21 11:48:53 +02:00
Torsten Schulz (local)
a38beadb8e Enhance character deletion process in EventsWorker and UserCharacterWorker: Added SQL queries to delete associated data such as knowledge, debtors prism, political offices, and election candidates upon character deletion. Implemented event publishing for character death and status updates after inheritance changes, improving event handling and UI responsiveness.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m41s
2026-04-20 15:35:08 +02:00
Torsten Schulz (local)
0892e2db8b Implement political office history logging: Added SQL logic to archive political office records upon expiration and deletion, ensuring historical tracking of office terms. Updated relevant queries to insert records into falukant_log.political_office_history for better compliance with data retention policies.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m33s
2026-04-17 17:30:40 +02:00
Torsten Schulz (local)
75a1e5b306 Update production log SQL queries to include completion count: Modified the QUERY_INSERT_UPDATE_PRODUCTION_LOG to add a new completion_count field, ensuring accurate tracking of completed productions. Updated related documentation to reflect changes in production counting logic and SQL migrations.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m51s
2026-04-17 16:59:22 +02:00
Torsten Schulz (local)
48d8e9b293 Enhance event effect handling in EventsWorker: Added logic to store detailed notes for price and production quality changes in notifications. Updated notification JSON structure to include these notes, improving the clarity of event effects communicated to users. Additionally, refined money change logic for the "theft" event to handle insufficient funds scenarios more effectively.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m35s
2026-04-14 11:39:03 +02:00
Torsten Schulz (local)
b0ee0da722 Add logic to prevent multiple births for mothers in a single day: Implemented a new SQL query to check if a mother has already given birth today. Updated the FalukantFamilyWorker and UserCharacterWorker to utilize this check, enhancing the birth registration process and ensuring compliance with the new birth rule.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m35s
2026-04-14 07:50:56 +02:00
Torsten Schulz (local)
6e931c1069 Implement director resignation processing in DirectorWorker: Added logic to check for director resignations based on satisfaction levels, including new SQL queries for retrieving candidates and deleting directors. Enhanced notification system to alert users of high resignation risks, improving overall management of director statuses.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m32s
2026-04-13 15:55:34 +02:00
Torsten Schulz (local)
3af0ab1156 Refactor best production SQL query: Simplified and optimized the QUERY_GET_BEST_PRODUCTION by restructuring the query to use a WITH clause for better readability and performance. This change enhances the accuracy of production candidate selection by incorporating additional metrics and calculations.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m33s
2026-04-13 15:45:05 +02:00
Torsten Schulz (local)
00ce7fc655 Refactor SQL query for candidate selection: Updated the SQL query to include a new FROM candidates clause, ensuring accurate retrieval of the top production candidates based on worth calculations. This change enhances the clarity and functionality of the production selection process.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m54s
2026-04-13 15:34:28 +02:00
Torsten Schulz (local)
cd21293fbd Enhance DirectorWorker logic for tax calculations: Updated the DirectorWorker to compute the cumulative tax percentage for net ranking and adjusted SQL queries to include this new parameter in production selection. Improved logging to capture additional metrics related to tax and net piece calculations, enhancing the traceability of production decisions.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m34s
2026-04-13 15:29:11 +02:00
Torsten Schulz (local)
2eaea2481c Refactor SQL queries for type consistency: Updated various SQL queries to ensure consistent data types by casting results to text. This change enhances compatibility and improves the handling of JSON data in the application.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m37s
2026-04-13 15:20:47 +02:00
Torsten Schulz (local)
3df83b507e Add debug functionality for best production selection: Introduced a new SQL query QUERY_GET_BEST_PRODUCTION_DEBUG to retrieve the top 5 production candidates with detailed metrics. Enhanced the DirectorWorker to log debug information during production selection, improving traceability of decision-making processes.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m35s
2026-04-13 15:13:27 +02:00
Torsten Schulz (local)
df092d1790 Add notify module and update notification SQL query: Introduced a new notify module for handling notifications. Updated the SQL query in insert_notification_conn to use QUERY_INSERT_NOTIFICATION instead of QUERY_INSERT_NOTIFICATION_FULL, simplifying the notification insertion process.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m45s
2026-04-13 15:07:39 +02:00
Torsten Schulz (local)
670ea093d0 Update YpDaemon version to 0.5.0 and change edition to 2024 in Cargo.toml and Cargo.lock for improved compatibility and feature enhancements.
Some checks failed
Deploy yourpart (blue-green) / deploy (push) Failing after 1m17s
2026-04-13 15:05:01 +02:00
Torsten Schulz (local)
8593824a73 Enhance sell log SQL query: Updated the QUERY_ADD_SELL_LOG to include a sell_timestamp field in the conflict resolution clause, ensuring accurate tracking of sell events. This change improves the logging mechanism for sales data in the database.
Some checks failed
Deploy yourpart (blue-green) / deploy (push) Failing after 2s
2026-04-13 15:02:52 +02:00
Torsten Schulz (local)
7ca43da52d Refactor product start calculation and SQL query: Updated the documentation for the best product start logic to clarify the ranking criteria and cost calculations. Adjusted the SQL query to enhance the worth calculation by incorporating new logic for category-based costs and headroom discounts, ensuring consistency with the updated pricing strategy.
Some checks failed
Deploy yourpart (blue-green) / deploy (push) Failing after 2s
2026-04-13 14:53:08 +02:00
Torsten Schulz (local)
2cca0da750 Update version and edition in Cargo.toml; enhance breakup risk management in FalukantFamilyWorker: Added logic to automatically deactivate low-affection relationships and notify users of high breakup risks. Updated SQL queries to support these changes.
Some checks failed
Deploy yourpart (blue-green) / deploy (push) Failing after 3s
2026-04-13 12:21:35 +02:00
Torsten Schulz (local)
10f71ece0e Update deployment script path in workflow: Changed the script executed by the deploy-daemon workflow from deploy-yourpart-bluegreen.sh to actualize-daemon.sh for improved deployment management.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m36s
2026-04-10 08:50:15 +02:00
Torsten Schulz (local)
7043e8d90c Update production certificate logic for more frequent recalculations: Changed the certificate recalculation interval to approximately once per minute, updated related documentation, and adjusted the FalukantFamilyWorker to reflect these changes. Enhanced the UI WebSocket documentation to clarify the conditions under which production certificates are refreshed.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 2m56s
2026-04-10 08:43:19 +02:00
Torsten Schulz (local)
1111377913 Enhance money change event handling: Added a new loss field to the JSON response in the EventsWorker to display the loss amount as a positive value, improving clarity for UI text. Updated the calculation logic to ensure accurate representation of financial changes.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 2m58s
2026-04-10 08:39:45 +02:00
Torsten Schulz (local)
ebf20c4424 Refactor production cost calculations and SQL query: Updated the QUERY_GET_BEST_PRODUCTION to implement a legacy formula for ranking based on effective market percentage and knowledge levels. Adjusted the calculation logic for costs and clarified documentation to ensure consistency with the new pricing strategy. Enhanced SQL query structure for improved clarity and performance in production worth assessment.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 2m41s
2026-04-09 09:36:44 +02:00
Torsten Schulz (local)
bb1c1c4133 Refactor production cost calculations and SQL query: Updated the QUERY_GET_BEST_PRODUCTION to align profit calculations with the new logic for selling prices based on knowledge levels. Enhanced documentation to clarify the ranking criteria and the relationship between production costs and pricing strategies. Adjusted related functions in director.rs to ensure consistency across the application.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 2m54s
2026-04-09 09:08:53 +02:00
Torsten Schulz (local)
dda559cbe7 Refactor SQL query for best production calculation: Updated the QUERY_GET_BEST_PRODUCTION to enhance the worth calculation by incorporating vehicle presence checks and adjusting the logic for market pricing based on regional data. Improved documentation to clarify the new formula for profit per minute and its implications for product evaluation across different regions.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 2m46s
2026-04-09 08:57:27 +02:00