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

[Contexts] introduce contexts to make params list for all kinds of extensions smaller and easier extendable #363

Merged
merged 5 commits into from
Jul 20, 2022

Conversation

dpfaffenbauer
Copy link
Collaborator

Q A
Bug fix? no
New feature? yes
BC breaks? YES
Deprecations? no

@dpfaffenbauer dpfaffenbauer added this to the 4.0.0 milestone Jul 13, 2022
@dpfaffenbauer dpfaffenbauer self-assigned this Jul 13, 2022
@dkarlovi
Copy link
Collaborator

LGTM! Just kidding, I'll need to look at it a bit closely. I'll have time next Monday.

Copy link
Collaborator

@dkarlovi dkarlovi left a comment

Choose a reason for hiding this comment

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

It's a huge change and I'd love it if unrelated CS reformatting was not a part of it.

Would it be possible to have a root ContextInterface and have the specific interfaces extend it, and also to push common stuff there? It might mean we'll be able to have less interfaces since some of them might be exactly the same, we can then find a better naming instead of forcing <Usecase>Interface format.

DataDefinitionInterface $definition,
array $params,
array $dataRow,
?ImportDataSetInterface $dataSet,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why Import here since it's not import specific?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

exactly, it can be used for exports too.

src/DataDefinitionsBundle/Context/FetcherContext.php Outdated Show resolved Hide resolved
src/DataDefinitionsBundle/Context/SetterContext.php Outdated Show resolved Hide resolved
src/DataDefinitionsBundle/Fetcher/FetcherInterface.php Outdated Show resolved Hide resolved
add basic context
rename setter to mapping
…/contexts

# Conflicts:
#	src/DataDefinitionsBundle/Resources/config/services.yml
Copy link
Collaborator

@dkarlovi dkarlovi left a comment

Choose a reason for hiding this comment

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

OK, it looks good to me, but since it's so huge, I could obviously be wrong. Let's merge here and we'll fix the issues as they come.

@dpfaffenbauer dpfaffenbauer merged commit 27fb1e6 into instride-ch:master Jul 20, 2022
@dpfaffenbauer dpfaffenbauer deleted the features/contexts branch July 20, 2022 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants