osso 0.0.5.pre.iota → 0.0.5.pre.kappa
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/Gemfile.lock +1 -1
- data/db/schema.rb +2 -1
- data/lib/osso/db/migrate/20200929154117_add_users_count_to_identity_providers_and_enterprise_accounts.rb +6 -0
- data/lib/osso/graphql/resolvers/enterprise_accounts.rb +1 -1
- data/lib/osso/graphql/types/enterprise_account.rb +1 -0
- data/lib/osso/models/user.rb +2 -2
- data/lib/osso/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 32adee4bda1e820397be3bbbabc6c46d8f09b80d6134bccfab742d97b1882452
|
|
4
|
+
data.tar.gz: '038cb1db738ae60f82e0473adb5fde31ac2984207ab738238ea9ff111681f415'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d3c6f2cc883a872c755d06107ce196f92510a9e78835eef0c64977c4300d7cbfd897bbd77f0040a018982c3b038dbf6786a0217982a07742f88f8fe8ee3ac5c8
|
|
7
|
+
data.tar.gz: a28ee25431469d0d3828eea72231ffc977bada859f6394b674ff2d052ce24a8eaa5303a0ff03e9a0ca77a3e5752a19668aecb48f29c202cd9d4de6a45f8478e0
|
data/Gemfile.lock
CHANGED
data/db/schema.rb
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
#
|
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
|
12
12
|
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
|
13
|
+
ActiveRecord::Schema.define(version: 2020_09_29_154117) do
|
|
14
14
|
|
|
15
15
|
# These are extensions that must be enabled in order to support this database
|
|
16
16
|
enable_extension "pgcrypto"
|
|
@@ -57,6 +57,7 @@ ActiveRecord::Schema.define(version: 2020_09_13_154919) do
|
|
|
57
57
|
t.string "name", null: false
|
|
58
58
|
t.datetime "created_at", null: false
|
|
59
59
|
t.datetime "updated_at", null: false
|
|
60
|
+
t.integer "users_count", default: 0
|
|
60
61
|
t.index ["domain"], name: "index_enterprise_accounts_on_domain", unique: true
|
|
61
62
|
t.index ["oauth_client_id"], name: "index_enterprise_accounts_on_oauth_client_id"
|
|
62
63
|
end
|
|
@@ -11,7 +11,7 @@ module Osso
|
|
|
11
11
|
|
|
12
12
|
accounts = Osso::Models::EnterpriseAccount
|
|
13
13
|
|
|
14
|
-
accounts = accounts.order(sort_column => sort_order_sym(sort_order)) if sort_column && sort_order
|
|
14
|
+
accounts = accounts.order(sort_column.underscore => sort_order_sym(sort_order)) if sort_column && sort_order
|
|
15
15
|
|
|
16
16
|
accounts.all
|
|
17
17
|
end
|
data/lib/osso/models/user.rb
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
module Osso
|
|
4
4
|
module Models
|
|
5
5
|
class User < ActiveRecord::Base
|
|
6
|
-
belongs_to :enterprise_account
|
|
7
|
-
belongs_to :identity_provider
|
|
6
|
+
belongs_to :enterprise_account, counter_cache: true
|
|
7
|
+
belongs_to :identity_provider, counter_cache: true
|
|
8
8
|
has_many :authorization_codes, dependent: :delete_all
|
|
9
9
|
has_many :access_tokens, dependent: :delete_all
|
|
10
10
|
|
data/lib/osso/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: osso
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.5.pre.
|
|
4
|
+
version: 0.0.5.pre.kappa
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sam Bauch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-09-
|
|
11
|
+
date: 2020-09-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -273,6 +273,7 @@ files:
|
|
|
273
273
|
- lib/osso/db/migrate/20200826201852_create_app_config.rb
|
|
274
274
|
- lib/osso/db/migrate/20200913154919_add_one_login_to_identity_provider_service_enum.rb
|
|
275
275
|
- lib/osso/db/migrate/20200916125543_add_google_to_identity_provider_service_enum.rb
|
|
276
|
+
- lib/osso/db/migrate/20200929154117_add_users_count_to_identity_providers_and_enterprise_accounts.rb
|
|
276
277
|
- lib/osso/error/account_configuration_error.rb
|
|
277
278
|
- lib/osso/error/error.rb
|
|
278
279
|
- lib/osso/error/missing_saml_attribute_error.rb
|