Dependencies
We call dependencies the relationships between data that affect each other. A simple example: Routes depend on Lines, so deleting a Line will result in the deletion of the Routes it contains, as a Route is a dependency of the Line that contains it.
The myBus Manage system alerts the user if, as a result of an action taken by the user within the system, any dependency will be deleted, changed, or if it will not be possible to delete a piece of data because its dependencies must be deleted first.
Dependency Relationship by Section
| Item | Requirements to delete | Impact when deleted | Impact when unlinked from an Agency |
|---|---|---|---|
| Lines | Delete the Routes with associated Calendars. Disconnect Playlists. | No impact | Equivalent to deleting it only for that Agency. Requirements for deleting Line apply. |
| Routes | If it has Assigned Trips, they must be deleted. Disconnect Playlists. | Affects other items It is removed from the Line it belonged to. |
No impact They do not have an assigned Agency. |
| Stops | Remove it from all Routes that include it in their path. Disconnect Playlists. | Affects other items The stop audio is removed. |
Equivalent to deleting it only for that Agency. Requirements for deleting Stop apply. |
| Calendars | They must not have associated Trips, Shifts (assigned or unassigned), or Playlists. | No impact | Equivalent to deleting it only for that Agency. Requirements for deleting Calendar apply. |
| Trips | No requirements | Affects other items When a trip is deleted, it disappears from the shift it belongs to. |
No impact They do not have an assigned Agency. |
| Shifts | Delete the date (future). | No impact | No impact They do not have an assigned Agency. |
| Drivers | Unassign dated Shifts (Assigned Shifts) or remove the dates from those dated Shifts. | No impact | No impact They can only have one assigned Agency. |
| Vehicles | Unassign dated Shifts (Assigned Shifts) or remove the dates from those dated Shifts. Unassign Playlists. Unlink from Chats. | No impact | No impact They can only have one assigned Agency. |
| Playlists | No requirements | Affects other items If the Playlist has Media from other Agencies, those Media items will no longer be visible to users who do not belong to that Agency. |
No impact |
| Media | Unassign it from the Playlists that use it. | No impact | No impact |
| Users | No requirements | Affects other items Media created by that user will be deleted from the system (except if it belongs to a Playlist). |
No impact |