gitlab_support_readiness 1.0.28 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: '0132694da200650b9b8625d230027b145aabeb9695c02d246b68ac1a3e4e6de5'
         | 
| 4 | 
            +
              data.tar.gz: 77725a7d0bbab15e1cd742e12e8c35ab0dd43aa8df4bc8dff3598e68eba0868f
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: d9bc1371cafa0390616e3c447385056624dd4bd485c72e3aeb44d614d4e1cc2c13ee42d4f6045e0ffe92c21d719845de3b14b67a9924e69b7f0fcd854839405b
         | 
| 7 | 
            +
              data.tar.gz: 3f3fe60ccc559390e6fbd8c39d142cec4c50784e65d154a663c5444c798407958007260626de0e5bb46f4bd67d34d32251a657a657bd845a0ae125bf69f41602
         | 
| @@ -149,12 +149,12 @@ module Readiness | |
| 149 149 | 
             
                      puts '- Organization created'
         | 
| 150 150 | 
             
                      if create_global_contact?(create)
         | 
| 151 151 | 
             
                        print '- Setting up contact for org...'
         | 
| 152 | 
            -
                        contact = differences[:contacts].detect { |c| ['salesforce_id'] == org.organization_fields['salesforce_id'] }
         | 
| 152 | 
            +
                        contact = differences[:contacts].detect { |c| c['salesforce_id'] == org.organization_fields['salesforce_id'] }
         | 
| 153 153 | 
             
                        if contact.nil?
         | 
| 154 154 | 
             
                          Readiness::Slack::Messages.create!(slack_client, global_slack_message(create))
         | 
| 155 155 | 
             
                          puts 'error'
         | 
| 156 156 | 
             
                        else
         | 
| 157 | 
            -
                          search = Readiness::Zendesk::Search | 
| 157 | 
            +
                          search = Readiness::Zendesk::Search.users(zendesk_client, "email:#{contact['email']}")
         | 
| 158 158 | 
             
                          if search.count == 1
         | 
| 159 159 | 
             
                            if search.first.organization_id.nil?
         | 
| 160 160 | 
             
                              user = search.first
         | 
| @@ -178,7 +178,7 @@ module Readiness | |
| 178 178 | 
             
                          end
         | 
| 179 179 | 
             
                        end
         | 
| 180 180 | 
             
                      end
         | 
| 181 | 
            -
                      @organizations.push(global_zd_sync_object( | 
| 181 | 
            +
                      @organizations.push(global_zd_sync_object(create))
         | 
| 182 182 | 
             
                    end
         | 
| 183 183 | 
             
                    differences[:updates].each do |org|
         | 
| 184 184 | 
             
                      print "Updating #{org.name}..."
         | 
| @@ -1069,7 +1069,7 @@ module Readiness | |
| 1069 1069 | 
             
                    <<~STRING
         | 
| 1070 1070 | 
             
                      :double-exclaimation: Attention Support Readiness! :double-exclaimation:
         | 
| 1071 1071 |  | 
| 1072 | 
            -
                      An organization (<https://gitlab.zendesk.com/agent/organizations | 
| 1072 | 
            +
                      An organization (<https://gitlab.zendesk.com/agent/organizations/#{org.id}|#{org.id}>) was created for SFDC account #{org.organization_fields['salesforce_id']} (#{sfdc_links(org.organization_fields['salesforce_id'])}) but it had no corresponsing contacts.
         | 
| 1073 1073 |  | 
| 1074 1074 | 
             
                      Please investigate this manually. If you are able to locate a contact to use for the created organization, please add/associate them manually.
         | 
| 1075 1075 | 
             
                    STRING
         | 
| @@ -198,7 +198,7 @@ module Readiness | |
| 198 198 | 
             
                      }
         | 
| 199 199 | 
             
                    }
         | 
| 200 200 | 
             
                    response = client.connection.post 'guide/theming/jobs/themes/updates', object.to_json
         | 
| 201 | 
            -
                    handle_request_error(1, 'Zendesk', response.status, { action: 'Upload  | 
| 201 | 
            +
                    handle_request_error(1, 'Zendesk', response.status, { action: 'Upload theme', id: theme.id }) unless response.status == 200
         | 
| 202 202 | 
             
                    ThemeJobStatuses.new(Oj.load(response.body)['job'])
         | 
| 203 203 | 
             
                  end
         | 
| 204 204 |  | 
| @@ -259,11 +259,11 @@ module Readiness | |
| 259 259 | 
             
                  #   pp job.id
         | 
| 260 260 | 
             
                  #   # => "a66e7bde543c6b6d018f0e07a654feaf"
         | 
| 261 261 | 
             
                  def self.upload!(client, job, file)
         | 
| 262 | 
            -
                    object = job | 
| 262 | 
            +
                    object = job.data['upload']['parameters'].merge(
         | 
| 263 263 | 
             
                      file: ::Faraday::UploadIO.new(file, 'application/zip')
         | 
| 264 264 | 
             
                    )
         | 
| 265 | 
            -
                    response = client.upload_connection.post job | 
| 266 | 
            -
                    ThemeJobStatuses.find!(client, job | 
| 265 | 
            +
                    response = client.upload_connection.post job.data['upload']['url'], object
         | 
| 266 | 
            +
                    ThemeJobStatuses.find!(client, job.id)
         | 
| 267 267 | 
             
                  end
         | 
| 268 268 |  | 
| 269 269 | 
             
                  ##
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: gitlab_support_readiness
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.0. | 
| 4 | 
            +
              version: 1.0.30
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Jason Colyer
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2024-10- | 
| 11 | 
            +
            date: 2024-10-24 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: activesupport
         |