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

refactor: Refactor prefixes #99

Merged
merged 9 commits into from
Aug 26, 2024
Merged

refactor: Refactor prefixes #99

merged 9 commits into from
Aug 26, 2024

Conversation

ewuerger
Copy link
Member

This PR changes the handling of prefixes (type_prefix and role_prefix) such that these are added during loading of the configuration instead of adding them during the serialization of WorkItems or WorkItemLinks.

@ewuerger ewuerger self-assigned this Aug 21, 2024
Copy link
Collaborator

@micha91 micha91 left a comment

Choose a reason for hiding this comment

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

Some conceptual recommendations - first I wasn't convinced of the general approach of moving the prefixes to the config, but I think this would be a great opportunity to add additional flexibility to the link config and enable the user to define the custom fields individually while having save defaults

capella2polarion/__main__.py Outdated Show resolved Hide resolved
capella2polarion/converters/converter_config.py Outdated Show resolved Hide resolved
ci-templates/gitlab/synchronise_elements.yml Outdated Show resolved Hide resolved
capella2polarion/converters/link_converter.py Outdated Show resolved Hide resolved
capella2polarion/converters/converter_config.py Outdated Show resolved Hide resolved
@ewuerger ewuerger changed the base branch from fix-link-includes to main August 22, 2024 10:20
tests/data/model_elements/config.yaml Outdated Show resolved Hide resolved
capella2polarion/converters/converter_config.py Outdated Show resolved Hide resolved
capella2polarion/converters/converter_config.py Outdated Show resolved Hide resolved
@ewuerger
Copy link
Member Author

I don't know how the tests fail. The test doesn't exist like that with the parametrization anymore. So the tests are not in the state of the latest commit.

Copy link
Collaborator

@micha91 micha91 left a comment

Choose a reason for hiding this comment

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

Just one minor things and we are good to go

capella2polarion/converters/converter_config.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@micha91 micha91 left a comment

Choose a reason for hiding this comment

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

LGTM

@ewuerger ewuerger merged commit adb9ef7 into main Aug 26, 2024
8 checks passed
@ewuerger ewuerger deleted the refactor-prefixes branch August 26, 2024 07:51
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