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

Explicit FieldController config, elevated some keys #2897

Merged
merged 6 commits into from
May 6, 2020

Conversation

Vultraz
Copy link
Contributor

@Vultraz Vultraz commented May 5, 2020

This adds isOrderable, isRequired, and adminDoc as top-level FieldController properties (previously they were only available in config despite other keys like isPrimaryKey being explicitly set. It also removes the duplicate keys between field and field.config.

This leaves field.config containing only type-specific config options (see below, for example) plus any options the user passed through with field-level adminConfig.

image

@changeset-bot
Copy link

changeset-bot bot commented May 5, 2020

🦋 Changeset is good to go

Latest commit: 4a39ea6

We got this.

This PR includes changesets to release 3 packages
Name Type
@keystonejs/fields Minor
@keystonejs/demo-custom-fields Patch
@keystonejs/app-admin-ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@molomby molomby left a comment

Choose a reason for hiding this comment

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

Yep, this seems sensible to me. Needs a chance set though!

@Vultraz
Copy link
Contributor Author

Vultraz commented May 5, 2020

Forgot to commit it 🤦

@timleslie timleslie merged commit e280087 into keystonejs:master May 6, 2020
@github-actions github-actions bot mentioned this pull request May 6, 2020
@Vultraz Vultraz deleted the field-controller-elevate branch May 6, 2020 02:56
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