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

Modernize redux: tableSlice #695

Merged
merged 10 commits into from
Jul 15, 2024
Merged

Conversation

Arnei
Copy link
Member

@Arnei Arnei commented Jun 13, 2024

Hello potential reviewer! Even if the number of code changes seems daunting to you and you don't know what this is about, please consider testing this anyway. This patch should not change any behaviour in the UI, so testing if everything still works as expected would be greatly appreciated!

Helps with #213.

Switching to redux toolkit for our central table reducers.

This is the last big PR on this topic. After this, I would consider our migration to redux toolkit complete (finally), although there certainly is still room for improvement.

Arnei added 5 commits June 11, 2024 10:18
Move table actions and reducers into tableSlice.
As expected, row is complicated in that some properties
are only present for some types of tables.
Typing table thunks and removing the last uses of connect.
Simplifies our code and provides us with some typechecking.
There is still some serious typing left to do, especially the "Row"
type in tableSlice.ts
I may struggle with writing a proper "Row" type for tableSlice.ts,
but what types the individual table cell components are expecting
seems pretty clear to me.
Adds typing based on the current state of our code. Arguably this could
be handled better.
@Arnei Arnei added the type:code-enhancement Internal improvements to the codebase label Jun 13, 2024
Copy link
Contributor

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

Copy link
Contributor

github-actions bot commented Jun 13, 2024

This pull request is deployed at test.admin-interface.opencast.org/695/2024-07-05_11-29-54/ .
It might take a few minutes for it to become available.

Copy link
Contributor

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-695

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-695

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.

Copy link
Contributor

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

Copy link
Contributor

github-actions bot commented Jul 1, 2024

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@Arnei Arnei force-pushed the to-redux-toolkit-table branch from bd2e030 to 8d6cfc8 Compare July 1, 2024 08:14
Copy link
Contributor

github-actions bot commented Jul 2, 2024

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

Copy link
Contributor

github-actions bot commented Jul 5, 2024

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@gregorydlogan gregorydlogan merged commit 0d7e74f into opencast:main Jul 15, 2024
5 checks passed
@gregorydlogan
Copy link
Member

LGTM

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.

2 participants