Skip to content

ENH: Define "PILOTING" online as well as locally#7109

Merged
TEParsons merged 1 commit intopsychopy:devfrom
TEParsons:dev-enh-online-detect-pilot
Feb 19, 2025
Merged

ENH: Define "PILOTING" online as well as locally#7109
TEParsons merged 1 commit intopsychopy:devfrom
TEParsons:dev-enh-online-detect-pilot

Conversation

@TEParsons
Copy link
Copy Markdown
Contributor

PILOTING is true if there's a __pilotToken supplied in the url and false otherwise. When piloting locally, __pilotToken is now supplied (given a placeholder value of "local" as it doesn't do anything locally).

Basically, this means any code the user writes in Builder to check for the PILOTING constant will get the same value online.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 17, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 49.89%. Comparing base (08d4f36) to head (4623555).
Report is 19 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #7109   +/-   ##
=======================================
  Coverage   49.89%   49.89%           
=======================================
  Files         346      346           
  Lines       64012    64012           
=======================================
  Hits        31936    31936           
  Misses      32076    32076           
Components Coverage Δ
app ∅ <ø> (∅)
boilerplate ∅ <ø> (∅)
library ∅ <ø> (∅)
vm-safe library ∅ <ø> (∅)

@TEParsons TEParsons merged commit 0501074 into psychopy:dev Feb 19, 2025
7 checks passed
@TEParsons TEParsons deleted the dev-enh-online-detect-pilot branch May 21, 2025 18:03
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