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

Project JSON saving with invalid JSON #2733

Open
geoffreykwan opened this issue Oct 20, 2020 · 0 comments
Open

Project JSON saving with invalid JSON #2733

geoffreykwan opened this issue Oct 20, 2020 · 0 comments
Labels
2 points can be completed in 2 hours

Comments

@geoffreykwan
Copy link
Member

Description

We've received two Contact WISE issues where this problem has occurred. The problem is that some JSON content is appended in an incorrect manner onto the end of the existing project.json text for some reason.

Here are the two projects where this problem occurred (but are now fixed). Project ID: 32660 and 33122. The only similarity I've noticed so far is that these two projects are not in English but I can't think of why that would have anything to do with this problem.

This is what the end of the project.json file for Project ID 32660 looked like before the fix.

"inactiveNodes": [], "planningNodes": [], "achievements": {
	"isEnabled": false,
	"items": []
}
}
take notes
for this unit ","
content ":" < p > Use this space to take notes
for this unit < /p>"}]}}},"inactiveNodes":[],"planningNodes":[],"achievements":{"isEnabled":false,"items":[]}}

In order to fix the project.json for Project ID 32660, this text at the end of the project.json needed to be deleted.

take notes
for this unit ","
content ":" < p > Use this space to take notes
for this unit < /p>"}]}}},"inactiveNodes":[],"planningNodes":[],"achievements":{"isEnabled":false,"items":[]}}

This is what the end of the project.json file for Project ID 33122 looked like before the fix.

"teacherNotebook": {
	"enabled": true,
	"label": "Teacher Notebook",
	"enableAddNew": true,
	"itemTypes": {
		"note": {
			"type": "note",
			"enabled": false,
			"enableLink": true,
			"enableAddNote": true,
			"enableClipping": true,
			"enableStudentUploads": true,
			"requireTextOnEveryNote": false,
			"label": {
				"singular": "note",
				"plural": "notes",
				"link": "Notes",
				"icon": "note",
				"color": "#1565C0"
			}
		},
		"report": {
			"enabled": true,
			"label": {
				"singular": "teacher notes",
				"plural": "teacher notes",
				"link": "Teacher Notes",
				"icon": "assignment",
				"color": "#AD1457"
			},
			"notes": [{
				"reportId": "teacherReport",
				"title": "Teacher Notes",
				"description": "Notes for the teacher as they're running the WISE unit",
				"prompt": "Use this space to take notes for this unit",
				"content": "<p>Use this space to take notes for this unit</p>"
			}]
		}
	}
}, "inactiveNodes": []
}
"}]}}},"
inactiveNodes ":[]},"
title ":"
Teacher Notes ","
description ":"
Notes
for the teacher as they 're running the WISE unit","prompt":"Use this space to take notes for this unit","content":"<p>Use this space to take notes for this unit</p>"}]}}},"inactiveNodes":[]}

In order to fix the project.json for Project ID 33122, this text at the end of the project.json needed to be deleted.

"}]}}},"
inactiveNodes ":[]},"
title ":"
Teacher Notes ","
description ":"
Notes
for the teacher as they 're running the WISE unit","prompt":"Use this space to take notes for this unit","content":"<p>Use this space to take notes for this unit</p>"}]}}},"inactiveNodes":[]}
@geoffreykwan geoffreykwan added the 2 points can be completed in 2 hours label Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 points can be completed in 2 hours
Projects
None yet
Development

No branches or pull requests

1 participant