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

Type identifier in preview compact bubble. #13394

Merged
merged 2 commits into from
Oct 12, 2022

Conversation

reddyashish
Copy link
Contributor

Purpose

Task: https://jira.autodesk.com/browse/DYN-5053

Add Type identifiers in preview compact bubble. Similar to preview bubble or watch node.

type identifier

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

Release Notes

Type identifier in preview compact bubble.

Reviewers

@QilongTang @zeusongit

@reddyashish
Copy link
Contributor Author

@QilongTang I did not need to call the type overloading methods in compact preview bubble separately, like I initially thought. Getting the type info using the Data property inside MirrorData.

Copy link
Contributor

@QilongTang QilongTang left a comment

Choose a reason for hiding this comment

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

One question then LGTM

internal const string boolType = "bool";
internal const string intType = "int";
internal const string objectType = "object";
internal const string stringType = "string";
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these defined somewhere already so we can make them static to reuse?

Copy link
Member

Choose a reason for hiding this comment

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

can't you use nameof?

Copy link
Contributor Author

@reddyashish reddyashish Oct 12, 2022

Choose a reason for hiding this comment

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

Yes, these constants were used in WatchViewModel. Removing it from WatchViewModel and CompactBubbleViewModel and using nameof property.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks! Looks good

@QilongTang QilongTang merged commit 8df1cfa into DynamoDS:master Oct 12, 2022
@QilongTang QilongTang added this to the 2.17.0 milestone Oct 12, 2022
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.

3 participants