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

Allow shared users to be set as accountable/responsible as well #15249

Merged
merged 5 commits into from
Apr 15, 2024

Conversation

klaustopher
Copy link
Contributor

The responsible field still used the project specific autocompleter. This was moved to the work package when the package was persisted. I found that the available_responsibles API endpoint returns the same data as the available_assignees endpoint. Since it is not used in any places, I have also removed the endpoint

Fixes https://community.openproject.org/projects/openproject/work_packages/51551

@klaustopher klaustopher force-pushed the shared-user-as-accountable branch from 88118cf to d15d38c Compare April 15, 2024 10:50
@klaustopher klaustopher changed the base branch from dev to release/14.0 April 15, 2024 10:50
@ulferts ulferts self-requested a review April 15, 2024 11:24
@@ -67,7 +67,6 @@ class ProjectsAPI < ::API::OpenProjectAPI
mount ::API::V3::Projects::UpdateFormAPI

mount API::V3::Projects::AvailableAssigneesAPI
mount API::V3::Projects::AvailableResponsiblesAPI
Copy link
Contributor Author

@klaustopher klaustopher Apr 15, 2024

Choose a reason for hiding this comment

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

Whooops, sorry for overlooking and thanks for fixing. I did not restart my server after removing the class. I wonder why the tests did not fail when autoloading? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, sorry for stepping over the reviewer boundaries here but it was so straight forward that it seemed weird to note it down instead.

What was weird is that the CI didn't run on your commit d15d38c before otherwise it would have informed you already.

@@ -67,7 +67,6 @@ class ProjectsAPI < ::API::OpenProjectAPI
mount ::API::V3::Projects::UpdateFormAPI

mount API::V3::Projects::AvailableAssigneesAPI
mount API::V3::Projects::AvailableResponsiblesAPI
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, sorry for stepping over the reviewer boundaries here but it was so straight forward that it seemed weird to note it down instead.

What was weird is that the CI didn't run on your commit d15d38c before otherwise it would have informed you already.

@klaustopher klaustopher merged commit 5229680 into release/14.0 Apr 15, 2024
11 checks passed
@klaustopher klaustopher deleted the shared-user-as-accountable branch April 15, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants