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
db16cb4f
Commit
db16cb4f
authored
Mar 23, 2017
by
Matthew Piatetsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Temporarily remove updating index alias"
This reverts commit
349b9aa6
.
parent
349b9aa6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
course_discovery/apps/edx_haystack_extensions/management/commands/update_index.py
+2
-3
course_discovery/apps/edx_haystack_extensions/tests/test_update_index.py
+0
-2
No files found.
course_discovery/apps/edx_haystack_extensions/management/commands/update_index.py
View file @
db16cb4f
...
@@ -28,9 +28,8 @@ class Command(HaystackCommand):
...
@@ -28,9 +28,8 @@ class Command(HaystackCommand):
super
(
Command
,
self
)
.
handle
(
*
items
,
**
options
)
super
(
Command
,
self
)
.
handle
(
*
items
,
**
options
)
# Set the alias (from settings) to the timestamped catalog.
# Set the alias (from settings) to the timestamped catalog.
# Temporarily commenting this out to test if update index command is still broken
for
backend
,
index
,
alias
in
alias_mappings
:
# for backend, index, alias in alias_mappings:
self
.
set_alias
(
backend
,
alias
,
index
)
# self.set_alias(backend, alias, index)
def
set_alias
(
self
,
backend
,
alias
,
index
):
def
set_alias
(
self
,
backend
,
alias
,
index
):
"""
"""
...
...
course_discovery/apps/edx_haystack_extensions/tests/test_update_index.py
View file @
db16cb4f
import
pytest
from
django.conf
import
settings
from
django.conf
import
settings
from
django.core.management
import
call_command
from
django.core.management
import
call_command
from
django.test
import
TestCase
from
django.test
import
TestCase
...
@@ -8,7 +7,6 @@ from freezegun import freeze_time
...
@@ -8,7 +7,6 @@ from freezegun import freeze_time
from
course_discovery.apps.edx_haystack_extensions.tests.mixins
import
SearchIndexTestMixin
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
):
class
UpdateIndexTests
(
SearchIndexTestMixin
,
TestCase
):
@freeze_time
(
'2016-06-21'
)
@freeze_time
(
'2016-06-21'
)
def
test_handle
(
self
):
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