Item14379: DBQUERY recently began rendering $web with all dots rather than slashes

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release:
Applies To: Extension
Component: DBCachePlugin
Branches:
Reported By: LynnwoodBrown
Waiting For:
Last Change By: MichaelDaum
In some recent release of DBCachePlugin, the DBQUERY macro has begun to render the $web format variable as Web.SubWeb1.SubWeb11 rather than Web/SubWeb1/SubWeb11 as is the norm in other macros such as SEARCH, WEB, etc. It may seem like a small matter since both will produce viable links. However, if one stores a value (in a DataForm) using other macros and then later needs to compare that with results from results DBQUERY, suddenly it matters a lot.

If possible, it would be nice if DBCachePlugin kept with the standard of other macros.

-- LynnwoodBrown - 14 Apr 2017

It actually always was like that in DBCachePlugin. I regularly use this as a feature to normalize web names as in:

%DQUERY{
  topic="Some/Nested/Web.topic"
  format="$web"
}%

%DQUERY{
  topic="Some.Nested/Web.topic"
  format="$web"
}%

%DQUERY{
  topic="Some/Nested.Web.topic"
  format="$web"
}%

%DQUERY{
  topic="Some.Nested.Web.topic"
  format="$web"
}%

Above all return the same result. Functionally speaking they are all equivalent.

Same decision has been made in other plugins such as ClassificationPlugin. They all work on webs using the dot notation. For instance, some of those plugins use internal caching taking the web name under consideration. Therefore I deliberately convert all of them to one notation, the dot notation.

Sorry.

-- MichaelDaum - 14 Apr 2017
 

ItemTemplate edit

Summary DBQUERY recently began rendering $web with all dots rather than slashes
ReportedBy LynnwoodBrown
Codebase
SVN Range
AppliesTo Extension
Component DBCachePlugin
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r2 - 14 Apr 2017, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy