Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

SqlAlchemyDB: get_results_from_node() returns all nodes and not just based on a label #123

Closed
galwiner opened this issue Dec 14, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@galwiner
Copy link
Contributor

When SqlAlchemyDB.get_results_from_node('label") is used all results in the db are returned and not just those specified by the label.

Steps to reproduce:

Checkout complex-db branch
run test_fetch_2d_array test

@galwiner galwiner added the bug Something isn't working label Dec 14, 2021
@urig
Copy link
Collaborator

urig commented Jan 2, 2022

@galwiner I've reproduced the behavior in the test but I don't quite understand what the expected behavior is. Perhaps you, @qguyk and I can sync online for this?

@urig urig changed the title SqlAlchemyDB: get_results_from_node returns all nodes and not just based on a label SqlAlchemyDB: get_results_from_node() returns all nodes and not just based on a label Jan 3, 2022
@urig
Copy link
Collaborator

urig commented Jan 3, 2022

Following our online discussion today it's realized that this is a bug in get_nodes_id_by_label(). It returns a list of Node id properties but the unique identifier for Nodes actually the combination of its id and experiment_id together.

A quick fix would be to make get_results_from_node() return tuples of node id and experiment_id and re-integrate into any locations calling it.

A more thorough solution is proposed in discussion #145

@galwiner
Copy link
Contributor Author

Hey @urig, did you make progress on this?

@urig
Copy link
Collaborator

urig commented Mar 23, 2022

Hi Gal. No I haven't. Would love to go for the more thorough solution seeing as we're pre-1.0. Should I?

@urig urig mentioned this issue Apr 11, 2022
@urig
Copy link
Collaborator

urig commented Apr 14, 2022

Hi @galwiner. #203 resolves this issue and has been merged to main. Can we close it?

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants