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 unnecessary green ticks in Metadata wizard #657

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

ferishili
Copy link
Contributor

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!

@ferishili ferishili added type:bug Something isn't working type:visual-clarity Improves UI readability type:usability Improves the UX bugbash labels Jun 5, 2024
Copy link
Contributor

github-actions bot commented Jun 5, 2024

This pull request is deployed at test.admin-interface.opencast.org/657/2024-06-05_16-07-26/ .
It might take a few minutes for it to become available.

Copy link
Contributor

github-actions bot commented Jun 5, 2024

Use docker or podman to test this pull request locally.

Run test server using develop.opencast.org as backend:

podman run --rm -it -p 127.0.0.1:3000:3000 ghcr.io/opencast/opencast-admin-interface:pr-657

Specify a different backend like stable.opencast.org:

podman run --rm -it -p 127.0.0.1:3000:3000 -e PROXY_TARGET=https://stable.opencast.org ghcr.io/opencast/opencast-admin-interface:pr-657

It may take a few seconds for the interface to spin up.
It will then be available at http://127.0.0.1:3000.
For more options you can pass on to the proxy, take a look at the README.md.

@ziegenberg ziegenberg self-requested a review June 5, 2024 17:28
@ziegenberg ziegenberg removed type:visual-clarity Improves UI readability type:usability Improves the UX labels Jun 5, 2024
@ziegenberg
Copy link
Member

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)

@geichelberger
Copy link
Contributor

In the PR #398, the ticks were still working as expected and were broken in PR #399 as those got merged after the latest release develop is not broken. Maybe 399 introduced the changes or something that got merged in between those PRs.

Copy link
Member

@Arnei Arnei left a 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.

@lkiesow
Copy link
Member

lkiesow commented Jun 7, 2024

+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.

@Arnei
Copy link
Member

Arnei commented Jun 7, 2024

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.

@geichelberger
Copy link
Contributor

Indicating which field changed is nice; the question is whether adding a green tick is the way to go.

@lkiesow
Copy link
Member

lkiesow commented Jun 10, 2024

Let's move this discussion to a separate issue.

Any objections to merging this @Arnei, @geichelberger, @ziegenberg?

@geichelberger
Copy link
Contributor

+1 merging

@ziegenberg
Copy link
Member

It's fine with me

@Arnei
Copy link
Member

Arnei commented Jun 10, 2024

Fine by me!

@lkiesow
Copy link
Member

lkiesow commented Jun 10, 2024

Then let's merge this.

@lkiesow lkiesow merged commit b28bac0 into opencast:main Jun 10, 2024
12 of 13 checks passed
@ziegenberg ziegenberg removed their request for review June 11, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

necessity of green hooks on Presenter and Contributor in Event Details
5 participants