Skip to content

[RFC] API Endpoint to fetch historic recipe by sha? (for proper removing & better update)Β #593

Closed
@weaverryan

Description

@weaverryan

Hi!

This can probably only be answered by Fabien. Is it feasible for the Flex API to support fetching an old version of a recipe? For example, suppose we're talking about twig/extensions. Would it be possible to ask for the c986e32 sha of the 1.0 version of the recipe (which would be one commit before HEAD - https://github.com/symfony/recipes/commits/master/twig/extensions/1.0 )?

If we could do this, it would allow us to do two more things slightly more accurately:

  1. On package removal, we could remove using the same version of a recipe as the user originally had installed. Minor - but better.

  2. On package update, we could remove using the original recipe first and THEN upgrade to the latest. That would fix the problem where a file/parameter that was added in the OLD recipe is NOT added in the new recipe. Currently, that file/parameters is NOT removed. But if we were able to remove the original recipe, it WOULD remove that old file/parameter.

So, is that possible to add to the API?

Thank you :).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions