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 (or automatically ?) update site config from Wallabag #1284
Comments
Yup, I had the idea since a long time ago, thanks to graby this should be easy. ;) |
to go further, it coud be great to add personnal site config directly from the config page and maybe another way to submit the config file to the community. |
I had a look to http://siteconfig.fivefilters.org/ We can develop our own tool (because siteconfig.fivefilters.org is not opensource). |
Excellent. i hope you can do that soon. |
Maybe we can also directly ask @fivefilters if they plan to release the tool as open-source. |
Hey guys, I'll try to release the code - was always intended to be out to help projects like this one. Been a bit slow doing that. To be honest, most of it is the JS stuff making use of the libraries Nicolas linked to, which I think is already viewable. But I'll release the PHP bits too. |
@fivefilters thanks ! |
Regarding the auto-update part, it seems there's no real library that does what we want here. |
cURL or wget can do what we want, maybe? |
I'll prefer cURL to avoid calling a system command.. but could be more difficult |
in owncloud admin, there is a Cron menu with Ajax, webcron and cron. |
I like the idea from @Strubbl about |
How would this work ? |
Yeah, maybe:
But I don't how could this deal on small instance (like with not that much memory). I don't know if composer will needs to build the whole deps tree or just update the repo. |
Thinking about distribution packages, it may not be possible or even desirable to overwrite the composer vendor. An alternative solution could be to let the admin specify an alternate location for graby-like files in the configuration file, which would take priority over the vendored version. The admin could then manage/update that location however they want. The obvious solution would be another git checkout, and perhaps a cron. |
Isn't it possible to modify graby in order to have something like unix configuration files, with a subfolder containing locally-defined site configuration files, which will not be overwritten when pulling from graby-site-config? As I see it, it would be a |
@techexo for custom siteconfig, I think it's better to keep them in the upper folder, like in |
I guess we could do something like this (just from reading the code and jumping around the repos):
I think this could work nicely, as the override would not need to be a clone of graby-site-config, as the PHP logic would still be in the vendors, and could be a straight Bonus points for:
|
@shtrom It doesn't need to be that complicated :) |
😬 I did say the |
Ok, so I cobbeld the following together; spoiler alert: it doesn't seem to work just yet. I added this to wallabag_core.graby:
class: Graby\Graby
arguments:
-
error_message: '%wallabag_core.fetching_error_message%'
error_message_title: '%wallabag_core.fetching_error_message_title%'
extractor:
config_builder:
site_config:
- "%kernel.root_dir%/data/site_config"
- "@wallabag_core.guzzle.http_client"
- "@wallabag_core.graby.config_builder"
calls:
- [ setLogger, [ "@logger" ] ]
tags:
- { name: monolog.logger, channel: graby } This is essentially wallabag/src/Wallabag/CoreBundle/Resources/config/services.yml Lines 39 to 50 in e586d65
ConfigBuilder pointing to data/site_config , where I checked out my shtrom/ftr-site-config.
I then tried to fetch a page from a site that I recently added to the repo. First removing the file altogether, the fetch failed, then re-adding the file... the fetch failed again 😞 |
Is there any update about this? |
We are going to use https://github.com/j0k3r/graby instead of FullTextRss in the v2. Graby will integrate site config from FiveFilters but allow to use our own.
What could be a great idea is to give ability to the user to update site config directly from Wallabag. Something like a page in the config area where you can hit an "update site config now".
The text was updated successfully, but these errors were encountered: