Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-6387

Returned Installation JSON always contains categories with null ID

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Optional
    • None
    • None
    • None
    • None

    Description

      After installation registration, when I receive response from UPS, it marshalls categories into this JSON snippet:

      "categories": [
          {
              "id": null,
              "name": "category_name"
          },
          {
              "id": null,
              "name": "another_name"
          },
      ]
      

      It is questionable, what purpose that null field fulfils if it is always null.

      There is not automatic generation of ID on that Category model via uuid on id property so even DB layer saves it and some ID is assigned to it, it is never set back in model.

      Try to marshall Category into JSON in such way only name of category is used and all categories are marshalled into array of names and not into useless hash map (difficult to parse).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              smikloso Stefan Miklosovic (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: