Skip to content

Added new API's for adding custom changes into IModelExporter.sourceDbChanges - #237

Merged
JulijaRamoskiene merged 343 commits into
mainfrom
custom-changes-api
Feb 28, 2025
Merged

Added new API's for adding custom changes into IModelExporter.sourceDbChanges#237
JulijaRamoskiene merged 343 commits into
mainfrom
custom-changes-api

Conversation

@JulijaRamoskiene

@JulijaRamoskiene JulijaRamoskiene commented Feb 21, 2025

Copy link
Copy Markdown
Contributor

Changes:

  1. New Apis were added to register custom changes:
  • IModelTransformer:addCustomChanges()
  • IModelExporter:addCustomElementChanges()
  • IModelExporter:addCustomModelChanges()

Custom changes should be added by implementing IModelTransformer:addCustomChanges().

AddCustomRelationshipChanges were not exposed as public, since it would require complex support for delete operation. Instead, relationships are marked as inserted when marking element as inserted.

  1. Added support for processing changes when there are no changes in source. It provides possibility to run transformation with custom changes only.

Michael Belousov and others added 30 commits May 24, 2023 09:12
@JulijaRamoskiene JulijaRamoskiene changed the title Added new API's for assing custom changes into IModelExporter.sourceDbChanges Added new API's for adding custom changes into IModelExporter.sourceDbChanges Feb 21, 2025
@JulijaRamoskiene

JulijaRamoskiene commented Feb 24, 2025

Copy link
Copy Markdown
Contributor Author

This PR is based on #172 PR. I created this branch from those changes, and stripped logic to support custom relationship changes (supporting delete).

Comment thread packages/transformer/src/IModelTransformer.ts
Comment thread packages/transformer/src/IModelTransformer.ts
@DanRod1999

DanRod1999 commented Feb 27, 2025

Copy link
Copy Markdown
Contributor

Other than my few questions I think this PR looks good. However, if @mindaugasdirg or @ViliusRuskys could review I would greatly appreciate it. Thanks!

Comment thread packages/test-app/src/IModelHubUtils.ts
Comment thread packages/transformer/src/IModelExporter.ts Outdated
Comment thread packages/transformer/src/IModelTransformer.ts Outdated
Comment thread packages/transformer/src/IModelTransformer.ts Outdated
ViliusRuskys
ViliusRuskys previously approved these changes Feb 28, 2025
DanRod1999
DanRod1999 previously approved these changes Feb 28, 2025
@JulijaRamoskiene
JulijaRamoskiene merged commit af7cb31 into main Feb 28, 2025
@JulijaRamoskiene
JulijaRamoskiene deleted the custom-changes-api branch February 28, 2025 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants