questhub icon indicating copy to clipboard operation
questhub copied to clipboard

No tags data in the quest API

Open bessarabov opened this issue 12 years ago • 1 comments

From the api route /api/quest I get such Perl data (after decoding from json):

{
    author => "bessarabov",
    _id    => "514bd699ddae8f743a000010",
    likes  => [
        "berekuk",
    ],
    name   => "сделать rss у моего блога",
    realm  => "chaos",
    status => "closed",
    team   => [
        "bessarabov",
    ],
    ts     => 1363924633,
    user   => "bessarabov",
}

Here I see a bug. There is no tags key here. I'm expected to recieve that key every time, even when there are no tags. And It actually works for other quests without tags. Here is the example of other quest API data that is correct:

{
    author => "bessarabov",
    _id    => "5193f49e1088c76d54000009",
    likes  => [
        "pffully",
    ],
    name   => "Заменить российский пасспорт",
    order  => 64,
    realm  => "chaos",
    status => "open",
    tags   => [],
    team   => [
        "bessarabov",
    ],
    ts     => 1368650910,
}

bessarabov avatar Jul 06 '13 15:07 bessarabov

I don't agree it's a bug, it's a minor implementation detail and you shouldn't rely on it. Ok, I'll keep it open, but it's a very low priority so I probably won't do it anytime soon.

berekuk avatar Jul 06 '13 21:07 berekuk