Global search

Project:ProjectPier
Version:0.8.6-stable
Component:Code
Category:feature request
Priority:normal
Assigned:phpfreak
Status:closed - fixed
Description

There is a forum topic requesting a global search feature for clients. A global search might be very useful if you have a lot of active or closed projects in your installation and you are looking for an information in a message but do not know when and on which project this info was stored.

IMHO this is not possible under the current permission structure and the search function is only related to the currently open project.

We should rethink that because it might useful for an administrator to do a global search. I can also imagine if we have a more detailed role structure that an engagement manager or project manager can search all "his" projects, without seeing the other projects he is not involveved in. In the next step we could have a corresponding role on the client side (account manager).

I like the idea of a global search. And I can't see why this should be a problem: Just do the search, then when building the result list just filter all results where the user doesn't have the right to see it.

#1

Where would you suggest this go in the UI? Top nav bar as a "Search" tab?

#2
Version:<none>» 0.8.5.0-Beta1

We can have a drop down select beside the search input with the choices:
- in all projects
- in this project (visible only if you are in a project)
- in active projects
- in inactive projects

So after that the search form can be display in all page.

I think we can have also an advanced search to search only for "ticket", "people" and so...

#3

We are working on this feature. Please contact at netexbd@gmail.com for paid service.

Thanks

#4

Netexbd,

I'm not sure what you mean by "paid service", but just for clarification, per the license, any enhancements you make to projectpier should be submitted back to the project in the form of a patch for inclusion into future releases.

#5

has there been any development on this feature - a global search would make this so much easier to use for my organization.
Thanks

#6
Version:0.8.5.0-Beta1» 0.8.6-stable
Assigned to:Visitor» phpfreak
Status:new» open - assigned

Added to 0.9 wish list

http://www.projectpier.org/node/2004#comment-5206

#7

The attached patch gives administrators the ability to search over all projects and all objects. Project status is ignored. Private status is also ignored.

The attached patch should be unzipped in the directory where init.php is located.

Enjoy!

AttachmentSize
130-global-search.zip 1.9 KB
#8

Hello,

Apologies in advance if I'm missing something obvious -- I'd be unsurprised if I were. ;) Having said that, I've downloaded and installed the global search plugin, but I don't see that anything has changed.

That is, I only see a search box when I'm looking at a specific project, and, that search box still only seems to search the project I'm viewing.

I'm running 0.8.6 and did unzip the patch file within the directory where init.php lives, which added the file application/models/searchable_projects/SearchableObjects.class.php to the directory structure.

Thanks,
Matt

#9

Please check if you find this code

      if (logged_user()->isAdministrator()) {
        return DB::prepareString('MATCH (`content`) AGAINST (? IN BOOLEAN MODE)', array($search_for));
      }

in application/models/searchable_objects/SearchableObjects.class.php

When I wrote init.php, I meant the same folder as README.txt. Later I realized every plugin has an init.php. Oops.

#10

In "application/models/searchable_objects/SearchableObjects.class.php" I do not see that code.

In "application/models/searchable_projects/SearchableObjects.class.php" I do see that code. The zip file I have has the searchable_projects directory structure.

Thanks,
-Matt

#11
Status:open - assigned» closed - fixed

Oops. That is a mistake in the zip. It should be searchable_objects. Just copy that file to searchable_objects and remove searchable_projects.