muccg / angelman

RDRF based software for the Global Angelman Registry
GNU Affero General Public License v3.0
1 stars 0 forks source link

Exception when attempting to access Generated Questionnaire #341

Closed gmaloneccg closed 3 years ago

gmaloneccg commented 4 years ago

When logging in to Angelman (staging) as a parent, and navigating to the home page. Selecting the option "Generated Questionnaire Forang" from the drop-down list next to the patient's name results in an exception, provided below.

Environment:

Request Method: GET
Request URL: https://rdrf.ccgapps.com.au/angelman/ang/forms/133/171/298

Django Version: 2.1.15
Python Version: 3.7.6
Installed Applications:
['angelman',
 'django.contrib.contenttypes',
 'django.contrib.auth',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.staticfiles',
 'django.contrib.messages',
 'django_extensions',
 'django.contrib.admin',
 'messages_ui',
 'ajax_select',
 'explorer',
 'useraudit',
 'templatetag_handlebars',
 'iprestrict',
 'rest_framework',
 'anymail',
 'rdrf',
 'registry.groups',
 'registry.patients',
 'registry.common',
 'registry.genetic',
 'registration',
 'reversion',
 'storages',
 'django_otp',
 'django_otp.plugins.otp_static',
 'django_otp.plugins.otp_totp',
 'two_factor',
 'django_user_agents',
 'formtools',
 'session_security']
Installed Middleware:
('useraudit.middleware.RequestToThreadLocalMiddleware',
 'django.middleware.common.CommonMiddleware',
 'iprestrict.middleware.IPRestrictMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django_otp.middleware.OTPMiddleware',
 'registry.common.middleware.EnforceTwoFactorAuthMiddleware',
 'session_security.middleware.SessionSecurityMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'django.middleware.security.SecurityMiddleware',
 'django_user_agents.middleware.UserAgentMiddleware')

Traceback:

File "/env/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
  34.             response = get_response(request)

File "/env/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
  126.                 response = self.process_exception_by_middleware(e, request)

File "/env/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
  124.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/env/lib/python3.7/site-packages/django/views/generic/base.py" in view
  68.             return self.dispatch(request, *args, **kwargs)

File "/env/lib/python3.7/site-packages/django/views/generic/base.py" in dispatch
  88.         return handler(request, *args, **kwargs)

File "/env/lib/python3.7/site-packages/django/utils/decorators.py" in _wrapper
  45.         return bound_method(*args, **kwargs)

File "/env/lib/python3.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  21.                 return view_func(request, *args, **kwargs)

File "/env/src/django-rdrf/rdrf/rdrf/views/form_view.py" in get
  440.                                   self.registry_form)

File "/env/src/django-rdrf/rdrf/rdrf/forms/navigation/wizard.py" in __init__
  41.         self._construct_links()

File "/env/src/django-rdrf/rdrf/rdrf/forms/navigation/wizard.py" in _construct_links
  79.             self.current_index = self._determine_current_index()

File "/env/src/django-rdrf/rdrf/rdrf/forms/navigation/wizard.py" in _determine_current_index
  179.         raise Exception("could not determine current index!")

Exception Type: Exception at /ang/forms/133/171/298
Exception Value: could not determine current index!
id2359 commented 4 years ago

Side effect of generate questionnaire being exposed as a custom action in the admin registry dropdown. This action has recently being removed.

id2359 commented 4 years ago

Will need to check the importer logic

id2359 commented 4 years ago

This "generated questionnaire" is old functionality . We should remove it entirely now as it was only used for DMD which we no longer control.

jithendralal commented 3 years ago

This being related to Angelman, closing the ticket.