-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Description
Bug Description
Relation resolving in DBCode depends on the currently selected field, not on the field where the relation icon was clicked.
Repro steps
- Open a table/query result where multiple fields have relations (for example, foreign keys).
- Do not select any field and click the relation icon near a field.
- Observe that relation resolve does not work.
- Select Field B.
- Click the relation icon near Field A.
- Observe that relation resolve is performed for Field B (selected field), not Field A (clicked icon field).
Expected Behavior
Clicking the relation icon should always resolve relation for the field where the icon was clicked, regardless of current selection state.
It should also work even when no field is selected.
Actual Behavior
Relation resolve works only for the currently selected field.
If no field is selected, relation resolve does not work.
If another field is selected, clicking relation icon on a different field still resolves relation for the selected field.
Environment
- DBCode version: 1.28.16
- VS Code (or fork) version: 1.111.0
- OS: Linux x64 6.18.13-zen1
- Database: pg
- Connection: SSH
Error Meesages (if applicable)
No explicit error message shown in UI.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels