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

Remove references to programme teams #1861

Merged
merged 5 commits into from
Sep 27, 2024
Merged

Conversation

thomasleese
Copy link
Contributor

This updates various parts of the code to stop using the team attribute of Programme as this will be being removed shortly to support global programmes. See individual commits for more details.

This updates models that make references to the team to use an
alternative option as the relationship through the programme is being
removed.
As programmes will no longer be linked to teams we need to filter on the
teams separately.
The team is being removed from the programme so we need to modify any
references to the programme's team with references to the current user's
team.
This updates the policies to filter the objects on the teams directly
rather than from the programme, which is removing the concept of
programmes being attached to teams.
This adds the `has_many` relationships to the team and programme models,
through the new `TeamProgramme` model.
@thomasleese thomasleese enabled auto-merge (rebase) September 27, 2024 11:49
@tvararu tvararu temporarily deployed to mavis-pr-1861 September 27, 2024 11:49 Inactive
Copy link

sonarcloud bot commented Sep 27, 2024

@thomasleese thomasleese merged commit 825090b into main Sep 27, 2024
12 checks passed
@thomasleese thomasleese deleted the remove-references-to-teams branch September 27, 2024 11:53
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.

2 participants