Skip to content
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

[BACKLOG-43081] - import-export.sh working with global/local #9846

Open
wants to merge 1 commit into
base: project-profile
Choose a base branch
from

Conversation

abryant-hv
Copy link
Contributor

  • copy shared objects from the RepositoryBowl to the TransMeta or JobMeta before export in StreamToJobNodeConverter and StreamToTransNodeConverter.
  • Strip object ids from meta before exporting
  • move shared objects to RepositoryBowl and fix database connections on import in StreamToJobNodeConverter and StreamToTransNodeConverter
  • new API to list names of used database connections from AbstractMeta (more efficient than asking the meta about each connection)
  • SharedObjectUtil methods:
    • copy used db and all other shared objects into meta from a (Repository) Bowl, for export
    • moved patchDatabaseConnections here to use in other import mechanisms
    • stripObjectIds, for use before export

- copy shared objects from the RepositoryBowl to the TransMeta or JobMeta
  before export in StreamToJobNodeConverter and StreamToTransNodeConverter.
- Strip object ids from meta before exporting
- move shared objects to RepositoryBowl and fix database connections on import
  in StreamToJobNodeConverter and StreamToTransNodeConverter
- new API to list names of used database connections from AbstractMeta
  (more efficient than asking the meta about each connection)
- SharedObjectUtil methods:
  - copy used db and all other shared objects into meta from a (Repository)
    Bowl, for export
  - moved patchDatabaseConnections here to use in other import mechanisms
  - stripObjectIds, for use before export
@abryant-hv abryant-hv requested a review from a team as a code owner March 4, 2025 20:25
DatabaseManagementInterface targetManager = targetMeta.getSharedObjectManager( DatabaseManagementInterface.class );

Set<String> usedNames = targetMeta.getUsedDatabaseConnectionNames();
for ( String name : usedNames ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens to the used connections that are in source but not in destination

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They get copied to targetManager. I'm not sure what the question is here.

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.

2 participants