Skip to content

Commit fcccc1f

Browse files
committed
Continuing to verify
1 parent 6c6ea3d commit fcccc1f

File tree

1 file changed

+33
-10
lines changed

1 file changed

+33
-10
lines changed

Rakefile

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,19 @@ namespace :team do
2121
right = mongo.send(attr)
2222

2323
if left != right
24-
puts "#{attr} #{left} != #{right} (#{pg.id}|#{mongo.id})"
25-
26-
if fail_if_neq
27-
require 'pry'; binding.pry
28-
end
24+
puts "#{attr} | #{left} != #{right} | pg:#{pg.id} | mongo:#{mongo.id}"
2925
end
26+
rescue => ex
27+
puts '*'*80
28+
puts
29+
puts ex
30+
puts
31+
puts '-'*80
32+
puts
33+
ap ex.backtrace
34+
puts
35+
puts '*'*80
36+
require 'pry'; binding.pry
3037
end
3138

3239
task verify: :environment do
@@ -35,20 +42,36 @@ namespace :team do
3542
mongo_id = pg_team.mongo_id
3643
mongo_team = Team.find(mongo_id)
3744

38-
45+
# Team
3946
%i(updated_at median score total slug mean pending_join_requests).each do |attr|
4047
neq(attr, pg_team, mongo_team, false)
4148
end
4249

43-
4450
%i(about achievement_count analytics benefit_description_1 benefit_description_2 benefit_description_3 benefit_name_1 benefit_name_2 benefit_name_3 big_image big_quote blog_feed branding country_id created_at endorsement_count facebook featured_banner_image featured_links_title github github_organization_name headline hide_from_featured highlight_tags hiring_tagline interview_steps invited_emails link_to_careers_page location monthly_subscription name number_of_jobs_to_show office_photos organization_way organization_way_name organization_way_photo our_challenge paid_job_posts premium preview_code reason_description_1 reason_description_2 reason_description_3 reason_name_1 reason_name_2 reason_name_3 size stack_list twitter upcoming_events upgraded_at valid_jobs website why_work_image your_impact youtube_url).each do |attr|
4551
neq(attr, pg_team, mongo_team)
4652
end
47-
rescue => ex
4853

49-
ap ex
54+
# TODO: Account
55+
unless mongo_team.account.nil? || pg_team.account.nil?
56+
%i(stripe_card_token stripe_customer_token admin_id).each do |attr|
57+
neq(attr, pg_team.account, mongo_team.account)
58+
end
59+
end
60+
61+
# TODO: Plans
62+
63+
# TODO: Locations
64+
65+
# TODO: Links
66+
67+
# TODO: Members
68+
69+
# TODO: Jobs
70+
71+
# TODO: Followers
72+
73+
# TODO: Pending Requests
5074

51-
require 'pry'; binding.pry
5275
end
5376
end
5477
end

0 commit comments

Comments
 (0)