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 build warnings #430

Merged
merged 6 commits into from
May 30, 2024
Merged

Conversation

JulianKniephoff
Copy link
Member

@JulianKniephoff JulianKniephoff commented May 23, 2024

Fixes #350.

See individual commit messages for more details.

@JulianKniephoff JulianKniephoff added the type:code-enhancement Internal improvements to the codebase label May 23, 2024
@JulianKniephoff JulianKniephoff marked this pull request as draft May 23, 2024 13:22

This comment was marked as resolved.

@JulianKniephoff JulianKniephoff marked this pull request as ready for review May 23, 2024 15:41
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.

Changes look reasonable to me, and there are no more remaining warnings. Good!

One thing I would like to see is some form of reminder for disabled warnings, where "fixing them is too complicated for now", so we don't lose sight of them. Maybe as a Github issue?

This comment was marked as resolved.

@JulianKniephoff
Copy link
Member Author

@Arnei something like #469?

@JulianKniephoff JulianKniephoff requested a review from Arnei May 27, 2024 15:15
@Arnei
Copy link
Member

Arnei commented May 28, 2024

I was thinking of more specific issues, especially since eslint-ignore-next-line are not always something to be fixed. But I'm not pedantic enough to block this PR because of this.

This comment was marked as resolved.

Specifically:

> One of your dependencies, babel-preset-react-app, is importing the
> "@babel/plugin-proposal-private-property-in-object" package without
> declaring it in its dependencies. This is currently working because
> "@babel/plugin-proposal-private-property-in-object" is already in your
> node_modules folder for unrelated reasons, but it may break at any time.
> babel-preset-react-app is part of the create-react-app project, which
> is not maintianed anymore. It is thus unlikely that this bug will
> ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
> your devDependencies to work around this error. This will make this message
> go away.
Either by fixing them or by adding them to the long list of locally
disabled ones, when fixing them is too complicated for now.

May contain traces of formatting related nitpicks.
This also touches our vendored copy of fontawesome.
See opencast#429.
Copy link
Contributor

Use docker or podman to test this pull request locally.

Local test with mock data

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

Proxy data from develop.opencast.org

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

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.

@lkiesow lkiesow merged commit b77c0c2 into opencast:main May 30, 2024
3 checks passed
lkiesow added a commit to lkiesow/opencast-admin-interface that referenced this pull request May 31, 2024
As all the warnings on the build are now fixed (thx to opencast#430), we no
longer need to set `CI=false` to actively suppress warnings to be
picked up by our CI tests. This should help with us not introducing new
warnings.
@JulianKniephoff JulianKniephoff deleted the fix-build-warnings branch June 3, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:code-enhancement Internal improvements to the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

npm run build throws warnings
4 participants