-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add sso.rb - Add the accounts edit - Add the api routes - Add the accounts account_controller_behavior - Add the proprietor_controller_override - Add missing migrattions - Add fix sso_conrtoller
- Loading branch information
Delaney Burke
committed
May 3, 2023
1 parent
a9aa077
commit 06f1fce
Showing
19 changed files
with
164 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
here | ||
<% content_for :page_header do %> | ||
<h1><span class="fa fa-gears"></span> <%= t('.header') %></h1> | ||
<% end %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
db/migrate/20200911164035_add_data_cite_endpoint_to_account.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# frozen_string_literal: true | ||
class AddDataCiteEndpointToAccount < ActiveRecord::Migration[5.2] | ||
def change | ||
add_reference :accounts, :datacite_endpoint, index: true unless column_exists?(:accounts, :datacite_endpoint_id) | ||
end | ||
end |
10 changes: 10 additions & 0 deletions
10
db/migrate/20200929084240_add_parent_id_and_data_settings_column_to_account.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# frozen_string_literal: true | ||
class AddParentIdAndDataSettingsColumnToAccount < ActiveRecord::Migration[5.2] | ||
def change | ||
add_reference :accounts, :parent, foreign_key: { to_table: :accounts } unless column_exists?(:accounts, :parent_id) | ||
add_column :accounts, :settings, :jsonb, default: {} unless column_exists?(:accounts, :settings) | ||
add_column :accounts, :data, :jsonb, default: {} unless column_exists?(:accounts, :data) | ||
add_index :accounts, :settings, using: :gin unless index_exists?(:accounts, :settings) | ||
add_index :accounts, :data, using: :gin unless index_exists?(:accounts, :data) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# frozen_string_literal: true | ||
class AddFrontendUrlToAccount < ActiveRecord::Migration[5.2] | ||
def change | ||
add_column :accounts, :frontend_url, :string, default: "" unless column_exists?(:accounts, :frontend_url) | ||
add_index :accounts, :frontend_url unless index_exists?(:accounts, :frontend_url) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
class AddSearchOnlyToAccounts < ActiveRecord::Migration[5.2] | ||
def self.up | ||
add_column :accounts, :search_only, :boolean, default: false unless column_exists?(:accounts, :search_only) | ||
end | ||
|
||
def self.down | ||
remove_column :accounts, :search_only if column_exists?(:accounts, :search_only) | ||
end | ||
end |
17 changes: 17 additions & 0 deletions
17
db/migrate/20210922124547_create_account_cross_searches.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
class CreateAccountCrossSearches < ActiveRecord::Migration[5.2] | ||
def self.up | ||
return if table_exists?(:account_cross_searches) | ||
|
||
create_table :account_cross_searches do |t| | ||
t.references :search_account, foreign_key: { to_table: :accounts } | ||
t.references :full_account, foreign_key: { to_table: :accounts } | ||
|
||
t.timestamps | ||
end | ||
end | ||
|
||
def self.down | ||
drop_table(:account_cross_searches) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# frozen_string_literal: true | ||
class RemoveParentIdFromAccounts < ActiveRecord::Migration[5.2] | ||
def change | ||
remove_reference :accounts, :parent, foreign_key: { to_table: :accounts } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
class AddDisplayProfileToUsers < ActiveRecord::Migration[5.2] | ||
def self.up | ||
add_column :users, :display_profile, :boolean, default: false unless column_exists?(:users, :display_profile) | ||
end | ||
|
||
def self.down | ||
remove_column :users, :display_profile if column_exists?(:users, :display_profile) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# frozen_string_literal: true | ||
class AddBioToUsers < ActiveRecord::Migration[5.2] | ||
def change | ||
add_column :users, :biography, :text | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class AddSsoAttributesToAccounts < ActiveRecord::Migration[5.2] | ||
def change | ||
add_column :accounts, :enable_sso, :boolean | ||
add_column :accounts, :work_os_orgnaisation, :string | ||
end | ||
end |
5 changes: 5 additions & 0 deletions
5
db/migrate/20230317071542_add_workos_connection_id_to_accounts.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddWorkosConnectionIdToAccounts < ActiveRecord::Migration[5.2] | ||
def change | ||
add_column :accounts, :work_os_connection_id, :string | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class CleanUpWorkOsFields < ActiveRecord::Migration[5.2] | ||
def change | ||
|
||
if column_exists?(:accounts, :work_os_orgnaisation) | ||
rename_column :accounts, :work_os_orgnaisation, :work_os_organisation | ||
end | ||
|
||
if column_exists?(:accounts,:work_os_connection_id) | ||
rename_column :accounts, :work_os_connection_id, :work_os_connection | ||
end | ||
|
||
end | ||
end |
5 changes: 5 additions & 0 deletions
5
db/migrate/20230411011527_add_work_os_managed_domain_to_accounts.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddWorkOsManagedDomainToAccounts < ActiveRecord::Migration[5.2] | ||
def change | ||
add_column :accounts, :work_os_managed_domain, :string | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters