Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fixes #23

Merged
merged 3 commits into from
Apr 27, 2018
Merged

Bug fixes #23

merged 3 commits into from
Apr 27, 2018

Conversation

vishakha041
Copy link
Contributor

Luis, try this out with the TCIA queries. I don't have that graph to test if some of the issues you were seeing have now been fixed.

@vishakha041 vishakha041 requested a review from luisremis April 26, 2018 17:57
Copy link
Contributor

@luisremis luisremis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix is good.
Class requirement should not be removed.

@@ -213,8 +213,6 @@
"results": { "type": "object" },
"unique": { "type": "boolean" }
},

"required": ["class"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we removing the "class" requirement?
This requirement is specified by the API docs.

If we don't require, we need to make sure we are handling blobs/images/descriptors/videos well as well, when, say, the results block has the "return_blob" flag.

We should probably think more about this before removing the requirement, as it introduces a lot of undefined behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure how those are correlated. class is what we have for the tag in PMGD. It should not affect for blobs. You could give a class for an entity that has no blob and still ask for return blob. For images, descriptors etc, it is counter intuitive to expect class since those are implicit anyway. What am i missing here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, If we do findEntity with no class, we need to filter out those entities that are images/descriptors/videos?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? Aren't they regular nodes with properties in the graph? It does affect dealing with blob some cause technically you have blobs associated with them and if someone asked for a blob, I am not sure the corresponding property names would match.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and if that is the case, we need to fix findEntity to do that.

I would leave it required until we have the necessary mechanism to deal with it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am fine doing it. It is an unnecessary limitation. Besides, blob is the one not checked in yet and so it is possible to handle it. This is already in our repo. But it is a useful capability to be able to search across all nodes without class barrier.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this leaves us a more complicated way of enumerating all entities. Another reason to remove the restriction. And an unrelated note: we should probably have some way of returning the class of an entity

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. You convinced me. Makes sense.

I will update the wiki page and remove the requirement.

@@ -190,7 +190,7 @@
"Age": [">", 0, "<=", 100 ]
},
"results": {
"list":["Name","Age","Email"],
"list":["Name","Age","Email", "Study"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding this is not checking whether the response is correct.
We should add a tests that checks whether we are getting the right response.

I think we should move this tests to python, instead of using this file and C++ (not for this, but for another different pull request for later)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I did my usual thing of visual inspection 😀

luisremis
luisremis previously approved these changes Apr 26, 2018
Copy link
Contributor

@luisremis luisremis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go!

@vishakha041 vishakha041 merged commit bb5a437 into develop Apr 27, 2018
@luisremis luisremis deleted the bug-fixes branch April 27, 2018 00:37
@luisremis luisremis restored the bug-fixes branch April 27, 2018 00:37
@luisremis luisremis deleted the bug-fixes branch August 13, 2018 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants