yaowanli commented on issue #17798: URL: https://github.com/apache/dolphinscheduler/issues/17798#issuecomment-3658520193
> > Solution 1: Extreme Simplification > > The page should allow free workgroup assignment, but the workflow workgroups and scheduled job workgroups should be > > combined and displayed during the echo. > > Current workgroup permissions and project binding, which violates the design of permission management. > > > Solution 2: Complexity > > When assigning workgroups on the page, let's assume the new workgroup is A and the project workgroup is B. > > If the difference between A and B is greater than 0, directly add a new workgroup based on the difference. > > If the difference between B and A is greater than 0 (including cases where A is empty), check if the workgroups in the > > difference have already been assigned to workflows or scheduled jobs. If not, they can be deleted; if already assigned, they > > cannot be deleted. > > What do you mean by `If the difference between A and B is greater than 0, directly add a new workgroup based on the difference`? I'm a little confused. Please provide an example. For example , the new workgroup A now has [a,b,c,d] ,and the project workgroup now has [b,c,d,f] so difference between A and B is A-B = [a] ,is greater than 0, we can directly add the group [a] into the project workgroup so difference between B and A is B-A = [f] ,is greater than 0, we can directly delete group [f] when it doesn't belong to a workflow or scheduled job.if [f] already assigned, if it has been assigned, deletion is not allowed and an exception should be displayed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
