Commit Graph

1346 Commits

Author SHA1 Message Date
a dc1d964102 l 2022-02-23 00:29:07 +00:00
a 9a860c2ad1 finished router spec 2022-02-22 23:44:57 +00:00
a edd0e5c018 progress on migration to chi 2022-02-22 10:31:07 +00:00
a 9970be19e5 more cleanup 2022-02-22 05:49:08 +00:00
a 77d85278a2 adjust path 2022-02-21 03:53:13 +00:00
a e1a3ec1f1d some changes 2022-02-21 03:42:55 +00:00
a 5b93b66792 more converts 2022-02-21 03:32:53 +00:00
a 6d4bd5cdf2 remove more useless files 2022-02-21 03:16:28 +00:00
a 89265ee383 remove more useless files 2022-02-21 03:16:15 +00:00
Azareal 553e66b590 Empty level bar on 0. 2021-07-29 17:09:23 +10:00
Azareal 0ff56af36f Fix level bar UI.
Reduce boilerplate.
2021-07-28 17:43:38 +10:00
Azareal 0cffbbb3cd 80th time's the charm. 2021-07-11 09:10:19 +10:00
Azareal 7c5d55e0b9 Add Dev.HourDBTimeout unlisted config setting.
Shorter duration during conn drop period.
Improve TickWatch.DumpElapsed formatting.
2021-06-14 13:32:07 +10:00
Azareal 9ba6e269c6 Update go-sql-driver to v1.6.0 2021-05-26 13:24:45 +10:00
Azareal cdaba35046 catch more database downs
make tickwatch less noisy
improve tickwatch elapsed printing
2021-05-26 13:10:34 +10:00
Azareal 7846c5dfe9 Add TickWatch.
Add Log4thLongRoute dev setting.
Reduce boilerplate.
2021-05-14 17:56:54 +10:00
Azareal d91897efe4 Add Resultsf() to *Poll.
Optimise PollResults() with a byte buffer.
2021-05-12 16:29:56 +10:00
Azareal ca0117f42e Add RemovePoll() method to *Poll.
Add SetPoll(), RemovePoll(), and topic.Poll struct field test cases.

