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

gh-459 Allows main version folders to be merged into other branches #460

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

OButlerOcc
Copy link
Contributor

@OButlerOcc OButlerOcc commented May 9, 2024

closes #459

Relates to MauroDataMapper/mdm-ui#854

Currently a main branch of a version folder or a model cannot be merged into a branch.
This is a ui problem as it functions fine as far as the back end is concerned.
This update edits the allowed actions for these types of object to allow them to be merged.
We add the MERGE_INTO_ACTION into the allowed admin actions for these types of model/folder, the ui then generates the merge ui for them
Via mdm-core:
run as normal

to install new security config:
Via mdm-application-build:

  1. Pull latest Mdm-App-Build.
  2. Pull this branch mdm-core
  3. in mdm core. publish mdm-security to maven local
  4. in application build replace the security dependancy with:
    'runtimeOnly "uk.ac.ox.softeng.maurodatamapper:mdm-security:5.4.0-SNAPSHOT" '

image

  1. clean and build

@jamesrwelch jamesrwelch force-pushed the feature/gh-459-update-securitypolicy-to-allow-merging branch from ea51c33 to 40f41e2 Compare May 29, 2024 09:00
}
if (role.canVersion()) {
updatedActions.addAll(EDITOR_VERSIONING_ACTIONS)
}

if ((role.domainType == "VersionedFolder" || role.domainType == "DataModel") && !role.isFinalised()){
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should consider other model types here: CodeSet, Terminology and ReferenceDataModel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Open PR
Development

Successfully merging this pull request may close these issues.

Update security profiles to allow merge actions for main branches
2 participants