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

Improve CSV schema validation with filename patterns #22

Merged
merged 4 commits into from
Mar 13, 2024

Conversation

SmetDenis
Copy link
Member

This commit introduces filename pattern validation to the CSV schema, which allows increased data consistency checks. It also extends the capability to include additional columns to the schema, providing a more flexible structure. Enhancements were also made to error handling, introducing a quick-stop feature to expedite error discovery.

This commit introduces filename pattern validation to the CSV schema, which allows increased data consistency checks. It also extends the capability to include additional columns to the schema, providing a more flexible structure. Enhancements were also made to error handling, introducing a quick-stop feature to expedite error discovery.
@coveralls
Copy link

coveralls commented Mar 13, 2024

Pull Request Test Coverage Report for Build 8271091436

Details

  • 21 of 23 (91.3%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.2%) to 95.372%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/Csv/CsvFile.php 19 21 90.48%
Totals Coverage Status
Change from base Build 8270476094: -0.2%
Covered Lines: 577
Relevant Lines: 605

💛 - Coveralls

Denis Smet added 3 commits March 14, 2024 00:17
Previously, the invalid CSV file steps in our workflows performed their tasks differently and continued on errors. Now, the mechanism has been streamlined, and errors will halt the execution. This change results in more accurate validation and error detection.
This update introduces the use of the Utils::cutPath function in the error reporting for filename pattern mismatch in CsvFile.php. The error message, now, only displays the relative file path instead of the absolute one. The changes help decrease verbosity and improve clarity in error messages raised during CSV file validation.
@SmetDenis SmetDenis merged commit 7f71221 into master Mar 13, 2024
27 checks passed
@SmetDenis SmetDenis deleted the filename-pattern branch March 13, 2024 20:31
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