Skip to content

[Bugfix:Developer] Optional Notebook Elements Fix#12016

Merged
bmcutler merged 2 commits intomainfrom
notebook-definition-fix
Sep 8, 2025
Merged

[Bugfix:Developer] Optional Notebook Elements Fix#12016
bmcutler merged 2 commits intomainfrom
notebook-definition-fix

Conversation

@williamschen23
Copy link
Contributor

Why is this Change Important & Necessary?

If an instructor uploads a notebook that has an image that has a defined height or width, then an image that does have a defined heigth or width, it will be fine on production but when we get to a developer environment, there will a lot of errors because of strict_type.

What is the New Behavior?

This PR aims to check if optional elements exists and then apply them if possible

What steps should a reviewer take to reproduce or test the bug or new feature?

Redacted psoft to see error
Archive.zip

Automated Testing & Documentation

N/A

Other information

@codecov
Copy link

codecov bot commented Aug 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.70%. Comparing base (d2cf9f0) to head (edfad9e).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12016   +/-   ##
=========================================
  Coverage     21.70%   21.70%           
  Complexity     9582     9582           
=========================================
  Files           268      268           
  Lines         36560    36560           
  Branches        475      475           
=========================================
  Hits           7936     7936           
  Misses        28153    28153           
  Partials        471      471           
Flag Coverage Δ
autograder 21.31% <ø> (ø)
js 2.07% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.72% <ø> (ø)
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 90.72% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@thegame615 thegame615 left a comment

Choose a reason for hiding this comment

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

I am not familiar with the original errors, but it seems to work error free

@bmcutler bmcutler merged commit 7c53e18 into main Sep 8, 2025
25 checks passed
@bmcutler bmcutler deleted the notebook-definition-fix branch September 8, 2025 02:53
@github-project-automation github-project-automation bot moved this from Seeking Reviewer to Done in Submitty Development Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants