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

[WFLY-13412]:Add_Json_Merge_Patch_support #367

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Conversation

jimma
Copy link
Contributor

@jimma jimma commented Jan 22, 2021

No description provided.

@bstansberry bstansberry changed the title [WFLY-13122]:Add_Json_Merge_Patch_support [WFLY-13412]:Add_Json_Merge_Patch_support Jul 2, 2024

=== Hard Requirements

* RESTEasy includes this feature support and is installed in WFLY/EAP

Choose a reason for hiding this comment

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

This analysis should include the fact that we need to backport the feature as per https://issues.redhat.com/browse/RESTEASY-2567 since now it reads that no work is needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is already included in 3.15.9.Final. There is no work is needed for EAP.

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, my mistake. Checked it again and json merge patch isn't backported in 3.15.x, but this is already included since 4.1.x , should be already included in EAP8 and no work is need for EAP8.

@jimma jimma force-pushed the master branch 2 times, most recently from cf1d5a6 to ed71ee2 Compare October 10, 2024 07:12
@emmartins
Copy link
Contributor

@jimma the analysis doesn't include the sections regarding configuration and deployment, I am assuming this means that this new feature has no side effects on old server configs, and require no changes to be done by customers in their apps, when they migrate...

Can you please confirm my analysis of zero migration impact is correct?


== Requirement

=== Hard Requirements
Copy link

@honza-kasik honza-kasik Oct 23, 2024

Choose a reason for hiding this comment

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

@jimma Per @jamezp comment on the product tracker, this analysis needs to state which JSON provider is this RFE targeting. And if it targets non-default JSON provider, it should explain the reason.

Copy link
Contributor Author

@jimma jimma Nov 4, 2024

Choose a reason for hiding this comment

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

@honza-kasik It looks Resteasy AbstractPatchMethodFilter handles this correctly. By default, it uses Jakarta JSON Processing PATCH filter to handle json patch and json merge patch request. The Jackson PATCH filter is only enabled when user sets the RESTEASY_PATCH_FILTER_LEGACY parameter to true.

https://github.com/resteasy/resteasy/blob/6.2.10.Final/resteasy-core/src/main/java/org/jboss/resteasy/plugins/providers/AbstractPatchMethodFilter.java#L44-L72

Choose a reason for hiding this comment

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

Thanks @jimma ! Can this mention about the parameter be added to this document please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@honza-kasik I already added to this document, please have a look.

@jimma
Copy link
Contributor Author

jimma commented Nov 4, 2024

@jimma the analysis doesn't include the sections regarding configuration and deployment, I am assuming this means that this new feature has no side effects on old server configs, and require no changes to be done by customers in their apps, when they migrate...

Can you please confirm my analysis of zero migration impact is correct?

@emmartins Yes, I confirmed and there is no migration impact.

@emmartins
Copy link
Contributor

@jimma got it, thanks

@jimma jimma force-pushed the master branch 2 times, most recently from 9f1fcb0 to 3df60ab Compare November 14, 2024 09:12
Copy link

@honza-kasik honza-kasik left a comment

Choose a reason for hiding this comment

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

Thanks, this looks good from QE PoV

Copy link
Member

@jamezp jamezp left a comment

Choose a reason for hiding this comment

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

@github-actions github-actions bot added the stability-level/default "Default" stability-level label Nov 18, 2024
@jimma
Copy link
Contributor Author

jimma commented Nov 18, 2024

@jamezp Updated this PR. Thanks for review.

Copy link
Member

@jamezp jamezp left a comment

Choose a reason for hiding this comment

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

We should ensure all the references to JSON are referenced as "JSON" all caps. We should be referencing RESTEasy in all cases too. There is currently a mix of cases for RESTEasy.

Comment on lines 30 to 34
Resteasy provides two implementation for JSON merge patch. One based on jsonp(abbreviation jsonp will be used in this page) and another one is based on
json-patch and jackson2(abbreviation jackson2 will be used in this page). By default, Resteasy uses jsonp implementation, while the jackson2 implementation is only enabled
when the context parameter `resteasy.patchfilter.legacy=true` is set.
Copy link
Member

Choose a reason for hiding this comment

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

We should only discuss the Jakarta JSON Processing option IMO. We shouldn't mention the legacy option.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is requested by @honza-kasik, as this is still there and still can be set to switch.

@github-actions github-actions bot added stability-level/default "Default" stability-level and removed stability-level/default "Default" stability-level labels Nov 21, 2024
@github-actions github-actions bot added invalid-categories The categories field in the proposal metadata is not valid and removed invalid-categories The categories field in the proposal metadata is not valid labels Nov 21, 2024
@github-actions github-actions bot added stability-level/default "Default" stability-level invalid-categories The categories field in the proposal metadata is not valid and removed stability-level/default "Default" stability-level invalid-categories The categories field in the proposal metadata is not valid labels Nov 22, 2024
@github-actions github-actions bot added stability-level/default "Default" stability-level invalid-categories The categories field in the proposal metadata is not valid and removed stability-level/default "Default" stability-level invalid-categories The categories field in the proposal metadata is not valid labels Nov 27, 2024
@github-actions github-actions bot added the stability-level/default "Default" stability-level label Nov 28, 2024
@github-actions github-actions bot added stability-level/default "Default" stability-level and removed stability-level/default "Default" stability-level labels Dec 9, 2024
Copy link
Member

@jamezp jamezp left a comment

Choose a reason for hiding this comment

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

Sorry about these additional changes. I wasn't able to locally render this site with Jekyll before and I was finally able to figure out how to get it to work.

Copy link
Member

@jamezp jamezp Dec 9, 2024

Choose a reason for hiding this comment

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

Just noticed the file name includes "EAP7-1494", that should be removed. It should also probably be renamed to something like WFLY-19981_Json_Merge_Patch_suppoert.adoc.

@jamezp jamezp linked an issue Dec 10, 2024 that may be closed by this pull request
@github-actions github-actions bot added stability-level/default "Default" stability-level and removed stability-level/default "Default" stability-level labels Dec 10, 2024
@github-actions github-actions bot added stability-level/default "Default" stability-level and removed stability-level/default "Default" stability-level labels Dec 10, 2024
@jimma
Copy link
Contributor Author

jimma commented Dec 10, 2024

@jamezp Change are squashed. Please review and merge. Thanks.

@darranl darranl merged commit 3f2dfe4 into wildfly:main Dec 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stability-level/default "Default" stability-level
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add json merge patch support
6 participants