research-software-directory / RSD-as-a-service

This repo contains the new RSD-as-a-service implementation
https://research.software
22 stars 15 forks source link

Duplicated (primary) maintainer in the maintainer list #1230

Open dmijatovic opened 2 weeks ago

dmijatovic commented 2 weeks ago

If the primary maintainer uses invite link it is shown twice in the list, as primary maintainer (cannot be deleted) and as maintainer. The RPC use union which should ensure unique entries, however in this case the value is_primary is different and therefore two entries are generated.

This error is present in organisation and communities maintainer lists. The underlying RPC are maintainers_of_organisation and maintainers_of_community.

Example

image