Moodle

Related Tag being incorrectly created

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 1.9.1
  • Fix Version/s: None
  • Component/s: Tags
  • Labels:
    None
  • Environment:
    Moodle 1.9.1+ (Build: 20080618), PHP Version 5.2.6, MySQL client version: 5.0.51a

Description

A tag that was once an official tag (but was subsequently 'downgraded') is being incorrectly linked to some other tags as related - and the relationship is not being reciproctaed to the other tag.

URL http://socialwork.fife.gov.uk/tag/index.php?id=7 shows the 'confidentiality' tag (tag id=7) as being related to the 'musings' tag (tag id=27). This correlation was not created by me (and no-one else has capability), but 'musings' is not related to 'confidentiality'. Tag relationship is also not showing as defined in the 'edit tag' screen.

'Musings' tag is tag id 27, and was once an official tag.

Attached zip file contains screenshot of mdl_tag_correlation table, some screenshots of various tags and edit_tags pages, and php info file

Activity

Hide
Mathieu Petit-Clair added a comment -

This is actually a feature: tags that are often used together end up being "correlated" automatically. There is no way to turn this off from the interface, but it would be a easy to prevent indexation: comment out the call to tag_compute_correlations in tag_cron function, in /tag/lib.php and then empty table tag_correlation in the database.

I suppose we should turn this one into a feature request and make this customizable from the interface.

Show
Mathieu Petit-Clair added a comment - This is actually a feature: tags that are often used together end up being "correlated" automatically. There is no way to turn this off from the interface, but it would be a easy to prevent indexation: comment out the call to tag_compute_correlations in tag_cron function, in /tag/lib.php and then empty table tag_correlation in the database. I suppose we should turn this one into a feature request and make this customizable from the interface.
Hide
Jon Bolton added a comment - - edited

Thanks Mathieu, I understand what you're saying (I think), but I'm not sure why it's a feature. The benefit of related tags is that they ARE related - a spurious, automatic correlation just because 2 tags are frequently used together is not a relationship.

But I'd be happy with a config option in the interface... are you planning this on a 'per tag' basis? Eg. a switch between automatic and manual relationship for "this tag that I am editing now"?

Can I just clarify though (for my own sanity!) - my original issue report is about a tag that is only being related "one-way" - ie. one tag says it's related to another... but the 'related' tag is not showing the corresponding reverse relationship.

Show
Jon Bolton added a comment - - edited Thanks Mathieu, I understand what you're saying (I think), but I'm not sure why it's a feature. The benefit of related tags is that they ARE related - a spurious, automatic correlation just because 2 tags are frequently used together is not a relationship. But I'd be happy with a config option in the interface... are you planning this on a 'per tag' basis? Eg. a switch between automatic and manual relationship for "this tag that I am editing now"? Can I just clarify though (for my own sanity!) - my original issue report is about a tag that is only being related "one-way" - ie. one tag says it's related to another... but the 'related' tag is not showing the corresponding reverse relationship.
Hide
Jon Bolton added a comment -

Oh, if I comment out the call to tag_compute_correlations as you suggest above, will that also stop manual creation of related tags... because I still want to be able to do that

Show
Jon Bolton added a comment - Oh, if I comment out the call to tag_compute_correlations as you suggest above, will that also stop manual creation of related tags... because I still want to be able to do that
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: