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

User-defined field values removed on import #321

Open
dleadbetter opened this issue Dec 3, 2024 · 1 comment
Open

User-defined field values removed on import #321

dleadbetter opened this issue Dec 3, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dleadbetter
Copy link
Contributor

When importing data via the CSV import feature, it's possible that existing user-defined field values can be removed. When updating an existing record, we do not pull the user-defined field values into the z_{model}_suffix table. So only the values defined in the CSV will get placed into the record.

@dleadbetter dleadbetter added the bug Something isn't working label Dec 3, 2024
@dleadbetter dleadbetter self-assigned this Dec 12, 2024
@dleadbetter
Copy link
Contributor Author

Testing Notes

The problem occurred when the data being imported did not contain all of the user-defined fields present in the project. For example, if my project contained a model with fields A, B, and C, and the imported data only contained fields A and B, the result would be that field C was erroneously cleared out after importing. To test we can use the following steps:

  1. Add a user-defined field to your project (A), set the values for some records
  2. Export your data to a ZIP file from Project Settings
  3. Add another user-defined field to your project (B), set the values for some records
  4. Import your exported data from Project Settings
  5. Verify that both fields A and B have the correct values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant