]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #3719 from wallabag/fix-sort-parameters
authorKevin Decherf <kevin@kdecherf.com>
Fri, 7 Sep 2018 15:02:39 +0000 (17:02 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Sep 2018 15:02:39 +0000 (17:02 +0200)
Fix sort parameters

.scrutinizer.yml
package.json
src/Wallabag/CoreBundle/Repository/EntryRepository.php
tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
yarn.lock

index dee92922afd2b5d672789943e8e44439cdfefe6a..194297f672c4e4aacdc98da01d916d3076a50152 100644 (file)
@@ -26,3 +26,18 @@ tools:
 checks:
     php:
         code_rating: true
+
+# use the new PHP analysis engine
+# https://scrutinizer-ci.com/docs/tools/php/php-analyzer/guides/migrate_to_new_php_analysis
+build:
+    nodes:
+        analysis:
+            tests:
+                override:
+                    - php-scrutinizer-run
+
+    dependencies:
+        override:
+            - npm install -g 'yarn'
+            - yarn install --force
+            - COMPOSER_MEMORY_LIMIT=-1 composer install -o --no-interaction --no-progress --prefer-dist
index 8d856bbb2803154f22bfbd64e8c610b1a4c4ed0d..ac894e7978e7434e5b4ade38b881d07448e27c9c 100644 (file)
@@ -1,13 +1,13 @@
 {
   "name": "wallabag",
-  "version": "2.2.2",
+  "version": "2.3.3",
   "description": "wallabag is a self hostable application for saving web pages",
   "private": true,
   "directories": {
     "doc": "docs"
   },
   "engines": {
-    "node": ">4.8"
+    "node": ">=6.10"
   },
   "repository": {
     "type": "git",
index 34123eea699bff74a0ea1e7b126fd390a8b0dbf0..83379998d203bdc2896195da2ab30fe3a4c79004 100644 (file)
@@ -450,7 +450,7 @@ class EntryRepository extends EntityRepository
      */
     private function getSortedQueryBuilderByUser($userId, $sortBy = 'createdAt', $direction = 'desc')
     {
-        return $this->sortQueryBuilder($this->getQueryBuilderByUser($userId));
+        return $this->sortQueryBuilder($this->getQueryBuilderByUser($userId), $sortBy, $direction);
     }
 
     /**
index 6a4c775b787405217bc7f1455862d809483f6c63..3d599ec8dc52cdf48cc246ebb8e35e962a0be197 100644 (file)
@@ -1325,12 +1325,12 @@ class EntryControllerTest extends WallabagCoreTestCase
                 'http://www.hao123.com/shequ?__noscript__-=1',
                 'zh_CN',
             ],
-            'ru_RU' => [
-                'http://netler.ru/ikt/windows-error-reporting.htm',
-                'ru_RU',
+            'ru' => [
+                'https://www.kp.ru/daily/26879.7/3921982/',
+                'ru',
             ],
             'pt_BR' => [
-                'http://precodoscombustiveis.com.br/postos/cidade/4121/pr/maringa',
+                'https://politica.estadao.com.br/noticias/eleicoes,campanha-catatonica,70002491983',
                 'pt_BR',
             ],
             'fucked_list_of_languages' => [
index 1dd45be40b8056f23b6f8b0c07863a17be76eddf..7b62e0f9c34db9f035b69a9d4698fb0e9ecd5abb 100644 (file)
--- a/yarn.lock
+++ b/yarn.lock
@@ -2178,6 +2178,10 @@ hawk@~3.1.3:
     hoek "2.x.x"
     sntp "1.x.x"
 
+highlight.js@^9.12.0:
+  version "9.12.0"
+  resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.12.0.tgz#e6d9dbe57cbefe60751f02af336195870c90c01e"
+
 hmac-drbg@^1.0.0:
   version "1.0.1"
   resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1"