Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
course-discovery
Commits
349b9aa6
Commit
349b9aa6
authored
Mar 23, 2017
by
Matthew Piatetsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporarily remove updating index alias
ECOM-7572
parent
8ba4752e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
course_discovery/apps/edx_haystack_extensions/management/commands/update_index.py
+3
-2
course_discovery/apps/edx_haystack_extensions/tests/test_update_index.py
+2
-0
No files found.
course_discovery/apps/edx_haystack_extensions/management/commands/update_index.py
View file @
349b9aa6
...
...
@@ -28,8 +28,9 @@ class Command(HaystackCommand):
super
(
Command
,
self
)
.
handle
(
*
items
,
**
options
)
# Set the alias (from settings) to the timestamped catalog.
for
backend
,
index
,
alias
in
alias_mappings
:
self
.
set_alias
(
backend
,
alias
,
index
)
# Temporarily commenting this out to test if update index command is still broken
# for backend, index, alias in alias_mappings:
# self.set_alias(backend, alias, index)
def
set_alias
(
self
,
backend
,
alias
,
index
):
"""
...
...
course_discovery/apps/edx_haystack_extensions/tests/test_update_index.py
View file @
349b9aa6
import
pytest
from
django.conf
import
settings
from
django.core.management
import
call_command
from
django.test
import
TestCase
...
...
@@ -7,6 +8,7 @@ from freezegun import freeze_time
from
course_discovery.apps.edx_haystack_extensions.tests.mixins
import
SearchIndexTestMixin
@pytest.mark.skip
(
reason
=
"Temporarily disabling for testing update index command"
)
class
UpdateIndexTests
(
SearchIndexTestMixin
,
TestCase
):
@freeze_time
(
'2016-06-21'
)
def
test_handle
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment