maths / moodle-qtype_stack

Stack question type for Moodle
GNU General Public License v3.0
140 stars 148 forks source link

Unwanted entries in GeoGebra applet's Algebra View #1234

Open guidopinkernell opened 1 month ago

guidopinkernell commented 1 month ago

A Geogebra applet shows unwanted entries in its Algebra View:

image

The original applet does not have these entries: https://www.geogebra.org/m/agpqhczx

Here is a question for examination. quiz-equation-20240729-1822.zip

Thanks!

guidopinkernell commented 1 month ago

This could depend on the GeoGebra engine version that is called up when starting the applet in the STACK question.

I have changed the URL in STACK's moodle property settings to https://www.geogebra.org/apps/5.2.804.0/web3d after which the entries disappeared.

Back to https://www.geogebra.org/apps/5.0.498.0/web3d they were there again.

Unfortunately, using 804 again has no effect. The entries still appear. It seems that - although the URL points to the 804 engine - the older 498 is still loaded. At least the GeoGebra license called from the applet within STACK still shows version 498.

guidopinkernell commented 1 month ago

This is getting weird:

For some reason I went into the versions list of the question and chose a version which I knew was without ghost entries. Calling it up now it still is without ghost entries. Then I called a version which I knew had ghost entries. It still has.

I exported both to xml to check for differences. There were none (except in question text area, so irrelevant.)

Uploaded both back to the moodle server, and both are now without ghost entries. Both GeoGebra licences point to 804.

It seems that which GeoGebra version is loaded depends on the question creation date and not the present URL in STACK settings?

EJMFarrow commented 1 month ago

It's an unfortunate caching issue.

The GeoGebra URL is part of the compiled cache of the question (in the qtype_stack_options table) so it's set/updated on question creation/update. Just saving the question again without changing anything will pick up the current GeoGebra hosting setting.