{"id":17185565,"url":"https://github.com/jscheid/prevent-writes-test","last_synced_at":"2025-10-06T13:04:50.913Z","repository":{"id":256798089,"uuid":"856206052","full_name":"jscheid/prevent-writes-test","owner":"jscheid","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-12T19:56:44.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T04:19:34.786Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jscheid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-12T07:11:12.000Z","updated_at":"2024-09-12T19:56:47.000Z","dependencies_parsed_at":"2024-09-13T05:06:18.554Z","dependency_job_id":"6a26c264-e0bd-432f-ad5d-10fb93b616a5","html_url":"https://github.com/jscheid/prevent-writes-test","commit_stats":null,"previous_names":["jscheid/prevent-writes-test"],"tags_count":0,"template":false,"template_full_name":"ryanwi/rails7-on-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jscheid%2Fprevent-writes-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jscheid%2Fprevent-writes-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jscheid%2Fprevent-writes-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jscheid%2Fprevent-writes-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jscheid","download_url":"https://codeload.github.com/jscheid/prevent-writes-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245394117,"owners_count":20608113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T00:47:09.188Z","updated_at":"2025-10-06T13:04:45.893Z","avatar_url":"https://github.com/jscheid.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `ActionController::Live` vs. `prevent_writes`\n\nWIP trying to create a reproducible test case for an issue we're seeing in our\nenvironment, when combining `ActionController::Live` with\n`ActiveRecord::Base.connected_to`.\n\nRun using `docker compose up`. Probably needs a recent Docker version.\n\nThe main test is in `test.bash`, which should expose the following behaviour:\n\n- First it issues a GET to the `/ping` endpoint, which works.\n- Then it GETs a `ActionController::Live` streaming endpoint and disconnects early.\n- Then it issues another GET to the `/ping` endpoint again, which fails with the following error:\n  `No connection pool for 'ActiveRecord::Base' found for the 'reading' role.`\n\nMost of the files in this repository are just Rails scaffolding, the main\ninteresting files are the ones in `app/controllers`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjscheid%2Fprevent-writes-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjscheid%2Fprevent-writes-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjscheid%2Fprevent-writes-test/lists"}