Skip to content

feat: ODP REST API for Sending ODP Events#315

Merged
mikechu-optimizely merged 14 commits into
masterfrom
mike/odp-rest-api
Oct 25, 2022
Merged

feat: ODP REST API for Sending ODP Events#315
mikechu-optimizely merged 14 commits into
masterfrom
mike/odp-rest-api

Conversation

@mikechu-optimizely

Copy link
Copy Markdown
Contributor

Summary

Adding module to provide an internal service for sending events to ODP's REST API.

Test plan

  • Added new unit tests to .spec
  • All Existing Unit tests pass.
  • All existing full-stack compatibility tests pass.

Issues

  • FSSDK-8449

@mikechu-optimizely

Copy link
Copy Markdown
Contributor Author

@msohailhussain Let me know if you want to pair up over this review.

@msohailhussain msohailhussain requested a review from jaeopt October 13, 2022 21:49

@msohailhussain msohailhussain left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

not reviewed unit test. partial review to unblock if need to work on the feedback.

Comment thread OptimizelySDK/Odp/Entity/OdpEvent.cs
Comment thread OptimizelySDK/Odp/Entity/OdpEvent.cs Outdated
Comment thread OptimizelySDK/Odp/GraphQLManager.cs
Comment thread OptimizelySDK/Odp/GraphQLManager.cs Outdated
Comment thread OptimizelySDK/Odp/GraphQLManager.cs Outdated
Comment thread OptimizelySDK/Odp/RestApiManager.cs Outdated
Comment thread OptimizelySDK/Odp/RestApiManager.cs Outdated
Comment thread OptimizelySDK/Odp/RestApiManager.cs Outdated
Comment thread OptimizelySDK/Odp/RestApiManager.cs Outdated
Comment thread OptimizelySDK.Tests/OdpTests/HttpClientTestUtil.cs

@jaeopt jaeopt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. A few changes suggested.

Comment thread OptimizelySDK/Odp/GraphQLManager.cs Outdated
Comment thread OptimizelySDK/Odp/GraphQLManager.cs Outdated
Comment thread OptimizelySDK/Odp/RestApiManager.cs Outdated

@jaeopt jaeopt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. A clarification regarding TLS.

Comment thread OptimizelySDK/Odp/OdpEventApiManager.cs Outdated

@jaeopt jaeopt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@mikechu-optimizely

Copy link
Copy Markdown
Contributor Author

LGTM

Thanks @jaeopt . Holding for @msohailhussain 's approval 😉

Comment thread OptimizelySDK/Odp/OdpEventApiManager.cs Outdated
Comment thread OptimizelySDK/Odp/OdpEventApiManager.cs Outdated

@msohailhussain msohailhussain left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

please address few more questions.

Comment thread OptimizelySDK/Odp/OdpEventApiManager.cs Outdated
Comment thread OptimizelySDK/Odp/OdpSegmentApiManager.cs
Comment thread OptimizelySDK/Odp/OdpSegmentApiManager.cs Outdated
Comment thread OptimizelySDK/Odp/OdpSegmentApiManager.cs Outdated
Comment thread OptimizelySDK/Odp/OdpSegmentApiManager.cs Outdated
Comment thread OptimizelySDK/Odp/OdpSegmentApiManager.cs Outdated
Comment thread OptimizelySDK/Odp/OdpSegmentApiManager.cs Outdated
Comment thread OptimizelySDK/Odp/OdpSegmentApiManager.cs Outdated
Comment thread OptimizelySDK/Odp/OdpSegmentApiManager.cs Outdated
Comment thread OptimizelySDK/Odp/OdpSegmentApiManager.cs Outdated
Comment thread OptimizelySDK/Odp/OdpSegmentApiManager.cs
Comment thread OptimizelySDK/Odp/OdpSegmentApiManager.cs Outdated
Comment thread OptimizelySDK/Odp/OdpSegmentApiManager.cs
@msohailhussain

Copy link
Copy Markdown
Contributor

@mikechu-optimizely Overall your PR looks good, please address 4 more questions and then lgtm.

@msohailhussain

Copy link
Copy Markdown
Contributor

last but not least please fix Lint issues.

@mikechu-optimizely

mikechu-optimizely commented Oct 25, 2022

Copy link
Copy Markdown
Contributor Author

last but not least please fix Lint issues.

It seems like the lint error here in the GitHub Action is about a missing auth token.

Would you like me to pause the Pull Request and resolve this step, so we can make the "Csharp CI with .NET / Lint Code Base (pull_request)" required?

...or are there lint issues that I missed in the code? Can you direct me to an example file?

@msohailhussain

Copy link
Copy Markdown
Contributor

this is fine for me, we should resolve token issue in future.

@msohailhussain msohailhussain left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm.

@mikechu-optimizely mikechu-optimizely merged commit 026d08f into master Oct 25, 2022
@mikechu-optimizely mikechu-optimizely deleted the mike/odp-rest-api branch October 25, 2022 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants