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

Table in DataManager from Content is not getting updated after changing the field type #913

Closed
4 tasks done
SUK109 opened this issue Apr 19, 2023 · 5 comments
Closed
4 tasks done
Labels
cms An issue identified as a cms bug/feature documentation Improvements or additions to documentation pending-triage An issue that is pending triage studio-ui An issue that needs to be tracked by Studio Console team

Comments

@SUK109
Copy link

SUK109 commented Apr 19, 2023

Before opening, please confirm:

App Id

d2xtvqfhu2o88e

Region

us-west-2

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

I have a table for which for couple of fields, I changed the type from String to array of String from the Data under Setup from Admin UI. After updating and deploying the latest changes, in the admin UI, when I go to the Content from the Manage and select the table which I recently updated, is showing an error with type mismatch.

Expected behavior

The table in Data Manager from Manage should be updated with the updated field types.

Reproduction steps

  1. Create Data Model using the Amplify UI with some fields of type String
  2. Deploy changes and pull latest changes in your environment
  3. Update one of the field from String to String Array
  4. Deploy latest changes in your environment and generate the model files
  5. Go to the Content Under Manage in Amplify UI and select the updated table

Project Identifier

No response

Additional information

No response

@SUK109 SUK109 added the pending-triage An issue that is pending triage label Apr 19, 2023
@SUK109 SUK109 changed the title Table under DataManager under Manage is not getting updated after changing the field type Table in DataManager from Content is not getting updated after changing the field type Apr 19, 2023
@ykethan
Copy link
Contributor

ykethan commented Apr 19, 2023

Hey @SUK109, thank you for reaching out. This is currently expected behaviour on DataStore when modifying an existing field on a Data model to a different type. If the associated DynamoDB table has records in them, you will need to manually backfill and update the records.

@ykethan ykethan added cms An issue identified as a cms bug/feature pending-response An issue is pending response from the issue requestor studio-ui An issue that needs to be tracked by Studio Console team labels Apr 19, 2023
@SUK109
Copy link
Author

SUK109 commented Apr 19, 2023

@ykethan , thanks for your response. Can we have it mentioned anywhere in the documentation?

@github-actions github-actions bot removed the pending-response An issue is pending response from the issue requestor label Apr 19, 2023
@ykethan
Copy link
Contributor

ykethan commented Apr 20, 2023

Hey @SUK109, thank you for the feedback. We will work on getting this documented.

@ykethan ykethan added the documentation Improvements or additions to documentation label Apr 20, 2023
@ykethan
Copy link
Contributor

ykethan commented Apr 21, 2023

Closing the issue as the PR has been merged and added to the documentation.
https://docs.amplify.aws/console/data/content-management/#change-of-type-in-fields

@ykethan ykethan closed this as completed Apr 21, 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
cms An issue identified as a cms bug/feature documentation Improvements or additions to documentation pending-triage An issue that is pending triage studio-ui An issue that needs to be tracked by Studio Console team
Projects
None yet
Development

No branches or pull requests

2 participants