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

Update validation for multiple CSV files. #14

Merged
merged 11 commits into from
Mar 12, 2024
Merged

Update validation for multiple CSV files. #14

merged 11 commits into from
Mar 12, 2024

Conversation

SmetDenis
Copy link
Member

The "ValidateCsv" command has been updated to handle multiple CSV files from given paths, providing the ability to validate multiple files at once. Relevant error messages and logs have been updated to reflect this change. Additionally, helper methods have been added to the Utils class for improved path handling.

Denis Smet added 7 commits March 13, 2024 00:18
The "ValidateCsv" command has been updated to handle multiple CSV files from given paths, providing the ability to validate multiple files at once. Relevant error messages and logs have been updated to reflect this change. Additionally, helper methods have been added to the Utils class for improved path handling.
The code has been updated to validate multiple CSV files at once when provided with a batch of paths. This includes corresponding adjustments in reporting errors, displaying success messages, and handling paths using added methods in the Utils class. Updated test suites to comply with the changes.
The commit includes refactoring to support batch processing of multiple CSV files, improving error reporting readability, and ensuring success messages for each validated file are displayed. Related test suites were also updated to match these changes. Changes also made to handle filepaths more efficiently within the Utils class.
Updated the error reporting in 'ValidateCsv' file to include the word 'Error' in red for clearer visibility. Also simplified the depth condition in the 'Utils' file and made the 'location' element more concise in 'ValidatorTest'. This makes the code cleaner, more readable and enhances the visibility of errors.
This commit refactors the error message output when validating CSVs to better signify invalid files. Additionally, the process of finding files has been improved with clear depth conditions and sorted file results. An overall update to test cases and documentation reflects these changes for consistency.
This commit adds a new task in the README's feature checklist to include validation support for files stored in an S3 bucket. This update indicates an intended expansion of the validation process to incorporate data stored in the cloud.
@coveralls
Copy link

coveralls commented Mar 12, 2024

Pull Request Test Coverage Report for Build 8256620468

Details

  • 93 of 96 (96.88%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 95.382%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/Commands/ValidateCsv.php 54 55 98.18%
src/Utils.php 21 23 91.3%
Totals Coverage Status
Change from base Build 8245226608: 0.02%
Covered Lines: 537
Relevant Lines: 563

💛 - Coveralls

Denis Smet added 4 commits March 13, 2024 01:37
This commit updates the README file, indicating the completion of several tasks related to CSV file validation. The tasks include file discovery with regex filename pattern, validating all files in a folder, and checking multiple CSV files in one schema.
This update tweaks the file sorting process in Utils.php to use ksort instead of sortByName for more accurate results. Also, redundant code in the CommandsTest unit test has been eliminated and additional test cases for multiple CSV options have been added to ensure a comprehensive testing suite.
@SmetDenis SmetDenis merged commit 9011753 into master Mar 12, 2024
28 checks passed
@SmetDenis SmetDenis deleted the file-discovery branch March 12, 2024 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants