Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-2190

Using empty array to replace null response from /ws/v1/partition/{partitionName}/usage/users

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.5.0
    • None

    Description

      the endpoint

      /ws/v1/partition/{partitionName}/usage/users
      

      will return null when user usages are nonexistent.

      the return type is expected to be array, so it seems to me the empty array is more suitable to be returned.

      Attachments

        Issue Links

          Activity

            People

              brandboat Kuan Po Tseng
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: