Skip to content

Commit e8337f7

Browse files
committed
fix #26
1 parent 45c769e commit e8337f7

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A command-line tool for managing YouTrack workflows with seamless local development experience.
44

5-
## [1.5.0] - 2026-01-12
5+
## [1.5.1] - 2026-01-12
66

77
### New Features
88

@@ -13,6 +13,10 @@ A command-line tool for managing YouTrack workflows with seamless local developm
1313
- Can be mixed with workflow-only targets: `ytw logs workflow1/rule1 workflow2`
1414
- Works with all existing options (`--watch`, `--top`, `--all`)
1515

16+
### Bug Fixes
17+
18+
- **Fixed stale cache issue during pull/sync**: Files deleted on YouTrack server were not being removed locally during pull operations. The server cache is now cleared before downloading to ensure fresh data is fetched.
19+
1620
## [1.4.0] - 2025-08-29
1721

1822
### Improvements

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "youtrack-workflow-cli",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"description": "Youtrack workflow CLI",
55
"repository": {
66
"type": "git",

src/services/project.service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ export class ProjectService {
220220
* @throws {WorkflowNotFoundError} If the workflow could not be fetched
221221
*/
222222
public async downloadYoutrackWorkflow(name: string) {
223+
// Clear server cache to ensure fresh data is fetched
224+
delete this._serverCache[name]
225+
223226
const data = await this.cacheYoutrackWorkflow(name)
224227
if (!data) {
225228
throw new WorkflowNotFoundError(name)

0 commit comments

Comments
 (0)