Skip to content

Async to Sync Revert for Java Generation#3672

Merged
baywet merged 10 commits intomainfrom
rsh/syncRevert_java
Nov 13, 2023
Merged

Async to Sync Revert for Java Generation#3672
baywet merged 10 commits intomainfrom
rsh/syncRevert_java

Conversation

@ramsessanchez
Copy link
Contributor

@ramsessanchez ramsessanchez commented Nov 6, 2023

As part of the work to revert from Async -> Sync for Java SDK generation we must ensure that methods do not return Completable Futures.
fixes microsoft/kiota-java#175

@ramsessanchez ramsessanchez requested a review from a team as a code owner November 6, 2023 22:54
Copy link
Contributor

@andrueastman andrueastman left a comment

Choose a reason for hiding this comment

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

I believe we also need to

  • Update unit tests
  • Rename the sendXXX methods in the generated code to remove the async suffix.

Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

  • changelog
  • call to request adapter (remove async suffix)
  • a couple of places we're using thenAccept and others as far as I can remember
  • (maybe) exception management, depending on the resolution on kiota java

@ramsessanchez ramsessanchez changed the title Methods should not return completable futures Async to Sync Revert for Java Generation Nov 7, 2023
@ramsessanchez
Copy link
Contributor Author

Integration tests will fail until Kiota-Java is complete.

@ramsessanchez ramsessanchez requested a review from baywet November 8, 2023 16:06
baywet
baywet previously approved these changes Nov 8, 2023
@baywet
Copy link
Member

baywet commented Nov 8, 2023

@ramsessanchez please hold merge until the java libs are out

andrueastman
andrueastman previously approved these changes Nov 9, 2023
@baywet baywet dismissed stale reviews from andrueastman and themself via 6805203 November 13, 2023 15:11
baywet
baywet previously approved these changes Nov 13, 2023
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

89.2% 89.2% Coverage
0.0% 0.0% Duplication

@baywet baywet merged commit e46d59e into main Nov 13, 2023
@baywet baywet deleted the rsh/syncRevert_java branch November 13, 2023 15:58
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.

[discussion] Java Async

3 participants