gdpr_admin 1.5.0 → 1.6.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: b8f6f1437e957b783de64f6a16847142b7eff9ebf14428b8c1d6d8db4011dcde
|
4
|
+
data.tar.gz: 4ea36ea2245d25a95883501dbe7727149bb1f971c4e5f1de27c00621f7526f69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 931d742f6e132f9aac3ebf5babf2cf3596b49827830cb90dc5c169f4b8fd570c45ce43a0be4b76c62bea487b2b0bbe1dc643d8486f7e9e58ff35610c4313b77b
|
7
|
+
data.tar.gz: 9f19d2ad664ea3dd95b73524ca914e4f1cd2bdcacfd83a305a2128443bee3036da70002f21bb9487614b4593c2350d0a815f36d70239a2005b34f6a1e27d83a1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module GdprAdmin
|
4
4
|
class Request < ApplicationRecord
|
5
5
|
belongs_to :tenant, class_name: GdprAdmin.config.tenant_class
|
6
|
-
belongs_to :requester,
|
6
|
+
belongs_to :requester, polymorphic: true, optional: true
|
7
7
|
|
8
8
|
VALID_STATUS_TRANSITIONS = {
|
9
9
|
pending: %i[processing],
|
@@ -4,7 +4,7 @@ class CreateGdprAdminRequests < ActiveRecord::Migration[7.0]
|
|
4
4
|
def change
|
5
5
|
create_table :gdpr_admin_requests do |t|
|
6
6
|
t.references :tenant, null: false, foreign_key: { to_table: :organizations }
|
7
|
-
t.references :requester, null: true,
|
7
|
+
t.references :requester, null: true, polymorphic: true
|
8
8
|
t.string :request_type, null: false
|
9
9
|
t.string :status, default: 'pending', null: false
|
10
10
|
t.datetime :data_older_than, null: false
|
@@ -2,13 +2,12 @@
|
|
2
2
|
|
3
3
|
module GdprAdmin
|
4
4
|
class Configuration
|
5
|
-
attr_accessor :tenant_class, :
|
5
|
+
attr_accessor :tenant_class, :data_policies_path, :default_job_queue,
|
6
6
|
:erasure_grace_period, :export_grace_period
|
7
7
|
attr_writer :tenant_adapter
|
8
8
|
|
9
9
|
def initialize
|
10
10
|
@tenant_class = 'Organization'
|
11
|
-
@requester_class = 'AdminUser'
|
12
11
|
@tenant_adapter = TenantAdapters::ActsAsTenantAdapter.new
|
13
12
|
@data_policies_path = Rails.root.join('app', 'gdpr')
|
14
13
|
@default_job_queue = :default
|
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.6.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-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|