canonical / charmhub.io

GNU General Public License v3.0
9 stars 23 forks source link

fix: channel dropdown logic for multi-base channels #1839

Closed M7mdisk closed 2 weeks ago

M7mdisk commented 4 weeks ago

Done

How to QA

Note: small caveat - The bases for each channel reflect all bases supported by the channel, not just the bases supported by the displayed revision

Testing

Issue / Card

Fixes WD-10284, #1793 and #1741

webteam-app commented 4 weeks ago

Demo

Jenkins

demos.haus

lukasSerelis commented 4 weeks ago

Still some funkiness happening. For example, the ceph charm, if you select s390x as architecture, a bunch of base versions pop up, which is odd, we should have those exposed earlier, but might be juju info issue too.

M7mdisk commented 4 weeks ago

Good catch. @lukasSerelis

I think this is happening because we're sorting by revision but juju info sorts by release date. if you look at luminous/edge for example, we're showing release 43, which is somehow older than release 36.

lukasSerelis commented 4 weeks ago

Smaller detail, architecture dropdown order of elements seems to have changed their order. I'm not sure how it was sorted before, but would be best to sort it logically, like a-z.

lukasSerelis commented 4 weeks ago

A bigger detail - we're still not displaying all bases supported. This charm, doesn't show ubuntu@22.04 supported at all, but if you juju info pgbouncer --base=ubuntu@22.04 you can see that it is supported image

Additionally, even the charm track list show the 22.04 version for some tracks, but doesn't surface it for filtering. image

lukasSerelis commented 4 weeks ago

Another issue - might be out of scope for this, is that base versions aren't consistently displayed under platforms. image image

sometimes some versions are show, sometimes only 1