Split Definitions grouped by version and tenant into dedicated endpoints

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: L3 - Default
    • 3.1.0
    • Affects Version/s: 3.0.0
    • Component/s: backend, frontend
    • Not defined

      Context:
      With OPT-3428 we allowed for more than 10k definitions (byKey) to exist by paging through them with a page size of 1k. But as seen in the support ticket SUPPORT-7320 depending on the amount and distribution of versions and tenants across definitions the default bucket size limit of 10k can still get hit with a single call of /api/definition/:type/definitionVersionsWithTenants.

      Given the nested aggregations used here we cannot fully control the number of buckets returned in total. We should thus split up the retrieval of definitions keys, available versions for a definitionKey as well as available tenants for the combination of both. This way we always have a single dimension of buckets we can properly limit and page through.

      AT:

      • the endpoint /api/definition/:type/definitionVersionsWithTenants. is split up into three endpoints:
        • one to retrieve available definition keys along with their names
        • one to retrieve available versions for a particular definition key along with their versionTags
        • one to retrieve available tenants for a specific definitionKey and a list of versions
      • the definition selection in the report builder as well as in the event based process data source selection is switched to these new endpoints

            Assignee:
            Unassigned
            Reporter:
            Sebastian Bathke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: