Skip to content

Initial Base Changes to Support Notebooks #1964

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
Mar 28, 2025
Merged

Initial Base Changes to Support Notebooks #1964

merged 2 commits into from
Mar 28, 2025

Conversation

ryanmelt
Copy link
Member

Primarily adds an inline mode to ScriptRunner so it can be embedded

@ryanmelt ryanmelt requested review from jmthomas and ryan-pratt March 24, 2025 04:07
Copy link

codecov bot commented Mar 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.87%. Comparing base (9d94238) to head (b0f30f9).
Report is 59 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1964      +/-   ##
==========================================
+ Coverage   76.68%   76.87%   +0.18%     
==========================================
  Files         628      629       +1     
  Lines       46637    46737     +100     
  Branches      755      755              
==========================================
+ Hits        35765    35929     +164     
+ Misses      10789    10725      -64     
  Partials       83       83              
Flag Coverage Δ
python 84.21% <ø> (∅)
ruby-api 48.48% <100.00%> (∅)
ruby-backend 82.87% <ø> (∅)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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
Member

@jmthomas jmthomas left a comment

Choose a reason for hiding this comment

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

Approved once you get all the checks passing

@@ -115,6 +115,9 @@ export class ConfigParserService {
let line = lines[i].trim()
// Ensure the line length is not 0
if (line.length === 0) {
if (yield_non_keyword_lines) {
handler(null, [], this.line, this.lineNumber)
}
Copy link
Member

Choose a reason for hiding this comment

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

Bug? Did you need this?

Copy link
Member Author

Choose a reason for hiding this comment

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

I needed this functionality for Notebooks. It was in the Ruby/Python versions but not in Javascript

</splitpanes>
</div>

<div v-if="inline">
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't really make sense to support Test Runner inline I guess.

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct. Too much chrome and not necessary for notebooks.

@@ -937,7 +1007,7 @@ export default {

// Make NEW_FILENAME available to the template
this.NEW_FILENAME = NEW_FILENAME
window.onbeforeunload = this.unlockFile
//window.onbeforeunload = this.unlockFile
Copy link
Member

Choose a reason for hiding this comment

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

Why did you remove this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Doesn't work with multiple script runners on the same page. Also, global actions like this are bad. Should be handled by the unmount lifecycle hook.

@ryanmelt ryanmelt merged commit 2650ba4 into main Mar 28, 2025
28 of 30 checks passed
@ryanmelt ryanmelt deleted the notebooks branch March 28, 2025 04:49
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.

2 participants