Merged
Conversation
Creates a commands module to store the command logic in one location. Moves much settings configuration into the config submodule in commands Attempts to create a clear logically distinction between cli logic and hub logic
Moves the operations_mode decorator into the new module. Adds another decorator for checking the python system path and adding any paths specified in our designated .pth file. This applies for any file that might need access to the hub-parsers
Contributor
Author
❯ export BTCLI_DEBUG=1; biothings-cli dataplugin dump -m
[16:16:55] DEBUG Inferring singular advanced plugin from directory structure
DEBUG Popen(['git', 'version'], cwd=/home/schaffjr/workspace/plugin-development/pending.api/plugins/nodenorm, stdin=None, shell=False, universal_newlines=False)
DEBUG Popen(['git', 'version'], cwd=/home/schaffjr/workspace/plugin-development/pending.api/plugins/nodenorm, stdin=None, shell=False, universal_newlines=False)
WARNING Found stale datasource 'nodenorm', marking upload status as 'canceled'
DEBUG Assistant Plugin Name: nodenorm
Assistant Plugin Path: /home/schaffjr/workspace/plugin-development/pending.api/plugins/nodenorm
Data Plugin Folder: /home/schaffjr/workspace/plugin-development/pending.api/plugins/nodenorm
DEBUG For plugin "nodenorm", selecting loader class "AdvancedPluginLoader"
INFO Registering 'nodenorm' to dump manager
INFO Attempting to load module nodenorm
DEBUG Found a class based on BaseDumper: '<class 'nodenorm.dumper.NodeNormDumper'>'
DEBUG Found classes to register: [<class 'nodenorm.dumper.NodeNormDumper'>]
INFO Registering 'nodenorm' to upload manager(s)
INFO Attempting to load module nodenorm
WARNING nodenorm module discovered in sys.modules
DEBUG Found a class based on BaseSourceUploader: '<class 'nodenorm.uploader.NodeNormUploader'>'
DEBUG Found classes to register: [<class 'nodenorm.uploader.NodeNormUploader'>]
DEBUG Creating new NodeNormDumper instance
WARNING Marking dump as successful without running the dumper
INFO Done!
INFO Success! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the ability to mark a dump as successful from the biothings-cli tool. Enables the ability for setting up the dump files manually and then confirming the successful dump on the backend. Useful for larger dumps if you accidentally remove the dump trigger