getroadmap / roadmap-api

API documentation for Roadmap
3 stars 2 forks source link

CustomCode specified as string, returns null #9

Open benkutil opened 8 years ago

benkutil commented 8 years ago

When returning projects using the hot-project endpoint, two string resources, CustomCode and ProjectCode, return different data when empty.

Below is an example of code returned from the hot-project endpoint, which I’ve edited for convenience.

  1. Notice how CustomCode in the second result returns null, while ProjectCode returns "".
{
    "CustomCode": "RDMP-App",
    "ProjectCode": "RDMP-App",
    "Health": {
      "ID": 201,
      "Name": "On Schedule",
      "Status": "Active"
    },
    …
  },
  {
    "CustomCode": null,
    "ProjectCode": "",
    "Health": {
      "ID": 201,
      "Name": "On Schedule",
      "Status": "Active"
    },
    …
  },

@RoadmapTeam @AndrewKaplanovsky @mpeven

DmitryLapshov commented 8 years ago

@RoadmapTeam I think I reported something like that several days before but as a low priority issue hadn't assigned it to anyone as @hbarrington suggested https://github.com/getroadmap/roadmap/issues/4268

benkutil commented 8 years ago

@DmitryLapshov thanks. I missed that post. Yeah, for right now I removed the query against that parameter.