Skip to content

Commit 192dd69

Browse files
committed
Add more Experience CS projects to seeding data.
We are updating the seeding data for Experience CS to be more realistic of the current production data. This commit adds new Scratch project identifiers to the Editor-API seeding data to match.
1 parent 09270f8 commit 192dd69

File tree

2 files changed

+310
-43
lines changed

2 files changed

+310
-43
lines changed

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,7 @@ GEM
558558
PLATFORMS
559559
aarch64-linux
560560
arm64-darwin-24
561+
arm64-darwin-25
561562
x86_64-linux
562563

563564
DEPENDENCIES

lib/tasks/projects.rake

Lines changed: 309 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -9,49 +9,315 @@ namespace :projects do
99
desc "Create example Scratch projects for Experience CS (if they don't already exist)"
1010
task create_experience_cs_examples: :environment do
1111
projects = [
12-
{
13-
identifier: 'experience-cs-example',
14-
locale: 'en',
15-
project_type: Project::Types::SCRATCH,
16-
name: 'Experience CS example',
17-
user_id: nil
18-
},
19-
{
20-
identifier: 'dialogue-in-scratch',
21-
locale: 'en',
22-
project_type: Project::Types::SCRATCH,
23-
name: 'Dialogue in Scratch',
24-
user_id: nil
25-
},
26-
{
27-
identifier: 'ten-block-mission',
28-
locale: 'en',
29-
project_type: Project::Types::SCRATCH,
30-
name: 'Ten block mission',
31-
user_id: nil
32-
},
33-
{
34-
identifier: 'blank-scratch-starter',
35-
locale: 'en',
36-
project_type: Project::Types::SCRATCH,
37-
name: 'Blank Scratch starter',
38-
user_id: nil
39-
},
40-
{
41-
identifier: 'lets-explore-scratch',
42-
locale: 'en',
43-
project_type: Project::Types::SCRATCH,
44-
name: "Let's explore Scratch",
45-
user_id: nil
46-
},
47-
{
48-
identifier: 'transforming-sprites',
49-
locale: 'en',
50-
project_type: Project::Types::SCRATCH,
51-
name: 'Transforming sprites',
52-
user_id: nil
53-
}
54-
]
12+
{
13+
identifier: 'a-familar-tune',
14+
locale: 'en',
15+
project_type: Project::Types::SCRATCH,
16+
name: 'A Familar Tune',
17+
user_id: nil
18+
},
19+
{
20+
identifier: 'blank-scratch-starter',
21+
locale: 'en',
22+
project_type: Project::Types::SCRATCH,
23+
name: 'Blank Scratch Starter',
24+
user_id: nil
25+
},
26+
{
27+
identifier: 'broadcasting-chords',
28+
locale: 'en',
29+
project_type: Project::Types::SCRATCH,
30+
name: 'Broadcasting Chords',
31+
user_id: nil
32+
},
33+
{
34+
identifier: 'chord-detectives',
35+
locale: 'en',
36+
project_type: Project::Types::SCRATCH,
37+
name: 'Chord Detectives',
38+
user_id: nil
39+
},
40+
{
41+
identifier: 'comparing-programs',
42+
locale: 'en',
43+
project_type: Project::Types::SCRATCH,
44+
name: 'Comparing Programs',
45+
user_id: nil
46+
},
47+
{
48+
identifier: 'counting-with-variables',
49+
locale: 'en',
50+
project_type: Project::Types::SCRATCH,
51+
name: 'Counting With Variables',
52+
user_id: nil
53+
},
54+
{
55+
identifier: 'creating-a-program',
56+
locale: 'en',
57+
project_type: Project::Types::SCRATCH,
58+
name: 'Creating A Program',
59+
user_id: nil
60+
},
61+
{
62+
identifier: 'creating-clones',
63+
locale: 'en',
64+
project_type: Project::Types::SCRATCH,
65+
name: 'Creating Clones',
66+
user_id: nil
67+
},
68+
{
69+
identifier: 'creating-programs',
70+
locale: 'en',
71+
project_type: Project::Types::SCRATCH,
72+
name: 'Creating Programs',
73+
user_id: nil
74+
},
75+
{
76+
identifier: 'debug-it',
77+
locale: 'en',
78+
project_type: Project::Types::SCRATCH,
79+
name: 'Debug It',
80+
user_id: nil
81+
},
82+
{
83+
identifier: 'debugging-in-scratch',
84+
locale: 'en',
85+
project_type: Project::Types::SCRATCH,
86+
name: 'Debugging In Scratch',
87+
user_id: nil
88+
},
89+
{
90+
identifier: 'dialogue-in-scratch',
91+
locale: 'en',
92+
project_type: Project::Types::SCRATCH,
93+
name: 'Dialogue In Scratch',
94+
user_id: nil
95+
},
96+
{
97+
identifier: 'digit-dash',
98+
locale: 'en',
99+
project_type: Project::Types::SCRATCH,
100+
name: 'Digit Dash',
101+
user_id: nil
102+
},
103+
{
104+
identifier: 'experience-cs-example',
105+
locale: 'en',
106+
project_type: Project::Types::SCRATCH,
107+
name: 'Experience Cs Example',
108+
user_id: nil
109+
},
110+
{
111+
identifier: 'getting-started-1',
112+
locale: 'en',
113+
project_type: Project::Types::SCRATCH,
114+
name: 'Getting Started 1',
115+
user_id: nil
116+
},
117+
{
118+
identifier: 'investigating-broadcasting',
119+
locale: 'en',
120+
project_type: Project::Types::SCRATCH,
121+
name: 'Investigating Broadcasting',
122+
user_id: nil
123+
},
124+
{
125+
identifier: 'lets-explore-scratch',
126+
locale: 'en',
127+
project_type: Project::Types::SCRATCH,
128+
name: 'Lets Explore Scratch',
129+
user_id: nil
130+
},
131+
{
132+
identifier: 'lets-loop-it',
133+
locale: 'en',
134+
project_type: Project::Types::SCRATCH,
135+
name: 'Lets Loop It',
136+
user_id: nil
137+
},
138+
{
139+
identifier: 'ma-testing',
140+
locale: 'en',
141+
project_type: Project::Types::SCRATCH,
142+
name: 'Ma Testing',
143+
user_id: nil
144+
},
145+
{
146+
identifier: 'modifying-picture-graphs',
147+
locale: 'en',
148+
project_type: Project::Types::SCRATCH,
149+
name: 'Modifying Picture Graphs',
150+
user_id: nil
151+
},
152+
{
153+
identifier: 'modifying-programs',
154+
locale: 'en',
155+
project_type: Project::Types::SCRATCH,
156+
name: 'Modifying Programs',
157+
user_id: nil
158+
},
159+
{
160+
identifier: 'move-with-purpose',
161+
locale: 'en',
162+
project_type: Project::Types::SCRATCH,
163+
name: 'Move With Purpose',
164+
user_id: nil
165+
},
166+
{
167+
identifier: 'my-anti-app',
168+
locale: 'en',
169+
project_type: Project::Types::SCRATCH,
170+
name: 'My Anti App',
171+
user_id: nil
172+
},
173+
{
174+
identifier: 'my-digital-canvas',
175+
locale: 'en',
176+
project_type: Project::Types::SCRATCH,
177+
name: 'My Digital Canvas',
178+
user_id: nil
179+
},
180+
{
181+
identifier: 'my-first-function',
182+
locale: 'en',
183+
project_type: Project::Types::SCRATCH,
184+
name: 'My First Function',
185+
user_id: nil
186+
},
187+
{
188+
identifier: 'my-simulation',
189+
locale: 'en',
190+
project_type: Project::Types::SCRATCH,
191+
name: 'My Simulation',
192+
user_id: nil
193+
},
194+
{
195+
identifier: 'mystery-story',
196+
locale: 'en',
197+
project_type: Project::Types::SCRATCH,
198+
name: 'Mystery Story',
199+
user_id: nil
200+
},
201+
{
202+
identifier: 'paper-airplane-simulation',
203+
locale: 'en',
204+
project_type: Project::Types::SCRATCH,
205+
name: 'Paper Airplane Simulation',
206+
user_id: nil
207+
},
208+
{
209+
identifier: 'pedestrian-button',
210+
locale: 'en',
211+
project_type: Project::Types::SCRATCH,
212+
name: 'Pedestrian Button',
213+
user_id: nil
214+
},
215+
{
216+
identifier: 'pollination-patrol',
217+
locale: 'en',
218+
project_type: Project::Types::SCRATCH,
219+
name: 'Pollination Patrol',
220+
user_id: nil
221+
},
222+
{
223+
identifier: 'programming-functions',
224+
locale: 'en',
225+
project_type: Project::Types::SCRATCH,
226+
name: 'Programming Functions',
227+
user_id: nil
228+
},
229+
{
230+
identifier: 'programming-progressions',
231+
locale: 'en',
232+
project_type: Project::Types::SCRATCH,
233+
name: 'Programming Progressions',
234+
user_id: nil
235+
},
236+
{
237+
identifier: 'sensing-motion',
238+
locale: 'en',
239+
project_type: Project::Types::SCRATCH,
240+
name: 'Sensing Motion',
241+
user_id: nil
242+
},
243+
{
244+
identifier: 'sequence-a-melody',
245+
locale: 'en',
246+
project_type: Project::Types::SCRATCH,
247+
name: 'Sequence A Melody',
248+
user_id: nil
249+
},
250+
{
251+
identifier: 'sequencing-programs',
252+
locale: 'en',
253+
project_type: Project::Types::SCRATCH,
254+
name: 'Sequencing Programs',
255+
user_id: nil
256+
},
257+
{
258+
identifier: 'taking-a-tour',
259+
locale: 'en',
260+
project_type: Project::Types::SCRATCH,
261+
name: 'Taking A Tour',
262+
user_id: nil
263+
},
264+
{
265+
identifier: 'ten-block-mission',
266+
locale: 'en',
267+
project_type: Project::Types::SCRATCH,
268+
name: 'Ten Block Mission',
269+
user_id: nil
270+
},
271+
{
272+
identifier: 'the-me-project',
273+
locale: 'en',
274+
project_type: Project::Types::SCRATCH,
275+
name: 'The Me Project',
276+
user_id: nil
277+
},
278+
{
279+
identifier: 'the-vanishing-garden',
280+
locale: 'en',
281+
project_type: Project::Types::SCRATCH,
282+
name: 'The Vanishing Garden',
283+
user_id: nil
284+
},
285+
{
286+
identifier: 'time-travelers',
287+
locale: 'en',
288+
project_type: Project::Types::SCRATCH,
289+
name: 'Time Travelers',
290+
user_id: nil
291+
},
292+
{
293+
identifier: 'traffic-light-timer',
294+
locale: 'en',
295+
project_type: Project::Types::SCRATCH,
296+
name: 'Traffic Light Timer',
297+
user_id: nil
298+
},
299+
{
300+
identifier: 'transforming-sprites',
301+
locale: 'en',
302+
project_type: Project::Types::SCRATCH,
303+
name: 'Transforming Sprites',
304+
user_id: nil
305+
},
306+
{
307+
identifier: 'weather-data',
308+
locale: 'en',
309+
project_type: Project::Types::SCRATCH,
310+
name: 'Weather Data',
311+
user_id: nil
312+
},
313+
{
314+
identifier: 'word-art',
315+
locale: 'en',
316+
project_type: Project::Types::SCRATCH,
317+
name: 'Word Art',
318+
user_id: nil
319+
}
320+
]
55321
projects.each do |attributes|
56322
identifier = attributes[:identifier]
57323
project = Project.find_by(attributes.slice(:identifier, :locale, :project_type))

0 commit comments

Comments
 (0)