-
Notifications
You must be signed in to change notification settings - Fork 121
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
Wings: Roundtrip of single value attribute become an array after saving #4556
Comments
@elrayle This happens when |
at first glance, i think this is expected
|
@tpendragon It happens for all single value types for the reason described by @no-reply. |
How Valkyrie handles this [@tpendragon in Slack]...
|
make TransformerValueMapper/OrmConverter treat single value arrays as singular value objects by default. change the generated fields for ad-hoc valkyrie models to be Set.of(Anything), by default. don't override existing fields when generating valkyrie models. related to #4556
make TransformerValueMapper/OrmConverter treat single value arrays as singular value objects by default. change the generated fields for ad-hoc valkyrie models to be Set.of(Anything), by default. don't override existing fields when generating valkyrie models. related to #4556 Co-authored-by: Trey Pendragon <tpendragon@princeton.edu>
make TransformerValueMapper/OrmConverter treat single value arrays as singular value objects by default. change the generated fields for ad-hoc valkyrie models to be Set.of(Anything), by default. don't override existing fields when generating valkyrie models. related to #4556 Co-authored-by: Trey Pendragon <tpendragon@princeton.edu>
make TransformerValueMapper/OrmConverter treat single value arrays as singular value objects by default. change the generated fields for ad-hoc valkyrie models to be Set.of(Anything), by default. don't override existing fields when generating valkyrie models. related to #4556 Co-authored-by: Trey Pendragon <tpendragon@princeton.edu>
make TransformerValueMapper/OrmConverter treat single value arrays as singular value objects by default. change the generated fields for ad-hoc valkyrie models to be Set.of(Anything), by default. don't override existing fields when generating valkyrie models. related to #4556 Co-authored-by: Trey Pendragon <tpendragon@princeton.edu>
Closing... Addressed by PR #4607 - wings: handle single value fields for valkyrie native models |
Descriptive summary
In a valkyrie resource, saving the resource converts single value attributes from String to Array.
Rationale
The roundtrip conversion from resource to AF object and back to resource should not change the value of an attribute.
Expected behavior
NOTE: single_value_attr is "one" before and after the save
Actual behavior
NOTE: single_value_attr is "one" before and an Array ["one"] after the save
Steps to reproduce the behavior
TBD - creating a test to demonstrate the problem
The text was updated successfully, but these errors were encountered: