Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-12686

Cannot retrieve recording relationships with recording query

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Normal Normal
    • None
    • None
    • Web service
    • None

      I call /ws/2/recording?query=rid%3A5fe6ed4d-1236-4d6a-8778-febfd1ca092c+OR+rid%3Aca88f457-5e22-4a32-93f5-7114c7280517&inc=recording-rels+recording-level-rels+recordings web service query, but I don't get any relations (relationships).

      I would like to get the 2 compiled recordings that each of these 2 recordings are linked to (and any other relationships).

      I have probably included too many inc=recording-rels+recording-level-rels+recordings as it was not working so I tried everything.

      In fact, the web service does not return what I request (inc=recording-rels+recording-level-rels+recordings) but it returns too many things I don't request (releases).

      It is the same no-relationships in either xml or json, alike.

      My goal is to query more than 2 recordings, which will also require MBS-12154 to be fixed.

      I took 2 recordings only, to keep my example simple, here.

      It should also be able to return linked works as well as any relationships we request with inc.

          [MBS-12686] Cannot retrieve recording relationships with recording query

          jesus2099 added a comment - - edited

          In fact this ticket is the reflect of the same problem I had translated in 2 possible solutions in 2013, it's a duplicate of MBS-6138 and MBS-6139.

          jesus2099 added a comment - - edited In fact this ticket is the reflect of the same problem I had translated in 2 possible solutions in 2013, it's a duplicate of MBS-6138 and MBS-6139 .

          jesus2099 added a comment -

          Oh yes in fact I did know about that in 2013: MBS-6138.

          And oh, about the lookup of several MBID, I made a ticket also for that: MBS-6139

          If we could browse /ws/2/recording?recording=5fe6ed4d-1236-4d6a-8778-febfd1ca092c+ca88f457-5e22-4a32-93f5-7114c7280517&inc=recording-rels+recording-level-rels+recordings it would be cool!

          jesus2099 added a comment - Oh yes in fact I did know about that in 2013: MBS-6138 . And oh, about the lookup of several MBID, I made a ticket also for that: MBS-6139 If we could browse /ws/2/recording?recording=5fe6ed4d-1236-4d6a-8778-febfd1ca092c+ca88f457-5e22-4a32-93f5-7114c7280517&inc=recording-rels+recording-level-rels+recordings it would be cool!

          jesus2099 added a comment -

          search has never supported includes

          Oh I never realised that!
          I think have I have used inc on search without noticing it had no effects. 🤣

          I will review my scripts to see how I can do, with this new knowledge.

          jesus2099 added a comment - search has never supported includes Oh I never realised that! I think have I have used inc on search without noticing it had no effects. 🤣 I will review my scripts to see how I can do, with this new knowledge.

          This is a search query - search has never supported includes I guess maybe what you actually want is a way to request multiple lookup requests in one call?

          Nicolás Tamargo added a comment - This is a search query - search has never supported includes I guess maybe what you actually want is a way to request multiple lookup requests in one call?

            Unassigned Unassigned
            jesus2099 jesus2099
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package