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

Validate batch numbers using separate worksheet(s). #2848

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

misaka
Copy link
Contributor

@misaka misaka commented Jan 14, 2025

This change to the offline spreadsheet protects against Excel's 256 char limit for validation values by putting batch numbers into a separate sheet and looking them up there. This builds on the work done for the performing professionals validations.

https://trello.com/c/PVjQ6E6B/1826-refactor-batch-ids-drop-down-in-offline-spreadsheet

Batch number drop-down:
image

New data validation for batch numbers:
image

New sheet added for the specific programme (normally this sheet is hidden):
image

Parameterise this method so it can be used to create other reference
sheets used in data validations.
This is to aid debugging where there is more than one worksheet; when
instrospecting the code we want to be able to access different
worksheets to check if they've been populated, which can't be done if we
can't access the workbook.
Not sure how or why these got in in the first place, but it doesn't
appear to be necessary to have a double equals sign "=".
This protects against Excel's 256 char limit for validation values by
putting batch numbers into a separate sheet and looking them up there.

https://trello.com/c/PVjQ6E6B/1826-refactor-batch-ids-drop-down-in-offline-spreadsheet
Performing professional emails and batch numbers aren't ordered when
pulled out to populate the offline spreadsheet, so the ordering is
non-deterministic.
@misaka misaka force-pushed the offline-excel-batch-numbers branch from f43756d to 3e96a50 Compare January 14, 2025 16:29
Copy link
Member

@tvararu tvararu left a comment

Choose a reason for hiding this comment

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

Wondering if there's a Rubocop rule for it instead of _1

Edit: rubocop/rubocop#13597

spec/lib/reports/offline_session_exporter_spec.rb Outdated Show resolved Hide resolved
spec/lib/reports/offline_session_exporter_spec.rb Outdated Show resolved Hide resolved
spec/lib/reports/offline_session_exporter_spec.rb Outdated Show resolved Hide resolved
@tvararu tvararu added the 🐞 bug Something isn't working label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants