Unable to match cs:~foo/name revisions to cs:name revisions #631

Open
stub42 opened this Issue Jun 2, 2016 · 2 comments

Comments

Projects
None yet
3 participants

stub42 commented Jun 2, 2016

I publish the PostgreSQL charm to cs:~postgresql-charmers/postgresql, and get back a revision like cs:~postgresql-charmers/postgresql-5. This is totally unrelated to the revision that end users will use, cs:postgresql-101. The end result being that when bug reports come in I have no idea what version of code was being run, unless I somehow maintain this mapping myself.

Member

frankban commented Jun 10, 2016

Yes the charm store needs to expose the link between entities and their promulgated revisions.

@frankban frankban closed this Jun 10, 2016

@frankban frankban reopened this Jun 10, 2016

@frankban frankban added this to the next milestone Jun 10, 2016

@stub42 stub42 referenced this issue in juju/charmstore-client Jun 10, 2016

Open

Return promulgated revision on push, publish or show #75

Member

johnsca commented Jun 13, 2016

As a temporary manual work around, you can use the hash field returned by charm show to find the right revision, if you already know which namespace is the promulgated one (which you can sort of figure out by the perm field):

$ [[ `charm show cs:postgresql-101 hash` == `charm show cs:~postgresql-charmers/postgresql-5 hash` ]] && echo Match
Match
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment