Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/financial-times/publish-failure-resolver-go
Reimport and/or republish content and lists in UPP.
https://github.com/financial-times/publish-failure-resolver-go
universal-publishing
Last synced: about 1 month ago
JSON representation
Reimport and/or republish content and lists in UPP.
- Host: GitHub
- URL: https://github.com/financial-times/publish-failure-resolver-go
- Owner: Financial-Times
- License: mit
- Created: 2017-12-20T15:37:18.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-29T15:30:14.000Z (4 months ago)
- Last Synced: 2024-08-29T17:19:52.867Z (4 months ago)
- Topics: universal-publishing
- Language: Go
- Homepage:
- Size: 5.44 MB
- Stars: 0
- Watchers: 21
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# publish-failure-resolver-go
[![Circle CI](https://circleci.com/gh/Financial-Times/publish-failure-resolver-go/tree/master.png?style=shield)](https://circleci.com/gh/Financial-Times/publish-failure-resolver-go/tree/master)[![Go Report Card](https://goreportcard.com/badge/github.com/Financial-Times/publish-failure-resolver-go)](https://goreportcard.com/report/github.com/Financial-Times/publish-failure-resolver-go) [![Coverage Status](https://coveralls.io/repos/github/Financial-Times/publish-failure-resolver-go/badge.svg?branch=feature/UPPSF-1102-duplicate-uuids)](https://coveralls.io/github/Financial-Times/publish-failure-resolver-go?branch=master)
## Introduction
Reimport and/or republish content and lists in UPP.
Parallelism and rate limiting configurable.
## Installation
```
git clone https://github.com/Financial-Times/publish-failure-resolver-go.git
cd $GOPATH/src/github.com/Financial-Times/publish-failure-resolver-go
go build -mod=readonly .
```## Running locally
```
./publish-failure-resolver-go \
--sourceEnvHost="upp-staging-publish-eu.ft.com" \
--targetEnvHost="upp-staging-publish-eu.ft.com" \
--sourceAuth="username:password" \
--targetAuth="username:password" \
--republishScope="both" \
--transactionIdPrefix="test76" \
--rateLimitMs=200 \
--parallelism=4 \
--uuidList="ab36d158-f6cd-11e7-b6fb-5914dec7ca98 2316e87a-f084-11e7-892b-b579d79a9dbc 781a1047-3401-3df1-abf9-97b4a9e557d4 74d2df3c-f207-11e7-213f-3be68cc3546d aaaaaaaa-3d10-11e5-bbd1-bbbbbbbbbbbb 74d2df3c-f207-11e7-bf59-ac7c56b7ff24"
```The options _rateLimit_, _parallelism_ and _scope_ are optional, the remaining are mandatory.
## Running the tests
```shell
go test -mod=readonly -race ./...
```## Build and deployment
- Built by Docker Hub on merge to master: [coco/publish-failure-resolver-go](https://hub.docker.com/r/coco/publish-failure-resolver-go/)
- CI provided by CircleCI: [publish-failure-resolver-go](https://circleci.com/gh/Financial-Times/publish-failure-resolver-go)## Local docker build
```sh
docker build -t publish-failure-resolver-go:local .
```### Logging
* The application uses [logrus](https://github.com/sirupsen/logrus); the log file is initialised in [main.go](cmd/publish-failure-resolver-go/main.go).
## Notes
Rate limit applies only to notifier endpoints, so searching in native-store and in upp-store are not considered rate limited actions.
The respective [jenkins job can be found here](https://upp-jenkins-k8s-prod.upp.ft.com/job/publish-utils/job/OLD%20-%20For%20Developers%20-%20Republish%20Failed%20Content%20and%20Metadata/), or if searched for _Republish Failed Content and Metadata k8s go_