-
-
Notifications
You must be signed in to change notification settings - Fork 751
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
fix(client): Replace placeholders in URL with route params #3270
Conversation
Thank you for putting this together! For the Socket client, we'd probably do a similar thing in the |
Ok, I update the code in my local branch, but I'm searching where to put tests. I think I have to put them in the And, by the way, do you want I push the code for the socket.io client in this branch ? Or do you prefer another PR ? |
It can go in this branch and it is in the file (and line) that I linked in my previous comment. |
Sorry, I think I didn't make myself clear. |
docs(client): Add documentation for route placeholders
4103a1b
to
c04d0a8
Compare
Tests added & pushed. |
Great, thank you for putting this together! I'm trying to decide if we want to get it out sooner as a patch release or look at what else should go into a feature release. |
All right, |
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.
looks great!
Will go out with the next patch release. Thank you again! |
Summary
Related to #2962
When using the feathers client (bundled) on service with placeholders, we can't replace placeholders with route params, like it is done on server side.
This PR addresses this use case, for the rest-client.
I create some tests, not sure if I put them in the right place, neither if this will be sufficient.
Other Information
issues when running tests
When running tests on my machine, with
npm test
at the root directory,lerna fails:
I also see that the
rest-client
test suite is not runned by lerna. Don't know how to tell lerna to runrest-client
tests.I check that, when running
npm test
inpackages/rest-client
this is workingissues when running vitepress
Maybe I didn't find the doc to document feathers ;-)
But when I make a fresh
npm install
in the docs folder, then runnpm run dev
, I have some issues. (maybe because it retrieves the latest version,rc.10
)I can create issue for that if needed.
So I write a new paragraph for the rest client, tell me if it's ok for you.