-
Notifications
You must be signed in to change notification settings - Fork 35
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
Gen 2 Dashboard not allowing user creation -- phone number field not showing #1505
Comments
Hi @ChristopherGabba are you able to inspect the outgoing network request to see if the phone number is being included? Sounds like it isn't, but just want to be sure. Are you able to create the user from the AppSync console? Also, please share your schema and amplify graphql client code so that we can reproduce how you are trying to create the user. |
Hello @chrisbonifacio, here is my schema in my User: a
.model({
id: a.id().required(),
birthdate: a.string().required(),
firstName: a.string().required(),
lastName: a.string().required(),
username: a.string().required(),
phoneNumber: a.phone().required(), // this is the one not showing up, I could make it a a.string().required() and it will work
pushToken: a.string(),
profileImage: a.url(),
profileImageBlurhash: a.string(),
searchTerm: a.string().required(),
})
.secondaryIndexes((index) => [
index("phoneNumber").queryField("listUsersByPhoneNumber"),
index("searchTerm").queryField("listUsersBySearchTerm").sortKeys(["id"]),
])
.authorization((allow) => [allow.owner(), allow.publicApiKey().to(["read"])]), I can successfully create a user directly in DynamoDB portal, via AppSync, and via graphQL api in the app, but I am primarily referencing this as a UI creation issue in the Amplify console. So it's not necessarily a problem with the schema or dynamoDB, but an issue with the Gen 2 Amplify Console. I'm trying to create a few dummy users in the system for me to test with. The phoneNumber field is just not showing up at all as shown in the picture above. |
@ChristopherGabba thank you for reaching out. I was able to reproduce the issue, marking as bug. |
Thanks @ykethan, I figured it had to be. Appreciate you and @chrisbonifacio 's quick response! |
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
GraphQL API, DataStore
Amplify Version
v6
Amplify Categories
api
Backend
Amplify Gen 2 (Preview)
Environment information
Describe the bug
I am trying to create a dummy user using the ui in the dashboard and the phoneNumber field is not showing:
Expected behavior
The UI should allow me to enter the phone number.
Reproduction steps
Code Snippet
N/A - My dashboard is for a react native app
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
Safari
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: