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

Add some comments to external APIs #2272

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add some comments to external APIs #2272

wants to merge 2 commits into from

Conversation

handeyeco
Copy link
Contributor

@handeyeco handeyeco commented Mar 3, 2025

Summary:

Jeremy asked me to add some comments

@handeyeco handeyeco self-assigned this Mar 3, 2025
@handeyeco handeyeco changed the title [comment-api] add some comments to external APIs Add some comments to external APIs Mar 3, 2025
@handeyeco handeyeco requested review from jeremywiebe and a team March 3, 2025 17:05
Copy link
Contributor

github-actions bot commented Mar 3, 2025

Size Change: +142 B (+0.02%)

Total Size: 873 kB

Filename Size Change
packages/perseus-core/dist/es/index.js 30 kB +55 B (+0.18%)
packages/perseus-score/dist/es/index.js 20.7 kB +87 B (+0.42%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 39.7 kB
packages/keypad-context/dist/es/index.js 760 B
packages/kmath/dist/es/index.js 11.1 kB
packages/math-input/dist/es/index.js 78.2 kB
packages/math-input/dist/es/strings.js 1.79 kB
packages/perseus-editor/dist/es/index.js 276 kB
packages/perseus-linter/dist/es/index.js 22.8 kB
packages/perseus/dist/es/index.js 367 kB
packages/perseus/dist/es/strings.js 6.74 kB
packages/pure-markdown/dist/es/index.js 4.14 kB
packages/simple-markdown/dist/es/index.js 13.1 kB

compressed-size-action

Copy link
Contributor

github-actions bot commented Mar 3, 2025

npm Snapshot: Published

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

Example:

pnpm add @khanacademy/perseus@PR2272

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

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

@handeyeco handeyeco added 🐍 project: sss Server-Side Scoring ('24-'25) project agnostic PRs reviewable by any Perseus team member and removed 🐍 project: sss Server-Side Scoring ('24-'25) labels Mar 11, 2025
@@ -5,6 +5,11 @@ import {getUpgradedWidgetOptions} from "../widgets/upgrade";

import type {PerseusRenderer} from "../data-schema";

/**
* get a copy of a Perseus item with pre-scoring data removed (ie answers)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we agreed to call this rubric data.

Suggested change
* get a copy of a Perseus item with pre-scoring data removed (ie answers)
* Return a copy of a Perseus item with rubric data removed (ie answers)

/**
* get a copy of a Perseus item with pre-scoring data removed (ie answers)
*
* @param originalItem - the full answer data, includes the correct answer
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* @param originalItem - the full answer data, includes the correct answer
* @param originalItem - the original, full Perseus item (which includes the rubric - aka answer data)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project agnostic PRs reviewable by any Perseus team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants