{"action":"created","issue":{"url":"https://api.github.com/repos/enot-kg/enot/issues/27","repository_url":"https://api.github.com/repos/enot-kg/enot","labels_url":"https://api.github.com/repos/enot-kg/enot/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/enot-kg/enot/issues/27/comments","events_url":"https://api.github.com/repos/enot-kg/enot/issues/27/events","html_url":"https://github.com/enot-kg/enot/issues/27","id":299483944,"number":27,"title":"NilClass#create (ActiveRecord::RecordNotUnique) \"PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint \"posts_pkey\"\nDETAIL:  Key (id)=(14) already exists.\n: INSERT INTO \"posts\" (\"category\", \"content_blocks\", \"created_at\", \"featured_poster\", \"index_poster\", \"layout_type\", \"lead\", \"poster\", \"poster_color\", \"published\", \"subject_type\", \"text_content\", \"theme_id\", \"tile_type\", \"title\", \"updated_at\", \"user_id\") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) RETURNING \"id\"\"","user":{"login":"rastyagaev","id":84866,"avatar_url":"https://avatars2.githubusercontent.com/u/84866?v=4","gravatar_id":"","url":"https://api.github.com/users/rastyagaev","html_url":"https://github.com/rastyagaev","followers_url":"https://api.github.com/users/rastyagaev/followers","following_url":"https://api.github.com/users/rastyagaev/following{/other_user}","gists_url":"https://api.github.com/users/rastyagaev/gists{/gist_id}","starred_url":"https://api.github.com/users/rastyagaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rastyagaev/subscriptions","organizations_url":"https://api.github.com/users/rastyagaev/orgs","repos_url":"https://api.github.com/users/rastyagaev/repos","events_url":"https://api.github.com/users/rastyagaev/events{/privacy}","received_events_url":"https://api.github.com/users/rastyagaev/received_events","type":"User","site_admin":false},"labels":[{"id":748926658,"url":"https://api.github.com/repos/enot-kg/enot/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-22T19:47:11Z","updated_at":"2018-02-22T19:47:12Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<table><tr><th>Exception</th><td>PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint &quot;posts_pkey&quot;\nDETAIL:  Key (id)=(14) already exists.\n: INSERT INTO &quot;posts&quot; (&quot;category&quot;, &quot;content_blocks&quot;, &quot;created_at&quot;, &quot;featured_poster&quot;, &quot;index_poster&quot;, &quot;layout_type&quot;, &quot;lead&quot;, &quot;poster&quot;, &quot;poster_color&quot;, &quot;published&quot;, &quot;subject_type&quot;, &quot;text_content&quot;, &quot;theme_id&quot;, &quot;tile_type&quot;, &quot;title&quot;, &quot;updated_at&quot;, &quot;user_id&quot;) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) RETURNING &quot;id&quot;</td></tr><tr><th>Last Occurrence</th><td>February 23, 2018 01:47:11 +0600</td></tr><tr><th>Count</th><td>1</td></tr></table>\n\n## Stack Trace\n<pre>[bundle].../gems/activerecord-4.0.13/lib/active_record/connection_adapters/postgresql_adapter.rb:810:in `get_last_result'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/connection_adapters/postgresql_adapter.rb:810:in `exec_cache'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/connection_adapters/postgresql/database_statements.rb:139:in `block in exec_query'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract_adapter.rb:442:in `block in log'\n[bundle].../gems/activesupport-4.0.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract_adapter.rb:437:in `log'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/connection_adapters/postgresql/database_statements.rb:137:in `exec_query'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/connection_adapters/postgresql/database_statements.rb:181:in `exec_insert'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/database_statements.rb:97:in `insert'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/relation.rb:76:in `insert'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/persistence.rb:513:in `_create_record'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/attribute_methods/dirty.rb:78:in `_create_record'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/callbacks.rb:306:in `block in _create_record'\n[bundle].../gems/activesupport-4.0.13/lib/active_support/callbacks.rb:373:in `_run__1632043761871537026__create__callbacks'\n[bundle].../gems/activesupport-4.0.13/lib/active_support/callbacks.rb:80:in `run_callbacks'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/callbacks.rb:306:in `_create_record'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/timestamp.rb:57:in `_create_record'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/persistence.rb:481:in `create_or_update'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/callbacks.rb:302:in `block in create_or_update'\n[bundle].../gems/activesupport-4.0.13/lib/active_support/callbacks.rb:433:in `_run__1632043761871537026__save__callbacks'\n[bundle].../gems/activesupport-4.0.13/lib/active_support/callbacks.rb:80:in `run_callbacks'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/callbacks.rb:302:in `create_or_update'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/persistence.rb:103:in `save'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/validations.rb:51:in `save'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/attribute_methods/dirty.rb:32:in `save'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/transactions.rb:270:in `block (2 levels) in save'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/transactions.rb:330:in `block in with_transaction_returning_status'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/database_statements.rb:203:in `block in transaction'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `within_new_transaction'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/database_statements.rb:203:in `transaction'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/transactions.rb:209:in `transaction'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/transactions.rb:327:in `with_transaction_returning_status'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/transactions.rb:270:in `block in save'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/transactions.rb:285:in `rollback_active_record_state!'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/transactions.rb:269:in `save'\n<a href='https://github.com/enot-kg/enot/blob/0f144107115c36a32a139c8516e4ec238349334c/app/controllers/concerns/managment/resources.rb#L29'>[app].../app/controllers/concerns/managment/resources.rb:29:in `create'</a>\n[bundle].../gems/actionpack-4.0.13/lib/action_controller/metal/implicit_render.rb:4:in `send_action'\n[bundle].../gems/actionpack-4.0.13/lib/abstract_controller/base.rb:189:in `process_action'\n[bundle].../gems/actionpack-4.0.13/lib/action_controller/metal/rendering.rb:10:in `process_action'\n[bundle].../gems/actionpack-4.0.13/lib/abstract_controller/callbacks.rb:18:in `block in process_action'\n[bundle].../gems/activesupport-4.0.13/lib/active_support/callbacks.rb:413:in `_run__1431355025785750405__process_action__callbacks'\n[bundle].../gems/activesupport-4.0.13/lib/active_support/callbacks.rb:80:in `run_callbacks'\n[bundle].../gems/actionpack-4.0.13/lib/abstract_controller/callbacks.rb:17:in `process_action'\n[bundle].../gems/actionpack-4.0.13/lib/action_controller/metal/rescue.rb:29:in `process_action'\n[bundle].../gems/actionpack-4.0.13/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\n[bundle].../gems/activesupport-4.0.13/lib/active_support/notifications.rb:159:in `block in instrument'\n[bundle].../gems/activesupport-4.0.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\n[bundle].../gems/activesupport-4.0.13/lib/active_support/notifications.rb:159:in `instrument'\n[bundle].../gems/actionpack-4.0.13/lib/action_controller/metal/instrumentation.rb:30:in `process_action'\n[bundle].../gems/actionpack-4.0.13/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/railties/controller_runtime.rb:18:in `process_action'\n[bundle].../gems/actionpack-4.0.13/lib/abstract_controller/base.rb:136:in `process'\n[bundle].../gems/actionpack-4.0.13/lib/abstract_controller/rendering.rb:44:in `process'\n[bundle].../gems/actionpack-4.0.13/lib/action_controller/metal.rb:195:in `dispatch'\n[bundle].../gems/actionpack-4.0.13/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'\n[bundle].../gems/actionpack-4.0.13/lib/action_controller/metal.rb:231:in `block in action'\n[bundle].../gems/actionpack-4.0.13/lib/action_dispatch/routing/route_set.rb:82:in `dispatch'\n[bundle].../gems/actionpack-4.0.13/lib/action_dispatch/routing/route_set.rb:50:in `call'\n[bundle].../gems/actionpack-4.0.13/lib/action_dispatch/journey/router.rb:71:in `block in call'\n[bundle].../gems/actionpack-4.0.13/lib/action_dispatch/journey/router.rb:59:in `each'\n[bundle].../gems/actionpack-4.0.13/lib/action_dispatch/journey/router.rb:59:in `call'\n[bundle].../gems/actionpack-4.0.13/lib/action_dispatch/routing/route_set.rb:676:in `call'\n[bundle].../gems/omniauth-1.1.4/lib/omniauth/strategy.rb:184:in `call!'\n[bundle].../gems/omniauth-1.1.4/lib/omniauth/strategy.rb:164:in `call'\n[bundle].../gems/party_foul-1.5.1/lib/party_foul/middleware.rb:8:in `call'\n[bundle].../gems/warden-1.2.7/lib/warden/manager.rb:36:in `block in call'\n[bundle].../gems/warden-1.2.7/lib/warden/manager.rb:35:in `catch'\n[bundle].../gems/warden-1.2.7/lib/warden/manager.rb:35:in `call'\n[bundle].../gems/rack-1.5.5/lib/rack/etag.rb:23:in `call'\n[bundle].../gems/rack-1.5.5/lib/rack/conditionalget.rb:35:in `call'\n[bundle].../gems/rack-1.5.5/lib/rack/head.rb:11:in `call'\n[bundle].../gems/actionpack-4.0.13/lib/action_dispatch/middleware/params_parser.rb:27:in `call'\n[bundle].../gems/actionpack-4.0.13/lib/action_dispatch/middleware/flash.rb:241:in `call'\n[bundle].../gems/rack-1.5.5/lib/rack/session/abstract/id.rb:225:in `context'\n[bundle].../gems/rack-1.5.5/lib/rack/session/abstract/id.rb:220:in `call'\n[bundle].../gems/actionpack-4.0.13/lib/action_dispatch/middleware/cookies.rb:486:in `call'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/query_cache.rb:36:in `call'\n[bundle].../gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\n[bundle].../gems/actionpack-4.0.13/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\n[bundle].../gems/activesupport-4.0.13/lib/active_support/callbacks.rb:373:in `_run__1235613325680308781__call__callbacks'\n[bundle].../gems/activesupport-4.0.13/lib/active_support/callbacks.rb:80:in `run_callbacks'\n[bundle].../gems/actionpack-4.0.13/lib/action_dispatch/middleware/callbacks.rb:27:in `call'\n[bundle].../gems/actionpack-4.0.13/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\n[bundle].../gems/actionpack-4.0.13/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\n[bundle].../gems/actionpack-4.0.13/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\n[bundle].../gems/railties-4.0.13/lib/rails/rack/logger.rb:38:in `call_app'\n[bundle].../gems/railties-4.0.13/lib/rails/rack/logger.rb:20:in `block in call'\n[bundle].../gems/activesupport-4.0.13/lib/active_support/tagged_logging.rb:68:in `block in tagged'\n[bundle].../gems/activesupport-4.0.13/lib/active_support/tagged_logging.rb:26:in `tagged'\n[bundle].../gems/activesupport-4.0.13/lib/active_support/tagged_logging.rb:68:in `tagged'\n[bundle].../gems/railties-4.0.13/lib/rails/rack/logger.rb:20:in `call'\n[bundle].../gems/actionpack-4.0.13/lib/action_dispatch/middleware/request_id.rb:21:in `call'\n[bundle].../gems/rack-1.5.5/lib/rack/methodoverride.rb:21:in `call'\n[bundle].../gems/rack-1.5.5/lib/rack/runtime.rb:17:in `call'\n[bundle].../gems/activesupport-4.0.13/lib/active_support/cache/strategy/local_cache.rb:83:in `call'\n[bundle].../gems/actionpack-4.0.13/lib/action_dispatch/middleware/static.rb:84:in `call'\n[bundle].../gems/rack-1.5.5/lib/rack/sendfile.rb:112:in `call'\n[bundle].../gems/railties-4.0.13/lib/rails/engine.rb:511:in `call'\n[bundle].../gems/railties-4.0.13/lib/rails/application.rb:97:in `call'\n[bundle].../gems/rack-1.5.5/lib/rack/lint.rb:49:in `_call'\n[bundle].../gems/rack-1.5.5/lib/rack/lint.rb:37:in `call'\n[bundle].../gems/rack-1.5.5/lib/rack/showexceptions.rb:24:in `call'\n[bundle].../gems/rack-1.5.5/lib/rack/commonlogger.rb:33:in `call'\n[bundle].../gems/rack-1.5.5/lib/rack/chunked.rb:43:in `call'\n[bundle].../gems/rack-1.5.5/lib/rack/content_length.rb:14:in `call'\n[bundle].../gems/unicorn-5.3.1/lib/unicorn/http_server.rb:606:in `process_client'\n[bundle].../gems/unicorn-5.3.1/lib/unicorn/http_server.rb:702:in `worker_loop'\n[bundle].../gems/unicorn-5.3.1/lib/unicorn/http_server.rb:549:in `spawn_missing_workers'\n[bundle].../gems/unicorn-5.3.1/lib/unicorn/http_server.rb:142:in `start'\n[bundle].../gems/unicorn-5.3.1/bin/unicorn:126:in `<top (required)>'\n[bundle].../bin/unicorn:23:in `load'\n[bundle].../bin/unicorn:23:in `<main>'</pre>\nFingerprint: `ede998eeda4a5b28bb404520b5f0757d35a53d8e`\n"},"comment":{"url":"https://api.github.com/repos/enot-kg/enot/issues/comments/367798592","html_url":"https://github.com/enot-kg/enot/issues/27#issuecomment-367798592","issue_url":"https://api.github.com/repos/enot-kg/enot/issues/27","id":367798592,"user":{"login":"rastyagaev","id":84866,"avatar_url":"https://avatars2.githubusercontent.com/u/84866?v=4","gravatar_id":"","url":"https://api.github.com/users/rastyagaev","html_url":"https://github.com/rastyagaev","followers_url":"https://api.github.com/users/rastyagaev/followers","following_url":"https://api.github.com/users/rastyagaev/following{/other_user}","gists_url":"https://api.github.com/users/rastyagaev/gists{/gist_id}","starred_url":"https://api.github.com/users/rastyagaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rastyagaev/subscriptions","organizations_url":"https://api.github.com/users/rastyagaev/orgs","repos_url":"https://api.github.com/users/rastyagaev/repos","events_url":"https://api.github.com/users/rastyagaev/events{/privacy}","received_events_url":"https://api.github.com/users/rastyagaev/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T19:47:12Z","updated_at":"2018-02-22T19:47:12Z","author_association":"CONTRIBUTOR","body":"<table><tr><th>Occurred At</th><td>February 23, 2018 01:47:11 +0600</td></tr><tr><th>URL</th><td>[POST] /management/posts</td></tr><tr><th>Params</th><td><table><tr><th>utf8</th><td>✓</td></tr><tr><th>authenticity_token</th><td>hkxAwWDO2rLVKrZ//4VxeUZfkndcYoOtQhrs5GyKj7o=</td></tr><tr><th>post</th><td><table><tr><th>title</th><td>Почему неправильно загонять пешеходов в подземные и надземные переходы</td></tr><tr><th>lead</th><td>Урбанист отвечает на вопросы «Енота» по городскому устройству</td></tr><tr><th>subject_id</th><td></td></tr><tr><th>subject_type</th><td></td></tr><tr><th>subject</th><td></td></tr><tr><th>tag_list</th><td>в городе, есть вопрос, атай самыйбек, пешеходы</td></tr><tr><th>category</th><td>city</td></tr><tr><th>theme_id</th><td>49</td></tr><tr><th>layout_type</th><td>regular</td></tr><tr><th>tile_type</th><td>regular</td></tr><tr><th>poster</th><td>85e353ea-9113-468e-b0bb-ee44b572f861</td></tr><tr><th>featured_poster</th><td></td></tr><tr><th>index_poster</th><td></td></tr><tr><th>poster_color</th><td>light</td></tr><tr><th>content_blocks</th><td>[{&quot;type&quot;:&quot;text&quot;,&quot;content&quot;:&quot;«Енот» запускает новую рубрику, где собирает комментарии компетентных специалистов на заданную тему. Городской планировщик Атай Самыйбек отвечает на вопрос о том, почему не хорошо отдавать приоритет автотранспорту.&lt;br&gt;&lt;br&gt;&quot;,&quot;col&quot;:1,&quot;row&quot;:1}]</td></tr></table></td></tr><tr><th>commit</th><td>Сохранить</td></tr><tr><th>action</th><td>create</td></tr><tr><th>controller</th><td>management/posts</td></tr></table></td></tr><tr><th>Session</th><td><table></table></td></tr><tr><th>IP Address</th><td>217.29.24.230</td></tr><tr><th>HTTP Headers</th><td><table><tr><th>Version</th><td>HTTP/1.0</td></tr><tr><th>User Agent</th><td>Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36</td></tr><tr><th>Accept Encoding</th><td>gzip, deflate</td></tr><tr><th>Accept</th><td>text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8</td></tr></table></td></tr></table>"}}
{"actor":{"display_login":"rastyagaev"}}