Skip to content
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

[rest] Set editable for members of an item #4118

Merged

Conversation

florian-h05
Copy link
Contributor

@florian-h05 florian-h05 commented Feb 28, 2024

This sets the editable field of the EnrichedItemDTO for members of the EnrichedGroupItemDTO.

The editable field is needed by the UI, e.g. for openhab/openhab-webui#2410.

Required by the UI.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@@ -317,7 +323,7 @@ public Response getItemNamespaces(@PathParam("itemname") @Parameter(description
@Operation(operationId = "getItemByName", summary = "Gets a single item.", responses = {
@ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = EnrichedItemDTO.class))),
@ApiResponse(responseCode = "404", description = "Item not found") })
public Response getItemData(final @Context UriInfo uriInfo, final @Context HttpHeaders httpHeaders,
public Response getItemByName(final @Context UriInfo uriInfo, final @Context HttpHeaders httpHeaders,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI I decided to rename that method to better reflect what it is actually doing.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@florian-h05
Copy link
Contributor Author

florian-h05 commented Mar 1, 2024

@kaikreuzer This PR would also be nice to have for the snapshot, as it is required to fix an UI bug.
The UI PR is already finished and reviewed, it just needs to wait for the core PR.

Copy link
Member

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

@kaikreuzer kaikreuzer merged commit 81805ae into openhab:main Mar 3, 2024
3 checks passed
kaikreuzer pushed a commit to openhab/openhab-webui that referenced this pull request Mar 3, 2024
Depends on openhab/openhab-core#4118.

@ghys could you comment on the purpose of `ignoreEditable` here? It's
preventing the lock icon from showing up.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
@kaikreuzer kaikreuzer added this to the 4.2 milestone Mar 3, 2024
@florian-h05 florian-h05 deleted the rest-items-groupmembers-editable branch March 3, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants