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

[schema] Fix wrong asset type names and use asset.originalFilename as default preview title for images #235

Merged
merged 3 commits into from
Oct 5, 2017

Conversation

bjoerge
Copy link
Member

@bjoerge bjoerge commented Oct 5, 2017

I noticed that we are prefixing the type of asset documents with sanity.. Found a few places that did not follow this convention.

This patch:

  • Prefixes the imageAsset and fileAsset schema types with sanity.
  • Renames invalid schema type name from fileAsset to sanity.sanityAsset
  • Adds the originalFilename to the internal schema definition for imageAssets and fileAssets
  • Uses asset.originalFilename as default preview title on images

@bjoerge bjoerge requested a review from rexxars October 5, 2017 14:51
@bjoerge
Copy link
Member Author

bjoerge commented Oct 5, 2017

I also updated the schemas to better reflect what we actually store in the asset documents. Let me know if I've missed something.

Copy link
Member

@rexxars rexxars left a comment

Choose a reason for hiding this comment

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

LGTM!

@bjoerge bjoerge merged commit efbc7fe into next Oct 5, 2017
@bjoerge bjoerge deleted the fix/asset-type-name branch October 5, 2017 15:56
rexxars pushed a commit that referenced this pull request Oct 6, 2017
…s default preview title for images (#235)

* [schema] Fix wrong asset type names and use asset.originalFilename as default preview title for images

* [base] Update schema definitions for assets

* [base] Give the asset types better titles
bjoerge added a commit that referenced this pull request Oct 11, 2017
…s default preview title for images (#235)

* [schema] Fix wrong asset type names and use asset.originalFilename as default preview title for images

* [base] Update schema definitions for assets

* [base] Give the asset types better titles
bjoerge added a commit that referenced this pull request Oct 11, 2017
…s default preview title for images (#235)

* [schema] Fix wrong asset type names and use asset.originalFilename as default preview title for images

* [base] Update schema definitions for assets

* [base] Give the asset types better titles
bjoerge added a commit that referenced this pull request Oct 12, 2017
…s default preview title for images (#235)

* [schema] Fix wrong asset type names and use asset.originalFilename as default preview title for images

* [base] Update schema definitions for assets

* [base] Give the asset types better titles
bjoerge added a commit that referenced this pull request Oct 12, 2017
…s default preview title for images (#235)

* [schema] Fix wrong asset type names and use asset.originalFilename as default preview title for images

* [base] Update schema definitions for assets

* [base] Give the asset types better titles
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.

None yet

2 participants