pythondotorg icon indicating copy to clipboard operation
pythondotorg copied to clipboard

A way to "merge" sponsor objects in python.org/admin

Open loren-c opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. Sometimes when submitting an application on our sponsor application page , sponsors will unintentionally create a second sponsor object for the same company.

This creates problems with populating renewal dates among other things--If the contract is a renewal, but it is not connected to the sponsor object associated with the last contract, the date of last contract is "UNKNOWN" and when I try to download the renewal contract I get a 500 error.

Describe the solution you'd like It would be nice to have a way in https://www.python.org/admin/sponsors/sponsor/ to merge duplicate sponsor objects. Ideally they would retain the information/files from the most recently created sponsor object and/or ask which to retain.

Describe alternatives you've considered Currently I haven't been able to find a way to generate a renewal contract in the case of duplicate sponsor objects, so I've just been manually creating the contract from the template in those cases. (E.g. frequently the sponsor contacts change from year to year, and sometimes the logo gets updated or other details change.)

Additional context

Screenshot 2024-02-16 at 17-11-13 Select sponsor to change python org

@ewdurbin

loren-c avatar Feb 16 '24 22:02 loren-c

As a side note, maybe we should restrict the sponsor field name to be unique to prevent the users from doing this

JacobCoffee avatar Sep 16 '24 23:09 JacobCoffee

The only potential issue with that is sometimes the person submitting the application isn't already associated with the sponsor, so it could result in those people not submitting an application if they are blocked from using the company name

loren-c avatar Sep 27 '24 19:09 loren-c