Drew DeVault
45e859130b
Add README.md
2019-01-08 18:08:01 -05:00
Ivan Habunek
81f78dba2d
Filter tickets by assignee
...
ticket: https://todo.sr.ht/~sircmpwn/todo.sr.ht/139
2019-01-06 21:37:31 -05:00
Ivan Habunek
aa53d787d3
Fix comment length validation
...
The error message says comments should be between 3 and 16384
characters, so make length comparison inclusive to make it so.
2019-01-06 21:37:29 -05:00
Ivan Habunek
00d024d01a
Always assign current user on "Assign myself"
...
If a username was entered in the assign box and "Assign myself" clicked,
the code would look up the username instead of assigning current user.
The button would only work if no username was entered.
2019-01-06 21:37:27 -05:00
Ivan Habunek
eae4543cf5
Show noone is assigned if no assign box rendered
...
When noone is assigned, and the user doesn't have the right to assign
someone, that <dd> is left empty and loses the spacing below. To improve
visuals, fill the <dd> with "no-one" in this case.
2019-01-06 21:37:25 -05:00
Ivan Habunek
8a9959eebf
Don't break JS if no comment or assign html exists
...
e.g. if user can comment, but can't assign tickets.
2019-01-06 21:37:23 -05:00
Novalinium
0ae006b82b
Garnish HTML with IDs for easier user stylesheets and programmatic access
...
Signed-off-by: Novalinium <nova@noblejury.com>
2019-01-05 12:52:31 -05:00
Drew DeVault
a2633cd3a7
Explicitly order ticket events for display
2019-01-03 17:56:54 -05:00
Ivan Habunek
1bf2bb9090
Notify & subscribe user when assigned to ticket
...
ticket: https://todo.sr.ht/~sircmpwn/todo.sr.ht/141
2019-01-01 13:24:24 -05:00
Ivan Habunek
c01daeeb4e
Extract get_or_create_subscription
2019-01-01 13:24:06 -05:00
Ivan Habunek
0705583da9
Make assign/unassign idempotent
...
i.e. don't create events if assigning to already assigned user or
unassigning user who is not assigned.
2019-01-01 13:23:24 -05:00
Ivan Habunek
cba56b1edc
Simplify mocking emails via fixture
2019-01-01 13:22:51 -05:00
Drew DeVault
fdd24bcf97
Fix tests
2019-01-01 10:33:21 -05:00
Drew DeVault
9258e7ca6a
Add core.sr.ht migrations to todosrht-migrate
2019-01-01 10:08:55 -05:00
Ivan Habunek
da716f3592
Sumbit comment with Ctrl+Enter
...
issue: https://todo.sr.ht/~sircmpwn/todo.sr.ht/100
2018-12-31 19:46:52 -05:00
Drew DeVault
931eb1e56d
Switch to core.sr.ht-managed alembic
2018-12-31 11:44:13 -05:00
Drew DeVault
0a41f684d0
Fix test failures
2018-12-30 18:16:56 -05:00
Drew DeVault
01f734bd8c
Updates per core.sr.ht OAuth changes
2018-12-30 15:52:29 -05:00
Drew DeVault
22f3d2d132
Updates per meta.sr.ht API changes
2018-12-28 17:43:19 -05:00
Ivan Habunek
2dd9baeaf8
Improve code formatting
2018-12-14 17:41:23 -05:00
Ivan Habunek
09c486b9a1
Extract fetching comment counts
2018-12-14 17:41:23 -05:00
Ivan Habunek
e21c1dcd01
Preload ticket labels and submitters
...
Reduces query count by 2 queries per ticket.
2018-12-14 17:41:23 -05:00
Ivan Habunek
40f66d5420
Preload seen tickets list
...
Loads the data in one query instead of one per ticket.
2018-12-14 17:41:23 -05:00
Drew DeVault
36c41f9ae7
Remove user agent from tickets
2018-12-14 10:17:43 -05:00
Drew DeVault
bad45123cf
Add assign/unassign events to ticket event log
2018-12-13 21:44:15 -05:00
Drew DeVault
7510fb9f0c
Fix routing on create & configure
2018-12-13 10:05:09 -05:00
Drew DeVault
8381642d66
Implement tracker deletion
2018-12-12 22:48:43 -05:00
Drew DeVault
b0d6e23ce2
Split tracker settings into tabs
2018-12-12 22:06:31 -05:00
Drew DeVault
d39678c7d7
Render profile bios as markdown
2018-12-12 21:45:34 -05:00
Drew DeVault
4eb10a5f14
Fix editing tracker description on configure page
2018-12-12 21:44:04 -05:00
Drew DeVault
13f1debe05
Move deployment automation to Alpine
2018-12-12 21:27:39 -05:00
Drew DeVault
ae0a827b2b
Import site in setup.py
2018-12-09 22:13:09 -05:00
Drew DeVault
1241d2e1a2
Update setup.py with Alpine fixes
2018-12-09 22:10:21 -05:00
Drew DeVault
c46f089f47
Add Alpine build
2018-12-09 20:32:18 -05:00
Drew DeVault
ed0948365b
Fix unpacking of non-tuple
2018-12-04 12:05:26 -05:00
Drew DeVault
ace2459bcd
Revert "Load seen time in the same query as tickets"
...
This reverts commit c7ed6615da
.
2018-12-04 11:47:58 -05:00
Drew DeVault
8562d2d39c
Revert "Fix None dereference in tracker.py"
...
This reverts commit 074a2f2452
.
2018-12-04 11:01:54 -05:00
Drew DeVault
207df1392d
Revert "Syntax errors are cool"
...
This reverts commit a80b309734
.
2018-12-04 11:01:50 -05:00
Ivan Habunek
ab9ca76767
Fix circular import
2018-12-04 08:13:55 -05:00
Ivan Habunek
d0654f78e5
Fix missing access in ticket_unassign
2018-12-03 18:07:32 -05:00
Ivan Habunek
c8bf4a70ee
Pre-populate the assignment data list
...
To provide autocomplete when javascript is disabled.
2018-12-03 18:07:30 -05:00
Ivan Habunek
bdf70d5274
Require triage access for assignment
2018-12-03 18:07:29 -05:00
Ivan Habunek
1c9aa0739d
Don't show assign input if not allowed
...
https://todo.sr.ht/~sircmpwn/todo.sr.ht/143
2018-12-03 18:07:27 -05:00
Ivan Habunek
3f955def1a
Implement search-as-you-type for assignees
2018-12-03 18:07:14 -05:00
Drew DeVault
a80b309734
Syntax errors are cool
2018-11-30 14:27:53 -05:00
Drew DeVault
074a2f2452
Fix None dereference in tracker.py
2018-11-30 14:01:13 -05:00
Drew DeVault
b135ded307
Add secret_key to tests
2018-11-30 08:31:49 -05:00
Drew DeVault
da915d2bf6
Polish ticket assignees
2018-11-30 08:25:32 -05:00
Ivan Habunek
d18096b10b
Implement assignment frontend
2018-11-30 08:04:19 -05:00
Ivan Habunek
0958d99776
Implement unassignment frontend
2018-11-30 08:04:17 -05:00