-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Remove createitems #3302
Remove createitems #3302
Conversation
🦋 Changeset is good to goLatest commit: b784881 We got this. This PR includes changesets to release 18 packages
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d992b92
to
469fe60
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a couple of files changed in this PR that don't need to.
@@ -2,7 +2,11 @@ const runQuery = async ({ keystone, query, variables, context }) => { | |||
const { data, errors } = await keystone.executeGraphQL({ | |||
context: | |||
context || | |||
keystone.createContext({ schemaName: 'public', authentication: {}, skipAccessControl: true }), | |||
keystone.createContext({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file shouldn't have changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it happens due to yarn format
. 🤔
yarn.lock
Outdated
version "2.3.0" | ||
resolved "https://registry.yarnpkg.com/apollo-engine-reporting/-/apollo-engine-reporting-2.3.0.tgz#3bb59f81aaf6b967ed098896a4a60a053b4eed5a" | ||
integrity sha512-SbcPLFuUZcRqDEZ6mSs8uHM9Ftr8yyt2IEu0JA8c3LNBmYXSLM7MHqFe80SVcosYSTBgtMz8mLJO8orhYoSYZw== | ||
apollo-engine-reporting@^2.2.1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file shouldn't have changed.
c40b816
to
5ee1392
Compare
.changeset/hot-olives-reply.md
Outdated
'@keystonejs/keystone': major | ||
--- | ||
|
||
Removed the `keystone.createItems` method. This has been replaced with the `createItems` function in `@keystonejs/server-side-graphql-client`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also mention that we removed keystone.createItem
.
@@ -74,284 +74,3 @@ module.exports = { | |||
``` | |||
|
|||
> **Tip:** A similar setup can be achieved by running the Keystone CLI `yarn create keystone-app` and selecting `Starter (Users + Authentication)`. This starter project has a `User` list, `PasswordAuthStrategy` and seeding of the database already configured. For now, we will proceed manually. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this documentation has rendered this document useless. We should replace the old content with new content which refers to the server-side-graphql-client
package. It needn't be as verbose as this content was, since we aren't describing a new APi, but this tutorial should continue to serve a purpose.
9cfd5a4
to
55d7ef1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This process is also called
seeding. using the
createItems method
should be
This process is also called
seeding. using the
createItems function
A quick run of yarn format
and then I think this is ✅
- add seeding tutorials - remove relationship-utils module - remove leftover `createItem` usage in the docs
d943e0f
to
2ce474b
Compare
2ce474b
to
b784881
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 🚢
Final PR in series, needs to be merged after #3300 and #3129
This is breaking and should probably be shipped after people have had time to make changes based on the above 2 PRs.