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

The "database" attribute on <root/> definitions does not work in v1.7 #97

Open
jermdavis opened this issue Jun 7, 2022 · 0 comments
Open

Comments

@jermdavis
Copy link

A colleague of mine pointed out that if you configure a root by specifiying a database:

<roots hint="raw:BuildRoot">
    <root database="core">/sitecore/client</root>
</roots>

then Sidekick v1.7 is not able to expand this tree, preview or sync it.

Comparing the documentation in old blog posts to the current code, it looks like some heavy refactoring has happened which doesn't pass the "database" about when it hands item IDs and related data between methods and API calls. For example, these calls to fetch items from the database don't obey the database which the items came from. So unsurprisingly this will throw (often null reference exceptions) in the following code because items which do exists in one database can't be found in the default (master) db.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant