fcatae/Arda

[Kanban] AppointmentRepository.EditAppointment does not update User or Workload

Closed this issue · 2 comments

EditWorkload updates the comment, date and hours logged. However, it can't change the user or the workload either.

                // Update informations of object
                appointmentToBeUpdated.AppointmentComment = appointment._AppointmentComment;
                appointmentToBeUpdated.AppointmentDate = appointment._AppointmentDate;
                appointmentToBeUpdated.AppointmentHoursDispensed = appointment._AppointmentHoursDispensed;
                appointmentToBeUpdated.AppointmentTE = appointment._AppointmentTE;
                //appointmentToBeUpdated.AppointmentUser = user;
                //appointmentToBeUpdated.AppointmentWorkload = workload;
                //appointmentToBeUpdated.AppointmentWorkloadWBID = appointment._AppointmentWorkloadWBID;

We should improve this API to make it clear.

This bug impacts Appointment (not Workload). It is not so important at this time.

Closing as by design