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

Depend on plone.app.standardtiles #96

Closed
wants to merge 2 commits into from
Closed

Conversation

ale-rt
Copy link
Member

@ale-rt ale-rt commented Jul 22, 2022

Refs. #95
Refs. #94 that introduced an hard dependency on that package

Refs. #95
Refs. #94 that introduced an hard dependency on that package
@@ -9,6 +9,7 @@
widgets_require = ["plone.app.widgets"]
test_require = [
"plone.app.tiles",
# "plone.app.standardtiles",
Copy link
Member Author

Choose a reason for hiding this comment

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

I pushed it commented on purpose to see if I can trigger the error in the test build

@petschki
Copy link
Member

I think that's a circular dependency here https://github.com/plone/plone.app.standardtiles/blob/main/setup.py#L39 ... I do not think, that plone.app.standardtiles should be imported here ...

@ale-rt
Copy link
Member Author

ale-rt commented Jul 22, 2022

Thanks @petschki, that's indeed a circular dependency.
It was a soft dependency in 5.0.1:

ale@avo:~/Code/plone/projects/coredev/5.2/src/plone.app.blocks$ git grep standardtiles 5.0.1
5.0.1:plone/app/blocks/subscribers.py:        if "plone.app.standardtiles.field" in tile_url:
5.0.1:plone/app/blocks/tests/test_contentlayout.py:  <div data-tile="./@@plone.app.standardtiles.html/example"
...

It became an hard one on in 5.1.0:

ale@avo:~/Code/plone/projects/coredev/5.2/src/plone.app.blocks$ git grep standardtiles 5.1.0
5.1.0:plone/app/blocks/linkintegrity.py:from plone.app.standardtiles import html
5.1.0:plone/app/blocks/linkintegrity.py:from plone.app.standardtiles import existingcontent
5.1.0:plone/app/blocks/subscribers.py:        if "plone.app.standardtiles.field" in tile_url:
5.1.0:plone/app/blocks/tests/test_contentlayout.py:  <div data-tile="./@@plone.app.standardtiles.html/example"
...

5.1.0 contains have #94 which is missing on master.

I think there is quite a lot to do here...

@petschki
Copy link
Member

Regarding the hard dependency: I think html and existingcontent linkitegrity implementation should be done in plone.app.standardtiles

The soft dependency should really be solved differently maybe with an el.attrib.get("data-tile-storage") == "skip" which then could be set in plone.app.standardtiles.field ...

@ale-rt
Copy link
Member Author

ale-rt commented Jul 22, 2022

Yeah I am definitely convinced that plone.app.blocks should not depend on standard tiles

I updated #95 and I will close this PR.

Regarding the hard dependency: I think html and existingcontent linkitegrity implementation should be done in plone.app.standardtiles

Maybe the other way around (i.e., moving plone.app.standardtiles.html and plone.app.standardtiles.existingcontent to this package) will be better?
Anyway let's move the discussion in #95

ale-rt added a commit to ale-rt/quaive-project that referenced this pull request Jul 22, 2022
@petschki
Copy link
Member

Are there changes to merge into 5.x or can we close it?

@ale-rt
Copy link
Member Author

ale-rt commented Nov 15, 2023

I would say we can close this one

@ale-rt ale-rt closed this Nov 15, 2023
@ale-rt ale-rt deleted the 5.x-fix-requirements branch November 15, 2023 08:31
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.

2 participants