-
Notifications
You must be signed in to change notification settings - Fork 10
Feature/join #35
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
base: master
Are you sure you want to change the base?
Feature/join #35
Conversation
1 similar comment
|
For the record I'm uncomfortable about a few aspects of this:
More fundamentally though, I'm unclear about what the semantics of join=... should be. Given |
|
You'd prefer thay any required joining be infered by use of the relation names? can't say I care either way really.. What happens if there are multiple ways to join table A to B though? (if A and B are several levels apart..) Lets say for (almost realy) argument: /user?pantry.name=fred .. where user has_many pantries belongs_to pantry.. AND user belongs_to family has_many pantries belongs_to pantry ... how did you know which chain I meant? |
The syntax for join should be identical to that of prefetch. Prefetch just effectively adds a columns arg to force returning of the related resources. RE: Cuddling else. That fine though its probably worth having a wider discussion on code standards |
|
The removale of the _pre_update_resource_method should have been seperate to this work....Woops. Basically we seemed to be providing a pre update hook when the resource can just use method modifiers to achieve the same thing. |
|
@ungrim97 re _pre_update_resource_method I don't think method modifiers can be used to achieve the same thing. In apps that support multiple media types they'll be multiple method modifiers that are unaware of each other or which should be 'active' for the media type of the current request. I think this is another aspect of the need for abstracting adaptors and serializers. Anyway, off-topic for this PR. |
because the 'pantry' in Note that I have relatively narrow actual experience with DBIC and WAPID so I could easily be going down blind alleys and barking up wrong trees. So do push back, ideally with examples, if I don't seem to be talking sense. |
Ad support for DBIC JOIN command from URL Param. #34