Exemple #1
0
    def get(self, request):
        check_issues_exist()

        qa_metrics_settings = get_qa_metrics_settings(request.user)
        names = sorted(get_fields())

        result = {"filter_settings": qa_metrics_settings, "names": names}

        return Response(result)
Exemple #2
0
    def get(self, request):
        check_issues_exist()

        source_field = get_source_field(request.user)
        source_field_names = sorted(get_fields())

        result = {
            "source_field": source_field,
            "source_field_names": source_field_names,
        }

        return Response(result)
Exemple #3
0
    def get(self, request):
        check_issues_exist()

        predictions_table_settings = get_predictions_table_settings(
            request.user)

        result = {
            "predictions_table_settings": predictions_table_settings,
            "field_names": sorted(get_fields()),
        }

        return Response(result)
 def test_get_fields(self):
     assert get_fields() == ["_id", "Project", "Attachments", "Priority"]