24 Jun, 2015
1 commit
-
- Fixed bug on GET enterprise API showing communities and vice-versa. - Improved POST comment API to recieve multiple params, such as Title. Signed-off-by: André Bernardes <andrebsguedes@gmail.com> Signed-off-by: Tallys Martins <tallysmartins@gmail.com>
23 Jun, 2015
3 commits
-
Georef e cosmética See merge request !608
20 Jun, 2015
1 commit
-
scopes are defined as class methods on the singleton of the class they were named instead of the class that calls them, so regardless if they are called by Enterprise or Community, they were defined on Organization, so #visible_for_person() always gives us `WHERE "profiles"."type" IN ('Organization', 'Enterprise', 'Community')` This wouldn't be a problem if rails 3.2 didn't merge the WHERE clauses of nested scopes, which causes the previous filtering by type of Enterprise/Community to be thrown away in favor of the broader one. This was fixed in later rails versions but we want to be able to search only for Enterprises or Communities, so I translated the scope to a class method on the parent class Organization, so it can be inherited by the other.
19 Jun, 2015
9 commits
-
A note about privacy, prevent devs to commit a mistake.
18 Jun, 2015
2 commits
17 Jun, 2015
1 commit
-
Always show parent and children when getting a specific category with id
16 Jun, 2015
1 commit
15 Jun, 2015
2 commits
-
Conflicts: lib/noosfero/plugin.rb test/unit/article_test.rb test/unit/person_test.rb
14 Jun, 2015
1 commit
-
Support plugin to be defined as module instead of object This makes possible for a plugin to be defined as module and have its main class defined inside it with the name Base (e.g. MyPlugin::Base). The advantages of this is to correctly scope plugins constants inside the module. There are many conflicts with the core if the plugin is defined as klass, for example: - if you define a MyPlugin::DisplayHelper you'll get the error 'warning: toplevel constant DisplayHelper referenced by MyPlugin::DisplayHelper' and your class won't be loaded unless you put a "require 'my_plugin/display_helper'" - `require` is also needed for contants with the sames of constants declared under Noosfero::Plugin. For example, if you define a MyPlugin::Manager or MyPlugin::Settings, Noosfero::Plugin::Manager or Noosfero::Plugin::Settings will be returned instead of your plugin's definition. - other hard to debug errors may also happen. This also encapsulates loading procedures into methods of Noosfero::Plugin. See merge request !482
13 Jun, 2015
2 commits
-
This makes possible for a plugin to be defined as module and have its main class defined inside it with the name Base (e.g. MyPlugin::Base). The advantages of this is to correctly scope plugins constants inside the module. There are many conflicts with the core if the plugin is defined as klass, for example: - if you define a MyPlugin::DisplayHelper you'll get the error 'warning: toplevel constant DisplayHelper referenced by MyPlugin::DisplayHelper' and your class won't be loaded unless you put a "require 'my_plugin/display_helper'" - `require` is also needed for contants with the sames of constants declared under Noosfero::Plugin. For example, if you define a MyPlugin::Manager or MyPlugin::Settings, Noosfero::Plugin::Manager or Noosfero::Plugin::Settings will be returned instead of your plugin's definition. - other hard to debug errors may also happen. This also encapsulates loading procedures into methods of Noosfero::Plugin.
12 Jun, 2015
6 commits
-
Signed-off-by: Antonio Terceiro <terceiro@colivre.coop.br> Signed-off-by: Arthur Del Esposte <arthurmde@gmail.com> Signed-off-by: Gabriela Navarro <navarro1703@gmail.com>
-
Signed-off-by: Arthur Del Esposte <arthurmde@gmail.com> Signed-off-by: David Carlos <ddavidcarlos1392@gmail.com> Signed-off-by: Fabio Teixeira <fabio1079@gmail.com> Signed-off-by: Gabriela Navarro <navarro1703@gmail.com>
-
Signed-off-by: Arthur Del Esposte <arthurmde@gmail.com> Signed-off-by: David Carlos <ddavidcarlos1392@gmail.com> Signed-off-by: Gabriela Navarro <navarro1703@gmail.com>
11 Jun, 2015
11 commits
-
Signed-off-by: Tallys Martins <tallysmartins@gmail.com> Signed-off-by: André Bernardes <andrebsguedes@gmail.com>
-
- Refactoring CSS to better display folder itens - Creating method to display uploaded file names with extension in upper case Signed-off-by: Arthur Del Esposte <arthurmde@gmail.com> Signed-off-by: André Bernardes <andrebsguedes@gmail.com> Signed-off-by: Tallys Martins <tallysmartins@gmail.com>
-
- The loading bar was fixed to fix media_panel_upload broken tests - The noosfero_steps was fixed to get the first box(this was breaking when it was on the environment. Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>
-
Signed-off-by: André Guedes <andrebsguedes@gmail.com> Signed-off-by: Arthur Del Esposte <arthurmde@gmail.com> Signed-off-by: Fabio Teixeira <fabio1079@gmail.com> Signed-off-by: Tallys Martins <tallysmartins@yahoo.com.br>
-
Signed-off-by: André Guedes <andrebsguedes@gmail.com> Signed-off-by: Arthur Del Esposte <arthurmde@gmail.com> Signed-off-by: Fabio Teixeira <fabio1079@gmail.com> Signed-off-by: Tallys Martins <tallysmartins@yahoo.com.br>
-
See merge request !563
-
Whenever you have 2 or more tags with the same name but different cases, ActsAsTaggableOn returns an empty list of objects tagged with either of the tags. To solve this problem, we must not have tags with different cases stored. Performance was my primal concern on this migration since we have instances that have over 130k tags registered. So I decided to convert every tag to lower case. This is the fastest way I could conceive this migration and still it might take a lot of time. Here is basic resume of what it basically does: x: number of new downcased tags created. y: number of oddcased tags. z: number of tags 1. Find all tags do not have a downcased form already created - [1 fast select query]. 2. Create a downcased version of the above queries - [x slow update queries but n is usually low because a minority of tags have odd case and all different cases of a single word generate only 1 query]. 3. Update taggings relations based on new ids - [1 slow update and 2 join queries]. 4. Updates the taggings_count of every tag - [1 slow update with z fast selects] 5. Delete all unused tags tags - [1 slow delete query]. Signed-off-by: Larissa Reis <larissa@colivre.coop.br>