Skip to content

Commit

Permalink
Fix warning about unknown subtasks
Browse files Browse the repository at this point in the history
Changed name of script “compile” in package.json to “prepare”, so that
this package may be more easily linked locally or installed from git.

Also bump version to 0.9.1.
  • Loading branch information
fschopp committed Jun 12, 2019
1 parent 071df79 commit 7b80784
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fschopp/project-planning-for-you-track",
"version": "0.9.1-SNAPSHOT",
"version": "0.9.1",
"description": "Project planning for YouTrack. Reconstruct past project schedule from YouTrack activity log, and compute future schedule from YouTrack issue data plus a list of available contributors.",
"keywords": [
"Gantt",
Expand Down Expand Up @@ -33,11 +33,11 @@
"lint": "tslint --format verbose --project .",
"test": "jest",
"test:coverage": "npm run test -- --collect-coverage",
"compile": "tsc && rollup -c && cp target/js/*.d.ts target/js/*.d.ts.map dist/es6/ && tsc -p src/scripts/ && node target/scripts/clean-sourcemap.js dist/*.map dist/es6/*.map",
"prepare": "tsc && rollup -c && cp target/js/*.d.ts target/js/*.d.ts.map dist/es6/ && tsc -p src/scripts/ && node target/scripts/clean-sourcemap.js dist/*.map dist/es6/*.map",
"doc": "typedoc",
"demo": "parcel serve --cache-dir target/parcel-cache --out-dir target/demo --public-url /project-planning-for-you-track/ src/demo/index.html",
"demo:build": "parcel build --cache-dir target/parcel-cache --out-dir target/demo --public-url /project-planning-for-you-track/ src/demo/index.html",
"package": "npm run clean && npm run lint && npm run test:coverage && npm run compile && npm run doc && npm run demo:build && src/scripts/gh_pages.sh"
"package": "npm run clean && npm run lint && npm run test:coverage && npm run prepare && npm run doc && npm run demo:build && src/scripts/gh_pages.sh"
},
"browserslist": [
"defaults"
Expand Down
7 changes: 3 additions & 4 deletions src/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h1 class="mt-5">Demo: Project Planning for YouTrack</h1>
<input id="baseUrl" type="text" class="form-control" aria-describedby="baseUrlHelp"
placeholder="Enter URL" />
<small id="baseUrlHelp" class="form-text text-muted">
For an InCloud instance, this is of form <code>https://&lt;name&gt;.myjetbrains.com/</code>.
For YouTrack InCloud, this is of form <code>https://&lt;name&gt;.myjetbrains.com/</code>. For a YouTrack Standalone installation, this is the “Base URL” shown at Server Settings &gt; Global Settings.
</small>
</div>
</div>
Expand All @@ -29,7 +29,7 @@ <h1 class="mt-5">Demo: Project Planning for YouTrack</h1>
<input id="serviceId" type="text" class="form-control" aria-describedby="serviceIdHelp"
placeholder="Enter Service ID in Hub" />
<small id="serviceIdHelp" class="form-text text-muted">
The YouTrack service ID is available via
The YouTrack service ID is shown at
<a id="hubIntegrationLink" target="_blank">Server Settings &gt; Hub Integration</a>.
</small>
</div>
Expand All @@ -40,8 +40,7 @@ <h1 class="mt-5">Demo: Project Planning for YouTrack</h1>
Connect…
</button>
<small id="loginHelp" class="form-text text-muted">
If you are not logged into YouTrack yet, this will take you to the YouTrack login page. Once logged in,
you will be redirected back here. Please note: The URI of this web app (that is, “<span id="currentUri"></span>”) needs to be registered in the <a id="hubConfiguration" target="_blank">Hub Settings</a> under “Redirect URIs”. The URI also needs to be added to <a id="globalSettingsLink" target="_blank">Server Settings &gt; Global Settings</a> under “Allowed origins”.
If you are not logged into YouTrack yet, this will take you to the YouTrack login page. Once logged in, you will be redirected back here. Please note: The URI of this web app (that is, “<span id="currentUri"></span>”) needs to be registered in the <a id="hubConfiguration" target="_blank">Hub Settings</a> under “Redirect URIs”. The URI also needs to be added under “Allowed origins” at <a id="globalSettingsLink" target="_blank">Server Settings &gt; Global Settings</a>.
</small>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/main/you-track-project-planning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ class YouTrackIssueActivities {
}
if (unknownSubtasks.length > 0) {
this.projectPlan_.warnings.push({
description: `Issue ${issue.id} is a parent for ${unknownDependencies.join(', ')}, which is/are not ` +
description: `Issue ${issue.id} is a parent for ${unknownSubtasks.join(', ')}, which is/are not ` +
`contained in saved search “${this.savedQueryName_}”.`,
issueId: issue.id,
});
Expand Down
2 changes: 1 addition & 1 deletion src/spec/you-track-project-planning.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ describe('reconstructProjectPlan() produces warnings', () => {
issueId: 'XYZ-0',
}, {
description:
'Issue XYZ-0 is a parent for XYZ-2, which is/are not contained in saved search “Saved Search: Base”.',
'Issue XYZ-0 is a parent for XYZ-3, which is/are not contained in saved search “Saved Search: Base”.',
issueId: 'XYZ-0',
}],
};
Expand Down

0 comments on commit 7b80784

Please sign in to comment.