cisagov / manage.get.gov

A Django-based domain name registrar used by the .gov domain to communicate with an EPP registry
https://get.gov
Other
57 stars 17 forks source link

On portfolio add/update pages show "Federal type" and "Portfolio type" dynamically #2608

Closed zandercymatics closed 2 weeks ago

zandercymatics commented 3 weeks ago

Issue description

In PR #2548, we dynamically update "Organization type" field when adding a Federal Agency. However, the Federal type field does not update alongside it. This can lead to situations where incorrect data is displayed.

When changing the Federal agency field, we should also update federal type.

Acceptance criteria

Additional context

PR #2548 updated the senior official field via an API so that we could use javascript to make these changes. The lowest lift solution here would be to copy the approach done for get_senior_official_from_federal_agency_json.

Links to other issues

vickyszuchin commented 3 weeks ago

Moved it to "Backlog" per approval from @katypies