-
Notifications
You must be signed in to change notification settings - Fork 1
Metro trips are skipped in result set handling #58
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
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
cf8e3e2
Add logging
thjarvin ced026c
Revert "Add logging"
thjarvin dbf49e8
AB#49889: Metro trips are skipped in result set handling
thjarvin 4c509ac
AB#49889: Reduce logging
thjarvin c92b533
AB#49889: Add environment variable excludeMetroTrips
thjarvin 548ea88
AB#49889: Fix path to environment variable excludeMetroTrips
thjarvin 7fa0396
AB#49889: Skipped metro trip count logged in separate line
thjarvin 9a43fd7
AB#49889: Variable count counts ResultSet size
thjarvin 69747c4
Merge pull request #59 from HSLdevcom/result-set-count
thjarvin 971dac0
AB#49889: Update version to 2.0.1
thjarvin 2edf357
Update common to 2.0.2
thjarvin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not understand why the meaning of
count
was changed to the count of included rows only. Is the log message used in monitoring?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the log message is not used in monitoring. To know that the filtering works, I want see how many metro trips where excluded, if any. Some other options to implement this:
A) Bring the line
count++
back to it's original position and add new variable:int includedCount
B) Modify the log message and the name of the
count
variable =>int includedCount
From:
log.info("{} rows processed from result set.", count);
To:
log.info("{} rows included from result set.", includedCount);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
metroTripCount
already answers to: "To know that the filtering works, I want see how many metro trips where excluded, if any." Do you mean that you wish to know the included count?How about one log line with both the original meaning of
count
andmetroTripCount
(even if zero):"{} rows processed from the result set. {} rows skipped with metro trips (route ids: {})"
? If you wish, you could also calculateincludedCount = count - metroTripCount
into the same log line.I'd like us to be able to tell that some rows were received even if for some reason everything was excluded, e.g. if there are only metro rows in the database for some reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see PR: #59