ps-add-request-payload-hashes-table Add request_payload_hashes table

When we migrate data from .org to .com it's hard to ensure that we don't
loose any requests and that we don't have duplicates without checking if
a GitHub requests has been already processed. It seems that the only way
to say if the request has been already processed is to check whether
there was already a request with the same payload.

In order to keep payload hashes I decided to create a new table. This is
because we will be using it only during the time of transition between
.org and .com, so it will be much easier to delete it afterwards rather
than remove a field.

Piotr Sarnacki avatar Piotr Sarnacki

Push event #1043.1 passed

  • Ran for
AMD64
no language set
Git
language: ruby
sudo: false

services:
  - postgresql

addons:
  postgresql: "9.6"

cache:
  directories:
    - vendor/bundle

rvm: "2.5.1"

env:
  - RAILS_ENV=test

script:
  - bundle exec rspec spec
  - script/validate_structure_file.rb db/main/structure-original.sql

before_script:
  - cp db/main/structure.sql db/main/structure-original.sql
  - cp config/database.yml.travis config/database.yml

after_success:
  - script/upload_structure.rb
Build Config
{
  "os": [
    "linux"
  ],
  "env": {
    "matrix": [
      "RAILS_ENV=test"
    ]
  },
  "rvm": [
    "2.5.1"
  ],
  "dist": "trusty",
  "sudo": false,
  "cache": {
    "directories": [
      "vendor/bundle"
    ]
  },
  "addons": {
    "postgresql": "9.6"
  },
  "script": [
    "bundle exec rspec spec",
    "script/validate_structure_file.rb db/main/structure-original.sql"
  ],
  "language": "ruby",
  "services": [
    "postgresql"
  ],
  "after_success": [
    "script/upload_structure.rb"
  ],
  "before_script": [
    "cp db/main/structure.sql db/main/structure-original.sql",
    "cp config/database.yml.travis config/database.yml"
  ]
}