epam / epam/Indigo

Reaction Auto-Mapping Tool doesn't work for single and cascade reactions with Multi-Tailed Arrow

Open
#2,556 0 comments 0 reactions 1 assignee Claimed by @even1024 View on GitHub
Cascade reactions MMPK Priority: High
Dominant language
C++
Stars
406
Forks
134
Avg merge
2d 11h
Merged PRs (30d)
24

Description

**Steps to Reproduce 1 - Single Reaction**
1. Add single reaction 2x1 to Canvas from KET:
[ket-2x1.zip](https://github.com/user-attachments/files/17380830/ket-2x1.zip)
![image](https://github.com/user-attachments/assets/8fa9dda8-378c-431d-afc1-cf61be46b86b)
2. Click on the Reaction Mapping Tool and use Auto-Mapping Tool

**Actual behavior**
- Auto-Mapping Tool is disabled
![image](https://github.com/user-attachments/assets/e1d9c679-b1bd-4434-8870-b307da0352bc)

**Expected behavior**
- It has to be enabled and work with Multi-Tailed arrow as in case when reaction with plus on Canvas:
![image](https://github.com/user-attachments/assets/ccca259e-3448-4f69-a391-f3e406a59f81)

**Steps to Reproduce 2 - Cascade Reaction** - additional issue can be created if it's not possible to fix them together
1. Add cascade reaction 2-1-1 to Canvas from KET:
[ket-2-1-1 (1).zip](https://github.com/user-attachments/files/17380975/ket-2-1-1.1.zip)
![image](https://github.com/user-attachments/assets/3b7e8c1a-0aeb-4ae8-b876-a1e7702b033a)
2. Click on the Reaction Mapping Tool and use Auto-Mapping Tool
3. Select any option (Discard, Keep, Alter)

**Actual behavior**
- Error "array: invalid index 1 (size=0)" appears:
![image](https://github.com/user-attachments/assets/ae651c41-d493-49bd-8445-6069ed545b12)

**Expected behavior**
- Error doesn't appear, it should work as for several single reactions: 2:1 and 1:1

**Environment details:**
- RC SA env
- [Version 2.26.0-rc.2] Build at 2024-10-14; 19:59:03
- Indigo Version 1.25.0-rc.2.0-g867ae250b-wasm32-wasm-clang-19.0.0
- Desktop, Windows 11 Enterprise
- Chrome Version 129.0.6668.101 (Official Build) (64-bit)

**Additional context**
- **This test case is added to xls and have to be automated**
- Issue is detected during retesting of https://github.com/epam/Indigo/issues/2422, it's related to this task - https://github.com/epam/Indigo/issues/2236

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.