Skip to content

Optionale EMD-Synchronisation - #111

Merged
itshypax merged 5 commits into
mainfrom
emd-sync
Oct 9, 2025
Merged

Optionale EMD-Synchronisation#111
itshypax merged 5 commits into
mainfrom
emd-sync

Conversation

@itshypax

@itshypax itshypax commented Oct 9, 2025

Copy link
Copy Markdown
Collaborator

Config dazu im intraTab

Adds an API endpoint to synchronize EMD (Emergency Dispatch Monitor) data from IntraRP.

This endpoint receives vehicle data, validates it, and imports it into the `intra_edivi` table. It handles scenarios such as duplicate entries, dispatch assignment, and logging.

Also removes the old EMD viewer, as it is replaced by the new synchronization logic.
Updates the EMD sync process to ensure unique ENRs are generated for each vehicle entry in the intra_edivi table. It now checks for existing ENRs with the same base dispatch ID and appends an incrementing suffix to create a unique identifier, preventing data conflicts and ensuring accurate record-keeping. Also, modifies the vehicle identifier to use identifier instead of name if the vehicle is not a 'Notarzt'.
Implements a feature to allow users to mark protocols as deleted, rather than permanently removing them from the database.

This change introduces a `hidden_user` flag to the `intra_edivi` table, indicating if a protocol has been marked as deleted by a user. The list view now displays a "G" badge for protocols marked as deleted. A notification is also shown if a protocol has been deleted.

It provides a button to delete all non released protocols.

Includes database migration to add the `hidden_user` column.
Implements a new "hidden" status for E-Notf protocols, allowing administrators to hide entries without deleting them.

This change:
- Updates the database query to exclude hidden protocols from the default view.
- Introduces a new status code (4) for "hidden" protocols.
- Adds a visual representation for the "hidden" status in the list view.
- Modifies the delete functionality to set the hidden status instead of deleting the entry.
@itshypax itshypax linked an issue Oct 9, 2025 that may be closed by this pull request
@itshypax
itshypax merged commit 55acdfa into main Oct 9, 2025
1 check passed
@itshypax
itshypax deleted the emd-sync branch October 9, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optionale Synchronisation mit EmergencyDispatch

1 participant