Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
skurfuerst opened this issue Oct 10, 2014 · 7 comments

Comments

@skurfuerst
Copy link
Contributor

... 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.

@dfeyer
Copy link
Contributor

dfeyer commented Aug 5, 2016

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

@bwaidelich
Copy link
Contributor

@dfeyer wrong (se)bastian ;)

@dfeyer
Copy link
Contributor

dfeyer commented Aug 6, 2016

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

@dfeyer
Copy link
Contributor

dfeyer commented Oct 5, 2016

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

@skurfuerst
Copy link
Contributor Author

skurfuerst commented Oct 17, 2016

Hey Dominique,

this is still relevant I think:

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

All the best,
Sebastian

@kdambekalns
Copy link
Member

kdambekalns commented Jun 2, 2017

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)
!

@dfeyer
Copy link
Contributor

dfeyer commented Apr 7, 2019

@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
Projects
None yet
Development

No branches or pull requests

4 participants