Skip to content

Commit e62ee29

Browse files
committed
merge conflicts
2 parents 0874716 + 3c95d2a commit e62ee29

File tree

7 files changed

+48
-116
lines changed

7 files changed

+48
-116
lines changed

Gemfile.lock

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ GEM
280280
rack (~> 1.2)
281281
oily_png (1.2.0)
282282
chunky_png (~> 1.3.1)
283-
oj (2.12.11)
284283
omniauth (1.2.2)
285284
hashie (>= 1.2, < 4)
286285
rack (~> 1.0)
@@ -413,11 +412,11 @@ GEM
413412
rdoc (~> 4.0, < 5.0)
414413
seamless_database_pool (1.0.14)
415414
activerecord (>= 3.0.20)
416-
selenium-webdriver (2.47.1)
417-
childprocess (~> 0.5)
415+
selenium-webdriver (2.41.0)
416+
childprocess (>= 0.5.0)
418417
multi_json (~> 1.0)
419418
rubyzip (~> 1.0)
420-
websocket (~> 1.0)
419+
websocket (~> 1.0.4)
421420
sequel (4.10.0)
422421
sexp_processor (4.6.0)
423422
shotgun (0.9)

dashboard/app/models/workshop.rb

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def phase_long_name
6969
phase_info[:long_name]
7070
end
7171

72-
<<<<<<< HEAD
7372
def self.send_automated_emails
7473
[Workshop.workshops_in_2_weeks, Workshop.workshops_in_3_days, Workshop.workshops_ending_today].each do |workshop_list|
7574
workshop_list.each do |workshop|
@@ -78,17 +77,23 @@ def self.send_automated_emails
7877
facilitators = Workshop.find(workshop[:id]).facilitators
7978
[teachers, drop_ins, facilitators].each do |recipient_list|
8079
recipient_list.each do |recipient|
81-
if workshop.segments.first.start.to_date == Date.today
82-
logger.debug("Sending exit survey info to #{recipient.email}")
83-
OpsMailer.exit_survey_information(workshop, recipient).deliver_now
80+
if EmailValidator::email_address?(recipient.email)
81+
if workshop.segments.first.start.to_date == Date.today
82+
logger.debug("Sending exit survey info to #{recipient.email}")
83+
OpsMailer.exit_survey_information(workshop, recipient).deliver_now
84+
else
85+
logger.debug("Sending email reminder to #{recipient.email}")
86+
OpsMailer.workshop_reminder(workshop, recipient).deliver_now
87+
end
8488
else
85-
logger.debug("Sending email reminder to #{recipient.email}")
86-
OpsMailer.workshop_reminder(workshop, recipient).deliver_now
89+
logger.debug("Cannot send email to #{recipient.email} because it is not a valid email address")
8790
end
8891
end
8992
end
9093
end
91-
=======
94+
end
95+
end
96+
9297
def prerequisite_phase
9398
return nil unless phase_info
9499
ActivityConstants::PHASES[phase_info[:prerequisite_phase]]
@@ -103,7 +108,6 @@ def send_reminders
103108
next unless EmailValidator::email_address?(recipient.email)
104109
logger.debug("Sending email reminder to #{recipient.email}")
105110
OpsMailer.workshop_reminder(self, recipient).deliver_now
106-
>>>>>>> 579475b7d60f9ac88208dddc731de8f007c5f3cb
107111
end
108112
end
109113

dashboard/config/locales/dsls.en.yml

Lines changed: 32 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -617,17 +617,6 @@ en:
617617
Unplugged intro: Unplugged intro
618618
PDK5 Why K5 CS:
619619
Why teach computer science in elementary school?: Why teach computer science in elementary school?
620-
<<<<<<< HEAD
621-
Pixelation - Hadi Emoji:
622-
Pixelation - Hadi Emoji: Pixelation - Hadi Emoji
623-
description here: description here
624-
Pixelation - Lesson 14 - Fix bit offset: {}
625-
Pixelation - Lesson 14 - Fix bit offset v.2:
626-
Pixelation - Lesson 14 - Fix bit offset v.2: Pixelation - Lesson 14 - Fix bit offset v.2
627-
Pixelation - Lesson 14 - Fix the error:
628-
Pixelation - Lesson 14 - Fix bit offset v.2: Pixelation - Lesson 14 - Fix bit offset v.2
629-
=======
630-
>>>>>>> 579475b7d60f9ac88208dddc731de8f007c5f3cb
631620
Pixelation - Lesson 14 - Instructions Make Your Own:
632621
Make your own B&W image: Make your own B&W image
633622
description here: description here
@@ -660,44 +649,6 @@ en:
660649
Pixelation - Video - Tips and Tricks:
661650
Pixelation - Video - Tips and Tricks: Pixelation - Video - Tips and Tricks
662651
description here: description here
663-
<<<<<<< HEAD
664-
Pixelation 1:
665-
Create images with bits and bytes.: Create images with bits and bytes.
666-
Pixelation 1: Pixelation 1
667-
Pixelation 2:
668-
Create images with bits and bytes.: Create images with bits and bytes.
669-
Pixelation 2: Pixelation 2
670-
Pixelation 3:
671-
Create images with bits and bytes.: Create images with bits and bytes.
672-
Pixelation 3: Pixelation 3
673-
Pixelation 3 Bit Colors:
674-
description here: description here
675-
title: title
676-
Pixelation 4:
677-
Create images with bits and bytes.: Create images with bits and bytes.
678-
Pixelation 4 - Baker test of External level -- NOT REAL: Pixelation 4 - Baker test of External level -- NOT REAL
679-
Pixelation 4x4 Empty:
680-
Create images with bits and bytes.: Create images with bits and bytes.
681-
Pixelation 4x4 Empty: Pixelation 4x4 Empty
682-
Pixelation Bee:
683-
description here: description here
684-
title: title
685-
Pixelation Flappy:
686-
description here: description here
687-
title: title
688-
Test External Markdown: {}
689-
Test discourse forum-comment level:
690-
Degree of Difficulty: Degree of Difficulty
691-
Was programming as hard as you expected? Explain why or why not. How does this impact your teaching of computer science?: Was programming as hard as you expected? Explain why or why not. How does this impact your teaching of computer science?
692-
Text Compression 1:
693-
Compress text by identifying repeated patterns.: Compress text by identifying repeated patterns.
694-
Text Compression 1: Text Compression 1
695-
Text Compression Peter Piper:
696-
Compress text by identifying repeated patterns.: Compress text by identifying repeated patterns.
697-
Text Compression Peter Piper: Text Compression Peter Piper
698-
U1L1 Innovation - Video: {}
699-
U1L1 Student Lesson Introduction: {}
700-
=======
701652
TLO intro:
702653
Introduction to the TLO: Introduction to the TLO
703654
TLO practical:
@@ -713,7 +664,6 @@ en:
713664
U1L1 Student Lesson Introduction:
714665
Impact of Innovation: Impact of Innovation
715666
description here: description here
716-
>>>>>>> 579475b7d60f9ac88208dddc731de8f007c5f3cb
717667
U1L10 Student Lesson Introduction:
718668
description here: description here
719669
title: title
@@ -723,20 +673,15 @@ en:
723673
U1L12 Student Lesson Introduction:
724674
description here: description here
725675
title: title
726-
<<<<<<< HEAD
727-
U1L13 Student Lesson Summary: {}
728-
U1L13 Text Compression:
729-
Compress text by identifying repeated patterns.: Compress text by identifying repeated patterns.
730-
U1L13 Text Compression: U1L13 Text Compression
731-
=======
732676
U1L13 Student Lesson Summary:
733677
description here: description here
734678
title: title
735-
>>>>>>> 579475b7d60f9ac88208dddc731de8f007c5f3cb
736679
U1L14 Student Lesson Summary:
737680
description here: description here
738681
title: title
739-
U1L15 Student Lesson Summary: {}
682+
U1L15 Student Lesson Summary:
683+
description here: description here
684+
title: title
740685
U1L16 Student Lesson Introduction:
741686
Lossy Compression and File Formats: Lossy Compression and File Formats
742687
description here: description here
@@ -755,8 +700,12 @@ en:
755700
U1L4 Widget Demo - Video:
756701
Widget Demonstration - Video: Widget Demonstration - Video
757702
description here: description here
758-
U1L5 How the Internet Works - Video: {}
759-
U1L5 Student Lesson Introduction: {}
703+
U1L5 How the Internet Works - Video:
704+
How the Internet Works - Video: How the Internet Works - Video
705+
description here: description here
706+
U1L5 Student Lesson Introduction:
707+
description here: description here
708+
title: title
760709
U1L6 Student Lesson Introduction:
761710
description here: description here
762711
title: title
@@ -766,9 +715,6 @@ en:
766715
U1L8 Student Lesson Introduction:
767716
Sending Numbers: Sending Numbers
768717
description here: description here
769-
<<<<<<< HEAD
770-
U1L9 Student Lesson Introduction: {}
771-
=======
772718
U1L9 Student Lesson Introduction:
773719
description here: description here
774720
title: title
@@ -781,7 +727,6 @@ en:
781727
'U2 The Internet: Cybersecurity and Crime - Video':
782728
'The Internet: Cybersecurity and Crime - Video': 'The Internet: Cybersecurity and Crime - Video'
783729
description here: description here
784-
>>>>>>> 579475b7d60f9ac88208dddc731de8f007c5f3cb
785730
U2L1 Student Lesson Introduction:
786731
description here: description here
787732
title: title
@@ -946,10 +891,12 @@ en:
946891
U3L24 Return Statements Lecture: {}
947892
U3L24 Student Lesson Introduction:
948893
Chained Conditionals: Chained Conditionals
949-
U3L25 Student Lesson Introduction: {}
894+
U3L25 Student Lesson Introduction:
895+
Compound Conditionals: Compound Conditionals
950896
U3L26 Student Lesson Introduction:
951897
Strings and Substrings: Strings and Substrings
952-
U3L27 Student Lesson Introduction: {}
898+
U3L27 Student Lesson Introduction:
899+
Digital Assistant Challenge: Digital Assistant Challenge
953900
U3L28 Student Lesson Introduction:
954901
While Loop Basics: While Loop Basics
955902
U3L29 Student Lesson Introduction:
@@ -964,9 +911,6 @@ en:
964911
'Arrays and Loops: Altering Images': 'Arrays and Loops: Altering Images'
965912
U3L34 Student Lesson Introduction:
966913
'Arrays and Loops: Hidden Images': 'Arrays and Loops: Hidden Images'
967-
<<<<<<< HEAD
968-
a bit about pixels: {}
969-
=======
970914
U4 Inspirational Data Video: {}
971915
U4L01 Student Lesson Introduction:
972916
description here: description here
@@ -1044,7 +988,6 @@ en:
1044988
a bit about pixels:
1045989
kevin systrom pixel video: kevin systrom pixel video
1046990
pixel video: pixel video
1047-
>>>>>>> 579475b7d60f9ac88208dddc731de8f007c5f3cb
1048991
broadcast lesson plan: {}
1049992
challenges sample:
1050993
Give these a try: Give these a try
@@ -4114,7 +4057,13 @@ en:
41144057
Convert Blocks to Math: Convert Blocks to Math
41154058
Type out the arithmetic expression that matches this code: Type out the arithmetic expression that matches this code
41164059
Type the arithmetic expression here: Type the arithmetic expression here
4117-
Blocks to Math 1: {}
4060+
Blocks to Math 1:
4061+
(4+5): (4+5)
4062+
4 + 5: 4 + 5
4063+
Blocks to Math 1.blocks.start_blocks, 200: Blocks to Math 1.blocks.start_blocks, 200
4064+
Convert Blocks to Math: Convert Blocks to Math
4065+
Type out the arithmetic expression that matches this code: Type out the arithmetic expression that matches this code
4066+
Type the arithmetic expression here: Type the arithmetic expression here
41184067
Blocks to Math 2:
41194068
(7 * 6): (7 * 6)
41204069
7 * 6: 7 * 6
@@ -4329,7 +4278,10 @@ en:
43294278
U1L12 Reflection Free Response:
43304279
'Reflection: Data Storage': 'Reflection: Data Storage'
43314280
Respond to this prompt or to another as directed by your teacher.: Respond to this prompt or to another as directed by your teacher.
4332-
U1L13 - Assess Text Compression reverse process: {}
4281+
U1L13 - Assess Text Compression reverse process:
4282+
Act as the computer!: Act as the computer!
4283+
the big bug bit the bull but the bull bit the big bug back: the big bug bit the bull but the bull bit the big bug back
4284+
the_big_bug_bit_the_bull_but_the_bull_bit_the_big_bug_back: the_big_bug_bit_the_bull_but_the_bull_bit_the_big_bug_back
43334285
U1L13 Assess Text Compression amount:
43344286
Is this a good compression rate?: Is this a good compression rate?
43354287
U1L13 Assessment 1:
@@ -4669,10 +4621,14 @@ en:
46694621
'String and Substring: Getting Started': 'String and Substring: Getting Started'
46704622
U3L26 Free Response Wrap Up:
46714623
'String and Substring: Assessment 1': 'String and Substring: Assessment 1'
4672-
U3L27 Assessment1: {}
4673-
U3L27 Assessment2: {}
4674-
U3L27 Assessment3: {}
4675-
U3L27 Free Response Getting Started: {}
4624+
U3L27 Assessment1:
4625+
Digital Assistant Reflection 1: Digital Assistant Reflection 1
4626+
U3L27 Assessment2:
4627+
Digital Assistant Reflection 2: Digital Assistant Reflection 2
4628+
U3L27 Assessment3:
4629+
'Digital Assistant Reflection 3 ': 'Digital Assistant Reflection 3 '
4630+
U3L27 Free Response Getting Started:
4631+
'Digital Assistant: Getting Started': 'Digital Assistant: Getting Started'
46764632
U3L28 Free Response Getting Started:
46774633
'While Loops Basics: Getting Started': 'While Loops Basics: Getting Started'
46784634
U3L28 Free Response Wrap Up:

