Skip to content

Commit

Permalink
Adding fox for ticket 1204: Truncating epics query to 10 most recent …
Browse files Browse the repository at this point in the history
…epics.
  • Loading branch information
Paul Philion committed Sep 6, 2024
1 parent 570a8da commit 882c6ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/devlog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Using this as a change log (apart from git log).

Fixed #[1206](http://172.16.20.20/issues/1206): Only open tickets are displayed in search results.

Fixed #[1204](http://172.16.20.20/issues/1204): Truncated epics to the most recent 10 (until paging is implemented)


### 2023-08-29
After the ticket workflow discussions, I've been thinking about how to better integrate the "issue source of truth" (was osticket, becomming redmine) with the tools that *humans* use for discussion and issue resolution (Discord). Esther suggested an integration that tracked ticket discussion in specific threads, which was similar to slack-thread-per-issue in a few startups.

Expand Down
2 changes: 1 addition & 1 deletion tickets.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def get_epics(self) -> dict[str, list[Ticket]]:
# query tickets pri = epic
# http://localhost/issues.json?priority_id=14
epic_priority_id = 14 # fixme - lookup based on "EPIC", from redmine.get_priorities()
response = self.session.get(f"/issues.json?priority_id={epic_priority_id}include=children&limit=100")
response = self.session.get(f"/issues.json?priority_id={epic_priority_id}&include=children&limit=10&sort={DEFAULT_SORT}")
if not response:
return {}

Expand Down

0 comments on commit 882c6ea

Please sign in to comment.