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
6648 share compare #6678
base: main
Are you sure you want to change the base?
6648 share compare #6678
Conversation
previousTarget !== undefined && | ||
sourceItem.uniqueId === this.splitSourceItemId |
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.
What does this check guarantee?
Also, it's probably not a standard use-case of SplitItemReference, but if this.splitSourceItemId
changes between calls to loadReference
this change will return the old model.
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.
This check is needed to prevent the second item (dragged from first to second in workbench) from stripping out the required dereferenced details, which is the cause of the bug. i.e. if there is a previousTarget passed in and the id's match return the previousTarget
@@ -2,6 +2,7 @@ | |||
|
|||
#### next release (8.2.24) | |||
|
|||
- Fix `Key Share URL use case broken: share URL for Compare datasets forgets 2nd date` |
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.
It's better to note the bug that was fixed rather than a specific case of it (although it can be good list some specific use cases in a sub-list under the main bug fix entry). Sorry, I don't have a suggestion of a better changelog entry until I've understood the code change in SplitItemReference.ts.
@steve9164 to talk to @sixlighthouses to clarify the approach |
@na9da to investigate solution to write more documentation and deal with some corner cases (potentially including id of reference changing). |
@steve9164 - in the init cycle we call After the first call, we have a bit of code that explicitly sets the user-stratum for the Lines 1472 to 1482 in 92da14a
However, if the 2nd call to What the change in this PR does is to avoid creating a new
What are other possible solutions here? Do we avoid the second call to |
What this PR does
Fixes #6648
Added a check in SplitItemReference to see if we have a previousTarget [BaseModel] that has the same id as its source model. If it does return it
Test me
The following link was created using the steps outlined in the ticket
Test Link
Required result with the 2nd dataset being the Copy with the changed date