clem / slack-to-wallabag Goto Github PK
View Code? Open in Web Editor NEWA bridge between Slack and Wallabag
License: GNU General Public License v3.0
A bridge between Slack and Wallabag
License: GNU General Public License v3.0
How can I solve this problem? Thanks a lot.
-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
-----> PHP app detected
-----> Bootstrapping...
-----> Installing platform packages...
- php (7.4.22)
- composer (1.10.22)
- apache (2.4.48)
- nginx (1.20.1)
-----> Installing dependencies...
Composer version 1.10.22 2021-04-27 13:10:45
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 71 installs, 0 updates, 0 removals
- Installing ocramius/package-versions (1.4.2): Downloading (100%)
- Installing symfony/flex (v1.6.2): Downloading (100%)
Prefetching 69 packages
- Downloading (100%)
- Installing doctrine/lexer (1.0.2): Loading from cache
- Installing doctrine/annotations (v1.8.0): Loading from cache
- Installing doctrine/reflection (1.2.1): Loading from cache
- Installing doctrine/event-manager (1.1.0): Loading from cache
- Installing doctrine/collections (1.6.4): Loading from cache
- Installing doctrine/cache (1.10.0): Loading from cache
- Installing doctrine/persistence (1.3.7): Loading from cache
- Installing doctrine/inflector (1.3.1): Loading from cache
- Installing doctrine/common (2.12.0): Loading from cache
- Installing doctrine/instantiator (1.3.0): Loading from cache
- Installing psr/container (1.0.0): Loading from cache
- Installing symfony/service-contracts (v1.1.8): Loading from cache
- Installing symfony/stopwatch (v4.4.7): Loading from cache
- Installing symfony/polyfill-php73 (v1.18.1): Loading from cache
- Installing symfony/polyfill-mbstring (v1.18.1): Loading from cache
- Installing symfony/console (v4.4.7): Loading from cache
- Installing zendframework/zend-eventmanager (3.2.1): Loading from cache
- Installing zendframework/zend-code (3.4.1): Loading from cache
- Installing ocramius/proxy-manager (2.1.1): Loading from cache
- Installing doctrine/dbal (v2.9.3): Loading from cache
- Installing doctrine/migrations (2.2.1): Loading from cache
- Installing ralouphie/getallheaders (3.0.3): Loading from cache
- Installing psr/http-message (1.0.1): Loading from cache
- Installing guzzlehttp/psr7 (1.6.1): Loading from cache
- Installing guzzlehttp/promises (v1.3.1): Loading from cache
- Installing guzzlehttp/guzzle (6.5.2): Loading from cache
- Installing j7mbo/twitter-api-php (1.0.6): Loading from cache
- Installing jdorn/sql-formatter (v1.2.17): Loading from cache
- Installing sabre/uri (1.2.1): Loading from cache
- Installing symfony/polyfill-php80 (v1.18.1): Loading from cache
- Installing symfony/polyfill-ctype (v1.18.1): Loading from cache
- Installing symfony/polyfill-php72 (v1.18.1): Loading from cache
- Installing symfony/polyfill-intl-normalizer (v1.18.1): Loading from cache
- Installing symfony/polyfill-intl-idn (v1.18.1): Loading from cache
- Installing symfony/mime (v4.4.13): Loading from cache
- Installing symfony/http-foundation (v4.4.13): Loading from cache
- Installing symfony/event-dispatcher-contracts (v1.1.9): Loading from cache
- Installing symfony/event-dispatcher (v4.4.13): Loading from cache
- Installing symfony/var-dumper (v4.4.13): Loading from cache
- Installing psr/log (1.1.3): Loading from cache
- Installing symfony/debug (v4.4.13): Loading from cache
- Installing symfony/error-handler (v4.4.13): Loading from cache
- Installing symfony/http-kernel (v4.4.13): Loading from cache
- Installing symfony/routing (v4.4.7): Loading from cache
- Installing symfony/finder (v4.4.7): Loading from cache
- Installing symfony/filesystem (v4.4.7): Loading from cache
- Installing symfony/dependency-injection (v4.4.7): Loading from cache
- Installing symfony/config (v4.4.7): Loading from cache
- Installing symfony/var-exporter (v4.4.7): Loading from cache
- Installing psr/cache (1.0.1): Loading from cache
- Installing symfony/cache-contracts (v1.1.7): Loading from cache
- Installing symfony/cache (v4.4.7): Loading from cache
- Installing symfony/framework-bundle (v4.4.7): Loading from cache
- Installing sensio/framework-extra-bundle (v5.5.3): Loading from cache
- Installing symfony/doctrine-bridge (v4.4.7): Loading from cache
- Installing nikic/php-parser (v4.3.0): Loading from cache
- Installing symfony/maker-bundle (v1.14.6): Loading from cache
- Installing doctrine/orm (v2.7.2): Loading from cache
- Installing doctrine/doctrine-bundle (2.0.7): Loading from cache
- Installing doctrine/doctrine-migrations-bundle (2.1.2): Loading from cache
- Installing symfony/orm-pack (v1.0.8): Loading from cache
- Installing symfony/translation-contracts (v1.1.7): Loading from cache
- Installing symfony/translation (v4.4.7): Loading from cache
- Installing twig/twig (v2.12.5): Loading from cache
- Installing symfony/twig-bridge (v4.4.7): Loading from cache
- Installing symfony/twig-bundle (v4.4.7): Loading from cache
- Installing symfony/yaml (v4.4.7): Loading from cache
- Installing palanik/wrapi (v0.1.7): Loading from cache
- Installing wrapi/slack (v0.1.6): Loading from cache
Package zendframework/zend-eventmanager is abandoned, you should avoid using it. Use laminas/laminas-eventmanager instead.
Package zendframework/zend-code is abandoned, you should avoid using it. Use laminas/laminas-code instead.
Generating optimized autoload files
Deprecation Notice: Class wrapi\NestedDeco located in ./vendor/palanik/wrapi/src/nester.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///tmp/build_1c3eac5d/.heroku/php/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
33 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
Executing script cache:clear [OK]
Executing script assets:install --symlink --relative public [OK]
-----> Running 'composer compile'...
> php bin/console doctrine:migrations:migrate
[error] Error thrown while running command "doctrine:migrations:migrate". Message: "Class 'Doctrine\DBAL\Migrations\AbstractMigration' not found"
[critical] Uncaught Error: Class 'Doctrine\DBAL\Migrations\AbstractMigration' not found
In Version20180206232943.php line 11:
Attempted to load class "AbstractMigration" from namespace "Doctrine\DBAL\M
igrations".
Did you forget a "use" statement for "Doctrine\Migrations\AbstractMigration
"?
doctrine:migrations:migrate [--write-sql [WRITE-SQL]] [--dry-run] [--query-time] [--allow-no-migration] [--all-or-nothing [ALL-OR-NOTHING]] [--configuration [CONFIGURATION]] [--db-configuration [DB-CONFIGURATION]] [--db DB] [--em EM] [--shard SHARD] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<version>]
Script php bin/console doctrine:migrations:migrate handling the compile event returned with error code 255
! ERROR: Compile step failed!
!
! Installation of dependencies was successful, but the custom
! script you're using to perform actions after 'composer install'
! failed with the error above.
!
! Check that the 'compile' command(s) in the 'scripts' section of
! your 'composer.json' are working properly and not running into
! timeouts or memory limits.
!
! For more information on the 'composer compile' step, refer to
! https://devcenter.heroku.com/articles/php-support
! Push rejected, failed to compile PHP app.
! Push failed
Add this "Deploy to Heroku" button:
Also add app.json
file with the following information:
{
"name": "Slack To Wallabag",
"description": "A bridge between Slack and Wallabag",
"repository": "https://github.com/clem/slack-to-wallabag",
"keywords": ["php", "Slack", "Wallabag"],
"env": {
"APP_ENV_CONFIG_VARIABLE": {
"value": ""
}
}
}
With all the APP configuration variables
Test all services with PHPUnit
Refactor this method to lower the complexity.
Split it in two by creating a new getLinkUrlFromMessageAttachment()
method
Hi !
Could you confirm me that private channel from wallabag didn't work?
Is it possible to make this working or it's an api limitation problem?
Thanks!
In LinksImportHelper::getLinkUrlFromMessage(), handle the case when a message contains multiple links
Put all the Frappe Chart logic in a dedicated service and template
Hi,
It would be great to have a APP_IMPORT_ONLY_CHANNELS
option to specify the channels we want to crawl because in my case, I have only 2 / 60 channels for which I want links to go in Wallabag (and the chan to exclude is going to grow, so the "exclude chans" param is not very convenient).
Good job by the way ;)
Hi,
When running php bin/console stw:crawl:slack
, I got the following error :
In AbstractMySQLDriver.php line 118:
An exception occurred while executing 'INSERT INTO slack_user (slack_id, username, real_name, avatar) VALUES (?, ?, ?, ?)' with params ["XXXXXXXXX", "nom-bot", null, null]:
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'real_name' cannot be null
In PDOStatement.php line 107:
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'real_name' cannot be null
In PDOStatement.php line 105:
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'real_name' cannot be null
(Note: I replaced the "slack_id" in the error message)
Maybe it would be good to fill the real_name
(if empty) with the username
and keep the real_name
not nullable.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.