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

Behat is broken on 1.4 branch #950

Closed
robbieaverill opened this issue May 31, 2019 · 2 comments
Closed

Behat is broken on 1.4 branch #950

robbieaverill opened this issue May 31, 2019 · 2 comments

Comments

@robbieaverill
Copy link
Contributor

It's also broken on master, but that might be a merge up issue

@robbieaverill
Copy link
Contributor Author

Ok this is an actual bug, deleting the file doesn't remove it from the asset-admin area until you refresh.

Console:

TypeError: Cannot read property 'options' of undefined
    at update (bundle.js?m=1559271542:1)

...

vendor.js?m=1559271536:1 Uncaught (in promise) Error: Network error: Error writing result to store for query:
 query ReadFiles($limit: Int!, $offset: Int!, $rootFilter: FileFilterInput, $childrenFilter: FileFilterInput, $sortBy: [ChildrenSortInputType]) {
  readFiles(filter: $rootFilter) {
    pageInfo {
      totalCount
      __typename
    }
    edges {
      node {
        ...FileInterfaceFields
        ...FileFields
        ... on Folder {
          children(limit: $limit, offset: $offset, filter: $childrenFilter, sortBy: $sortBy) {
            pageInfo {
              totalCount
              __typename
            }
            edges {
              node {
                ...FileInterfaceFields
                ...FileFields
                ...FolderFields
                __typename
              }
              __typename
            }
            __typename
          }
          parents {
            id
            title
            __typename
          }
          __typename
        }
        __typename
      }
      __typename
    }
    __typename
  }
}

fragment FileInterfaceFields on FileInterface {
  canDelete
  canEdit
  canView
  category
  exists
  filename
  id
  lastEdited
  name
  parentId
  title
  type
  url
  __typename
}

fragment FileFields on File {
  draft
  extension
  published
  modified
  size
  smallThumbnail
  thumbnail
  inUseCount
  __typename
}

fragment FolderFields on Folder {
  filesInUseCount
  __typename
}

Store error: the application attempted to write an object with no provided id but the store already contains an id of Folder:19 for this object. The selectionSet that was trying to be written is:
node {
  ...FileInterfaceFields
  ...FileFields
  ... on Folder {
    children(limit: $limit, offset: $offset, filter: $childrenFilter, sortBy: $sortBy) {
      pageInfo {
        totalCount
        __typename
      }
      edges {
        node {
          ...FileInterfaceFields
          ...FileFields
          ...FolderFields
          __typename
        }
        __typename
      }
      __typename
    }
    parents {
      id
      title
      __typename
    }
    __typename
  }
  __typename
}

@robbieaverill
Copy link
Contributor Author

Lol - #852 (comment)

@robbieaverill robbieaverill removed their assignment Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant