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

Feature/wip filtering relationship #35

Merged
merged 7 commits into from
Jun 23, 2020

Conversation

cecemel
Copy link
Contributor

@cecemel cecemel commented May 15, 2020

As a try-out, I extend the fuzzy matching on relationship. Here the implementation in fortune-postgres.
Please refer to fortunejs/fortune-json-api#73 for API discussions.

Notes
-----
I am unsure what field of options may be used.
The options.query already seemed to be used, so started looking for
another field.

As I understand it, Adapter.find leaves the possibility of extra
fields on the options object unspecified. Therefore, I added the
fuzzyMatch field.
As a try out, I extend the fuzzy matching on relationship

 - Abstracted away relation filter parsing

 - Change filter[author.posts] to filter[author:posts].
   Ember (considered baseline use case) doesn't like parsing the former
   format in its queryParams parser.
Copy link
Member

@gr0uch gr0uch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks fine. Can you run the tests though?

pretty sure this will fail lint test

lib/helpers.js Outdated Show resolved Hide resolved
lib/helpers.js Outdated Show resolved Hide resolved
@cecemel
Copy link
Contributor Author

cecemel commented Jun 17, 2020

Think it should pass linting tests too now

@gr0uch gr0uch merged commit 3a16f86 into fortunejs:master Jun 23, 2020
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