Skip to content

Return crate id from match_version #569

Closed
@jyn514

Description

@jyn514

If I look at where match_version is used, it's always followed by a query on the database fetching the rustdoc_status.
- here we fetch rustdoc_status: https://github.com/rust-lang/docs.rs/blob/master/src/web/releases.rs#L486
- here we fetch rustdoc_status and target_name: https://github.com/rust-lang/docs.rs/blob/master/src/web/rustdoc.rs#L160

Maybe we can change match_version to expose some additional information that makes the next queries easier or, even better, unnecessary?
A simple tweak would be to return the id of the release, making the next query easier.

Originally posted by @koenaad in #565 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyEffort: Should be easy to implement and would make a good first PRmentorThis has instructions for getting started

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions