{"action":"created","comment":{"url":"https://api.github.com/repos/qwat/qwat-data-model/pulls/comments/171602022","pull_request_review_id":100483487,"id":171602022,"diff_hunk":"@@ -0,0 +1,29 @@\n+CREATE VIEW qwat_ch_vd_sire.captage AS\n+\tSELECT\n+\t\tid AS ID_Num\n+\t\t, qwat_ext_ch_vd_sire_remarque|| remark AS remarque\n+\t\t, NULL AS Date_de_saisie -- TODO\n+\t\t, NULL AS Dern_M_a_J -- TODO\n+\t\t, precision_code_sire AS Precision_Geo\n+\t\t, fk_distributor AS id_distributeur\n+\t\t, qwat_ext_ch_vd_sire_etat_exploitation AS Etat_Exploitation\n+\t\t, year AS Annee_Construction\n+\t\t, NULL::text AS Nom_Descriptif\n+\t\t, folder_identification AS Numero_dossier\n+\t\t, fk_pressurezone AS ID_Zone_pression\n+\t\t, watertype_code_sire AS Type_eau\n+\t\t, source_type_code_sire AS Genre\n+\t\t, flow_lowest AS Q_Etiage\n+\t\t, flow_average AS Q_moyen\n+\t\t, source_quality_code_sire AS Qualite_Captage\n+\t\t, flow_concession AS Q_concession\n+\t\t, contract_end AS Date_fin_Concession\n+\t\t, gathering_chamber AS Chambre_de_Rassemblement\n+\t\t, NULL AS ID_Qualite -- TODO\n+\t\t, altitude AS Altitude\n+\t\t, qwat_ext_ch_vd_sire_adesafecter AS A_Desafecter_PDDE\n+\t\t, ST_Force2D(geometry) AS geometry\n+\tFROM qwat_od.vw_export_installation\n+\tWHERE\n+\t\tinstallation_type = 'source'","path":"extensions/ch_vd_sire/views/captage.sql","position":28,"original_position":28,"commit_id":"f20da533c8f32a7617c9ffe20e03d5860fba54fd","original_commit_id":"4ed0fe307aeeea5df9e8e8cd03df685037a1b258","user":{"login":"3nids","id":127259,"avatar_url":"https://avatars1.githubusercontent.com/u/127259?v=4","gravatar_id":"","url":"https://api.github.com/users/3nids","html_url":"https://github.com/3nids","followers_url":"https://api.github.com/users/3nids/followers","following_url":"https://api.github.com/users/3nids/following{/other_user}","gists_url":"https://api.github.com/users/3nids/gists{/gist_id}","starred_url":"https://api.github.com/users/3nids/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3nids/subscriptions","organizations_url":"https://api.github.com/users/3nids/orgs","repos_url":"https://api.github.com/users/3nids/repos","events_url":"https://api.github.com/users/3nids/events{/privacy}","received_events_url":"https://api.github.com/users/3nids/received_events","type":"User","site_admin":false},"body":"personnellement, je comprends dans la directive que tous les status existent, ils doivent donc se refléter dans la vue. Après, si le canton ne veut recevoir que de l'actif. Donc, effectivement, ça rejoint ce que tu dis en terme de format d'échange.","created_at":"2018-03-01T15:51:55Z","updated_at":"2018-03-01T15:51:55Z","html_url":"https://github.com/qwat/qwat-data-model/pull/217#discussion_r171602022","pull_request_url":"https://api.github.com/repos/qwat/qwat-data-model/pulls/217","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/qwat/qwat-data-model/pulls/comments/171602022"},"html":{"href":"https://github.com/qwat/qwat-data-model/pull/217#discussion_r171602022"},"pull_request":{"href":"https://api.github.com/repos/qwat/qwat-data-model/pulls/217"}},"in_reply_to_id":169143568},"pull_request":{"url":"https://api.github.com/repos/qwat/qwat-data-model/pulls/217","id":160170708,"html_url":"https://github.com/qwat/qwat-data-model/pull/217","diff_url":"https://github.com/qwat/qwat-data-model/pull/217.diff","patch_url":"https://github.com/qwat/qwat-data-model/pull/217.patch","issue_url":"https://api.github.com/repos/qwat/qwat-data-model/issues/217","number":217,"state":"closed","locked":false,"title":"update CH VD SIRE extension","user":{"login":"3nids","id":127259,"avatar_url":"https://avatars1.githubusercontent.com/u/127259?v=4","gravatar_id":"","url":"https://api.github.com/users/3nids","html_url":"https://github.com/3nids","followers_url":"https://api.github.com/users/3nids/followers","following_url":"https://api.github.com/users/3nids/following{/other_user}","gists_url":"https://api.github.com/users/3nids/gists{/gist_id}","starred_url":"https://api.github.com/users/3nids/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3nids/subscriptions","organizations_url":"https://api.github.com/users/3nids/orgs","repos_url":"https://api.github.com/users/3nids/repos","events_url":"https://api.github.com/users/3nids/events{/privacy}","received_events_url":"https://api.github.com/users/3nids/received_events","type":"User","site_admin":false},"body":"Ajout des vues pour l'export vers SIRE.\r\nIl  manque encore quelques conversions (voir https://github.com/qwat/QWAT/issues/247 )\r\n\r\nLes colonnes code_sire des VL sont encore dans le tronc commun de QWAT.\r\nLes vues d'export sont dans un schéma dédié.\r\n\r\nPour faire fonctionner les scripts de réécriture de vues, il faut exporter la variable d'environnement `QWAT_CH_VD_SIRE=ON`\r\n\r\nPrêt pour review.\r\n\r\n<!---\r\n@huboard:{\"order\":217.02180109,\"milestone_order\":217,\"custom_state\":\"\"}\n-->\r\n","created_at":"2017-12-26T21:53:58Z","updated_at":"2018-03-01T15:51:55Z","closed_at":"2018-03-01T12:53:31Z","merged_at":"2018-03-01T12:53:31Z","merge_commit_sha":"3c3a6f56d89f78633ed8cbc12e7e8a232c7bc24c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":500895146,"url":"https://api.github.com/repos/qwat/qwat-data-model/labels/3%20-%20Review","name":"3 - Review","color":"CCCCCC","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/qwat/qwat-data-model/pulls/217/commits","review_comments_url":"https://api.github.com/repos/qwat/qwat-data-model/pulls/217/comments","review_comment_url":"https://api.github.com/repos/qwat/qwat-data-model/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qwat/qwat-data-model/issues/217/comments","statuses_url":"https://api.github.com/repos/qwat/qwat-data-model/statuses/f20da533c8f32a7617c9ffe20e03d5860fba54fd","head":{"label":"qwat:sire_ext","ref":"sire_ext","sha":"f20da533c8f32a7617c9ffe20e03d5860fba54fd","user":{"login":"qwat","id":1303359,"avatar_url":"https://avatars0.githubusercontent.com/u/1303359?v=4","gravatar_id":"","url":"https://api.github.com/users/qwat","html_url":"https://github.com/qwat","followers_url":"https://api.github.com/users/qwat/followers","following_url":"https://api.github.com/users/qwat/following{/other_user}","gists_url":"https://api.github.com/users/qwat/gists{/gist_id}","starred_url":"https://api.github.com/users/qwat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qwat/subscriptions","organizations_url":"https://api.github.com/users/qwat/orgs","repos_url":"https://api.github.com/users/qwat/repos","events_url":"https://api.github.com/users/qwat/events{/privacy}","received_events_url":"https://api.github.com/users/qwat/received_events","type":"Organization","site_admin":false},"repo":{"id":28190802,"name":"qwat-data-model","full_name":"qwat/qwat-data-model","owner":{"login":"qwat","id":1303359,"avatar_url":"https://avatars0.githubusercontent.com/u/1303359?v=4","gravatar_id":"","url":"https://api.github.com/users/qwat","html_url":"https://github.com/qwat","followers_url":"https://api.github.com/users/qwat/followers","following_url":"https://api.github.com/users/qwat/following{/other_user}","gists_url":"https://api.github.com/users/qwat/gists{/gist_id}","starred_url":"https://api.github.com/users/qwat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qwat/subscriptions","organizations_url":"https://api.github.com/users/qwat/orgs","repos_url":"https://api.github.com/users/qwat/repos","events_url":"https://api.github.com/users/qwat/events{/privacy}","received_events_url":"https://api.github.com/users/qwat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qwat/qwat-data-model","description":"This is the PostGIS data model for QWAT, the water management software based on QGIS","fork":false,"url":"https://api.github.com/repos/qwat/qwat-data-model","forks_url":"https://api.github.com/repos/qwat/qwat-data-model/forks","keys_url":"https://api.github.com/repos/qwat/qwat-data-model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qwat/qwat-data-model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qwat/qwat-data-model/teams","hooks_url":"https://api.github.com/repos/qwat/qwat-data-model/hooks","issue_events_url":"https://api.github.com/repos/qwat/qwat-data-model/issues/events{/number}","events_url":"https://api.github.com/repos/qwat/qwat-data-model/events","assignees_url":"https://api.github.com/repos/qwat/qwat-data-model/assignees{/user}","branches_url":"https://api.github.com/repos/qwat/qwat-data-model/branches{/branch}","tags_url":"https://api.github.com/repos/qwat/qwat-data-model/tags","blobs_url":"https://api.github.com/repos/qwat/qwat-data-model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qwat/qwat-data-model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qwat/qwat-data-model/git/refs{/sha}","trees_url":"https://api.github.com/repos/qwat/qwat-data-model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qwat/qwat-data-model/statuses/{sha}","languages_url":"https://api.github.com/repos/qwat/qwat-data-model/languages","stargazers_url":"https://api.github.com/repos/qwat/qwat-data-model/stargazers","contributors_url":"https://api.github.com/repos/qwat/qwat-data-model/contributors","subscribers_url":"https://api.github.com/repos/qwat/qwat-data-model/subscribers","subscription_url":"https://api.github.com/repos/qwat/qwat-data-model/subscription","commits_url":"https://api.github.com/repos/qwat/qwat-data-model/commits{/sha}","git_commits_url":"https://api.github.com/repos/qwat/qwat-data-model/git/commits{/sha}","comments_url":"https://api.github.com/repos/qwat/qwat-data-model/comments{/number}","issue_comment_url":"https://api.github.com/repos/qwat/qwat-data-model/issues/comments{/number}","contents_url":"https://api.github.com/repos/qwat/qwat-data-model/contents/{+path}","compare_url":"https://api.github.com/repos/qwat/qwat-data-model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qwat/qwat-data-model/merges","archive_url":"https://api.github.com/repos/qwat/qwat-data-model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qwat/qwat-data-model/downloads","issues_url":"https://api.github.com/repos/qwat/qwat-data-model/issues{/number}","pulls_url":"https://api.github.com/repos/qwat/qwat-data-model/pulls{/number}","milestones_url":"https://api.github.com/repos/qwat/qwat-data-model/milestones{/number}","notifications_url":"https://api.github.com/repos/qwat/qwat-data-model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qwat/qwat-data-model/labels{/name}","releases_url":"https://api.github.com/repos/qwat/qwat-data-model/releases{/id}","deployments_url":"https://api.github.com/repos/qwat/qwat-data-model/deployments","created_at":"2014-12-18T16:13:05Z","updated_at":"2018-02-12T20:29:58Z","pushed_at":"2018-03-01T14:14:28Z","git_url":"git://github.com/qwat/qwat-data-model.git","ssh_url":"git@github.com:qwat/qwat-data-model.git","clone_url":"https://github.com/qwat/qwat-data-model.git","svn_url":"https://github.com/qwat/qwat-data-model","homepage":"http://www.qwat.org","size":32125,"stargazers_count":9,"watchers_count":9,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":41,"license":null,"forks":18,"open_issues":41,"watchers":9,"default_branch":"master"}},"base":{"label":"qwat:master","ref":"master","sha":"a9159a842b91b369d7de0d5af2a5dbbf34bdcef4","user":{"login":"qwat","id":1303359,"avatar_url":"https://avatars0.githubusercontent.com/u/1303359?v=4","gravatar_id":"","url":"https://api.github.com/users/qwat","html_url":"https://github.com/qwat","followers_url":"https://api.github.com/users/qwat/followers","following_url":"https://api.github.com/users/qwat/following{/other_user}","gists_url":"https://api.github.com/users/qwat/gists{/gist_id}","starred_url":"https://api.github.com/users/qwat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qwat/subscriptions","organizations_url":"https://api.github.com/users/qwat/orgs","repos_url":"https://api.github.com/users/qwat/repos","events_url":"https://api.github.com/users/qwat/events{/privacy}","received_events_url":"https://api.github.com/users/qwat/received_events","type":"Organization","site_admin":false},"repo":{"id":28190802,"name":"qwat-data-model","full_name":"qwat/qwat-data-model","owner":{"login":"qwat","id":1303359,"avatar_url":"https://avatars0.githubusercontent.com/u/1303359?v=4","gravatar_id":"","url":"https://api.github.com/users/qwat","html_url":"https://github.com/qwat","followers_url":"https://api.github.com/users/qwat/followers","following_url":"https://api.github.com/users/qwat/following{/other_user}","gists_url":"https://api.github.com/users/qwat/gists{/gist_id}","starred_url":"https://api.github.com/users/qwat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qwat/subscriptions","organizations_url":"https://api.github.com/users/qwat/orgs","repos_url":"https://api.github.com/users/qwat/repos","events_url":"https://api.github.com/users/qwat/events{/privacy}","received_events_url":"https://api.github.com/users/qwat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qwat/qwat-data-model","description":"This is the PostGIS data model for QWAT, the water management software based on QGIS","fork":false,"url":"https://api.github.com/repos/qwat/qwat-data-model","forks_url":"https://api.github.com/repos/qwat/qwat-data-model/forks","keys_url":"https://api.github.com/repos/qwat/qwat-data-model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qwat/qwat-data-model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qwat/qwat-data-model/teams","hooks_url":"https://api.github.com/repos/qwat/qwat-data-model/hooks","issue_events_url":"https://api.github.com/repos/qwat/qwat-data-model/issues/events{/number}","events_url":"https://api.github.com/repos/qwat/qwat-data-model/events","assignees_url":"https://api.github.com/repos/qwat/qwat-data-model/assignees{/user}","branches_url":"https://api.github.com/repos/qwat/qwat-data-model/branches{/branch}","tags_url":"https://api.github.com/repos/qwat/qwat-data-model/tags","blobs_url":"https://api.github.com/repos/qwat/qwat-data-model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qwat/qwat-data-model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qwat/qwat-data-model/git/refs{/sha}","trees_url":"https://api.github.com/repos/qwat/qwat-data-model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qwat/qwat-data-model/statuses/{sha}","languages_url":"https://api.github.com/repos/qwat/qwat-data-model/languages","stargazers_url":"https://api.github.com/repos/qwat/qwat-data-model/stargazers","contributors_url":"https://api.github.com/repos/qwat/qwat-data-model/contributors","subscribers_url":"https://api.github.com/repos/qwat/qwat-data-model/subscribers","subscription_url":"https://api.github.com/repos/qwat/qwat-data-model/subscription","commits_url":"https://api.github.com/repos/qwat/qwat-data-model/commits{/sha}","git_commits_url":"https://api.github.com/repos/qwat/qwat-data-model/git/commits{/sha}","comments_url":"https://api.github.com/repos/qwat/qwat-data-model/comments{/number}","issue_comment_url":"https://api.github.com/repos/qwat/qwat-data-model/issues/comments{/number}","contents_url":"https://api.github.com/repos/qwat/qwat-data-model/contents/{+path}","compare_url":"https://api.github.com/repos/qwat/qwat-data-model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qwat/qwat-data-model/merges","archive_url":"https://api.github.com/repos/qwat/qwat-data-model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qwat/qwat-data-model/downloads","issues_url":"https://api.github.com/repos/qwat/qwat-data-model/issues{/number}","pulls_url":"https://api.github.com/repos/qwat/qwat-data-model/pulls{/number}","milestones_url":"https://api.github.com/repos/qwat/qwat-data-model/milestones{/number}","notifications_url":"https://api.github.com/repos/qwat/qwat-data-model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qwat/qwat-data-model/labels{/name}","releases_url":"https://api.github.com/repos/qwat/qwat-data-model/releases{/id}","deployments_url":"https://api.github.com/repos/qwat/qwat-data-model/deployments","created_at":"2014-12-18T16:13:05Z","updated_at":"2018-02-12T20:29:58Z","pushed_at":"2018-03-01T14:14:28Z","git_url":"git://github.com/qwat/qwat-data-model.git","ssh_url":"git@github.com:qwat/qwat-data-model.git","clone_url":"https://github.com/qwat/qwat-data-model.git","svn_url":"https://github.com/qwat/qwat-data-model","homepage":"http://www.qwat.org","size":32125,"stargazers_count":9,"watchers_count":9,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":41,"license":null,"forks":18,"open_issues":41,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qwat/qwat-data-model/pulls/217"},"html":{"href":"https://github.com/qwat/qwat-data-model/pull/217"},"issue":{"href":"https://api.github.com/repos/qwat/qwat-data-model/issues/217"},"comments":{"href":"https://api.github.com/repos/qwat/qwat-data-model/issues/217/comments"},"review_comments":{"href":"https://api.github.com/repos/qwat/qwat-data-model/pulls/217/comments"},"review_comment":{"href":"https://api.github.com/repos/qwat/qwat-data-model/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qwat/qwat-data-model/pulls/217/commits"},"statuses":{"href":"https://api.github.com/repos/qwat/qwat-data-model/statuses/f20da533c8f32a7617c9ffe20e03d5860fba54fd"}},"author_association":"OWNER"}}
{"actor":{"display_login":"3nids"}}