WIP Revert preview string transformtion and allow users to use numeric format when converting string to object. #14369
+1,822
−41
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.
Purpose
#13861
I found that while this PR:#13744, initially seemed like a good idea, that it leads to lots of user confusion because it modifies the display values of strings all over the application, but does not actually address the bug it was implemented to fix since it does not actually modify the string data, but only its preview.
I believe the implicit transformation of the preview of user strings to be confusing. Strings are raw data, and we should not be modifying them without explicit user control, we should especially not be modifying them when the underlying string data is actually different - how is a user to know what is going on!?
Here is an example of the wackiness you can create with current master
It also will lead to strange behavior when mixing strings from different cultures, this is a perfectly reasonable thing to do, as strings have standard encodings exactly for this reason. ( see the linked issue)
Instead, this PR does the following:
String From Object
andString From Array
nodes call internally.useNumberFormat
- when true the node will convert the primitive or array to a string and use the user's number format preference to control the format of the generated string.During deserialization, if an old node is found (missing the new optional port) - then we add the port - this lets use migrate old graphs without introducing a new node or migration etc.TODO:
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
String From
nodes that allows control over format of generated string using preference setting.Reviewers
(FILL ME IN) Reviewer 1 (If possible, assign the Reviewer for the PR)
(FILL ME IN, optional) Any additional notes to reviewers or testers.
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of