question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Admin UI freeze on create if the model contains relationship field

See original GitHub issue

Bug report

Describe the bug

If you try to create a new record of object that contains relationship field the side panel of admin UI freeze. I had to close the tab with the application because the browser completely stopped responding.

To Reproduce

  1. create a new model with relationship field (type many)
  2. enter admin UI and click on create button
fields: {
    question: {
      type: Text,
      isRequired: true,
    },
    answers: {
      type: Relationship,
      many: true,
      ref: 'PollAnswer',
      isRequired: true,
    },
  },

Screenshots

Screenshot 2020-01-31 at 21 18 38 Screenshot 2020-01-31 at 22 19 15

System information

  • OS: macOS
  • Browser:chrome

Additional context

Working packages:

    "@keystonejs/app-admin-ui": "5.6.0",
    "@keystonejs/fields": "6.1.0",

Packages contains bug:

    "@keystonejs/app-admin-ui": "5.7.1",
    "@keystonejs/fields": "6.2.0",

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:12
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
MadeByMikecommented, Feb 4, 2020

Thank you all for reporting this and helping me track it down.

4reactions
MadeByMikecommented, Feb 4, 2020

Very sorry about this bug people. A new version of fields and the admin-ui have been released:

🦋 New tag: @keystonejs/app-admin-ui@5.7.2 🦋 New tag: @keystonejs/fields@6.2.2

I’ve verified this as fixed but if you could all check and let me know if there are any further issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flask-Admin with additional field in relationship Many to Many
The problem is that Product object can have several ingredients and they cannot be specified in one form field. So flask_admin hints that ......
Read more >
Define relationships between objects - Android Developers
This creates a chain of nested relationships between all of the tables that you want to query.
Read more >
Customize the Django Admin With Python
In this tutorial, you'll learn how to customize Django's admin with Python. You'll use AdminModel objects to add display columns, calculate values, link...
Read more >
Troubleshoot form issues in model-driven apps - Microsoft Learn
There are many possible reasons for a form to freeze, load slowly, or throw a "Web resource method does not exist" script error...
Read more >
Power BI Desktop freezes when Creating Relationshi...
Hi! I am trying to create a relationship between 2 tables where both columns have type Whole Number; but as soon as I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found