openproject icon indicating copy to clipboard operation
openproject copied to clipboard

Turn menu factory project independent - move ProjectQuery services and contracts

Open ulferts opened this issue 1 year ago • 0 comments

The goal of this PR is to start generalizing the solutions introduced for the project index page so that they can be reused for other pages as well. To that end:

  • The factory used for finding queries e.g. in the menu have become project independent. The static queries that used to be part of it are moved into their own Static class. Some tests were removed which's code was only used in the test. Since production code made no use of the code paths, the tests have been removed.
  • Services and contracts for ProjectQueries have been moved to become more railsy. This is in line with moving the ProjectQuery itself from Queries::Projects::ProjectQuery to just ProjectQuery

ulferts avatar Aug 15 '24 13:08 ulferts