-
Notifications
You must be signed in to change notification settings - Fork 386
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
Fixed nested arrays settings #1504
Conversation
Please re-branch to beta branch |
Hi @Slonick |
Why this can not be merged, if you use tab array in layout then only one element is displayed however many are configured, I think this resolve this: |
@bwp91 I would agree with @grzegorz914. I have experienced this issue as well. |
@Slonick Once merged can you also add something to config wiki explaining this? |
This fix requires additional testing, I checked on my plugin and on 1-2 more from open issues, so I added a separate flag. Later it will not be needed, so I think it makes no sense to describe it in the wiki. |
@Slonick Okay so this PR isn’t ready? |
what do mean PR? |
Pull Requests |
no, it's ready for pull request. It's not ready for release. I need feedback that it works. And it works not only for nested arrays, but also does not break anything on regular configs using the |
It will be good merge it to beta branch and publish new beta to test. |
@Slonick New beta should be published shortly |
@Slonick Eslint failed. Can you submit another Pull Request? |
yes i will do it soon |
test.5 has been released. |
@Slonick, so |
yes, that's right, and after that the arrays should be displayed correctly |
no luck moving it to another section |
@donavanbecker Are we talking about the same issue? If you look at my screenshot from the second version of pull request, then there is MacBook and PC, before the fix the tab from the PC was not displayed. |
if you have duplicate data or data is not displayed, but it is in config, then I need name of plugin and your current config, and tomorrow I will check it. |
Yes it does look the same. Plugin: https://github.com/0x5e/homebridge-tuya-platform/blob/develop_1.7.0/config.schema.json
|
I haven’t tested this - but hypothetically (i know it’s already been merged) what would happen if this PR didn’t have the config option and it were to be merged without the config option? |
@grzegorz914, what change did you have to make? |
@donavanbecker |
* Add singular plug-in label (#1458) * Document the default port/address that you can access the UI in your web browser (#1252) * Improve translations (#1459) * Fix capitalization (#1496) * Update zh-CN.json (#1503) * Fixed nested arrays settings (#1504) * Fixed nested arrays settings #2 (#1510) * Fixed nested arrays; Fixed lint; * Removed console.log() * Fixed nested arrays #3 (#1511) * Wait for custom UI (#1522) * Wait for custom UI (#1523) --------- Co-authored-by: Dave Nicolson <[email protected]> Co-authored-by: Adam Coulombe <[email protected]> Co-authored-by: Aiden <[email protected]> Co-authored-by: Artem Kononenko <[email protected]>
♻️ Current situation
Nested arrays display only one element.
💡 Proposed solution
To solve the problem, the generated layout and data are matched.
⚙️ Release Notes
The fix is applied only if
"fixArrays": true
is added to config.schema.json.For example:
{ "pluginAlias": "examplePluginAlias", "pluginType": "platform", "singular": true, "fixArrays": true, "schema": {...} }