Skip to content

Commit

Permalink
support vs code extension status update
Browse files Browse the repository at this point in the history
  • Loading branch information
51ngul4r1ty committed May 13, 2022
1 parent 262112d commit 3dab411
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "atoll",
"version": "0.59.1",
"version": "0.60.0",
"author": {
"name": "Kevin Berry",
"email": "[email protected]"
Expand Down
15 changes: 10 additions & 5 deletions src/server/api/handlers/fetchers/sprintBacklogItemFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import { ApiBacklogItemInSprint } from "@atoll/shared";
import {
SPRINT_BACKLOG_PARENT_RESOURCE_NAME,
SPRINT_BACKLOG_CHILD_RESOURCE_NAME,
BACKLOG_ITEM_RESOURCE_NAME
BACKLOG_ITEM_RESOURCE_NAME,
BACKLOG_ITEM_PART_RESOURCE_NAME
} from "../../../resourceNames";

// data access
Expand Down Expand Up @@ -132,16 +133,20 @@ export const fetchSprintBacklogItemPartWithLinks = async (

export const buildBacklogItemPartForResponse = (
sprintId: string,
sprintBacklog: ApiBacklogItemInSprint
sprintBacklogItem: ApiBacklogItemInSprint
): ApiBacklogItemInSprint => {
return {
...sprintBacklog,
...sprintBacklogItem,
links: [
buildSelfLink(
sprintBacklog,
sprintBacklogItem,
`/api/v1/${SPRINT_BACKLOG_PARENT_RESOURCE_NAME}/${sprintId}/${SPRINT_BACKLOG_CHILD_RESOURCE_NAME}`
),
buildSimpleLink(`/api/v1/${BACKLOG_ITEM_RESOURCE_NAME}/${sprintBacklog.id}`, "related:backlog-item")
buildSimpleLink(`/api/v1/${BACKLOG_ITEM_RESOURCE_NAME}/${sprintBacklogItem.id}`, "related:backlog-item"),
buildSimpleLink(
`/api/v1/${BACKLOG_ITEM_PART_RESOURCE_NAME}/${sprintBacklogItem.backlogItemPartId}`,
"related:backlog-item-part"
)
]
};
};

0 comments on commit 3dab411

Please sign in to comment.