Keystone: atTracking and byTracking don't create at and by fields

Created on 26 May 2020  路  2Comments  路  Source: keystonejs/keystone

Bug report

Describe the bug

With this list:

import { Text } from '@keystonejs/fields';
import { atTracking, byTracking } from '@keystonejs/list-plugins';

export const FormSubmission = {
    fields: {
        formName: { type: Text },
    },
    access: true,
    plugins: [atTracking(), byTracking()],
};

I run with dropDatabase: true and it does not create any fields for at or by tracking. The Admin UI shows just the formName field.

To Reproduce

Happy to provide a reproduction if needed.

Expected behaviour

As per the docs, I expected these plugins to add the needed fields to the list, which they don't seem to do. Do I need to also add the fields myself?

Screenshots

Screen Shot 2020-05-26 at 4 49 35 pm

System information

  • OS: macOS
  • Browser (if applies) N/A

Additional context

"dependencies": {
    "@keystonejs/adapter-knex": "10.0.1",
    "@keystonejs/app-admin-ui": "6.0.2",
    "@keystonejs/app-graphql": "5.1.7",
    "@keystonejs/auth-password": "5.1.8",
    "@keystonejs/fields": "11.0.0",
    "@keystonejs/file-adapters": "file:keystone-file-adapters",
    "@keystonejs/keystone": "9.0.1",
    "@keystonejs/list-plugins": "6.0.0",
// etc
}

Most helpful comment

I think this was mostly confusion over the fact that the Admin UI doesn't show these values in the edit view as read only fields.

Looks like it's working now.

All 2 comments

I think this was mostly confusion over the fact that the Admin UI doesn't show these values in the edit view as read only fields.

Looks like it's working now.

Perhaps the should be show now that we have read-only fields

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ra-external picture ra-external  路  12Comments

arnaud-zg picture arnaud-zg  路  18Comments

cowjen01 picture cowjen01  路  13Comments

jesstelford picture jesstelford  路  19Comments

molomby picture molomby  路  11Comments