Skip to content

Commit

Permalink
Issue #000 fix: remove script store configurations.
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshkumargangula committed Jan 11, 2021
1 parent 4e2a6d9 commit d8a0695
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 24 deletions.
1 change: 0 additions & 1 deletion ansible/inventory/env/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ learner_user_home: "/home/{{ learner_user }}"
# these variables can be defined as {{instance}}_*
content_keyspace_name: "{{instance}}_content_store"
hierarchy_keyspace_name: "{{instance}}_hierarchy_store"
orchestrator_keyspace_name: "{{instance}}_script_store"
dialcode_keyspace_name: "{{instance}}_dialcode_store"
category_keyspace_name: "{{instance}}_category_store"
assessment_keyspace_name: "{{instance}}_question_store"
Expand Down
17 changes: 0 additions & 17 deletions ansible/roles/cassandra-db-update/templates/data.cql.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@ CREATE TABLE IF NOT EXISTS {{ content_keyspace_name }}.content_data (
PRIMARY KEY (content_id)
);

CREATE KEYSPACE IF NOT EXISTS {{ orchestrator_keyspace_name }} WITH replication = {
'class': 'SimpleStrategy',
'replication_factor': '1'
};

CREATE TABLE IF NOT EXISTS {{ orchestrator_keyspace_name }}.script_data (
name text,
type text,
reqmap text,
PRIMARY KEY (name)
);

CREATE TABLE IF NOT EXISTS {{ content_keyspace_name }}.question_data (
question_id text,
last_updated_on timestamp,
Expand Down Expand Up @@ -65,11 +53,6 @@ ALTER KEYSPACE {{ hierarchy_keyspace_name }} WITH replication = {
'datacenter1' : 2
};

ALTER KEYSPACE {{ orchestrator_keyspace_name }} WITH replication = {
'class': 'NetworkTopologyStrategy',
'datacenter1' : 2
};

ALTER TABLE {{ content_keyspace_name }}.content_data ADD (externallink text);
{% endif %}

Expand Down
2 changes: 0 additions & 2 deletions ansible/roles/learning-service/templates/application.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ redis.port={{ redis_port }}
redis.maxConnections=128

# Cassandra Configuration
orchestrator.keyspace.name="{{ orchestrator_keyspace_name }}"
orchestrator.keyspace.table="script_data"
content.keyspace.name="{{ content_keyspace_name }}"
hierarchy.keyspace.name="{{ hierarchy_keyspace_name }}"
content.hierarchy.table="content_hierarchy"
Expand Down
2 changes: 0 additions & 2 deletions platform-core/unit-tests/src/test/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ content.metadata.visibility.parent=["textbookunit", "courseunit", "lessonplanuni

# Cassandra Configuration
content.keyspace.name=content_store_test
orchestrator.keyspace.name="script_store"
orchestrator.keyspace.table="script_data"
hierarchy.keyspace.name=hierarchy_store_test
content.hierarchy.table=content_hierarchy_test
framework.hierarchy.table=framework_hierarchy_test
Expand Down
2 changes: 0 additions & 2 deletions platform-modules/service/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ content.metadata.visibility.parent=["textbookunit", "courseunit", "lessonplanuni

# Cassandra Configuration
content.keyspace.name=content_store
orchestrator.keyspace.name=script_store
orchestrator.keyspace.table=script_data
cassandra.lp.connection="127.0.0.1:9042,127.0.0.2:9042,127.0.0.3:9042"
cassandra.lpa.connection="127.0.0.1:9042,127.0.0.2:9042,127.0.0.3:9042"

Expand Down

0 comments on commit d8a0695

Please sign in to comment.