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

GraphQL Schema is not saved after Deployment #1027

Closed
4 tasks done
neomhr opened this issue Sep 7, 2023 · 4 comments
Closed
4 tasks done

GraphQL Schema is not saved after Deployment #1027

neomhr opened this issue Sep 7, 2023 · 4 comments
Labels
data Data modelling pending-triage An issue that is pending triage

Comments

@neomhr
Copy link

neomhr commented Sep 7, 2023

Before opening, please confirm:

App Id

d1fhc0qyyh74sr

Region

us-east-1

Environment name

staging

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

Yesterday, I created a Data Model in the visual editor in Amplify Studio.

After I finished, I saved and deployed my changes by clicking the save and deploy button in the studio.

Now, everything is gone. It did not save any part of my model, even though I followed every step and it even said that deployment was successful. I also checked CloudFormation where I can see a successful deployment yesterday at that time.

Expected behavior

It said the deployment was successful, so I assumed my data model would be saved.

I thought that everything I create in Studio will be actually saved and usable when I click save and deploy. Now it's just completely erased. Luckily I saved the schema locally, but now I have to manually re-do it in studio.

Reproduction steps

  1. Build a Data Model in Amplify Studio
  2. Click Save and Deploy
  3. Log back in the next day and it's completely gone with no way to recover it

Project Identifier

No response

Additional information

No response

@neomhr neomhr added the pending-triage An issue that is pending triage label Sep 7, 2023
@ykethan
Copy link
Member

ykethan commented Sep 7, 2023

Hey @neomhr, thank you for reaching out. Sorry to hear on the experience.
For a quick check, could you try pulling the application to your local environment and check the amplify/backend/api/<api-name>/schema.graphql file, if the schema file has the data models locally?

We are currently investigating this behaviour and provide an update here as soon we receive any additional information.

@ykethan ykethan added the data Data modelling label Sep 7, 2023
@ykethan
Copy link
Member

ykethan commented Sep 8, 2023

wanted to provide an update, I was unable to reproduce this behaviour. Could you provide us some additional information such as any errors observed in the browser debug console or the Data modelling page and the API configuration?

@ykethan ykethan added the pending-response An issue is pending response from the issue requestor label Sep 8, 2023
@neomhr
Copy link
Author

neomhr commented Sep 11, 2023

for some reason it now worked after re-deploying the data model through amplify studio. I cant reproduce the issue myself now - so guess its fine. thanks for the fast support though!

@neomhr neomhr closed this as completed Sep 11, 2023
@github-actions github-actions bot removed the pending-response An issue is pending response from the issue requestor label Sep 11, 2023
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data Data modelling pending-triage An issue that is pending triage
Projects
None yet
Development

No branches or pull requests

2 participants