Skip to content

Conversation

@josenavas
Copy link
Contributor

I found a potential stochastic failure in the metadata template tests. It is solved by enforcing some sorting on the way the columns are inserted in the database, so it is easy testable.

I would appreciate a fast review on this one as it can potentially impact any future PR.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 79.12% when pulling e0b2698 on josenavas:solve-stochastic-failure into 2199bdd on biocore:master.

@josenavas
Copy link
Contributor Author

ping @biocore/qiita-dev

@antgonza
Copy link
Member

antgonza commented Apr 8, 2015

👍

Copy link
Contributor

Choose a reason for hiding this comment

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

Minor, but the cast to a list is not needed here:

>>> x = {1, 1, 1, 1, 1, 3, 5555, 4, 5}
>>> sorted(x)
[1, 3, 4, 5, 5555]

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 did not know that! Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

On (Apr-08-15|10:07), josenavas wrote:

@@ -561,7 +561,7 @@ def _add_common_creation_steps_to_queue(cls, md_template, obj_id,
values, many=True)

     # Insert rows on *_columns table
  •    headers = list(set(headers).difference(db_cols))
    
  •    headers = sorted(list(set(headers).difference(db_cols)))
    

I did not know that! Thanks!


Reply to this email directly or view it on GitHub:
https://github.com/biocore/qiita/pull/1046/files#r27990502

@ElDeveloper
Copy link
Contributor

👍 just one minor comment.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 79.1% when pulling 6270a6d on josenavas:solve-stochastic-failure into 2199bdd on biocore:master.

ElDeveloper added a commit that referenced this pull request Apr 8, 2015
@ElDeveloper ElDeveloper merged commit 12f48f9 into qiita-spots:master Apr 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants