Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-1910

Data Table query - Advanced

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Critical
    • Resolution: Done
    • None
    • 1.9.0
    • Data Tables

    Description

      Background

      FINERACT-1747

      Goal

      Have the querying possibilities - that have been developed with FINERACT-1747 - extended with the following features:

      • pagination - similarly to several Fineract API endpoints
      • sorting based on given attribute
      • filter for closed (greather-than-or-equal, less-than-or-equal) interval in case of the following typed fields:
        • date
        • date and time
        • number
        • decimal
        • string/text that can be parsed to numeric
      • contains search in string and text fields
      • exact match for string and text fields

      The filtering parameters should be applied with "AND" relation.

      Solution Concept

      Have the solution concept aligned between

      If multiple columns would be used as column filter, it is advisable not to put this number of query parameters in the url, but in the body, like graphql. With this, a request would look like:

      URL

      GET url/datatables/dataTableId/query?resultColumns=column3,column6,column4&offset=0&limit=10&sortOrder=desc&orderBy=transaction_date

      Body

      See the attached dataTableAdvancedFilteringExample.txt.

      The filtering parameters should be applied with "AND" relation.

       

      <Solution Concept to be extended by developers>

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            peter.santa Peter Santa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment