common: Move non operational functions to util namespace#1437
common: Move non operational functions to util namespace#1437hunterachieng wants to merge 1 commit intomainfrom
Conversation
Signed-off-by: Hunter Achieng <achienghunter@gmail.com>
|
I think we should insulate the other adaptors from a major bump and not force them to also use the util namespace. Not yet. We can do this by re-writing the export statements to import the utils form the new location, but continue to export on the old interface. For example if asana looks like this now: We should change it to this: We can then migrate util functions out of other adaptors later. Else it's too much disruption |
|
Hey @taylordowns2000 @mtuchi - I'm seriously considering dropping the functions listed above. They don't really fit modern job writing. In particular they would answer's Aleksa's call in Nairobi 2024 to "just give us one way to access state". This is good for humans, but also good for AIs who are reading our docs and using them to write job code. This would be a major update. My questions are:
|
|
@josephjclark i am totally okay on removing the mentioned functions. But we have to do internal audit to see how many jobs are using |
|
while we are here, can we also delete source |
|
We're doing some analysis to try and work out the impact of this At first glance is it looks like 40 steps on I'll do a bit more analysis but basically yes, I want to do this in January, and I want to insulate other adaptors from the changes EDIT: Maybe just 7 steps that need modifying in practice |
Summary
Deleted Functions
alterState()jsonValue()dataPath()dataValue()referencePath()lastReferenceValue()sourceValue()joinMoved Functions to
utilnamespaceasData()index()field()fields()source()chunk()humanProper()arrayToString()toArray()scrubEmojis()splitKeys()Fixes #1118 #1408
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.