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

Implement content validation #128

Closed
hvelarde opened this issue Aug 31, 2017 · 0 comments · Fixed by #136
Closed

Implement content validation #128

hvelarde opened this issue Aug 31, 2017 · 0 comments · Fixed by #136
Assignees

Comments

@hvelarde
Copy link
Member

hvelarde commented Aug 31, 2017

In order to increase content quality we need to implement validation of the content to be shared. The validator needs to take into account best practices as dictated mainly by Twitter and Facebook:

  • content title should not have more than 70 characters
  • content description should not have more than 200 characters and should contain at least 2 phrases
  • lead image should be in JPG, PNG, WEBP or GIF format
  • lead image dimensions should be at least 600px x 315px and aspect ratio should be 1.33:1 at least
  • lead image size should be less than 5MB

Validation must be executed on content publishing or when published content is edited. Validation is not supposed to enforce these practices, but only warn editors (using a status message) about failure to comply with them.

claytonc added a commit that referenced this issue Sep 8, 2017
claytonc added a commit that referenced this issue Sep 8, 2017
claytonc added a commit that referenced this issue Sep 8, 2017
claytonc added a commit that referenced this issue Sep 8, 2017
claytonc pushed a commit that referenced this issue Sep 9, 2017
claytonc pushed a commit that referenced this issue Sep 9, 2017
claytonc pushed a commit that referenced this issue Sep 9, 2017
claytonc pushed a commit that referenced this issue Sep 9, 2017
claytonc pushed a commit that referenced this issue Sep 9, 2017
claytonc pushed a commit that referenced this issue Sep 9, 2017
claytonc pushed a commit that referenced this issue Sep 9, 2017
claytonc pushed a commit that referenced this issue Sep 9, 2017
hvelarde pushed a commit that referenced this issue Sep 12, 2017
hvelarde pushed a commit that referenced this issue Sep 12, 2017
hvelarde pushed a commit that referenced this issue Sep 12, 2017
hvelarde pushed a commit that referenced this issue Sep 12, 2017
hvelarde pushed a commit that referenced this issue Sep 12, 2017
hvelarde pushed a commit that referenced this issue Sep 12, 2017
hvelarde pushed a commit that referenced this issue Sep 12, 2017
hvelarde pushed a commit that referenced this issue Sep 12, 2017
hvelarde pushed a commit that referenced this issue Sep 12, 2017
hvelarde pushed a commit that referenced this issue Sep 12, 2017
hvelarde pushed a commit that referenced this issue Sep 15, 2017
)

* #128 - Implemented validation of the content to be shared

* #128 - refactor and check if sc.social.like is intaled

* #128 - added info in method

* #128 - pep8

* #128 - fix test image size

* #128 - started tests for new subscriber

* #128 - altered imports

* #128 - add tests subscribers

* #128 -  remove subscribers for archetypes-based content types

* #128 - pep8

* #128 - corrections

* #128 - Dexterity-based content types only

* #128 - fixed test

* #128 - altered

* #128 - add extras require

* #128 - testing request with zope.globalrequest

* Work around code analysis bug

refs. gforcada/flake8-pep3101#16

* Refactor

* Add upgrade step to enable best practices validation

* Update package documentation
claytonc added a commit that referenced this issue Sep 27, 2017
)

* #128 - Implemented validation of the content to be shared

* #128 - refactor and check if sc.social.like is intaled

* #128 - added info in method

* #128 - pep8

* #128 - fix test image size

* #128 - started tests for new subscriber

* #128 - altered imports

* #128 - add tests subscribers

* #128 -  remove subscribers for archetypes-based content types

* #128 - pep8

* #128 - corrections

* #128 - Dexterity-based content types only

* #128 - fixed test

* #128 - altered

* #128 - add extras require

* #128 - testing request with zope.globalrequest

* Work around code analysis bug

refs. gforcada/flake8-pep3101#16

* Refactor

* Add upgrade step to enable best practices validation

* Update package documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants