kbase / kb_sdk

Build and test new apps for the KBase platform
http://kbase.github.io/kb_sdk_docs
MIT License
27 stars 32 forks source link

Update example apps #339

Closed JamesJeffryes closed 5 years ago

JamesJeffryes commented 5 years ago

Ok, per Shane's request I've changed the example to used the same default "params" mapping as the blank app. This lead to changing the name of the function from filter_contigs to run_${module_name} for consistency sake. That name change necessitated the bulk of the changes to the sdk tests, template generation code, as well as the language test templates.

For Python and Perl, I chose to extend the "ReportResults" object with the extra counts of total & filtered contigs ect. as this allowed me to leave the existing tests in place. For Java, I had to remove these return values and thus remove those checks.

A final thing added in here is only adding in authclient.py and baseclient.py if a client is being compiled further reducing the files present in the lib/{module} folder.

jayrbolton commented 5 years ago

Still working on testing this... Should be able to merge or have feedback shortly after standup.