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

Fix read endpoint to return results for identifiers without ancestors. #87

Merged
merged 2 commits into from
May 31, 2022

Conversation

kburke
Copy link

@kburke kburke commented May 26, 2022

Fix read endpoint to return results for identifiers without ancestors.
#86

@kburke kburke requested review from yuanzhou and shirey May 26, 2022 20:33
@@ -860,6 +860,8 @@ def getIdInfo(self, app_id):
for item in results:
if item['submission_id'] == None:
item.pop('submission_id')
if item['ancestor_ids'] == None:
Copy link
Member

Choose a reason for hiding this comment

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

@kburke Not clear- how are items created- is it possible that 'ancestor_id' doesn't exist at all in the dict?- if so will that cause line 863 to fail. Also, is it possible for 'ancestor_d`` to be an empty array?-- In which case it won't match the == None` comparison.

@yuanzhou yuanzhou merged commit a0e966a into dev-integrate May 31, 2022
shirey pushed a commit that referenced this pull request Mar 9, 2023
Fix read endpoint to return results for identifiers without ancestors.
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.

3 participants