Stop erroring in tests.
2021-05-12 13:28:00 +10:00
Azareal e01a181eda Add DisableIP config setting.
Use hookgen for simple_forum_check_pre_perms.
Optimise panelUserCheck()'s addPreScript()
Reduce allocs slightly for PreRoute() host IP setting.
Reorder error check in NoSessionMismatch() for faster failure.
Reorder error check in NoUploadSessionMismatch() for faster failure.
Reduce boilerplate.
2021-05-12 12:04:55 +10:00
Azareal eb67af6efd don't forget footer.html 2021-05-11 20:08:47 +10:00
Azareal 9e4336761f don't forget template_init.go 2021-05-11 19:36:16 +10:00
Azareal 67ccca8b4e Use ThemesSlice instead of Themes in Header struct. 2021-05-11 19:25:07 +10:00
Azareal f54203d54f Eliminate zone and prescript allocs in userCheck2(). 2021-05-10 17:53:52 +10:00
Azareal 97f411e02e Change semantics of *WSUser to fix potential bugs, make it easier to test, to release memory more eagerly, and to make it faster.
Add CountSockets() method to *WSUser
2021-05-08 16:34:46 +10:00
Azareal e839bc5f2c optimise template gen 2021-05-05 22:30:04 +10:00
Azareal c1163e5da5 do a perf test on ViewTopic once an hour to make sure it doesn't die
add more task tests
more EatPanics()
2021-05-05 19:23:58 +10:00
Azareal dbc6fdb27c try to log panics better
fix LogNewLongRoute
2021-05-05 17:24:16 +10:00
Azareal 3da67241e6 fix ws_hub.go getUsers() crash bug 2021-05-05 16:24:09 +10:00
Azareal 99ac23dfd3 reduce cutoffs for LogLongTick 2021-05-04 21:31:45 +10:00
Azareal d5b4c0db57 push template_init.go 2021-05-04 21:21:53 +10:00
Azareal cff2e96915 add Count() method to PollStore
show daily task count on debug page
optimise count queries on debug page
use Count() methods on debug page where ever possible
2021-05-04 21:14:48 +10:00
Azareal 4670375933 add unlisted dev setting LogNewLongRoute 2021-05-04 21:01:21 +10:00
Azareal 16e86a9123 Add before_shutdown_tick hook.
Add after_shutdown_tick hook.
2021-05-03 20:50:01 +10:00
Azareal 7a12751e4d push analytics common 2021-05-03 11:57:53 +10:00
Azareal 726e9ce3cb Rewrite analytics routes. 2021-05-03 11:53:05 +10:00
Azareal 2550ee1ce1 fix analytics not loading 2021-05-03 11:23:37 +10:00
Azareal 513bb3c967 Push debug.go too. 2021-05-03 10:45:39 +10:00
Azareal 77291e4b44 Add ScheduledTasks and TaskSet interfaces.
Add unlisted LogLongTick developer setting.
Rearrange the order of the shutdown signal handler to figure out where it might fail.
2021-05-03 10:36:29 +10:00
Azareal 6766fd659c fine, update this file too 2021-05-02 18:54:40 +10:00
Azareal fc5b29e648 Add TickLoop struct.
Add a number of new test cases and refactor others.
Replace NotifyOne() with ActivityMatches.Add()
Shorten arr_ to a_ in tmpl_list.go
Reduce boilerplate.
2021-05-02 18:47:19 +10:00
Azareal 78fbbcda21 Optimise template generator.
Optimise mysql adapter.
Add TokenScope to mysql adapter.
Add SimpleBulkInsert() to installer.
Optimise panel.Plugins() route.
2021-04-30 08:33:02 +10:00
Azareal 39ace845b7 Add BulkExistsFunc() to LikeStore.
Add AddScheduledDayTask() and ScheduledDayTaskCount()
Reduce boilerplate.
2021-04-29 22:59:48 +10:00
Azareal ea4da062c3 Use Rstore.Exists() instead of Rstore.Get() in ReplyEditSubmit.
Reduce allocs in WsHubImpl.getUsers()
Reduce allocs in wolContextRender()
Use b.String() instead of string(b.Bytes()) in preparseWidget()
Reduce boilerplate.
2021-04-28 19:29:15 +10:00
Azareal 0c1f5cac94 Add ActivityMatches store impl.
Comment out errorBuffer.
Optimise LogWarning() with a string builder.
Avoid allocing byte slice in MicroNotFound()
Rename basePage to bp.
Reduce boilerplate.
2021-04-28 18:39:08 +10:00
Azareal 01a19ede79 Add Exec() to accDeleteBuilder.
Add DateOlderThanQ() to accCountBuilder.
Add Stmt() to accCountBuilder.
Add AccExec interface.
Optimise AccSelectBuilder.In() with a string builder.
Use Count() in DefaultActivityStream.Count()
Reduce boilerplate and duplication.
2021-04-27 20:35:10 +10:00
Azareal aa02f9fc48 Add Count()
Add Createf()
Fix inqbuild2() loop.
2021-04-27 20:24:04 +10:00
Azareal 6870d242e9 Add ClearIPs() to TopicStore.
Add LockMany() to TopicStore.
Add RemoveMany() to TopicCache.
Add ClearIPs() to PollStore.
Add Purge() to RegLogStore.
Add DeleteOlderThanDays() to RegLogStore.
Add Purge() to LoginLogStore.
Add DeleteOlderThanDays() to LoginLogStore.
Add SetInt() to MetaStore.
Add SetInt64() to MetaStore.

Use Createf() in RegLogItem.Create()
Use Count() in SQLRegLogStore.Count()
Use Count() in SQLLoginLogStore.Count()
Use Countf() in SQLLoginLogStore.CountUser()

Add trailing triple dot parser test case.
Removed a block of commented code in gen router.
Reduce boilerplate.
2021-04-27 20:20:26 +10:00
Azareal 1b7d6ac724 Add ClearIPs() to ProfileReplyStore.
Add ClearIPs() to ReplyStore.
Add ClearLastIPs() to UserStore.
Use Count() in SQLProfileReplyStore.Count()
2021-04-27 20:00:11 +10:00
Azareal 67a968caf2 Add DisableLoginLog config setting.
The tests / tickloop portions (to purge existing login logs when the setting is enabled) are coming with the tickloop rewrite.
2021-04-27 19:44:00 +10:00
Azareal 0c0f265daf Add missing DisableRegLog config setting to configuration.md 2021-04-27 19:01:45 +10:00