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

[AG-1557] Fixes ModelAD File size must be at least one byte Error #150

Merged
merged 4 commits into from
Oct 23, 2024

Conversation

BWMac
Copy link
Contributor

@BWMac BWMac commented Oct 23, 2024

Problem:
With recent changes made in ADT adding support for ModelAD data processing, we encountered an error in processing when using the platform flag. This is caused because despite the fact that there is no GX data validation to run for ModelAD at the moment, the ADTGXReporter was still trying to update the GX report table. This caused an empty list of records to be passed to syn.store here, causing the reported error.

Solution:
I added an additional condition to ADTGXReporter.update_table so that the update attempt is not made if there are no new records to update in the first place.

Notes:

  • I added a new unit test to cover the new condition
  • I went ahead and updated the descriptions for the CLI arguments and options to clarify how to use them and updated the README to tell users to use the adt --help command to learn how to use the package.

Copy link

sonarcloud bot commented Oct 23, 2024

@BWMac BWMac marked this pull request as ready for review October 23, 2024 16:51
Copy link
Contributor

@JessterB JessterB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks Brad!

Copy link
Member

@thomasyu888 thomasyu888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 LGTM! Please create a release after this is merged

@BWMac BWMac merged commit 0bae86a into dev Oct 23, 2024
9 checks passed
@BWMac BWMac deleted the bwmac/AG-1557-no-gx-modelad-error branch October 23, 2024 18:15
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.

3 participants