Skip to content

TK-82: Unable to create knowledge items from isa - #60

Closed
burkkyy wants to merge 16 commits into
ytgov:mainfrom
icefoganalytics:tk-82/unable-to-create-knowledge-items-from-isa
Closed

burkkyy wants to merge 16 commits into
ytgov:mainfrom
icefoganalytics:tk-82/unable-to-create-knowledge-items-from-isa

Conversation

@burkkyy

@burkkyy burkkyy commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Relates to:

Context

User Report

Users are unable to create Knowledge Items from an ISA. This results in a "Save failed" error when attempting to save.

Investigation traced this to Knowledge Items created from an Information Sharing Agreement (ISA) whose external contact has no linked external organization. That's an already-tolerated state elsewhere in the UI (shown as "Not specified"), but a prior change made Knowledge Item creation throw on it instead of degrading gracefully. Any ISA in that state blocked Knowledge Item creation entirely, and the frontend only ever surfaced it as a generic "Save failed" message.

Implementation

  1. Create the Knowledge Item without a Yukon First Nations value when the ISA's external contact has no linked organization, instead of failing the whole request.
  2. Add test coverage for both the resolved-organization and missing-organization cases.

Screenshots

N/A - backend changes only

Testing Instructions

  1. Run the test suite via dev test (or dev test_api)
  2. Boot the app via dev up
  3. Log in to the app at http://localhost:8080

burkkyy and others added 16 commits August 26, 2026 14:19
…layout-for-sharing-agreement-users-groups

TK-64: Improve Breadcrumb layout for Sharing Agreement, Users, Groups
VDataIterator only gained support for the items-length prop (manual/server-side pagination) in 3.12.0. On the previously installed 3.11.8, it silently ignored items-length and computed page count from the current page's item count instead of the total, so the notifications list never showed more than one page. package.json's existing ^3.11.8 range already permitted this version.
Pairs with the existing useRouteQueryPagination composable; wires a v-pagination control to a page/perPage model and computes total pages from a totalCount prop.
…ions-page-doesnt-seem-to-work

TK-88: Paging in notifications page doesnt seem to work
Use the ISA number for the canonical knowledge item list and association detail URLs, preserving many-to-many links without selecting an arbitrary first item.
Rename the knowledge item list/detail route path segment from
archive-items to knowledge-items so URLs no longer reference the old
archive terminology (TK-84).
Both new pages jumped straight from the ISA list to the current page,
skipping the specific agreement, so there was no way back to it via
the breadcrumb trail. Add the missing ISA crumb, matching the pattern
used on InformationSharingAgreementAccessGrantsPage.
An ISA has at most one knowledge item, so route "View Knowledge Item"
directly to InformationSharingAgreementKnowledgeItemPage instead of
the plural list page.
Nothing links to InformationSharingAgreementKnowledgeItemsPage now
that the signed actions menu goes straight to the single knowledge
item page. Drop the page, its route, and the list item component it
was the only user of.
Mirror ArchiveItemPage's structure: an Information Sharing Agreements
tab and a Users with Access tab, each backed by their own copy of the
archive-items versions since this page only has the ISA<->knowledge
item association id (not the raw archiveItemId) in its URL. Add a
small composable to resolve that association once per page and
validate it belongs to the ISA in the URL, same check the page
already did.
TK-84: Use ISA Numbers in Knowledge Item Links
…d external organization.

A missing external organization on the ISA's external group contact is
a state the UI already tolerates elsewhere (shown as "Not specified"),
but archive-item creation treated it as fatal, throwing an error that
the frontend surfaced only as a generic "Save failed" message. Resolve
yukonFirstNations to an empty list instead of failing the whole request.

Undoes the throw added in 3309466. See TK-82.
@burkkyy burkkyy closed this Aug 27, 2026
@burkkyy
burkkyy deleted the tk-82/unable-to-create-knowledge-items-from-isa branch August 27, 2026 22:48
datajohnson pushed a commit that referenced this pull request Sep 8, 2026
…me-in-sharing-agreement

TK-68: Change of Button name in Sharing Agreement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants