Provide URL for latest report · Issue #55 · allure-framework/allure-report-storage · GitHub
Skip to content

Provide URL for latest report #55

Open

Description

@Phil-Turner87

What problem should this solve?

Currently if you want to view the latest report for a repo you would have to navigate to the tree page and then click on the latest report e.g. http://localhost:3000/reports/tree?repo=playwright-example

This isn't ideal and it would be useful to provide a link to view the latest report, so that when the report storage is correctly hosted this link can be shared and bookmarked by anyone who would want to check on the status of the latest test runs. The extra step of navigating via the tree page is inconvenient and could be confusing to less technical users.

More information about a possible solution can be found in the answer to this question: https://github.com/orgs/allure-framework/discussions/3484

What would you like to happen?

The report storage should provide a URL to the latest report for a repo such as /reports/latest?repo=playwright-example&branch=main. The branch parameter could be optional so that it would default to the main branch if only the repo parameter is provided.

It would also be useful to be able to link to the graphs page as part of this change, although I'm not sure how that would work as part of the URL (on the report this is done by simply adding #charts to the URL).

Info from the above discussion suggests this would only require a small change:

The storage layer already has the required lookup, findLatestByRepoAndBranch, so this would be a relatively small feature rather than a change to the data model: https://github.com/allure-framework/allure-report-storage/blob/main/src/repositories/reports.ts#L185-L199.

Alternatives considered

No response

Additional context

No response

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions