Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Move organization to sul-dlss #19

Merged
merged 1 commit into from Nov 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Expand Up @@ -18,7 +18,7 @@ jobs:
#### expecting it in the form of
#### /go/src/github.com/circleci/go-tool
#### /go/src/bitbucket.org/circleci/go-tool
working_directory: /go/src/github.com/sul-dlss-labs/rialto-trigger-rebuild
working_directory: /go/src/github.com/sul-dlss/rialto-trigger-rebuild
steps:
- checkout

Expand All @@ -32,7 +32,7 @@ jobs:
deploy:
docker:
- image: circleci/golang:latest
working_directory: /go/src/github.com/sul-dlss-labs/rialto-trigger-rebuild
working_directory: /go/src/github.com/sul-dlss/rialto-trigger-rebuild
steps:
- run:
name: Install AWS CLI
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
@@ -1,5 +1,5 @@
FROM golang:alpine as BASE
WORKDIR /go/src/github.com/sul-dlss-labs/rialto-trigger-rebuild
WORKDIR /go/src/github.com/sul-dlss/rialto-trigger-rebuild
COPY . .
RUN apk update && \
apk add --no-cache --virtual .build-deps git && \
Expand All @@ -9,5 +9,5 @@ RUN apk update && \
RUN CGO_ENABLED=0 GOOS=linux go build -o trigger-rebuild -ldflags "-s" -a -installsuffix cgo main.go

FROM scratch
COPY --from=BASE /go/src/github.com/sul-dlss-labs/rialto-trigger-rebuild/trigger-rebuild .
COPY --from=BASE /go/src/github.com/sul-dlss/rialto-trigger-rebuild/trigger-rebuild .
CMD ["./trigger-rebuild"]
17 changes: 6 additions & 11 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Expand Up @@ -30,7 +30,7 @@

[[constraint]]
branch = "master"
name = "github.com/sul-dlss-labs/rialto-derivatives"
name = "github.com/sul-dlss/rialto-derivatives"

[prune]
go-tests = true
Expand Down
2 changes: 1 addition & 1 deletion actions/rebuild.go
Expand Up @@ -2,7 +2,7 @@ package actions

import (
"github.com/knakk/sparql"
"github.com/sul-dlss-labs/rialto-trigger-rebuild/runtime"
"github.com/sul-dlss/rialto-trigger-rebuild/runtime"
)

// Action is an abstract type of work this can do.
Expand Down
4 changes: 2 additions & 2 deletions actions/rebuild_test.go
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/knakk/sparql"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/sul-dlss-labs/rialto-derivatives/models"
"github.com/sul-dlss-labs/rialto-trigger-rebuild/runtime"
"github.com/sul-dlss/rialto-derivatives/models"
"github.com/sul-dlss/rialto-trigger-rebuild/runtime"
)

// MockedWriter is a mocked object that implements the Writer interface
Expand Down
10 changes: 5 additions & 5 deletions main.go
Expand Up @@ -10,13 +10,13 @@ import (
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/sns"
"github.com/knakk/sparql"
"github.com/sul-dlss-labs/rialto-derivatives/derivative"
"github.com/sul-dlss/rialto-derivatives/derivative"

"github.com/sul-dlss-labs/rialto-trigger-rebuild/messages"
"github.com/sul-dlss-labs/rialto-trigger-rebuild/repository"
"github.com/sul-dlss/rialto-trigger-rebuild/messages"
"github.com/sul-dlss/rialto-trigger-rebuild/repository"

"github.com/sul-dlss-labs/rialto-trigger-rebuild/actions"
"github.com/sul-dlss-labs/rialto-trigger-rebuild/runtime"
"github.com/sul-dlss/rialto-trigger-rebuild/actions"
"github.com/sul-dlss/rialto-trigger-rebuild/runtime"

// Added for the postgres driver
_ "github.com/lib/pq"
Expand Down
4 changes: 2 additions & 2 deletions messages/service.go
Expand Up @@ -4,13 +4,13 @@ import (
"encoding/json"

"github.com/aws/aws-sdk-go/service/sns"
"github.com/sul-dlss-labs/rialto-derivatives/message"
"github.com/sul-dlss/rialto-derivatives/message"
)

// We're using this batch size, because if we put too many subjects there,
// we hit an AWS limit on the SNS message size (around 1000 is okay for this)
// We also have a problem where the derivatives lambda can't process all of these
// before timing out. So set it down to 50. See (https://github.com/sul-dlss-labs/rialto-trigger-rebuild/issues/14)
// before timing out. So set it down to 50. See (https://github.com/sul-dlss/rialto-trigger-rebuild/issues/14)
const batchSize = 50

// MessageService is an interface for sending messages to the derivative service
Expand Down
4 changes: 2 additions & 2 deletions repository/combined_writer.go
Expand Up @@ -3,8 +3,8 @@ package repository
import (
"errors"

"github.com/sul-dlss-labs/rialto-derivatives/derivative"
"github.com/sul-dlss-labs/rialto-derivatives/models"
"github.com/sul-dlss/rialto-derivatives/derivative"
"github.com/sul-dlss/rialto-derivatives/models"
)

// CombinedWriter writes both to PostgreSQL and Solr and fulfills the derivative.Writer interface
Expand Down
2 changes: 1 addition & 1 deletion repository/sparql_reader.go
Expand Up @@ -8,7 +8,7 @@ import (
)

// Number of records to pull per requst. If this is too large, then the SPARQL proxy
// lambda will hit a 6mb limit. See: https://github.com/sul-dlss-labs/sparql-loader/issues/44
// lambda will hit a 6mb limit. See: https://github.com/sul-dlss/sparql-loader/issues/44
const tripleLimit = 30000

type Reader interface {
Expand Down
6 changes: 3 additions & 3 deletions runtime/registry.go
@@ -1,9 +1,9 @@
package runtime

import (
"github.com/sul-dlss-labs/rialto-derivatives/derivative"
"github.com/sul-dlss-labs/rialto-trigger-rebuild/messages"
"github.com/sul-dlss-labs/rialto-trigger-rebuild/repository"
"github.com/sul-dlss/rialto-derivatives/derivative"
"github.com/sul-dlss/rialto-trigger-rebuild/messages"
"github.com/sul-dlss/rialto-trigger-rebuild/repository"
)

// Registry is the object that holds all the external services
Expand Down