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

Exporting all articles - metadata field issue #99

Open
S-Haime opened this issue Aug 8, 2024 · 1 comment
Open

Exporting all articles - metadata field issue #99

S-Haime opened this issue Aug 8, 2024 · 1 comment
Labels

Comments

@S-Haime
Copy link
Member

S-Haime commented Aug 8, 2024

Copied over from #4109 on JW repo.
////////////////////////////////

Describe the bug

There is an issue with the metadata fields, where a field has been deleted but the answer is still stored. This causes an error when trying to do an export, making it impossible to export metadata. If the answer was stored so that it contains the question itself, rather than the linked object this might resolve the issue. Additionally, this shouldn't be killing the export even if an answer is not found.

Janeway version

The version of Janeway under which the bug has been reproduced.
If running off of master, please, indicate the current HEAD of the Janeway installation

To Reproduce

Steps to reproduce the behavior:

https://jcls.io/plugins/imports/articles/all/
Export all or Export CSV.

Additional context

Reported by jcls (ULB) FD 8101

@S-Haime S-Haime added the bug Something isn't working label Aug 8, 2024
@S-Haime
Copy link
Member Author

S-Haime commented Aug 8, 2024

Backlog refinement: We can do a quick-fix by adding a try / except check around the code that gets custom fields.

Longer term we might want to make sure answers are deleted when the question is deleted. Maybe, maybe not. What does it mean to delete a submission field? Need to discuss further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants