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 stale columns data #127

Merged
merged 5 commits into from
Jun 19, 2024
Merged

Fix stale columns data #127

merged 5 commits into from
Jun 19, 2024

Conversation

podliashanyk
Copy link
Contributor

Closes #97

Uses a helper where implementation is copied from curitz.
Formatting downtime info in the column this way removes the stale-data-problem for this column completely. This is because there are no more redundant time units (that need constant updates) that are shown in the column, so whenever downtime for event is changed this info is updated in the specific row via NTIE.
This timestamp is updated only if all events attributes and computed fields were actively refreshed using create_table_event()
No zinolib is called, just recalculation of event internal data
@podliashanyk podliashanyk added bug Something isn't working beta Part of beta release labels Jun 18, 2024
@podliashanyk podliashanyk self-assigned this Jun 18, 2024
Comment on lines +80 to +82
age = datetime.now(timezone.utc) - opened
age_formatted = str(age)[:-10]
return age_formatted
Copy link
Contributor

Choose a reason for hiding this comment

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

It's soo tempting making a "tznow" utils-function for datetime.now(timezone.utc).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Feel free 😄

@podliashanyk podliashanyk merged commit 5a2999f into main Jun 19, 2024
5 checks passed
@podliashanyk podliashanyk deleted the fix-stale-columns-data branch June 19, 2024 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Part of beta release bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants