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] Always define hotspot/crop fields for image type #980

Merged
merged 1 commit into from
Oct 12, 2018

Conversation

rexxars
Copy link
Member

@rexxars rexxars commented Sep 26, 2018

Currently, we do not define the crop and hotspot fields on an image type if the hotspot option is not set. From a data modelling perspective, it feels more correct to always define them but rather flag them as hidden from a UI perspective.

By doing this, the base image type is always the same unless explicitly extended with other fields, as opposed to two variants which should more correctly have been named image and imageWithCropAndHotspot or similar.

Copy link
Member

@simen simen left a comment

Choose a reason for hiding this comment

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

As far as I'm aware this should be fine.

Copy link
Member

@bjoerge bjoerge left a comment

Choose a reason for hiding this comment

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

I'm missing the backstory here, so just out of curiosity: what problem(s) does this solve?

@rexxars rexxars force-pushed the set-hotspot-fields-as-hidden branch from 03b42c2 to 0ccc939 Compare October 9, 2018 11:56
@rexxars rexxars merged commit 7334783 into next Oct 12, 2018
@rexxars rexxars deleted the set-hotspot-fields-as-hidden branch October 12, 2018 11:26
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

3 participants