Skip to content

Commit

Permalink
Datawriter publishes feature version to the event log as well
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnVinyard committed Oct 13, 2017
1 parent 8c462df commit c7153f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion featureflow/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '2.2.4'
__version__ = '2.3.4'

from model import BaseModel, ModelExistsError

Expand Down
6 changes: 5 additions & 1 deletion featureflow/datawriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ def __exit__(self, t, value, traceback):
self._stream.close()
if self.event_log is not None:
self.event_log.append(
json.dumps({'_id': self._id, 'name': self.feature_name}))
json.dumps({
'_id': self._id,
'name': self.feature_name,
'version': self.feature_version
}))

def _process(self, data):
yield self._stream.write(data)
Expand Down

0 comments on commit c7153f9

Please sign in to comment.