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

Move getOneCorrect... to WidgetExport #1742

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Conversation

handeyeco
Copy link
Contributor

@handeyeco handeyeco commented Oct 11, 2024

Summary:

Rather than calling a static method on a React component, move getOneCorrectAnswerFromRubric to the WidgetExport object.

Issue: Prework for LEMS-2387

Test plan:

Just moving some code. There were already tests and they should keep passing.

@handeyeco handeyeco self-assigned this Oct 11, 2024
@handeyeco handeyeco changed the title move getOneCorrect... to WidgetExport Move getOneCorrect... to WidgetExport Oct 11, 2024
@khan-actions-bot
Copy link
Contributor

khan-actions-bot commented Oct 11, 2024

Gerald

Required Reviewers
  • @Khan/perseus for changes to .changeset/mighty-students-pay.md, packages/perseus/src/types.ts, packages/perseus/src/widgets.ts, packages/perseus/src/__tests__/widgets.test.ts, packages/perseus/src/util/extract-perseus-data.ts, packages/perseus/src/widgets/expression/expression.test.tsx, packages/perseus/src/widgets/expression/expression.tsx, packages/perseus/src/widgets/input-number/input-number.test.ts, packages/perseus/src/widgets/input-number/input-number.tsx, packages/perseus/src/widgets/numeric-input/numeric-input.test.ts, packages/perseus/src/widgets/numeric-input/numeric-input.tsx

Don't want to be involved in this pull request? Comment #removeme and we won't notify you of further changes.

@khan-actions-bot khan-actions-bot requested a review from a team October 11, 2024 17:00
Copy link
Contributor

Size Change: -46 B (-0.01%)

Total Size: 866 kB

Filename Size Change
packages/perseus/dist/es/index.js 419 kB -46 B (-0.01%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 38.3 kB
packages/keypad-context/dist/es/index.js 760 B
packages/kmath/dist/es/index.js 4.27 kB
packages/math-input/dist/es/index.js 78 kB
packages/math-input/dist/es/strings.js 1.79 kB
packages/perseus-core/dist/es/index.js 1.48 kB
packages/perseus-editor/dist/es/index.js 280 kB
packages/perseus-linter/dist/es/index.js 22.2 kB
packages/perseus/dist/es/strings.js 3.4 kB
packages/pure-markdown/dist/es/index.js 3.66 kB
packages/simple-markdown/dist/es/index.js 12.4 kB

compressed-size-action

Copy link
Contributor

npm Snapshot: Published

Good news!! We've packaged up the latest commit from this PR (d5986ea) and published it to npm. You
can install it using the tag PR1742.

Example:

yarn add @khanacademy/perseus@PR1742

If you are working in Khan Academy's webapp, you can run:

./dev/tools/bump_perseus_version.sh -t PR1742

Copy link
Contributor

@mark-fitzgerald mark-fitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@handeyeco handeyeco merged commit f383d43 into main Oct 15, 2024
8 of 9 checks passed
@handeyeco handeyeco deleted the get-one-correct-prework branch October 15, 2024 14:00
benchristel pushed a commit that referenced this pull request Oct 15, 2024
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.


# Releases
## @khanacademy/perseus@37.0.1

### Patch Changes

-   [#1742](#1742) [`f383d4399`](f383d43) Thanks [@handeyeco](https://github.com/handeyeco)! - Move getOneCorrectAnswerFromRubric from React components to WidgetExports


-   [#1732](#1732) [`c57e114f2`](c57e114) Thanks [@catandthemachines](https://github.com/catandthemachines)! - Adding Unlimited Polygon feature flag.


-   [#1736](#1736) [`5e30fcde8`](5e30fcd) Thanks [@handeyeco](https://github.com/handeyeco)! - Make validator files be ts instead of tsx

## @khanacademy/perseus-editor@14.7.1

### Patch Changes

-   Updated dependencies \[[`f383d4399`](f383d43), [`c57e114f2`](c57e114), [`5e30fcde8`](5e30fcd)]:
    -   @khanacademy/perseus@37.0.1

Author: khan-actions-bot

Reviewers: benchristel

Required Reviewers:

Approved By: benchristel

Checks: ⏭️  Publish npm snapshot, ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ⏭️  Publish npm snapshot, 🚫 Check builds for changes in size (ubuntu-latest, 20.x), 🚫 Check for .changeset entries for all changed files (ubuntu-latest, 20.x), 🚫 Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ gerald, 🚫 Cypress (ubuntu-latest, 20.x), ✅ gerald, ⏭️  Publish npm snapshot, 🚫 Check builds for changes in size (ubuntu-latest, 20.x), 🚫 Cypress (ubuntu-latest, 20.x), 🚫 Check for .changeset entries for all changed files (ubuntu-latest, 20.x), 🚫 Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ gerald

Pull Request URL: #1735
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

Successfully merging this pull request may close these issues.

3 participants