-
Notifications
You must be signed in to change notification settings - Fork 50
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
Persist dashboard filters in query params #3406
Merged
pmattmann
merged 26 commits into
ecamp:devel
from
DeNic0la:dashboard-filters-in-url-#3155
Aug 15, 2023
Merged
Changes from 5 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
30477fa
persist dashboard filters in query params
DeNic0la f46a437
show only id in url params and add period
DeNic0la 1f8a558
add Dashboard test
DeNic0la 5d35136
add Unittests for implemented functionality
DeNic0la 1e4a2d0
Merge remote-tracking branch 'original/devel' into dashboard-filters-…
DeNic0la a40967f
move formatting utilities to helper
DeNic0la 5acb42d
fix jsdoc
DeNic0la d7f9eed
inline variable
DeNic0la 0daa6b7
Merge pull request #1 from DeNic0la/devel
DeNic0la cc76582
Merge pull request #2 from DeNic0la/devel
DeNic0la e57d0cc
fix: dont redirect after unload
DeNic0la 501d962
remove debug info and wrap all promises into one
DeNic0la 17ecc42
update unittests
DeNic0la 27857a9
minor fix
DeNic0la 1ed96ba
minor fix
DeNic0la aecb048
simplify and lint
DeNic0la 14b7788
Merge branch 'devel' into dashboard-filters-in-url-#3155
DeNic0la 0536fdd
use window history to persist query params
DeNic0la 0663adf
improve querySyncHelper and add unit tests
DeNic0la ede3e68
refactor and add tests
DeNic0la 9719413
refactor and add tests
DeNic0la fbc0250
minor fix
DeNic0la 46d4a10
Add Cypress-Tests and refactor
DeNic0la 80d1eb3
Lint and fix
DeNic0la 00938d1
Merge branch 'devel' into dashboard-filters-in-url-#3155
DeNic0la 8aee5d2
fix
DeNic0la File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* The Type of Object in qualified hal format for api | ||
* @typedef {'categories'|'camp_collaborations'|'periods'} HalType | ||
*/ | ||
/** | ||
* Format of the Hal Uri | ||
* @typedef {`/${HalType}/${string}`} HalUri | ||
*/ | ||
/** | ||
* Formats the Hal-Object-URI to the id | ||
* @param uri {HalUri} the ID (from the hal object) | ||
* @return {string} the ID of the uri | ||
*/ | ||
export const halUriToId = (uri) => { | ||
return uri.substring(uri.lastIndexOf('/') + 1) | ||
} | ||
/** | ||
* Formats an id and a Datatype to a hal-object-id | ||
* @param dataType {HalType} the datatype of the object | ||
* @param id {string} the id of the object | ||
* @return {HalUri} | ||
*/ | ||
export const idToHalUri = (dataType, id) => { | ||
return `/${dataType}/${id}` | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is there a specific reason we need 2 separate calls for
Promise.all
? Or could we put all the loading promises into onePromise.all
and await this one?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.
Nope, that's leftover code from when I tried some performance optimisation.