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

Results do not take subsites into account #42

Open
indygriffiths opened this issue Jan 8, 2018 · 2 comments
Open

Results do not take subsites into account #42

indygriffiths opened this issue Jan 8, 2018 · 2 comments

Comments

@indygriffiths
Copy link

Reported by an end user, if viewing the Reports section when inside a subsite, generating this report will show results from all sites. The expected behaviour would be the same as other reports, where they only show results that are relevant for that particular subsite.

I believe the issue stems from the fact that this report runs as a task, which won't have any context of the subsite, unlike other reports that run straight away and have Subsites inject its standard subsite-specific WHERE clauses injected into their queries.

@robbieaverill
Copy link

I believe the issue stems from the fact that this report runs as a task, which won't have any context of the subsite, unlike other reports that run straight away and have Subsites inject its standard subsite-specific WHERE clauses injected into their queries.

That's likely to be true, but we could still provide some context to the job when we trigger it to be run via AJAX

@raissanorth
Copy link

When I try the same, I can only see broken links for the main site, and not for any subsites at all.

The report menu option is not visible to me in the CMS, when I have a subsite is selected. However, I can open the report through the main site in the CMS and then navigate to the subsite via the dropdown. The broken links in the report are only shown for the main site though.

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

6 participants