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

Datafile Parse Latency Bug #2778

Merged
merged 2 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion tdrs-backend/tdpservice/parsers/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ class Status(models.TextChoices):
def get_status(self):
"""Set and return the status field based on errors and models associated with datafile."""
errors = ParserError.objects.filter(file=self.datafile)
[print(error) for error in errors]

# excluding row-level pre-checks and trailer pre-checks.
precheck_errors = errors.filter(error_type=ParserErrorCategoryChoices.PRE_CHECK)\
Expand Down
1 change: 0 additions & 1 deletion tdrs-backend/tdpservice/parsers/test/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,6 @@ def test_parse_bad_tfs1_missing_required(bad_tanf_s1__row_missing_required_field
parser_errors = ParserError.objects.filter(
file=bad_tanf_s1__row_missing_required_field)
assert parser_errors.count() == 4
[print(parser_error) for parser_error in parser_errors]

error_message = 'RPT_MONTH_YEAR is required but a value was not provided.'
row_2_error = parser_errors.get(row_number=2, error_message=error_message)
Expand Down
Loading