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

ENH: Show info on credential setup in wtf() #4982

Merged
merged 1 commit into from Oct 5, 2020
Merged

Conversation

mih
Copy link
Member

@mih mih commented Oct 4, 2020

Would look something like this (paths truncated):

 % datalad wtf -S credentials
 # WTF
 ## credentials
   - keyring:
     - active_backends:
       - SecretService Keyring
       - PlaintextKeyring with no encyption v.1.0 at ...keyring_pass.cfg
     - config_file: ....config/python_keyring/keyringrc.cfg
     - data_root: ....local/share/python_keyring

If got tired of looking up the code snippets in the keyring docs to
run when switching machines, and discovering the left-overs of previous
configuration attempts.

Related to gh-4981

@mih mih added the UX user experience label Oct 4, 2020
@codecov
Copy link

codecov bot commented Oct 4, 2020

Codecov Report

Merging #4982 into master will increase coverage by 0.22%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4982      +/-   ##
==========================================
+ Coverage   89.77%   89.99%   +0.22%     
==========================================
  Files         290      292       +2     
  Lines       40708    40995     +287     
==========================================
+ Hits        36546    36894     +348     
+ Misses       4162     4101      -61     
Impacted Files Coverage Δ
datalad/plugin/wtf.py 83.53% <100.00%> (+2.44%) ⬆️
datalad/downloaders/tests/test_s3.py 51.94% <0.00%> (-20.15%) ⬇️
datalad/downloaders/s3.py 40.51% <0.00%> (-17.16%) ⬇️
datalad/distribution/create_sibling.py 85.02% <0.00%> (-0.57%) ⬇️
datalad/tests/utils.py 86.79% <0.00%> (-0.36%) ⬇️
datalad/config.py 96.65% <0.00%> (-0.16%) ⬇️
datalad/core/local/run.py 99.09% <0.00%> (-0.01%) ⬇️
datalad/support/github_.py 78.65% <0.00%> (ø)
datalad/downloaders/http.py 81.85% <0.00%> (ø)
datalad/core/local/create.py 94.44% <0.00%> (ø)
... and 41 more

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 c33bd4e...b297e93. Read the comment docs.

datalad/plugin/wtf.py Outdated Show resolved Hide resolved
Would look something like this (paths truncated):

```
 % datalad wtf -S credentials
 # WTF
 ## credentials
   - keyring:
     - active_backends:
       - SecretService Keyring
       - PlaintextKeyring with no encyption v.1.0 at ...keyring_pass.cfg
     - config_file: ....config/python_keyring/keyringrc.cfg
     - data_root: ....local/share/python_keyring
```

If got tired of looking up the code snippets in the keyring docs to
run when switching machines, and discovering the left-overs of previous
configuration attempts.

Related to dataladgh-4981
@kyleam kyleam merged commit c224b14 into datalad:master Oct 5, 2020
@mih mih deleted the enh-wtfcred branch September 24, 2021 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UX user experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants