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

improve readbility and flow in the ReadAndUpdateOperation#processUpdate #281

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

ivansenic
Copy link
Contributor

What this PR does:

Improves readability and the flow in the ReadAndUpdateOperation#processUpdate..

@ivansenic ivansenic requested a review from a team as a code owner March 21, 2023 12:59
writableShreddedDocument = null;
documentUpdater().applyUpdates(readDocument.document().deepCopy(), upsert);
if (!documentUpdaterResponse.modified()) {
return Uni.createFrom().nullItem();
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to do null check on responses collected as list and passed to UpdateOperationPage

Copy link
Contributor

@maheshrajamani maheshrajamani Mar 21, 2023

Choose a reason for hiding this comment

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

Apologies, didn't realize its going into collect() that should handle null value. Please ignore the previous comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did not change at all the previous logic :)

@ivansenic ivansenic merged commit e84193b into main Mar 21, 2023
@ivansenic ivansenic deleted the ise-read-update-ref branch March 21, 2023 15:07
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.

2 participants