wolf_core 0.1.59 → 0.1.61

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5121b62a6d6a0f7b134e4d59072fc092ee22ed776da8e3474fa1b98097dbebd
4
- data.tar.gz: df3e78fc1f1ac94b98aece3032c9ab4cdc029d38d58b67c9feddefa6d60e2dc5
3
+ metadata.gz: d0f219857bc809d80f343b7bcc8b28f14977ed19208b477f0e0190a07718a923
4
+ data.tar.gz: 3d7f33b5c876cdf419cab8c1c0adbc659ccaa5f9721a07ef3fdfd36827b9e585
5
5
  SHA512:
6
- metadata.gz: 9e1a5d83b10d51bb702f2bd7fb23cc3fe68bc179c0f0116768daf40f5929e02e3ab2b208232784489779c22d71cb2715bf5e6aea5f77a7fd4a6b0b5462cb4c04
7
- data.tar.gz: ef9a05201a6e0a15b829638d61ebbd61a01b717e5434235a480bc65a8858928ca75d44434fedc743ba8530edccc2c87029ba5f42fef0cfaf098decff302777b7
6
+ metadata.gz: 34f155fde0542f35bca733a90e59aeefc34d2489cb334a65487a35888892dfced177393869825f8c57fc2ada636e0ed00bdf3944f4be1ee81e4702329bdda227
7
+ data.tar.gz: 81cc3016466c2dada53416db13792da803018a300a138a06b36cb2fdc486be5a10e51cafe5f8c3ad6dcf73329bd3c683f3d9ce898424b624f19c85430f91e181
@@ -53,8 +53,7 @@ module WolfCore
53
53
  salesforce_access_token: salesforce_access_token,
54
54
  query: { calltype: 'getRecord', RecordId: record_id }
55
55
  )
56
- log_object "foreign object is"
57
- log_object foreign_object
56
+ log_object foreign_object, title: 'foreign object is'
58
57
  foreign_object
59
58
  end
60
59
 
@@ -3,6 +3,7 @@ module WolfCore
3
3
  module Routing
4
4
  include WolfCore::HttpOperations
5
5
  include WolfCore::LambdaFunctionOperations
6
+ include WolfCore::ExceptionOperations
6
7
 
7
8
  PATH_TO_FUNCTION_NAME_MAPPING = {
8
9
  'barton/import/jobseeker' => 'BartonImportJobseeker',
@@ -20,6 +21,8 @@ module WolfCore
20
21
  environment = ENV['ENVIRONMENT']
21
22
  if environment == 'production'
22
23
  function_name = PATH_TO_FUNCTION_NAME_MAPPING[path]
24
+ raise_service_error("Function name not found for path: #{path}") if function_name.blank?
25
+
23
26
  invoke_lambda(
24
27
  function_name: function_name,
25
28
  payload: body,
@@ -1,6 +1,7 @@
1
1
  module WolfCore
2
2
  module FkmOperations
3
3
  include WolfCore::HttpOperations
4
+ include WolfCore::ExceptionOperations
4
5
  include WolfCore::LoggingUtils
5
6
 
6
7
  def get_foreign_key_destination_id(tenant:, source:, source_id:, destination:)
@@ -30,6 +31,11 @@ module WolfCore
30
31
  end
31
32
 
32
33
  def create_foreign_key(tenant:, source:, source_id:, destination:, destination_id:)
34
+ raise_service_error('tenant is required to create a foreign key') if tenant.blank?
35
+ raise_service_error('source is required to create a foreign key') if source.blank?
36
+ raise_service_error('source_id is required to create a foreign key') if source_id.blank?
37
+ raise_service_error('destination is required to create a foreign key') if destination.blank?
38
+ raise_service_error('destination_id is required to create a foreign key') if destination_id.blank?
33
39
  response = http_post(
34
40
  url: "#{ENV['FKM_URL']}/Prod/create",
35
41
  body: {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.59"
4
+ VERSION = "0.1.61"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.59
4
+ version: 0.1.61
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-08 00:00:00.000000000 Z
11
+ date: 2024-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty