You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this doesn't make sense. I guess you don't fail on record not found, but it still does an unwanted network call which can fail.
Our use case is to move Stream communication into background jobs. What we do for creation is default activity_should_sync? to false and then in the background job:
Something similar would work for activity destroy too if activity_should_sync? were respected. The workaround is redefining remove_from_feed on the model:
defremove_from_feed;end
The text was updated successfully, but these errors were encountered:
thisismydesign
changed the title
Entity destroy doesn't respect instance.activity_should_sync?
Entity destroy doesn't respect activity_should_sync?Apr 23, 2019
See:
stream-rails/lib/stream_rails/feed_manager.rb
Lines 58 to 59 in 8ffa4f1
As opposed to:
stream-rails/lib/stream_rails/feed_manager.rb
Lines 51 to 52 in 8ffa4f1
I think this doesn't make sense. I guess you don't fail on record not found, but it still does an unwanted network call which can fail.
Our use case is to move Stream communication into background jobs. What we do for creation is default
activity_should_sync?
tofalse
and then in the background job:Something similar would work for activity destroy too if
activity_should_sync?
were respected. The workaround is redefiningremove_from_feed
on the model:The text was updated successfully, but these errors were encountered: