-
Notifications
You must be signed in to change notification settings - Fork 806
feat: end user email env var #6750
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
Conversation
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.
Important
Looks good to me! 👍
Reviewed everything up to 4bcc7fd in 1 minute and 56 seconds. Click for details.
- Reviewed
705
lines of code in21
files - Skipped
0
files when reviewing. - Skipped posting
6
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. backend/windmill-worker/src/worker_lockfiles.rs:75
- Draft comment:
In try_normalize, components like Prefix/RootDir cause an immediate None. Consider handling non-UTF8 paths gracefully (e.g. using to_string_lossy) instead of calling unwrap on to_str. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
2. backend/windmill-worker/src/worker_lockfiles.rs:94
- Draft comment:
In parse_ts_relative_imports, normalized paths are converted with .to_str().unwrap(). This can panic if the path isn’t valid UTF-8. Consider using to_string_lossy(). - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
3. backend/windmill-worker/src/worker_lockfiles.rs:1155
- Draft comment:
The function 'lock_modules' is very long and deeply nested. Consider refactoring it into smaller, well‐documented helper functions to improve readability and maintainability. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
4. backend/windmill-worker/src/worker_lockfiles.rs:1608
- Draft comment:
Multiple recursive calls within functions like lock_modules & reduce_flow are starting new transactions repeatedly. Consider reusing or batching transaction operations to improve performance. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
5. backend/windmill-worker/src/worker_lockfiles.rs:132
- Draft comment:
Many public functions (e.g. handle_dependency_job, handle_flow_dependency_job) lack inline documentation on expected parameters and behavior. Adding doc comments would improve clarity for future maintenance. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
6. backend/migrations/20251003145612_add_end_user_to_job_perms.up.sql:1
- Draft comment:
Typographical suggestion: The comment on line 1 currently reads "-- Add up migration script here". Consider revising it to clarify the intent (e.g., "-- Add migration script for end user email column") to avoid confusion. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50% The migration file is only 2 lines long. The SQL statement itself is very clear and self-documenting. The comment is purely cosmetic and doesn't affect functionality. The boilerplate comment may even be auto-generated. Making the comment more descriptive would be nice-to-have but not essential. The suggested comment would be more descriptive and helpful for future developers. SQL migrations are important infrastructure changes that benefit from good documentation. While better documentation is good, this comment is too minor to be worth the PR author's time. The SQL itself is already clear and simple. Delete this comment as it suggests a purely cosmetic change that doesn't meaningfully improve code quality or clarity.
Workflow ID: wflow_faA9Js8OiclR66Tr
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
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.
Important
Looks good to me! 👍
Reviewed 6839691 in 1 minute and 11 seconds. Click for details.
- Reviewed
28
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. backend/ee-repo-ref.txt:1
- Draft comment:
Updated commit hash to 33bdef405c678616b12084cf779a68a62d1f477e. Please verify that this commit correctly reflects the intended changes (especially for the end user email env var feature). Also, consider adding a trailing newline at the end of the file for POSIX compliance. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =50%
<= threshold50%
The comment asks the PR author to verify the commit, which is against the rules. However, it also suggests adding a trailing newline for POSIX compliance, which is a valid code suggestion.
Workflow ID: wflow_xHuAXThPWjgZcGpk
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
I'll analyze this and get back to you. |
Important
Add
end_user_email
handling to job permissions with database migration and function updates.end_user_email
column tojob_perms
table in20251003145612_add_end_user_to_job_perms.up.sql
.end_user_email
column in20251003145612_add_end_user_to_job_perms.down.sql
.push()
injobs.rs
to includeend_user_email
parameter.get_reserved_variables()
invariables.rs
to handleend_user_email
.apps.rs
,flows.rs
,jobs.rs
,resources.rs
,scripts.rs
,triggers/trigger_helpers.rs
,variables.rs
,worker.rs
,ai_executor.rs
,bun_executor.rs
,deno_executor.rs
,python_executor.rs
,worker_flow.rs
,worker_lockfiles.rs
to passNone
forend_user_email
.ee-repo-ref.txt
to new commit hash33bdef405c678616b12084cf779a68a62d1f477e
.This description was created by
for 6839691. You can customize this summary. It will automatically update as commits are pushed.