dashboard/db/schema.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -526,20 +526,12 @@
526526

527527
create_table "workshops", force: :cascade do |t|
528528
t.string "name", limit: 255
529-
<<<<<<< HEAD
530-
t.string "program_type", limit: 255, null: false
531-
=======
532529
t.string "program_type", limit: 255, null: false
533-
>>>>>>> 579475b7d60f9ac88208dddc731de8f007c5f3cb
534530
t.string "location", limit: 255
535531
t.string "instructions", limit: 255
536532
t.datetime "created_at"
537533
t.datetime "updated_at"
538-
<<<<<<< HEAD
539-
t.text "phase", limit: 65535
540-
=======
541534
t.integer "phase", limit: 4
542-
>>>>>>> 579475b7d60f9ac88208dddc731de8f007c5f3cb
543535
end
544536

545537
add_index "workshops", ["name"], name: "index_workshops_on_name", using: :btree

dashboard/test/controllers/activities_controller_test.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
class ActivitiesControllerTest < ActionController::TestCase
66
include Devise::TestHelpers
77
include LevelsHelper
8-
<<<<<<< HEAD
9-
=======
108
include UsersHelper
11-
>>>>>>> 579475b7d60f9ac88208dddc731de8f007c5f3cb
129
include Mocha::API
1310

