gdpr_admin 1.6.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb44596fd7f9b9e3b3296e45d1c3737980a0f6c2d8b910a7d04e72426008ccc6
|
4
|
+
data.tar.gz: c188e1f3129d26d20f194e3081ea2fd4676262250ca791ab702cf3d6f0514240
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44e6d8532f3cde2e673c5395982d7a9f7d8bcc5cc99337e2a595cf095a95c9102316a6c0489318f86d05abd8c72dff73136c91e6ed3c94a9316ae461c5d1e77b
|
7
|
+
data.tar.gz: f91dae933610884e3686ab04cc66d31645447a6f16e3960149f3791f081c448b3b42503abbb1e593995c5c66c2a8df36c2606eb723974e3d2abbdeeb2fc6cd88
|
@@ -6,10 +6,11 @@ module GdprAdmin
|
|
6
6
|
belongs_to :requester, polymorphic: true, optional: true
|
7
7
|
|
8
8
|
VALID_STATUS_TRANSITIONS = {
|
9
|
-
pending: %i[processing],
|
9
|
+
pending: %i[processing canceled],
|
10
10
|
processing: %i[completed failed],
|
11
11
|
completed: [],
|
12
12
|
failed: %i[pending],
|
13
|
+
canceled: %i[],
|
13
14
|
}.freeze
|
14
15
|
|
15
16
|
enum status: {
|
@@ -17,6 +18,7 @@ module GdprAdmin
|
|
17
18
|
processing: 'processing',
|
18
19
|
completed: 'completed',
|
19
20
|
failed: 'failed',
|
21
|
+
canceled: 'canceled',
|
20
22
|
}
|
21
23
|
|
22
24
|
enum request_type: {
|
@@ -33,6 +35,10 @@ module GdprAdmin
|
|
33
35
|
validates :subject, absence: true, unless: :subject_request?
|
34
36
|
validate :valid_status_transition?
|
35
37
|
|
38
|
+
def cancel!
|
39
|
+
canceled!
|
40
|
+
end
|
41
|
+
|
36
42
|
def process!
|
37
43
|
GdprAdmin.load_data_policies
|
38
44
|
reload.with_lock { processing! }
|
data/lib/gdpr_admin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gdpr_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colex
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|