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 #2091 #2095

Merged
merged 1 commit into from
Mar 29, 2017
Merged

fix #2091 #2095

merged 1 commit into from
Mar 29, 2017

Conversation

antgonza
Copy link
Member

@wasade, @josenavas, could you review?

if (a.visibility == 'public' or a.study.has_access(user)):
return True
else:
for c in a.descendants.nodes():
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand how this fits in...?

Copy link
Member Author

Choose a reason for hiding this comment

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

This was there before and decided to leave it. Basically, it protects for the case that an artifact is not public but one of its children is. As you know, this could happen right now and we have an issue to solve it and it doesn't hurt. BTW and AFAIK this is still possible in the test db so it's being tested.

The travis failure is the stochastic error we see ...

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, it's not shown here ... but it does exist in the original code: https://github.com/biocore/qiita/blob/master/qiita_db/meta_util.py#L131, perhaps github doing some magic?

@wasade
Copy link
Contributor

wasade commented Mar 29, 2017

👍 short of the question, and the present travis failures

@wasade
Copy link
Contributor

wasade commented Mar 29, 2017 via email

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 31dae8d on antgonza:fix-2091 into ** on biocore:master**.

@josenavas josenavas merged commit 64e7225 into qiita-spots:master Mar 29, 2017
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.

None yet

4 participants