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

WEB-4122 : Create adapter/validator to filter valid image mimetype our solutions #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

boulch
Copy link
Contributor

@boulch boulch commented Jul 9, 2024

Please @laulaz , can you review this code? :-)

@boulch boulch requested a review from laulaz July 9, 2024 11:36
@coveralls
Copy link

Pull Request Test Coverage Report for Build 9856306545

Details

  • 9 of 17 (52.94%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.6%) to 85.445%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/imio/smartweb/common/adapters.py 9 17 52.94%
Totals Coverage Status
Change from base Build 9740940310: -0.6%
Covered Lines: 816
Relevant Lines: 955

💛 - Coveralls

Comment on lines +10 to +12
<unconfigure>
<adapter name="image_contenttype" factory="plone.namedfile.field.ImageContenttypeValidator" />
</unconfigure>
Copy link
Member

Choose a reason for hiding this comment

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

I tried the adapter without the unconfigure, and for me it is working fine : your adapter and the original one are both called.
We need to check that 😉

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.

3 participants