LP#1684984: Remove obsolete ingest.disable_metabib_field_entry flag.
authorJason Stephenson <jason@sigio.com>
Sat, 22 Apr 2017 00:42:49 +0000 (20:42 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 1 May 2017 19:02:32 +0000 (15:02 -0400)
Per discussion in IRC, the ingest.disable_metabib_field_entry internal
flag was obsoleted by the addition of the ingest.skip_browse_indexing,
ingest.skip_search_indexing, and ingest.skip_facet_indexing
flags. Since ingest.disable_metabib_field_entry is not used anywhere
in the database, this branch removes it.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/t/lp1684984-remove-ingest.disable_metabib_field_entry.pg [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.remove_ingest.disable_metabib_field_entry.sql [new file with mode: 0644]

index d23ebf1..2250678 100644 (file)
@@ -44,7 +44,6 @@ INSERT INTO config.internal_flag (name) VALUES ('ingest.reingest.force_on_same_m
 INSERT INTO config.internal_flag (name) VALUES ('ingest.disable_located_uri');
 INSERT INTO config.internal_flag (name) VALUES ('ingest.disable_metabib_full_rec');
 INSERT INTO config.internal_flag (name) VALUES ('ingest.disable_metabib_rec_descriptor');
-INSERT INTO config.internal_flag (name) VALUES ('ingest.disable_metabib_field_entry');
 INSERT INTO config.internal_flag (name) VALUES ('ingest.assume_inserts_only');
 INSERT INTO config.internal_flag (name) VALUES ('ingest.skip_browse_indexing');
 INSERT INTO config.internal_flag (name) VALUES ('ingest.skip_search_indexing');
diff --git a/Open-ILS/src/sql/Pg/t/lp1684984-remove-ingest.disable_metabib_field_entry.pg b/Open-ILS/src/sql/Pg/t/lp1684984-remove-ingest.disable_metabib_field_entry.pg
new file mode 100644 (file)
index 0000000..45bb222
--- /dev/null
@@ -0,0 +1,13 @@
+BEGIN;
+
+SELECT plan(1);
+
+-- Check that config.internal_flag ingest.disable_metabib_field_entry does not exist.
+SELECT is_empty(
+    'SELECT * FROM config.internal_flag WHERE name = $$ingest.disable_metabib_field_entry$$',
+    'config.internal_flag ingest.disable_metabib_field_entry does not exist'
+);
+
+SELECT * FROM finish();
+
+ROLLBACK;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.remove_ingest.disable_metabib_field_entry.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.remove_ingest.disable_metabib_field_entry.sql
new file mode 100644 (file)
index 0000000..091c618
--- /dev/null
@@ -0,0 +1,13 @@
+BEGIN;
+
+-- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+-- Per Lp bug 1684984, the config.internal_flag,
+-- ingest.disable_metabib_field_entry, was made obsolete by the
+-- addition of the ingest.skip_browse_indexing,
+-- ingest.skip_search_indexing, and ingest.skip_facet_indexing flags.
+-- Since it is not used in the database, we delete it.
+DELETE FROM config.internal_flag
+WHERE name = 'ingest.disable_metabib_field_entry';
+
+COMMIT;