Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #446 +/- ##
==========================================
+ Coverage 85.00% 85.01% +0.01%
==========================================
Files 18 18
Lines 9916 9924 +8
==========================================
+ Hits 8429 8437 +8
Misses 1487 1487 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@Kucharssim Minor changes, so I only have one remark, maybe remove the mention of other software from the comment in the tests, we will do that throughout the module soon. Let's see if copilot has anything to add :) |
|
Okay, I just did it myself, didn't know I could |
There was a problem hiding this comment.
Pull request overview
Renames the “Z bench” option/column in the Process Capability Studies analysis to a clearer “Z (ST) / Z (LT)” naming, with upgrade support for existing .jasp files and accompanying UI/help/test updates.
Changes:
- Rename option
processCapabilityTableZbench→processCapabilityTableZ(withinst/Upgrades.qmlmigration). - Rename output columns from
zbenchtozSt/zLtand update table headers. - Update QML label, help text, tests, and bump package version to
0.96.1.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/testthat/test-processCapabilityStudies.R | Updates test option key to the renamed processCapabilityTableZ. |
| R/processCapabilityStudies.R | Renames Z-related option/columns and table column headers for ST/LT. |
| inst/Upgrades.qml | Adds migration to rename the stored option key in existing files. |
| inst/qml/processCapabilityStudies.qml | Renames the checkbox option and updates its label. |
| inst/help/processCapabilityStudies.md | Updates documentation to describe Z (ST) and Z (LT). |
| DESCRIPTION | Bumps module version to 0.96.1. |
You can also share your feedback on Copilot code review. Take the survey.
There was a problem hiding this comment.
Pull request overview
Renames the “Z bench” option in the Process Capability Studies analysis to a clearer “Z (ST) / Z (LT)” label and updates the corresponding option key across UI, backend, tests, docs, and upgrade migration.
Changes:
- Renamed option key
processCapabilityTableZbench→processCapabilityTableZacross QML, R, and tests; added upgrade migration for backward compatibility. - Renamed output columns from
zbenchtozSt/zLtand updated help text to explain Z (ST) and Z (LT). - Bumped package version to
0.96.1.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
R/processCapabilityStudies.R |
Renames Z column(s) and option check in capability/performance tables. |
inst/qml/processCapabilityStudies.qml |
Renames the checkbox option and updates its label to “Z (ST) / Z (LT)”. |
inst/Upgrades.qml |
Adds migration rule to rename the stored option key for existing .jasp files. |
tests/testthat/test-processCapabilityStudies.R |
Updates test options to use the new option name. |
inst/help/processCapabilityStudies.md |
Updates documentation to define Z (ST) and Z (LT). |
DESCRIPTION |
Version bump to 0.96.1. |
|
Some of the copilot comments seem to make sense to me. what do you think @Kucharssim? |
|
I am not sure about the Otherwise, I think Copilot's claim that the code will error out with |
|
all good then. I didnt look at it, but if Jonas did should be fine |
|
@Kucharssim Hmm I think in previous versions of R you could not use rbind if the number of columns did not match. Even if it the table to bind to had 0 rows. That is why it is initialized as tableDf <- data.frame(matrix(ncol = length(tableColNames), nrow = 0)) But I can confirm that it is possible now. However, I actually noticed that the Z bench values are not added to the report. This is because they are not passed in the data frame that is returned using the "returnDataframe" or "returnOverallCapDataframe" arguments in the respective functions. Could you add the Z bench statistics to this dataframe? Lines 1227+ and 1468+. When you do that, you also need to add the Z statistics to the sourceVector, because that where the names for this df are defined. |
JTPetter
left a comment
There was a problem hiding this comment.
And if you could add a quick unit tests of a report that includes the z statistics that would be even better :)
|
Okay, will do! Thanks :) |
fixes https://github.com/jasp-stats/external-issues/issues/12