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

field tags causes naming conflict and throws an save error #1002

Open
4 tasks done
ykethan opened this issue Jul 26, 2023 · 2 comments
Open
4 tasks done

field tags causes naming conflict and throws an save error #1002

ykethan opened this issue Jul 26, 2023 · 2 comments
Labels
bug An issue which has been identified as a bug studio-ui An issue that needs to be tracked by Studio Console team ui-forms issues related to UI builder forms

Comments

@ykethan
Copy link
Member

ykethan commented Jul 26, 2023

Before opening, please confirm:

App Id

d27ep6bgfd7ubg

Region

us-east-1

Environment name

dev

Figma File Version (if applicable)

No response

Amplify CLI Version

No response

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

No response

What operating system are you using?

No response

Browser type?

No response

Describe the bug

consider the following model

type Product @model @auth(rules: [{allow: public}]) {
  id: ID!
  name: String
  description: String
  price: String
  category: String
  tags: [String]
  Inventories: [Inventory] @hasMany(indexName: "byProduct", fields: ["id"])
  cartID: ID @index(name: "byCart")
}

this causes the form to render but any changes to the form causes an error

The number of resources passed must be greater than 0 and less than 100.

refreshing the page causes the form to not open at all.

workaround:

renaming the field tags to anything else works as expected.

Expected behavior

provide a better error message and load field that contains tags

Reproduction steps

  1. create a data model with a tags field and deploy
  2. create a form with the model
  3. make a new field on form
  4. observe save error

Project Identifier

No response

Additional information

No response

@ykethan ykethan added bug An issue which has been identified as a bug studio-ui An issue that needs to be tracked by Studio Console team ui-forms issues related to UI builder forms labels Jul 26, 2023
@Eliav2
Copy link

Eliav2 commented Jan 12, 2024

have same issue over here, with the model

type Question @model {
  id: ID! @index(name: "questionsByDate",queryField: "questionsByDate",sortKeyFields: ["createdAt"])
  question: String!
  answer: String!
  incorrectAnswers: [String!]!
  tags: [String!]!
  createdAt: AWSDateTime!
}

which also includes tags field

@fistofzen
Copy link

any comment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue which has been identified as a bug studio-ui An issue that needs to be tracked by Studio Console team ui-forms issues related to UI builder forms
Projects
None yet
Development

No branches or pull requests

3 participants