1411
setup do
@@ -165,15 +162,9 @@ def expect_controller_logs_milestone_regexp(regexp)
165162
log_string !~ regexp
166163
end
167164
end
168-
<<<<<<< HEAD
169165

170-
test "logged in milestone does not allow negative lines of code" do
171-
172-
=======
173166

174167
test "logged in milestone does not allow negative lines of code" do
175-
176-
>>>>>>> 579475b7d60f9ac88208dddc731de8f007c5f3cb
177168
expect_controller_logs_milestone_regexp(/-20/)
178169
@controller.expects :slog
179170

@@ -227,7 +218,6 @@ def expect_controller_logs_milestone_regexp(regexp)
227218
assert_equal 1000, Activity.last.lines
228219
end
229220

230-
<<<<<<< HEAD
231221
test "anonymous milestone does not allow unreasonably high lines of code" do
232222
sign_out(@user)
233223

@@ -257,8 +247,6 @@ def expect_controller_logs_milestone_regexp(regexp)
257247
assert_equal_expected_keys expected_response, JSON.parse(@response.body)
258248
end
259249

260-
=======
261-
>>>>>>> 579475b7d60f9ac88208dddc731de8f007c5f3cb
262250
test "logged in milestone with messed up email" do
263251
# use update_attribute to bypass validations
264252
@user.update_attribute(:email, '')

deployment.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,7 @@ def load_configuration()
7878
'ruby_installer' => rack_env == :development ? 'rbenv' : 'system',
7979
'root_dir' => root_dir,
8080
'use_dynamo_tables' => [:staging, :adhoc, :test, :production].include?(rack_env),
81-
<<<<<<< HEAD
82-
'use_dynamo_properties' => [:staging, :adhoc, :test, :production].include?(rack_env),
83-
=======
8481
#'use_dynamo_properties' => [:staging, :adhoc, :test, :production].include?(rack_env),
85-
>>>>>>> 579475b7d60f9ac88208dddc731de8f007c5f3cb
8682
'dynamo_tables_table' => "#{rack_env}_tables",
8783
'dynamo_tables_index' => "channel_id-table_name-index",
8884
'use_dynamo_properties' => false,

shared/test/test_properties.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@
77
ENV['RACK_ENV'] = 'test'
88

99
class PropertiesTest < Minitest::Test
10-
<<<<<<< HEAD
11-
1210
def test_get_set_delete
1311
# The Properties API does not need to share a cookie jar with the Channels API.
1412
@channels = Rack::Test::Session.new(Rack::MockSession.new(ChannelsApi, "studio.code.org"))
1513
@properties = Rack::Test::Session.new(Rack::MockSession.new(PropertiesApi, "studio.code.org"))
14+
end
1615

17-
=======
1816
def setup
1917
init_apis
20-
>>>>>>> 579475b7d60f9ac88208dddc731de8f007c5f3cb
2118
create_channel
2219
end
2320

0 commit comments

Comments
 (0)