Skip to content

feat: ODP REST API for Sending ODP Events #786

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

Merged
merged 38 commits into from
Sep 26, 2022

Conversation

mikechu-optimizely
Copy link
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-8386 (OASIS-8386 [to pass jira_ticket_reference_check])

@coveralls
Copy link

coveralls commented Sep 21, 2022

Coverage Status

Coverage increased (+0.006%) to 93.466% when pulling 6552e7f on mike/odp-rest-api-interface into 267f12b on master.

@mikechu-optimizely mikechu-optimizely removed the request for review from a team September 21, 2022 17:39
Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

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

I see missing some error handlings. Also we can consider removing {GraphQLManager, RestApiManager} since most logic is in OdpClient. See my comments for more context.

mikechu-optimizely and others added 2 commits September 22, 2022 08:56
Co-authored-by: Jae Kim <45045038+jaeopt@users.noreply.github.com>
Co-authored-by: Jae Kim <45045038+jaeopt@users.noreply.github.com>
Copy link
Contributor

@zashraf1985 zashraf1985 left a comment

Choose a reason for hiding this comment

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

Great Work Overall! Requested a few changes.

mikechu-optimizely and others added 4 commits September 23, 2022 10:31
Co-authored-by: Zeeshan Ashraf <35262377+zashraf1985@users.noreply.github.com>
…o mike/odp-rest-api-interface

# Conflicts:
#	packages/optimizely-sdk/lib/plugins/odp/graphql_manager.ts
Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

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

Looks good! A few more small changes suggested.

Copy link
Contributor

@zashraf1985 zashraf1985 left a comment

Choose a reason for hiding this comment

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

Looks Great!

Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

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

Changes look good. I found a couple of cases inconsistent.

# Conflicts:
#	packages/optimizely-sdk/lib/utils/enums/index.ts
#	packages/optimizely-sdk/lib/utils/http_request_handler/request_handler_factory.ts
Copy link
Contributor

@jaeopt jaeopt left a comment

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 f6c2232 into master Sep 26, 2022
@mikechu-optimizely mikechu-optimizely deleted the mike/odp-rest-api-interface branch September 26, 2022 17:39
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.

4 participants