Skip to content

Remove "$targetWorkspaceName" from indexer -- as that's a very crude hack #45

Open

Description

@skurfuerst

... Instead of manipulating context node path using string replace, we should instead do the following:

if NodeInUserWorkspace is published + should be indexed, create an new context (with same dimension values and DIFFERENT workspace). Then, using this new context, we fetch the published node by node path. Then, we use that one for indexing.

... Discovered together with Christopher at T3CON.

Activity

  1. dfeyer commented on Aug 5, 2016

    @dfeyer
    Contributor

    @bwaidelich Is this issue always a problem ? And if it's the case, can push a PR to solve it ?

  2. bwaidelich commented on Aug 6, 2016

    @bwaidelich
    Contributor

    @dfeyer wrong (se)bastian ;)

  3. dfeyer commented on Aug 6, 2016

    @dfeyer
    Contributor

    @skurfuerst Ping, is this issue fixed now or did we need to tackle it ?

  4. dfeyer commented on Oct 5, 2016

    @dfeyer
    Contributor

    @skurfuerst Ping again, this is quiet old issue, but not sure if it affect the current implementation ?

  5. skurfuerst commented on Oct 17, 2016

    @skurfuerst
    ContributorAuthor

    Hey Dominique,

    this is still relevant I think:

    public function indexNode(NodeInterface $node, $targetWorkspaceName = null)

    All the best,
    Sebastian

  6. kdambekalns commented on Jun 2, 2017

    @kdambekalns
    Member

    Also the current version that string manipulation is still done:

    And in three more places:

    These should (re-)use calculateDocumentIdentifier() as defined in

    protected function calculateDocumentIdentifier(NodeInterface $node, $targetWorkspaceName = null)
    !

  7. dfeyer commented on Apr 7, 2019

    @dfeyer
    Contributor

    @kdambekalns Code duplication is remove here 2e04e1f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions