-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Manually" (with SQL) fill the default timelines #696
Conversation
Codecov Report
@@ Coverage Diff @@
## master #696 +/- ##
==========================================
+ Coverage 39.25% 39.32% +0.07%
==========================================
Files 72 72
Lines 9498 9498
Branches 2265 2265
==========================================
+ Hits 3728 3735 +7
+ Misses 4713 4706 -7
Partials 1057 1057 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please explain the difference between the two queries, and why they are (both) necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙋
INSERT INTO timeline (post_id, timeline_id) SELECT posts.id, (SELECT id FROM timeline_definition WHERE query = 'local' LIMIT 1) FROM blogs INNER JOIN posts ON posts.blog_id = blogs.id WHERE blogs.instance_id = 1; | ||
|
||
-- Add all articles to the the federated timeline | ||
INSERT INTO timeline (post_id, timeline_id) SELECT posts.id, (SELECT id FROM timeline_definition WHERE query = 'all' LIMIT 1) FROM posts; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so how come this one isn't enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are not the same timelines/feeds, we need to add posts to both of them (do you want me to explain that in a comment too?)
Superseded by #704 |
Fixes #692
Adding a plm command was too much refactoring (because the timelines need a
PlumeRocket
whileplm
only has aConnection
), so I didn't do it.