ocaml-sf / learn-ocaml

A Web Application for Learning OCaml
https://ocaml-sf.org/learn-ocaml/
MIT License
304 stars 66 forks source link

fix(teacher_tab): partly fix Open/Close handling w.r.t. Assignments #559

Closed erikmd closed 1 year ago

erikmd commented 1 year ago

Description

Checklist

Note to maintainers

erikmd commented 1 year ago

Summary of the telco with @yurug → ideally, we'd want:

as the feature addressed by this PR is critical for learn-ocaml.

Regarding items 4. 5. → see my upcoming comment.

erikmd commented 1 year ago

@AltGr @yurug the PR is ready! except for the static builds failure (cf. this discuss thread)

FYI, to follow-up the previous comment:

On second thought, I didn't add a blocking runtime test (which could be distracting for end users), and improved the teacher tab instead to ensure the Inconsistency is displayed, and fixed on the next click on Open/Close.

See the following screenshots.

Opening the teacher tab after loading the inconsistent sync.zip from #558

2023-08-28_14-23-45_Screenshot_sync zip

After clicking on Open/Close for all exercises

2023-08-28_14-24-37_Screenshot_openclose

erikmd commented 1 year ago

Good news, the CI issue is now fixed.

Note: there's still an issue in learnocaml_teacher_tab.ml (among those spotted in #558)

Will fix this ASAP in a later PR.

yurug commented 1 year ago

LGTM