-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
required children prop #2218
required children prop #2218
Conversation
Co-authored-by: Minsu Kim <alstn2468_@naver.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexcjohnson I want to add test case to |
Thanks @alstn2468! Yes, across dash the test case names are generally two characters for the folder (development -> "de") then two characters for the filename (test_base_component -> "bc") then a 3-digit serial number. So if you call your test That said, given that this involves the generator, it might be better to make a new component with required children in |
feat: improve to dynamically add required props validation
@plotly/dash-generator-test-component-typescript/src/components/RequiredChildrenComponent.tsx
Show resolved
Hide resolved
@plotly/dash-generator-test-component-typescript/src/components/RequiredChildrenComponent.tsx
Outdated
Show resolved
Hide resolved
I added debc030 for testing invalid children argument in 4800dcb |
@siner308 @alstn2468 this is looking great. I'm not sure though why CircleCI tests don't run... normally we have no problem with PRs coming from forks, any chance there's a setting in your fork that could be blocking this? I know there's the Allow Edits from Maintainers option but even if you haven't selected that I wouldn't have expected that to matter here. @T4rk1n any ideas? We'll want a changelog entry, which begs the question whether this is a feature addition or a bugfix. I could see calling this a bugfix, since we never said you COULDN'T set children as required so it's implied that it should work. And this has the advantage that we'd be able to release it sooner, as we'll be ready to make a patch release in the next few days but we'll want to wait a little longer before making a new minor. |
@alexcjohnson I think you can check the "Build forked pull requests" option. |
As I said, generally PRs from forks do work - see eg #2182 where a new build worked in between failed builds from this PR - so there's something else going on here. What I see in the CircleCI project page is a bunch of messages like:
Which doesn't make a lot of sense given that other builds are still working fine and you didn't touch |
There are more ci waiting PRs in this repository. (e.g. #1564) Or I can make a new PR from same source for check CI. |
Seems to be working now, after I followed CircleCI's instructions. Hopefully it'll work for your commits too, not just the one I added by merging So now we can see a couple of tests failed: here if you can see it, both failures are in Aside from that I think we just need a changelog entry then we'll be ready to go :) |
I just fix metadata_test.py and add changelog. But CI is still not working from my commit 😥 |
I tried to setup circleci from my forked repo and pipeline works here. I'm not sure this is a reason that cannot run in this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💃 Looks great. Thanks again @siner308 @alstn2468! I still don't know what's going on with CircleCI and your commits, and their support folks haven't come up with any useful suggestions. But it worked when I added my own commit and all tests pass, so I think we can move on.
children prop cannot be
REQUIRED
prop now.This PR makes it possible to set required to children prop.
Contributor Checklist
__init__
function of python component