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

Feature/validate submission #66

Merged
merged 65 commits into from
Nov 26, 2023
Merged

Feature/validate submission #66

merged 65 commits into from
Nov 26, 2023

Conversation

banders
Copy link
Contributor

@banders banders commented Nov 22, 2023

Description

Two changes to CSV validation

  • Permit a maximum value of 8760 for columns in units of hours (8760 is the number of hours in one year)
  • Disallow the value "N/A" in all columns (instead expect 0 or an empty string)

Fixes # (issue)

These are tweaks related to https://finrms.atlassian.net/browse/GEO-70 based on revised requirements discussed at today's scrum and in subsequent email exchanges with the team.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Several unit tests have been updated to confirm proper validation behaviour for valid and invalid values for the affected CSV columns.

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have already been accepted and merged

Thanks for the PR!

Deployments, as required, will be available below:

…service' to support the implementation of this route. added a test case for the new service.
…unt-range' to be consistent with the '/file-upload' endpoint.
… the default value. removed the 'expiry_date' column from insert statements (so nulls are inserted)
…null expiry_date (if effective_date is valid)
… (employee count ranges and naics codes) from the backend.
…onent tests. upgraded the pinia and vue versions (required to use pinia/testing)
…onent tests. upgraded the pinia and vue versions (required to use pinia/testing)
…be accessed from unit tests. also removed an unneeded state varaible
…f behaviour that depends on the 'code store'. added new unit tests for the 'employee count ranges' and 'naics code
Copy link

sonarcloud bot commented Nov 22, 2023

[Pay Transparency Backend] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.17) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

Copy link

sonarcloud bot commented Nov 22, 2023

[Pay Transparency Frontend] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

warning The version of Java (11.0.17) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@sukanya-rath sukanya-rath merged commit c47cc1d into main Nov 26, 2023
13 checks passed
@sukanya-rath sukanya-rath deleted the feature/validate-submission branch November 26, 2023 01:23
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