keeleinstituut / tv-tolkevarav

Tõlkevärav (Translation Hub)
1 stars 0 forks source link

Can't remove department from user profile (BE) #702

Open plakitkelly opened 5 months ago

plakitkelly commented 5 months ago
  1. Open user detail view
  2. Add department if not added and save
  3. Choose empty option in department dropdown menu
  4. Save

Actual result: After refresh or reopen the page the department is still there

Saving department: image

Saving empty option: image

It still getting department from BE: image

Saving empty option doesn't delete department from db

MariusJulius commented 1 month ago

Overwriting works.

kadmit commented 1 week ago

@KaarelKa for removing department FE should pass department_id as an empty string.

plakitkelly commented 1 day ago

@KaarelKa needs FE fix. https://drive.google.com/file/d/1TtAxaMFDcoabmVKNZRdfo3VvyAjLHKPT/view?usp=drive_link

  1. Change department to empty option
  2. User gets successful notification but previous department is still selected in dropdown menu
  3. Refresh the page
  4. Department is cleared

Expected: Department should be removed from dropdown menu after getting the successful notification