epam / ai-dial-chat

A default UI for AI DIAL
https://chat.lab.epam.com
Apache License 2.0
57 stars 24 forks source link

[Publication][Admin area]: 'Back to publication request' button lead to incorrect unpublish request if there are more than one the same requests #1770

Closed YauheniyaH closed 4 weeks ago

YauheniyaH commented 2 months ago

EPAM AI DIAL chat version

0.15.0

How to reproduce

Steps:

  1. create 'unpublish request 1' and 'unpublish request 2' for the same folder from Organization
  2. admin click on 'unpublish request 1' and click 'Go to a review' link
  3. click 'Back to publication request button'

Actual result

redirect to 'unpublish request 2' happen

https://github.com/user-attachments/assets/73fed9a2-0d18-4c22-8b81-93f497a1c0a6

Note: also redirect happen to incorrect request if 2 or more unpublish requests have the same chats inside

Expected result

on click 'Back to publication request' redirect to the parent request should occur

Confidential information

IlyaBondar commented 1 month ago

Also fixed: image -> image and image -> image

VolhaBazhkova commented 4 weeks ago

Verified on staging successfully. Checked unpublication of several chats/chat folders/prompts/prompt folders Example: image