Skip to content

Commit

Permalink
Remove unused enableSignout
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown committed Aug 29, 2022
1 parent fa011bf commit b909c4a
Show file tree
Hide file tree
Showing 38 changed files with 1 addition and 41 deletions.
1 change: 0 additions & 1 deletion examples/assets-local/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/assets-s3/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/auth/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/basic/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/blog/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/custom-admin-ui-logo/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/custom-admin-ui-navigation/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/custom-admin-ui-pages/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/custom-field-view/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/custom-field/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/custom-session-validation/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/default-values/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/document-field/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/ecommerce/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/embedded-nextjs/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/extend-graphql-schema-graphql-ts/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/extend-graphql-schema-nexus/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/extend-graphql-schema/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/extend-graphql-subscriptions/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/graphql-api-endpoint/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/json/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/rest-api/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/roles/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/task-manager/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/testing/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/virtual-field/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion examples/with-auth/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
2 changes: 0 additions & 2 deletions packages/core/src/admin-ui/admin-meta-graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export const staticAdminMetaQuery = gql`
__typename
adminMeta {
__typename
enableSignout
lists {
__typename
key
Expand Down Expand Up @@ -67,7 +66,6 @@ export type StaticAdminMetaQuery = {
__typename: 'KeystoneMeta';
adminMeta: {
__typename: 'KeystoneAdminMeta';
enableSignout: boolean;
lists: Array<{
__typename: 'KeystoneAdminUIListMeta';
key: string;
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/admin-ui/system/adminMetaSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ const KeystoneAdminUIListMeta = graphql.object<ListMetaRootVal>()({
const adminMeta = graphql.object<AdminMetaRootVal>()({
name: 'KeystoneAdminMeta',
fields: {
enableSignout: graphql.field({ type: graphql.nonNull(graphql.Boolean) }),
lists: graphql.field({
type: graphql.nonNull(graphql.list(graphql.nonNull(KeystoneAdminUIListMeta))),
}),
Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/admin-ui/system/createAdminMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ export function createAdminMeta(
config: KeystoneConfig,
initialisedLists: Record<string, InitialisedList>
) {
const { lists, session } = config;
const { lists } = config;
const adminMetaRoot: AdminMetaRootVal = {
enableSignout: session !== undefined,
listsByKey: {},
lists: [],
views: [],
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/admin-ui/utils/useAdminMeta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export function useAdminMeta(adminMetaHash: string, fieldViews: FieldViews) {
? adminMetaFromLocalStorage
: data.keystone.adminMeta;
const runtimeAdminMeta: AdminMeta = {
enableSignout: adminMeta.enableSignout,
lists: {},
};
adminMeta.lists.forEach(list => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
2 changes: 0 additions & 2 deletions packages/core/src/types/admin-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ export type ListMeta = {
};

export type AdminMeta = {
enableSignout: boolean;
lists: { [list: string]: ListMeta };
};

Expand Down Expand Up @@ -200,7 +199,6 @@ export type ListMetaRootVal = {
};

export type AdminMetaRootVal = {
enableSignout: boolean;
lists: Array<ListMetaRootVal>;
listsByKey: Record<string, ListMetaRootVal>;
views: string[];
Expand Down
1 change: 0 additions & 1 deletion tests/api-tests/admin-meta.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ test(
__typename: 'KeystoneMeta',
adminMeta: {
__typename: 'KeystoneAdminMeta',
enableSignout: false,
lists: [
{
__typename: 'KeystoneAdminUIListMeta',
Expand Down
1 change: 0 additions & 1 deletion tests/sandbox/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion tests/test-projects/basic/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion tests/test-projects/crud-notifications/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 0 additions & 1 deletion tests/test-projects/live-reloading/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
enableSignout: Boolean!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down

0 comments on commit b909c4a

Please sign in to comment.