Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 6688: Added project, role and initiator user URLs to email #16975

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

VineetHBhat
Copy link

fixes: #6688
NOTE:
I'm working on a machine with 4GB RAM, and the make serve step failed due to timeout. However, since the patch only involved minor additions to Jinja2 templates, I proceeded with the submission despite not fully testing it. I understand this isn't ideal, but the fix appeared straightforward.

@VineetHBhat VineetHBhat requested a review from a team as a code owner October 26, 2024 17:33
@VineetHBhat
Copy link
Author

I have executed make reformat and make lint. No changes were made/suggested by these.

Copy link
Member

@di di left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! This is on the right track but we need to make some changes before it can be merged.

Comment on lines +27 to +29
Project "{{ project_name }}" details: https://pypi.org/project/{{ project_name }}
Role "{{ role }}" details: https://pypi.org/help/#collaborator-roles
Added by {{ initiator_username }}: https://pypi.org/user/{{ initiator_username }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few things here:

First, these should use request.route_url(...) to generate the links, for example:

request.route_url('accounts.profile', username=initiator_username)

Second, these should be inline links within the message body, like:

you have been added by <a href="{{ request.route_url('accounts.profile', username=initiator_username) }}">{{ initiator_username }}</a> to a project

And not added at the end.

<a href="

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add links to corresponding resources into the email notification when receiving access to packages
2 participants