Fix interaction with boards and worklists
This commit fixes a bug where we expect timeline events to be only for stories, which causes any interaction with boards and worklists to be impossible. Change-Id: Icd502cb1dc03db0d124233e9df5e7c0fc3ad1ac1
This commit is contained in:
parent
7142ffd9ce
commit
ef92ba2fec
@ -101,7 +101,9 @@ def events_get_count(current_user=None, **kwargs):
|
|||||||
def event_create(values):
|
def event_create(values):
|
||||||
new_event = api_base.entity_create(models.TimeLineEvent, values)
|
new_event = api_base.entity_create(models.TimeLineEvent, values)
|
||||||
if new_event:
|
if new_event:
|
||||||
stories_api.story_update_updated_at(new_event.story_id)
|
if new_event.story_id is not None:
|
||||||
|
stories_api.story_update_updated_at(new_event.story_id)
|
||||||
|
# TODO(SotK): Update board and worklist updated_at when they get events
|
||||||
|
|
||||||
if CONF.enable_notifications:
|
if CONF.enable_notifications:
|
||||||
# Build the payload. Use of None is included to ensure that we don't
|
# Build the payload. Use of None is included to ensure that we don't
|
||||||
|
Loading…
Reference in New Issue
Block a user