Skip to content
This repository was archived by the owner on Sep 22, 2026. It is now read-only.
This repository was archived by the owner on Sep 22, 2026. It is now read-only.

Retrieving models/tests by alias doesn't work for all users #340

Closed

Description

@apdavison

This is because retrieving by alias uses queries that are stored in the "model" space, and so only accessible to model curators.

This may be fixed in future, i.e. released queries will be executable by anyone (Oli said: "technically speaking, queries are indeed normal resources and therefore can be released and are readable for the end user e.g. through the instances api - but we need to review the queries endpoint to make the query execution happening (so far we've always assumed queries to be read from "in progress" in a Slack conversation, early March 2023).

For now, the best solution would probably be to generate the queries (or read from file) within the VF API.

Activity

  1. apdavison commented on Jun 7, 2023

    @apdavison
    MemberAuthor

    The workaround until this is fixed is to retrieve by ID

  2. apdavison commented on Sep 22, 2026

    @apdavison
    MemberAuthor

    Fixed. Retrieving by alias now works for any caller, including anonymous ones (a stricter case than the non-curator user this issue was about). Checked against production (build 038d52dc) on 2026-09-22: both /models/{alias} and /tests/{alias} return 200 without credentials, as do the equivalent lookups by UUID.

    The workaround noted above, retrieving by ID, is no longer needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions