lookit / lookit/lookit-api

Validator for internal studies not loading

Open
#1,492 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
12
Forks
21
Avg merge
5d 19h
Merged PRs (30d)
5

Description

Summary

While helping a researcher debug an experiment JS issue, I noticed that our js-validation.js file isn't loading on either the EFP or jsPsych edit pages. I see a 403 error in the network tab. The result is that the validation fails to run on the edit form submit action (because the jsValidation function is not found). The red text that should appear on form submission (#1308) does not show up, but I think the changes are still saved.

Screenshot 2025-01-06 at 12 27 41 PM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how js-validation.js is loaded on the EFP and jsPsych edit pages, then reproduce the 403 in the browser network tab and follow the form submit path where jsValidation is expected. Done means the script loads successfully, validation runs on submission, and the expected red text appears instead of allowing invalid changes to save.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.