Skip to content

Remove partner role#4790

Merged
wes-otf merged 3 commits intomainfrom
maintenance/remove-partner-role
Apr 1, 2026
Merged

Remove partner role#4790
wes-otf merged 3 commits intomainfrom
maintenance/remove-partner-role

Conversation

@wes-otf
Copy link
Copy Markdown
Contributor

@wes-otf wes-otf commented Mar 31, 2026

Closes #4719. Migrates all existing partners to coapplicants with comment privileges and removes the partner role from Hypha. This also handles swapping partner comment visibility to applicant

Test Steps

  • All partner views are removed (update partner, add partner, etc)
  • Comment visibility options show up as expected

After migrations are ran confirm...

  • all active partners are coapplicants w/ comment privileges
  • the partner role is removed from Hypha
  • activity visibility that previously specified partners (ie. partners or applicant partners) are now applicant

@wes-otf wes-otf force-pushed the maintenance/remove-partner-role branch from dfd8ad8 to 39c7b4b Compare March 31, 2026 14:43
@wes-otf wes-otf marked this pull request as ready for review March 31, 2026 14:57
@wes-otf wes-otf requested a review from frjo March 31, 2026 14:57
Copy link
Copy Markdown
Member

@frjo frjo left a comment

Choose a reason for hiding this comment

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

This looks good.

One "x" to many in the code and there are some mentions of Partners in the docs we should remove.

docs/user-guides/creating-a-user-account.md
docs/references/user-roles.md

After that I think it is good to go.

We need to state this change clearly in the release notes so organisations using partners know what will happen.

# `user_qs` (ie. A comment made only to staff from a partner).
if user.is_applicant:
# Handle the edge case where a partner or reviewer is also an
# Handle the edge case where a xreviewer is also an
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

An extra "x" has slipped in here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

nice eye!

name=PARTNER_GROUP_NAME
).user_set.values_list("id", flat=True)
Group.objects.get(name="Applicant").user_set.add(*all_partner_ids)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice work on this one!

@wes-otf
Copy link
Copy Markdown
Contributor Author

wes-otf commented Mar 31, 2026

Tossed all mentions of partners in the docs! Definitely agree with the release notes aspect.

@wes-otf wes-otf requested a review from frjo March 31, 2026 21:15
@wes-otf wes-otf merged commit 3435052 into main Apr 1, 2026
8 checks passed
@frjo frjo added Type: Enhancement This is an improvement of an existing thing (not a new thing, which would be a feature). Type: Minor Minor change, used in release drafter labels Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Enhancement This is an improvement of an existing thing (not a new thing, which would be a feature). Type: Minor Minor change, used in release drafter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Depreciate "Partner" role/feature

2 participants