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

Fix editing custom actions in the ACL editor #5164

Merged

Conversation

JulianKniephoff
Copy link
Member

@JulianKniephoff JulianKniephoff commented Aug 10, 2023

Right now you can't edit custom actions of individual policies in the ACL editor; all the actions of all policies are kind of tied together.

This is due to a bug in the JavaScript caused by the select components all operating on the same shared array. This PR fixes that bug by just making copies in appropriate places to break that link.

@JulianKniephoff JulianKniephoff added ELAN Pull requests originating from ELAN e.V. quick review A pull request that can be reviewed quickly javascript Pull requests that update Javascript code labels Aug 10, 2023
@JulianKniephoff JulianKniephoff changed the base branch from develop to r/13.x August 10, 2023 14:11
Right now you can't edit custom actions of individual policies
in the ACL editor; all the actions of all policies are kind of
tied together.

This is due to a bug in the JavaScript caused by the select component
all operating on the same shared array. This PR fixes that bug
by just making copies in appropriate places to break that link.
@JulianKniephoff
Copy link
Member Author

Requesting a review by @Arnei since he did the ACL editor overhaul. Of course I welcome any other reviewers as well! 😀

@mliradelc
Copy link
Contributor

I would try this with LDAP this week. Since the ACL UI overhaul has broken our installation, we are using an OC with the PR retracted.

@JulianKniephoff
Copy link
Member Author

JulianKniephoff commented Sep 4, 2023

@mliradelc did you have a chance to look at this? Would be nice to get this in, soon. :) FWIW I doubt that the choice of LDAP over other methods of authentication has any bearing on this code. 🤔

@gregorydlogan gregorydlogan merged commit 0a2917a into opencast:r/13.x Sep 6, 2023
5 checks passed
@gregorydlogan gregorydlogan self-assigned this Sep 6, 2023
@JulianKniephoff JulianKniephoff deleted the fix-editing-acl-actions branch September 11, 2023 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ELAN Pull requests originating from ELAN e.V. javascript Pull requests that update Javascript code quick review A pull request that can be reviewed quickly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants