Skip to content

Fixing scoring for unlimited point to ensure there 1 or more points for it to be considered scorable. #2018

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

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

catandthemachines
Copy link
Member

@catandthemachines catandthemachines commented Dec 16, 2024

Summary:

Refining scoring behavior for unlimited point to ensure it treats an empty graph as unscorable.

Issue: LEMS-2682

Test plan:

Go to http://localhost:6006/?path=/story/perseus-widgets-interactive-graph--point-with-mafs
Add a bunch of points and remove them until there is none left.
Check your answer and notice the score is defined as invalid.

Copy link
Contributor

npm Snapshot: Published

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

Example:

yarn add @khanacademy/perseus@PR2018

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

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

Copy link
Contributor

Size Change: +47 B (0%)

Total Size: 1.27 MB

Filename Size Change
packages/perseus/dist/es/index.js 416 kB +47 B (+0.01%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 39 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 688 kB
packages/perseus-linter/dist/es/index.js 22.2 kB
packages/perseus/dist/es/strings.js 4.12 kB
packages/pure-markdown/dist/es/index.js 3.67 kB
packages/simple-markdown/dist/es/index.js 12.5 kB

compressed-size-action

Copy link
Contributor

@nishasy nishasy left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for handling this edge case.

@catandthemachines catandthemachines merged commit 53d7e78 into main Dec 17, 2024
10 of 18 checks passed
@catandthemachines catandthemachines deleted the catjohnson/fix-empty-point-graph branch December 17, 2024 20:29
somewhatabstract added a commit that referenced this pull request Dec 18, 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/[email protected]

### Patch Changes

- [#2022](#2022)
[`266d240ed`](266d240)
Thanks [@somewhatabstract](https://github.com/somewhatabstract)! -
Update to Wonder Blocks without custom ID generation API

## @khanacademy/[email protected]

### Patch Changes

- [#2017](#2017)
[`4508e7bea`](4508e7b)
Thanks [@nishasy](https://github.com/nishasy)! - [SR] Minor improvements
to Circle graph SR strings


- [#2022](#2022)
[`266d240ed`](266d240)
Thanks [@somewhatabstract](https://github.com/somewhatabstract)! -
Update to Wonder Blocks without custom ID generation API


- [#2018](#2018)
[`1fe437079`](1fe4370)
Thanks [@catandthemachines](https://github.com/catandthemachines)! -
Fixing scoring for unlimited point to ensure there 1 or more points for
it to be considered scorable.

- Updated dependencies
\[[`266d240ed`](266d240)]:
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Patch Changes

- [#2022](#2022)
[`266d240ed`](266d240)
Thanks [@somewhatabstract](https://github.com/somewhatabstract)! -
Update to Wonder Blocks without custom ID generation API

- Updated dependencies
\[[`4508e7bea`](4508e7b),
[`266d240ed`](266d240),
[`1fe437079`](1fe4370)]:
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Patch Changes

- [#2022](#2022)
[`266d240ed`](266d240)
Thanks [@somewhatabstract](https://github.com/somewhatabstract)! -
Update to Wonder Blocks without custom ID generation API

- Updated dependencies
\[[`266d240ed`](266d240)]:
    -   @khanacademy/[email protected]
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