Replies: 1 comment
-
|
Since colors can be a wide variety of values (hex, rgb, actual text - like
That's just how browsers handle values they don't understand.
This was fixed in f233408
Tag color was added to those API references so that we can display the colors in the table view. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
8.3.6 adds
tag_colorto a number of API objects. I poked around with Locations a little and discovered some issues. Similar things may be happening with other tag-color enabled objects.No validation
You can upload nonsense colors from the API. E.g. by creating a new location:
UI seems to interpret these as black, while the API continues to return the nonsense value.
Aways null when getting individual locations
GET /locationsreturns the tag colors as expected butGET /locations/:idhastag_coloralways null.Tag color included in references
The API returns a reference object of this shape in many places:
{ "id": 42, "name": "the answer" }Now references to locations (e.g. location's parent) look like this:
{ "id": 42, "name": "the answer", "tag_color": "#a94949" }Was the
tag_coloradded intentionally? It seems like a pretty unimportant piece of knowledge for a reference.Beta Was this translation helpful? Give feedback.
All reactions