Skip to content

Undefined attribute level operator <col> when trying to export relationsΒ #69

@salmanm

Description

@salmanm

Bug report

Describe the bug

I have this in customTypes

{
  configName: 'foos',
  queryString: 'api::foo.foo',
  uid: 'type',
  relations: [
    {
      queryString: 'api::bar.bar',
      relationName: 'bars',
      parentName: 'foo',
      relationSortFields: ['name'],
    }
  ],
},

and when I visit the tool page in Settings, I get an error.

I tried to debug it a lot but haven't gotten anywhere with the root cause. I'd be happy to PR a fix (if it's a bug) when pointed in the right direction.

Screenshot 2022-09-06 at 13 00 18

Steps to reproduce the behavior

  1. Set the customTypes as shown above (including relations)
  2. Click on Settings page
  3. Click on Tool page
  4. See error

Expected behavior

Similar to how exporting relations work for users-permissions plugin, it should work for any model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions