From 03075f3fdabc812ce81e199c89072ce1338b6ef5 Mon Sep 17 00:00:00 2001 From: Kees Schollaart Date: Sun, 14 Oct 2018 10:18:00 +0200 Subject: [PATCH] v3.3.1 --- Marketplace.md | 5 +++++ src/sprint-goal.ts | 4 ---- src/widget.ts | 15 --------------- src/widgetconfig.ts | 10 ---------- vss-extension.json | 2 +- 5 files changed, 6 insertions(+), 30 deletions(-) diff --git a/Marketplace.md b/Marketplace.md index d33e0ff..e6fa51b 100644 --- a/Marketplace.md +++ b/Marketplace.md @@ -12,6 +12,10 @@ After setting the goal, the goal will be shown in the tab-label on every page wi ## Release notes +### Version 3.3 - 14-10-2018 + +- Solved [#12](https://github.com/keesschollaart81/vsts-sprint-goal/issues/12) and [#13](https://github.com/keesschollaart81/vsts-sprint-goal/issues/13) + ### Version 3.0 - 01-03-2018 - Added Widget @@ -33,6 +37,7 @@ Initial Release ## Known Bugs - First time someone (else) loads the sprint page, the sprint goal is not shown in the tab label. +- New navigation (summer '18) does not refresh the pages when switching team/sprint. Tab does not get updated. ## Privacy diff --git a/src/sprint-goal.ts b/src/sprint-goal.ts index 22fa02a..e8a1930 100644 --- a/src/sprint-goal.ts +++ b/src/sprint-goal.ts @@ -1,12 +1,8 @@ import Extension_Data = require("VSS/SDK/Services/ExtensionData"); import Q = require("q"); -import VSS_Service = require("VSS/Service"); -import TFS_Build_Contracts = require("TFS/Build/Contracts"); -import TFS_Build_Extension_Contracts = require("TFS/Build/ExtensionContracts"); import Controls = require("VSS/Controls"); import Menus = require("VSS/Controls/Menus"); import StatusIndicator = require("VSS/Controls/StatusIndicator"); -import sg = require("./SprintGoalApplicationInsightsWrapper"); export class SprintGoal { private iterationId: string; diff --git a/src/widget.ts b/src/widget.ts index 22dcb2f..3e962cb 100644 --- a/src/widget.ts +++ b/src/widget.ts @@ -1,8 +1,5 @@ -import moment = require("moment-timezone"); import TFS_Core_Contracts = require("TFS/Core/Contracts"); -import Work_Contracts = require("TFS/Work/Contracts"); import Work_Client = require("TFS/Work/RestClient"); -import System_Contracts = require("VSS/Common/Contracts/System"); import Service = require("VSS/Service"); import WebApi_Constants = require("VSS/WebApi/Constants"); import { WidgetSettings } from "TFS/Dashboards/WidgetContracts"; @@ -69,7 +66,6 @@ export class SprintGoalWidget { return workClient.getTeamIterations(teamContext, "current").then((teamIterations) => { var iterationId = teamIterations[0].id; - var configIdentifier = iterationId; var configIdentifierWithTeam = this.getConfigKey(iterationId, teamId); return this.fetchSettingsFromExtensionDataService(configIdentifierWithTeam).then((teamGoal: SprintGoalDto) => { @@ -78,17 +74,6 @@ export class SprintGoalWidget { if (teamGoal) { return this.display(title, teamGoal.goal, widgetSettings.size.columnSpan, settings) } - else { - // fallback, also for backward compatibility: project/iteration level settings - return this.fetchSettingsFromExtensionDataService(configIdentifier).then((iterationGoal) => { - if (iterationGoal) { - return this.display(title, iterationGoal.goal, widgetSettings.size.columnSpan, settings) - } - else { - return this.display(title, "No sprint goal yet", widgetSettings.size.columnSpan, settings) - } - }); - } }); }); }); diff --git a/src/widgetconfig.ts b/src/widgetconfig.ts index ce0408d..d456e71 100644 --- a/src/widgetconfig.ts +++ b/src/widgetconfig.ts @@ -1,15 +1,5 @@ -import jscolor = require("jscolor-picker/jscolor"); -import moment = require("moment-timezone"); -import TFS_Core_Contracts = require("TFS/Core/Contracts"); -import Work_Contracts = require("TFS/Work/Contracts"); -import Work_Client = require("TFS/Work/RestClient"); -import System_Contracts = require("VSS/Common/Contracts/System"); -import Service = require("VSS/Service"); -import WebApi_Constants = require("VSS/WebApi/Constants"); import { WidgetSettings, IWidgetConfigurationContext, IWidgetConfiguration } from "TFS/Dashboards/WidgetContracts"; -import Extension_Data = require("VSS/SDK/Services/ExtensionData"); import { SprintGoalWidgetSettings } from "./settings"; -// import ais = require("./SprintGoalApplicationInsightsWrapper"); import { SprintGoalApplicationInsightsWrapper } from "./SprintGoalApplicationInsightsWrapper"; VSS.require(["TFS/Dashboards/WidgetHelpers"], function (WidgetHelpers) { diff --git a/vss-extension.json b/vss-extension.json index 42b3440..c0c0113 100644 --- a/vss-extension.json +++ b/vss-extension.json @@ -2,7 +2,7 @@ "manifestVersion": 1, "id": "sprint-goal", "name": "Sprint Goal", - "version": "3.3.0", + "version": "3.3.1", "publisher": "keesschollaart", "public": true, "helpMarkDown": "[More Information](https://github.com/keesschollaart81/vsts-sprint-goal)",