-
Notifications
You must be signed in to change notification settings - Fork 318
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
Issue 1217 - csv upload validation #1403
Draft
SageMar
wants to merge
14
commits into
OpenEnergyDashboard:development
Choose a base branch
from
SageMar:Issue1217-csv-validation
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 13 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
187dde5
added in the tests for area and meter type. These include a new funct…
SageMar 02712f0
fixed issue within the added validation for area and meter type, also…
SageMar 55db711
Added validation for all boolean value types.
cmatthews444 9722c00
added in area unit type checking, still need to adjust to allow for d…
SageMar 67b8078
Removed old initial testing code.
cmatthews444 62288b6
Merge pull request #1 from cmatthews444/Issue1217-csv-validation
SageMar 034e7b4
Merge branch 'OpenEnergyDashboard:development' into Issue1217-csv-val…
SageMar 4f12d03
added in a time sort check and fixed some linter errors
SageMar f4b60f3
Add validation for minmax values
cmatthews444 5f30318
tweaked timedout
cmatthews444 143a96d
Merge pull request #2 from cmatthews444/Issue1217-csv-validation
SageMar 6c612b8
Timezone validation completed
SageMar 30d213e
added time zone validation
SageMar 06751f8
Merge branch 'OpenEnergyDashboard:development' into Issue1217-csv-val…
SageMar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 know this is a draft PR but a number of the tests were failing. I debugged one of them. The issue is that endOnlyTime on a meter can be undefined. In src/server/sql/meter/create_meters_table.sql it will set it to a default value if undefined. Thus, some tests need to allow for this.
I also noticed that a few inputs go through normalizeBoolean() that allows for yes/no in addition to true/false. FYI.
Please let me know if you need any more information or help.
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.
Thank you for those comments, they're very helpful. We took a short break over the holidays so we'll get to work resolving those ASAP.
Happy new year!