Skip to content

Commit

Permalink
Removed all references to 'ariana' and replaced with 'test' as needed
Browse files Browse the repository at this point in the history
  • Loading branch information
brianna-dardin committed Feb 26, 2024
1 parent ac63b4b commit da1c294
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/views/archive_configs/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<% end %>

<div class="field form-group">
<% host_list = ENV['RAILS_ENV'] == "production" ? [:ariana, :test, :live] : [:local, :ariana, :test, :live] %>
<% host_list = ENV['RAILS_ENV'] == "production" ? [:test, :live] : [:local, :test, :live] %>
<%= f.label :host %>
<%= f.select :host, host_list, {}, class: "form-control" %>
<small id="hostHelp" class="form-text">Warning: changing this will clear imported and do not import flags and AO3
Expand Down
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
t.boolean "post_preview", default: false, null: false
t.string "archivist", limit: 100, default: "testy", null: false
t.string "collection_name"
t.string "host", limit: 15, default: "ariana"
t.string "host", limit: 15, default: "test"
t.index ["id"], name: "id_UNIQUE", unique: true
t.index ["key"], name: "Key_UNIQUE", unique: true
end
Expand Down
2 changes: 1 addition & 1 deletion db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ CREATE TABLE `archive_configs` (
`post_preview` tinyint(1) NOT NULL DEFAULT '0',
`archivist` varchar(100) NOT NULL DEFAULT 'testy',
`collection_name` varchar(255) DEFAULT NULL,
`host` varchar(15) DEFAULT 'ariana',
`host` varchar(15) DEFAULT 'test',
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`),
UNIQUE KEY `Key_UNIQUE` (`key`)
Expand Down
2 changes: 1 addition & 1 deletion lib/otw_archive/import_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def initialize(archive_host, token, restricted = true, override_tags = true, det
end

def isHttp?(archive_host)
archive_host.include?("ariana.archiveofourown.org") || archive_host.include?("localhost") || archive_host.split(":")[0] =~ Resolv::IPv4::Regex
archive_host.include?("localhost") || archive_host.split(":")[0] =~ Resolv::IPv4::Regex
end
end
end # OtwArchive
4 changes: 2 additions & 2 deletions scripts/ansible/templates/archive_config.sql.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CREATE TABLE IF NOT EXISTS `archive_configs` (
`post_preview` tinyint(1) NOT NULL DEFAULT '0',
`archivist` varchar(100) NOT NULL DEFAULT 'testy',
`collection_name` varchar(255) DEFAULT NULL,
`host` varchar(15) DEFAULT 'ariana',
`host` varchar(15) DEFAULT 'test',
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`),
UNIQUE KEY `Key_UNIQUE` (`key`)
Expand All @@ -23,7 +23,7 @@ INSERT IGNORE INTO `archive_configs`
`archivist`, `collection_name`, `host`)
VALUES
(1, "{{ sitekey }}", "{{ name }}", "Testing", "OD STORY NOTE", "OD BOOKMARK NOTE", 0, 0,
"testy", "opendoorstestcollection", "ariana");
"testy", "opendoorstestcollection", "test");

--
-- Table structure for table `audits`
Expand Down
2 changes: 1 addition & 1 deletion scripts/docker/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ cp scripts/ansible/templates/archive_config.sql.j2 $SQL_FILE

sed -i'' -e 's/{{ sitekey }}/opendoorstempsite/g' $SQL_FILE
sed -i'' -e 's/{{ name }}/Open Doors Temp Site/g' $SQL_FILE
sed -i'' -e 's/ariana/local/g' $SQL_FILE
sed -i'' -e 's/test/local/g' $SQL_FILE

#Auto-load sample SQL file
docker-compose exec -T db mysql -h db -uroot -p$MYSQL_PASS opendoorstempsite < $SQL_FILE

0 comments on commit da1c294

Please sign in to comment.