osso 0.0.5.pre.iota → 0.0.5.pre.kappa

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: 235fe13e7b403d95ad9874e9b06d9fa98f57172a079729ee911a00405973613a
4
- data.tar.gz: 1d54deb9b34c9db6a6fe14f04945ed31249dfa48b39c7a8be8b68883db5e0761
3
+ metadata.gz: 32adee4bda1e820397be3bbbabc6c46d8f09b80d6134bccfab742d97b1882452
4
+ data.tar.gz: '038cb1db738ae60f82e0473adb5fde31ac2984207ab738238ea9ff111681f415'
5
5
  SHA512:
6
- metadata.gz: 32e88b6b88fda909b392bfe36a9881745b58c894216f72dd0a876068130fb800b764aee9f21e95ca5aab8b683f864f3b3d4087beedbd340a538ea77e25473201
7
- data.tar.gz: b81e88465da27da4b3b21de5ff159719ac9f6ce7a61495be6a4d2d7ab38a3d41b4ab4453ac29b123181af61445ef78bf558e9a556a1ef7296170155989a29bf1
6
+ metadata.gz: d3c6f2cc883a872c755d06107ce196f92510a9e78835eef0c64977c4300d7cbfd897bbd77f0040a018982c3b038dbf6786a0217982a07742f88f8fe8ee3ac5c8
7
+ data.tar.gz: a28ee25431469d0d3828eea72231ffc977bada859f6394b674ff2d052ce24a8eaa5303a0ff03e9a0ca77a3e5752a19668aecb48f29c202cd9d4de6a45f8478e0
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- osso (0.0.5.pre.theta)
4
+ osso (0.0.5.pre.iota)
5
5
  activesupport (>= 6.0.3.2)
6
6
  graphql
7
7
  jwt
@@ -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: 2020_09_13_154919) do
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
@@ -0,0 +1,6 @@
1
+ class AddUsersCountToIdentityProvidersAndEnterpriseAccounts < ActiveRecord::Migration[6.0]
2
+ def change
3
+ add_column :enterprise_accounts, :users_count, :integer, default: 0
4
+ add_column :identity_providers, :users_count, :integer, default: 0
5
+ end
6
+ 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
@@ -14,6 +14,7 @@ module Osso
14
14
  field :domain, String, null: false
15
15
  field :identity_providers, [Types::IdentityProvider], null: true
16
16
  field :status, String, null: false
17
+ field :users_count, Integer, null: false
17
18
 
18
19
  def status
19
20
  'active'
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Osso
4
- VERSION = '0.0.5-iota'
4
+ VERSION = '0.0.5-kappa'
5
5
  end
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.iota
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-28 00:00:00.000000000 Z
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