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

List plugin improvement #3011

Conversation

gautamsi
Copy link
Member

@gautamsi gautamsi commented May 21, 2020

ref: #2838
This is split from #2838 and works on single feature of adding additional parameter to list plugins.

additional parameter is {listKey, keystone} name of the list helps in setting up further if want to build dynamic queries or logging. keystone parameter further help add feature in plugin which may need keystone instance. for example some list author can create additional list or meta list.

( I can think of a list history plugin which can create a list by name of ${listkey}History and use beforeChange/afterChange hooks to copy changed content to history list).

best viewed whitespace off

@changeset-bot
Copy link

changeset-bot bot commented May 21, 2020

🦋 Changeset is good to go

Latest commit: ed169f1

We got this.

This PR includes changesets to release 1 package
Name Type
@keystonejs/keystone Minor

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

packages/utils/src/index.js Outdated Show resolved Hide resolved
docs/api/create-list.md Outdated Show resolved Hide resolved
docs/api/create-list.md Outdated Show resolved Hide resolved
@gautamsi
Copy link
Member Author

@timleslie should be all good

@gautamsi gautamsi requested a review from timleslie May 22, 2020 03:31
@gautamsi gautamsi force-pushed the list-plugins-make-keystone-and-list-key-accessible branch from 47a4617 to e6ef199 Compare May 22, 2020 04:09
Copy link
Contributor

@timleslie timleslie 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 looks good 👍

@timleslie timleslie merged commit cbfc674 into keystonejs:master May 22, 2020
@github-actions github-actions bot mentioned this pull request May 22, 2020
@gautamsi gautamsi deleted the list-plugins-make-keystone-and-list-key-accessible branch May 22, 2020 06:05
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.

2 participants