In TrayPublisher there is a Variant, it is filled in default_variants, but sometimes variants appear there that I didn’t add. Where do they come from? Here’s an example:
Where do prm and the second main come from? I’m especially interested in where the second main comes from and what the slash that separates it from prm and the first main means.
Essentially what it does is, finds all the other products of the same product type and it does some sort of str.removeprefix(product_type) so that if existing products under a given context exist - they are also listed.
So in regular use cases it should provide you the existing variants of publishes existing under the current context. But because variant isn’t data directly stored with the published product we can only “guess” the variant names from the product names currently. There’s some debate going on whether variant should be stored data however.
In short, it should list all the existing variant names for the product type in your current context.