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

DM-43646: Add nextVisit info to fan-out status logs #12

Merged
merged 1 commit into from
May 28, 2024

Conversation

hsinfang
Copy link
Collaborator

No description provided.

@hsinfang hsinfang force-pushed the tickets/DM-43646 branch from a58385d to 5e244cd Compare May 23, 2024 22:43
@hsinfang hsinfang marked this pull request as ready for review May 23, 2024 22:44
@hsinfang hsinfang requested a review from kfindeisen May 23, 2024 23:35
Copy link
Member

@kfindeisen kfindeisen left a comment

Choose a reason for hiding this comment

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

Looks good, just some clarification requests.

src/main.py Outdated
Comment on lines 119 to 121
info: `str`
Information such as some data IDs of the next visit message to identify
this request and to log with.
Copy link
Member

Choose a reason for hiding this comment

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

Maybe "some fields" instead of "some data IDs"? We're already used to "data ID" meaning something more specific.

src/main.py Outdated
Comment on lines 413 to 415
info = {
key: data[key]
for key in ["instrument", "groupId", "detector"]
}
Copy link
Member

Choose a reason for hiding this comment

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

The formatting here looks a bit odd; it took me a moment to parse that it was a dict comprehension and not a dict of two items. Can this fit on one line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes it can. That was black's choice, though.

Besides the groupId, the instrument and the detector of the
nextVisit message are useful to identify a specific nextVisit
message. Including them in the logs makes it easier to use the
logs.
@hsinfang hsinfang force-pushed the tickets/DM-43646 branch from 5e244cd to 55f7ad8 Compare May 24, 2024 16:16
@hsinfang hsinfang merged commit 593f8df into main May 28, 2024
2 checks passed
@hsinfang hsinfang deleted the tickets/DM-43646 branch July 17, 2024 21:55
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.

2 participants