thewca / worldcubeassociation.org

All of the code that runs on worldcubeassociation.org
https://www.worldcubeassociation.org/
GNU General Public License v3.0
327 stars 175 forks source link

Add link to registration in website comment for competition #7930

Open simonkellly opened 1 year ago

simonkellly commented 1 year ago

Is your feature request related to a problem? Please describe. Quite frequently, we get emails through the contact form for competitions. These are almost always people looking to delete their registration, or adjust the events they are signed up for. When actioning these requests, one has to go and find the competition page, go to the registrations, find that persons registration, and then finally make the change that they are looking to make.

Describe the solution you'd like It would be ideal to have a link to the person's current registration if it exists for the competition they are making an enquiry about, similar to the one which exists when getting notified about a person's registration

RamanTheDeveloper commented 1 year ago

Hi, has this issue been assigned to someone?

dunkOnIT commented 1 year ago

Hi @RamanTheDeveloper, it hasn't - would you like to work on it?

RamanTheDeveloper commented 1 year ago

Hey, yes please.

dunkOnIT commented 1 year ago

Done! Let me know if you need any help.

RamanTheDeveloper commented 1 year ago

Thanks. Just to get the issue straight, you would like to have a link towards a person's registration added to the email that is sent when an event is changed or registration is deleted?

dunkOnIT commented 1 year ago

Not quite - we want a link to the person's registration added in emails submitted to organizers via the contact form, the user has the option to contact the organizers of a specific competition. (Users can contact organizers with this form with the "Contact organizers of a specific competition" option).

I'm not sure we can link to an individual's registration - but if it is possible, if the user submitting the contact form is logged in, we want to add a link to their registration in the email.

For cases where they aren't logged in, let's add a link to the list of registrations for the competition anyway - I think that will be useful for organizers quite often.

RamanTheDeveloper commented 1 year ago

Oh yeah makes sense now. Thanks for clearing that up.

FinnIckler commented 1 year ago

There is a way to link to an individual registration, it currently looks like this: https://www.worldcubeassociation.org/registrations/{registration_id}/edit

RamanTheDeveloper commented 12 months ago

What mailer class is used to send the email with the contact form information?