Roberto Rosario
20acc24c7f
Backport search improvements, remove SEARCH_LIMIT
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-26 00:35:55 -04:00
Roberto Rosario
36a51eeb73
Switch to full app paths
...
Instead of inserting the path of the apps into the Python app,
the apps are now referenced by their full import path.
This solves name clashes with external or native Python libraries.
Example: Mayan statistics app vs. Python new statistics library.
Every app reference is now prepended with 'mayan.apps'.
Existing config.yml files need to be updated manually.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-05 02:02:57 -04:00
Simeon Walker
4bbd5dab70
Fix super call in APIAdvancedSearchView
2019-02-14 10:10:31 +00:00
Michael Price
1fc06a350b
Consolidate the docstring of the API methods into a class docstring.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:22:35 -04:00
Michael Price
702618b924
SearchModel no longer returns result_set. It is unfiltered and unused.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:38:53 -04:00
Michael Price
d93fafcf57
Return the result's serializer only during use not during introspection.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:38:39 -04:00
Michael Price
4378b28777
Update API vies and serializers for the latest Django REST framework version. Replace DRF Swagger with DRF-YASG.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:31:22 -04:00
Roberto Rosario
6c6ca38374
Replace all instances of unicode only handling to use force_text.
...
Replace all __unicode__ methods to __str__ and the
@python_2_unicode_compatible decorator.
Replace all instance of smart_str, smart_unicode, force_uncode
with force_text.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-05 15:03:24 -04:00
Roberto Rosario
ca12bdcced
Add API endpoint to show all available search models.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-06-07 13:54:32 -04:00
Roberto Rosario
5c9a34ab5e
PEP8 cleanups
2016-10-28 03:06:29 -04:00
Roberto Rosario
c10637aaa4
Update dynamic_search app API to support document page searches.
2016-10-28 02:44:02 -04:00
Roberto Rosario
aef395f4df
Remove support for recent searches
2016-10-27 03:59:14 -04:00
Roberto Rosario
2b97f4a72f
Remove the delete recent search API endpoint. Improve docsctring.
2015-09-17 19:30:02 -04:00
Roberto Rosario
68f3c6eee7
PEP8 cleanups.
2015-08-19 14:50:44 -04:00
Roberto Rosario
83ab684b3f
Improve dynamic_search app API. Add filter to allows users to access their own recent searches only.
2015-08-07 02:56:51 -04:00
Roberto Rosario
d59ea3ede2
Add from __future__ import unicode_literals, issue #37
2015-01-19 04:06:40 -04:00
Roberto Rosario
d0aaa256cd
Don't search blindly for all the fields passed in the advanced search, use the defined fields, avoid hard coded rejection of &page arguments in the query string. The SearchModel class is now responsible for storing the search in the recent entries instead of the view.
2014-12-11 19:52:24 -04:00
Roberto Rosario
2ea48bd1ba
PEP8 cleanups, further removal of unused code
2014-10-21 19:28:52 -04:00
Roberto Rosario
733dfc3cf7
Encapsulate and properly report invalid requested fields during search
2014-10-14 04:45:37 -04:00
Roberto Rosario
815fb2ec01
Add placeholder serializer class to avoid errors with Django REST Swagger
2014-10-14 04:34:15 -04:00
Roberto Rosario
bc13129e3b
Close issue #77 , add document view permission to the search app
2014-10-14 04:00:14 -04:00
Roberto Rosario
780c55e255
Add dynamic_search app API endpoints, simplify ModelSearch class and search views
2014-10-14 03:40:46 -04:00