Skip to content

Commit

Permalink
To revert before merging: Changes for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
scruti committed Mar 13, 2024
1 parent 8553601 commit 196fbef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/jobs/import_from_vacancy_source_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ class ImportFromVacancySourceJob < ApplicationJob
queue_as :low

def perform(source_klass)
return if DisableExpensiveJobs.enabled?
# UNCOMMENT BEFORE MERGING
# return if DisableExpensiveJobs.enabled?

@source_klass = source_klass
@source_name = source_klass.source_name
Expand Down
4 changes: 2 additions & 2 deletions app/vacancy_sources/vacancy_source/source/itrent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def results
end

def feed
response = HTTParty.get(FEED_URL, headers: FEED_HEADERS, basic_auth: AUTH)
response = HTTParty.get(FEED_URL, headers: FEED_HEADERS, basic_auth: AUTH, verify: false)
raise HTTParty::ResponseError, ERROR_MESSAGE unless response.success?

parsed_response = JSON.parse(response.body)
Expand All @@ -186,7 +186,7 @@ def feed

def user_defined_fields(vacancy_ref)
headers = UDF_HEADERS.merge("iTrent-Object-Ref" => vacancy_ref)
response = HTTParty.get(UDF_URL, headers:, basic_auth: AUTH)
response = HTTParty.get(UDF_URL, headers:, basic_auth: AUTH, verify: false)
raise HTTParty::ResponseError, ERROR_MESSAGE unless response.success?

JSON.parse(response.body)&.dig("itrent", "udfs")&.first
Expand Down

0 comments on commit 196fbef

Please sign in to comment.