-
Notifications
You must be signed in to change notification settings - Fork 10
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
Openmrs http helpers #936
Openmrs http helpers #936
Conversation
Openmrs extra http wrappers
Hi @PiusKariuki - can you continue development on this branch please? I've got a few calls this morning but I'll get this reviewed for you today |
Sure thing Joe. This is much easier than working from a fork. I'll be working from this repo on all subsequent contributions |
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.
Fantastic work @PiusKariuki , nice and clean and simple.
I've left some comments which are mostly the result of me not specifying the requirements of the work properly for you :)
Hi @josephjclark ,
|
Hi @PiusKariuki - off the top of my head I don't. I see lots of commits, have you resolved it? Is it related to this PR or the docs stuff? The docs fix should ideally be in a different PR by the way. It's probably OK to branch off this but ideally we'd fix it on main and merge these two together. |
Hi @josephjclark I just figured it out a minute ago. Sometimes the handlebars package fails to install therefore the handlebars-helper function fail during generation. Should I declare it as a dev-dependency in the package.json that in the build folder ? |
@josephjclark No worries I will be fixing it in a different PR. The commits here are purely for the http wrapper functions. |
@PiusKariuki that's pretty strange. Thanks for flagging, I'll take a look at it. I haven't heard this before. Dependencies are totally deterministic and shouldn't fail to install 🤔 I'll run some tests on Monday |
Thanks @PiusKariuki - I am approving this PR and releasing soon EDIT: Actually I'll wait a minute for the unit test stuff and this possible docs fix 🤞 |
…rs-http-helpers # Conflicts: # packages/openmrs/src/http.js
Good catch on the typedef @PiusKariuki, thanks! |
@josephjclark Are you free to hop on a call. I think I might have found something on the docs.ts Edit: Actually there's no need I figured it out. The problem was a filter in the |
@josephjclark you can go ahead and merge this now. I had paused any refactors in the test suite to prioritize the documentation bug. I will do the refactors in a separate PR. They actually don't look that bad. |
That's a really great catch @PiusKariuki, thank you! |
Thanks you @josephjclark 🙏 |
Summary
post
remove
andget
helpers for HTTPFixes #890
Details
Added wrappers, with tests and documentation, for http.get(), http.post() and http.remove.
AI Usage
Please disclose how you've used AI in this work (it's cool, we just want to
know!):
You can read more details in our
Responsible AI Policy
Review Checklist
Before merging, the reviewer should check the following items:
production? Is it safe to release?
dev only changes don't need a changeset.