Closed TG-JC closed 1 year ago
Hi,
I have verified the issue and I can reproduce it. Typically, I expect that the user would export only entities from a single project in the same repository. However, I can provide you with a solution:
I have included my modified Mashup as a reference and I have tested this with ThingWorx 9.1 For the moment, I will not modify the whole extension just for this, but I will keep this in mind for a future release.
Well, I thing I will get into troubles if I proceed with the fix you propose. When I try to save the Mashup, Thingworx displays a popup saying: "Modifying an extension mashup will prevent it from being upgraded in future versions. Are you sure you wish to continue?"
How can I ensure that Thingworx will override these modifications once I import your next release?
For the moment, I am not planning a new release. I will provide a new release when I gather more bugs and introduce some enhancements. Because this extension is editable, when I will release a new version, it will not override your modified entities within the extension. In this situation, you will need first to uninstall the extension and then install the new version.
As a context, adding the fact that the GitBackup extension mashups are editable on purpose, so that users can customize them as they see fit. And also, by design, when a new version of the GitBackup would be released, if you performed customizations, you then need to remove the old GitBackup version, and then install the new one. ThingWorx's Extension upgrade process makes sure to give you a chance to save your modifications (export them to a file) instead of overriding them automatically. This is essentially a trade-off between upgradability and flexibility - I give the chance to the users to insert any customizations they want until a new version is released. Since the Users who use this Extension will be developers, the tradeoff makes sense.
Step to reproduce:
From GitBackup main mashup, open Export dialog box
Under "Export Entities", select project A
Click on "Export Entities" button
In next dialog box, select some entries in left-hand-side list and click on Add![image](https://user-images.githubusercontent.com/68104232/107925082-38840e00-6f74-11eb-87fd-30651375e894.png)
Click on Export (dialog closes)
Back on main Export dialog box, clear Project cell and select projet B (!= project A)
Click on "Export Entities" button
What's wrong:
Expectation: when you select another project, right-hand-side list should be flushed.
Workaround: Close and reopen Export dialog box when you want to select another project.