New UserTaskRun Metadata fields #1340
Replies: 2 comments 7 replies
-
This is good, thanks @jhosep-marin! We can also add I have a feeling that @eduwercamacaro is going to say "I TOLD YOU SO" because in the past he proposed making the the assignment an object rather than just a string id. I guess he can say "I told you so" 😃 Changing the
Something like this in the
|
Beta Was this translation helpful? Give feedback.
-
Thanks @jhosep-marin I like this idea because it improves the user experience by adding useful information (metadata) about the UserTaskRun, and it helps for many uses cases like user task tracking, audit or debugging.
@coltmcnealy-lh I don't think we need a metadata object for this, instead we can add a key-value (
At the WfSpec level, it looks like this:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When it comes to a productive environment in which you integrate an Identity Provider (IdP) into the UserTasks equation it's kind of hard to track assignments. Given the fact that you can assign a
UserTaskRun
to a userId, or a userGroup or both, it gets tricky when you do assignments based on IdPs' user IDs and/or user group IDs, because when you query theUserTaskRun
you will see that it is assigned (or was assigned in the past) to userId "dffe5b6ac7a94c60951d8fdf8cf41d52" but you cannot tell if that id is Jessie from IT, or Mary the CTO, or anyone else, and the same applies for userGroups.You may think something like "Okay, easy, just do assignments based on user emails/username and user group names. In the end,
userId
anduserGroup
take any string value!", and that is true, you can actually do that, but now, what happens if at some point, for any given reason, Jessie's username changes from "jessiewilliams" to "jwilliams"? I think that IdPs' user Ids and user group Ids are the way to go in order to address that issue, ensure longevity and traceability of UserTaskRuns when a userName or user group changes. And, the way to solve the initial predicament about translating userId "dffe5b6ac7a94c60951d8fdf8cf41d52" to "Jessie" or "Mary" could be solved by just adding metadata to the UserTaskRun.This new metadata object should be OPTIONAL so that all existing features do not change, and you let the LH Server's clients decide whether they set it or not.
That way, not only will you be solving the IdPs id-to-actual-user + id-to-actual-user-group translation, but also improving UX when checking UserTaskRuns through CLI or LH built-in Dashboard.
Beta Was this translation helpful? Give feedback.
All reactions