-
Notifications
You must be signed in to change notification settings - Fork 43
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
Allow complex queries with table joins #62
Conversation
Sorry to get to this so late. The code looks good and I'm very enthusiastic about your test coverage. The only missing thing is documentation - sorry, can be tedious, but it's super-important. New features need clear and comprehensive documentation in It looks like a subsection addition under
The reader wants to understand what this feature is for and how it would work for them with their own data model, so that's why it's not good to force the reader to rely on assumptions and guesswork (e.g. be very clear that you have a run-of-the-mill ApplicationRecord-based User model with a Hope that's OK. |
* Update outdated scim_queryable_attributes format * Add documentation for relation queries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again is all good except docs - AREL use still not explained - see review comment for a suggestion about putting that into the RDoc comments of the mixin.
(Edited to note - I'm definitely really keen to get this merged, I just wanna make sure people know how to use it).
@pond let me know how you feel about the changes. I expanded the options documentation a bit, allowing us to introduce more queryable attribute options in the future (I can see a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment additions are enough. The options docs aren't really RDoc, but I'll clean that up before releasing the bumped gem version. This is good to go!
Formatting & RDoc markup tweaks can be seen in the diff at https://github.com/RIPAGlobal/scimitar/pull/67/files - hope you're OK with those changes; let me know if not (e.g. comment on that PR, even if it's merged). Edited to add - screenshot of RDoc rendering: |
Allow using external columns for complex joins. In the bellow example we're able to query the user membership within a group:
Then: