René's URL Explorer Experiment


Title: Test Failures on Misago Project with AppMap Enabled · Issue #252 · getappmap/appmap-python · GitHub

Open Graph Title: Test Failures on Misago Project with AppMap Enabled · Issue #252 · getappmap/appmap-python

X Title: Test Failures on Misago Project with AppMap Enabled · Issue #252 · getappmap/appmap-python

Description: Repo: Misago AppMap Version: appmap>=1.1.0.dev0 Python Version: Python 3.11.4 With AppMap enabled FAILED misago/apiv2/threads/tests/test_thread_watch.py::test_thread_watch_api_enables_watched_thread_email_notifications - Failed: Expected...

Open Graph Description: Repo: Misago AppMap Version: appmap>=1.1.0.dev0 Python Version: Python 3.11.4 With AppMap enabled FAILED misago/apiv2/threads/tests/test_thread_watch.py::test_thread_watch_api_enables_watched_threa...

X Description: Repo: Misago AppMap Version: appmap>=1.1.0.dev0 Python Version: Python 3.11.4 With AppMap enabled FAILED misago/apiv2/threads/tests/test_thread_watch.py::test_thread_watch_api_enables_watched_th...

Opengraph URL: https://github.com/getappmap/appmap-python/issues/252

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Test Failures on Misago Project with AppMap Enabled","articleBody":"Repo: [Misago](https://github.com/land-of-apps/Misago/pull/1)\r\nAppMap Version: `appmap>=1.1.0.dev0`\r\nPython Version: `Python 3.11.4`\r\n\r\n\u003cdetails>\r\n  \u003csummary>With AppMap enabled\u003c/summary>\r\n\r\n```\r\nFAILED misago/apiv2/threads/tests/test_thread_watch.py::test_thread_watch_api_enables_watched_thread_email_notifications - Failed: Expected to pe...\r\nFAILED misago/apiv2/threads/tests/test_thread_watch.py::test_thread_watch_api_disables_watched_thread_email_notifications - Failed: Expected to p...\r\nFAILED misago/apiv2/threads/tests/test_thread_watch.py::test_thread_watch_api_skips_update_if_notifications_are_not_changed - Failed: Expected to...\r\nFAILED misago/acl/tests/test_providers.py::test_container_loads_providers - TypeError: Object of type ModelBase is not JSON serializable\r\nFAILED misago/acl/tests/test_providers.py::test_loading_providers_second_time_raises_runtime_error - TypeError: Object of type ModelBase is not J...\r\nFAILED misago/acl/tests/test_providers.py::test_container_returns_list_of_providers - TypeError: Object of type ModelBase is not JSON serializable\r\nFAILED misago/acl/tests/test_providers.py::test_container_returns_dict_of_providers - TypeError: Object of type ModelBase is not JSON serializable\r\nFAILED misago/acl/tests/test_providers.py::test_getter_returns_registered_type_annotator - TypeError: Object of type type is not JSON serializable\r\nFAILED misago/acl/tests/test_providers.py::test_container_returns_list_of_user_acl_serializers - TypeError: Object of type ModelBase is not JSON ...\r\nFAILED misago/acl/tests/test_providers.py::test_getter_returns_registered_user_acl_serializer - TypeError: Object of type ModelBase is not JSON s...\r\n============================================= 10 failed, 3411 passed, 4 warnings in 995.33s (0:16:35) ==============================================\r\n```\r\n\u003c/details>\r\n\r\n\u003cdetails>\r\n  \u003csummary>With AppMap disabled/uninstalled\u003c/summary>\r\n\r\n```\r\n=================================================== 3421 passed, 4 warnings in 280.42s (0:04:40) ===================================================\r\n```\r\n\r\n\u003c/details>\r\n\r\n\u003cdetails>\r\n  \u003csummary> Verbose Logging for one of the tests\u003c/summary>\r\n\r\n```\r\npytest --no-cov misago/apiv2/threads/tests/test_thread_watch.py::test_thread_watch_api_enables_watched_thread_email_notifications -v \r\n=============================================================== test session starts ================================================================\r\nplatform darwin -- Python 3.11.4, pytest-7.1.2, pluggy-1.0.0 -- /Users/petecheslock/repos/Misago/test/bin/python\r\ncachedir: .pytest_cache\r\ndjango: settings: devproject.test_settings (from env)\r\nrootdir: /Users/petecheslock/repos/Misago, configfile: pytest.ini\r\nplugins: anyio-3.6.1, split-0.8.1, snapshottest-0.6.0, mock-3.8.2, Faker-13.15.1, cov-4.0.0, django-4.5.2\r\ncollected 1 item                                                                                                                                   \r\n\r\nmisago/apiv2/threads/tests/test_thread_watch.py::test_thread_watch_api_enables_watched_thread_email_notifications FAILED                     [100%]\r\n\r\n===================================================================== FAILURES =====================================================================\r\n_________________________________________ test_thread_watch_api_enables_watched_thread_email_notifications _________________________________________\r\n\r\nuser = \u003cUser: User>, thread = \u003cThread: Test thread>, user_client = \u003cmisago.test.MisagoClient object at 0x11e0a12d0>\r\ndjango_assert_num_queries = functools.partial(\u003cfunction _assert_num_queries at 0x1061cd3a0>, \u003c_pytest.config.Config object at 0x105461fd0>)\r\n\r\n    def test_thread_watch_api_enables_watched_thread_email_notifications(\r\n        user, thread, user_client, django_assert_num_queries\r\n    ):\r\n        existing_watched_thread = WatchedThread.objects.create(\r\n            user=user,\r\n            category_id=thread.category_id,\r\n            thread=thread,\r\n            send_emails=False,\r\n        )\r\n    \r\n>       with django_assert_num_queries(25):\r\n\r\nmisago/apiv2/threads/tests/test_thread_watch.py:66: \r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n../../.asdf/installs/python/3.11.4/lib/python3.11/contextlib.py:144: in __exit__\r\n    next(self.gen)\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n\r\nconfig = \u003c_pytest.config.Config object at 0x105461fd0>, num = 25, exact = True, connection = None, info = None\r\n\r\n    @contextmanager\r\n    def _assert_num_queries(\r\n        config,\r\n        num: int,\r\n        exact: bool = True,\r\n        connection=None,\r\n        info=None,\r\n    ) -> Generator[\"django.test.utils.CaptureQueriesContext\", None, None]:\r\n        from django.test.utils import CaptureQueriesContext\r\n    \r\n        if connection is None:\r\n            from django.db import connection as conn\r\n        else:\r\n            conn = connection\r\n    \r\n        verbose = config.getoption(\"verbose\") > 0\r\n        with CaptureQueriesContext(conn) as context:\r\n            yield context\r\n            num_performed = len(context)\r\n            if exact:\r\n                failed = num != num_performed\r\n            else:\r\n                failed = num_performed > num\r\n            if failed:\r\n                msg = \"Expected to perform {} queries {}{}\".format(\r\n                    num,\r\n                    \"\" if exact else \"or less \",\r\n                    \"but {} done\".format(\r\n                        num_performed == 1 and \"1 was\" or \"{} were\".format(num_performed)\r\n                    ),\r\n                )\r\n                if info:\r\n                    msg += \"\\n{}\".format(info)\r\n                if verbose:\r\n                    sqls = (q[\"sql\"] for q in context.captured_queries)\r\n                    msg += \"\\n\\nQueries:\\n========\\n\\n\" + \"\\n\\n\".join(sqls)\r\n                else:\r\n                    msg += \" (add -v option to show queries)\"\r\n>               pytest.fail(msg)\r\nE               Failed: Expected to perform 25 queries but 26 were done\r\nE               \r\nE               Queries:\r\nE               ========\r\nE               \r\nE               SELECT \"misago_cache_cacheversion\".\"cache\", \"misago_cache_cacheversion\".\"version\" FROM \"misago_cache_cacheversion\"\r\nE               \r\nE               SELECT \"django_session\".\"session_key\", \"django_session\".\"session_data\", \"django_session\".\"expire_date\" FROM \"django_session\" WHERE (\"django_session\".\"expire_date\" > '2023-09-01T18:15:01.189194+00:00'::timestamptz AND \"django_session\".\"session_key\" = '83jrxc4syy6dfkfp6ch1emluyenotdfv') LIMIT 21\r\nE               \r\nE               SELECT \"misago_users_user\".\"id\", \"misago_users_user\".\"password\", \"misago_users_user\".\"last_login\", \"misago_users_user\".\"is_superuser\", \"misago_users_user\".\"username\", \"misago_users_user\".\"slug\", \"misago_users_user\".\"email\", \"misago_users_user\".\"email_hash\", \"misago_users_user\".\"joined_on\", \"misago_users_user\".\"joined_from_ip\", \"misago_users_user\".\"is_hiding_presence\", \"misago_users_user\".\"rank_id\", \"misago_users_user\".\"title\", \"misago_users_user\".\"requires_activation\", \"misago_users_user\".\"is_staff\", \"misago_users_user\".\"acl_key\", \"misago_users_user\".\"is_active\", \"misago_users_user\".\"is_active_staff_message\", \"misago_users_user\".\"is_deleting_account\", \"misago_users_user\".\"avatar_tmp\", \"misago_users_user\".\"avatar_src\", \"misago_users_user\".\"avatar_crop\", \"misago_users_user\".\"avatars\", \"misago_users_user\".\"is_avatar_locked\", \"misago_users_user\".\"avatar_lock_user_message\", \"misago_users_user\".\"avatar_lock_staff_message\", \"misago_users_user\".\"signature\", \"misago_users_user\".\"signature_parsed\", \"misago_users_user\".\"signature_checksum\", \"misago_users_user\".\"is_signature_locked\", \"misago_users_user\".\"signature_lock_user_message\", \"misago_users_user\".\"signature_lock_staff_message\", \"misago_users_user\".\"followers\", \"misago_users_user\".\"following\", \"misago_users_user\".\"limits_private_thread_invites_to\", \"misago_users_user\".\"unread_private_threads\", \"misago_users_user\".\"sync_unread_private_threads\", \"misago_users_user\".\"subscribe_to_started_threads\", \"misago_users_user\".\"subscribe_to_replied_threads\", \"misago_users_user\".\"unread_notifications\", \"misago_users_user\".\"watch_started_threads\", \"misago_users_user\".\"watch_replied_threads\", \"misago_users_user\".\"watch_new_private_threads_by_followed\", \"misago_users_user\".\"watch_new_private_threads_by_other_users\", \"misago_users_user\".\"notify_new_private_threads_by_followed\", \"misago_users_user\".\"notify_new_private_threads_by_other_users\", \"misago_users_user\".\"threads\", \"misago_users_user\".\"posts\", \"misago_users_user\".\"last_posted_on\", \"misago_users_user\".\"profile_fields\", \"misago_users_user\".\"agreements\", \"misago_users_rank\".\"id\", \"misago_users_rank\".\"name\", \"misago_users_rank\".\"slug\", \"misago_users_rank\".\"description\", \"misago_users_rank\".\"title\", \"misago_users_rank\".\"css_class\", \"misago_users_rank\".\"is_default\", \"misago_users_rank\".\"is_tab\", \"misago_users_rank\".\"order\", \"misago_users_online\".\"user_id\", \"misago_users_online\".\"last_click\", \"misago_users_bancache\".\"user_id\", \"misago_users_bancache\".\"ban_id\", \"misago_users_bancache\".\"cache_version\", \"misago_users_bancache\".\"user_message\", \"misago_users_bancache\".\"staff_message\", \"misago_users_bancache\".\"expires_on\" FROM \"misago_users_user\" LEFT OUTER JOIN \"misago_users_rank\" ON (\"misago_users_user\".\"rank_id\" = \"misago_users_rank\".\"id\") LEFT OUTER JOIN \"misago_users_online\" ON (\"misago_users_user\".\"id\" = \"misago_users_online\".\"user_id\") LEFT OUTER JOIN \"misago_users_bancache\" ON (\"misago_users_user\".\"id\" = \"misago_users_bancache\".\"user_id\") WHERE \"misago_users_user\".\"id\" = 1 LIMIT 21\r\nE               \r\nE               DECLARE \"_django_curs_8436375680_sync_81\" NO SCROLL CURSOR WITHOUT HOLD FOR SELECT \"misago_users_ban\".\"id\", \"misago_users_ban\".\"check_type\", \"misago_users_ban\".\"registration_only\", \"misago_users_ban\".\"banned_value\", \"misago_users_ban\".\"user_message\", \"misago_users_ban\".\"staff_message\", \"misago_users_ban\".\"expires_on\", \"misago_users_ban\".\"is_checked\" FROM \"misago_users_ban\" WHERE (NOT \"misago_users_ban\".\"registration_only\" AND \"misago_users_ban\".\"check_type\" = 2) ORDER BY \"misago_users_ban\".\"id\" DESC\r\nE               \r\nE               DECLARE \"_django_curs_8436375680_sync_82\" NO SCROLL CURSOR WITHOUT HOLD FOR SELECT \"misago_users_ban\".\"id\", \"misago_users_ban\".\"check_type\", \"misago_users_ban\".\"registration_only\", \"misago_users_ban\".\"banned_value\", \"misago_users_ban\".\"user_message\", \"misago_users_ban\".\"staff_message\", \"misago_users_ban\".\"expires_on\", \"misago_users_ban\".\"is_checked\" FROM \"misago_users_ban\" WHERE (NOT \"misago_users_ban\".\"registration_only\" AND \"misago_users_ban\".\"check_type\" IN (0, 1)) ORDER BY \"misago_users_ban\".\"id\" DESC\r\nE               \r\nE               UPDATE \"misago_users_bancache\" SET \"ban_id\" = NULL, \"cache_version\" = 'QqNqVRF8', \"user_message\" = NULL, \"staff_message\" = NULL, \"expires_on\" = NULL WHERE \"misago_users_bancache\".\"user_id\" = 1\r\nE               \r\nE               INSERT INTO \"misago_users_bancache\" (\"user_id\", \"ban_id\", \"cache_version\", \"user_message\", \"staff_message\", \"expires_on\") VALUES (1, NULL, 'QqNqVRF8', NULL, NULL, NULL)\r\nE               \r\nE               SELECT \"misago_acl_role\".\"id\", \"misago_acl_role\".\"name\", \"misago_acl_role\".\"special_role\", \"misago_acl_role\".\"permissions\" FROM \"misago_acl_role\" INNER JOIN \"misago_users_user_roles\" ON (\"misago_acl_role\".\"id\" = \"misago_users_user_roles\".\"role_id\") WHERE \"misago_users_user_roles\".\"user_id\" = 1\r\nE               \r\nE               SELECT \"misago_acl_role\".\"id\", \"misago_acl_role\".\"name\", \"misago_acl_role\".\"special_role\", \"misago_acl_role\".\"permissions\" FROM \"misago_acl_role\" INNER JOIN \"misago_users_rank_roles\" ON (\"misago_acl_role\".\"id\" = \"misago_users_rank_roles\".\"role_id\") WHERE \"misago_users_rank_roles\".\"rank_id\" = 2\r\nE               \r\nE               DECLARE \"_django_curs_8436375680_sync_83\" NO SCROLL CURSOR WITHOUT HOLD FOR SELECT \"misago_categories_rolecategoryacl\".\"id\", \"misago_categories_rolecategoryacl\".\"role_id\", \"misago_categories_rolecategoryacl\".\"category_id\", \"misago_categories_rolecategoryacl\".\"category_role_id\", \"misago_categories_categoryrole\".\"id\", \"misago_categories_categoryrole\".\"name\", \"misago_categories_categoryrole\".\"special_role\", \"misago_categories_categoryrole\".\"permissions\" FROM \"misago_categories_rolecategoryacl\" INNER JOIN \"misago_categories_categoryrole\" ON (\"misago_categories_rolecategoryacl\".\"category_role_id\" = \"misago_categories_categoryrole\".\"id\") WHERE \"misago_categories_rolecategoryacl\".\"role_id\" IN (1, 8)\r\nE               \r\nE               SELECT \"misago_categories_category\".\"id\", \"misago_categories_category\".\"parent_id\", \"misago_categories_category\".\"special_role\", \"misago_categories_category\".\"name\", \"misago_categories_category\".\"slug\", \"misago_categories_category\".\"short_name\", \"misago_categories_category\".\"color\", \"misago_categories_category\".\"description\", \"misago_categories_category\".\"is_closed\", \"misago_categories_category\".\"threads\", \"misago_categories_category\".\"posts\", \"misago_categories_category\".\"last_post_on\", \"misago_categories_category\".\"last_thread_id\", \"misago_categories_category\".\"last_thread_title\", \"misago_categories_category\".\"last_thread_slug\", \"misago_categories_category\".\"last_poster_id\", \"misago_categories_category\".\"last_poster_name\", \"misago_categories_category\".\"last_poster_slug\", \"misago_categories_category\".\"require_threads_approval\", \"misago_categories_category\".\"require_replies_approval\", \"misago_categories_category\".\"require_edits_approval\", \"misago_categories_category\".\"prune_started_after\", \"misago_categories_category\".\"prune_replied_after\", \"misago_categories_category\".\"archive_pruned_in_id\", \"misago_categories_category\".\"css_class\", \"misago_categories_category\".\"lft\", \"misago_categories_category\".\"rght\", \"misago_categories_category\".\"tree_id\", \"misago_categories_category\".\"level\" FROM \"misago_categories_category\" WHERE (\"misago_categories_category\".\"level\" = 0 AND \"misago_categories_category\".\"special_role\" IN ('root_category', 'private_threads')) ORDER BY \"misago_categories_category\".\"tree_id\" ASC, \"misago_categories_category\".\"lft\" ASC\r\nE               \r\nE               SELECT \"misago_categories_category\".\"id\", \"misago_categories_category\".\"parent_id\", \"misago_categories_category\".\"special_role\", \"misago_categories_category\".\"name\", \"misago_categories_category\".\"slug\", \"misago_categories_category\".\"short_name\", \"misago_categories_category\".\"color\", \"misago_categories_category\".\"description\", \"misago_categories_category\".\"is_closed\", \"misago_categories_category\".\"threads\", \"misago_categories_category\".\"posts\", \"misago_categories_category\".\"last_post_on\", \"misago_categories_category\".\"last_thread_id\", \"misago_categories_category\".\"last_thread_title\", \"misago_categories_category\".\"last_thread_slug\", \"misago_categories_category\".\"last_poster_id\", \"misago_categories_category\".\"last_poster_name\", \"misago_categories_category\".\"last_poster_slug\", \"misago_categories_category\".\"require_threads_approval\", \"misago_categories_category\".\"require_replies_approval\", \"misago_categories_category\".\"require_edits_approval\", \"misago_categories_category\".\"prune_started_after\", \"misago_categories_category\".\"prune_replied_after\", \"misago_categories_category\".\"archive_pruned_in_id\", \"misago_categories_category\".\"css_class\", \"misago_categories_category\".\"lft\", \"misago_categories_category\".\"rght\", \"misago_categories_category\".\"tree_id\", \"misago_categories_category\".\"level\" FROM \"misago_categories_category\" WHERE (\"misago_categories_category\".\"tree_id\" = 1 AND \"misago_categories_category\".\"level\" > 0) ORDER BY \"misago_categories_category\".\"lft\" ASC\r\nE               \r\nE               DECLARE \"_django_curs_8436375680_sync_84\" NO SCROLL CURSOR WITHOUT HOLD FOR SELECT \"misago_categories_rolecategoryacl\".\"id\", \"misago_categories_rolecategoryacl\".\"role_id\", \"misago_categories_rolecategoryacl\".\"category_id\", \"misago_categories_rolecategoryacl\".\"category_role_id\", \"misago_categories_categoryrole\".\"id\", \"misago_categories_categoryrole\".\"name\", \"misago_categories_categoryrole\".\"special_role\", \"misago_categories_categoryrole\".\"permissions\" FROM \"misago_categories_rolecategoryacl\" INNER JOIN \"misago_categories_categoryrole\" ON (\"misago_categories_rolecategoryacl\".\"category_role_id\" = \"misago_categories_categoryrole\".\"id\") WHERE \"misago_categories_rolecategoryacl\".\"role_id\" IN (1, 8)\r\nE               \r\nE               SELECT \"misago_categories_category\".\"id\", \"misago_categories_category\".\"parent_id\", \"misago_categories_category\".\"special_role\", \"misago_categories_category\".\"name\", \"misago_categories_category\".\"slug\", \"misago_categories_category\".\"short_name\", \"misago_categories_category\".\"color\", \"misago_categories_category\".\"description\", \"misago_categories_category\".\"is_closed\", \"misago_categories_category\".\"threads\", \"misago_categories_category\".\"posts\", \"misago_categories_category\".\"last_post_on\", \"misago_categories_category\".\"last_thread_id\", \"misago_categories_category\".\"last_thread_title\", \"misago_categories_category\".\"last_thread_slug\", \"misago_categories_category\".\"last_poster_id\", \"misago_categories_category\".\"last_poster_name\", \"misago_categories_category\".\"last_poster_slug\", \"misago_categories_category\".\"require_threads_approval\", \"misago_categories_category\".\"require_replies_approval\", \"misago_categories_category\".\"require_edits_approval\", \"misago_categories_category\".\"prune_started_after\", \"misago_categories_category\".\"prune_replied_after\", \"misago_categories_category\".\"archive_pruned_in_id\", \"misago_categories_category\".\"css_class\", \"misago_categories_category\".\"lft\", \"misago_categories_category\".\"rght\", \"misago_categories_category\".\"tree_id\", \"misago_categories_category\".\"level\" FROM \"misago_categories_category\" WHERE \"misago_categories_category\".\"tree_id\" = 1 ORDER BY \"misago_categories_category\".\"lft\" ASC\r\nE               \r\nE               SELECT \"misago_categories_category\".\"id\", \"misago_categories_category\".\"parent_id\", \"misago_categories_category\".\"special_role\", \"misago_categories_category\".\"name\", \"misago_categories_category\".\"slug\", \"misago_categories_category\".\"short_name\", \"misago_categories_category\".\"color\", \"misago_categories_category\".\"description\", \"misago_categories_category\".\"is_closed\", \"misago_categories_category\".\"threads\", \"misago_categories_category\".\"posts\", \"misago_categories_category\".\"last_post_on\", \"misago_categories_category\".\"last_thread_id\", \"misago_categories_category\".\"last_thread_title\", \"misago_categories_category\".\"last_thread_slug\", \"misago_categories_category\".\"last_poster_id\", \"misago_categories_category\".\"last_poster_name\", \"misago_categories_category\".\"last_poster_slug\", \"misago_categories_category\".\"require_threads_approval\", \"misago_categories_category\".\"require_replies_approval\", \"misago_categories_category\".\"require_edits_approval\", \"misago_categories_category\".\"prune_started_after\", \"misago_categories_category\".\"prune_replied_after\", \"misago_categories_category\".\"archive_pruned_in_id\", \"misago_categories_category\".\"css_class\", \"misago_categories_category\".\"lft\", \"misago_categories_category\".\"rght\", \"misago_categories_category\".\"tree_id\", \"misago_categories_category\".\"level\" FROM \"misago_categories_category\" WHERE \"misago_categories_category\".\"special_role\" = 'private_threads' LIMIT 21\r\nE               \r\nE               DECLARE \"_django_curs_8436375680_sync_85\" NO SCROLL CURSOR WITHOUT HOLD FOR SELECT \"misago_categories_rolecategoryacl\".\"id\", \"misago_categories_rolecategoryacl\".\"role_id\", \"misago_categories_rolecategoryacl\".\"category_id\", \"misago_categories_rolecategoryacl\".\"category_role_id\", \"misago_categories_categoryrole\".\"id\", \"misago_categories_categoryrole\".\"name\", \"misago_categories_categoryrole\".\"special_role\", \"misago_categories_categoryrole\".\"permissions\" FROM \"misago_categories_rolecategoryacl\" INNER JOIN \"misago_categories_categoryrole\" ON (\"misago_categories_rolecategoryacl\".\"category_role_id\" = \"misago_categories_categoryrole\".\"id\") WHERE \"misago_categories_rolecategoryacl\".\"role_id\" IN (1, 8)\r\nE               \r\nE               SELECT \"misago_categories_category\".\"id\", \"misago_categories_category\".\"parent_id\", \"misago_categories_category\".\"special_role\", \"misago_categories_category\".\"name\", \"misago_categories_category\".\"slug\", \"misago_categories_category\".\"short_name\", \"misago_categories_category\".\"color\", \"misago_categories_category\".\"description\", \"misago_categories_category\".\"is_closed\", \"misago_categories_category\".\"threads\", \"misago_categories_category\".\"posts\", \"misago_categories_category\".\"last_post_on\", \"misago_categories_category\".\"last_thread_id\", \"misago_categories_category\".\"last_thread_title\", \"misago_categories_category\".\"last_thread_slug\", \"misago_categories_category\".\"last_poster_id\", \"misago_categories_category\".\"last_poster_name\", \"misago_categories_category\".\"last_poster_slug\", \"misago_categories_category\".\"require_threads_approval\", \"misago_categories_category\".\"require_replies_approval\", \"misago_categories_category\".\"require_edits_approval\", \"misago_categories_category\".\"prune_started_after\", \"misago_categories_category\".\"prune_replied_after\", \"misago_categories_category\".\"archive_pruned_in_id\", \"misago_categories_category\".\"css_class\", \"misago_categories_category\".\"lft\", \"misago_categories_category\".\"rght\", \"misago_categories_category\".\"tree_id\", \"misago_categories_category\".\"level\" FROM \"misago_categories_category\" WHERE \"misago_categories_category\".\"tree_id\" = 1 ORDER BY \"misago_categories_category\".\"lft\" ASC\r\nE               \r\nE               SELECT \"misago_categories_category\".\"id\", \"misago_categories_category\".\"parent_id\", \"misago_categories_category\".\"special_role\", \"misago_categories_category\".\"name\", \"misago_categories_category\".\"slug\", \"misago_categories_category\".\"short_name\", \"misago_categories_category\".\"color\", \"misago_categories_category\".\"description\", \"misago_categories_category\".\"is_closed\", \"misago_categories_category\".\"threads\", \"misago_categories_category\".\"posts\", \"misago_categories_category\".\"last_post_on\", \"misago_categories_category\".\"last_thread_id\", \"misago_categories_category\".\"last_thread_title\", \"misago_categories_category\".\"last_thread_slug\", \"misago_categories_category\".\"last_poster_id\", \"misago_categories_category\".\"last_poster_name\", \"misago_categories_category\".\"last_poster_slug\", \"misago_categories_category\".\"require_threads_approval\", \"misago_categories_category\".\"require_replies_approval\", \"misago_categories_category\".\"require_edits_approval\", \"misago_categories_category\".\"prune_started_after\", \"misago_categories_category\".\"prune_replied_after\", \"misago_categories_category\".\"archive_pruned_in_id\", \"misago_categories_category\".\"css_class\", \"misago_categories_category\".\"lft\", \"misago_categories_category\".\"rght\", \"misago_categories_category\".\"tree_id\", \"misago_categories_category\".\"level\" FROM \"misago_categories_category\" WHERE \"misago_categories_category\".\"special_role\" = 'private_threads' LIMIT 21\r\nE               \r\nE               SELECT \"misago_threads_thread\".\"id\", \"misago_threads_thread\".\"category_id\", \"misago_threads_thread\".\"title\", \"misago_threads_thread\".\"slug\", \"misago_threads_thread\".\"replies\", \"misago_threads_thread\".\"has_events\", \"misago_threads_thread\".\"has_poll\", \"misago_threads_thread\".\"has_reported_posts\", \"misago_threads_thread\".\"has_open_reports\", \"misago_threads_thread\".\"has_unapproved_posts\", \"misago_threads_thread\".\"has_hidden_posts\", \"misago_threads_thread\".\"started_on\", \"misago_threads_thread\".\"last_post_on\", \"misago_threads_thread\".\"first_post_id\", \"misago_threads_thread\".\"starter_id\", \"misago_threads_thread\".\"starter_name\", \"misago_threads_thread\".\"starter_slug\", \"misago_threads_thread\".\"last_post_id\", \"misago_threads_thread\".\"last_post_is_event\", \"misago_threads_thread\".\"last_poster_id\", \"misago_threads_thread\".\"last_poster_name\", \"misago_threads_thread\".\"last_poster_slug\", \"misago_threads_thread\".\"weight\", \"misago_threads_thread\".\"is_unapproved\", \"misago_threads_thread\".\"is_hidden\", \"misago_threads_thread\".\"is_closed\", \"misago_threads_thread\".\"best_answer_id\", \"misago_threads_thread\".\"best_answer_is_protected\", \"misago_threads_thread\".\"best_answer_marked_on\", \"misago_threads_thread\".\"best_answer_marked_by_id\", \"misago_threads_thread\".\"best_answer_marked_by_name\", \"misago_threads_thread\".\"best_answer_marked_by_slug\", \"misago_categories_category\".\"id\", \"misago_categories_category\".\"parent_id\", \"misago_categories_category\".\"special_role\", \"misago_categories_category\".\"name\", \"misago_categories_category\".\"slug\", \"misago_categories_category\".\"short_name\", \"misago_categories_category\".\"color\", \"misago_categories_category\".\"description\", \"misago_categories_category\".\"is_closed\", \"misago_categories_category\".\"threads\", \"misago_categories_category\".\"posts\", \"misago_categories_category\".\"last_post_on\", \"misago_categories_category\".\"last_thread_id\", \"misago_categories_category\".\"last_thread_title\", \"misago_categories_category\".\"last_thread_slug\", \"misago_categories_category\".\"last_poster_id\", \"misago_categories_category\".\"last_poster_name\", \"misago_categories_category\".\"last_poster_slug\", \"misago_categories_category\".\"require_threads_approval\", \"misago_categories_category\".\"require_replies_approval\", \"misago_categories_category\".\"require_edits_approval\", \"misago_categories_category\".\"prune_started_after\", \"misago_categories_category\".\"prune_replied_after\", \"misago_categories_category\".\"archive_pruned_in_id\", \"misago_categories_category\".\"css_class\", \"misago_categories_category\".\"lft\", \"misago_categories_category\".\"rght\", \"misago_categories_category\".\"tree_id\", \"misago_categories_category\".\"level\" FROM \"misago_threads_thread\" INNER JOIN \"misago_categories_category\" ON (\"misago_threads_thread\".\"category_id\" = \"misago_categories_category\".\"id\") WHERE \"misago_threads_thread\".\"id\" = 1 LIMIT 21\r\nE               \r\nE               SELECT \"misago_categories_category\".\"id\", \"misago_categories_category\".\"parent_id\", \"misago_categories_category\".\"special_role\", \"misago_categories_category\".\"name\", \"misago_categories_category\".\"slug\", \"misago_categories_category\".\"short_name\", \"misago_categories_category\".\"color\", \"misago_categories_category\".\"description\", \"misago_categories_category\".\"is_closed\", \"misago_categories_category\".\"threads\", \"misago_categories_category\".\"posts\", \"misago_categories_category\".\"last_post_on\", \"misago_categories_category\".\"last_thread_id\", \"misago_categories_category\".\"last_thread_title\", \"misago_categories_category\".\"last_thread_slug\", \"misago_categories_category\".\"last_poster_id\", \"misago_categories_category\".\"last_poster_name\", \"misago_categories_category\".\"last_poster_slug\", \"misago_categories_category\".\"require_threads_approval\", \"misago_categories_category\".\"require_replies_approval\", \"misago_categories_category\".\"require_edits_approval\", \"misago_categories_category\".\"prune_started_after\", \"misago_categories_category\".\"prune_replied_after\", \"misago_categories_category\".\"archive_pruned_in_id\", \"misago_categories_category\".\"css_class\", \"misago_categories_category\".\"lft\", \"misago_categories_category\".\"rght\", \"misago_categories_category\".\"tree_id\", \"misago_categories_category\".\"level\" FROM \"misago_categories_category\" WHERE \"misago_categories_category\".\"special_role\" = 'root_category' LIMIT 21\r\nE               \r\nE               SELECT \"misago_notifications_watchedthread\".\"id\", \"misago_notifications_watchedthread\".\"user_id\", \"misago_notifications_watchedthread\".\"category_id\", \"misago_notifications_watchedthread\".\"thread_id\", \"misago_notifications_watchedthread\".\"send_emails\", \"misago_notifications_watchedthread\".\"secret\", \"misago_notifications_watchedthread\".\"created_at\", \"misago_notifications_watchedthread\".\"read_at\" FROM \"misago_notifications_watchedthread\" WHERE (\"misago_notifications_watchedthread\".\"thread_id\" = 1 AND \"misago_notifications_watchedthread\".\"user_id\" = 1) ORDER BY \"misago_notifications_watchedthread\".\"id\" ASC LIMIT 2\r\nE               \r\nE               UPDATE \"misago_notifications_watchedthread\" SET \"send_emails\" = true WHERE \"misago_notifications_watchedthread\".\"id\" = 1\r\nE               \r\nE               UPDATE \"misago_users_online\" SET \"last_click\" = '2023-09-01T18:15:01.222436+00:00'::timestamptz WHERE \"misago_users_online\".\"user_id\" = 1\r\nE               \r\nE               SAVEPOINT \"s8436375680_x5\"\r\nE               \r\nE               UPDATE \"django_session\" SET \"session_data\" = '.eJxVjzEPgjAQhf9LZ0PaCm1hdHDTRAfX5ihXadACVlwI_91WGTS3vfe9u3sz0TA9Wz0FfGjXkIowsvnVajAd-mTcXYBrnyU1ZAlYrZAdPs5uJf_iLYQ2Zo0tqERTlyIXANTmnBbAldrSLWcKTSGFiECdGyZkU1pkDVOlBWRoKKCKS7_ntRu0adF0pJrJK37ieh_3n8bjeDnvE-eGVILLjMZJZVyIJbzH2MHCLeCyvAGkvU-K:1qc8fd:P3MLaBXTGYFJf3_yYeTkG4J6knvsNI17d-bqJRkhI3Y', \"expire_date\" = '2023-09-15T18:15:01.223394+00:00'::timestamptz WHERE \"django_session\".\"session_key\" = '83jrxc4syy6dfkfp6ch1emluyenotdfv'\r\nE               \r\nE               RELEASE SAVEPOINT \"s8436375680_x5\"\r\n\r\ntest/lib/python3.11/site-packages/pytest_django/fixtures.py:608: Failed\r\n-------------------------------------------------------------- Captured stderr setup ---------------------------------------------------------------\r\nCreating test database for alias 'default'...\r\n------------------------------------------------------------- Captured stderr teardown -------------------------------------------------------------\r\nDestroying test database for alias 'default'...\r\n================================================================= warnings summary =================================================================\r\ntest/lib/python3.11/site-packages/kombu/utils/compat.py:82\r\n  /Users/petecheslock/repos/Misago/test/lib/python3.11/site-packages/kombu/utils/compat.py:82: DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.\r\n    for ep in importlib_metadata.entry_points().get(namespace, [])\r\n\r\ntest/lib/python3.11/site-packages/django/http/request.py:1\r\n  /Users/petecheslock/repos/Misago/test/lib/python3.11/site-packages/django/http/request.py:1: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13\r\n    import cgi\r\n\r\ntest/lib/python3.11/site-packages/django/utils/encoding.py:266\r\n  /Users/petecheslock/repos/Misago/test/lib/python3.11/site-packages/django/utils/encoding.py:266: DeprecationWarning: Use setlocale(), getencoding() and getlocale() instead\r\n    encoding = locale.getdefaultlocale()[1] or 'ascii'\r\n\r\ntest/lib/python3.11/site-packages/certifi/core.py:36\r\n  /Users/petecheslock/repos/Misago/test/lib/python3.11/site-packages/certifi/core.py:36: DeprecationWarning: path is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.\r\n    _CACERT_CTX = get_path(\"certifi\", \"cacert.pem\")\r\n\r\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\r\n============================================================= short test summary info ==============================================================\r\nFAILED misago/apiv2/threads/tests/test_thread_watch.py::test_thread_watch_api_enables_watched_thread_email_notifications - Failed: Expected to pe...\r\n========================================================== 1 failed, 4 warnings in 4.40s ===========================================================\r\n\r\n\r\n```\r\n\r\n\u003c/details>\r\n\r\n\r\nSteps used to recreate:\r\n\r\n1) Clone the `appmap-analysis` branch on [Misago fork](https://github.com/land-of-apps/Misago/tree/appmap-analysis)\r\n2) Create virtualenv `python -m venv test`\r\n3) Activate venv `source test/bin/activate`\r\n4) pip install `pip install -r requirements.txt`\r\n5) `\u003cStart Docker Desktop for Postgresql requirement>`\r\n6) Run `./doit.sh` to start the Postgresql container and export environment variables\r\n7) Run pytest `pytest --no-cov` or run a single failed test \r\n```\r\npytest --no-cov misago/apiv2/threads/tests/test_thread_watch.py::test_thread_watch_api_enables_watched_thread_email_notifications -v\r\n```\r\n\r\n","author":{"url":"https://github.com/petecheslock","@type":"Person","name":"petecheslock"},"datePublished":"2023-09-01T18:20:46Z","url":"https://github.com/getappmap/appmap-python/issues/252"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c2500de7-ca05-1e07-bfe6-9e233b4a8c66
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBCB0:C8358:177AC23:1F192D0:6B032230
html-safe-nonce8e1d25017a53c9405f377189038c2d4a6a60e5693d46ee371e8a6bd6aa5e74d2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0IwOkM4MzU4OjE3N0FDMjM6MUYxOTJEMDo2QjAzMjIzMCIsInZpc2l0b3JfaWQiOiIxMDg2Nzc0MDcwODMxNDI0MDQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac569375c1978deb3c10fa5cb49368ad980c84e3d67e9125ad5025126c19e022fa
hovercard-subject-tagissue:1877854999
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getappmap/appmap-python/252/issue_layout
twitter:imagehttps://opengraph.githubassets.com/90900f0851bea0bd8ff36cd5db235d71a61bcafa36dce52d19ee1167066666c9/getappmap/appmap-python/issues/252
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/90900f0851bea0bd8ff36cd5db235d71a61bcafa36dce52d19ee1167066666c9/getappmap/appmap-python/issues/252
og:image:altRepo: Misago AppMap Version: appmap>=1.1.0.dev0 Python Version: Python 3.11.4 With AppMap enabled FAILED misago/apiv2/threads/tests/test_thread_watch.py::test_thread_watch_api_enables_watched_threa...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepetecheslock
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/getappmap/appmap-python git https://github.com/getappmap/appmap-python.git
octolytics-dimension-user_id46610017
octolytics-dimension-user_logingetappmap
octolytics-dimension-repository_id314785884
octolytics-dimension-repository_nwogetappmap/appmap-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id314785884
octolytics-dimension-repository_network_root_nwogetappmap/appmap-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getappmap/appmap-python/issues/252#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetappmap%2Fappmap-python%2Fissues%2F252
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetappmap%2Fappmap-python%2Fissues%2F252
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getappmap%2Fappmap-python
Reloadhttps://github.com/getappmap/appmap-python/issues/252
Reloadhttps://github.com/getappmap/appmap-python/issues/252
Reloadhttps://github.com/getappmap/appmap-python/issues/252
getappmaphttps://github.com/getappmap
appmap-pythonhttps://github.com/getappmap/appmap-python
Codehttps://github.com/getappmap/appmap-python
Issues51 (51)https://github.com/getappmap/appmap-python/issues
Pull requests6 (6)https://github.com/getappmap/appmap-python/pulls
Discussionshttps://github.com/getappmap/appmap-python/discussions
Actionshttps://github.com/getappmap/appmap-python/actions
Projectshttps://github.com/getappmap/appmap-python/projects
Wikihttps://github.com/getappmap/appmap-python/wiki
Security and qualityhttps://github.com/getappmap/appmap-python/security
Insightshttps://github.com/getappmap/appmap-python/insights
https://github.com/getappmap/appmap-python
New issuehttps://github.com/login?return_to=https://github.com/getappmap/appmap-python/issues/252
New issuehttps://github.com/login?return_to=https://github.com/getappmap/appmap-python/issues/252
Test Failures on Misago Project with AppMap Enabledhttps://github.com/getappmap/appmap-python/issues/252#top
bugSomething isn't workinghttps://github.com/getappmap/appmap-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/petecheslock
petecheslockhttps://github.com/petecheslock
on Sep 1, 2023https://github.com/getappmap/appmap-python/issues/252#issue-1877854999
Misagohttps://github.com/land-of-apps/Misago/pull/1
Misago forkhttps://github.com/land-of-apps/Misago/tree/appmap-analysis
petecheslockhttps://github.com/petecheslock
bugSomething isn't workinghttps://github.com/getappmap/appmap-python/issues?q=state%3Aopen%20label%3A%22bug%22
on Sep 1, 2023https://github.com/getappmap/appmap-python/issues/252#event-10259961872
https://github.com/kgilpin
kgilpinhttps://github.com/kgilpin
on Sep 6, 2023https://github.com/getappmap/appmap-python/issues/252#issuecomment-1708416104
@petecheslockhttps://github.com/petecheslock
Sign up for freehttps://github.com/signup?return_to=https://github.com/getappmap/appmap-python/issues/252
Sign in to commenthttps://github.com/login?return_to=https://github.com/getappmap/appmap-python/issues/252
bugSomething isn't workinghttps://github.com/getappmap/appmap-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.