-
Notifications
You must be signed in to change notification settings - Fork 636
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
DYN-6602 Make Dynamo TSpline nodes OOTB and hide experiment toggle under feature flag #14923
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8186fc4
first commit
QilongTang fa51525
Add feature flag based list initial value manipulation
QilongTang 28c4cc2
Comments
QilongTang 2a65da0
Updates
QilongTang 5ec597a
Update
QilongTang dedd8d1
Add event based TSplineNodes show/hide
QilongTang 307d38c
regressions
QilongTang 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ | |
using Dynamo.Selection; | ||
using Dynamo.Utilities; | ||
using DynamoServices; | ||
using DynamoUtilities; | ||
using Greg; | ||
using Lucene.Net.Documents; | ||
using Lucene.Net.Index; | ||
|
@@ -716,7 +717,7 @@ protected DynamoModel(IStartConfiguration config) | |
{ | ||
//this will kill the CLI process after cacheing the flags in Dynamo process. | ||
using (FeatureFlags = | ||
new DynamoUtilities.DynamoFeatureFlagsManager( | ||
new DynamoFeatureFlagsManager( | ||
AnalyticsService.GetUserIDForSession(), | ||
mainThreadSyncContext, | ||
IsTestMode)) | ||
|
@@ -728,6 +729,7 @@ protected DynamoModel(IStartConfiguration config) | |
} | ||
catch (Exception e) { Logger.LogError($"could not start feature flags manager {e}"); }; | ||
}); | ||
DynamoFeatureFlagsManager.FlagsRetrieved += HandleFeatureFlags; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add feature flag event based TSpline nodes show/hide. FYI: @reddyashish @mjkkirschner |
||
} | ||
|
||
// TBD: Do we need settings migrator for service mode? If we config the docker correctly, this could be skipped I think | ||
|
@@ -975,6 +977,15 @@ protected DynamoModel(IStartConfiguration config) | |
DynamoReady(new ReadyParams(this)); | ||
} | ||
|
||
/// <summary> | ||
/// When feature flags received, handle them and make changes | ||
/// </summary> | ||
private void HandleFeatureFlags() | ||
{ | ||
PreferenceSettings.UpdateNamespacesToExcludeFromLibrary(); | ||
return; | ||
} | ||
|
||
private void HandleAnalytics() | ||
{ | ||
if (IsTestMode) | ||
|
@@ -1367,6 +1378,7 @@ public void Dispose() | |
LibraryServices.LibraryLoaded -= LibraryLoaded; | ||
|
||
EngineController.VMLibrariesReset -= ReloadDummyNodes; | ||
DynamoFeatureFlagsManager.FlagsRetrieved -= HandleFeatureFlags; | ||
|
||
Logger.Dispose(); | ||
|
||
|
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.
Why not use
preferenceSettings.IsTSplineNodesExperimentToggleVisible
property here?