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

fix: updating creation & deletion timestamps #719

Merged
merged 1 commit into from
Jul 9, 2024
Merged

Conversation

adityathebe
Copy link
Member

  • for configs with no creation timestamp (example: Kubernetes cluster), we were always updating the created_at field. More so, the field was set to zero value.

  • for configs that weren't deleted, we were always updating the deleted_at field to a NULL value. Now, we only set to NULL if the existing config was actually deleted before.

This fixes the accuracy of the updated rows counter.

resolves: #707

* for configs with no creation timestamp (example: Kubernetes cluster),
  we were always updating the created_at field. More so, the field was
  set to zero value.

* for configs that weren't deleted, we were always updating the
  deleted_at field to a NULL value. Now, we only set to NULL if the
  existing config was actually deleted before.

This fixes the accuracy of the updated rows counter.
@adityathebe adityathebe force-pushed the fix/scrape-summary branch from ef412aa to 6ba4e2b Compare July 9, 2024 14:36
@adityathebe adityathebe requested a review from moshloop July 9, 2024 14:37
@moshloop moshloop merged commit 41c1524 into main Jul 9, 2024
7 checks passed
@moshloop moshloop deleted the fix/scrape-summary branch July 9, 2024 21:26
Copy link

github-actions bot commented Jul 9, 2024

🎉 This PR is included in version 0.0.378 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

investigate the updated count in scrape summary
2 participants