[API] missing 炒飯 vocabulary entry for kanji 炒

Hello all,

There are three vocabulary entries for kanji 炒, but one of them (炒飯) is missing from the amalgamation_subject_ids field through the API.

The ID for 炒飯 is 9275.

Oddly enough all three words are correctly listed in the web interface: https://www.wanikani.com/kanji/炒

I guess the web UI must be using a different API or collecting this data differently.

 {
    "id": 9265,
    "object": "kanji",
    "url": "https://api.wanikani.com/v2/subjects/9265",
    "data_updated_at": "2023-09-20T04:39:05.534700Z",
    "data": {
      "created_at": "2023-07-10T18:26:24.397684Z",
      "level": 36,
      "slug": "炒",
      "hidden_at": null,
      "document_url": "https://www.wanikani.com/kanji/%E7%82%92",
      "characters": "炒",
      "meanings": [
        {
          "meaning": "Fry",
          "primary": true,
          "accepted_answer": true
        }
      ],
      "auxiliary_meanings": [],
      "readings": [
        {
          "type": "kunyomi",
          "primary": true,
          "reading": "いた",
          "accepted_answer": true
        },
        {
          "type": "kunyomi",
          "primary": true,
          "reading": "い",
          "accepted_answer": true
        },
        {
          "type": "onyomi",
          "primary": false,
          "reading": "しょう",
          "accepted_answer": false
        },
        {
          "type": "onyomi",
          "primary": false,
          "reading": "そう",
          "accepted_answer": false
        }
      ],
      "component_subject_ids": [
        46,
        198
      ],
      "amalgamation_subject_ids": [
        9266,
        9272
      ],
      "visually_similar_subject_ids": [
        1364,
        800,
        2434
      ],
      "meaning_mnemonic": "<radical>Fire</radical> is one of a <radical>few</radical> things you'll need to <kanji>fry</kanji> things.",
      "meaning_hint": "You need a few other things like a pan and some oil too, but fire is gonna be the most important for frying!",
      "reading_mnemonic": "You love to <kanji>fry</kanji> things and are also an adventurous <reading>eater</reading> (<ja>いた</ja>). This means you'll fry and eat just about anything. Fried ostrich, fried alligator, fried chocolate, you >
      "reading_hint": "Your being an adventurous eater of all things fried truly knows no bounds. What cursed combination of foods will you fry up tomorrow?!",
      "lesson_position": 0,
      "spaced_repetition_system_id": 1
    }
  },

@Mods do you have an opinion on this?

Thanks! I’ll ask @tofugu-scott to chime in here :slight_smile:

1 Like

@simias Thanks for raising the issue. In order to make the API performant we cache some relationships. The component cache for the subject id 9275 wasn’t updated when it was created. This has now been resolved.

2 Likes

Amazing, thank you!