View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007667 | mantisbt | feature | public | 2006-12-18 03:39 | 2007-05-08 03:42 |
Reporter | zend | Assigned To | vboctor | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.1.0a1 | ||||
Fixed in Version | 1.1.0a3 | ||||
Summary | 0007667: Use $_GET parameters instead of $_POST for searches | ||||
Description | Currently, (maybe it is because the full links in Mantis are saved in a session on the server side) I can't see the full link of a query I run in mantis. | ||||
Tags | No tags attached. | ||||
Not all links will be unique. For example:
I wonder if the ability to forward links would be confusing if the results returned are not the same. |
|
There are two options for implementing this:
The second approach seems to provide more flexibility. I believe we can go ahead with this approach and leave it up to the author of the link to decide whether to use values like "Myself" or "Current Project" or to always specify the project. The other thing to take into consideration is that the current filters are based on ids rather than names. For example, project id rather than name, status numeric value rather than label, etc. The decision to make is what to expect on dynamic GET queries. The search.php script should apply the dynamic filter, then re-direct the browser to the View Issues page which should show the issues matching the filter. |
|
if it is not significantly harder (cost more) to implement, |
|
I've come across a few different cases now, though, where it would be useful to be able to simply cut-and-paste the current Mantis URL to be able to share information, especially when Mantis hosts more than one project:
Searches seem like another example. In the first three cases, the only information missing from the URL is in the MANTIS_PROJECT_COOKIE. For searches it's in the POST and the cookie. The project ID would also be required for a GET style URL search as currently the project is inferred from the cookie setting. A fair point about forwarded links being confusing if they produce different results for different users, but this would still be the case, even if you walked up to that other user's computer and selected the exact same search options as on theirs. Maybe this is simply the nature of any information system with many users with differing access levels. |
|
Another advantage of the second approach is that it would make it much easier to programmatically define searches. Or define searches in documentation, for example. "Click here for a list of unassigned bugs targeted for the 1.0 release of the TastyJamMaking project". Such searches would not have to be 'predefined' in Mantis itself and could be changed at will. |
|
ape, the changelog and roadmap have a project_id GET parameter. If not supplied, it is defaulted to current project as per the cookie. There is also a project_page.php which takes a project_id GET parameter. At the moment this redirects to View Issues page. In the future, it may show some project information, but then allow further navigation. |
|
There is now a create permlink option in the filters box which creates a short URL using tinyurl.com which points to the full URL of the filter. Also search.php was updated to support the GET parameters. |
|