openstax_accounts 9.0.2 → 9.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/openstax/accounts/account.rb +15 -3
- data/app/representers/openstax/accounts/api/v1/account_representer.rb +8 -4
- data/app/routines/openstax/accounts/sync_accounts.rb +0 -1
- data/db/migrate/16_add_is_kip_to_openstax_accounts_accounts.rb +5 -0
- data/lib/openstax/accounts/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e72c48eba4d6dc3bc31f1cb7ad25496a3d2f53e8ad52e5b349183e5bf996a9b7
|
4
|
+
data.tar.gz: 52623f98c2f678ead905489f7deddfc8dfd20f47fb030a04e906caaee56e04e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32f5094752249a7514a5cbaaf496e329c250fa7af61e369476aef43277bc7e00216877d3e2331b01abbda6580f8e767a72bbdf2ddec2d612a8ebf2bfc0d2d855
|
7
|
+
data.tar.gz: 8c264b7bd7259c7a88a3e746ed4cfd68bb56a605e1a1d6c5a514fa64e34986fa50f8941ad11370227b6b23bc84e0511bcf3d8bcf9f284fecb90f9affe1ad24db
|
@@ -14,12 +14,18 @@ module OpenStax::Accounts
|
|
14
14
|
:school_type,
|
15
15
|
:salesforce_contact_id,
|
16
16
|
:support_identifier,
|
17
|
-
:is_test
|
17
|
+
:is_test,
|
18
|
+
:is_kip
|
18
19
|
]
|
19
20
|
|
20
21
|
attr_accessor :syncing
|
21
22
|
|
22
|
-
enum faculty_status: [
|
23
|
+
enum faculty_status: [
|
24
|
+
:no_faculty_info,
|
25
|
+
:pending_faculty,
|
26
|
+
:confirmed_faculty,
|
27
|
+
:rejected_faculty
|
28
|
+
]
|
23
29
|
enum role: [
|
24
30
|
:unknown_role,
|
25
31
|
:student,
|
@@ -31,7 +37,13 @@ module OpenStax::Accounts
|
|
31
37
|
:adjunct,
|
32
38
|
:homeschool
|
33
39
|
]
|
34
|
-
enum school_type: [
|
40
|
+
enum school_type: [
|
41
|
+
:unknown_school_type,
|
42
|
+
:other_school_type,
|
43
|
+
:college,
|
44
|
+
:high_school,
|
45
|
+
:k12_school
|
46
|
+
]
|
35
47
|
|
36
48
|
validates :faculty_status, :role, :school_type, presence: true
|
37
49
|
|
@@ -5,7 +5,6 @@ module OpenStax
|
|
5
5
|
module Api
|
6
6
|
module V1
|
7
7
|
class AccountRepresenter < Roar::Decorator
|
8
|
-
|
9
8
|
# This representer is used to communicate with Accounts
|
10
9
|
# and so must allow read/write on all properties
|
11
10
|
# Do not use it in create/update APIs!
|
@@ -89,21 +88,26 @@ module OpenStax
|
|
89
88
|
property :uuid,
|
90
89
|
type: String,
|
91
90
|
schema_info: {
|
92
|
-
description:
|
91
|
+
description: 'The UUID as set by Accounts'
|
93
92
|
}
|
94
93
|
|
95
94
|
property :support_identifier,
|
96
95
|
type: String,
|
97
96
|
schema_info: {
|
98
|
-
description:
|
97
|
+
description: 'The support_identifier as set by Accounts'
|
99
98
|
}
|
100
99
|
|
101
100
|
property :is_test,
|
102
101
|
type: :boolean,
|
103
102
|
schema_info: {
|
104
|
-
description:
|
103
|
+
description: 'Whether or not this is a test account'
|
105
104
|
}
|
106
105
|
|
106
|
+
property :is_kip,
|
107
|
+
type: :boolean,
|
108
|
+
schema_info: {
|
109
|
+
description: 'Whether or not this is a Key Institutional Partner account'
|
110
|
+
}
|
107
111
|
end
|
108
112
|
end
|
109
113
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstax_accounts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.0.
|
4
|
+
version: 9.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Slavinsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -341,6 +341,7 @@ files:
|
|
341
341
|
- db/migrate/13_add_school_type_to_accounts_accounts.rb
|
342
342
|
- db/migrate/14_drop_openstax_uid_and_username_uniqueness.rb
|
343
343
|
- db/migrate/15_drop_accounts_groups.rb
|
344
|
+
- db/migrate/16_add_is_kip_to_openstax_accounts_accounts.rb
|
344
345
|
- db/migrate/1_create_openstax_accounts_groups.rb
|
345
346
|
- db/migrate/2_create_openstax_accounts_group_members.rb
|
346
347
|
- db/migrate/3_create_openstax_accounts_group_owners.rb
|
@@ -383,7 +384,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
383
384
|
- !ruby/object:Gem::Version
|
384
385
|
version: '0'
|
385
386
|
requirements: []
|
386
|
-
rubygems_version: 3.
|
387
|
+
rubygems_version: 3.0.3
|
387
388
|
signing_key:
|
388
389
|
specification_version: 4
|
389
390
|
summary: Rails common code and bindings for the 'accounts' API
|