-
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
Asana
& GoogleSheets
improvements
#495
Conversation
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.
Couple of suggestions!
const numRows = response?.data?.values.length ?? 0; | ||
console.log(`${numRows} rows retrieved.`); | ||
|
||
const nextState = { ...composeNextState(state, response.data), response }; |
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 also wonder if large data arrays are double-buffered here in state.data
and state.response
.
This might be a difficult situation I've stumbled into 😬
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.
Do you mean duplicates ? or what do you mean by double-buffered ? @josephjclark
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.
Yeah, I mean duplicates!
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 am worried I'm creating more problems than I'm fixing here. Let's leave this as it is for now!
Summary
Improvements for Asana and GoogleSheet adaptor driven from OpenFn/ConSoSci#204 and OpenFn/ConSoSci#206
Details
Asana
createTaskStory()
funcGoogleSheets
getValues()
functionbatchUpdateValues()
functionexpandReference()
from common/utillogError
function for in-depth error logsIssues
Closes #497, #301
Review Checklist
dev only changes don't need a changeset.