Skip to content

Conversation

@antgonza
Copy link
Member

This generates the archive release; basically it allows the plugins to run the given command to generate archiving releases. Additionally we are adding a new link to download those releases.

Now, the menu looks like:
screen shot 2018-12-20 at 9 22 25 am

@codecov-io
Copy link

Codecov Report

Merging #2769 into dev will decrease coverage by 0.08%.
The diff coverage is 71.62%.

Impacted file tree graph

@@            Coverage Diff            @@
##             dev    #2769      +/-   ##
=========================================
- Coverage   94.3%   94.22%   -0.09%     
=========================================
  Files        166      166              
  Lines      19980    20047      +67     
=========================================
+ Hits       18843    18889      +46     
- Misses      1137     1158      +21
Impacted Files Coverage Δ
qiita_db/test/test_archive.py 97.61% <100%> (+0.11%) ⬆️
qiita_db/archive.py 98.66% <100%> (+0.09%) ⬆️
qiita_db/handlers/archive.py 100% <100%> (ø) ⬆️
qiita_db/test/test_meta_util.py 98.95% <100%> (+0.04%) ⬆️
qiita_db/meta_util.py 85.6% <60.78%> (-5.8%) ⬇️
qiita_pet/handlers/download.py 97.66% <75%> (-0.56%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fdcbfe3...499b333. Read the comment docs.

self.assertEqual(filepath, '')
self.assertEqual(timestamp, '')
biom_metadata_release, archive_release = get_release_info('private')
# note that we are testing not eqaul as we should have some information
Copy link
Contributor

Choose a reason for hiding this comment

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

eqaul -> equal

Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a way to hash some invariant, like metadata stored inside the BIOM file instead? Perhaps that's enough.

Copy link
Member Author

Choose a reason for hiding this comment

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

sure, added a tests to check that at least the filename is what we expect ...

Copy link
Member Author

@antgonza antgonza left a comment

Choose a reason for hiding this comment

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

@charles-cowart, thanks for comments; they should be addressed now.

self.assertEqual(filepath, '')
self.assertEqual(timestamp, '')
biom_metadata_release, archive_release = get_release_info('private')
# note that we are testing not eqaul as we should have some information
Copy link
Member Author

Choose a reason for hiding this comment

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

sure, added a tests to check that at least the filename is what we expect ...

return dict(qdb.sql_connection.TRN.execute_fetchindex())

@classmethod
def insert_features(self, merging_scheme, features):
Copy link
Contributor

Choose a reason for hiding this comment

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

I hate to sound picky, but if insert_features is going to be a class method, can you change all instances of self to cls, just for convention's sake?

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks! Will merge as soon as testing is completed.

@charles-cowart charles-cowart merged commit 6cba398 into qiita-spots:dev Jan 10, 2019
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