Skip to content

About the DataHydrator filter_unresolved = true no items display #168

@taylor19882002

Description

@taylor19882002

Hi Stephpy

I'm not sure that problem is my misunderstand or not

my problem

  1. create
    $actionManager = $this->get('spy_timeline.action_manager');
    $subject = $actionManager->findOrCreateComponent('a\model', 'chucknorris');
    $action = $actionManager->create($subject, 'control', array('directComplement' => 'the world'));
    $actionManager->updateAction($action);

  2. get timeline
    $actionManager = $this->get('spy_timeline.action_manager');
    $timelineManager = $this->get('spy_timeline.timeline_manager');
    $subject = $actionManager->findOrCreateComponent('a\model', 'chucknorris');
    $timeline = $timelineManager->getTimeline($subject);

if filter_unresolved = false, get the related items
{"coll":{"items":[..........],"last_page":1,"page":1,"nb_results":1}}

if filter_unresolved = true, get nothing, i don't know why it filter out self action.
{"coll":{"items":[],"last_page":1,"page":1,"nb_results":1}}

regards
Oscar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions