-
Notifications
You must be signed in to change notification settings - Fork 23
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 unnecessary green ticks in Metadata wizard #657
Conversation
This pull request is deployed at test.admin-interface.opencast.org/657/2024-06-05_16-07-26/ . |
Use Run test server using develop.opencast.org as backend:
Specify a different backend like stable.opencast.org:
It may take a few seconds for the interface to spin up. |
I can't currently reproduce this error on https://develop.opencast.org. So are we fixing a real issue here? I also asked the issue creator for more details: #629 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regardless of how this came to be broken, this does fix the issue in a reasonable manner I think. So this gets an approval from me.
+1 for merging the pull request like this. It's definitely an improvement over having random green check marks. That being said, I think we would get just rid of them. They existed before we had a save button to indicate that a modified field had been saved. Now, I think they are just confusing and not helpful at all. |
Disagree on that. I think they are useful as feedback that your input has been recognized. They could also indicate that your input was valid, but alas our validation is ... lacking right now. |
Indicating which field changed is nice; the question is whether adding a green tick is the way to go. |
Let's move this discussion to a separate issue. Any objections to merging this @Arnei, @geichelberger, @ziegenberg? |
+1 merging |
It's fine with me |
Fine by me! |
Then let's merge this. |
This PR fixes #629,
The problem comes from comparing arrays like other types, which in this case of
!==
is always true.The correct way of comparing array is to convert them into json string and then check if they are equal!
With this PR, you will see the green tick only after changing the value of the inputs, which is the intended behavior!