Item14340: Add macro to report the Foswiki::Net user agent version to the FoswikiOrgPlugin.

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: FoswikiOrgPlugin
Branches: master
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
This can be used in the FastReport, JsonReport, etc. to filter out incompatible extensions for the detected foswiki release.

-- GeorgeClark - 11 Mar 2017

Changes also needed to the 3 topics:

  • Extensions.JsonReport already has the Foswiki version passed in as version=V2.1.3. This can't be used directly, as the IncompatibleWith is missing the V.
    • Strip the leading V, Escape . to prevent wildcard matching.
   AND NOT (IncompatibleWith=~'%CALCULATE{$SUBSTITUTE($FILTER([Vv], %URLPARAM{"version" default="unknown"}%),.,\.)}%\b'

-- GeorgeClark - 12 Mar 2017

For the FastReport and UpdatesPluginReport, added
 AND NOT IncompatibleWith=~'%CALCULATE{$SUBSTITUTE(%FOSWIKIREQUESTAGENT%,.,\.)}%\b'

Only JsonReport (tested with Foswiki 2.0.0) and FastReport (Tested with 1.1.9) have been tested live.

-- GeorgeClark - 12 Mar 2017

The plugin still needs code to map from svn rev to a foswiki version for the oldest code.

-- GeorgeClark - 12 Mar 2017
 
Topic revision: r4 - 12 Apr 2017, GeorgeClark - This page was cached on 13 Apr 2024 - 16:47.

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