.. _version-history: Version history ``````````````` .. _v60: oTree 6.0 ========= You can install this release with: .. code-block:: bash pip install otree --upgrade Support for AI and web APIs (ChatGPT etc) ----------------------------------------- See :ref:`async_live_method`. group_by_arrival_time presence detection ---------------------------------------- We changed how ``group_by_arrival_time`` excludes participants based on inactivity. Previously, inactivity was automatically determined based on whether the tab is open and active. Now, if a participant has not shown any signs of activity within **2 minutes** (e.g. not moved their mouse), they are asked if they are still there. Note the live countdown is also shown in the page tab title: .. image:: ../_static/gbat/countdown.png :width: 500px This starts a countdown. If they don't respond within **15 seconds** (by clicking the button or at least moving their mouse), they are sent to an "inactive" page with a big button they can click to return to the wait page: .. image:: ../_static/gbat/inactive_page.png :width: 500px The timing parameters are configurable in ``settings.py`` (these settings are experimental and may be removed or changed): .. code-block:: python GBAT_INACTIVE_SECONDS_UNTIL_PROMPT = 2 * 60 GBAT_INACTIVE_SECONDS_TO_CONFIRM = 15 Back button ----------- See :ref:`back_button`. Welcome pages for rooms ----------------------- When you use a Room, oTree will always show a Welcome page that asks the user to confirm to start. Room without participant label file: .. image:: ../_static/rooms/welcome-page-nolabel.png :width: 350px Room with participant label file: .. image:: ../_static/rooms/welcome-page-label.png :width: 500px This solves the problem where start links were being opened by various platforms like WhatsApp that scan messages and open hyperlinks automatically, making oTree count those participants as having begun the experiment. Furthemore, these welcome pages are customizable. See :ref:`welcome-page`. live_method on WaitPage ----------------------- You can now define ``live_method`` on a WaitPage. participant.status ------------------ There is a new field ``participant.status`` that you can set to anything you want, e.g. ``finished``, ``dropout``, etc. In the admin monitor page, there will be a dropdown that lets you filter based on this field. (In the initial view, only participants whose ``status`` is blank will be shown.) This is useful for things like hiding participants who are no longer doing the study, or organizing participants into segments. Multiple custom_export functions -------------------------------- See :ref:`multiple_custom_export` Preserving unsubmitted inputs ----------------------------- See :ref:`preserve_unsubmitted_inputs`. DecimalField ------------ oTree now has a versatile ``DecimalField``, useful for enabling multiple currencies as well as various other data types (percentages, durations, resources, etc). See :ref:`DecimalField`. Filtering fields in admin data view ----------------------------------- See :ref:`ADMIN_VIEW_FIELDS`. Improvements to admin interface ------------------------------- Many improvements to the admin UI. Session-wide links ------------------ Previously, if a participant opened a session-wide start link twice in the same browser, it would use up 2 participants. Now, we check if the start link was already clicked, using a cookie. If yes, we continue where they left off. Caveats: - This new behavior only applies with non-demo sessions. - You generally shouldn't be using session-wide links anyway, room links are much more stable. Number formatting ----------------- - ``THOUSAND_SEPARATOR`` setting (to display numbers like "1,234,567.00") - ``to3`` and ``to4`` filters in templates See :ref:`number_formatting` for details. Data export ----------- Automated data export added to REST API. Improved data export performance. Misc ~~~~ - Bots do ``custom_export`` - Easier debugging of live pages. JS console shows when there is a server error, and server tracebacks are shorter. - ``to3`` and ``to4`` filter in templates - green/gray presence icons in the "Monitor" page when participants are on waitpages - ``read_csv()`` supports semicolon delimited files - In ``DEBUG`` mode, at the bottom of the page there is a link to start as a new participant. - Made navigation between room and active session more intuitive and clear. - ``live_method`` cannot be a string anymore. - chat widget now uses a ``