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

Display dandi validate errors using logger #459

Merged
merged 1 commit into from
Mar 10, 2021
Merged

Display dandi validate errors using logger #459

merged 1 commit into from
Mar 10, 2021

Conversation

jwodder
Copy link
Member

@jwodder jwodder commented Mar 10, 2021

Closes #458.

@jwodder jwodder added the patch Increment the patch version when merged label Mar 10, 2021
@codecov
Copy link

codecov bot commented Mar 10, 2021

Codecov Report

Merging #459 (e9d7e97) into master (7e6464a) will increase coverage by 0.05%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #459      +/-   ##
==========================================
+ Coverage   82.29%   82.34%   +0.05%     
==========================================
  Files          55       55              
  Lines        5744     5790      +46     
==========================================
+ Hits         4727     4768      +41     
- Misses       1017     1022       +5     
Flag Coverage Δ
unittests 82.34% <50.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
dandi/cli/cmd_validate.py 82.35% <50.00%> (-5.15%) ⬇️
dandi/dandiapi.py 88.12% <0.00%> (+0.95%) ⬆️

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 7e6464a...e9d7e97. Read the comment docs.

@yarikoptic
Copy link
Member

thank you @jwodder , let it be like this for now. validation is yet to be RFed later on (#431 etc), so we will tune later

@yarikoptic yarikoptic merged commit bdf3dfb into master Mar 10, 2021
@yarikoptic yarikoptic deleted the gh-458 branch March 10, 2021 21:23
@djarecka
Copy link
Member

thanks for addressing my issue. Unfortunately, the output is now much less readable IMO

before:
Screen Shot 2021-03-11 at 8 54 54 AM
after:
Screen Shot 2021-03-11 at 8 55 35 AM

Let me know if you want me to open a separate issue.

@jwodder
Copy link
Member Author

jwodder commented Mar 11, 2021

@yarikoptic What exactly should the output look like?

@yarikoptic
Copy link
Member

IMHO it is ok (although not colored) -- the only thing is that %s: ok I have missed - somewhere path was not provided.
Or @djarecka what readability aspect you have in mind?

@jwodder
Copy link
Member Author

jwodder commented Mar 11, 2021

@yarikoptic I fixed the "%s: ok" thing in #462.

@djarecka
Copy link
Member

@yarikoptic - it doesn't provide info about files that are not failing, and yes the color also helps

@djarecka
Copy link
Member

@jwodder - thanks, your PR helps! The color is gone, but I guess, we can live with this.

@yarikoptic
Copy link
Member

yes, let's live without colors for now. Later we will RF for more consistent handling of outputs etc and I hope that is when colors would return ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

incomplete log file created by validation
3 participants