amplify-studio icon indicating copy to clipboard operation
amplify-studio copied to clipboard

Admin Dashboard Can't Add ID to Relationship Data

Open ChristopherGabba opened this issue 2 years ago • 2 comments

Before opening, please confirm:

  • [X] I have searched for duplicate or closed issues.
  • [X] I have read the guide for submitting bug reports.
  • [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • [X] I have removed any sensitive information from my code snippets and submission.

App Id

d1mfubrlasurvn

Region

us-east-1

Environment name

Using the Admin Console on Website

Figma File Version (if applicable)

N/A

Amplify CLI Version

No response

If applicable, what version of Node.js are you using?

12.5.0

What operating system are you using?

Mac

Browser type?

Google Chrome

Describe the bug

When trying to link a user to the "to-dos" i created, I copy and paste the user's id into user ID and i get the following loading and it never adds:

Screenshot 2023-10-12 at 6 07 47 PM

Expected behavior

It adds the user id and allows me to submit it.

Reproduction steps

I developed my models for my application. For instance:

To-do model with one user to many To-dos

I am trying to populate it with fake data so that I can start pulling the data into my application.

Project Identifier

c8bc6e450011067eeb6e35e2f72f878f

Additional information

None.

ChristopherGabba avatar Oct 12 '23 23:10 ChristopherGabba

Hey @ChristopherGabba, I was able to reproduce the issue. Marking as bug.

ykethan avatar Oct 13 '23 18:10 ykethan

@ChristopherGabba just an update, as a workaround: setting the 2nd field with a field as string after the ID field should mitigate the issue.

For example:

type Abc @model @auth(rules: [{allow: public}]) {
  id: ID!
  test: String
  descp: ENUM //non model type

Here the test field is set after the ID field.

ykethan avatar Oct 16 '23 21:10 ykethan