-
Notifications
You must be signed in to change notification settings - Fork 49
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
Catalogs view should filter by site #801 #804
Catalogs view should filter by site #801 #804
Conversation
@@ -28,7 +39,6 @@ export default function configureStore() { | |||
// load: restore the config from the local storage | |||
const updateConfigFromLocalStorage = () => { | |||
const ls = {...localStorage} | |||
|
|||
Object.entries(ls).forEach(([lsPath, lsValue]) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add if (lsPath.startsWith('rdmo.management.config.')) {
after this line. This was an oversight by me. Otherwise rdmo.storeid
and everything else in the store is picked up as well and stored again unter e.g. rdmo.management.config.rdmo.storeid
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ist erledigt. Schaust du bitte noch mal ob ich das if-Statement auch an der richtigen Stelle beende?
Line 57 nach store.dispatch(...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see inline comment.
d8dbae1
to
6cc0dbd
Compare
acb741a
to
3582b5a
Compare
I've newly rebased the branch onto |
oh no, our e2e tests failed again, I will check it... |
3582b5a
to
917d9db
Compare
makes actually sense that the e2e fails here, in the test we compare the amount of catalogs with we have our first use-case of the e2e test @afuetterer! ;) PS oh no, that would be only for when multisite is True... |
* set storeid cookie in management views.py * clear localStorage in new session * when multisite: filter by currentSite when catalogs page first loads
917d9db
to
4b85c48
Compare
it had to with the setting |
Description
Related issue: #801
Motivation and Context
The catalog overview shows all contents of the instance by default, but should filter automatically by site
Filter necessary especially when viewing all questions
How has this been tested?
Locally, manually in the UI
Screenshots (if appropriate)
Types of Changes
Checklist