ita-social-projects / EPlast

EPlast is a project to provide web-based multi-user system solutions for digitizing and automate the Plast organization. The system makes it easy to access Plast's internal data, such as events, reports, and documents, etc. Information and location of their affiliates and clubs throughout Ukraine.
MIT License
27 stars 11 forks source link

[Events] Duplicates of new categories when adding new event and creating new category #2913

Closed ystrotska closed 1 year ago

ystrotska commented 2 years ago

Environment: Windows 10 Pro, Google Chrome version 103.0.5060.114 (development)(64-bit). Reproducible: always. Build found: e3b1dcd Priority: medium Severity: low

Preconditions Sign in as a super admin or any user authorized to create events (https://eplast.westeurope.cloudapp.azure.com/signin)

Steps to reproduce

  1. Go to the 'Події' tab in the user's profile
  2. Click on 'Створити нову подію' option
  3. Scroll down to 'Тип події' and choose any of the types.
  4. Go to the "Категорія" and click on the "Додати нову категорію" option
  5. In the popup window put the new category name in the "Назва категорії" and choose "Секція"
  6. Click the "Додати" button more than 1 time. (for example 3 times)
  7. Check the added new category in the "Категорія" section
  8. Go to the left-side menu, "Події", and see the created category in the indicated "Тип події"

Actual result

  1. A newly created category duplicates appear when adding a new event and creating a new category. The quantity of duplicates depends on the number of clicks made while confirming creating the new category.

new event categories duplicates

events categories duplicates

  1. The newly created category appears or in all of the "Акція", "Вишкіл", "Табір" types, or in any of them.
  2. The super admin has no option to delete the category if needed.

can not delete the category

Expected result

  1. No category duplicates should appear when creating a new category.
  2. The newly created category should appear in the chosen type of events.
  3. The super admin should have the option to delete the category.

Postconditions Please delete all the categories in the "Акція", "Вишкіл", and "Табір" types, created for testing of prod.