Skip to content

Feature Request: Fetching the last N versions of a resource #236

Closed

Description

@dsabeti

We're building a pipeline that needs to consume the 3 most recent versions of a resource. We were originally thinking that the "version" maintained by concourse internally would simply be a list of versions that the resource itself captures. Something like this:

git concourse version
a [ a ]
b [a, b]
c [a, b, c]
d [b, c, d]

But perhaps a better way to do this is to simply request the last N versions from concourse itself. It would be great if we could write the following in our build plan:

- get: myResource
  num_versions: 3

with num_versions defaulting to 1.

Maybe people would prefer this:

- get: myResource
  additional_versions: 2

Another thing to consider is allowing the build plan choose a specific version relative to the most recent one. For example, getting the _second_ most recent version might look something like this:

- get: myResource
  versions_back: [ 1 ]

with versions_back defaulting to [ 0 ]. This would be useful if a resource version is yanked. There is something appealing about this solution, because it solves the first problem as well (you could specify versions_back: [0, 1, 2] to get the three most recent versions).

Anyway, we don't have a strong preference for naming, but these features, especially the first part (getting multiple versions) would be very helpful. Any thoughts?

Activity

  1. concourse-bot commented on Dec 17, 2015

    @concourse-bot

    Hi there!

    We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

    The current status is as follows:

    • #110368826 Feature Request: Fetching the last N versions of a resource

    This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

  2. jama22 commented on Jul 25, 2017

    @jama22

    Hey there!

    We're automatically closing this issue since the original poster (or another commenter) hasn't been active in the past six months. We therefore assume that this issue has been lost or resolved on its own. Close issues that remain inactive for a long period may get automatically locked.

    Don't worry though; if this is in error, let us know with a comment and we'll be happy to reopen the issue.
    Thanks!

  3. dsabeti commented on Jul 25, 2017

    @dsabeti
    Author

    Hey there! I've moved on from the team that needed this in the first place, so I don't myself need the feature. Still, it seems like a reasonable feature request, so it would be nice for the issue to be re-opened, or to get a definitive "Will not implement" from the Concourse team.

    Thanks!

  4. added a commit that references this issue on May 23, 2018
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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions