Skip to content

Conversation

@longshuicy
Copy link
Member

@longshuicy longshuicy commented Oct 24, 2022

To test:
Set the token expiration in keycloak admin console (http://localhost:8080/keycloak) to 1 minute; and type in the search box see what happened after 1 minute
image

longshuicy and others added 30 commits October 10, 2022 13:06
* Removed placeholder right column on Explore page.
Switched to clickable card for datasets.

* Show only 5 max lines for description of dataset card and add ellypsis.

* Default sort dataset list by creation date descending.

* Make sure Dataset CardActionArea fills the card so that CardAction is flushed at the bottom.

* Fixed dataset grid so that items are same width even if we don't have enough for one row.

* New previous/next buttons on dataset list.

* Change default page size for dataset list to 20, a multiple of 4, the default screen size columns size.

* Placeholder icons for download card download, favorite, share actions.

* Black formatting.

* Extra margin around dataset card icons to make it easier to click on icons.

* Set outer grid item size for proper layout when there is few datasets.
@longshuicy longshuicy marked this pull request as ready for review October 24, 2022 22:58
if (error["status"] === 401 || error["status"] === 403) {
V2.OpenAPI.TOKEN = undefined;
cookies.remove("Authorization", {path: "/"});
return <Navigate to="/auth/login"/>;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot properly do the refresh token logic here; for now just redirect to the login page

return <Navigate to="/auth/login"/>;
} else {
// TODO add prettier message or report function
return <h1>An error has happened.</h1>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will trigger when elasticsearch is dead (e.g. 500 internal error)

@lmarini
Copy link
Member

lmarini commented Oct 25, 2022

There is a build error of the frontend when installing dependencies.

#12 3.046 npm ERR! 
#12 3.048 npm ERR! Could not resolve dependency:
#12 3.050 npm ERR! peer webpack@"^5.0.0" from [email protected]
#12 3.051 npm ERR! node_modules/css-minimizer-webpack-plugin
#12 3.053 npm ERR!   dev css-minimizer-webpack-plugin@"^2.0.0" from the root project

…esearch

# Conflicts:
#	frontend/package-lock.json
…to 132-reactive-search-routes-when-token-expire-logout
@longshuicy
Copy link
Member Author

There is a build error of the frontend when installing dependencies.

#12 3.046 npm ERR! 
#12 3.048 npm ERR! Could not resolve dependency:
#12 3.050 npm ERR! peer webpack@"^5.0.0" from [email protected]
#12 3.051 npm ERR! node_modules/css-minimizer-webpack-plugin
#12 3.053 npm ERR!   dev css-minimizer-webpack-plugin@"^2.0.0" from the root project

I merge main (where it has the webpack 5 and other dependency change) into the branch that this branch is merged into
See if the check pasts here: #134

Base automatically changed from 131-custom-widget-and-appearance-for-reactivesearch to main October 26, 2022 15:56
@lmarini
Copy link
Member

lmarini commented Oct 26, 2022

Can you resolve conflicts? Thank you!

@longshuicy longshuicy linked an issue Oct 26, 2022 that may be closed by this pull request
@longshuicy
Copy link
Member Author

Can you resolve conflicts? Thank you!

done

@lmarini lmarini merged commit 531f61e into main Nov 1, 2022
@lmarini lmarini deleted the 132-reactive-search-routes-when-token-expire-logout branch November 1, 2022 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

reactive search routes when token expire logout

4 participants