-
Notifications
You must be signed in to change notification settings - Fork 357
Remove JSON mode checkbox from EditorPage #2740
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to ask for changes because I thought we still needed to render the JSON switch/checkbox, but I see that's been migrated up into the new exercise chrome!
Good to go! Thanks for removing this bit of now-unused code!
… to onChange callback of EditorPage. This was almost certainly a bug. Nothing in webapp was using this behavior, but if it had been, extra jsonMode properties would have been written into assessmentItem data
0a216f2
to
39fb3c8
Compare
🗄️ Schema Change: No Changes ✅ |
🛠️ Item Splitting: No Changes ✅ |
Size Change: -56 B (-0.01%) Total Size: 496 kB
ℹ️ View Unchanged
|
npm Snapshot: PublishedGood news!! We've packaged up the latest commit from this PR (39fb3c8) and published it to npm. You Example: pnpm add @khanacademy/perseus@PR2740 If you are working in Khan Academy's frontend, you can run the below command. ./dev/tools/bump_perseus_version.ts -t PR2740 If you are working in Khan Academy's webapp, you can run the below command. ./dev/tools/bump_perseus_version.js -t PR2740 |
While investigating how we might parse/migrate PerseusItem data before emitting
it from the editor, I noticed this weird
jsonMode
param in theonChange
callback. Nothing in webapp seems to be using it, so I'd just as soon remove
it. It's a footgun.
Issue: none
Test plan:
View the EditorPage stories.