-
Notifications
You must be signed in to change notification settings - Fork 323
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
Refactor common context handling pattern #9087
Refactor common context handling pattern #9087
Conversation
…nt, instead I expand its functionality
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.
Looks good but also looks like it is called virtually every single time with panic=False
so feels like that should be the default.
Until we implement something like #5430, it is very easy to 'lose' track of a dataflow error if the result of the operation is not threaded-through further. This is especially likely for side-effecting operations - which Output operations often can be. Thus, as explained in the doc comment
I thought that it is better to deliberately keep the panic as a default. Then, switching to dataflow error mode has to be done fully consciously, and I assume the user of the function will only do so if they know it is safe. If the dataflow error mode were the default, someone may use this function in a place where the result is discarded, causing very confusing behaviour (when the Output context is disabled, nothing would happen but there would be no error either). |
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.
Approving engine changes
Radosław Waśko reports a new STANDUP for yesterday (2024-02-19): Progress: Fixing some unexpectedly failing tests, got the PR merged. Final touches for #9021. It should be finished by 2024-02-19. Next Day: Next day I will be working on the #9021 task. Ensure tests pass for S3 refactor. Look into next tasks, probably #9022 |
Context.if_enabled
for the commonForbidden_Operation
check #9080Important Notes
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
./run ide build
.