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

Add CI build for integration with plone.app.contenttypes #482

Merged
merged 2 commits into from
Mar 4, 2016

Conversation

hvelarde
Copy link
Member

Even with collective.cover being in production using plone.app.contenttypes for more than 2 years in many sites, we haven't dealt with testing that in CI.

Many changes were made here to achieve compatibility and fix some errors:

  • testing content creation was refactored to simplify it
  • Dexterity Image content was removed as is no longer necessary (test case is covered by using plone.app.contenttypes)
  • a bunch of hacks to deal with Archetypes/Dexterity API incompatibilities were included
  • RF collection tile test was refactored and finally fixed (I hope so)
  • documentation was updated to include a known good versions of packages involved

This is a huge step in the search of Plone 5 compatibility.

@hvelarde
Copy link
Member Author

@fredvd seems p.a.contenttypes Image type doesn't have a setImage method, so we'll need to refactor the tests setup.

anyway, let's ask @pbauer

@pbauer
Copy link
Member

pbauer commented Feb 20, 2015

DX only has a image attribute and also does not accept a image but obj.image = NamedBlobImage(data=raw_data, filename='my_image.png'). ther is also no option to refresh exif (yet).

@hvelarde
Copy link
Member Author

this is now a blocker for #576

@hvelarde hvelarde force-pushed the dexterity-only branch 3 times, most recently from 5686e17 to c89a29c Compare January 20, 2016 13:30
mime = obj.lookupMime(obj.getField('file').getContentType(obj))
size = obj.get_size()

try:
Copy link
Member Author

Choose a reason for hiding this comment

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

@pbauer @thet this is the kind of things I'm stuck with; I need your wisdom on the best way to implement this and/or fix plone.app.contenttypes

@hvelarde
Copy link
Member Author

hvelarde commented Mar 1, 2016

@idgserpro do you mind help me testing this branch?

@hvelarde hvelarde force-pushed the dexterity-only branch 2 times, most recently from 4816087 to 5447036 Compare March 3, 2016 17:10
@hvelarde
Copy link
Member Author

hvelarde commented Mar 3, 2016

@rodfersou please review and merge.

@hvelarde hvelarde force-pushed the dexterity-only branch 3 times, most recently from a7c75d0 to 6138b68 Compare March 3, 2016 20:29
Even as collective.cover has been in production using plone.app.contenttypes for more than 2 years in many sites, we haven't deal with testing that in CI.

Many changes were made here to achieve compatibility and fix some errors:

- testing content creation was refactored to simplify it
- Dexterity Image content was removed as is no longer necessary (test case is covered by using plone.app.contenttypes)
- a bunch of hacks to deal with Archetypes/Dexterity API incompatibilites were included
- RF collection tile test was refactored and finally fixed (I hope so)
- documentation was updated to include a known good versions of packages involved

This is a huge step in the search of Plone 5 compatibility.
@hvelarde hvelarde force-pushed the dexterity-only branch 3 times, most recently from a4f9108 to fb6467d Compare March 3, 2016 23:38
@hvelarde hvelarde force-pushed the dexterity-only branch 4 times, most recently from 49684b7 to 5e9b0cc Compare March 4, 2016 00:43
We ignore some tests are randomly failing under Plone 4.2.
hvelarde added a commit that referenced this pull request Mar 4, 2016
Add CI build for integration with plone.app.contenttypes
@hvelarde hvelarde merged commit 96632bc into master Mar 4, 2016
@hvelarde hvelarde deleted the dexterity-only branch March 4, 2016 01:48
@davilima6
Copy link
Contributor

@hvelarde, no need for changelog in this one?

@hvelarde
Copy link
Member Author

hvelarde commented Mar 4, 2016

mostly changes on test infrastructure because of incompatibilities among Archetypes and Dexterity and some bug fixes; but, yes, you are probably right.

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.

4 participants