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

Add user to task #124584

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Add user to task #124584

wants to merge 1 commit into from

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Mar 11, 2025

Add the user to the tasks output.

Closes #124252

Add the user to the tasks output.
@nik9000 nik9000 added :Security/Security Security issues without another label v9.1.0 labels Mar 11, 2025
@nik9000
Copy link
Member Author

nik9000 commented Mar 11, 2025

I'm pretty sure we don't want this in the headers, but that was the easiest place to add it in the draft.

String user = threadContext.getTransient(Task.USER_KEY);
if (user != null) {
headers.put(Task.USER_KEY, user);
}
Task task = request.createTask(taskIdGenerator.incrementAndGet(), type, action, request.getParentTask(), headers);
Copy link
Member Author

Choose a reason for hiding this comment

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

I think because there are so many implementations of this we might should make an object CreateTaskParams and stuff everything in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Security/Security Security issues without another label v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add user to task description
1 participant