Skip to content

[Bug] List of default recommended licenses is not appearing in Research Outputs template creator view #1075

Open

Description

@bofstein

Steps to reproduce:

  • Create a Template
  • Add a Research Outputs Question
  • Click to customize Licenses
  • Observe that the default license list is empty
  • Expected behavior: There are 3 default recommended licenses that appear in the list (two CCs and one MIT)
Image

Activity

  1. added theissue type on Dec 19, 2025
  2. briri commented on Dec 19, 2025

    @briri
    Collaborator

    The query returns them for me if I narrow the search down with a filter. The max limit for the pagination is 100 items.

    {
      "paginationOptions": {
        "limit": 100
      },
      "term": "CC"
    }
    
    query Licenses($paginationOptions: PaginationOptions, $term: String) {
      licenses(paginationOptions: $paginationOptions, term: $term) {
        totalCount
        limit
        nextCursor
        items {
          uri
          recommended
          id
        }
      }
    }
    

    We may need to increase the max pagination limit for this query (I can't recall what it looks like when the user searches for others).

    You can call the query that returns the recommended ones separately as well:

    {
      "recommended": true
    }
    
    query RecommendedLicenses($recommended: Boolean!) {
      recommendedLicenses(recommended: $recommended) {
        id
        name
        recommended
        uri
      }
    }
    
  3. jupiter007 commented on Dec 19, 2025

    @jupiter007
    Collaborator

    @bofstein and @briri this may be a backend issue. When I go into Apollo Explorer on Dev server, and query for licenses I get the following result, which does not include any recommended:

    {
      "data": {
        "licenses": {
          "items": [
            {
              "recommended": false,
              "name": "0BSD",
              "id": 1
            },
            {
              "recommended": false,
              "name": "3D-Slicer-1.0",
              "id": 626
            },
            {
              "recommended": false,
              "name": "AAL",
              "id": 2
            },
            {
              "recommended": false,
              "name": "Abstyles",
              "id": 24
            },
            {
              "recommended": false,
              "name": "AdaCore-doc",
              "id": 480
            },
            {
              "recommended": false,
              "name": "Adobe-2006",
              "id": 25
            },
            {
              "recommended": false,
              "name": "Adobe-Display-PostScript",
              "id": 576
            },
            {
              "recommended": false,
              "name": "Adobe-Glyph",
              "id": 26
            },
            {
              "recommended": false,
              "name": "Adobe-Utopia",
              "id": 544
            },
            {
              "recommended": false,
              "name": "ADSL",
              "id": 3
            },
            {
              "recommended": false,
              "name": "AFL-1.1",
              "id": 4
            },
            {
              "recommended": false,
              "name": "AFL-1.2",
              "id": 5
            },
            {
              "recommended": false,
              "name": "AFL-2.0",
              "id": 6
            },
            {
              "recommended": false,
              "name": "AFL-2.1",
              "id": 7
            },
            {
              "recommended": false,
              "name": "AFL-3.0",
              "id": 8
            },
            {
              "recommended": false,
              "name": "Afmparse",
              "id": 27
            },
            {
              "recommended": false,
              "name": "AGPL-1.0-only",
              "id": 9
            },
            {
              "recommended": false,
              "name": "AGPL-1.0-or-later",
              "id": 10
            },
            {
              "recommended": false,
              "name": "AGPL-3.0-only",
              "id": 11
            },
            {
              "recommended": false,
              "name": "AGPL-3.0-or-later",
              "id": 12
            }
          ]
        }
      }
    }
    
  4. jupiter007 commented on Dec 19, 2025

    @jupiter007
    Collaborator

    The query returns them for me if I narrow the search down with a filter. The max limit for the pagination is 100 items.

    {
      "paginationOptions": {
        "limit": 100
      },
      "term": "CC"
    }
    
    query Licenses($paginationOptions: PaginationOptions, $term: String) {
      licenses(paginationOptions: $paginationOptions, term: $term) {
        totalCount
        limit
        nextCursor
        items {
          uri
          recommended
          id
        }
      }
    }
    

    We may need to increase the max pagination limit for this query (I can't recall what it looks like when the user searches for others).

    You can call the query that returns the recommended ones separately as well:

    {
      "recommended": true
    }
    
    query RecommendedLicenses($recommended: Boolean!) {
      recommendedLicenses(recommended: $recommended) {
        id
        name
        recommended
        uri
      }
    }
    

    This is the query that the frontend is running when I don't get the recommended:

    query Licenses {
      licenses {
        items {
          recommended
          name
          id
        }
      }
    }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions