Skip to content

Conversation

@erikmd
Copy link
Collaborator

@erikmd erikmd commented Dec 16, 2022

Description

Replace "Mechanism 2" (from PR 372) with a more expressive set of reload features, and fixes minor bugs along the way.

Checklist

Note to maintainers

  • Read this wiki page
  • Make sure the PR has a milestone
  • Assign yourself before merging
  • This PR should be merged as is, NOT SQUASHED

@erikmd erikmd changed the title Fix reload Remove Mechanism-2 (#372), Add a 3-fold on-demand Reload button, Fix extra minor bugs Dec 29, 2022
@erikmd erikmd added this to the learn-ocaml 0.14.1 milestone Dec 29, 2022
@erikmd erikmd requested a review from yurug December 29, 2022 00:36
@erikmd erikmd marked this pull request as ready for review December 29, 2022 00:36
@erikmd
Copy link
Collaborator Author

erikmd commented Dec 29, 2022

Hi @yurug, as promised I finished working on this PR that fully fixes #505, plus 2 related minor bugs.

In dynamic deployment mode, we now get a 3-fold button like this:

English

2022-12-29_01-40-38_Screenshot_english

French

2022-12-29_01-40-59_Screenshot_french

Remarks

  • To test the PR, feel free to download the static binaries that are automatically put as PR checks & commit statuses ✔️ → learn-ocaml-linux-x86_64.tar.gz (artifact) & learn-ocaml-www.zip (artifact) (see PR #504 doc)
  • @yurug If your extra tests are OK as well, please don't squash this PR (a regular merge will be required here)

@yurug
Copy link
Collaborator

yurug commented Jan 6, 2023

@erikmd I have tested the feature and found an issue. When there are no versions on the server, retrieving the latest graded version (or the last synchronized version) does not work: the dialog box is opened but clicking on "OK" does nothing. (The dialog box stays displayed.)

The test has been performed on Google Chrome.

@erikmd
Copy link
Collaborator Author

erikmd commented Jan 6, 2023

@yurug thanks for your review!

I've just pushed after our pair-programming rework/test, so feel free to merge (not squash) once the CI is green anew.

Thanks 👍

@erikmd
Copy link
Collaborator Author

erikmd commented Jan 6, 2023

Sorry @yurug, I've just noticed I had amended the last commit instead of the last-but-one. I'm doing this right now! stay tuned.

erikmd added 3 commits January 6, 2023 14:22
…-sf#372

This button triggers a "Fetch_save" and makes a menu appear, allowing
end users to reuse their latest graded code, their latest saved code,
or the initial template code.

This button only shows up when a non-static backend is detected.

Update the French translation as well.

This fixes "bug 3" of issue ocaml-sf#505.

Close ocaml-sf#493
Close ocaml-sf#505
…#489)

This small patch avoids a warning and also saves one HTTP request.
@erikmd
Copy link
Collaborator Author

erikmd commented Jan 6, 2023

Sorry @yurug, I've just noticed I had amended the last commit instead of the last-but-one. I'm doing this right now! stay tuned.

Done → as one can see, my last force-push induces an empty diff

@erikmd
Copy link
Collaborator Author

erikmd commented Jan 6, 2023

Hi again @yurug!,

… once the CI is green anew.

this is now the case 🙃👍

@yurug yurug merged commit b72c6d3 into ocaml-sf:master Jan 6, 2023
@erikmd erikmd deleted the fix-reload branch January 6, 2023 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Mechanism-2 of PR #372 does not work Feature: Expose more easily last the two versions of a saved exercise

2 participants