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

Support multiple code systems versioning #282

Closed
wants to merge 2 commits into from

Conversation

norban
Copy link
Contributor

@norban norban commented Nov 14, 2018

@norban norban self-assigned this Nov 14, 2018
final IVersioningManager versioningManager = VersioningManagerBroker.INSTANCE.createVersioningManager(codeSystem.getTerminologyComponentId());
versioningManagersByCodeSystem.put(codeSystem, versioningManager);

if (versioningManager.needsOtherCodeSystemsToVersion()) {
Copy link
Member

Choose a reason for hiding this comment

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

Not sure if this flag is really required, I would only use the codeSystemDependenciesByRepositoryId() method with a forEach if additional code systems need to be versioned along with the current one.

.getSync();
}

private void createVersion(ServiceProvider context, IVersioningManager versioningManager, CodeSystemEntry codeSystem, String user) {
Copy link
Member

Choose a reason for hiding this comment

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

Reusing this method in a forEach to version all dependent code systems as well long with the current one certainly does its job, but we can improve it to limit the number of unwanted content changes while the versioning runs for a single code system.

Refactor the versioning process to acquire and release locks for all target code systems at once at the beginning and at the end of the process.

@norban norban closed this Nov 28, 2018
@cmark cmark deleted the feature/support_multiple_code_systems_versioning branch August 8, 2019 20:07
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.

None yet

2 participants