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
[MainUI] Code view for Item (and its link, if relevant) #728
Comments
Requested at openhab#1737 (comment), openhab#728 and several times on the community. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Closes #728. See discussion in #1737 (comment). Adds a YAML code tab to the Item editor as requested several times on various places. Editor hints are provided for Item types, groupTypes, groupNames and metadata namespaces. If the Item has been provisioned from file, the editor is read-only and a big lock icon is displayed. Note that metadata is currently not displayed, because mass-saving metadata is not supported yet. -- Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@ghys, @florian-h05 : I'm not sure this can be closed yet - does the new feature also display Link information? I can't see it in the screenshot. |
No, Item links and metadata are not a part of it. The problem is that those are stored in extra registries and there is no API yet to modify all metadata of an Item or all channel links at once. |
OK - shall we reopen this issue, or split out the Link request into a new one? |
I’d prefer to split the link request to a new issue, where we can coordinate the required API endpoints (I have to check closer, but I think we need a new API endpoint) with the core maintainers. |
The problem
(Not really a problem - this is a feature request - but I'll keep the template title)
We have a friendly
Code
tab for Things, from which YAML code can be edited, copied and shared on the Community forum.This
Code
tab does not exist for Items (except for its metadata) and its links (if relevant).I realise the API Explorer exists, but that's quite a 'scary' looking thing for a beginner, with its colour coding and location within the Developer Tools. Additionally, if the API Explorer is used one needs to enter the Items and Links separately - coming from OH2 where Items and Links where defined in a single line in a text file this adds to the 'unfriendliness', so to speak.
Is it possible, for an Item, to have a
Code
tab which includes all information required to recreate the Item and its Link, for easy and friendly editing and sharing? That would also improve consistency between Items and Things.I have seen #397, but I think that just pertains to the Item metadata. This issue is essentially about all the Item parameters, as they used to be (still can be, I guess!) defined in Items files.
Your environment
The text was updated successfully, but these errors were encountered: