[Git][noosfero/noosfero][master] adapting elastic search to editor refactoring

Leandro Nunes gitlab at mg.gitlab.com
Sat Aug 13 07:30:14 BRT 2016


Leandro Nunes pushed to branch master at Noosfero / noosfero


Commits:
033ff0f5 by Leandro Nunes dos Santos at 2016-08-13T07:29:45-03:00
adapting elastic search to editor refactoring

- - - - -


2 changed files:

- plugins/elasticsearch/lib/ext/text_article.rb
- plugins/elasticsearch/test/api/elasticsearch_plugin_entities_test.rb


Changes:

=====================================
plugins/elasticsearch/lib/ext/text_article.rb
=====================================
--- a/plugins/elasticsearch/lib/ext/text_article.rb
+++ b/plugins/elasticsearch/lib/ext/text_article.rb
@@ -1,6 +1,4 @@
 # REQUIRE TO LOAD DESCENDANTS FROM TEXT_ARTICLE
-require_dependency 'raw_html_article'
-require_dependency 'tiny_mce_article'
 require_dependency 'text_article'
 
 require_relative '../searchable_model_helper'


=====================================
plugins/elasticsearch/test/api/elasticsearch_plugin_entities_test.rb
=====================================
--- a/plugins/elasticsearch/test/api/elasticsearch_plugin_entities_test.rb
+++ b/plugins/elasticsearch/test/api/elasticsearch_plugin_entities_test.rb
@@ -15,8 +15,8 @@ class ElasticsearchPluginEntitiesTest < ActiveSupport::TestCase
 
     fast_create UploadedFile, name: "sample uploadedfile", created_at: 3.days.ago, updated_at: 1.days.ago, author_id: user.person.id, abstract: "sample abstract", profile_id: user.person.id
     fast_create Event, name: "sample event", created_at: 20.days.ago, updated_at: 5.days.ago, author_id: user.person.id, abstract: "sample abstract", profile_id: user.person.id
-    fast_create RawHTMLArticle, name: "sample raw html article", created_at: 15.days.ago ,updated_at: 5.days.ago, author_id: user.person.id, profile_id: user.person.id
-    fast_create TinyMceArticle, name: "sample tiny mce article", created_at: 5.days.ago, updated_at: 5.days.ago, author_id: user.person.id, profile_id: user.person.id
+    fast_create TextArticle, name: "sample raw html article", created_at: 15.days.ago ,updated_at: 5.days.ago, author_id: user.person.id, profile_id: user.person.id
+    fast_create TextArticle, name: "sample tiny mce article", created_at: 5.days.ago, updated_at: 5.days.ago, author_id: user.person.id, profile_id: user.person.id
   end
 
   should 'show attributes from person' do



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/033ff0f50ee79d62570605c262db368c10560ec2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160813/a166a01c/attachment-0001.html>


More information about the Noosfero-dev mailing list