Commit Graph

3356 Commits

Author SHA1 Message Date
drusepth
6a208e3016 remove set_universe_scope dependence on current_user_content cache 2021-09-30 17:36:58 -07:00
drusepth
1720c84160 nix a query 2021-09-30 17:19:17 -07:00
drusepth
45aa1b64e9 Merge branch 'master' into august-perf 2021-09-30 17:03:22 -07:00
drusepth
255a4979f7 Safer cache name 2021-09-30 17:00:12 -07:00
drusepth
3326b9affb make creatures free in october 2021-09-30 16:56:26 -07:00
drusepth
055cdd17b0 show free-creatures banner 2021-09-30 16:44:31 -07:00
drusepth
78bfb55d67 cache linkable image lookups 2021-09-30 16:44:16 -07:00
Andrew Brown
c0c559f1c4 skip some heavy cachebuilding for doc update api calls 2021-09-30 16:31:24 -07:00
drusepth
3b1820c39d new-server safety & helper methods 2021-09-29 14:27:17 -07:00
Andrew Brown
84c5208a41
Merge branch 'master' into green 2021-09-29 14:11:02 -07:00
drusepth
25532988da remove New banner 2021-09-29 13:53:24 -07:00
drusepth
3e22c2b4fc switch to more inclusive AF params 2021-09-17 14:25:32 -07:00
Andrew Brown
406105ecf0 move references into a job (needs tested) 2021-08-13 10:33:03 -07:00
Andrew Brown
22d199aead clean up code rework 2021-08-11 21:51:14 -07:00
Andrew Brown
56f2b410b5 use ContentPage piping on prompts page 2021-08-11 21:47:33 -07:00
Andrew Brown
09f248d88f save a bunch of queries by using cached ContentPages on dashboard 2021-08-11 19:36:40 -07:00
Andrew Brown
ed71129c48 get serendipitous questions working on content#index for ContentPage data 2021-08-11 17:15:32 -07:00
Andrew Brown
ac4c3dbd61 linkables cache safety 2021-08-11 16:53:48 -07:00
Andrew Brown
79267129d7 use contentpages in serendipitous 2021-08-09 13:59:21 -07:00
Andrew Brown
e4e54854a9 re-enable universe filtering on timelines#index 2021-08-09 12:47:21 -07:00
Andrew Brown
2fb72180d2 fix default image url 2021-08-09 12:10:18 -07:00
Andrew Brown
d614ee1f03 Merge branch 'master' into august-perf 2021-08-09 02:13:50 -07:00
Andrew Brown
0a42fe635c better safety around using @current_user_content 2021-08-09 01:41:23 -07:00
Andrew Brown
5c972738db WIP migrating to wide ContentPage usage 2021-08-09 01:29:58 -07:00
Andrew Brown
b12900a59b clean up previous commit 2021-08-08 17:49:19 -07:00
Andrew Brown
0d5e6db79a rewrite linkable content caching again, to exclude current_user_contnet ids 2021-08-08 17:37:28 -07:00
Andrew Brown
4e782bf55e include contributed content in contributable content 2021-08-08 17:11:37 -07:00
Andrew Brown
3f18f8c6ee wip before going down the ContentPage rabbit hole 2021-08-08 15:47:48 -07:00
Andrew Brown
7ceb687fff secure universe session var 2021-08-08 12:02:20 -07:00
Andrew Brown
56cb9a6048 remove animate-rails 2021-08-03 18:52:46 -07:00
Andrew Brown
a60ddb81f1 restyle icons for year in review report 2021-08-03 16:21:06 -07:00
Andrew Brown
8bad87b63a doc update readability 2021-08-03 14:33:03 -07:00
Andrew Brown
010f57c9a2 skip ui cache on document update 2021-08-03 14:31:51 -07:00
Andrew Brown
d8b7e3b260 remove yet another set of n+1 2021-08-03 14:12:04 -07:00
Andrew Brown
08b86f17f0 kill N+1s for loading AttributeCategories from template also 2021-08-03 13:43:21 -07:00
Andrew Brown
89294471f8 codesmell todo 2021-08-03 13:40:35 -07:00
Andrew Brown
a6d169fa92 this removes ~100 field queries for default character template, oof 2021-08-03 13:38:25 -07:00
Andrew Brown
512bff2aae move the old doc user includes 2021-08-03 12:02:00 -07:00
Andrew Brown
4a48dc0253 standardize @current_user_content vs @linkables 2021-08-03 11:57:06 -07:00
Andrew Brown
f977c58666 simplify valid_content_types usage 2021-08-03 11:47:08 -07:00
Andrew Brown
54b1c43e34 skip ui cache on content api calls 2021-08-03 11:43:45 -07:00
Andrew Brown
7aafbdd25d freeze strings in ContentController 2021-08-03 11:36:17 -07:00
Andrew Brown
dd969ba39f scratch that, lol 2021-08-03 11:27:41 -07:00
Andrew Brown
3db83d9e75 reuse cached universes to fetch ids 2021-08-03 11:27:04 -07:00
Andrew Brown
f23522e8b9 reuse user method for cache 2021-08-03 11:26:29 -07:00
Andrew Brown
fb8e298948 add header to recent edits stream 2021-08-03 11:21:00 -07:00
Andrew Brown
1b99bdf9dc remove unnecessary queries 2021-08-03 11:19:21 -07:00
Andrew Brown
b2ef0f5981 helper for recently-created pages cache 2021-08-03 11:17:27 -07:00
Andrew Brown
7aed61d812 freeze AC strings 2021-08-03 01:50:17 -07:00
Andrew Brown
832bb924bf remove user#linkable_universes 2021-08-03 01:46:31 -07:00
Andrew Brown
34b5c753d4 reuse linkables cache instead of making new queries 2021-08-03 01:45:39 -07:00
Andrew Brown
33625960f9 tweak cache guards 2021-08-03 01:41:07 -07:00
Andrew Brown
64715d334b collapse the loops 2021-08-03 01:38:42 -07:00
Andrew Brown
2eb50f510b only query for contributable content if you're a contributor to any universes 2021-08-03 01:35:57 -07:00
Andrew Brown
8bad60a773 rewrite cache_linkable_content_for_each_content_type with far fewer queries 2021-08-03 01:34:05 -07:00
Andrew Brown
062fef26b8 don't requery if we repeat a cache call 2021-08-03 01:21:02 -07:00
Andrew Brown
753452f314 contrib helper cache 2021-08-03 01:19:55 -07:00
Andrew Brown
1b50e1b21f break cache methods out 2021-08-03 01:15:43 -07:00
Andrew Brown
8223f99f89 query smaller table 2021-08-03 01:03:49 -07:00
Andrew Brown
f3e61a2d57 -~3 queries 2021-08-03 01:02:43 -07:00
Andrew Brown
258be6f917 -1 query 2021-08-03 01:00:11 -07:00
Andrew Brown
adb063393e Merge branch 'master' into rails-6.1 2021-07-29 02:12:44 -07:00
Andrew Brown
25a3785db0 add green link to content info page 2021-07-20 19:09:38 -07:00
Andrew Brown
ea77009843 html polish 2021-07-20 19:02:43 -07:00
Andrew Brown
ba44ecb1aa more spacing on info pages 2021-07-20 18:28:39 -07:00
Andrew Brown
ebc1e3d4b1 add icon 2021-07-20 18:20:18 -07:00
Andrew Brown
5cc1fd0fc6 give a little breathing room to content info pages 2021-07-20 18:17:40 -07:00
Andrew Brown
28e5ffd469 polish up green page 2021-07-20 18:12:07 -07:00
Andrew Brown
29fae1e745 table polish 2021-07-20 17:59:06 -07:00
Andrew Brown
1ce86ab03e better estimate on document pages 2021-07-20 17:58:59 -07:00
Andrew Brown
98480c5549 permission update for debugging abusive doc 2021-07-20 17:58:42 -07:00
Andrew Brown
1744b49ac3 add detail tooltips to green table 2021-07-20 17:30:19 -07:00
Andrew Brown
dd5f0f20f0 add public site-wide green report 2021-07-20 17:20:49 -07:00
Andrew Brown
f2ec93a4d7 be a little more conservative in tree estimate tho 2021-07-20 14:12:41 -07:00
Andrew Brown
f6cb442991 update sheets per tree count 2021-07-20 13:31:05 -07:00
Andrew Brown
04b1327504 Merge branch 'master' into green 2021-07-20 13:30:29 -07:00
Andrew Brown
5b29f1bdcc stronger guard vs deleted universes 2021-07-20 11:42:29 -07:00
Andrew Brown
349a6e7ca3 reduce some estimates 2021-07-20 02:37:13 -07:00
Andrew Brown
92958b93f5 Merge branch 'master' into green 2021-07-20 02:34:57 -07:00
Andrew Brown
f462c0e222 whoopsies, typo 2021-07-20 02:27:53 -07:00
Andrew Brown
1030f6d070 missing method 2021-07-20 02:23:19 -07:00
Andrew Brown
fb9e82abc7 oof, this needs to go BEFORE we clobber @content 2021-07-20 02:21:39 -07:00
Andrew Brown
d5f498b97b need this for folder view 2021-07-20 02:04:14 -07:00
Andrew Brown
f87dd8e0e9 Tweaks 2021-07-19 23:49:31 -07:00
Andrew Brown
faf34ddc9e commas 2021-07-19 23:01:23 -07:00
Andrew Brown
01d6ba2c5c add community footprint 2021-07-19 22:02:07 -07:00
Andrew Brown
79415904b8 add start to green estimation service 2021-07-19 14:42:04 -07:00
Andrew Brown
0f73f85659 don't translate the site name either 2021-07-18 19:40:49 -07:00
Andrew Brown
07b7845068 don't let google translate translate material icons 2021-07-18 19:37:30 -07:00
Andrew Brown
ffee832158 s/.color}-text/.text_color}/ 2021-07-18 18:29:06 -07:00
Andrew Brown
ee3200976d s/.color %>-text/.text_color %>/ 2021-07-18 18:22:58 -07:00
Andrew Brown
f155c2b533 move stranded page groupers into folder 2021-07-18 18:04:03 -07:00
Andrew Brown
f56c8bc46b add text_color helper methods 2021-07-18 18:02:52 -07:00
Andrew Brown
cf999fbbe8 add doc table background for light/dark themes 2021-07-18 10:55:33 -07:00
Andrew Brown
b575dd9323 reuse PageTag icon from model 2021-07-18 10:43:55 -07:00
Andrew Brown
6da1d19ccb more icons & styling in document meta modal 2021-07-18 10:38:46 -07:00
Andrew Brown
b22034e812 style modal lhs headers 2021-07-18 10:34:18 -07:00
Andrew Brown
67f47f61f6 add universe dropdown to folder meta modal 2021-07-18 10:31:10 -07:00
Andrew Brown
88fa45dc26 style view/edit buttons in doc table 2021-07-18 10:24:52 -07:00
Andrew Brown
007017e8a7 thin-ize last-edited column a bit 2021-07-18 10:20:11 -07:00