class_docstr: Testings for Sql Lab
docstr: Test query api without can_only_access_owned_queries perm added to
  Admin and make sure all queries show up.
docstr_tok: ["Test","query","api","without","can_only_access_owned_queries","perm","added","to","Admin","and","make","sure","all","queries","show","up","."]
code: def test_query_api_filter(self) -> None:
      """
      Test query api without can_only_access_owned_queries perm added to
      Admin and make sure all queries show up.
      """
      self.run_some_queries()
      self.login(username="admin")
  
      url = "/api/v1/query/"
      data = self.get_json_resp(url)
      admin = security_manager.find_user("admin")
      gamma_sqllab = security_manager.find_user("gamma_sqllab")
      self.assertEqual(3, len(data["result"]))
      user_queries = [
          result.get("user").get("first_name")
          for result in data["result"]
      ]
      assert admin.first_name in user_queries
      assert gamma_sqllab.first_name in user_queries
  
imports: import json
  from datetime import datetime
  import pytest
  from celery.exceptions import SoftTimeLimitExceeded
  from parameterized import parameterized
  from unittest import mock
  import prison
  from freezegun import freeze_time
  from superset import db, security_manager
  from superset.connectors.sqla.models import SqlaTable
  from superset.db_engine_specs import BaseEngineSpec
  from superset.db_engine_specs.hive import HiveEngineSpec
  from superset.db_engine_specs.presto import PrestoEngineSpec
  from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
  from superset.exceptions import SupersetErrorException
  from superset.models.sql_lab import Query, SavedQuery
  from superset.result_set import SupersetResultSet
  from superset.sqllab.limiting_factor import LimitingFactor
  from superset.sql_lab import cancel_query, execute_sql_statements, apply_limit_if_exists
  from superset.sql_parse import CtasMethod
  from superset.utils.core import backend, datetime_to_epoch
  from superset.utils.database import get_example_database, get_main_database
  from .base_tests import SupersetTestCase
  from .conftest import CTAS_SCHEMA_NAME
  from tests.integration_tests.fixtures.birth_names_dashboard import load_birth_names_dashboard_with_slices, load_birth_names_data
  from tests.integration_tests.fixtures.users import create_gamma_sqllab_no_data
label_desc: Use image node_id 18 for calling the TestSqlLab obj's underlying member method code with example usage: obj.test_query_api_filter() without return types