Skip to content
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

spreadsheet: Reconfigure readSheet function #14

Merged
2 commits merged into from
Dec 7, 2021
Merged

Conversation

AlidaOdendaal
Copy link
Contributor

Change-type: minor
Signed-off-by: AlidaOdendaal alida@balena.io

Change-type: minor
Signed-off-by: AlidaOdendaal <alida@balena.io>
@AlidaOdendaal AlidaOdendaal marked this pull request as draft November 23, 2021 21:07
somombo
somombo previously approved these changes Nov 23, 2021
Copy link
Contributor

@somombo somombo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ghost ghost dismissed somombo’s stale review November 23, 2021 21:21

Approval reviews not allowed in Draft PRs

Copy link
Contributor

@pranasziaukas pranasziaukas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Alida. I left a few remarks for discussion.

Long story short, I think that we could pass along whatever getRange accepts, and possibly use getDataRange otherwise (by default).
Here's pythonic pseudocode:

range = sheet.getRange(*params) if params else sheet.getDataRange()
return range.getValues()

Please let me know if I'm missing the point somehow.

lib/spreadsheet.ts Outdated Show resolved Hide resolved
lib/spreadsheet.ts Outdated Show resolved Hide resolved
lib/spreadsheet.ts Outdated Show resolved Hide resolved
lib/spreadsheet.ts Outdated Show resolved Hide resolved
@AlidaOdendaal AlidaOdendaal marked this pull request as ready for review December 1, 2021 20:38
Change-type: patch
Signed-off-by: AlidaOdendaal <alida@balena.io>
Copy link
Contributor

@pranasziaukas pranasziaukas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we've polished this as much as we reasonably could!

@ghost ghost merged commit 7968010 into master Dec 7, 2021
@ghost ghost deleted the reconfigure-readSheet branch December 7, 2021 10:52
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants