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 more queries to Query namespace, with parent object to call between modules #1334

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

haarg
Copy link
Member

@haarg haarg commented Dec 28, 2024

Adds a parent object to hold all of the query objects, allowing them to easily access each other. Use this object in most of the controller classes, rather than using the MetaCPAN::Model instance.

Remove all of the no longer used delegated methods in the model set classes. For the set classes that no longer have any of their own methods, remove them.

Move several methods from Model to Query.

@haarg haarg force-pushed the haarg/query-parent-object branch from 42e05fe to 478277c Compare December 28, 2024 19:17
This allows query objects to fetch the parent object, and then fetch
other query objects via it. This makes it much easier for query methods
to call other query objects, which is needed for convert some of the
model queries.
@haarg haarg force-pushed the haarg/query-parent-object branch from 478277c to ecfa323 Compare December 28, 2024 20:00
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.

1 participant