Skip to content

Fix Jira and Linear integrations; add file logging#24

Merged
raghavanvm merged 1 commit intomainfrom
fix/jira-linear-fetch-add-logging
Apr 16, 2026
Merged

Fix Jira and Linear integrations; add file logging#24
raghavanvm merged 1 commit intomainfrom
fix/jira-linear-fetch-add-logging

Conversation

@raghavanvm
Copy link
Copy Markdown
Contributor

Summary

  • Jira: switch to the enhanced /rest/api/3/search/jql endpoint (POST with JSON body). Comments are fetched per issue via /rest/api/3/issue/{key}/comment since the new endpoint doesn't include them inline.
  • Linear: update GraphQL variable types to match the current schema — $teamId: ID!, $since: DateTimeOrDuration!.
  • Logging: wire up tauri-plugin-log with a file sink at the platform log dir plus stdout + webview targets (10 MB rotation). main.tsx calls attachConsole() to forward WebView console output; pipeline progress() is teed into log.info(), and each integration's fetch logs its result count on success or a warn line on failure. HTTP helpers in jira.ts / linear.ts now include the response body in error messages.

Log file on macOS: ~/Library/Logs/app.keepr.desktop/keepr.log.

Test plan

  • Run a 1:1 prep or team pulse with Jira and Linear configured — evidence rows now land as jira_issue / jira_comment / linear_issue / linear_comment (previously only github_pr appeared).
  • Tail the log file and confirm each fetch step is captured, including counts and failure messages.
  • Build and typecheck green: `npm run build`, `npx tsc --noEmit`, `cargo check` in `src-tauri/`.

- Jira: use the enhanced /rest/api/3/search/jql endpoint (POST, JSON body).
  Comments fetched per issue via /rest/api/3/issue/{key}/comment.
- Linear: update GraphQL variable types to match the current schema
  ($teamId: ID!, $since: DateTimeOrDuration!).
- Both HTTP helpers include the response body in error messages.
- Add tauri-plugin-log: file sink at the platform log dir + stdout +
  webview targets, 10 MB rotation. main.tsx calls attachConsole() to
  forward WebView console output; pipeline progress() is teed into
  log.info() and each fetch logs its result count on success or a warn
  line on failure.

Log file: ~/Library/Logs/app.keepr.desktop/keepr.log (macOS).
@raghavanvm raghavanvm merged commit 9078548 into main Apr 16, 2026
2 checks passed
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