def cache_issue_search_word(request, project_id): message = True try: word_key = str(request.user.id) + "_issue_searchkeyword" filter_key = str(request.user.id) + "_issue_filter" value = request.POST.get("search_word") IssueService.cache_issue_search_word(word_key, value) IssueService.cache_issue_filter(filter_key, "Project:" + str(project_id)) except Exception as ex: SimpleLogger.exception(ex) message = str(ex) return HttpResponse(message)
def cache_issue_filter(request, project_id, filter_id): message = True try: key = str(request.user.id) + "_issue_filter" print(request.POST) if str(filter_id) == "0": values = request.POST.get("values") IssueService.cache_issue_filter(key, "Project:" + str(project_id)) IssueService.cache_issue_filter(key, values) else: IssueService.update_issue_filter_cache(key, filter_id) except Exception as ex: SimpleLogger.exception(ex) message = str(ex) return HttpResponse(message)