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

Add validation for start_row in pager.rb #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

r-uehara0219
Copy link

@r-uehara0219 r-uehara0219 commented Aug 5, 2024

Fixed a bug that unintended rows were retrieved when a value larger than sheets_max was specified for start_row.

bug details

When creating a spreadsheet with one row and two columns (see screenshot) and executing the plugin with start_row: 2 specified in config.yml, get_spreadsheet_values is executed for the range of A2:B1.
The A2:B1 range here is interpreted by the Google API in the same way as A1:B1, and [["ID", "value"] is obtained.

Similarly, if you create a spreadsheet with 3 rows and 2 columns (see screenshot) and run the plugin with start_row: 4 in config.yml, get_spreadsheet_values to the range of A4:B3 is executed and [["2", "second value"]] is obtained.

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.

1 participant