[ARVADOS] updated: 1.3.0-1-g3131146af

Git user git at public.curoverse.com
Mon Dec 3 12:07:39 EST 2018


Summary of changes:
 services/api/app/models/arvados_model.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  3131146af966744a8f19e56be2d4a870bc4ab615 (commit)
      from  cc059aea76194417f5aaf37073b3ae530219b11e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 3131146af966744a8f19e56be2d4a870bc4ab615
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date:   Mon Dec 3 12:00:39 2018 -0500

    14560: Limit to_tsvector input to 8K.
    
    refs #14560
    refs #13752
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>

diff --git a/services/api/app/models/arvados_model.rb b/services/api/app/models/arvados_model.rb
index 74d1d9507..4e7f8f0bf 100644
--- a/services/api/app/models/arvados_model.rb
+++ b/services/api/app/models/arvados_model.rb
@@ -403,7 +403,7 @@ class ArvadosModel < ActiveRecord::Base
       cast = serialized_attributes[column] ? '::text' : ''
       "coalesce(#{column}#{cast},'')"
     end
-    "to_tsvector('english', substr(#{parts.join(" || ' ' || ")}, 0, 1000000))"
+    "to_tsvector('english', substr(#{parts.join(" || ' ' || ")}, 0, 8000))"
   end
 
   def self.apply_filters query, filters

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list