-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add title to Field
calls where necessary
#299
Conversation
Codecov Report
@@ Coverage Diff @@
## master #299 +/- ##
==========================================
- Coverage 81.88% 81.80% -0.09%
==========================================
Files 54 54
Lines 4886 4886
==========================================
- Hits 4001 3997 -4
- Misses 885 889 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
although "explicit better than implicit" I generally prefer to avoid duplication. |
FWIW, might be better to have that "code" to be actually here within schema conversion tools, so produced .json would already have titles. That would centralize the code and not offload it upon UIs. |
@AlmightyYakob - i sent some changes on top of yours (feel free to merge that). i was mostly focusing on the non-autogenerated ones. the reason license was misbehaving is that pydantic does not generate titles automatically for fields that have a type that's an enum. (i don't know why). so i fixed titles for all of them. |
Co-authored-by: Jacob Nesbitt <jjnesbitt2@gmail.com>
I agree, as otherwise it's more code that splits the schema used in the UI from the source schema. I realize that title formatting is a pretty small change, but JSON Schema is designed to be able to specify this information, without intervention from whatever is displaying it. |
ok, filed #301 so could be done after to not hold this PR hostage |
I've submitted a PR on the head repository to fix the failing tests: jjnesbitt#3 |
well, don't we need PRs to come from branches in this repository to get access to some secrets? then this PR should be redone from a branch here anyways. @jwodder , please just submit a new PR from a branch here to supersede this PR. @AlmightyYakob is also part of the team , so he should be able to push directly to that branch if would be needed |
@yarikoptic Are you sure superseding this PR is necessary? The only secret the test workflow relies on is for pushing to Codecov. |
we can wait for all the dance with merging of a PR for a PR to happen and then ignore codecov, or could just streamline with superseded PR with all the commits desired to bring it to the finish line together. up to you ;) |
fix tests
Do I have contributor access on this repo? If so, then in the future I'm happy to deal with branches here directly. |
AFAIK yes, you are part of the dandi-cli team https://github.com/orgs/dandi/teams/dandi-cli/members |
ok, since @satra did not raise any concerns, I guess it is good to go! |
This is something I've noticed for a while now, and figured I'd just add these titles. Almost all of the titles are just the variable name with capitalization and spaces, so I doubt there's much wrong here, but if there is please lmk.