… The above… Yes, this is just weird and user-unfriendly:
It also looks crap in the juju dashboard, so no means to test the logo:
This happens to me all the time and the instructions are not up to date either with what actually goes on.
Also, there is no way to preview the work - so I have to go through a complete release cycle to test. E.g.
edit the icon.svg
charmcraft pack
charmcraft upload
charmcraft release
reload charmhub (not knowing if it will cache previous images or not)
Since this process REQUIRES me to have a stable release, whats my option?
Also, consider this from a charm developers perspective. Spending hours and hours to get a nice looking logo, not getting it to work properly or getting stuck in a nasty upgrade/patch cycle with no means to test reliably the result, this, adds to a bad feeling about whole process of creating quality charms.
Charmhub is loading the placeholder image that it uses when it can’t find a logo, so my guess is that a tool in some part of the process was not happy with the format.
Have you tried inspecting the compressed .charm file to verify that the image is there, in the expected place?
@facundo do you have any advice on troubleshooting?
Hello Erik! I was about to try it and saw that the logo was updated 11 days ago. The problem of this logo not being shown in Charmhub persists with this new version? Thanks!
@erik-lonroth I tried to find the charm page in Charmhub but could not; it’s not public yet, right? Can you paste here a screenshot showing how you see the logo in the page? Thanks!
Ah, your Charm is not published into stable channel yet! That’s why the web page is showing a generic “not found the icon” image…
From the “how to create an icon for your charm” page that you linked above:
BEWARE: unless your charm has (or has had at some point) a release in the stable channel, the icon will not be visible. That is because charmhub only updates the metadata for a charm on stable channel releases (by design). So either release to stable and then roll it back, or wait until your charm is ready for a “stable” stable release.
Oh… shit. That’s not very easy to spot. A user (such as myself) wouldn’t spot this at all. I would really suggest that the icon would be replaced by a “dummy” icon or information that “what you see is not what you get”.
This sent me off iterating multiple times and I expect this question will end up here multiple times in the future to much annoyance.
Also, its impossible for me now to get an idea of how the icon will look unless I publish a “stable” release of this charm - which is by no means stable. Also not a good situation.
The behavior was conceived to be consistent with snaps’ “update metadata on release to stable” - it’s partly why it is how it is.
On first upload, we do populate the metadata with what the snap contains, since otherwise there would be nothing But after that, Facundo is right that we only update on releases to stable.
While that particular behavior is not likely to change, we would like to provide a metadata API similar to that of snapcraft.io, where one could update the icon without requiring a charm upload. This has not been done yet, so for now the best I could offer is to publish the charm to stable to update the icon, then immediately close the stable channel to leave it only on edge.
I don’t know where juju-dashboard gets the icons - I would think it should get it from the deployed charm but that appears not to be the case. That’s more of a question for the juju-dashboard folks.