Skip to content
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

Meta data #22

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Meta data #22

wants to merge 7 commits into from

Conversation

hallgren
Copy link
Contributor

Makes it possible to append meta_data to events.

@@ -28,8 +28,9 @@ def call(stream_name, event_data, expected_version = nil)
def create_event(event_data)
type = event_data.event_type
data = event_data.data
meta_data = event_data.meta_data if event_data.respond_to?(:meta_data)
Copy link
Member

Choose a reason for hiding this comment

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

why meta_data ? I would prefer metadata as this is just a single word

@@ -13,18 +13,19 @@ def call(entries)
private

def create_event(entry)
return nil unless entry['data']
Copy link
Member

Choose a reason for hiding this comment

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

That's part of #21 - maybe let's move this out to #21

@@ -10,10 +10,10 @@ module Api
describe '#append_to_stream' do

it "should handle one event" do
event = Event.new('event_type', { data: 1 })
Copy link
Member

Choose a reason for hiding this comment

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

You are adding new thing here - so why changing existing tests instead of just adding a new one ?

@hallgren
Copy link
Contributor Author

hallgren commented May 8, 2017

Thanks @mpraglowski for your time and comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants