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

fix: allow pools to not be defined without raising exceptions #2005

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

StephenHulme
Copy link
Contributor

@StephenHulme StephenHulme commented Oct 17, 2024

Allow pools to not be defined without breaking all javascript in the page: user errors should not cause syntax errors.

Screenshot 2024-10-17 at 16 00 13

Changes proposed in this pull request

  • stop processing JS if pool is undefined or empty-string

Instructions for Reviewers

[All PRs] - Confirm PR template filled
[Feature Branches] - Review code
[Production Merges to main]
    - Check story numbers included
    - Check for debug code
    - Check version

Copy link

codecov bot commented Oct 17, 2024

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 77.95%. Comparing base (40ef006) to head (60b4bba).
Report is 3 commits behind head on develop.

Files with missing lines Patch % Lines
app/frontend/javascript/legacy_scripts_a.js 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2005      +/-   ##
===========================================
- Coverage    77.97%   77.95%   -0.02%     
===========================================
  Files          463      463              
  Lines        17708    17711       +3     
  Branches       225      225              
===========================================
  Hits         13807    13807              
- Misses        3899     3902       +3     
  Partials         2        2              
Flag Coverage Δ
javascript 69.66% <0.00%> (-0.02%) ⬇️
pull_request 77.95% <0.00%> (-0.02%) ⬇️
push 77.95% <0.00%> (-0.02%) ⬇️
ruby 91.16% <ø> (ø)

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.

@StephenHulme StephenHulme added the Bug Bug in code label Oct 17, 2024
@StephenHulme StephenHulme self-assigned this Oct 17, 2024
@StephenHulme
Copy link
Contributor Author

Stalled as this should ideally be tested against the real-life scenario before merging in - maybe it can be deployed to training?

Copy link

codeclimate bot commented Oct 22, 2024

Code Climate has analyzed commit 60b4bba and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 91.1% (0.0% change).

View more on Code Climate.

@StephenHulme
Copy link
Contributor Author

Tested successfully in training comparing against uat.

@StephenHulme StephenHulme merged commit 3f8c848 into develop Oct 22, 2024
19 of 21 checks passed
@StephenHulme StephenHulme deleted the sh51/handle-js-missing-pools-index-bug branch October 22, 2024 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug in code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants