Resolve issues with Boost Iterator
Is this a bug? Make sure to use the Bug template above and be as detailed in your report as possible.
added scoped label
added scoped label
added scoped label
added scoped label
- Developer
We ignore the offset requested from the iterator and instead override with the timestamp of the last boost in list with no explanation why we don't trust the iteratorThis is part of feed class not iteratorEdited by Guy Thouret - Developer
- Iterator makes a request for X boosts, if Y of those boosts are invalid or can not be resolved the iterator will return X - Y boosts, requiring additional requests to cycle the iterator (which could return few or no results again)
Edited by Guy Thouret - Developer
hydrate
set in the iterator makes the iterator fetch the entity and compare it's impressions value with the boost impressions value to determine if the boost has finished.-
It's called an
Iterator
, I am not expecting an iterator to contain this functionality, how could I have known this functionality is hidden away here, not to mention this is pretty inefficient within an API call.
In the
hydrate
functionality if we determine a boost has finished we callExpire::expire()
which changes the boost state to complete and generates event and notification.- Seems overkill for this one method to have it's own class, feels like it should be a part of Manager functionality
The
increment
option is used withinhydrate
to callMetrics::incrementViews()
that increments some values incounters
db table.-
Metrics
references a Mongo database which AFAIK as been abandoned/decommissioned
Edited by Guy Thouret -
It's called an
- Developer
-
In
Iterator
hydrate
andincrement
flag functionality are mutually exclusive where as the code has them nested that implies some sort of dependency. i.e. We can't increment without hydrating which is not true.
-
In
- Developer
-
Boost\Network\Iterator
class has no spec test coverage.
-
added scoped label and automatically removed label
changed time estimate to 6h
changed weight to 2
- Developer
- ManagerSpec is failing
Edited by Guy Thouret marked this issue as related to #1078 (closed)
changed time estimate to 1d 4h
added 6h of time spent at 2019-11-04
- Developer
Added time to wrong ticket
changed time estimate to 4h
added 2h of time spent at 2019-11-04
added scoped label and automatically removed label
changed time estimate to 1d
- Developer
-
Check feed
sync=1
flag passing tohydrate
is resolved
Original comment:
sync=1
is used by the/fetch
API which in sets async
flag which sets ahydrate
flag in the iterator. -
Check feed