-
Notifications
You must be signed in to change notification settings - Fork 17
common: move field()
to util and remove export of common's field
in adaptors
#1173
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
This reverts commit 91116c8.
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
* feat: update rapidpro Signed-off-by: Hunter Achieng <[email protected]> * feat: add changeset Signed-off-by: Hunter Achieng <[email protected]> * fix: remove config and fix r`return await` Signed-off-by: Hunter Achieng <[email protected]> * fix: update changeset Signed-off-by: Hunter Achieng <[email protected]> * fix: remove export of http Signed-off-by: Hunter Achieng <[email protected]> * fix: update changeset with removal of http export Signed-off-by: Hunter Achieng <[email protected]> * fix: remove nock Signed-off-by: Hunter Achieng <[email protected]> --------- Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
…ptors into feature/1120-common-migration
…1171) * feat: use common-request Signed-off-by: Hunter Achieng <[email protected]> * feat: add changeset Signed-off-by: Hunter Achieng <[email protected]> * fix: update changeset Signed-off-by: Hunter Achieng <[email protected]> * fix: update changeset Signed-off-by: Hunter Achieng <[email protected]> --------- Signed-off-by: Hunter Achieng <[email protected]>
…ommon-migration Signed-off-by: Hunter Achieng <[email protected]>
…ptors into feature/1120-common-migration Signed-off-by: Hunter Achieng <[email protected]>
common: remove deprecated expandreferences and update common versions
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
@@ -195,4 +196,15 @@ export { | |||
* console.log(id); // Output:'3f4e254e-8f6f-4f8b-9651-1c1c262cc83f' | |||
*/ | |||
uuid, | |||
/** | |||
* Returns a key, value pair in an array. |
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.
This is the blocking problem: we cannot manually duplicate these docs across all adaptors.
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.
These docs need removing :)
* remove common.map * changeset * typo * remove map from salesforce and mogli * changesets
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
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.
Hi @hunterachieng - I've had a careful look through this and spotted a couple of things.
This is going to be such a huge piece of work 🤦 I'm going to do some user research before we commit more time to this. I don't want to do it if it's not valuable (I think it's a big improvement, but if I'm the only who thinks that then what's the point?)
Based on the time it's taken to do field
, can you estimate how long it will take to move the other 10 (I think?) util functions?
@@ -298,9 +298,7 @@ export { | |||
fn, | |||
fnIf, | |||
each, | |||
http, |
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.
Was removing http
here deliberate? Also seen in odoo
, so maybe there are others
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.
Yes. We did remove the old http implementation in common, do we need to keep exporting it?
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.
Ah, well yes you're right. But that's not mentioned anywhere in the PR title or description so it surprised me. And I thought that stuff had been done on the epic.
We need to make sure that this is recorded in a changeset because it's super important to document. Maybe you can generate a major changeset for this now?
We'll also need a major changset for every change to field
- but maybe we don't need to do that one yet. I'm not sure the easiest way to handle it.
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.
ShouldI go through every adaptor and remove the exportation on http and create a major changeset for each?
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.
Hang on, hang on, there's some confusion here.
When we removed http
from rapidpro
, we did so because it was exporting the old http namespace. It was version locked to common v1, and we didn't want to export the common v1 http namespace anymore.
That was actually wrong to do - we forgot that we'd updated to the latest common, so we should have left rapidpro
to export http
. Probably. But don't worry about that for now, I don't want to spend time on rapidpro.
But for other adaptors, we definitely don't want to change common http
exports. Not here in this PR. We should not be touching mysql
's http
export here. If we want to do that, it must be on a new branch.
So for now, please revert all changes to http
exports on this branch. We'll look at the in isolation as a separate exercise.
And in future, please try to avoid making unrelated changes in a PR! Try to stay focused on the task in hand.
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.
I will improve on that. I have pushed the fixes
On it.
…On Tue, 6 May 2025, 14:58 Joe Clark, ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In packages/mailgun/src/utils.js
<#1173 (comment)>:
> @@ -0,0 +1 @@
+export { field } from ***@***.***/language-common/util';
Don't wonder about it- test it! #WWJD
—
Reply to this email directly, view it on GitHub
<#1173 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AS4KQNTHWGGJNXQTQZHSIW325CPWNAVCNFSM6AAAAAB4FALU3CVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDQMJXHE4DQOJZG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
Signed-off-by: Hunter Achieng <[email protected]>
field()
to utilfield()
to util and remove export of common's field
and http
in adaptors
Signed-off-by: Hunter Achieng <[email protected]>
field()
to util and remove export of common's field
and http
in adaptorsfield()
to util and remove export of common's field
in adaptors
@josephjclark about this PR. Should we still continue with the exports? |
Summary
Move
field()
function to util in commonFixes #1118
Details
Add technical details of what you've changed (and why).
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.