← 输入框|github.com|刷新
Skip to content

feat: add odp event manager - #403

Merged
Andy Leap (andrewleap-optimizely) merged 18 commits into
masterfrom
aleap/add_odp_event_manager
Sep 2, 2022
Merged

Andy Leap (andrewleap-optimizely) merged 18 commits into
masterfrom
aleap/add_odp_event_manager

Conversation

@andrewleap-optimizely

Copy link
Copy Markdown
Contributor

Summary

OdpEventManager provides internal services for sending ODP events to the ODP server.

  • adds default values to identifiers and data fields for all events.
  • stores requested events if they cannot be sent to the server.
  • stored events are dispatched when resources are available.

Test plan

  • added test_odp_event_manager.py

Ticket

OASIS-8442

Comment thread optimizely/odp/odp_event_manager.py Resolved
Comment thread tests/test_odp_event_manager.py Resolved
Comment thread tests/test_odp_event_manager.py Resolved
Comment thread tests/test_odp_event_manager.py Resolved

@jaeopt Jae Kim (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.
Also let's discuss how we should handle events with odpConfig lifecycle.

Comment thread optimizely/odp/odp_event_manager.py Resolved
Comment thread optimizely/odp/odp_event_manager.py Resolved
Comment thread optimizely/odp/odp_event_manager.py Resolved
Comment thread tests/test_odp_event_manager.py Resolved
Comment thread optimizely/odp/odp_event_manager.py Resolved
Comment thread optimizely/odp/odp_event_manager.py Resolved
Comment thread optimizely/odp/odp_event_manager.py Resolved
Comment thread optimizely/odp/odp_event_manager.py Resolved
Comment thread optimizely/odp/odp_event_manager.py Resolved
Comment thread tests/test_odp_event_manager.py Resolved

@Mat001 Matjaz Pirnovar (Mat001) 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 to me. Pretty complex PR.
Made a comment about the name CopyingMock class.

Comment thread tests/base.py Resolved

@jaeopt Jae Kim (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 great! A few changes suggested.

Comment thread optimizely/helpers/enums.py Resolved
Comment thread optimizely/odp/odp_event.py Resolved
Comment thread optimizely/odp/odp_event.py Resolved
Comment thread optimizely/odp/odp_event_manager.py Resolved
Comment thread tests/test_odp_event_manager.py Resolved
Comment thread optimizely/odp/odp_event_manager.py Resolved
Comment thread optimizely/odp/odp_event_manager.py Resolved
Comment thread optimizely/odp/odp_event_manager.py Resolved
Comment thread optimizely/odp/odp_event_manager.py Resolved
Comment thread tests/test_odp_event_manager.py Resolved

@jaeopt Jae Kim (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.

All changes look good.
I found one more case to discuss to clarify.

Comment thread optimizely/helpers/enums.py Resolved
Comment thread optimizely/odp/odp_event_manager.py Resolved
Comment thread optimizely/odp/odp_event_manager.py Resolved

@jaeopt Jae Kim (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

@andrewleap-optimizely
Andy Leap (andrewleap-optimizely) deleted the aleap/add_odp_event_manager branch September 2, 2022 15:54
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.

3 participants