Esempio n. 1
0
 def post(self, request):
     request.data["award_levels"] = [
         "elasticsearch_transactions", "sub_awards"
     ]
     request.data["constraint_type"] = "row_count"
     return BaseDownloadViewSet.post(self, request,
                                     DownloadRequestType.AWARD)
Esempio n. 2
0
    def post(self, request):
        request.data["constraint_type"] = "year"

        # TODO: update front end to use the Common Filter Object and get rid of this function
        self.process_filters(request.data)

        return BaseDownloadViewSet.post(self, request, "award")
 def post(self, request):
     if is_experimental_elasticsearch_api(request):
         logger.info("Using experimental Elasticsearch functionality for '/download/transactions'")
         request.data["award_levels"] = ["elasticsearch_transactions", "sub_awards"]
     else:
         request.data["award_levels"] = ["transactions", "sub_awards"]
     request.data["constraint_type"] = "row_count"
     return BaseDownloadViewSet.post(self, request, "award")
Esempio n. 4
0
    def post(self, request):
        """Return url to pre-generated zip file"""

        return BaseDownloadViewSet.post(self, request,
                                        DownloadRequestType.DISASTER)
Esempio n. 5
0
 def post(self, request):
     request.data["constraint_type"] = "year"
     return BaseDownloadViewSet.post(self,
                                     request,
                                     origination="bulk_download",
                                     validator_type=AwardDownloadValidator)
Esempio n. 6
0
    def post(self, request):
        """Push a message to SQS with the validated request JSON"""

        return BaseDownloadViewSet.post(self, request, "account")
Esempio n. 7
0
 def post(self, request):
     request.data["constraint_type"] = "row_count"
     return BaseDownloadViewSet.post(self, request, "assistance")
Esempio n. 8
0
 def post(self, request):
     request.data["constraint_type"] = "row_count"
     return BaseDownloadViewSet.post(
         self, request, validator_type=AssistanceDownloadValidator)
Esempio n. 9
0
 def post(self, request):
     request.data["constraint_type"] = "row_count"
     return BaseDownloadViewSet.post(self, request,
                                     DownloadRequestType.ASSISTANCE)
Esempio n. 10
0
 def post(self, request):
     request.data['award_levels'] = ['awards', 'sub_awards']
     request.data['constraint_type'] = 'row_count'
     return BaseDownloadViewSet.post(self, request, 'award')
Esempio n. 11
0
 def post(self, request):
     return BaseDownloadViewSet.post(self, request, 'idv')
 def post(self, request):
     request.data["award_levels"] = ["sub_awards"]
     request.data["constraint_type"] = "row_count"
     return BaseDownloadViewSet.post(self, request, "award")
 def post(self, request):
     return BaseDownloadViewSet.post(self, request, "assistance")
 def post(self, request):
     return BaseDownloadViewSet.post(self, request, "contract")
Esempio n. 15
0
 def post(self, request):
     return BaseDownloadViewSet.post(self, request,
                                     DownloadRequestType.DISASTER_RECIPIENT)
Esempio n. 16
0
 def post(self, request):
     request.data["award_levels"] = ["elasticsearch_awards", "sub_awards"]
     request.data["constraint_type"] = "row_count"
     return BaseDownloadViewSet.post(self,
                                     request,
                                     validator_type=AwardDownloadValidator)
Esempio n. 17
0
    def post(self, request):
        """Return url to pre-generated zip file"""

        return BaseDownloadViewSet.post(self,
                                        request,
                                        special_request_type="disaster")
Esempio n. 18
0
    def post(self, request):
        """Push a message to SQS with the validated request JSON"""

        return BaseDownloadViewSet.post(self, request,
                                        DownloadRequestType.ACCOUNT)
Esempio n. 19
0
 def post(self, request):
     return BaseDownloadViewSet.post(
         self, request, validator_type=DisasterRecipientDownloadValidator)