docstr: Log API: Test recent activity when distinct is false
docstr_tok: ["Log","API",":","Test","recent","activity","when","distinct","is","false"]
code: def test_get_recent_activity_distinct_false(self):
      """
      Log API: Test recent activity when distinct is false
      """
      db.session.query(Log).delete(synchronize_session=False)
      db.session.commit()
      admin_user = self.get_user("admin")
      self.login(username="admin")
      dash = create_dashboard("dash_slug", "dash_title", "{}", [])
      log = self.insert_log(
          "dashboard", admin_user, dashboard_id=dash.id
      )
      log2 = self.insert_log(
          "dashboard", admin_user, dashboard_id=dash.id
      )
  
      arguments = {"distinct": False}
      uri = f"api/v1/log/recent_activity/?q={prison.dumps(arguments)}"
      rv = self.client.get(uri)
  
      db.session.delete(log)
      db.session.delete(log2)
      db.session.delete(dash)
      db.session.commit()
      self.assertEqual(rv.status_code, 200)
      response = json.loads(rv.data.decode("utf-8"))
      self.assertEqual(len(response["result"]), 2)
  
imports: from datetime import datetime, timedelta
  import json
  from typing import Optional
  from unittest.mock import ANY
  from flask_appbuilder.security.sqla.models import User
  import prison
  from unittest.mock import patch
  from superset import db
  from superset.models.core import Log
  from superset.views.log.api import LogRestApi
  from tests.integration_tests.conftest import with_feature_flags
  from tests.integration_tests.dashboard_utils import create_dashboard
  from tests.integration_tests.test_app import app
  from .base_tests import SupersetTestCase
label_desc: Use image node_id 10 for calling the TestLogApi obj's underlying member method code with example usage: obj.test_get_recent_activity_distinct_false() without return types