changed typecheck for list value to use isinstance instead of type#3108
changed typecheck for list value to use isinstance instead of type#3108T4rk1n merged 12 commits intoplotly:devfrom
Conversation
|
@T4rk1n this one looks good to me, but can you please check it before we merge? |
|
I'd rather see the check fixed than change the layout. The check at Line 2257 in bbd013c use a brittle/unoptimal API to check for ids that is outdated (doesn't work with component as props). dash/dash/development/base_component.py Line 366 in bbd013c The issue here is that we end up with a list of list so the traverse can't find it here: Lines 2250 to 2255 in bbd013c Need to extract the layout value then concat directly it if it's a list if not wrap in a list. |
…s id content check
|
Hi @T4rk1n, I made the changes you recommended, please check. I'd just like to ask if all the integration tests need to remain unchanged or would I need to change them based on my changes? Because I see even on dev branch the integration tests are failing (unless I'm wrong). Is this correct, or can I go ahead and modify these failing integration tests? |
…s id content check
…' into layout-accept-lists-as-component
8e14147 to
ad51501
Compare
|
thanks @kenshima4 - @T4rk1n please merge whenever is convenient for you. |
|
Hi guys, thanks for that! I am unsure why second round of testing didn't work. What I could see is the timestamps changing seem to have an effect on the testing suite. Please let me know if I'm missing something. |
Solves: Layout as list of components does not work with Dash Pages page_container #2924
I've checked if the values passed to layout setter isinstance list, if so, set the values to html.Div (dash Component)
Contributor Checklist
optionals
CHANGELOG.md