Skip to content

Conversation

@binaryk
Copy link
Collaborator

@binaryk binaryk commented Aug 28, 2025

No description provided.

@what-the-diff
Copy link

what-the-diff bot commented Aug 28, 2025

PR Summary

  • Enhanced Related Model Filtering: A new method forMcp has been added to RelatedCollection class that tailors related model data specifically for the Management Control Panel (MCP). This method plays a critical role in streamlining the filtration process of related model data.

  • Integrated Context-Based Processing: The resolve methods in various classes now consider the MCP context. This allows these methods to selectively utilize McpRequest which ultimately enhances context-dependent functionalities.

  • Tools Leveraging guessModelClassName Method: Tools such as McpActionTool, McpGetterTool, and more, now leverage guessModelClassName over direct static property access. This enhances code maintainability and reduces potential errors.

  • Improved Searching Functionality in RepositorySearchService: A new check for Scout availability has been introduced. Based on this check, the searching logic adapts, thus improving the resilience of the search functionality.

  • Better Error Handling and MCP Processing in Repository: Implementing richer error handling mechanisms in search methods, they are now designed to fall back to database queries if Scout fails. Added enhancements to 'Repository' to handle MCP more smoothly.

  • Imports Added and New Test Method: Various classes have been imported for better relationship handling, and a new test method test_mcp_http_integration_with_relationships_uses_mcp_specific_fields has been introduced to validate the MCP integration.

  • Repository Enhancements for MCP: A new mcpPostRepository has been created that employs the HasMcpTools trait. This provides a set of MCP-specific fields for posts alongside ensuring proper user relationship handling.

  • User Repository Adapted for MCP: A new UserWithMcpIndexFields class has been added to the User Repository. This class uses MCP tools and custom fields for MCP index, effectively facilitating MCP's operations on user data.

  • Testing MCP Relationships: A new test method test_mcp_relationship_respects_has_mcp_tools_trait ensures that the MCP's handling of relationships is tested rigorously with respect to its interaction with a regular user repository.

  • Success Feedback: Successful detection of MCP-specific fields during testing will now trigger an intuitive success message, enhancing the feedback mechanism of the test suite.

@binaryk binaryk merged commit e37cc22 into sortable Aug 28, 2025
1 of 49 checks passed
binaryk added a commit that referenced this pull request Aug 28, 2025
* feat: adding fluent api for sortable

* Fix styling

* fix: matchable

* Fix styling

* fix: wip

* fix: searchables

* fix: docs

* fix: wip

* Fix styling

* Fix/relatd mcp performance (#648)

* fix: related fields laoded from index

* Fix styling

* fix: no index in repository

* Fix styling

* fix: wip

* Fix styling

* Fix styling

* fix: wip

---------

Co-authored-by: binaryk <binaryk@users.noreply.github.com>

* fix: search improve

* Fix styling

* fix: adding search using lazy loading for belongs to (#649)

* fix: adding search using lazy loading for belongs to

* Fix styling

* Fix styling

* fix: wip

* fix: wip

---------

Co-authored-by: binaryk <binaryk@users.noreply.github.com>

* fix: wip

* fix: cache implementation (#650)

* fix: cache implementation

* Fix styling

---------

Co-authored-by: binaryk <binaryk@users.noreply.github.com>

---------

Co-authored-by: binaryk <binaryk@users.noreply.github.com>
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