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

Imported questions should strip all question/answer IDs. #37

Open
FrenjaminBanklin opened this issue Jan 2, 2019 · 0 comments
Open
Assignees

Comments

@FrenjaminBanklin
Copy link
Contributor

Refer to ucfopen/Materia#1188.

Question and answer IDs - though especially question ids - need to be unset on any imported questions to prevent the possibility of collisions within the same widget.

Example: Create a widget, import a question, then import the same question again. Now two copies of the same question exist in the widget, both with the same ID. At the very least this causes issues in (most) widget score modules.

Setting IDs to the default/null values will allow the backend to correctly set them uniquely and prevent collisions.

FrenjaminBanklin added a commit to FrenjaminBanklin/Materia-Server-Client-Assets that referenced this issue Jan 4, 2019
…id' properties set to null, allowing the backend to set them freshly to prevent collisions.
FrenjaminBanklin added a commit to FrenjaminBanklin/Materia-Server-Client-Assets that referenced this issue Feb 13, 2019
… has answers before trying to strip them of their ids.
@FrenjaminBanklin FrenjaminBanklin self-assigned this Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant