Skip to content

Commit 932499d

Browse files
committed
Merge branch 'staging' into pl-teacher-application-log-users
Conflicts: apps/src/code-studio/pd/form_components/FormController.jsx
2 parents 73d1bd4 + f9513b2 commit 932499d

File tree

1,515 files changed

+16023
-3440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,515 files changed

+16023
-3440
lines changed

.drone.yml

Lines changed: 60 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,48 @@
1+
---
12
kind: pipeline
23
name: unit
34

45
clone:
5-
depth: 50
6+
disable: true
67

78
steps:
9+
- name: clone
10+
image: docker:git
11+
commands:
12+
- git clone --branch $DRONE_SOURCE_BRANCH --depth 50 $DRONE_GIT_HTTP_URL .
13+
- git reset --hard $DRONE_COMMIT
14+
15+
- name: verify-pr
16+
image: wintercdo/code-dot-org:0.7
17+
pull: always
18+
commands:
19+
- |
20+
if [ -z "$DRONE_PULL_REQUEST" ]; then
21+
echo "Not a pull request."
22+
exit 0
23+
fi
24+
# Check to see if PR is from fork. If so, exit, as the test run provides access to secrets.
25+
- head_repo=$(curl -s "https://api.github.com/repos/code-dot-org/code-dot-org/pulls/$DRONE_PULL_REQUEST" | jq .head.repo.full_name)
26+
- echo $head_repo
27+
- |
28+
if [ "$head_repo" != '"code-dot-org/code-dot-org"' ]; then
29+
echo "Pull request is from fork $head_repo; exiting."
30+
exit 1
31+
fi
32+
33+
- name: restore-cache
34+
image: plugins/s3-cache
35+
settings:
36+
pull: true
37+
restore: true
38+
access_key:
39+
from_secret: S3_CACHE_ACCESS_KEY
40+
secret_key:
41+
from_secret: S3_CACHE_SECRET_KEY
42+
843
- name: unit-tests
944
image: wintercdo/code-dot-org:0.7
45+
pull: always
1046
volumes:
1147
- name: rbenv
1248
path: /home/circleci/.rbenv
@@ -17,17 +53,28 @@ steps:
1753
from_secret: CLOUDFRONT_KEY_PAIR_ID
1854
CLOUDFRONT_PRIVATE_KEY:
1955
from_secret: CLOUDFRONT_PRIVATE_KEY
20-
PROPERTIES_ENCRYPTION_KEY:
21-
from_secret: PROPERTIES_ENCRYPTION_KEY
22-
AWS_ACCESS_KEY_ID:
23-
from_secret: AWS_ACCESS_KEY_ID
24-
AWS_SECRET_ACCESS_KEY:
25-
from_secret: AWS_SECRET_ACCESS_KEY
2656
commands:
27-
- pwd
57+
- df -h
2858
- sudo chown -R circleci:circleci .
59+
- # cache is restored to source directory, so we need to copy it into the right place
60+
- cp -rn "$(pwd)/home/circleci/.rbenv" /home/circleci || true
2961
- /entrypoint.sh docker/unit_tests.sh
3062

63+
- name: update-cache
64+
image: plugins/s3-cache
65+
volumes:
66+
- name: rbenv
67+
path: /home/circleci/.rbenv
68+
settings:
69+
pull: true
70+
rebuild: true
71+
access_key:
72+
from_secret: S3_CACHE_ACCESS_KEY
73+
secret_key:
74+
from_secret: S3_CACHE_SECRET_KEY
75+
mount:
76+
- /home/circleci/.rbenv
77+
3178
volumes:
3279
- name: rbenv
3380
temp: {}
@@ -98,3 +145,8 @@ trigger:
98145
# event:
99146
# include:
100147
# - pull_request
148+
---
149+
kind: signature
150+
hmac: 4ef30caa9dc7941b06d4ed3e8427def6b650ee9b3ceb3b161e2ffe83e603cae4
151+
152+
...

SETUP.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ You can do Code.org development using OSX, Ubuntu, or Windows (running Ubuntu in
3838
1. `rake install`
3939
1. [Enable JavaScript builds](#enabling-javascript-builds)
4040
1. Note: You can skip this step if not editing javascript frequently.
41-
1. Setup AWS - Ask a Code.org engineer how to complete this step
4241
1. `rake build`
42+
1. (Optional, Code.org engineers only) Setup AWS - Ask a Code.org engineer how to complete this step
43+
1. Some functionality will not work on your local site without this, for example, some project-backed level types such as https://studio.code.org/projects/gamelab. This setup is only available to Code.org engineers for now, but it is recommended for Code.org engineers.
4344
4445
## OS-specific prerequisites
4546

apps/.storybook/config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, {PropTypes} from 'react';
1+
import PropTypes from 'prop-types';
2+
import React from 'react';
23
import * as storybook from '@storybook/react';
34
import { setOptions } from '@storybook/addon-options';
45
import Node from '@storybook/addon-info/dist/components/Node';

apps/Gruntfile.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ module.exports = function (grunt) {
1717

1818
process.env.mocha_entry = grunt.option('entry') || '';
1919
if (process.env.mocha_entry) {
20+
if (path.resolve(process.env.mocha_entry).indexOf('/apps/test/integration') > -1) {
21+
throw new Error('Cannot use karma:entry to run integration tests');
22+
}
2023
const isDirectory = fs.lstatSync(path.resolve(process.env.mocha_entry)).isDirectory();
2124
const loadContext = isDirectory ?
2225
`let testsContext = require.context(${JSON.stringify(path.resolve(process.env.mocha_entry))}, true, /\\.jsx?$/);` :

apps/i18n/bounce/sk_sk.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@
7777
"putdownTower": "daj dole vežu",
7878
"reinfFeedbackMsg": "Pre návrat k svojej hre môžeš stlačiť tlačidlo \"Skúsiť znova\".",
7979
"removeSquare": "odstrániť štvorec",
80-
"repeatUntil": "opakovať dokiaľ",
80+
"repeatUntil": "opakuj dovtedy (kým)",
8181
"repeatUntilBlocked": "pokiaľ je cesta vpred",
82-
"repeatUntilFinish": "opakovať do konca",
82+
"repeatUntilFinish": "opakuj do konca",
8383
"scoreText": "Skóre: {playerScore} : {opponentScore}",
8484
"setBackground": "nastav {background} scénu",
8585
"setBackgroundHardcourt": "nastav hardcourt scénu",

apps/i18n/common/ar_sa.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,7 @@
12791279
"subtitle": "بيئة البرمجة المرئية",
12801280
"success": "",
12811281
"summaryAssessmentsOverview": "",
1282+
"switchSection": "قسم التبديل:",
12821283
"syncClever": "",
12831284
"syncGoogleClassroom": "",
12841285
"syntaxErrorMsg": "برنامجك يحتوي علي خطأ في الكتابة الرجاء إزالة السطر رقم {lineNumber} والمحاولة مرة أخرى.",

apps/i18n/common/az_az.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,7 @@
12791279
"subtitle": "vizual proqramlaşdırma mühiti",
12801280
"success": "",
12811281
"summaryAssessmentsOverview": "",
1282+
"switchSection": "",
12821283
"syncClever": "",
12831284
"syncGoogleClassroom": "",
12841285
"syntaxErrorMsg": "Proqramınızda hərf səhvi var. Zəhmət olmazsa, {lineNumber} nömrəli sətri pozun və bir daha cəhd edin.",

apps/i18n/common/bg_bg.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,7 @@
12791279
"subtitle": "визуална среда за програмиране",
12801280
"success": "Успешно!",
12811281
"summaryAssessmentsOverview": "",
1282+
"switchSection": "Преминаване към раздел:",
12821283
"syncClever": "",
12831284
"syncGoogleClassroom": "",
12841285
"syntaxErrorMsg": "Вашата програма съдържа правописна грешка. Моля, премахнете линия {lineNumber} и опитайте отново.",

apps/i18n/common/bn_bd.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,7 @@
12791279
"subtitle": "ভিজ্যুয়াল প্রোগ্রামিং পরিবেশ",
12801280
"success": "",
12811281
"summaryAssessmentsOverview": "",
1282+
"switchSection": "অধ্যায় অদল-বদল করুন:",
12821283
"syncClever": "",
12831284
"syncGoogleClassroom": "",
12841285
"syntaxErrorMsg": "আপনার প্রোগ্রাম লিখায় একটি ভুল রয়েছে। লাইন {lineNumber} অপসারণ করে আবার চেষ্টা করুন।",

apps/i18n/common/bs_ba.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,7 @@
12791279
"subtitle": "grafičko okruženje za programiranje",
12801280
"success": "",
12811281
"summaryAssessmentsOverview": "",
1282+
"switchSection": "Promijeni odjeljenje:",
12821283
"syncClever": "",
12831284
"syncGoogleClassroom": "",
12841285
"syntaxErrorMsg": "Vaš program ima pogrešku. Molimo vas da uklonite liniju {lineNumber} i da pokušate ponovo.",

apps/i18n/common/ca_es.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,7 @@
12791279
"subtitle": "un entorn de programació visual",
12801280
"success": "",
12811281
"summaryAssessmentsOverview": "",
1282+
"switchSection": "Canvia de secció:",
12821283
"syncClever": "",
12831284
"syncGoogleClassroom": "",
12841285
"syntaxErrorMsg": "El seu programa conté un error tipogràfic. Tregui la línia {lineNumber} i torneu-ho a provar.",

apps/i18n/common/co_co.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,7 @@
12791279
"subtitle": "",
12801280
"success": "",
12811281
"summaryAssessmentsOverview": "",
1282+
"switchSection": "",
12821283
"syncClever": "",
12831284
"syncGoogleClassroom": "",
12841285
"syntaxErrorMsg": "",

apps/i18n/common/cs_cz.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"activity": "Aktivita",
44
"actions": "Akce",
55
"add": "Přidat",
6-
"addPartners": "",
6+
"addPartners": "Přidat partnery",
77
"addPassword": "Přidat heslo",
88
"addPasswordHint": "Po vytvoření hesla se budete vždy přihlašovat pomocí svého uživatelského jména (nebo e-mailové adresy) a hesla. Váš účet bude také lépe zabezpečen, protože při každé jeho změně bude požadováno zadání hesla.",
99
"addRemoveCleverClassrooms": "Navštivte https://clever.com/ a potvrďte, že vaše třída je připojena do Code.org.",
@@ -73,7 +73,7 @@
7373
"assignHiddenUnitConfirm": "Vypadá to, že jste dříve skryli \"{assignmentName}\" z oddílu \"{sectionName}\". Chcete přesto přiřadit tuto jednotku a zviditelnit ji?",
7474
"assignedTo": "Přiřazeno",
7575
"assignUnit": "Přiřadit jednotku",
76-
"assignedToNewerVersion": "",
76+
"assignedToNewerVersion": "Učitel tě přidal do novější verze kurzu.",
7777
"assignmentSelectorCourse": "Vybrat kurz",
7878
"assignmentSelectorVersion": "Verze",
7979
"assignmentSelectorUnit": "Vybrat aktuální jednotku",
@@ -205,7 +205,7 @@
205205
"completedWithoutRecommendedBlock": "Blahopřejeme! Dokončil jsi Puzzle {puzzleNumber}. (Ale mohl bys použít jiný blok pro silnější kód.)",
206206
"completionStatus": "Stav dokončení",
207207
"concept": "Koncept",
208-
"confirmDeleteExplanation": "",
208+
"confirmDeleteExplanation": "Tento soubor bude odstraněn z celého projektu",
209209
"confirming": "Potvrzení...",
210210
"confirmSchool": "Potvrdit školu",
211211
"congratsCertificateHeading": "Získali jste osvědčení o dokončení",
@@ -1279,6 +1279,7 @@
12791279
"subtitle": "vizuální programovací prostředí",
12801280
"success": "",
12811281
"summaryAssessmentsOverview": "",
1282+
"switchSection": "Přepnout sekci:",
12821283
"syncClever": "",
12831284
"syncGoogleClassroom": "",
12841285
"syntaxErrorMsg": "Váš program obsahuje překlep. Odstranit řádek {lineNumber} a opakujte akci.",

apps/i18n/common/da_dk.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,7 @@
12791279
"subtitle": "et visuelt programmerings miljø",
12801280
"success": "",
12811281
"summaryAssessmentsOverview": "",
1282+
"switchSection": "Skift hold:",
12821283
"syncClever": "",
12831284
"syncGoogleClassroom": "",
12841285
"syntaxErrorMsg": "Dit program indeholder en fejl. Fjern linje {lineNumber} og prøv igen.",

apps/i18n/common/de_de.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,7 @@
12791279
"subtitle": "eine visuelle Programmierumgebung",
12801280
"success": "Geschafft!",
12811281
"summaryAssessmentsOverview": "",
1282+
"switchSection": "Lerngruppe wechseln:",
12821283
"syncClever": "",
12831284
"syncGoogleClassroom": "",
12841285
"syntaxErrorMsg": "Dein Programm enthält einen Tippfehler. Bitte entferne Zeile {lineNumber} und versuche es erneut.",

0 commit comments

Comments
 (0)