Skip to content

Prod release: support unicode in data, load local jsPsych (dev) - #1934

Draft
becky-gilbert wants to merge 2 commits into
masterfrom
develop
Draft

Prod release: support unicode in data, load local jsPsych (dev)#1934
becky-gilbert wants to merge 2 commits into
masterfrom
develop

Conversation

@becky-gilbert

@becky-gilbert becky-gilbert commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

This PR moves the following changes into production:

  • Adds support for the new JSPSYCH_LOCAL_PLUGINS (jsPsych local plugin overlay #1933) environment variable, which, when set to True, replaces the DB-defined published package URLs with local versions for chs-jspsych plugins.
  • Fixes a bug in PsychDS data downloads that produces a Server 500 error when the data contains unicode characters.

* use utf-8 encoding for psychds download tmp files: write_overview_to_tmp_file for resp/child overviews; write for all responses JSON in render_to_response (fixes ascii cannot encode character error)

* use utf-8 encoding for frame data dict: less likely but possible for researchers to use unicode in frame IDs and keys

* add tests for non-ascii characters in all changed file operations
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant