Skip to content
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 7 commits into from
Feb 9, 2024

Conversation

QilongTang
Copy link
Contributor

@QilongTang QilongTang commented Feb 5, 2024

Purpose

DYN-6602 Make Dynamo TSpline nodes OOTB and hide experiment toggle under feature flag.
image

Tested cases covering:

  • Feature flag off - TSpline nodes available OOTB
  • Feature flag on - Toggle visible and use able to control show/hide TSpline nodes based on toggle value

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated
  • This PR contains no files larger than 50 MB

Release Notes

Make Dynamo TSpline nodes OOTB and hide experiment toggle under feature flag

Reviewers

@DynamoDS/dynamo

FYIs

(FILL ME IN, Optional) Names of anyone else you wish to be notified of

@QilongTang QilongTang added the WIP label Feb 5, 2024
@QilongTang QilongTang added this to the 3.1 milestone Feb 5, 2024
Copy link

github-actions bot commented Feb 5, 2024

UI Smoke Tests

Test: success. 2 passed, 0 failed.
TestComplete Test Result
Workflow Run: UI Smoke Tests
Check: UI Smoke Tests - net8.0

@QilongTang QilongTang changed the title [WIP] DYN-6602 Make Dynamo TSpline nodes OOTB and hide experiment toggle under feature flag DYN-6602 Make Dynamo TSpline nodes OOTB and hide experiment toggle under feature flag Feb 7, 2024
@@ -728,6 +729,7 @@ protected DynamoModel(IStartConfiguration config)
}
catch (Exception e) { Logger.LogError($"could not start feature flags manager {e}"); };
});
DynamoFeatureFlagsManager.FlagsRetrieved += HandleFeatureFlags;
Copy link
Contributor Author

@QilongTang QilongTang Feb 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add feature flag event based TSpline nodes show/hide. FYI: @reddyashish @mjkkirschner

@Amoursol
Copy link
Contributor

Amoursol commented Feb 9, 2024

@QilongTang did we want to hide the entire Experimental section also if we no longer have anything inside it? i.e. - it shows if we have something, is hidden if not?

@mjkkirschner
Copy link
Member

@QilongTang did we want to hide the entire Experimental section also if we no longer have anything inside it? i.e. - it shows if we have something, is hidden if not?

@sm6srw is going to add paneling nodes to it.

@QilongTang
Copy link
Contributor Author

QilongTang commented Feb 9, 2024

@QilongTang did we want to hide the entire Experimental section also if we no longer have anything inside it? i.e. - it shows if we have something, is hidden if not?

@sm6srw is going to add paneling nodes to it.

Agreed, I think we will have more experimental features in the future, e.g. new App home

@QilongTang QilongTang merged commit 3a7924f into master Feb 9, 2024
20 of 21 checks passed
@QilongTang QilongTang deleted the TSplineNodesOOTB branch February 9, 2024 16:50
internal void UpdateNamespacesToExcludeFromLibrary()
{
// When the experiment toggle is disabled by feature flag, include the TSpline namespace from the library OOTB.
if (!DynamoModel.FeatureFlags?.CheckFeatureFlag("IsTSplineNodesExperimentToggleVisible", false) ?? false)
Copy link
Contributor

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?

@aparajit-pratap
Copy link
Contributor

@QilongTang did we want to hide the entire Experimental section also if we no longer have anything inside it? i.e. - it shows if we have something, is hidden if not?

@sm6srw is going to add paneling nodes to it.

Agreed, I think we will have more experimental features in the future, e.g. new App home

As far as I understand, this PR isn't doing it the way @Amoursol is suggesting. The display of the experimental expander purely depends on whether the feature flag is on or off, not on whether there are experimental features or not. I think the experimental section should be displayed based on whether NamespacesToExcludeFromLibrary is empty or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants