Composer is not handling multiple plugins with the same package name

Description

When having multiple versions of the same plugin (in my case cloudify-aws-plugin) I get the following error in Composer when trying editing a copy (click on “Edit a copy in the Composer” button):

and the Composer is stuck:

Steps to Reproduce

See description.

Why Propose Close?

None

Activity

Show:
Alex Molev
August 12, 2020, 11:23 AM

I love when there is no comment regarding why it wasn’t fix and closed

Alex Molev
August 12, 2020, 11:25 AM

Does it make sense to estimate if we have the same plugin with the same version for different distributions the node types should be the same?

So we can use the first plugin from the array?

what do you think?

Jakub Niezgoda
August 13, 2020, 6:17 AM

Does it make sense to estimate if we have the same plugin with the same version for different distributions the node types should be the same?

I would say so, but I’m not plugins expert.

So we can use the first plugin from the array?

But what if we have also different versions of the same plugin? I wasn’t sure it is allowed, but just tested and it is allowed.

Jakub Niezgoda
August 20, 2020, 8:53 AM

Just for the reference - the following will be implemented - as we agreed:

  1. Multiple plugins installed with the same package_name will not be treated as errors in the Composer.

  2. If there are multiple plugins with different distros set, then take any.

  3. If there are multiple plugins with different versions, then take the latest.

Jakub Niezgoda
August 21, 2020, 1:05 PM

Fix implemented according to guidelines mentioned above.
Waiting for review.

Fixed

Assignee

Jakub Niezgoda

Reporter

Jakub Niezgoda

Labels

Severity

High

Target Version

5.1

Premium Only

yes

Found In Version

5.1

QA Owner

None

Bug Type

unknown

Customer Encountered

No

Customer Name

None

Release Notes

yes

Priority

None

Epic Link

Sprint

None

Priority

Unprioritized
Configure