-
Notifications
You must be signed in to change notification settings - Fork 723
Fix for optional values being added without overwriting previous entries (Issue 1816) #2322
Conversation
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.
When i press the generate random data button nothing happens
Signed-off-by: awjh-ibm <andrew.hurt1@ibm.com>
Updated code to fix generate code issue |
Changes requested have since been committed
@awjh-ibm can you fix the conflicts please? |
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.
@awjh-ibm i'd expect this to work for non optional properties too. So if i enter some data then press the generate random button i'd expect the properties i have already set to keep their values too not just optional ones
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.
If you show the optional properties then generate random data, then edit one of the optional properties, then generate random data, the property changed previosuly will be overwriten
@caroline-church Note that this issue is not intended to change the behaviour of random data generation; just the behaviour of ticking and un-ticking the Optional properties checkbox. See the discussion in #1816 To recap, the behaviour suggested is simply:
|
I know but it is related and he has already fixed other properties when
generating random data just not for optional properties.
…On Fri, 27 Oct 2017 at 17:49, Mark S. Lewis ***@***.***> wrote:
Note that this issue is not intended to change the behaviour of random
data generation; just the behaviour of ticking and un-ticking the *Optional
properties* checkbox. See the discussion in #1816
<https://github.com/hyperledger/composer/issues/1816>
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<https://github.com/hyperledger/composer/pull/2322#issuecomment-340024044>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AV-gMQs9S9VyQ61YRfJfv_ctvLaBEtNoks5swgjMgaJpZM4PyfkU>
.
|
Signed-off-by: awjh-ibm <andrew.hurt1@ibm.com>
#1816
Fix to keep user's previously entered data for fields when the user ticks the optional data checkbox. Optional data is discarded when box is unticked to match possible solution 3 of the issue.
Work performed: