epam / epam/Indigo

Reactions are saved with the incorrect quantity of reactants if the continuation of several tails is matched to one reactant

Open
#2,426 0 comments 0 reactions 0 assignees 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. Add Multi-Tailed Arrow to Canvas
2. Add middle tail and reduce size of spine
3. Add one chemical element to the left of the arrow and one to the right:
![image](https://github.com/user-attachments/assets/a1bc9cf1-00d4-4e5e-9f3e-bcc060038260)
4. Click on save to RDF and observe the preview

**Actual behavior**
- Reaction 3:1 is displayed on preview:
![image](https://github.com/user-attachments/assets/0668c05d-58ec-4952-bd68-9efebaf49208)
- After loading of saved file 3:1 reaction is added to Canvas:
![image](https://github.com/user-attachments/assets/45df2bf7-2f0d-4e43-b134-fdf966d01466)

**Expected behavior**
- Reaction 1:1 is displayed on preview, after loading of saved file 1:1 reaction is added to Canvas with single arrow

**Environment details**
- Tested on CI-CD 2237-detect-pathway SA environment
- Ketcher [Version 2.25.0-rc.2] Build at 2024-09-24; 02:30:35
- Indigo Version 1.25.0-dev.1.58-ga966745f-wasm32-wasm-clang-12.0.0
- Windows 11 Enterprise
- Chrome Version 129.0.6668.59 (Official Build) (64-bit)

**Notes**
- Test is added to xls and have to be automated after fixing
- Issue is detected during exploratory testing of Import/Export of Multi-Tailed Arrow in cascade reactions - https://github.com/epam/Indigo/issues/2237

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the multi-tailed-arrow case in Ketcher using the listed steps, then trace the RDF save and load path for the reactant quantity. Review the existing XLS test mentioned in the notes and automate it after the behavior is fixed. Done means the preview and reloaded canvas both show a 1:1 reaction with a single arrow.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, wasm
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.