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

Move ProjectQuery model to the main namespace #15983

Merged
merged 4 commits into from
Jun 27, 2024
Merged

Conversation

klaustopher
Copy link
Contributor

With the current place where the model is, we break all sorts of automations that Rails bring us (i.e. automatically building proper routes with url_for(@project_query). This will become really problematic when implementing sharing #15971.

This PR moves the class to the main namespace without any namespacing so it can be accessed like any other model

Copy link
Contributor

@aaron-contreras aaron-contreras 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 to me 👍 Did a short test with the project list sharing branch and path resolution is working as expected

I think Jens's should weight in too as you requested his review specifically

@klaustopher
Copy link
Contributor Author

@ulferts has pointed out that we should probably specify how we want to handle persisted queries in the future: https://community.openproject.org/projects/openproject/work_packages/55991

@klaustopher klaustopher merged commit 880d2ae into dev Jun 27, 2024
10 checks passed
@klaustopher klaustopher deleted the project-query-model-name branch June 27, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants