phobos_db_checkpoint 2.1.0 → 2.2.0
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/lib/phobos_db_checkpoint/events_api.rb +10 -0
- data/lib/phobos_db_checkpoint/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13a63376197697c40c39c9bdf591800eb664e94a
|
4
|
+
data.tar.gz: 6eb6a3c254683519a39a0170ae17f640109c97fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e19cdd1f43137d43ca368bbcdeb5fe3681d9ab77fc0a17e679e0472e7c042ed1e29fbdccf2c9f5694d70922987c04ecaddad77135caa37ae421e06040b5ebebe
|
7
|
+
data.tar.gz: e0db0427dec26307dde803eb362c13a47088e706947b9ec4ac20e95d867939482cd17ad2e0ac87951a2e4082887ec2153dc5bde694bc99df27337efc61844852
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
|
+
## 2.2.0 (2017-03-08)
|
8
|
+
|
9
|
+
- [enhancement] Add delete failure end point
|
10
|
+
|
7
11
|
## 2.1.0 (2017-03-07)
|
8
12
|
|
9
13
|
- [enhancement] When retrying failures, an event is created if they return an ack
|
data/README.md
CHANGED
@@ -210,6 +210,7 @@ The available routes are:
|
|
210
210
|
* `event_type`
|
211
211
|
* POST `/v1/events/:id/retry`
|
212
212
|
* GET `/v1/failures/:id`
|
213
|
+
* DELETE `/v1/failures/:id`
|
213
214
|
* GET `/v1/failures` This route accepts the following params:
|
214
215
|
* `limit`, default: 20
|
215
216
|
* `offset`, default: 0
|
@@ -107,6 +107,16 @@ module PhobosDBCheckpoint
|
|
107
107
|
.to_json
|
108
108
|
end
|
109
109
|
|
110
|
+
delete "/#{VERSION}/failures/:id" do
|
111
|
+
content_type :json
|
112
|
+
|
113
|
+
PhobosDBCheckpoint::Failure
|
114
|
+
.find(params['id'])
|
115
|
+
.destroy
|
116
|
+
|
117
|
+
{ acknowledged: true }.to_json
|
118
|
+
end
|
119
|
+
|
110
120
|
post "/#{VERSION}/failures/:id/retry" do
|
111
121
|
content_type :json
|
112
122
|
failure = PhobosDBCheckpoint::Failure.find(params['id'])
|