-
Notifications
You must be signed in to change notification settings - Fork 312
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
UO field set changes #2533
UO field set changes #2533
Conversation
6c926a5
to
9317610
Compare
9317610
to
0f3b7d7
Compare
src/libraries/Microsoft.PowerFx.Core/Public/Values/UntypedObjectValue.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.PowerFx.Core/Public/Values/UntypedObjectValue.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.PowerFx.Interpreter/Functions/ArrayUntypedObject.cs
Outdated
Show resolved
Hide resolved
0f3b7d7
to
68183c0
Compare
even if arg0 is UO, we should still do this check. Set(ParseJson("1"), value) // fail at compile time Refers to: src/libraries/Microsoft.PowerFx.Interpreter/Functions/SetFunction.cs:121 in bf5df32. [](commit_id = bf5df32, deletion_comment = False) |
src/libraries/Microsoft.PowerFx.Core/Public/Values/UntypedObjectValue.cs
Outdated
Show resolved
Hide resolved
src/tests/Microsoft.PowerFx.Interpreter.Tests.Shared/DateTimeUTCTests.cs
Outdated
Show resolved
Hide resolved
internal virtual UntypedObjectValue CreateNew(IRContext irContext, IUntypedObject impl) | ||
{ | ||
return new UntypedObjectValue(irContext, impl); | ||
} |
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.
ohhh.... this is not ideal. I'll followup offline...
Should we have called CreateNew() here? More broadly - the issue with CreateNew is that it's at odds with the UntypedObjectValue() ctor. Refers to: src/libraries/Microsoft.PowerFx.Interpreter/Functions/LibraryUntypedObject.cs:458 in c92d9de. [](commit_id = c92d9de, deletion_comment = False) |
{ | ||
TextLiteralNode textLiteralNode = (TextLiteralNode)bon.Right; | ||
|
||
// !!!TODO What if property name does not exist? |
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.
Superceded by #2547 |
Issue #2501.
Allowing the following scenarios:
Set(Index(uoTable, 1).Id, uoValue)
Set(Index(uoTable, 1).Id, 99)