From 4fc85cf8ad235a6664e95dd9dd1cd87325de6095 Mon Sep 17 00:00:00 2001 From: Stefano Apostolico Date: Tue, 3 Dec 2024 14:08:20 +0100 Subject: [PATCH] cache management --- pyproject.toml | 3 +- src/country_workspace/admin/__init__.py | 15 +- .../admin/panels/__init__.py | 0 src/country_workspace/admin/panels/cache.py | 40 + src/country_workspace/admin_site.py | 7 + src/country_workspace/apps.py | 7 +- src/country_workspace/cache/handlers.py | 11 +- src/country_workspace/cache/manager.py | 49 +- src/country_workspace/config/settings.py | 5 +- src/country_workspace/config/urls.py | 8 +- src/country_workspace/datasources/rdi.py | 8 +- src/country_workspace/models/program.py | 24 +- .../versioning/management/manager.py | 2 +- .../web/static/smart_admin/console.css | 1 + .../web/static/smart_admin/console.css.map | 1 + .../web/static/smart_admin/console.scss | 17 + .../web/static/smart_admin/smart_admin.css | 1 + .../static/smart_admin/smart_admin.css.map | 1 + .../web/static/smart_admin/smart_admin.scss | 27 + .../templates/admin/auth/group/members.html | 12 + .../admin/auth/group/object_history.html | 52 + .../admin/auth/permission/users.html | 12 + .../admin/auth/user/object_history.html | 60 + .../admin/auth/user/permissions.html | 6 + .../web/templates/admin/base_site.html | 17 + .../web/templates/admin/index.html | 90 + .../web/templates/admin/logentry/archive.html | 20 + .../templates/admin/logentry/change_form.html | 5 + .../templates/admin/logentry/truncate.html | 20 + .../web/templates/admin/smart_index.html | 141 + .../admin/sysinfo/sysinfo_section.html | 65 + .../web/templates/smart_admin/console.html | 38 + .../templates/smart_admin/linked_objects.html | 42 + .../templates/smart_admin/panels/cache.html | 20 + .../templates/smart_admin/panels/email.html | 51 + .../smart_admin/panels/migrations.html | 40 + .../templates/smart_admin/panels/redis.html | 84 + .../templates/smart_admin/panels/sentry.html | 23 + .../templates/smart_admin/panels/sysinfo.html | 67 + .../smart_auth/contenttype/stale.html | 32 + .../templates/smart_admin/truncate_table.html | 32 + .../workspaces/admin/forms.py | 11 +- .../workspaces/admin/program.py | 8 +- src/country_workspace/workspaces/backend.py | 2 +- src/country_workspace/workspaces/sites.py | 13 +- .../workspaces/templatetags/workspace_urls.py | 52 +- tests/admin/panels/test_cache_panel.py | 37 + tests/admin/test_admin_individual.py | 46 + tests/cache/test_cache_handlers.py | 20 +- tests/cache/test_cache_manager.py | 10 +- tests/conftest.py | 5 +- tests/sync_lookups.yaml | 7238 ++++++++++++++++- tests/workspace/test_ws_import.py | 7 +- tests/workspace/test_ws_individual.py | 17 +- tests/workspace/test_ws_site.py | 63 + uv.lock | 4 +- 56 files changed, 8579 insertions(+), 110 deletions(-) create mode 100644 src/country_workspace/admin/panels/__init__.py create mode 100644 src/country_workspace/admin/panels/cache.py create mode 100644 src/country_workspace/admin_site.py create mode 100644 src/country_workspace/web/static/smart_admin/console.css create mode 100644 src/country_workspace/web/static/smart_admin/console.css.map create mode 100644 src/country_workspace/web/static/smart_admin/console.scss create mode 100644 src/country_workspace/web/static/smart_admin/smart_admin.css create mode 100644 src/country_workspace/web/static/smart_admin/smart_admin.css.map create mode 100644 src/country_workspace/web/static/smart_admin/smart_admin.scss create mode 100644 src/country_workspace/web/templates/admin/auth/group/members.html create mode 100644 src/country_workspace/web/templates/admin/auth/group/object_history.html create mode 100644 src/country_workspace/web/templates/admin/auth/permission/users.html create mode 100644 src/country_workspace/web/templates/admin/auth/user/object_history.html create mode 100644 src/country_workspace/web/templates/admin/auth/user/permissions.html create mode 100644 src/country_workspace/web/templates/admin/base_site.html create mode 100644 src/country_workspace/web/templates/admin/index.html create mode 100644 src/country_workspace/web/templates/admin/logentry/archive.html create mode 100644 src/country_workspace/web/templates/admin/logentry/change_form.html create mode 100644 src/country_workspace/web/templates/admin/logentry/truncate.html create mode 100644 src/country_workspace/web/templates/admin/smart_index.html create mode 100644 src/country_workspace/web/templates/admin/sysinfo/sysinfo_section.html create mode 100644 src/country_workspace/web/templates/smart_admin/console.html create mode 100644 src/country_workspace/web/templates/smart_admin/linked_objects.html create mode 100644 src/country_workspace/web/templates/smart_admin/panels/cache.html create mode 100644 src/country_workspace/web/templates/smart_admin/panels/email.html create mode 100644 src/country_workspace/web/templates/smart_admin/panels/migrations.html create mode 100644 src/country_workspace/web/templates/smart_admin/panels/redis.html create mode 100644 src/country_workspace/web/templates/smart_admin/panels/sentry.html create mode 100644 src/country_workspace/web/templates/smart_admin/panels/sysinfo.html create mode 100644 src/country_workspace/web/templates/smart_admin/smart_auth/contenttype/stale.html create mode 100644 src/country_workspace/web/templates/smart_admin/truncate_table.html create mode 100644 tests/admin/panels/test_cache_panel.py create mode 100644 tests/admin/test_admin_individual.py create mode 100644 tests/workspace/test_ws_site.py diff --git a/pyproject.toml b/pyproject.toml index 727e25e..8004ff9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ dependencies = [ "deprecation>=2.1.0", "dictdiffer>=0.9.0", "django-adminactions>=2.3.0", - "django-adminfilters>=2.5.1", + "django-adminfilters==2.5.1", "django-cacheops>=7.1", "django-celery-beat>=2.6.0", "django-celery-boost>=0.5.0", @@ -36,6 +36,7 @@ dependencies = [ "django-smart-env>=0.1.0", "django-storages[azure]>=1.14.4", "django-stubs-ext", + "django-sysinfo>=2.6.2", "django-tailwind>=3.8.0", "django>=5.1", "djangorestframework>=3.15.1", diff --git a/src/country_workspace/admin/__init__.py b/src/country_workspace/admin/__init__.py index a22d2b0..0fed349 100644 --- a/src/country_workspace/admin/__init__.py +++ b/src/country_workspace/admin/__init__.py @@ -1,7 +1,9 @@ -from django.contrib.admin import site +from django.contrib.admin.sites import site +from django.contrib.auth.models import Permission from django.contrib.contenttypes.models import ContentType -from smart_admin.smart_auth.admin import ContentTypeAdmin +from smart_admin.console import panel_migrations, panel_redis, panel_sentry, panel_sysinfo +from smart_admin.smart_auth.admin import ContentTypeAdmin, PermissionAdmin from .batch import BatchAdmin # noqa from .household import HouseholdAdmin # noqa @@ -9,9 +11,18 @@ from .job import AsyncJobAdmin # noqa from .locations import AreaAdmin, AreaTypeAdmin, CountryAdmin # noqa from .office import OfficeAdmin # noqa +from .panels.cache import panel_cache from .program import ProgramAdmin # noqa from .role import UserRoleAdmin # noqa from .sync import SyncLog # noqa from .user import UserAdmin # noqa site.register(ContentType, admin_class=ContentTypeAdmin) +site.register(Permission, admin_class=PermissionAdmin) + + +site.register_panel(panel_sentry) +site.register_panel(panel_cache) +site.register_panel(panel_sysinfo) +site.register_panel(panel_migrations) +site.register_panel(panel_redis) diff --git a/src/country_workspace/admin/panels/__init__.py b/src/country_workspace/admin/panels/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/country_workspace/admin/panels/cache.py b/src/country_workspace/admin/panels/cache.py new file mode 100644 index 0000000..8164ff1 --- /dev/null +++ b/src/country_workspace/admin/panels/cache.py @@ -0,0 +1,40 @@ +from django import forms +from django.shortcuts import render +from django.utils.translation import gettext_lazy as _ + +from country_workspace.cache.manager import cache_manager + + +class CacheManagerForm(forms.Form): + pattern = forms.CharField() + + +def panel_cache(self, request): + context = self.each_context(request) + client = cache_manager.get_redis_client() + limit_to = "*" + + def _get_keys(): + return list(client.scan_iter(f"*:cache:entry:{limit_to}")) + + if request.method == "POST": + form = CacheManagerForm(request.POST) + if form.is_valid(): + limit_to = form.cleaned_data["pattern"] + if "_delete" in request.POST: + to_delete = list(_get_keys()) + if to_delete: + client.delete(*to_delete) + else: + form = CacheManagerForm() + + context["title"] = "Cache Manager" + context["form"] = form + cache_data = _get_keys() + context["cache_data"] = cache_data + + return render(request, "smart_admin/panels/cache.html", context) + + +panel_cache.verbose_name = _("Cache") # type: ignore[attr-defined] +panel_cache.url_name = "cache" # type: ignore[attr-defined] diff --git a/src/country_workspace/admin_site.py b/src/country_workspace/admin_site.py new file mode 100644 index 0000000..d37b561 --- /dev/null +++ b/src/country_workspace/admin_site.py @@ -0,0 +1,7 @@ +from smart_admin.site import SmartAdminSite + + +class HCWAdminSite(SmartAdminSite): + site_header = "Workspace Admin" + site_title = "Workspace Admin Portal" + index_title = "Welcome to HOPE Workspace" diff --git a/src/country_workspace/apps.py b/src/country_workspace/apps.py index bde71be..0bb5d8f 100644 --- a/src/country_workspace/apps.py +++ b/src/country_workspace/apps.py @@ -1,7 +1,12 @@ from django.apps import AppConfig +from django.contrib.admin.apps import AdminConfig -class Config(AppConfig): +class HCWAdminConfig(AdminConfig): + default_site = "country_workspace.admin_site.HCWAdminSite" + + +class HCWConfig(AppConfig): name = __name__.rpartition(".")[0] verbose_name = "Country Workspace" diff --git a/src/country_workspace/cache/handlers.py b/src/country_workspace/cache/handlers.py index bdfe44d..bfbd673 100644 --- a/src/country_workspace/cache/handlers.py +++ b/src/country_workspace/cache/handlers.py @@ -1,16 +1,21 @@ from django.db.models.signals import post_save from django.dispatch import receiver -from ..models import Household, Individual, Program -from ..workspaces.models import CountryHousehold, CountryIndividual, CountryProgram +from ..models import AsyncJob, Batch, Household, Individual, Program +from ..workspaces.models import CountryAsyncJob, CountryBatch, CountryHousehold, CountryIndividual, CountryProgram from .manager import cache_manager @receiver(post_save) def update_cache(sender, instance, **kwargs): + program = None if isinstance(instance, (Household, Individual, CountryHousehold, CountryIndividual)): program = instance.program - cache_manager.incr_cache_version(program=program) elif isinstance(instance, (Program, CountryProgram)): program = instance + elif isinstance(instance, (AsyncJob, CountryAsyncJob)): + program = instance.program + elif isinstance(instance, (Batch, CountryBatch)): + program = instance.program + if program: cache_manager.incr_cache_version(program=program) diff --git a/src/country_workspace/cache/manager.py b/src/country_workspace/cache/manager.py index 30b98a5..d1f2526 100644 --- a/src/country_workspace/cache/manager.py +++ b/src/country_workspace/cache/manager.py @@ -1,11 +1,13 @@ import logging from typing import TYPE_CHECKING, Any, Optional -from django.core.cache import cache +from django.core.cache import caches +from django.core.cache.backends.redis import RedisCacheClient from django.utils import timezone from django.utils.text import slugify from constance import config +from redis_lock.django_cache import RedisCache from sentry_sdk import capture_exception from country_workspace import VERSION @@ -19,12 +21,20 @@ class CacheManager: - def __init__(self): + def __init__(self, prefix="cache"): + self.prefix = prefix self.active = True self.cw_version = "-" self.cache_timeout = 86400 self.cache_by_version = False + def get_redis_client(self) -> RedisCacheClient: + return self.cache.client.get_client() + + @property + def cache(self) -> RedisCache: + return caches["default"] + def init(self): from . import handlers # noqa @@ -43,13 +53,13 @@ def invalidate(self, key): def retrieve(self, key): if not self.active: return None - data = cache.get(key) + data = self.cache.get(key) cache_get.send(CacheManager, key=key, hit=bool(data)) return data def store(self, key: str, value: Any, timeout: int = 0, **kwargs): cache_set.send(self.__class__, key=key) - cache.set(key, value, timeout=timeout or self.cache_timeout, **kwargs) + self.cache.set(key, value, timeout=timeout or self.cache_timeout, **kwargs) def _get_version_key(self, office: "Optional[Office]" = None, program: "Optional[Program]" = None): if program: @@ -58,31 +68,31 @@ def _get_version_key(self, office: "Optional[Office]" = None, program: "Optional elif office: program = None - parts = ["key", office.slug if office else "-", str(program.pk) if program else "-"] + parts = [self.prefix, "key", office.slug if office else "-", str(program.pk) if program else "-"] return ":".join(parts) def reset_cache_version(self, *, office: "Optional[Office]" = None, program: "Optional[Program]" = None): key = self._get_version_key(office, program) - cache.delete(key) + self.cache.delete(key) def get_cache_version(self, *, office: "Optional[Office]" = None, program: "Optional[Program]" = None): key = self._get_version_key(office, program) - return cache.get(key) or 1 + return self.cache.get(key) or 1 def incr_cache_version(self, *, office: "Optional[Office]" = None, program: "Optional[Program]" = None): key = self._get_version_key(office, program) try: - return cache.incr(key) + return self.cache.incr(key) except ValueError: - return cache.set(key, 2) + return self.cache.set(key, 2) - def build_key_from_request(self, request, prefix="view", *args): + def build_key(self, prefix, *parts): tenant = "t" version = "v" program = "p" ts = "ts" - if cache.get("cache_disabled"): + if self.cache.get("cache_disabled"): ts = str(timezone.now().toordinal()) if state.tenant and state.program: @@ -93,19 +103,14 @@ def build_key_from_request(self, request, prefix="view", *args): tenant = state.tenant.slug version = str(self.get_cache_version(office=state.tenant)) - parts = [ - prefix, - self.cw_version, - ts, - version, - tenant, - program, - slugify(request.path), - slugify(str(sorted(request.GET.items()))), - *[str(e) for e in args], - ] + parts = [self.prefix, "entry", prefix, self.cw_version, ts, version, tenant, program, *parts] return ":".join(parts) + def build_key_from_request(self, request, prefix="view", *args): + return self.build_key( + prefix, slugify(request.path), slugify(str(sorted(request.GET.items()))), *[str(e) for e in args] + ) + # # def store(self, request, value): # key = self._build_key_from_request(request) diff --git a/src/country_workspace/config/settings.py b/src/country_workspace/config/settings.py index 6fb39d5..1d09ab9 100644 --- a/src/country_workspace/config/settings.py +++ b/src/country_workspace/config/settings.py @@ -25,9 +25,10 @@ "django.contrib.sitemaps", "django.contrib.staticfiles", "django.contrib.postgres", - "django.contrib.admin", + "country_workspace.apps.HCWAdminConfig", # ddt "debug_toolbar", + "django_sysinfo", "flags", "reversion", "tailwind", @@ -47,7 +48,7 @@ "hope_smart_export", "smart_env", "country_workspace.security", - "country_workspace.apps.Config", + "country_workspace.apps.HCWConfig", "country_workspace.workspaces.apps.Config", "country_workspace.versioning", "country_workspace.cache", diff --git a/src/country_workspace/config/urls.py b/src/country_workspace/config/urls.py index 12ac1a6..33092d0 100644 --- a/src/country_workspace/config/urls.py +++ b/src/country_workspace/config/urls.py @@ -23,7 +23,7 @@ urlpatterns += [path(r"", workspace.urls)] - -admin.site.site_header = "Workspace Admin" -admin.site.site_title = "Workspace Admin Portal" -admin.site.index_title = "Welcome to HOPE Workspace" +# +# admin.site.site_header = "Workspace Admin" +# admin.site.site_title = "Workspace Admin Portal" +# admin.site.index_title = "Welcome to HOPE Workspace" diff --git a/src/country_workspace/datasources/rdi.py b/src/country_workspace/datasources/rdi.py index 75b4eac..c9a4888 100644 --- a/src/country_workspace/datasources/rdi.py +++ b/src/country_workspace/datasources/rdi.py @@ -43,9 +43,15 @@ def import_from_rdi(job: AsyncJob) -> dict[str, int]: hh_ids[record[household_pk_col]] = hh.pk ret["household"] += 1 elif sheet_index == 1: + try: + name = record[detail_column_label] + except KeyError: + raise Exception( + "Error in configuration. '%s' is not a valid column name" % detail_column_label + ) job.program.individuals.create( batch=batch, - name=raw_record[detail_column_label], + name=name, household_id=hh_ids[record[household_pk_col]], flex_fields=record, ) diff --git a/src/country_workspace/models/program.py b/src/country_workspace/models/program.py index 89ce7c2..bb5704a 100644 --- a/src/country_workspace/models/program.py +++ b/src/country_workspace/models/program.py @@ -48,18 +48,34 @@ class Program(BaseModel): code = models.CharField(max_length=255, blank=True, null=True) status = models.CharField(max_length=10, choices=STATUS_CHOICE, db_index=True) sector = models.CharField(max_length=50, choices=SECTOR_CHOICE, db_index=True) - active = models.BooleanField(default=False) + active = models.BooleanField( + default=False, help_text=_("Whether the program is active. Only active program are visible in the UI") + ) # Local Fields beneficiary_validator = StrategyField( - registry=beneficiary_validator_registry, default=fqn(NoopValidator), blank=True, null=True + registry=beneficiary_validator_registry, + default=fqn(NoopValidator), + blank=True, + null=True, + help_text="Validator to use to validate the whole Household", ) household_checker = models.ForeignKey( - DataChecker, blank=True, null=True, on_delete=models.CASCADE, related_name="+" + DataChecker, + blank=True, + null=True, + on_delete=models.CASCADE, + related_name="+", + help_text="Checker to use with Household's records", ) individual_checker = models.ForeignKey( - DataChecker, blank=True, null=True, on_delete=models.CASCADE, related_name="+" + DataChecker, + blank=True, + null=True, + on_delete=models.CASCADE, + related_name="+", + help_text="Checker to use with Individual's records", ) household_search = models.TextField(default="name", help_text="Fields to use for searches") diff --git a/src/country_workspace/versioning/management/manager.py b/src/country_workspace/versioning/management/manager.py index 82d586c..f91bca5 100644 --- a/src/country_workspace/versioning/management/manager.py +++ b/src/country_workspace/versioning/management/manager.py @@ -67,7 +67,7 @@ def _process_file(self, entry: Path): for func in funcs: try: func() - except Exception as e: + except Exception as e: # pragma: no cover raise ScriptException(f"Error executing {entry.stem}.{func.__name__}") from e return funcs diff --git a/src/country_workspace/web/static/smart_admin/console.css b/src/country_workspace/web/static/smart_admin/console.css new file mode 100644 index 0000000..7861b63 --- /dev/null +++ b/src/country_workspace/web/static/smart_admin/console.css @@ -0,0 +1 @@ +.console-buttons a{color:#fff !important;text-align:center}.console-buttons:hover{background:var(--button-bg)}.redis-cli input[type=text]{width:100%}.redis-cli .code{padding-left:2px;padding-right:2px;background-color:#000;color:#fff;height:500px;overflow-scrolling:auto}/*# sourceMappingURL=console.css.map */ diff --git a/src/country_workspace/web/static/smart_admin/console.css.map b/src/country_workspace/web/static/smart_admin/console.css.map new file mode 100644 index 0000000..0d79ddf --- /dev/null +++ b/src/country_workspace/web/static/smart_admin/console.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["console.scss"],"names":[],"mappings":"AAKE,mBACE,sBACA,kBAEF,uBACE,4BAIF,4BACE,WAEF,iBACE,iBACA,kBACA,sBACA,WACA,aACA","file":"console.css"} \ No newline at end of file diff --git a/src/country_workspace/web/static/smart_admin/console.scss b/src/country_workspace/web/static/smart_admin/console.scss new file mode 100644 index 0000000..e259628 --- /dev/null +++ b/src/country_workspace/web/static/smart_admin/console.scss @@ -0,0 +1,17 @@ +// ADMIN +#container { + +} +.redis-cli{ + input[type=text]{ + width: 100%; + } + .code{ + padding-left: 2px; + padding-right: 2px; + background-color: black; + color: white; + height: 500px; + overflow-scrolling: auto; + } +} diff --git a/src/country_workspace/web/static/smart_admin/smart_admin.css b/src/country_workspace/web/static/smart_admin/smart_admin.css new file mode 100644 index 0000000..0776323 --- /dev/null +++ b/src/country_workspace/web/static/smart_admin/smart_admin.css @@ -0,0 +1 @@ +.panel{display:none}.panel.active{display:block}.console-buttons .button.selected{background-color:#114e6c}.sysinfo-results caption a{color:#fff}/*# sourceMappingURL=smart_admin.css.map */ diff --git a/src/country_workspace/web/static/smart_admin/smart_admin.css.map b/src/country_workspace/web/static/smart_admin/smart_admin.css.map new file mode 100644 index 0000000..64c1b86 --- /dev/null +++ b/src/country_workspace/web/static/smart_admin/smart_admin.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["smart_admin.scss"],"names":[],"mappings":"AAAA,OACE,aACA,cACE,cAUA,kCACE,yBAQF,2BACE","file":"smart_admin.css"} \ No newline at end of file diff --git a/src/country_workspace/web/static/smart_admin/smart_admin.scss b/src/country_workspace/web/static/smart_admin/smart_admin.scss new file mode 100644 index 0000000..f61b835 --- /dev/null +++ b/src/country_workspace/web/static/smart_admin/smart_admin.scss @@ -0,0 +1,27 @@ +.panel{ + display: none; + &.active{ + display: block; + } +} + +.console-buttons{ + .button{ + //background-color: #79aec8; + &.hover{ + //background-color: #114e6c; + } + &.selected{ + background-color: #114e6c; + } + } + +} + +.sysinfo-results{ + caption{ + a{ + color: white; + } + } +} diff --git a/src/country_workspace/web/templates/admin/auth/group/members.html b/src/country_workspace/web/templates/admin/auth/group/members.html new file mode 100644 index 0000000..f42de61 --- /dev/null +++ b/src/country_workspace/web/templates/admin/auth/group/members.html @@ -0,0 +1,12 @@ +{% extends "admin_extra_buttons/action_page.html" %}{% load i18n %} +{% block action-content %} +

{% translate 'Users' %}

+ +

{% translate 'Groups' %}

+ + +{% endblock action-content %} diff --git a/src/country_workspace/web/templates/admin/auth/group/object_history.html b/src/country_workspace/web/templates/admin/auth/group/object_history.html new file mode 100644 index 0000000..98460bc --- /dev/null +++ b/src/country_workspace/web/templates/admin/auth/group/object_history.html @@ -0,0 +1,52 @@ +{% extends "admin/base_site.html" %} +{% load admin_urls i18n smart %} + +{% block breadcrumbs %} + +{% endblock breadcrumbs %} + +{% block content %} +
+
+ + {% if action_list %} + + + + + + + + + + + {% for action in action_list %} + + + + + + + {% endfor %} + +
{% translate 'Date/time' %}{% translate 'User' %}{% translate 'Action' %}{% translate 'Details' %}
{{ action.action_time|date:"DATETIME_FORMAT" }}{{ action.user.get_username }}{% if action.user.get_full_name %} ({{ action.user.get_full_name }}){% endif %}{{ action.get_change_message }} + {% get_changed action.change_message "permissions" as perms %} + {% if perms.added %} +
Added permissions: {{ perms.added|join:", " }}
+ {% endif %} + {% if perms.removed %} +
Removed permissions: {{ perms.removed|join:", " }}
+ {% endif %} +
+ {% else %} +

{% translate 'This object doesn’t have a change history. It probably wasn’t added via this admin site.' %}

+ {% endif %} +
+
+{% endblock content %} diff --git a/src/country_workspace/web/templates/admin/auth/permission/users.html b/src/country_workspace/web/templates/admin/auth/permission/users.html new file mode 100644 index 0000000..9bfa493 --- /dev/null +++ b/src/country_workspace/web/templates/admin/auth/permission/users.html @@ -0,0 +1,12 @@ +{% extends "admin_extra_buttons/action_page.html" %}{% load admin_urls i18n %} +{% block action-content %} +

{% translate 'Users' %}

+ +

{% translate 'Groups' %}

+ + +{% endblock action-content %} diff --git a/src/country_workspace/web/templates/admin/auth/user/object_history.html b/src/country_workspace/web/templates/admin/auth/user/object_history.html new file mode 100644 index 0000000..e096078 --- /dev/null +++ b/src/country_workspace/web/templates/admin/auth/user/object_history.html @@ -0,0 +1,60 @@ +{% extends "admin/base_site.html" %} +{% load admin_urls i18n smart %} + +{% block breadcrumbs %} + +{% endblock breadcrumbs %} + +{% block content %} +
+
+ + {% if action_list %} + + + + + + + + + + + {% for action in action_list %} + + + + + + + {% endfor %} + +
{% translate 'Date/time' %}{% translate 'User' %}{% translate 'Action' %}{% translate 'Details' %}
{{ action.action_time|date:"DATETIME_FORMAT" }}{{ action.user.get_username }}{% if action.user.get_full_name %} ({{ action.user.get_full_name }}){% endif %}{{ action.get_change_message }} + {% get_changed action.change_message "permissions" as perms %} + {% if perms.added %} +
Added permissions: {{ perms.added|join:", " }}
+ {% endif %} + {% if perms.removed %} +
Removed permissions: {{ perms.removed|join:", " }}
+ {% endif %} + + {% get_changed action.change_message "groups" as groups %} + {% if groups.added %} +
Added groups: {{ groups.added|join:", " }}
+ {% endif %} + {% if groups.removed %} +
Removed groups: {{ groups.removed|join:", " }}
+ {% endif %} +
+ {% else %} +

{% translate 'This object doesn’t have a change history. It probably wasn’t added via this admin site.' %}

+ {% endif %} +
+
+{% endblock content %} diff --git a/src/country_workspace/web/templates/admin/auth/user/permissions.html b/src/country_workspace/web/templates/admin/auth/user/permissions.html new file mode 100644 index 0000000..cfbf5f6 --- /dev/null +++ b/src/country_workspace/web/templates/admin/auth/user/permissions.html @@ -0,0 +1,6 @@ +{% extends "admin_extra_buttons/action_page.html" %}{% load admin_urls i18n %} +{% block action-content %} + +{% endblock action-content %} diff --git a/src/country_workspace/web/templates/admin/base_site.html b/src/country_workspace/web/templates/admin/base_site.html new file mode 100644 index 0000000..241e16d --- /dev/null +++ b/src/country_workspace/web/templates/admin/base_site.html @@ -0,0 +1,17 @@ +{% extends "admin/base.html" %} + +{% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %} + +{% block userlinks %}{{ block.super }} +{# {% if sysinfo %} / System Info {% endif %} #} +{% if profile_link %} / Profile {% endif %} + {% for page in extra_pages %} + / {{ page.0 }} + {% endfor %} +{% endblock userlinks %} + +{% block branding %} +

{{ site_header|default:_('Django administration') }}

+{% endblock branding %} + +{% block nav-global %}{% endblock %} diff --git a/src/country_workspace/web/templates/admin/index.html b/src/country_workspace/web/templates/admin/index.html new file mode 100644 index 0000000..9ea88e8 --- /dev/null +++ b/src/country_workspace/web/templates/admin/index.html @@ -0,0 +1,90 @@ +{% extends "admin/base_site.html" %} +{% load i18n static %} + +{% block extrastyle %}{{ block.super }}{% endblock %} + +{% block coltype %}colMS{% endblock %} + +{% block bodyclass %}{{ block.super }} dashboard{% endblock %} + +{% block breadcrumbs %}{% endblock %} + +{% block nav-sidebar %} + {% include "admin/nav_sidebar.html" %} +{% endblock nav-sidebar %} + +{% block content %} +
+ +{% if app_list %} + {% for app in app_list %} +
+ + + {% for model in app.models %} + + {% if model.admin_url %} + + {% else %} + + {% endif %} + + {% if model.add_url %} + + {% else %} + + {% endif %} + + {% if model.admin_url %} + {% if model.view_only %} + + {% else %} + + {% endif %} + {% else %} + + {% endif %} + + {% endfor %} +
+ {{ app.name }} +
{{ model.name }}{{ model.name }}{% translate 'Add' %} {% translate 'View' %}{% translate 'Change' %} 
+
+ {% endfor %} +{% else %} +

{% translate "You don't have permission to view or edit anything." %}

+{% endif %} +
+{% endblock content %} + +{% block sidebar %} + +{% endblock sidebar %} diff --git a/src/country_workspace/web/templates/admin/logentry/archive.html b/src/country_workspace/web/templates/admin/logentry/archive.html new file mode 100644 index 0000000..3f27d97 --- /dev/null +++ b/src/country_workspace/web/templates/admin/logentry/archive.html @@ -0,0 +1,20 @@ +{% extends 'admin_extra_buttons/action_page.html' %} +{% load admin_list admin_urls i18n static %} +{% block content %} +

Warning: DELETE OLD DATA

+

Proceeding all the data before {{ offset }} will be irremediably removed. This action cannot be undone

+
+

{{ description }}

+
+




+
+
+ {% csrf_token %} + + No, Take me back +
+
+ +{% endblock content %} diff --git a/src/country_workspace/web/templates/admin/logentry/change_form.html b/src/country_workspace/web/templates/admin/logentry/change_form.html new file mode 100644 index 0000000..c7a8568 --- /dev/null +++ b/src/country_workspace/web/templates/admin/logentry/change_form.html @@ -0,0 +1,5 @@ +{% extends "admin_extra_buttons/change_form.html" %} + +{% block object-tools-items %} + {% include "admin_extra_buttons/includes/change_form_buttons.html" %} +{% endblock object-tools-items %} diff --git a/src/country_workspace/web/templates/admin/logentry/truncate.html b/src/country_workspace/web/templates/admin/logentry/truncate.html new file mode 100644 index 0000000..0622d8f --- /dev/null +++ b/src/country_workspace/web/templates/admin/logentry/truncate.html @@ -0,0 +1,20 @@ +{% extends 'admin_extra_buttons/action_page.html' %} +{% load admin_list admin_urls i18n static %} +{% block content %} +

Warning: ALL DATA WILL BE ERASED

+

Proceeding all the data will be irremediably removed. this action cannot be undone

+
+

{{ description }}

+
+




+
+
+ {% csrf_token %} + + No, Take me back +
+
+ +{% endblock content %} diff --git a/src/country_workspace/web/templates/admin/smart_index.html b/src/country_workspace/web/templates/admin/smart_index.html new file mode 100644 index 0000000..fd5deca --- /dev/null +++ b/src/country_workspace/web/templates/admin/smart_index.html @@ -0,0 +1,141 @@ +{% extends "admin/index.html" %}{% load i18n log static %} +{% block nav-sidebar %} + {% include "admin/nav_sidebar.html" with groups=groups %} +{% endblock nav-sidebar %} + +{% block content %} +
+ + {% if section %} +
+ + + {% for model in section.1 %} + + {% if model.admin_url %} + + {% else %} + + {% endif %} + + {% endfor %} +
+ {{ section.0 }} +
{{ model.label }}{{ model.model_name }}
+
+ {% elif groups %} + {% for section, apps in groups.items %} + {% if section != '_hidden_' %} +
+ + + {% for model in apps %} + + {% if model.admin_url %} + + {% else %} + + {% endif %} + + {% endfor %} +
+ {{ section }} +
{{ model.label }}{{ model.model_name }}
+
+ {% endif %} + {% endfor %} + {% else %} +

{% translate "You don't have permission to view or edit anything." %}

+ {% endif %} +
+{% endblock content %} + +{% block sidebar %} + {% endblock sidebar %} + +{% block footer %} + + + + {% endblock footer %} diff --git a/src/country_workspace/web/templates/admin/sysinfo/sysinfo_section.html b/src/country_workspace/web/templates/admin/sysinfo/sysinfo_section.html new file mode 100644 index 0000000..d11c16e --- /dev/null +++ b/src/country_workspace/web/templates/admin/sysinfo/sysinfo_section.html @@ -0,0 +1,65 @@ +{% load sysinfo %} + +
+ + + + + + {% for key, value in section %} + + + + + {% endfor %} + +
+

{{ name|title }}

+
+ [Project + - Python + - Modules + - Host + - OS + - Process + - Environment + - Extras] +   back to top +
+
{{ key }} + {% if key == "MEDIA_ROOT" or key == "STATIC_ROOT" %} + {{ value.path }} + {% elif key == "CACHES" %} +
    {% for k,v in value.items %} + {{ k }} +
      {% for k1,v1 in v.items %} +
    • {{ k1 }}{{ v1 }}
    • + {% endfor %}
    + {% endfor %}
+ {% elif key == "mail" %} +
    +
  • backend{{ value.backend }}
  • +
  • host{{ value.host }}
  • +
  • TLS{{ value.tls }}
  • +
  • SSL{{ value.ssl }}
  • +
  • status{{ value.status }}
  • +
+ {% elif key == "installed_apps" %} +
    {% for app, ver in value %} +
  • {{ app }}{{ ver }}
  • + {% endfor %}
+ {% elif key == "memory" %} +
    {% for k,v in value.items %} +
  • {{ k }} + {{ v }}
  • + {% endfor %}
+ {% elif key == "network" %} +
    {% for k,v in value.items %} +
  • {{ k }} + {{ v|join:" " }}
  • + {% endfor %}
+ {% else %} + {{ value }} + {% endif %} +
+
diff --git a/src/country_workspace/web/templates/smart_admin/console.html b/src/country_workspace/web/templates/smart_admin/console.html new file mode 100644 index 0000000..58c5109 --- /dev/null +++ b/src/country_workspace/web/templates/smart_admin/console.html @@ -0,0 +1,38 @@ +{% extends "admin/base_site.html" %}{% load i18n static %} +{% block extrastyle %} + {{ block.super }} + + + + +{% endblock extrastyle %} + +{% block breadcrumbs %} +
+{% endblock breadcrumbs %} + +{% block content %} +
+
+ {% block left %} + {% endblock left %} +
+ {% block right %} +
+ {% block buttons %} +
    + {% for panel in panels %} + {% with href="admin:"|add:panel.name %} +
  • {{ panel.label }}
  • + {% endwith %} + {% endfor %} +
+ {% endblock buttons %} +
+ {% endblock right %} +
+{% endblock content %} diff --git a/src/country_workspace/web/templates/smart_admin/linked_objects.html b/src/country_workspace/web/templates/smart_admin/linked_objects.html new file mode 100644 index 0000000..9ff69a4 --- /dev/null +++ b/src/country_workspace/web/templates/smart_admin/linked_objects.html @@ -0,0 +1,42 @@ +{% extends "admin_extra_buttons/action_page.html" %}{% load i18n smart static %} +{% block content_title %}

{{ original }}

{% endblock %} + +{% block content %} + + {% if not linked and not empty %} +
{% translate "No linked objects found" %}
+ {% else %} + {% for e in linked %} +
+ {% url admin_site.name|add:e.link as changelist_url %} +

{{ e.related_name }} ({{ e.field_name }}) | {{ e.count }} records + {% if changelist_url %} + goto + {% endif %} +

+ + {% for row in e.data %} + + + + + {% endfor %} +
{% get_admin_href row 'pk' %}{{ row }}
+
+ {% endfor %} + {% if show_empty %} +
+

Empty Relationships

+ +
+ {% endif %} + {% endif %} +{% endblock content %} + +{% block footer %} + +{% endblock footer %} diff --git a/src/country_workspace/web/templates/smart_admin/panels/cache.html b/src/country_workspace/web/templates/smart_admin/panels/cache.html new file mode 100644 index 0000000..e2cefc7 --- /dev/null +++ b/src/country_workspace/web/templates/smart_admin/panels/cache.html @@ -0,0 +1,20 @@ +{% extends "smart_admin/console.html" %}{% load i18n static %} +{% block left %} +
+
+
+ {% csrf_token %} + {{ form }} +
+ + +
+
+
+
+ {% for e in cache_data %} +
{{ e }}
+ {% endfor %} +
+
+{% endblock left %} diff --git a/src/country_workspace/web/templates/smart_admin/panels/email.html b/src/country_workspace/web/templates/smart_admin/panels/email.html new file mode 100644 index 0000000..aae32a6 --- /dev/null +++ b/src/country_workspace/web/templates/smart_admin/panels/email.html @@ -0,0 +1,51 @@ +{% extends "smart_admin/console.html" %}{% load i18n static %} +{% block left %} +
+
+ {% if connection %} + + + + + + {% for entry in logs %} + + + + + {% endfor %} +
connection{{ connection }}
{{ entry.0 }}{{ entry.1 }}
+
+ + +
+ {% else %} + + {% for k,v in smtp.items %} + + + + + {% endfor %} + + + + + {% csrf_token %} +
{{ k }}{{ v }}
+ {{ form }} +
+
+ +
+ + + {% endif %} + +
+
+{% endblock left %} diff --git a/src/country_workspace/web/templates/smart_admin/panels/migrations.html b/src/country_workspace/web/templates/smart_admin/panels/migrations.html new file mode 100644 index 0000000..72c87af --- /dev/null +++ b/src/country_workspace/web/templates/smart_admin/panels/migrations.html @@ -0,0 +1,40 @@ +{% extends "smart_admin/console.html" %}{% load i18n static %} +{% block breadcrumbs %} + +{% endblock breadcrumbs %} + +{% block left %} +
+
+

LIST

{{ list }}
+

PLAN

{{ plan }}
+
+
+
+{% endblock left %} + +{% block buttons %} + + {{ block.super }} +{% endblock buttons %} + +{% block footer %} + {{ block.super }} + + +{% endblock footer %} diff --git a/src/country_workspace/web/templates/smart_admin/panels/redis.html b/src/country_workspace/web/templates/smart_admin/panels/redis.html new file mode 100644 index 0000000..7aef958 --- /dev/null +++ b/src/country_workspace/web/templates/smart_admin/panels/redis.html @@ -0,0 +1,84 @@ +{% extends "smart_admin/console.html" %}{% load i18n static %} +{% block left %} +
+
+ +
+ {% csrf_token %} + + {{ form.connection }} + {{ form.command }} +
+
+ +
+
+
+{% for line in stdout %}{{ forloop.counter }}) {{ line|striptags }}
+{% endfor %}
+        
+
+
+{% endblock left %} + +{% block buttons %} + + + + {{ block.super }} +{% endblock buttons %} + +{% block footer %}{{ block.super }} + +{% endblock footer %} +{# {% block content %} #} +{#
#} +{#
#} +{#
#} +{# {% csrf_token %} #} +{# #} +{# {{ form.connection }} #} +{# {{ form.command }} #} +{#
#} +{#
#} +{# #} +{#
#} +{#
#} +{#
 #}
+{# {% for line in stdout %} #}
+{# {{ forloop.counter }}) {{ line|striptags }}{% endfor %} #}
+{# 
#} +{#
#} +{#
#} +{# #} +{# #} +{#
#} +{#
#} +{# #} +{# {% endblock content %} #} diff --git a/src/country_workspace/web/templates/smart_admin/panels/sentry.html b/src/country_workspace/web/templates/smart_admin/panels/sentry.html new file mode 100644 index 0000000..8c17bda --- /dev/null +++ b/src/country_workspace/web/templates/smart_admin/panels/sentry.html @@ -0,0 +1,23 @@ +{% extends "smart_admin/console.html" %}{% load i18n static %} +{% block left %} + + {% for k,v in info.items %} + + + + + {% endfor %} +
{{ k }}{{ v }}
+ + + {% csrf_token %} +
+ {{ form }} +
+ +
+ +
+ + +{% endblock left %} diff --git a/src/country_workspace/web/templates/smart_admin/panels/sysinfo.html b/src/country_workspace/web/templates/smart_admin/panels/sysinfo.html new file mode 100644 index 0000000..0b4f939 --- /dev/null +++ b/src/country_workspace/web/templates/smart_admin/panels/sysinfo.html @@ -0,0 +1,67 @@ +{% extends "smart_admin/console.html" %}{% load i18n static sysinfo %} +{% block extrahead %} + {{ block.super }} + + + +{% endblock extrahead %} + +{% block userlinks %}{{ block.super }}{% endblock %} + +{% block content_title %}{% if title %}

System Information

{% endif %}{% endblock %} + +{% block left %} + +
+ {% url "sys-info" as json %} + {% if json %} + view json + {% endif %} +
+ {% section 'project' %} + {% section 'python' %} + {% section 'modules' %} + {% section 'host' %} + {% section 'os' %} + {% section 'process' %} + {% section 'environ' %} + {% section 'extra' %} +{% endblock left %} + +{% block footer %} +{# #} + + +{% endblock footer %} diff --git a/src/country_workspace/web/templates/smart_admin/smart_auth/contenttype/stale.html b/src/country_workspace/web/templates/smart_admin/smart_auth/contenttype/stale.html new file mode 100644 index 0000000..150b404 --- /dev/null +++ b/src/country_workspace/web/templates/smart_admin/smart_auth/contenttype/stale.html @@ -0,0 +1,32 @@ +{% extends "admin_extra_buttons/action_page.html" %} + +{% block action-content %} +

ContentTypes

+ {% if to_remove %} +
+ {% csrf_token %} + + + + + + + + + + {% for ct, objs in to_remove.items %} + + + + + + + {% endfor %} +
AppModelLinked records
{{ ct.app_label }}{{ ct.model }}{% for o in objs %} +
{{ o }}
{% endfor %}
+ +
+ {% else %} + No stale ContentTypes found + {% endif %} +{% endblock action-content %} diff --git a/src/country_workspace/web/templates/smart_admin/truncate_table.html b/src/country_workspace/web/templates/smart_admin/truncate_table.html new file mode 100644 index 0000000..ac2f1c7 --- /dev/null +++ b/src/country_workspace/web/templates/smart_admin/truncate_table.html @@ -0,0 +1,32 @@ +{% extends 'admin/base_site.html' %}{% load admin_list admin_urls i18n static %} +{% block breadcrumbs %} + +{% endblock breadcrumbs %} + +{% block content %} +

{% translate "Warning: This is a low level system feature" %}

+

{% translate "Continuing irreversibly delete all table content" %}

+

{{ description }}

+
+




+
+ {% csrf_token %} + + +
+ +{% endblock content %} diff --git a/src/country_workspace/workspaces/admin/forms.py b/src/country_workspace/workspaces/admin/forms.py index e5b83b0..11a3ea1 100644 --- a/src/country_workspace/workspaces/admin/forms.py +++ b/src/country_workspace/workspaces/admin/forms.py @@ -25,8 +25,15 @@ class ImportFileForm(forms.Form): help_text="Which column contains the unique identifier of the record." "It is mandatory from Master/detail", ) - master_column_label = forms.CharField(required=False, initial="household_id") - detail_column_label = forms.CharField(required=False, initial="full_name_i_c") + master_column_label = forms.CharField( + required=False, initial="household_id", help_text="Which column contains the 'link' to the household record." + ) + + detail_column_label = forms.CharField( + required=False, + initial="full_name_i_c", + help_text="Which column should be used as label for the household. It can use interpolation", + ) first_line = forms.IntegerField(required=True, initial=0, help_text="First line to process") fail_if_alien = forms.BooleanField(required=False) diff --git a/src/country_workspace/workspaces/admin/program.py b/src/country_workspace/workspaces/admin/program.py index 7a45978..6519c8b 100644 --- a/src/country_workspace/workspaces/admin/program.py +++ b/src/country_workspace/workspaces/admin/program.py @@ -180,7 +180,7 @@ def individual_columns(self, request: HttpResponse, pk: str) -> "HttpResponse | context["storage_field"] = "individual_columns" return self._configure_columns(request, SelectIndividualColumnsForm, context) - @button(label=_("Update Records"), permission="workspaces.import_program_data") + @button(label=_("Update Records"), permission="country_workspace.import_program_data") def import_file_updates(self, request: HttpRequest, pk: str) -> "HttpResponse": context = self.get_common_context(request, pk, title="Import updates from file") program: "CountryProgram" = context["original"] @@ -209,7 +209,7 @@ def import_file_updates(self, request: HttpRequest, pk: str) -> "HttpResponse": context["form"] = form return render(request, "workspace/actions/bulk_update_import.html", context) - @button(label=_("Import Data"), permission="workspaces.import_program_data") + @button(label=_("Import Data"), permission="country_workspace.import_program_data") def import_data(self, request: HttpRequest, pk: str) -> "HttpResponse": context = self.get_common_context(request, pk, title="Import Data") context["selected_program"] = program = context["original"] @@ -221,10 +221,10 @@ def import_data(self, request: HttpRequest, pk: str) -> "HttpResponse": match request.POST.get("_selected_tab"): case "rdi": if not (form_rdi := self.import_rdi(request, program)): - return HttpResponseRedirect(".") + return HttpResponseRedirect(reverse("workspace:workspaces_countryasyncjob_changelist")) case "aurora": if not (form_aurora := self.import_aurora(request, program)): - return HttpResponseRedirect(".") + return HttpResponseRedirect(reverse("workspace:workspaces_countryasyncjob_changelist")) case "kobo": self.message_user(request, _("Not implemented")) diff --git a/src/country_workspace/workspaces/backend.py b/src/country_workspace/workspaces/backend.py index 4c55097..f05c296 100644 --- a/src/country_workspace/workspaces/backend.py +++ b/src/country_workspace/workspaces/backend.py @@ -89,7 +89,7 @@ def get_allowed_tenants(self, request: "HttpRequest|None" = None) -> "Optional[Q allowed_tenants = Office.objects.filter(active=True) elif request.user.is_authenticated: allowed_tenants = ( - Office.objects.filter(userrole__user=request.user) + Office.objects.filter(userrole__user=request.user, active=True) .filter(Q(userrole__expires=None) | Q(userrole__expires__gt=today())) .distinct() ) diff --git a/src/country_workspace/workspaces/sites.py b/src/country_workspace/workspaces/sites.py index 225cc87..428ab97 100644 --- a/src/country_workspace/workspaces/sites.py +++ b/src/country_workspace/workspaces/sites.py @@ -83,8 +83,9 @@ def process_request(self, request: "HttpRequest") -> tuple[str, "ModelAdmin", "F for proxy in remote_model.__subclasses__(): if proxy in self.admin_site._registry: model_admin = self.admin_site._registry[proxy] - else: - raise PermissionDenied from e + break + else: + raise PermissionDenied from e # Validate suitability of objects. if not model_admin: @@ -95,6 +96,7 @@ def process_request(self, request: "HttpRequest") -> tuple[str, "ModelAdmin", "F to_field_name = getattr(source_field.remote_field, "field_name", remote_model._meta.pk.attname) to_field_name = remote_model._meta.get_field(to_field_name).attname + if not model_admin.to_field_allowed(request, to_field_name): raise PermissionDenied @@ -168,9 +170,6 @@ def _build_app_dict(self, request: HttpRequest, label: Optional[str] = None) -> model_dict["view_only"] = not perms.get("change") try: model_dict["admin_url"] = self._registry[model].get_changelist_index_url(request) - # model_dict["admin_url"] = reverse( - # "%s:%s_%s_changelist" % info, current_app=self.name - # ) except NoReverseMatch: pass if perms.get("add"): @@ -210,8 +209,8 @@ def each_context(self, request: "HttpRequest") -> "dict[str, Any]": # ret["active_tenant"] = None return ret # type: ignore - def is_smart_enabled(self, request: "HttpRequest") -> bool: - return False + # def is_smart_enabled(self, request: "HttpRequest") -> bool: + # return False # return super().is_smart_enabled(request) diff --git a/src/country_workspace/workspaces/templatetags/workspace_urls.py b/src/country_workspace/workspaces/templatetags/workspace_urls.py index 80c2673..e89812c 100644 --- a/src/country_workspace/workspaces/templatetags/workspace_urls.py +++ b/src/country_workspace/workspaces/templatetags/workspace_urls.py @@ -1,3 +1,4 @@ +import logging import urllib.parse from typing import Any, Optional @@ -16,9 +17,10 @@ ) from django.db.models import Model from django.db.models.options import Options -from django.urls import reverse +from django.urls import NoReverseMatch, reverse from django.utils.safestring import mark_safe +logger = logging.getLogger(__name__) register = template.Library() @@ -27,28 +29,32 @@ def admin_url(context, obj, **extra): url = "" filters = "" if obj: - if isinstance(obj, Model): - if obj._meta.proxy_for_model: - opts = obj._meta.proxy_for_model._meta - else: - opts = obj._meta - url = reverse("admin:%s_%s_change" % (opts.app_label, opts.model_name), args=(obj.pk,)) - elif isinstance(obj, ModelAdmin): - opts = obj.opts.proxy_for_model._meta - url = reverse("admin:%s_%s_changelist" % (opts.app_label, opts.model_name)) - elif isinstance(obj, str): - model = apps.get_model(obj) - opts = model._meta - url = reverse("admin:%s_%s_changelist" % (opts.app_label, opts.model_name)) - - if extra: - filters = urllib.parse.urlencode(extra) - - return mark_safe( # nosec - '' - '' - "".format(url=url, filters=filters) - ) + try: + if isinstance(obj, Model): + if obj._meta.proxy_for_model: + opts = obj._meta.proxy_for_model._meta + else: + opts = obj._meta + url = reverse("admin:%s_%s_change" % (opts.app_label, opts.model_name), args=(obj.pk,)) + elif isinstance(obj, ModelAdmin): + opts = obj.opts.proxy_for_model._meta + url = reverse("admin:%s_%s_changelist" % (opts.app_label, opts.model_name)) + elif isinstance(obj, str): + model = apps.get_model(obj) + opts = model._meta + url = reverse("admin:%s_%s_changelist" % (opts.app_label, opts.model_name)) + + if extra: + filters = urllib.parse.urlencode(extra) + + return mark_safe( # nosec + '' + '' + "".format(url=url, filters=filters) + ) + except NoReverseMatch as e: + logger.exception(e) + return "" diff --git a/tests/admin/panels/test_cache_panel.py b/tests/admin/panels/test_cache_panel.py new file mode 100644 index 0000000..b4530c2 --- /dev/null +++ b/tests/admin/panels/test_cache_panel.py @@ -0,0 +1,37 @@ +from unittest.mock import MagicMock + +from country_workspace.admin import panel_cache +from country_workspace.cache.manager import cache_manager + + +def test_cache_panel(rf): + req = rf.get("/") + res = panel_cache(MagicMock(each_context=lambda s: {}), req) + assert res.status_code == 200 + + +def test_cache_panel_invalid(rf): + req = rf.post("/", {}) + res = panel_cache(MagicMock(each_context=lambda s: {}), req) + assert res.status_code == 200 + + +def test_cache_panel_filter(rf): + k = cache_manager.build_key("test_cache_panel_entry") + cache_manager.store(k, 1) + req = rf.post("/", {"pattern": "test_cache_panel_entry"}) + res = panel_cache(MagicMock(each_context=lambda s: {}), req) + assert res.status_code == 200 + assert b"test_cache_panel_entry" in res.content + + +def test_cache_panel_delete(rf): + k = cache_manager.build_key("test_cache_panel_delete") + cache_manager.store(k, 1) + req = rf.post("/", {"pattern": "*cache_panel_delete*", "_delete": "Delete"}) + res = panel_cache(MagicMock(each_context=lambda s: {}), req) + assert res.status_code == 200 + + req = rf.post("/", {"pattern": "xx", "_delete": "Delete"}) + res = panel_cache(MagicMock(each_context=lambda s: {}), req) + assert res.status_code == 200 diff --git a/tests/admin/test_admin_individual.py b/tests/admin/test_admin_individual.py new file mode 100644 index 0000000..026f2fa --- /dev/null +++ b/tests/admin/test_admin_individual.py @@ -0,0 +1,46 @@ +from typing import TYPE_CHECKING + +from django.urls import reverse + +import pytest +from django_webtest.pytest_plugin import MixinWithInstanceVariables + +from country_workspace.models import User + +if TYPE_CHECKING: + from testutils.types import CWTestApp + + from country_workspace.workspaces.models import CountryIndividual + + +@pytest.fixture() +def program(): + from testutils.factories import CountryProgramFactory + + return CountryProgramFactory() + + +@pytest.fixture() +def individual(): + from testutils.factories import CountryIndividualFactory + + return CountryIndividualFactory() + + +@pytest.fixture() +def app(django_app_factory: "MixinWithInstanceVariables", admin_user: "User") -> "CWTestApp": + django_app = django_app_factory(csrf_checks=False) + django_app.set_user(admin_user) + yield django_app + + +def test_individual_changelist(app, individual: "CountryIndividual"): + base_url = reverse("admin:country_workspace_individual_changelist") + params = ( + f"batch__country_office__exact={individual.program.country_office.pk}" + f"&batch__program__exact={individual.program.pk}" + ) + res = app.get(f"{base_url}?{params}") + assert res.status_code == 200 + res = res.click(individual.name) + assert res.status_code == 200 diff --git a/tests/cache/test_cache_handlers.py b/tests/cache/test_cache_handlers.py index 1d7f0c7..c087eb7 100644 --- a/tests/cache/test_cache_handlers.py +++ b/tests/cache/test_cache_handlers.py @@ -24,25 +24,9 @@ def pytest_generate_tests(metafunc: "Metafunc") -> None: # noqa metafunc.parametrize("model", m2, ids=ids) -# -# @pytest.fixture() -# def app(django_app_factory: "MixinWithInstanceVariables", user: "User") -> "CWTestApp": -# django_app = django_app_factory(csrf_checks=False) -# django_app.set_user(user) -# django_app._user = user -# yield django_app -# -# -# @pytest.fixture() -# def program(): -# from testutils.factories import CountryProgramFactory -# -# return CountryProgramFactory() - - @pytest.fixture -def manager(): - m = CacheManager() +def manager(worker_id): + m = CacheManager(f"cache-{worker_id}") m.init() return m diff --git a/tests/cache/test_cache_manager.py b/tests/cache/test_cache_manager.py index 52611b5..c0a8189 100644 --- a/tests/cache/test_cache_manager.py +++ b/tests/cache/test_cache_manager.py @@ -48,8 +48,8 @@ def program(): @pytest.fixture -def manager(): - m = CacheManager() +def manager(worker_id): + m = CacheManager(f"cache-{worker_id}") m.init() return m @@ -58,16 +58,16 @@ def test_cache_manager_init(): pass -def test_cache_manager_build_key_from_request(app, manager, program, rf): +def test_cache_manager_build_key_from_request(app, manager, program, rf, worker_id): request = rf.get("/") - assert manager.build_key_from_request(request) == "view:-:ts:v:t:p::" + assert manager.build_key_from_request(request) == f"cache-{worker_id}:entry:view:-:ts:v:t:p::" with user_grant_permissions( app._user, "workspaces.view_countryhousehold", country_office_or_program=program.country_office ): with state.set(tenant=program.country_office, program=program): key = manager.build_key_from_request(request) - assert key.startswith("view:") + assert key.startswith(f"cache-{worker_id}:") assert program.country_office.slug in key diff --git a/tests/conftest.py b/tests/conftest.py index 3e99e18..d0cfddb 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -88,6 +88,9 @@ def setup(db, worker_id, settings): if worker_id != "master": settings.CACHES["default"]["LOCATION"] = f"redis://localhost:6379/{worker_id}" settings.CELERY_BROKER_URL = f"redis://localhost:6379/1{worker_id}" + from country_workspace.cache.manager import cache_manager + + cache_manager.prefix = f"cache-{worker_id}" GroupFactory(name=config.NEW_USER_DEFAULT_GROUP) @@ -149,7 +152,7 @@ def force_migrated_records(request, active_marks): from country_workspace.versioning.management.manager import Manager Manager().force_apply() - with vcr.VCR(record_mode=RecordMode.ONCE).use_cassette(Path(__file__).parent / "sync_lookups.yaml"): + with vcr.VCR(record_mode=RecordMode.ONCE).use_cassette(Path(__file__).parent / "sync_all.yaml"): SyncLog.objects.refresh() diff --git a/tests/sync_lookups.yaml b/tests/sync_lookups.yaml index 2ab6cba..13b99ef 100644 --- a/tests/sync_lookups.yaml +++ b/tests/sync_lookups.yaml @@ -59,7 +59,7 @@ interactions: Accept-Encoding: - gzip, deflate Authorization: - - Token [FILTERED] + - Token [FILTERED] Connection: - keep-alive User-Agent: @@ -117,7 +117,7 @@ interactions: Accept-Encoding: - gzip, deflate Authorization: - - Token [FILTERED] + - Token [FILTERED] Connection: - keep-alive User-Agent: @@ -169,7 +169,7 @@ interactions: Accept-Encoding: - gzip, deflate Authorization: - - Token [FILTERED] + - Token [FILTERED] Connection: - keep-alive User-Agent: @@ -220,7 +220,7 @@ interactions: Accept-Encoding: - gzip, deflate Authorization: - - Token [FILTERED] + - Token [FILTERED] Connection: - keep-alive User-Agent: @@ -267,4 +267,7234 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:18:50 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:18:51 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:18:51 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:18:51 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:18:52 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token kugiugiuygiuygiuygiuhgiuhgiuhgiugiu + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"detail":"Invalid token."}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '27' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:20:56 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + WWW-Authenticate: + - Token + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 401 + message: Unauthorized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token kugiugiuygiuygiuygiuhgiuhgiuhgiugiu + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"detail":"Invalid token."}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '27' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:20:57 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + WWW-Authenticate: + - Token + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 401 + message: Unauthorized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token kugiugiuygiuygiuygiuhgiuhgiuhgiugiu + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"detail":"Invalid token."}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '27' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:24:54 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + WWW-Authenticate: + - Token + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 401 + message: Unauthorized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token kugiugiuygiuygiuygiuhgiuhgiuhgiugiu + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"detail":"Invalid token."}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '27' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:24:55 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + WWW-Authenticate: + - Token + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 401 + message: Unauthorized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token kugiugiuygiuygiuygiuhgiuhgiuhgiugiu + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"detail":"Invalid token."}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '27' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:26:28 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + WWW-Authenticate: + - Token + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 401 + message: Unauthorized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token kugiugiuygiuygiuygiuhgiuhgiuhgiugiu + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"detail":"Invalid token."}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '27' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:26:30 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + WWW-Authenticate: + - Token + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 401 + message: Unauthorized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:31 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:31 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''; report-uri' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:31 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:31 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:32 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:33 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:33 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:34 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:34 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:34 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; report-uri' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:36 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:36 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:36 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:37 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:37 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:38 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:39 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:39 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''; report-uri' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:39 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:40 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:41 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; report-uri' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:41 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:41 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:42 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:42 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:43 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:44 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:44 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:44 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:44 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:46 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:46 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:46 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:47 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:47 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:48 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:48 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:49 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:49 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:49 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:51 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:51 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:51 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:52 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:28:52 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:29:01 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:29:01 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:29:02 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:29:02 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:29:02 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:29:03 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:29:04 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:29:04 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:29:04 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:29:05 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:29:07 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:29:08 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:29:08 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:29:08 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:29:09 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token kugiugiuygiuygiuygiuhgiuhgiuhgiugiu + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"detail":"Invalid token."}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '27' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:32:51 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + WWW-Authenticate: + - Token + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 401 + message: Unauthorized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token kugiugiuygiuygiuygiuhgiuhgiuhgiugiu + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"detail":"Invalid token."}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '27' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:32:53 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + WWW-Authenticate: + - Token + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 401 + message: Unauthorized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; report-uri' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:05 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:05 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:06 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:06 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:06 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:07 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:08 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:09 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:09 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:09 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''; report-uri' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:11 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:12 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:12 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:12 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:13 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; report-uri' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:14 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:15 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:15 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:15 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; report-uri' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:16 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:17 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:17 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:18 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:18 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:18 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:19 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:20 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:20 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:20 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:21 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:22 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:22 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:23 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:23 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:23 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; report-uri' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:24 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:25 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:25 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:25 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:25 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:27 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:27 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:28 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:28 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; report-uri' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:28 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:30 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:30 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:30 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:30 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:31 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:32 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:32 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; report-uri' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:33 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:33 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:33 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"":"None","IDP":"Displaced | Internally Displaced People","REFUGEE":"Displaced | Refugee + / Asylum Seeker","OTHERS_OF_CONCERN":"Displaced | Others of Concern","HOST":"Non-displaced | Host","NON_HOST":"Non-displaced | Non-host","RETURNEE":"Displaced | Returnee"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '276' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:35 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/relationship/ + response: + body: + string: '{"UNKNOWN":"Unknown","AUNT_UNCLE":"Aunt / Uncle","BROTHER_SISTER":"Brother + / Sister","COUSIN":"Cousin","DAUGHTERINLAW_SONINLAW":"Daughter-in-law / Son-in-law","GRANDDAUGHER_GRANDSON":"Granddaughter + / Grandson","GRANDMOTHER_GRANDFATHER":"Grandmother / Grandfather","HEAD":"Head + of household (self)","MOTHER_FATHER":"Mother / Father","MOTHERINLAW_FATHERINLAW":"Mother-in-law + / Father-in-law","NEPHEW_NIECE":"Nephew / Niece","NON_BENEFICIARY":"Not a + Family Member. Can only act as a recipient.","OTHER":"Other","SISTERINLAW_BROTHERINLAW":"Sister-in-law + / Brother-in-law","SON_DAUGHTER":"Son / Daughter","WIFE_HUSBAND":"Wife / Husband","FOSTER_CHILD":"Foster + child","FREE_UNION":"Free union"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '688' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:35 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/role/ + response: + body: + string: '{"NO_ROLE":"None","ALTERNATE":"Alternate collector","PRIMARY":"Primary + collector"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '82' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:35 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/maritalstatus/ + response: + body: + string: '{"":"None","DIVORCED":"Divorced","MARRIED":"Married","SEPARATED":"Separated","SINGLE":"Single","WIDOWED":"Widowed"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '115' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''; report-uri' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:35 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token 239f3c7bf254ab04a080811466dcc194a8de4a7a + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/observeddisability/ + response: + body: + string: '{"NONE":"None","SEEING":"Difficulty seeing (even if wearing glasses)","HEARING":"Difficulty + hearing (even if using a hearing aid)","WALKING":"Difficulty walking or climbing + steps","MEMORY":"Difficulty remembering or concentrating","SELF_CARE":"Difficulty + with self care (washing, dressing)","COMMUNICATING":"Difficulty communicating + (e.g understanding or being understood)"}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '374' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:52:36 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token kugiugiuygiuygiuygiuhgiuhgiuhgiugiu + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"detail":"Invalid token."}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '27' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; frame-ancestors ''none''; font-src ''self'' data: + fonts.gstatic.com maxcdn.bootstrapcdn.com; media-src ''self''; style-src ''self'' + ''unsafe-inline'' ''unsafe-eval'' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com + maxcdn.bootstrapcdn.com unpkg.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + js-agent.newrelic.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com; img-src + ''self'' data: cdn.datatables.net map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov + map1c.vis.earthdata.nasa.gov; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + default-src ''self''' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:53:19 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + WWW-Authenticate: + - Token + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 401 + message: Unauthorized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Token kugiugiuygiuygiuygiuhgiuhgiuhgiugiu + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://dev-hope.unitst.org/api/rest/lookups/residencestatus/ + response: + body: + string: '{"detail":"Invalid token."}' + headers: + Allow: + - GET, HEAD, OPTIONS + Connection: + - keep-alive + Content-Length: + - '27' + Content-Security-Policy-Report-Only: + - 'manifest-src ''self''; style-src ''self'' ''unsafe-inline'' ''unsafe-eval'' + fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com maxcdn.bootstrapcdn.com + unpkg.com; default-src ''self''; font-src ''self'' data: fonts.gstatic.com + maxcdn.bootstrapcdn.com; connect-src sentry.io gov-bam.nr-data.net cdn.jsdelivr.net; + media-src ''self''; frame-ancestors ''none''; img-src ''self'' data: cdn.datatables.net + map1a.vis.earthdata.nasa.gov map1b.vis.earthdata.nasa.gov map1c.vis.earthdata.nasa.gov; + script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' js-agent.newrelic.com + cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com' + Content-Type: + - application/json + Date: + - Tue, 03 Dec 2024 12:53:21 GMT + Referrer-Policy: + - same-origin + Server: + - gunicorn + Vary: + - Accept, Cookie, Origin + WWW-Authenticate: + - Token + X-Content-Type-Options: + - nosniff + X-Hope-Backend-Version: + - None + status: + code: 401 + message: Unauthorized version: 1 diff --git a/tests/workspace/test_ws_import.py b/tests/workspace/test_ws_import.py index 29da79b..1363dff 100644 --- a/tests/workspace/test_ws_import.py +++ b/tests/workspace/test_ws_import.py @@ -11,6 +11,7 @@ from webtest import Upload from country_workspace.state import state +from country_workspace.workspaces.models import CountryHousehold @pytest.fixture() @@ -47,6 +48,7 @@ def app(django_app_factory: "MixinWithInstanceVariables") -> "DjangoTestApp": def test_import_data_rdi(force_migrated_records, app, program): + # NOTE: This test is linked to the content of `data/rdi_one.xlsx` res = app.get("/").follow() res.forms["select-tenant"]["tenant"] = program.country_office.pk res.forms["select-tenant"].submit() @@ -57,13 +59,16 @@ def test_import_data_rdi(force_migrated_records, app, program): res = app.get(url) res.forms["import-file"]["_selected_tab"] = "rdi" res.forms["import-file"]["rdi-file"] = Upload("rdi_one.xlsx", data) + res.forms["import-file"]["rdi-detail_column_label"] = "full_name" res = res.forms["import-file"].submit() assert res.status_code == 302 assert program.households.count() == 1 assert program.individuals.count() == 5 - hh = program.households.first() + hh: "CountryHousehold" = program.households.first() assert hh.members.count() == 5 + assert (head := hh.heads().first()) + assert head.name == "Edward Jeffrey Rogers" @override_config(AURORA_API_URL="https://api.aurora.io") diff --git a/tests/workspace/test_ws_individual.py b/tests/workspace/test_ws_individual.py index 71aa012..c7e0b15 100644 --- a/tests/workspace/test_ws_individual.py +++ b/tests/workspace/test_ws_individual.py @@ -3,7 +3,6 @@ from django.urls import reverse import pytest -from responses import RequestsMock from testutils.utils import select_office from country_workspace.state import state @@ -48,7 +47,7 @@ def individual(program): @pytest.fixture() -def app(django_app_factory: "MixinWithInstanceVariables", mocked_responses: "RequestsMock") -> "DjangoTestApp": +def app(django_app_factory: "MixinWithInstanceVariables") -> "DjangoTestApp": from testutils.factories import SuperUserFactory django_app = django_app_factory(csrf_checks=False) @@ -77,3 +76,17 @@ def test_ind_change(app: "DjangoTestApp", individual: "CountryIndividual") -> No assert res.status_code == 200, res.location res = res.forms["countryindividual_form"].submit() assert res.status_code == 302, res.location + + +def test_ind_validate(app: "DjangoTestApp", force_migrated_records, individual: "CountryIndividual") -> None: + individual.flex_fields = {} + individual.save() + url = reverse("workspace:workspaces_countryindividual_changelist") + with select_office(app, individual.country_office, individual.program): + res = app.get(url) + res = res.click(individual.name) + assert res.status_code == 200 + res = res.click("Validate").follow() + assert res.status_code == 200 + individual.refresh_from_db() + assert individual.errors diff --git a/tests/workspace/test_ws_site.py b/tests/workspace/test_ws_site.py new file mode 100644 index 0000000..634c6ea --- /dev/null +++ b/tests/workspace/test_ws_site.py @@ -0,0 +1,63 @@ +from typing import TYPE_CHECKING + +from django.urls import reverse + +import pytest +from django_webtest.pytest_plugin import MixinWithInstanceVariables +from testutils.perms import user_grant_permissions +from testutils.utils import select_office + +from country_workspace.models import User +from country_workspace.workspaces.models import CountryBatch + +if TYPE_CHECKING: + from testutils.types import CWTestApp + + +@pytest.fixture() +def batch(): + from testutils.factories import CountryBatchFactory + + return CountryBatchFactory() + + +@pytest.fixture() +def app(django_app_factory: "MixinWithInstanceVariables") -> "CWTestApp": + django_app = django_app_factory(csrf_checks=False) + yield django_app + + +def test_autocomplete_view(app, user: "User", batch: "CountryBatch"): + url = reverse("workspace:autocomplete") + res = app.get(url) + assert res.location == "/login/" + + app.set_user(user) + with user_grant_permissions(user, "workspaces.view_countrybatch", batch.program): + with select_office(app, batch.country_office, batch.program): + res = app.get(f"{url}?app_label=country_workspace&model_name=individual&field_name=batch&term={batch.name}") + assert res.json == {"pagination": {"more": False}, "results": [{"id": str(batch.id), "text": batch.name}]} + + with select_office(app, batch.country_office, batch.program): + res = app.get(f"{url}?&term={batch.name}", expect_errors=True) + assert res.status_code == 403 + res = app.get( + f"{url}?app_label=country_workspace&model_name=xxx&field_name=batch&term={batch.name}", + expect_errors=True, + ) + assert res.status_code == 403 + res = app.get( + f"{url}?app_label=country_workspace&model_name=individual&field_name=xxx&term={batch.name}", + expect_errors=True, + ) + assert res.status_code == 403 + res = app.get( + f"{url}?app_label=country_workspace&model_name=individual&field_name=name&term={batch.name}", + expect_errors=True, + ) + assert res.status_code == 403 + res = app.get( + f"{url}?app_label=country_workspace&model_name=individual&field_name=country_office&term={batch.name}", + expect_errors=True, + ) + assert res.status_code == 403 diff --git a/uv.lock b/uv.lock index 94aec9f..1b54481 100644 --- a/uv.lock +++ b/uv.lock @@ -1151,6 +1151,7 @@ dependencies = [ { name = "django-smart-env" }, { name = "django-storages", extra = ["azure"] }, { name = "django-stubs-ext" }, + { name = "django-sysinfo" }, { name = "django-tailwind" }, { name = "djangorestframework" }, { name = "flower" }, @@ -1220,7 +1221,7 @@ requires-dist = [ { name = "dictdiffer", specifier = ">=0.9.0" }, { name = "django", specifier = ">=5.1" }, { name = "django-adminactions", specifier = ">=2.3.0" }, - { name = "django-adminfilters", specifier = ">=2.5.1" }, + { name = "django-adminfilters", specifier = "==2.5.1" }, { name = "django-cacheops", specifier = ">=7.1" }, { name = "django-celery-beat", specifier = ">=2.6.0" }, { name = "django-celery-boost", specifier = ">=0.5.0" }, @@ -1240,6 +1241,7 @@ requires-dist = [ { name = "django-smart-env", specifier = ">=0.1.0" }, { name = "django-storages", extras = ["azure"], specifier = ">=1.14.4" }, { name = "django-stubs-ext" }, + { name = "django-sysinfo", specifier = ">=2.6.2" }, { name = "django-tailwind", specifier = ">=3.8.0" }, { name = "djangorestframework", specifier = ">=3.15.1" }, { name = "flower", specifier = ">=2.0.1" },