-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Information provided for a charm does not correspond to the selected revision #1399
Comments
We can explore feasibility of allowing the This would have to be done on the charmhub.io backend, and would need a bunch of internal wiring to fetch this info from the revision service which is an extra API call so we need to consider performance impact and etc. It's definitely not a frontend-only issue, it needs backend support as well. We might be able to hack similar functionality in, with creative use of the refresh API, but I'd rather reserve refresh for actual "will result on a charm install, update or download" operations. |
One big use case is having any docs submitted to a Discourse channel, which is the recommended method, to be called upon by Charmhub so that the correct docs are displayed. I understand that, after speaking with @Roadmaster out of band, as long as the I also know now that documentation hosted on Discourse is not a backend concern. All the backend does is give the Discourse page URL to the frontend and the latter handles the rest. Hence, assistance from the web team may be needed. |
It appears that I was wrong with respect to the tabs. That is, the Actions tab displayed is accurate according to the selected channel. However, my use case involves Discourse-based docs. Should this not also be possible if each track is backed by a unique git branch? |
It is possible to get specific channel contents in default-release by using a channel param, e.g: Cheers |
We already request the @verterok, is this the right field when using the channel parameter? I don't see any other field to obtain the metadata.yaml for specific tracks. |
@jkfran that's the correct field 👍 |
The cache seems to be fine because our URLs also include the I think the issue might be because this parameter in the URL is not persistent when clicking around. |
I created another issue for this track selection problem: #1423 |
I believe the issue here is that if you switch the track (stable -> edge) you see the same set of docs. It does not make sense to create a modified clone of the docs for each track in discourse. So, I would suggest we recommend using a single documentation for all tracks but add annotations that detail what version something was added or removed to the package. |
As I understand it, the information displayed in a charm's tabs (Description, Resources, Libraries, Configure, Actions, etc) is borne out of the revision pointing at the charm's
default-release
key, which is usually thelatest/stable
channel. This means that when an alternate channel is selected in the Charmhub all the above information can potentially become inaccurate. Some charms differ significantly between channels, OpenStack charms in particular - where tracks are used extensively.I was prompted to file this bug due to the impact it has on the documentation that we are being encouraged to add to the charms.
The text was updated successfully, but these errors were encountered: