mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
a2bc704f80
* fix(import) do differential patching for design activity imports This patch adds differential patching for imports that occur during the switching between design and debug tabs inside of Designer. As reported through #2971, and others, this patch favors existing data over imported data, values that exist already on the document will remain unchanged, only new values (including array based values) will be added / removed. This also includes a bypass feature for urls, currently these options are not exposed through the interface but could be. This feature is an object to allow for future properties for preference-based patching. - Adds `options.enableDiffBasedPatching` and `options.enableDiffDeep` to `importRaw` for backwards compat. - Adds `options.bypassDiffProps.url` for url bypassing and use an object for future items. - Adds `diffPatchObj` based on differential patching for objects (works with arrays as well). Future ideas: - `hasBeenModifiedByUser` property map object to allow changing properties that haven't been touched by the user with options. fixes: #2971, #2882, #3038, #2442 * adds some basic tests - also adds jest (which was (mistakenly) not there before) - does not call `.hasOwnProperty` directly, per https://eslint.org/docs/rules/no-prototype-builtins (which, we will add more formally at a later date) * don't special-case workspaces this ensures the behavior of the initial PR is more preserved Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com> |
||
---|---|---|
.. | ||
__fixtures__ | ||
__mocks__ | ||
__tests__ | ||
analytics.js | ||
api-specs.js | ||
constants.js | ||
database.js | ||
documentation.js | ||
grpc-events.js | ||
grpc-paths.js | ||
har.js | ||
hotkeys-listener.js | ||
hotkeys.js | ||
import.js | ||
keyboard-keys.js | ||
log.js | ||
markdown-to-html.js | ||
migrate-from-designer.js | ||
misc.js | ||
render.js | ||
select-file-or-folder.js | ||
send-request.js | ||
sorting.js | ||
strings.js |