Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-7076

Pdx should not have group, groups

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.11.0
    • management
    • None

    Description

      For REST API V2 for management, Swagger shows that the model for Pdx includes "group", "groups".
      None of these should be specified when doing a POST Pdx. If you do specify group you get an error saying Pdx is only at the cluster level.

      group and groups comes from CacheElement. Could the Pdx class override them and mark them with @JsonIgnore?

      The java-api exposes these on Pdx and it would be best if it didn't. If we did some refactoring so that Pdx did not have these methods on it them this would clean up the rest-api automatically.

      Objective:

      1. find a way to hide these attributes from Swagger docs.
      2. is there a way to hide "group"/"groups" from the java api as well

      The best solution might be to just have "group" and not "groups".

      Attachments

        Issue Links

          Activity

            People

              dschneider Darrel Schneider
              gyan Gang Yan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m