Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-17224

Avoid executing search when clicking on "search" tab

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.2
    • Fix Version/s: 7.4
    • Component/s: Content Views
    • Impact type:
      API change
    • Upgrade notes:
      Hide

      Added new API to check for the content view execution status ContentView#isWaitForExecution(), ContentView#isExecuted(), ContentView#getWaitForExecutionSentence()

      Show
      Added new API to check for the content view execution status ContentView#isWaitForExecution(), ContentView#isExecuted(), ContentView#getWaitForExecutionSentence()
    • Sprint:
      nxNag Sprint 7.4.4
    • Story Points:
      3

      Description

      When accessing the search tab for the first time, the rendering of results trigger a search that presents all documents.
      Some users would rather wait for the search filter form to be submitted at least once for this search to be triggered.

      This can be handled by detecting if user has already clicked on "filter" at least once. Display of results should also be adapted when search has not been performed yet.

      The content view accepts a boolean property for this behaviour, as well as a customizable sentence to display when no result is shown because of this setting:

      <contentView name="myContentView">
        <waitForExecution>true</waitForExecution>
        <waitForExecutionSentence>label.search.waitForExecution</waitForExecutionSentence>
      </contentView>
      

      New API ContentView#isWaitForExecution(), ContentView#isExecuted(), ContentView#getWaitForExecutionSentence() can be used to adapt display.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                4 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days
                  2d

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.