Open davwheat opened 3 years ago
If I'm not mistaken another issue speaks about the detrimental performance due to loading all posts numbers so that the scrubber can be rendered. A proposal that removes that performance issue while introducing the above would be a huge win imo.
If I'm not mistaken another issue speaks about the detrimental performance due to loading all posts numbers so that the scrubber can be rendered. A proposal that removes that performance issue while introducing the above would be a huge win imo.
Instead of querying the IDs of all posts in the discussion, we should add creation time to the pivot table. We'll also need to support a way to "fetch multiple columns in a single query. If we used our current serializer approach, we'd end up serially doing one query for every post in the discussion. If we could get all IDs and timestamps in one query, then we'd have a chance at implementing this.
Feature Request
Is your feature request related to a problem? Please describe. Currently, the post scrubber post number updates as you drag it, but the date below doesn't. We should make the date update as we move the scrubber, too.
Justify why this feature belongs in Flarum's core, rather than in a third-party extension The post scrubber is a core feature, but its functionality could be seen as confusing due to some content updating but others not.
Describe alternatives you've considered None
Solution I think the best way to achieve this would be passing a start and end index for every month as part of the discussion data.
We can then process this on the frontend: