if(result.columns.length===0)returntr?.("output.noResultSet")??"(no result set)";
That looks up devTools.sqlRunner.grading.output.output.noResultSet (missing). The real string lives at devTools.sqlRunner.grading.output.noResultSet = "(no result set)".
User-visible: a query that returns no result set prints the raw key devTools.sqlRunner.grading.output.output.noResultSet in the output pane instead of (no result set).
Fix is one of: tr?.("noResultSet") in renderOutput, or stop prefixing output. in the grader callback. Characterization test pins current behavior.
Discovered while covering `SqlLessonGraderService` leftovers (wave 7 tick 5 a8).
`gradeSubmission` / `runSandbox` pass `renderOutput` a translator that already prefixes `output.`:
```ts
(key, params) => this.translateGrading(`output.${key}`, params)
```
but `renderOutput` asks for `"output.noResultSet"`:
```ts
if (result.columns.length === 0) return tr?.("output.noResultSet") ?? "(no result set)";
```
That looks up `devTools.sqlRunner.grading.output.output.noResultSet` (missing). The real string lives at `devTools.sqlRunner.grading.output.noResultSet` = `"(no result set)"`.
**User-visible:** a query that returns no result set prints the raw key `devTools.sqlRunner.grading.output.output.noResultSet` in the output pane instead of `(no result set)`.
Fix is one of: `tr?.("noResultSet")` in `renderOutput`, or stop prefixing `output.` in the grader callback. Characterization test pins current behavior.
Resolved in spikersoft-angular PR #819 (merged to master). SQL grader empty result set shows "(no result set)" instead of a Transloco key. Closing.
Resolved in spikersoft-angular [PR #819](https://git.spikersoft.com/spikerj/spikersoft-angular/pulls/819) (merged to `master`). SQL grader empty result set shows "(no result set)" instead of a Transloco key. Closing.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Discovered while covering
SqlLessonGraderServiceleftovers (wave 7 tick 5 a8).gradeSubmission/runSandboxpassrenderOutputa translator that already prefixesoutput.:but
renderOutputasks for"output.noResultSet":That looks up
devTools.sqlRunner.grading.output.output.noResultSet(missing). The real string lives atdevTools.sqlRunner.grading.output.noResultSet="(no result set)".User-visible: a query that returns no result set prints the raw key
devTools.sqlRunner.grading.output.output.noResultSetin the output pane instead of(no result set).Fix is one of:
tr?.("noResultSet")inrenderOutput, or stop prefixingoutput.in the grader callback. Characterization test pins current behavior.Resolved in spikersoft-angular PR #819 (merged to
master). SQL grader empty result set shows "(no result set)" instead of a Transloco key. Closing.