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

feat: audit msg.Timestamp, remove input of msg.Tags.Timestamp PE-7338 #293

Merged
merged 3 commits into from
Dec 19, 2024

Conversation

fedellen
Copy link
Contributor

No description provided.

@fedellen fedellen self-assigned this Dec 19, 2024
@fedellen fedellen requested a review from dtfiedler December 19, 2024 18:56
@codecov-commenter
Copy link

codecov-commenter commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.44%. Comparing base (9500bd8) to head (5085734).
Report is 4 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #293   +/-   ##
========================================
  Coverage    94.44%   94.44%           
========================================
  Files           10       10           
  Lines         2988     2988           
========================================
  Hits          2822     2822           
  Misses         166      166           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/main.lua Outdated
Comment on lines 411 to 421
--- @class ParsedMessage
--- @field Id string
--- @field From string
--- @field Timestamp number
--- @field Tags table<string, any>

--- @param handlerName string
--- @param pattern fun():string
--- @param handleFn fun(msg: ParsedMessage)
--- @param critical boolean?
--- @param printEvent boolean?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

gives us IDE types in main.handlers
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will include ioEvent

dtfiedler
dtfiedler previously approved these changes Dec 19, 2024
src/main.lua Outdated
@@ -553,7 +569,7 @@ end, function(msg)
addSupplyData(msg.ioEvent)
end

return prunedStateResult
-- return prunedStateResult -- TODO: need to return?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

appears tests work fine without returning here in prune. its the only function returning so the lua type annotations was calling it out -- will remove

@fedellen fedellen merged commit d19be00 into develop Dec 19, 2024
5 checks passed
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