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

Allow all users to see the same script instances and history #597

Open
muxout opened this issue Nov 27, 2022 · 7 comments · Fixed by #603
Open

Allow all users to see the same script instances and history #597

muxout opened this issue Nov 27, 2022 · 7 comments · Fixed by #603

Comments

@muxout
Copy link
Collaborator

muxout commented Nov 27, 2022

Hi,

Would it be OK to add an option to the script configuration where all users share the same script instances?
This would be helpful in a case where we don't want an user to start a new script instance when another is already running the script. This also allows multiple users to monitor the script process for long running scripts.

Cheers

@muxout muxout changed the title Allow multiple users to see the same script instances and history Allow all users to see the same script instances and history Nov 27, 2022
@bugy
Copy link
Owner

bugy commented Nov 27, 2022

Hi @muxout, just to double check:

  • do you want to allow any user to see active executions? Or only specific ones
  • would it be applied to some specific scripts, or to all the scripts on a server?

But I also have to say, that I don't have too much time to work on new features now, so I won't be able to implement this in the nearest future.

@bugy bugy added the feature label Nov 27, 2022
@muxout
Copy link
Collaborator Author

muxout commented Nov 27, 2022

Thanks for the fast response.

  • Allow any user to see active executions
  • I think an option in the script configuration would be more flexible, so it can be applied to specific scripts

Maybe I can have a go at this and submit a PR

@bugy
Copy link
Owner

bugy commented Nov 28, 2022

Hi @muxout for sure, you can go with a PR. But it might be not an easy one.
How I see it: we would need to have a new script configuration section:

"access": {
  "shared_access": {
    "type": "ALL_USERS"
  }
}

In the future, we could extend this configuration, to allow only shared access for the users within the same group, or for predefined list of users, or anything else.

@muxout
Copy link
Collaborator Author

muxout commented Nov 29, 2022

Makes sense. I'll have a go.
By the way, is there any instructions or tips on running the unit tests locally?

@bugy
Copy link
Owner

bugy commented Nov 29, 2022

Hi @muxout, I run those on CI using the following command:
python3 -m unittest discover -s tests -p "*.py" -t .

On my local machine I just run them via pycharm

@muxout
Copy link
Collaborator Author

muxout commented Nov 30, 2022

Cheers @bugy. Can you give me permissions to create a new branch so I can submit a PR?

@bugy
Copy link
Owner

bugy commented Dec 3, 2022

Hi @muxout sorry for delay. I added you to collaborators, could you retry?

@muxout muxout linked a pull request Dec 4, 2022 that will close this issue
@bugy bugy added the resolved label Dec 6, 2022
@bugy bugy added this to the 1.18.0 milestone Dec 6, 2022
@bugy bugy closed this as completed in #603 Dec 6, 2022
bugy added a commit that referenced this issue Dec 6, 2022
@bugy bugy reopened this Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants