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

[Backport 2023.02.xx] #634: Update MS to latest version to include Phase II issues (#635) #636

Merged
merged 1 commit into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MapStore2
Submodule MapStore2 updated 189 files
15 changes: 13 additions & 2 deletions configs/localConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
}],
"monitorState": [
{"name": "router", "path": "router.location.pathname"},
{"name": "userrole", "path": "security.user.role"},
{"name": "browser", "path": "browser"},
{"name": "geostorymode", "path": "geostory.mode"},
{"name": "featuregridmode", "path": "featuregrid.mode"},
Expand Down Expand Up @@ -417,6 +418,7 @@
}
}
},
"Permalink",
"MetadataExplorer",
"MapImport",
"MapExport",
Expand Down Expand Up @@ -471,6 +473,7 @@
}
}
},
"Permalink",
{
"name": "Identify",
"cfg": {
Expand Down Expand Up @@ -890,6 +893,7 @@
}
}
},
"Permalink",
{
"name": "DashboardEditor",
"cfg": {
Expand Down Expand Up @@ -1005,7 +1009,8 @@
"sectionId": true
}
}
}
},
"Permalink"
],
"geostory-embedded": [
"GeoStory",
Expand All @@ -1022,6 +1027,10 @@
}
}
],
"permalink": [
"Permalink",
"FeedbackMask"
],
"admin": [{
"name": "Header",
"cfg": {
Expand Down Expand Up @@ -1081,7 +1090,9 @@
"cfg": {
"containerPosition": "header"
}
}
},
"ContextImport",
"ContextExport"
],
"context": [
"Header"
Expand Down
12 changes: 12 additions & 0 deletions configs/pluginsConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,20 @@
"description": "plugins.Share.description",
"dependencies": [
"SidebarMenu"
],
"children": [
"Permalink"
],
"autoEnableChildren": [
"Permalink"
]
},
{
"name": "Permalink",
"glyph": "link",
"title": "plugins.Permalink.title",
"description": "plugins.Permalink.description"
},
{
"name": "Version",
"glyph": "info-sign",
Expand Down
6 changes: 6 additions & 0 deletions js/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import MapViewer from "@mapstore/product/pages/MapViewer";
import Maps from "@mapstore/product/pages/Maps";
import Dashboard from "@mapstore/product/pages/Dashboard";
import GeoStory from "@mapstore/product/pages/GeoStory";
import Permalink from "@mapstore/product/pages/Permalink";
import ContextCreator from "@mapstore/product/pages/ContextCreator";
import Context from "@mapstore/product/pages/Context";
import Admin from "./pages/Admin";
Expand Down Expand Up @@ -148,6 +149,11 @@ const appConfig = assign({}, appCfg, {
name: "geostory",
path: "/geostory/shared/:gid/section/:sectionId/column/:columnId",
component: GeoStory
},
{
name: "permalink",
path: "/permalink/:pid",
component: Permalink
}
],
appEpics: {}
Expand Down
27 changes: 27 additions & 0 deletions js/epics/login.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright 2023, GeoSolutions Sas.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
import {Observable} from "rxjs";
import { LOGIN_REQUIRED } from '@mapstore/actions/security';

const goToLoginPage = () => {
window.location.replace('/?login');
};
const redirectToLoginPage = (action$) =>
action$.ofType(LOGIN_REQUIRED)
.switchMap(() => {
/*
Note: After login the user is not redirected back to the same resource requested,
as CAS login currently doesn't support that
*/
goToLoginPage();
return Observable.empty();
});

export default {
redirectToLoginPage
};
2 changes: 2 additions & 0 deletions js/plugins/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {createPlugin} from "@mapstore/utils/PluginsUtils";
import {connect} from "react-redux";
import User from "../components/User";
import security from "@mapstore/reducers/security";
import loginEpic from "@js/epics/login";

const LoginState = connect((state) => ({
user: state.security && state.security.user,
Expand All @@ -33,6 +34,7 @@ export default createPlugin('Login', {
doNotHide: true
}
},
epics: loginEpic,
reducers: {
security
}
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"karma-webpack": "5.0.0",
"less": "4.1.1",
"less-loader": "8.0.0",
"markdownlint-cli": "0.32.2",
"mini-css-extract-plugin": "1.3.9",
"mkdirp": "0.5.1",
"ncp": "2.0.0",
Expand All @@ -103,6 +104,7 @@
"rimraf": "2.5.2",
"simple-git": "2.20.1",
"style-loader": "2.0.0",
"terser": "5.18.1",
"url-loader": "0.5.7",
"vusion-webfonts-generator": "0.4.1",
"webpack": "5.9.0",
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
2023.02.xx
2023.02.00-RC2-geOrchestra
2023.02.xx
3 changes: 3 additions & 0 deletions web/src/main/resources/sample_categories.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@
<Category>
<name>USERSESSION</name>
</Category>
<Category>
<name>PERMALINK</name>
</Category>
</CategoryList>
Loading