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

Add QueryReferenceBacklinks, refs 1117 #2290

Merged
merged 1 commit into from Feb 26, 2017

Conversation

Projects
None yet
3 participants
@mwjames
Contributor

mwjames commented Feb 26, 2017

This PR is made in reference to: #1117

This PR addresses or contains:

  • If smwgEnabledQueryDependencyLinksStore is enabled then Special:Browse will list query references that have an active link to the browsed subject aka "Which queries link to this subject?"

This PR includes:

  • Tests (unit/integration)
  • CI build passed

@mwjames mwjames added the feature label Feb 26, 2017

@mwjames mwjames added this to the SMW 2.5.0 milestone Feb 26, 2017

@mwjames

This comment has been minimized.

Contributor

mwjames commented Feb 26, 2017

https://www.semantic-mediawiki.org/wiki/Query_reference

image

@kghbln FYI

For example, when browsing the Has query property page those listed links are queries embedded in a subject (the page cannot not display subjects used in each of those queries).

The PR introduces a similar function known as "What links here" by showing queries that have an active reference to the subject. Since the QUERY_LINKS_TABLE is required to ensure an efficient lookup, smwgEnabledQueryDependencyLinksStore needs to be enabled.

@mwjames mwjames merged commit 95a2ab0 into master Feb 26, 2017

3 checks passed

Scrutinizer 11 new issues, 25 updated code elements
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@mwjames mwjames deleted the browse-query-links branch Feb 26, 2017

@gesinn-it

This comment has been minimized.

Contributor

gesinn-it commented Jul 19, 2017

I have a question on using smwgEnabledQueryDependencyLinksStore together with Display title of property:

With MW 1.27, SMW 2.5.3, jobs run with cron and smwgEnabledQueryDependencyLinksStore = true, I see, that the display title is set correctly on the page itself and its Special:Browse. But all pages listed in Has query show the previous display title.

Example

Iteration 1: Display title of = aaa

  • Special:Browse = aaa
  • n/a

Iteration 2: Display title of = bbb

  • Special:Browse = bbb
  • A page listed in Has query: aaa

Iteration 3: Display title of = ccc

  • Special:Browse = ccc
  • A page listed in Has query: bbb

The display title is set in a template without self referencing like: {{DISPLAYTITLE:{{{Epic ID|}}} {{{Title|}}}}}

$wgAllowDisplayTitle = true;
$wgRestrictDisplayTitle = false;
@mwjames

This comment has been minimized.

Contributor

mwjames commented Jul 23, 2017

@gesinn-it

This comment has been minimized.

Contributor

gesinn-it commented Jul 24, 2017

@mwjames with iteration I mean the number of repetition. Iteration 1 = first edit, iteration 2 = second edit.

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