-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Eliminate Global Shared State from app paths and relatives #4653
Closed
Closed
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
a9189f8
Stop using global shared state for ExtensionDiscovery and it's relatives
jansav 13873f5
Replace a dependency to full implementation with an interface to allo…
jansav 908a409
Extract minimal dependencies over a god class to satisfy Interface Se…
jansav 9d33fff
Cascade different refactorings to eliminate global shared state from …
jansav 4224937
Merge remote-tracking branch 'origin/master' into eliminate-gst-from-…
jansav ff9e9bd
Re-implement some Extension API features using injectables
jansav f089d5c
Add missing todo
Iku-turso d896094
Kludge a timing issue until root cause of shared global state is fixed
Iku-turso 4441d71
Fix issue with opening of terminal
jansav 48948c7
Fix endless re-rending of logs
jansav 4d5e2bd
Remove component observation causing involuntary re-renders
jansav eeff7e4
Fix changing between cluster metrics
jansav ae1d3a2
Revert breaking change
jansav 4b46f1f
Override a side effect in unit test
jansav d853898
Update injectable
jansav e1a6d4c
Merge remote-tracking branch 'origin/master' into eliminate-gst-from-…
jansav b157bda
Fix deprecated comment
jansav a1fd61e
Mark electron to cause side effects in unit tests
jansav 8d87bd0
Merge remote-tracking branch 'origin/master' into eliminate-gst-from-…
jansav 995983f
Fix code style
jansav 0f33ba1
Simplify function
jansav 977c6bd
Move file to proper directory
jansav 883ece7
Make unit test not fail on windows
jansav 070750e
Try fixing unit test in windows
jansav ecb9339
Fix issue with "this"
jansav 09b52a5
Fix adding new namespace
jansav 06379b0
Add TODO
jansav 4e2995f
Extract business logic from component while trying to solve re-render…
jansav 7c97303
Remove duplicated LICENSE header
jansav 00f6d6b
Merge remote-tracking branch 'origin/master' into eliminate-gst-from-…
jansav edd9dcd
Fix duplicate import
jansav 1e772e5
Fix import
jansav 84b1d9e
Temporary disable failing integration tests to allow merging and solv…
jansav File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* Copyright (c) 2021 OpenLens Authors | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
* this software and associated documentation files (the "Software"), to deal in | ||
* the Software without restriction, including without limitation the rights to | ||
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
* the Software, and to permit persons to whom the Software is furnished to do so, | ||
* subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
*/ | ||
|
||
// This mock exists because library causes criminal side-effect on import | ||
export const autoUpdater = {}; |
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,23 @@ | ||
/** | ||
* Copyright (c) 2021 OpenLens Authors | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
* this software and associated documentation files (the "Software"), to deal in | ||
* the Software without restriction, including without limitation the rights to | ||
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
* the Software, and to permit persons to whom the Software is furnished to do so, | ||
* subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
*/ | ||
|
||
// This mock exists because library causes criminal side-effect on import | ||
export default {}; |
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
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
Oops, something went wrong.
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.
When
{doGeneralOverrides: true}
is required? Shouldn't it be a default value?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.
Most of times
doGeneralOverrides: true
is the correct way. Because it overrides e.g.electron
from unit tests.I would suggest that we keep it there for a while and make it default in separate PR if we really want to do so in future.
It's there to make sure that you as a developer know that it's doing the overrides. Less magic.