Skip to content

Fixed deployment of CSP files #839

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 1 commit into from
Aug 20, 2025
Merged

Fixed deployment of CSP files #839

merged 1 commit into from
Aug 20, 2025

Conversation

isc-pbarton
Copy link
Collaborator

Fixes #828
Fixes #669

@codecov-commenter
Copy link

codecov-commenter commented Aug 19, 2025

Codecov Report

❌ Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.78%. Comparing base (83c88c6) to head (2c5bc8e).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
cls/SourceControl/Git/PackageManagerContext.cls 66.66% 1 Missing ⚠️
cls/SourceControl/Git/Utils.cls 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #839      +/-   ##
==========================================
+ Coverage   49.03%   49.78%   +0.74%     
==========================================
  Files          24       24              
  Lines        3271     3274       +3     
==========================================
+ Hits         1604     1630      +26     
+ Misses       1667     1644      -23     

☔ 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.

@isc-pbarton isc-pbarton merged commit a9a44f8 into main Aug 20, 2025
2 checks passed
@isc-pbarton isc-pbarton deleted the csp-deploy branch August 20, 2025 19:59
@isc-pbarton isc-pbarton restored the csp-deploy branch August 20, 2025 19:59
if '(##class(%File).CopyFile(srcFile, cspFile, 1)) {
set sc = $$$ERROR($$$GeneralError, "Unable to import '"_srcFile_"'")
if '(##class(%File).CopyFile(srcFile, cspFile, 1, .ret)) {
set sc = $$$ERROR($$$GeneralError,"Unable to copy CSP file from "_srcFile_" to "_cspFile_": return code "_ret)
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this applies to XSLT files too, I would change the language to something more generic. Suggestion: "Unable to copy application file from ..."

Quit ##super(initvalue)
set ..WebAppPath = ##class(%File).TempFilename()_"d"
do ##class(%File).CreateDirectoryChain(..WebAppPath)
do ..CreateTestWebApp("/csp/git/unittest/xsl", ..WebAppPath)
Copy link
Contributor

Choose a reason for hiding this comment

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

When I've done things like this (where a test case creates a record, testing a DTL, etc...), I find storing it in a class parameter helps improve code readability and makes it more explicit that this name should not change across the execution of the test case.

@cambot
Copy link
Contributor

cambot commented Aug 21, 2025

I didn't realize my comments had not been submitted. :(

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.

Importing XSLTs fails with "Not a supported Type" error CSP pages not tracked properly
4 participants