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

REST API returns subtree by default

    XMLWordPrintableJSON

Details

    Description

      The subtree query parameter is interpreted the opposite of what would be expected.

      If you call /ws/v1/partition/default/queue/root?subtree then you do not get the subtree. If you call /ws/v1/partition/default/queue/root you get the whole tree rooted at root

      We have not documented the new API yet so before we add it to the docs we should fix the behaviour:

      • subtree given: return the whole tree
      • subtree missing: return one level

      The code fix is as simple as a ! in a single call and inverting the test cases to pass or not pass ?subtree

      Attachments

        Issue Links

          Activity

            People

              steinsgateted Ted Lin
              wilfreds Wilfred Spiegelenburg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: