Skip to content

Feature/wip filtering relationship - #35

Merged
gr0uch merged 7 commits into
fortunejs:masterfrom
cecemel:feature/wip-filtering-relationship
Jun 23, 2020
Merged

Feature/wip filtering relationship#35
gr0uch merged 7 commits into
fortunejs:masterfrom
cecemel:feature/wip-filtering-relationship

Conversation

@cecemel

@cecemel cecemel commented May 15, 2020

Copy link
Copy Markdown
Contributor

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.

cecemel added 2 commits May 8, 2020 18:45
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.

@gr0uch gr0uch left a comment

Copy link
Copy Markdown
Member

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

Comment thread lib/helpers.js Outdated
Comment thread lib/helpers.js Outdated
@cecemel

cecemel commented Jun 17, 2020

Copy link
Copy Markdown
Contributor Author

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