Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

πŸ”₯✨ Adapt image property changes #661

Merged
merged 2 commits into from
Apr 24, 2017

Conversation

kirrg001
Copy link
Contributor

@kirrg001 kirrg001 commented Apr 20, 2017

refs TryGhost/Ghost#8348

  • test signup
  • test all image cases again

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 73.336% when pulling 10cff49 on kirrg001:fix/image-properties into 0d385df on TryGhost:master.

@kirrg001 kirrg001 changed the title [WIP] πŸ”₯✨ Adapt image property changes πŸ”₯✨ Adapt image property changes Apr 24, 2017
@kirrg001 kirrg001 requested a review from aileen April 24, 2017 11:21
@kevinansfield
Copy link
Collaborator

@kirrg001 there shouldn't be any underscored names in the client, all properties/attributes/methods are camelCase so for example feature_image should be featureImage

@kirrg001
Copy link
Contributor Author

kirrg001 commented Apr 24, 2017

@kevinansfield πŸ‘
see here why

@kirrg001 kirrg001 force-pushed the fix/image-properties branch 2 times, most recently from c34f638 to 689703a Compare April 24, 2017 12:27
@kirrg001 kirrg001 changed the title πŸ”₯✨ Adapt image property changes [WIP] πŸ”₯✨ Adapt image property changes Apr 24, 2017
@kirrg001
Copy link
Contributor Author

WIP again, testing something with image deletion.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 689703a on kirrg001:fix/image-properties into ** on TryGhost:master**.

@kirrg001 kirrg001 changed the title [WIP] πŸ”₯✨ Adapt image property changes πŸ”₯✨ Adapt image property changes Apr 24, 2017
@kirrg001
Copy link
Contributor Author

kirrg001 commented Apr 24, 2017

Ok this is ready to review now. Please pull latest changes.

refs TryGhost/Ghost#8348

- rename all image properties
- e.g. author.image --> author.profile_image
- test all image functionality
Copy link
Member

@aileen aileen left a comment

Choose a reason for hiding this comment

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

Tested and LVGTM πŸ‘

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 73.376% when pulling 0d0032a on kirrg001:fix/image-properties into 1f3b79e on TryGhost:master.

@@ -9,7 +9,7 @@ export default Model.extend(ValidationEngine, {
title: attr('string'),
description: attr('string'),
logo: attr('string'),
cover: attr('string'),
cover_image: attr('string'),

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

kirrg001 added a commit to kirrg001/Ghost-Admin that referenced this pull request Apr 24, 2017
kirrg001 added a commit to kirrg001/Ghost that referenced this pull request Apr 24, 2017
Copy link
Collaborator

@kevinansfield kevinansfield left a comment

Choose a reason for hiding this comment

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

I think one place has been missed - post.author.image here needs changing to post.author.profileImage https://github.com/TryGhost/Ghost-Admin/blob/master/app/components/gh-posts-list-item.js#L31-L32

Otherwise LGTM πŸ‘

- this one slipped through because there is no UI usage at the moment
@kirrg001
Copy link
Contributor Author

@kevinansfield Thanks!

I have pushed it as separate commit d588f21

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 73.376% when pulling d588f21 on kirrg001:fix/image-properties into 1f3b79e on TryGhost:master.

@kevinansfield kevinansfield merged commit 7169a14 into TryGhost:master Apr 24, 2017
kirrg001 added a commit to kirrg001/Ghost-Admin that referenced this pull request Apr 24, 2017
kevinansfield pushed a commit to TryGhost/Ghost that referenced this pull request Apr 24, 2017
no issue
- replace camelCase settings keys with underscore_case for consistency
- discussed here TryGhost/Admin#661 (comment)
kevinansfield pushed a commit that referenced this pull request Apr 24, 2017
requires TryGhost/Ghost#8381
- all camelCase settings model attribute names received from the API are now underscore_case
- discussed here #661 (comment)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants