-
Notifications
You must be signed in to change notification settings - Fork 32
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
feat: Read settings from props/server config when available #1558
Merged
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
20602fa
init
Zhou-Ziheng f058868
interesting
Zhou-Ziheng e5c9794
Merge remote-tracking branch 'origin/main' into use_server_config
Zhou-Ziheng 6616fc2
sus
Zhou-Ziheng 0985974
Merge remote-tracking branch 'origin/main' into use_server_config
Zhou-Ziheng c4ba548
sus
Zhou-Ziheng 6dc09d8
fixed types
Zhou-Ziheng c1ecd97
tests
Zhou-Ziheng f17a4b7
types
Zhou-Ziheng 6fa97f4
sus3
Zhou-Ziheng b54cbbc
types
Zhou-Ziheng e9aa8bc
only inject when getSettings
Zhou-Ziheng dfdba6d
update optional
Zhou-Ziheng 9c28f30
debounce commit changes
Zhou-Ziheng 532ca85
debounce
Zhou-Ziheng bad34f1
Merge remote-tracking branch 'origin/main' into use_server_config
Zhou-Ziheng 4149f4f
assertions
Zhou-Ziheng c7baa09
weird redux issue
Zhou-Ziheng 8335a0b
weird redux issue
Zhou-Ziheng 8c615ac
deep copy
Zhou-Ziheng 2f1008c
why did I add this
Zhou-Ziheng 6e8044d
yikes
Zhou-Ziheng 83b0925
ts
Zhou-Ziheng 69f6579
more ts
Zhou-Ziheng 99f8a4b
clean code
Zhou-Ziheng 7bb79c4
requested changes
Zhou-Ziheng 4e06b30
Merge remote-tracking branch 'origin/main' into use_server_config
Zhou-Ziheng 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
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.
Instead of setting the value, we should leave it
undefined
; that way if the server value is updated again, user gets the new value unless they've explicitly updated the option before.That's how we handle it on Enterprise, anyway: https://github.com/deephaven-ent/iris/blob/b41e56506498118f27fed79ccac41f3dc2af4617/web/client-ui/src/dashboard/WorkspaceStorage.ts#L174
https://github.com/deephaven-ent/iris/blob/b41e56506498118f27fed79ccac41f3dc2af4617/web/client-ui/src/settings/FormattingSectionContent.tsx#L857
From a previous commit I did: https://github.com/deephaven-ent/iris/commit/28a75ae75b27bf97fa1046418af89aa16986e412