Clearing search index from admin page raise exception. #6181
Closed
Description
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- Go to the Admin page.
- Click on the Misc tab.
- Click "Clear search index" button.
Observed behavior
In terminal:
INFO 2019-01-31 17:04:21,215 base.py:475] Traceback (most recent call last):
File "/home/dubeysandeep/oppia_tools/google_appengine_1.9.67/google_appengine/lib/webapp2-2.5.2/webapp2.py", line 570, in dispatch
return method(*args, **kwargs)
File "/home/dubeysandeep/oppia/core/domain/acl_decorators.py", line 490, in test_super_admin
return handler(self, **kwargs)
File "/home/dubeysandeep/oppia/core/controllers/admin.py", line 158, in post
exp_services.clear_search_index()
AttributeError: 'module' object has no attribute 'clear_search_index'
ERROR 2019-01-31 17:04:21,215 base.py:485] Exception raised: 'module' object has no attribute 'clear_search_index'
Expected behavior
Should clear search index without any error.
Screenshots
If applicable, add screenshots to help explain your problem.