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

Ignore timestamp updates in update_invoice_line_items_with_invoicing_… #127

Merged
merged 1 commit into from
Dec 19, 2022
Merged

Ignore timestamp updates in update_invoice_line_items_with_invoicing_… #127

merged 1 commit into from
Dec 19, 2022

Conversation

pbchase
Copy link
Contributor

@pbchase pbchase commented Nov 28, 2022

Ignore timestamp updates in update_invoice_line_items_with_invoicing_details.R. As Sandar is sending us large, multi-month AR reports, we need to ignore things we already know, but the dataset diff function in redcapcustodian sees the novel timestamps in theupdated column as a difference. we need to ignore updated in the diff, yet still write it anytime we make updates.

This is not the most elegant solution, but it gets the job done for now. Yes, I ran this against production data and it worked. I'll add an issue in redcap custodian to describe the need to ignore a column in the diff and yet include it in the diff.

@pbchase pbchase requested a review from ChemiKyle November 28, 2022 21:05
@pbchase
Copy link
Contributor Author

pbchase commented Nov 28, 2022

I made ctsit/redcapcustodian#88 in the hope that someday we will do this the right way.

@pbchase
Copy link
Contributor Author

pbchase commented Dec 19, 2022

I need this code badly as I continue to run this ETL. I reviewed my work and it still works. I am merging.

@pbchase pbchase merged commit bc31060 into ctsit:develop Dec 19, 2022
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.

1 participant