-
Notifications
You must be signed in to change notification settings - Fork 28
feat(epmodel): Event Processor datamodel #184
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
Conversation
# | ||
require_relative 'user_event' | ||
module Optimizely | ||
class ConversionEvent < UserEvent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where are other attributes?
bot filter?
require_relative 'user_event' | ||
module Optimizely | ||
class ConversionEvent < UserEvent | ||
attr_accessor :event, :event_tags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we just define attr_reader and pass it in a constructor?
} | ||
end | ||
|
||
class Builder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really need builder classes in ruby ?
|
||
module Optimizely | ||
class EventContext | ||
attr_reader :account_id, :project_id, :revision, :client_name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how you will set these values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
initialized
require_relative 'user_event' | ||
module Optimizely | ||
class ImpressionEvent < UserEvent | ||
attr_reader :user_id, :user_attributes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not user_attributes, it's visitor_attributes
module Optimizely | ||
class ImpressionEvent < UserEvent | ||
attr_reader :user_id, :user_attributes | ||
attr_accessor :experiment, :variation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why accessor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@timestamp = timestamp | ||
@revenue = revenue | ||
@value = value | ||
@event_tags = event_tags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are just tags?
# | ||
module Optimizely | ||
class UserEvent | ||
attr_reader :context, :uuid, :timestamp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
write it as event_context
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Summary
Test plan
Impression Event
Conversion Event