Perustaja / CentennialAircraftMaintenance

MVC application
0 stars 0 forks source link

Revamp entities to move onto the next section #29

Closed Perustaja closed 4 years ago

Perustaja commented 4 years ago

Game plan

Our main goal for the pages of WorkOrder and Discrepancy is to keep things disconnected and fast. Load the minimum that is required and have removal/addition handled by directly accessing the table, even if it is a join table, by a command handler or service. This limits the amount of simple unit testing via entity methods, however it should increase efficiency of queries by quite a bit. Includes will be used for WorkOrder but the writes will still be done by directly accessing the table, not by navigation properties. The WorkOrder page will not be done by partials with view components or anything, and won't use ajax calls for deletion and editing, it just won't be necessary. Discrepancy however, will use ajax and have partials and viewcomponents so that the page is responsive and has minimal reloads, it will count here. The template pages will be similar as well, and creating a template will be very similar to creation an actual one.

As for infrastructure, this means more repositories, services(potentially, we could simply add these join table manipulations to their parent services) and controllers. However, it allows for more ajax calls and partial loading for a better and faster user experience.

WorkOrderTemplate

Final

Perustaja commented 4 years ago

Done