Skip to content

Commit

Permalink
remove unused salesforce streaming code
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Jan 23, 2024
1 parent 790a898 commit a6431fb
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 365 deletions.
2 changes: 0 additions & 2 deletions app/models/push_topic.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/models/salesforce_streaming_replay.rb

This file was deleted.

99 changes: 0 additions & 99 deletions app/services/contact_parser.rb

This file was deleted.

57 changes: 0 additions & 57 deletions app/services/lead_parser.rb

This file was deleted.

45 changes: 0 additions & 45 deletions app/services/salesforce_contact_replay_handler.rb

This file was deleted.

101 changes: 0 additions & 101 deletions app/services/salesforce_subscriber.rb

This file was deleted.

10 changes: 10 additions & 0 deletions db/migrate/20240123173834_drop_streaming_tables.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class DropStreamingTables < ActiveRecord::Migration[5.2]
def up
drop_table :salesforce_streaming_replays
drop_table :push_topics
end

def down
raise ActiveRecord::IrreversibleMigration
end
end
16 changes: 1 addition & 15 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2023_10_04_175741) do
ActiveRecord::Schema.define(version: 2024_01_23_173834) do

# These are extensions that must be enabled in order to support this database
enable_extension "citext"
Expand Down Expand Up @@ -348,19 +348,6 @@
t.index ["contact_info_kind"], name: "index_pre_auth_states_on_contact_info_kind"
end

create_table "push_topics", force: :cascade do |t|
t.string "topic_salesforce_id"
t.string "topic_name"
end

create_table "salesforce_streaming_replays", force: :cascade do |t|
t.bigint "push_topics_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "replay_id"
t.index ["push_topics_id"], name: "index_salesforce_streaming_replays_on_push_topics_id"
end

create_table "schools", force: :cascade do |t|
t.string "salesforce_id", null: false
t.string "name", null: false
Expand Down Expand Up @@ -502,7 +489,6 @@
add_foreign_key "external_ids", "users"
add_foreign_key "oauth_access_grants", "oauth_applications", column: "application_id"
add_foreign_key "oauth_access_tokens", "oauth_applications", column: "application_id"
add_foreign_key "salesforce_streaming_replays", "push_topics", column: "push_topics_id"
add_foreign_key "users", "oauth_applications", column: "source_application_id"
add_foreign_key "users", "schools"
end
14 changes: 0 additions & 14 deletions lib/tasks/streaming.rake

This file was deleted.

6 changes: 0 additions & 6 deletions spec/factories/push_topic.rb

This file was deleted.

5 changes: 0 additions & 5 deletions spec/factories/salesforce_streaming_replays.rb

This file was deleted.

10 changes: 0 additions & 10 deletions spec/models/push_topic.rb

This file was deleted.

Loading

0 comments on commit a6431fb

Please sign in to comment.