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 dynamic recognition of sheet data entries and layout #22

Merged
merged 26 commits into from
Apr 13, 2023
Merged

Conversation

atiratree
Copy link
Owner

@atiratree atiratree commented Jun 2, 2022

  • recognition done by DEFAULT_STRATEGY, WEEKEND_HEADER_ONLY_STRATEGY or LAST_SPACE_BETWEEN_ROWS_STRATEGY. LEGACY_STRATEGY is used only for tests.
  • introduce ConsistencyChecker script for running data validation tasks and comparing output between strategies
  • allow setting custom number of rows per group
  • add unit tests for sheet detection logic

suomiy and others added 22 commits April 12, 2023 18:07
- display number of rows per group in groups list
- extracts layout, data and notes from sheets
- replace copyDataBetweenSheets with extractSpreadsheetData and writeDataToSheet (eg in EmailSender)
- update SheetRedirect functions (onOpenSheet, editMainSheet) to use extractSpreadsheetData  and upgrade validations
- refactoring (mainly createStats and writeStats)
- fix bug in OnOpen and OnEdit functions
… tests

- WEEKEND_HEADER_ONLY_STRATEGY LAST_SPACE_BETWEEN_ROWS_STRATEGY
- make isMetadataRow_ a little bit more strict
- add new tests to SSExtract
- to test and compare behaviours between strategies to ensure there is
  no regression
- add tests for extractSpreadsheetDataWithStrategy
- enhance tests for detectDaysWithData_
introduced by a new implementation of extractSpreadsheetData
- add compareGatheredDataByStrategies which checks consistency of
  gathered data between new DEFAULT_STRATEGY vs LEGACY_STRATEGY
  and prints out a diff
change regression definition in compareGatheredDataByStrategies
@atiratree atiratree changed the title Updates Add dynamic recognition of sheet data entries and layout Apr 13, 2023
@atiratree atiratree merged commit bb5b166 into master Apr 13, 2023
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.

2 participants