Commit Graph

126 Commits

Author SHA1 Message Date
drusepth
2a5859c8f6 add specialized timeline authorizer, refactor timeline controller, expose read-only timelines to contributors 2022-01-05 15:27:29 -08:00
drusepth
51dbf89010 inject contributor content even when a user has 0 pages of that type 2021-12-08 23:03:47 -08:00
drusepth
c919553501 don't include pages from contributable universes when scoped 2021-12-08 22:43:08 -08:00
drusepth
468e1ed2f0 don't duplicate contributing universes in sidenav 2021-10-04 12:52:21 -07:00
drusepth
761d909a30 typecheck before filtering on universe 2021-10-03 01:36:08 -07:00
drusepth
7e69017899 fix contributor content universe scoping 2021-10-03 01:09:01 -07:00
drusepth
1db1813d80 can't skip this before_action if it's not a before_action 2021-09-30 23:45:41 -07:00
drusepth
6a208e3016 remove set_universe_scope dependence on current_user_content cache 2021-09-30 17:36:58 -07:00
Andrew Brown
ac4c3dbd61 linkables cache safety 2021-08-11 16:53:48 -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
7ceb687fff secure universe session var 2021-08-08 12:02:20 -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
f23522e8b9 reuse user method for cache 2021-08-03 11:26:29 -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
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
b9b559ac5d polish 2021-07-04 11:03:46 -07:00
Andrew Brown
bfa9b59100 use linkable images in dropdowns instead of current page's image 2021-05-21 13:13:51 -07:00
Andrew Brown
65415b8c35 use linkable pages instead of current_user pages in link fields 2021-05-16 01:44:39 -07:00
Andrew Brown
9c8ab5ef15 show documents from contributing universes in documents#index 2021-05-10 23:48:24 -07:00
Andrew Brown
fcd7e29de4 allow @mention linking documents and timelines 2021-05-10 14:37:40 -07:00
Andrew Brown
e8c3c99a96 limit documents to universe_scope 2021-05-01 13:50:20 -07:00
Andrew Brown
b8eaa88601 general polish 2021-04-29 14:29:33 -07:00
Andrew Brown
586e48a60c show most recent 8 notifications instead of 10 so they all fit on screen 2021-04-17 23:32:58 -07:00
Andrew Brown
7bc0a4747a documents fix 2021-03-12 08:44:32 -08:00
Andrew Brown
ea1a7fc94c convert queries to arrays so they don't get remade on e.g. counts 2021-03-08 11:20:37 -08:00
Andrew Brown
11a8d57167 knock off another query 2021-03-08 01:12:58 -08:00
Andrew Brown
83146060bd cache recent content list, avoid a query, include timelines/documents, and increase limit from 10/20 to 50 for everyone 2021-03-07 18:28:36 -08:00
Andrew Brown
cf14b2cc41 wrapping up random todos 2020-07-05 19:04:01 -05:00
Andrew Brown
aa058d08b9 show the timeline editor before creating any timelines 2020-07-05 18:00:28 -05:00
Andrew Brown
bf898250e9 ugh, wip 2020-06-10 00:11:49 -05:00
Andrew Brown
4b2fd1e744 notification designs 2020-04-20 17:56:09 -05:00
Andrew Brown
736c055a23 fix sidenav counts 2020-01-15 18:37:49 -06:00
Andrew Brown
63bdf83d23 sneaky 500 2019-07-12 13:12:36 -05:00
Andrew Brown
612809e517 Re-enable linking to universes 2019-05-12 02:59:18 -05:00
Andrew Brown
175038c10c fix 500 when focused to universe 2019-05-12 02:54:56 -05:00
Andrew Brown
22fd5b71a3 allow @mentioning universes 2019-05-03 16:49:02 -05:00