{"action":"created","comment":{"url":"https://api.github.com/repos/ekylibre/ekylibre/pulls/comments/67131539","id":67131539,"diff_hunk":"@@ -0,0 +1,57 @@\n+# = Informations\n+#\n+# == License\n+#\n+# Ekylibre - Simple agricultural ERP\n+# Copyright (C) 2008-2009 Brice Texier, Thibaud Merigon\n+# Copyright (C) 2010-2012 Brice Texier\n+# Copyright (C) 2012-2016 Brice Texier, David Joulin\n+#\n+# This program is free software: you can redistribute it and/or modify\n+# it under the terms of the GNU Affero General Public License as published by\n+# the Free Software Foundation, either version 3 of the License, or\n+# any later version.\n+#\n+# This program is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU Affero General Public License for more details.\n+#\n+# You should have received a copy of the GNU Affero General Public License\n+# along with this program.  If not, see http://www.gnu.org/licenses.\n+#\n+# == Table: product_nature_variant_components\n+#\n+#  created_at       :datetime         not null\n+#  creator_id       :integer\n+#  id               :integer          not null, primary key\n+#  lock_version     :integer          default(0), not null\n+#  name             :string           not null\n+#  piece_variant_id :integer          not null\n+#  updated_at       :datetime         not null\n+#  updater_id       :integer\n+#  variant_id       :integer          not null\n+#\n+require 'test_helper'\n+\n+class ProductNatureVariantComponentTest < ActiveSupport::TestCase\n+  test 'test non recursivity of components' do\n+    tractor = ProductNatureVariant.import_from_nomenclature(:tractor)\n+    piston = ProductNatureVariant.create!(nature: ProductNature.import_from_nomenclature(:equipment), name: 'Piston B72 injection retro, alliage titane', unit_name: 'Piston')\n+    motor_v12 = ProductNatureVariant.create!(nature: ProductNature.import_from_nomenclature(:equipment), name: 'Moteur V12 injection gtx 18L, 2013', unit_name: 'Moteur')\n+    tractor.components.create!(name: 'Moteur', piece_variant: motor_v12)\n+    motor_v12.components.create!(name: 'Piston 1', piece_variant: piston)\n+    motor_v12.components.create!(name: 'Piston 2', piece_variant: piston)","path":"test/models/product_nature_variant_component_test.rb","position":44,"original_position":44,"commit_id":"b9e262a63896f661c21fd434ee52035c4864e0ce","original_commit_id":"b9e262a63896f661c21fd434ee52035c4864e0ce","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2016-06-15T09:46:28Z","updated_at":"2016-06-15T09:46:28Z","html_url":"https://github.com/ekylibre/ekylibre/pull/745#discussion_r67131539","pull_request_url":"https://api.github.com/repos/ekylibre/ekylibre/pulls/745","_links":{"self":{"href":"https://api.github.com/repos/ekylibre/ekylibre/pulls/comments/67131539"},"html":{"href":"https://github.com/ekylibre/ekylibre/pull/745#discussion_r67131539"},"pull_request":{"href":"https://api.github.com/repos/ekylibre/ekylibre/pulls/745"}}},"pull_request":{"url":"https://api.github.com/repos/ekylibre/ekylibre/pulls/745","id":73881325,"html_url":"https://github.com/ekylibre/ekylibre/pull/745","diff_url":"https://github.com/ekylibre/ekylibre/pull/745.diff","patch_url":"https://github.com/ekylibre/ekylibre/pull/745.patch","issue_url":"https://api.github.com/repos/ekylibre/ekylibre/issues/745","number":745,"state":"open","locked":false,"title":"Adds product nature variant components","user":{"login":"Guichevrat","id":10464762,"avatar_url":"https://avatars.githubusercontent.com/u/10464762?v=3","gravatar_id":"","url":"https://api.github.com/users/Guichevrat","html_url":"https://github.com/Guichevrat","followers_url":"https://api.github.com/users/Guichevrat/followers","following_url":"https://api.github.com/users/Guichevrat/following{/other_user}","gists_url":"https://api.github.com/users/Guichevrat/gists{/gist_id}","starred_url":"https://api.github.com/users/Guichevrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guichevrat/subscriptions","organizations_url":"https://api.github.com/users/Guichevrat/orgs","repos_url":"https://api.github.com/users/Guichevrat/repos","events_url":"https://api.github.com/users/Guichevrat/events{/privacy}","received_events_url":"https://api.github.com/users/Guichevrat/received_events","type":"User","site_admin":false},"body":"Adding the possibility to add a trouble and its description during an intervention. Showing it in the intervention's list. \r\nCreating `product_nature_variant_component` table to add components into another.\r\nAdding the views to show a product's composition. ","created_at":"2016-06-15T09:46:14Z","updated_at":"2016-06-15T09:46:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ekylibre/ekylibre/pulls/745/commits","review_comments_url":"https://api.github.com/repos/ekylibre/ekylibre/pulls/745/comments","review_comment_url":"https://api.github.com/repos/ekylibre/ekylibre/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ekylibre/ekylibre/issues/745/comments","statuses_url":"https://api.github.com/repos/ekylibre/ekylibre/statuses/b9e262a63896f661c21fd434ee52035c4864e0ce","head":{"label":"Guichevrat:master","ref":"master","sha":"b9e262a63896f661c21fd434ee52035c4864e0ce","user":{"login":"Guichevrat","id":10464762,"avatar_url":"https://avatars.githubusercontent.com/u/10464762?v=3","gravatar_id":"","url":"https://api.github.com/users/Guichevrat","html_url":"https://github.com/Guichevrat","followers_url":"https://api.github.com/users/Guichevrat/followers","following_url":"https://api.github.com/users/Guichevrat/following{/other_user}","gists_url":"https://api.github.com/users/Guichevrat/gists{/gist_id}","starred_url":"https://api.github.com/users/Guichevrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guichevrat/subscriptions","organizations_url":"https://api.github.com/users/Guichevrat/orgs","repos_url":"https://api.github.com/users/Guichevrat/repos","events_url":"https://api.github.com/users/Guichevrat/events{/privacy}","received_events_url":"https://api.github.com/users/Guichevrat/received_events","type":"User","site_admin":false},"repo":{"id":60067738,"name":"ekylibre","full_name":"Guichevrat/ekylibre","owner":{"login":"Guichevrat","id":10464762,"avatar_url":"https://avatars.githubusercontent.com/u/10464762?v=3","gravatar_id":"","url":"https://api.github.com/users/Guichevrat","html_url":"https://github.com/Guichevrat","followers_url":"https://api.github.com/users/Guichevrat/followers","following_url":"https://api.github.com/users/Guichevrat/following{/other_user}","gists_url":"https://api.github.com/users/Guichevrat/gists{/gist_id}","starred_url":"https://api.github.com/users/Guichevrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guichevrat/subscriptions","organizations_url":"https://api.github.com/users/Guichevrat/orgs","repos_url":"https://api.github.com/users/Guichevrat/repos","events_url":"https://api.github.com/users/Guichevrat/events{/privacy}","received_events_url":"https://api.github.com/users/Guichevrat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Guichevrat/ekylibre","description":"Connecting farms to the world","fork":true,"url":"https://api.github.com/repos/Guichevrat/ekylibre","forks_url":"https://api.github.com/repos/Guichevrat/ekylibre/forks","keys_url":"https://api.github.com/repos/Guichevrat/ekylibre/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Guichevrat/ekylibre/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Guichevrat/ekylibre/teams","hooks_url":"https://api.github.com/repos/Guichevrat/ekylibre/hooks","issue_events_url":"https://api.github.com/repos/Guichevrat/ekylibre/issues/events{/number}","events_url":"https://api.github.com/repos/Guichevrat/ekylibre/events","assignees_url":"https://api.github.com/repos/Guichevrat/ekylibre/assignees{/user}","branches_url":"https://api.github.com/repos/Guichevrat/ekylibre/branches{/branch}","tags_url":"https://api.github.com/repos/Guichevrat/ekylibre/tags","blobs_url":"https://api.github.com/repos/Guichevrat/ekylibre/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Guichevrat/ekylibre/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Guichevrat/ekylibre/git/refs{/sha}","trees_url":"https://api.github.com/repos/Guichevrat/ekylibre/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Guichevrat/ekylibre/statuses/{sha}","languages_url":"https://api.github.com/repos/Guichevrat/ekylibre/languages","stargazers_url":"https://api.github.com/repos/Guichevrat/ekylibre/stargazers","contributors_url":"https://api.github.com/repos/Guichevrat/ekylibre/contributors","subscribers_url":"https://api.github.com/repos/Guichevrat/ekylibre/subscribers","subscription_url":"https://api.github.com/repos/Guichevrat/ekylibre/subscription","commits_url":"https://api.github.com/repos/Guichevrat/ekylibre/commits{/sha}","git_commits_url":"https://api.github.com/repos/Guichevrat/ekylibre/git/commits{/sha}","comments_url":"https://api.github.com/repos/Guichevrat/ekylibre/comments{/number}","issue_comment_url":"https://api.github.com/repos/Guichevrat/ekylibre/issues/comments{/number}","contents_url":"https://api.github.com/repos/Guichevrat/ekylibre/contents/{+path}","compare_url":"https://api.github.com/repos/Guichevrat/ekylibre/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Guichevrat/ekylibre/merges","archive_url":"https://api.github.com/repos/Guichevrat/ekylibre/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Guichevrat/ekylibre/downloads","issues_url":"https://api.github.com/repos/Guichevrat/ekylibre/issues{/number}","pulls_url":"https://api.github.com/repos/Guichevrat/ekylibre/pulls{/number}","milestones_url":"https://api.github.com/repos/Guichevrat/ekylibre/milestones{/number}","notifications_url":"https://api.github.com/repos/Guichevrat/ekylibre/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Guichevrat/ekylibre/labels{/name}","releases_url":"https://api.github.com/repos/Guichevrat/ekylibre/releases{/id}","deployments_url":"https://api.github.com/repos/Guichevrat/ekylibre/deployments","created_at":"2016-05-31T07:31:05Z","updated_at":"2016-06-03T06:59:54Z","pushed_at":"2016-06-15T09:20:22Z","git_url":"git://github.com/Guichevrat/ekylibre.git","ssh_url":"git@github.com:Guichevrat/ekylibre.git","clone_url":"https://github.com/Guichevrat/ekylibre.git","svn_url":"https://github.com/Guichevrat/ekylibre","homepage":"https://ekylibre.com","size":163458,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"ekylibre:master","ref":"master","sha":"2567911dbcb86be8e931bdfa93560c44a3bf6939","user":{"login":"ekylibre","id":779136,"avatar_url":"https://avatars.githubusercontent.com/u/779136?v=3","gravatar_id":"","url":"https://api.github.com/users/ekylibre","html_url":"https://github.com/ekylibre","followers_url":"https://api.github.com/users/ekylibre/followers","following_url":"https://api.github.com/users/ekylibre/following{/other_user}","gists_url":"https://api.github.com/users/ekylibre/gists{/gist_id}","starred_url":"https://api.github.com/users/ekylibre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekylibre/subscriptions","organizations_url":"https://api.github.com/users/ekylibre/orgs","repos_url":"https://api.github.com/users/ekylibre/repos","events_url":"https://api.github.com/users/ekylibre/events{/privacy}","received_events_url":"https://api.github.com/users/ekylibre/received_events","type":"Organization","site_admin":false},"repo":{"id":2196186,"name":"ekylibre","full_name":"ekylibre/ekylibre","owner":{"login":"ekylibre","id":779136,"avatar_url":"https://avatars.githubusercontent.com/u/779136?v=3","gravatar_id":"","url":"https://api.github.com/users/ekylibre","html_url":"https://github.com/ekylibre","followers_url":"https://api.github.com/users/ekylibre/followers","following_url":"https://api.github.com/users/ekylibre/following{/other_user}","gists_url":"https://api.github.com/users/ekylibre/gists{/gist_id}","starred_url":"https://api.github.com/users/ekylibre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekylibre/subscriptions","organizations_url":"https://api.github.com/users/ekylibre/orgs","repos_url":"https://api.github.com/users/ekylibre/repos","events_url":"https://api.github.com/users/ekylibre/events{/privacy}","received_events_url":"https://api.github.com/users/ekylibre/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ekylibre/ekylibre","description":"Connecting farms to the world","fork":false,"url":"https://api.github.com/repos/ekylibre/ekylibre","forks_url":"https://api.github.com/repos/ekylibre/ekylibre/forks","keys_url":"https://api.github.com/repos/ekylibre/ekylibre/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ekylibre/ekylibre/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ekylibre/ekylibre/teams","hooks_url":"https://api.github.com/repos/ekylibre/ekylibre/hooks","issue_events_url":"https://api.github.com/repos/ekylibre/ekylibre/issues/events{/number}","events_url":"https://api.github.com/repos/ekylibre/ekylibre/events","assignees_url":"https://api.github.com/repos/ekylibre/ekylibre/assignees{/user}","branches_url":"https://api.github.com/repos/ekylibre/ekylibre/branches{/branch}","tags_url":"https://api.github.com/repos/ekylibre/ekylibre/tags","blobs_url":"https://api.github.com/repos/ekylibre/ekylibre/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ekylibre/ekylibre/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ekylibre/ekylibre/git/refs{/sha}","trees_url":"https://api.github.com/repos/ekylibre/ekylibre/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ekylibre/ekylibre/statuses/{sha}","languages_url":"https://api.github.com/repos/ekylibre/ekylibre/languages","stargazers_url":"https://api.github.com/repos/ekylibre/ekylibre/stargazers","contributors_url":"https://api.github.com/repos/ekylibre/ekylibre/contributors","subscribers_url":"https://api.github.com/repos/ekylibre/ekylibre/subscribers","subscription_url":"https://api.github.com/repos/ekylibre/ekylibre/subscription","commits_url":"https://api.github.com/repos/ekylibre/ekylibre/commits{/sha}","git_commits_url":"https://api.github.com/repos/ekylibre/ekylibre/git/commits{/sha}","comments_url":"https://api.github.com/repos/ekylibre/ekylibre/comments{/number}","issue_comment_url":"https://api.github.com/repos/ekylibre/ekylibre/issues/comments{/number}","contents_url":"https://api.github.com/repos/ekylibre/ekylibre/contents/{+path}","compare_url":"https://api.github.com/repos/ekylibre/ekylibre/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ekylibre/ekylibre/merges","archive_url":"https://api.github.com/repos/ekylibre/ekylibre/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ekylibre/ekylibre/downloads","issues_url":"https://api.github.com/repos/ekylibre/ekylibre/issues{/number}","pulls_url":"https://api.github.com/repos/ekylibre/ekylibre/pulls{/number}","milestones_url":"https://api.github.com/repos/ekylibre/ekylibre/milestones{/number}","notifications_url":"https://api.github.com/repos/ekylibre/ekylibre/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ekylibre/ekylibre/labels{/name}","releases_url":"https://api.github.com/repos/ekylibre/ekylibre/releases{/id}","deployments_url":"https://api.github.com/repos/ekylibre/ekylibre/deployments","created_at":"2011-08-12T09:03:48Z","updated_at":"2016-06-15T07:10:27Z","pushed_at":"2016-06-15T09:46:14Z","git_url":"git://github.com/ekylibre/ekylibre.git","ssh_url":"git@github.com:ekylibre/ekylibre.git","clone_url":"https://github.com/ekylibre/ekylibre.git","svn_url":"https://github.com/ekylibre/ekylibre","homepage":"https://ekylibre.com","size":170822,"stargazers_count":74,"watchers_count":74,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":138,"forks":37,"open_issues":138,"watchers":74,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ekylibre/ekylibre/pulls/745"},"html":{"href":"https://github.com/ekylibre/ekylibre/pull/745"},"issue":{"href":"https://api.github.com/repos/ekylibre/ekylibre/issues/745"},"comments":{"href":"https://api.github.com/repos/ekylibre/ekylibre/issues/745/comments"},"review_comments":{"href":"https://api.github.com/repos/ekylibre/ekylibre/pulls/745/comments"},"review_comment":{"href":"https://api.github.com/repos/ekylibre/ekylibre/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ekylibre/ekylibre/pulls/745/commits"},"statuses":{"href":"https://api.github.com/repos/ekylibre/ekylibre/statuses/b9e262a63896f661c21fd434ee52035c4864e0ce"}}}}
{"actor":{"display_login":"houndci-bot"}}