Uploaded image for project: 'appNG'
  1. appNG
  2. APPNG-2208

There should be an easy and convenient way for checking include-conditions on a page

    XMLWordPrintable

    Details

    • Type: Feature
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.21.0
    • Component/s: appng-core
    • Labels:
      None

      Description

      Currently, if a page supports a high number of URL parameters, the include-conditions for an action/datasource get cumbersome to write and read.

      Example:

      <condition expression="${not empty variantId and 'recipe' eq entity and 'update' eq action and not empty entityId and 'rating' eq entity1 and 'update' eq action1 and not empty entity1Id}" />

      The idea is to have a built in variable and/or some helper methods that makes it easier to match a certain path, for example

      <condition expression="${ noneEmpty(entityId,entity1Id) and URL_PATH.matches(variantId, 'recipe', 'update', entityId, 'rating', 'update', entity1Id)}" />
      
      

        Attachments

          Activity

            People

            • Assignee:
              mueller.matthias Matthias Müller
              Reporter:
              mueller.matthias Matthias Müller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: