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 for eZ kernel 7.0 #122

Merged
merged 9 commits into from
Dec 18, 2017
Merged

Support for eZ kernel 7.0 #122

merged 9 commits into from
Dec 18, 2017

Conversation

emodric
Copy link
Collaborator

@emodric emodric commented Nov 21, 2017

Just an unlock in composer.json for now, but obviously will need some more work :)

@andrerom
Copy link
Contributor

Any idea what else will be needed? Asking as it might not need a new major version unless it involves breaks.

@emodric
Copy link
Collaborator Author

emodric commented Nov 21, 2017

At the very least, support for the new HTTP cache bundle. I think that it's a breaking change, but not sure.

@@ -31,6 +31,7 @@ public function process(ContainerBuilder $container)
new Reference('ezplatform.http_cache.purge_client'),
new Reference('ezpublish.api.service.inner_content'),
new Reference('ezpublish.http_cache.event_dispatcher'),
new Reference('ezpublish.api.repository'),
Copy link
Contributor

Choose a reason for hiding this comment

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

this is also relevant for upcoming 6.7.7, 6.12.1 and 6.13.0.
Can code be done in different way to avoid having to set all arguments?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll try to find a way. This is just a playground for now :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't see a way to fix this any other way :/

The problem is that by this point any reference to old ezpublish.http_cache.purger.instant is removed from the container and we simply do not know the list of arguments.

@@ -69,7 +69,7 @@ public function all()
return;
}

$this->cache->clear();
//$this->cache->clear();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@andrerom I'm going to need some help with this one, or rather, with any commented out call to cache client here...

Copy link
Contributor

@andrerom andrerom Nov 23, 2017

Choose a reason for hiding this comment

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

Indeed, should clear by tag, will simplify this a lot and maybe also avoid some of the broad clearings.

well first we need to decide if we are going to have a branch only supporting 7.0 or have two adapters here being injected depending on version.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm all for keeping it simple. 2.0 legacy bridge supporting only kernel 7.0.

If needed, this adapter could be backported than to 1.x.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, I'll push commit for this one.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Don't forget other commented out calls, those are all I didn't know what to do with :)

@andrerom
Copy link
Contributor

andrerom commented Nov 23, 2017

@emodric pushed, not tested yet here, but on theoretical side only relevant todo left there is in regards to clearing type cache on type group changes. The user one is most likely not needed given how it is used.

@emodric
Copy link
Collaborator Author

emodric commented Nov 23, 2017

@andrerom Thanks a lot! It looks okay with only a reading of the code. We can always iterate later if something is missing :)

@emodric emodric force-pushed the 2.0 branch 2 times, most recently from 9e2801b to ec3ded4 Compare December 16, 2017 13:45
@emodric
Copy link
Collaborator Author

emodric commented Dec 16, 2017

@andrerom In this state it is okay with me to merge. WDYT? I was thinking of removing *.class parameters too, and marking services as private, but I can do it in separate PR.

Copy link
Contributor

@andrerom andrerom left a comment

Choose a reason for hiding this comment

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

+1, tested?

@emodric
Copy link
Collaborator Author

emodric commented Dec 17, 2017

So far so good, no issues.

@andrerom andrerom changed the title [WIP] Support for eZ kernel 7.0 Support for eZ kernel 7.0 Dec 18, 2017
@andrerom andrerom merged commit cbe31ca into master Dec 18, 2017
@emodric emodric deleted the 2.0 branch December 18, 2017 10:37
@emodric emodric mentioned this pull request Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants