{"action":"created","comment":{"url":"https://api.github.com/repos/omegaup/omegaup/pulls/comments/232151167","pull_request_review_id":173284793,"id":232151167,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjE1MTE2Nw==","diff_hunk":"@@ -12,6 +12,9 @@ OmegaUp.on('ready', function() {\n         .then((response) => {\n           ev[param] = response[key] || response;\n           ev.$parent[param] = response[key] || response;\n+          if (param == 'problems') {","path":"frontend/www/js/omegaup/contest/edit.js","position":null,"original_position":4,"commit_id":"19721c3ea2067e7aa8b6c25bfe2955a5ee2ec219","original_commit_id":"855a90e58c13e57971fea133c1e172cab445c30a","user":{"login":"pabo99","id":3230352,"node_id":"MDQ6VXNlcjMyMzAzNTI=","avatar_url":"https://avatars0.githubusercontent.com/u/3230352?v=4","gravatar_id":"","url":"https://api.github.com/users/pabo99","html_url":"https://github.com/pabo99","followers_url":"https://api.github.com/users/pabo99/followers","following_url":"https://api.github.com/users/pabo99/following{/other_user}","gists_url":"https://api.github.com/users/pabo99/gists{/gist_id}","starred_url":"https://api.github.com/users/pabo99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabo99/subscriptions","organizations_url":"https://api.github.com/users/pabo99/orgs","repos_url":"https://api.github.com/users/pabo99/repos","events_url":"https://api.github.com/users/pabo99/events{/privacy}","received_events_url":"https://api.github.com/users/pabo99/received_events","type":"User","site_admin":false},"body":"Lo que se pretende hacer aquí es actualizar el número de orden que continúa una vez que se agregó una pregunta, ya metí todo en una promesa, pero aún no encuentro otro lugar para hacer este cálculo, más que dentro de la respuesta de la promesa L20.","created_at":"2018-11-09T06:16:56Z","updated_at":"2018-11-09T06:16:56Z","html_url":"https://github.com/omegaup/omegaup/pull/2228#discussion_r232151167","pull_request_url":"https://api.github.com/repos/omegaup/omegaup/pulls/2228","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/comments/232151167"},"html":{"href":"https://github.com/omegaup/omegaup/pull/2228#discussion_r232151167"},"pull_request":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/2228"}},"in_reply_to_id":228028232},"pull_request":{"url":"https://api.github.com/repos/omegaup/omegaup/pulls/2228","id":225584894,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1NTg0ODk0","html_url":"https://github.com/omegaup/omegaup/pull/2228","diff_url":"https://github.com/omegaup/omegaup/pull/2228.diff","patch_url":"https://github.com/omegaup/omegaup/pull/2228.patch","issue_url":"https://api.github.com/repos/omegaup/omegaup/issues/2228","number":2228,"state":"open","locked":false,"title":"Normalizando el orden de los problemas en un concurso","user":{"login":"pabo99","id":3230352,"node_id":"MDQ6VXNlcjMyMzAzNTI=","avatar_url":"https://avatars0.githubusercontent.com/u/3230352?v=4","gravatar_id":"","url":"https://api.github.com/users/pabo99","html_url":"https://github.com/pabo99","followers_url":"https://api.github.com/users/pabo99/followers","following_url":"https://api.github.com/users/pabo99/following{/other_user}","gists_url":"https://api.github.com/users/pabo99/gists{/gist_id}","starred_url":"https://api.github.com/users/pabo99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabo99/subscriptions","organizations_url":"https://api.github.com/users/pabo99/orgs","repos_url":"https://api.github.com/users/pabo99/repos","events_url":"https://api.github.com/users/pabo99/events{/privacy}","received_events_url":"https://api.github.com/users/pabo99/received_events","type":"User","site_admin":false},"body":"# Descripción\r\n\r\nSe arregla bug que provocaba que se mezclaran los resultados de los problemas en un concurso. Esto era ocasionado debido a que no estaba normalizada la forma de ordenar los problemas en un `problemset`. \r\n\r\nAdemás se agregó en la `UI` un incremento en el campo de orden, para que ya se almacene bien desde el momento en que se agregan los problemas al concurso.\r\n\r\nFixes: #2196 \r\n\r\n# Comentarios\r\n\r\nFalta revisar si es necesario corregir el orden de los concursos ya existentes, aunque no debería ser necesario con la corrección del ordenamiento.\r\n\r\n# Checklist:\r\n\r\n- [X] El código sigue la [guía de\r\n      estilo](https://github.com/omegaup/omegaup/wiki/Coding-guidelines) de\r\n      omegaUp.\r\n- [X] Se corrieron todas las pruebas y pasaron.\r\n- [X] Si se está agregando funcionalidad nueva, se agregaron pruebas.\r\n","created_at":"2018-10-24T23:53:20Z","updated_at":"2018-11-09T06:16:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf6826c15c5e3cab72bb2aca9df6eba16ebc54a5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/omegaup/omegaup/pulls/2228/commits","review_comments_url":"https://api.github.com/repos/omegaup/omegaup/pulls/2228/comments","review_comment_url":"https://api.github.com/repos/omegaup/omegaup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/omegaup/omegaup/issues/2228/comments","statuses_url":"https://api.github.com/repos/omegaup/omegaup/statuses/19721c3ea2067e7aa8b6c25bfe2955a5ee2ec219","head":{"label":"pabo99:fix-bug-problems-list","ref":"fix-bug-problems-list","sha":"19721c3ea2067e7aa8b6c25bfe2955a5ee2ec219","user":{"login":"pabo99","id":3230352,"node_id":"MDQ6VXNlcjMyMzAzNTI=","avatar_url":"https://avatars0.githubusercontent.com/u/3230352?v=4","gravatar_id":"","url":"https://api.github.com/users/pabo99","html_url":"https://github.com/pabo99","followers_url":"https://api.github.com/users/pabo99/followers","following_url":"https://api.github.com/users/pabo99/following{/other_user}","gists_url":"https://api.github.com/users/pabo99/gists{/gist_id}","starred_url":"https://api.github.com/users/pabo99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabo99/subscriptions","organizations_url":"https://api.github.com/users/pabo99/orgs","repos_url":"https://api.github.com/users/pabo99/repos","events_url":"https://api.github.com/users/pabo99/events{/privacy}","received_events_url":"https://api.github.com/users/pabo99/received_events","type":"User","site_admin":false},"repo":{"id":101674377,"node_id":"MDEwOlJlcG9zaXRvcnkxMDE2NzQzNzc=","name":"omegaup","full_name":"pabo99/omegaup","private":false,"owner":{"login":"pabo99","id":3230352,"node_id":"MDQ6VXNlcjMyMzAzNTI=","avatar_url":"https://avatars0.githubusercontent.com/u/3230352?v=4","gravatar_id":"","url":"https://api.github.com/users/pabo99","html_url":"https://github.com/pabo99","followers_url":"https://api.github.com/users/pabo99/followers","following_url":"https://api.github.com/users/pabo99/following{/other_user}","gists_url":"https://api.github.com/users/pabo99/gists{/gist_id}","starred_url":"https://api.github.com/users/pabo99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabo99/subscriptions","organizations_url":"https://api.github.com/users/pabo99/orgs","repos_url":"https://api.github.com/users/pabo99/repos","events_url":"https://api.github.com/users/pabo99/events{/privacy}","received_events_url":"https://api.github.com/users/pabo99/received_events","type":"User","site_admin":false},"html_url":"https://github.com/pabo99/omegaup","description":"omegaUp automatic programming contest evaluator & arena","fork":true,"url":"https://api.github.com/repos/pabo99/omegaup","forks_url":"https://api.github.com/repos/pabo99/omegaup/forks","keys_url":"https://api.github.com/repos/pabo99/omegaup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pabo99/omegaup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pabo99/omegaup/teams","hooks_url":"https://api.github.com/repos/pabo99/omegaup/hooks","issue_events_url":"https://api.github.com/repos/pabo99/omegaup/issues/events{/number}","events_url":"https://api.github.com/repos/pabo99/omegaup/events","assignees_url":"https://api.github.com/repos/pabo99/omegaup/assignees{/user}","branches_url":"https://api.github.com/repos/pabo99/omegaup/branches{/branch}","tags_url":"https://api.github.com/repos/pabo99/omegaup/tags","blobs_url":"https://api.github.com/repos/pabo99/omegaup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pabo99/omegaup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pabo99/omegaup/git/refs{/sha}","trees_url":"https://api.github.com/repos/pabo99/omegaup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pabo99/omegaup/statuses/{sha}","languages_url":"https://api.github.com/repos/pabo99/omegaup/languages","stargazers_url":"https://api.github.com/repos/pabo99/omegaup/stargazers","contributors_url":"https://api.github.com/repos/pabo99/omegaup/contributors","subscribers_url":"https://api.github.com/repos/pabo99/omegaup/subscribers","subscription_url":"https://api.github.com/repos/pabo99/omegaup/subscription","commits_url":"https://api.github.com/repos/pabo99/omegaup/commits{/sha}","git_commits_url":"https://api.github.com/repos/pabo99/omegaup/git/commits{/sha}","comments_url":"https://api.github.com/repos/pabo99/omegaup/comments{/number}","issue_comment_url":"https://api.github.com/repos/pabo99/omegaup/issues/comments{/number}","contents_url":"https://api.github.com/repos/pabo99/omegaup/contents/{+path}","compare_url":"https://api.github.com/repos/pabo99/omegaup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pabo99/omegaup/merges","archive_url":"https://api.github.com/repos/pabo99/omegaup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pabo99/omegaup/downloads","issues_url":"https://api.github.com/repos/pabo99/omegaup/issues{/number}","pulls_url":"https://api.github.com/repos/pabo99/omegaup/pulls{/number}","milestones_url":"https://api.github.com/repos/pabo99/omegaup/milestones{/number}","notifications_url":"https://api.github.com/repos/pabo99/omegaup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pabo99/omegaup/labels{/name}","releases_url":"https://api.github.com/repos/pabo99/omegaup/releases{/id}","deployments_url":"https://api.github.com/repos/pabo99/omegaup/deployments","created_at":"2017-08-28T18:28:19Z","updated_at":"2018-10-23T23:12:26Z","pushed_at":"2018-11-09T06:11:57Z","git_url":"git://github.com/pabo99/omegaup.git","ssh_url":"git@github.com:pabo99/omegaup.git","clone_url":"https://github.com/pabo99/omegaup.git","svn_url":"https://github.com/pabo99/omegaup","homepage":"https://omegaup.com","size":233372,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"omegaup:master","ref":"master","sha":"f9b1bf51ca2f2fe5291efb52642c3b88462e868f","user":{"login":"omegaup","id":558429,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1ODQyOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/558429?v=4","gravatar_id":"","url":"https://api.github.com/users/omegaup","html_url":"https://github.com/omegaup","followers_url":"https://api.github.com/users/omegaup/followers","following_url":"https://api.github.com/users/omegaup/following{/other_user}","gists_url":"https://api.github.com/users/omegaup/gists{/gist_id}","starred_url":"https://api.github.com/users/omegaup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omegaup/subscriptions","organizations_url":"https://api.github.com/users/omegaup/orgs","repos_url":"https://api.github.com/users/omegaup/repos","events_url":"https://api.github.com/users/omegaup/events{/privacy}","received_events_url":"https://api.github.com/users/omegaup/received_events","type":"Organization","site_admin":false},"repo":{"id":1243685,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQzNjg1","name":"omegaup","full_name":"omegaup/omegaup","private":false,"owner":{"login":"omegaup","id":558429,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1ODQyOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/558429?v=4","gravatar_id":"","url":"https://api.github.com/users/omegaup","html_url":"https://github.com/omegaup","followers_url":"https://api.github.com/users/omegaup/followers","following_url":"https://api.github.com/users/omegaup/following{/other_user}","gists_url":"https://api.github.com/users/omegaup/gists{/gist_id}","starred_url":"https://api.github.com/users/omegaup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omegaup/subscriptions","organizations_url":"https://api.github.com/users/omegaup/orgs","repos_url":"https://api.github.com/users/omegaup/repos","events_url":"https://api.github.com/users/omegaup/events{/privacy}","received_events_url":"https://api.github.com/users/omegaup/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/omegaup/omegaup","description":"omegaUp automatic programming contest evaluator & arena","fork":false,"url":"https://api.github.com/repos/omegaup/omegaup","forks_url":"https://api.github.com/repos/omegaup/omegaup/forks","keys_url":"https://api.github.com/repos/omegaup/omegaup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omegaup/omegaup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omegaup/omegaup/teams","hooks_url":"https://api.github.com/repos/omegaup/omegaup/hooks","issue_events_url":"https://api.github.com/repos/omegaup/omegaup/issues/events{/number}","events_url":"https://api.github.com/repos/omegaup/omegaup/events","assignees_url":"https://api.github.com/repos/omegaup/omegaup/assignees{/user}","branches_url":"https://api.github.com/repos/omegaup/omegaup/branches{/branch}","tags_url":"https://api.github.com/repos/omegaup/omegaup/tags","blobs_url":"https://api.github.com/repos/omegaup/omegaup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omegaup/omegaup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omegaup/omegaup/git/refs{/sha}","trees_url":"https://api.github.com/repos/omegaup/omegaup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omegaup/omegaup/statuses/{sha}","languages_url":"https://api.github.com/repos/omegaup/omegaup/languages","stargazers_url":"https://api.github.com/repos/omegaup/omegaup/stargazers","contributors_url":"https://api.github.com/repos/omegaup/omegaup/contributors","subscribers_url":"https://api.github.com/repos/omegaup/omegaup/subscribers","subscription_url":"https://api.github.com/repos/omegaup/omegaup/subscription","commits_url":"https://api.github.com/repos/omegaup/omegaup/commits{/sha}","git_commits_url":"https://api.github.com/repos/omegaup/omegaup/git/commits{/sha}","comments_url":"https://api.github.com/repos/omegaup/omegaup/comments{/number}","issue_comment_url":"https://api.github.com/repos/omegaup/omegaup/issues/comments{/number}","contents_url":"https://api.github.com/repos/omegaup/omegaup/contents/{+path}","compare_url":"https://api.github.com/repos/omegaup/omegaup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omegaup/omegaup/merges","archive_url":"https://api.github.com/repos/omegaup/omegaup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omegaup/omegaup/downloads","issues_url":"https://api.github.com/repos/omegaup/omegaup/issues{/number}","pulls_url":"https://api.github.com/repos/omegaup/omegaup/pulls{/number}","milestones_url":"https://api.github.com/repos/omegaup/omegaup/milestones{/number}","notifications_url":"https://api.github.com/repos/omegaup/omegaup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omegaup/omegaup/labels{/name}","releases_url":"https://api.github.com/repos/omegaup/omegaup/releases{/id}","deployments_url":"https://api.github.com/repos/omegaup/omegaup/deployments","created_at":"2011-01-12T00:11:21Z","updated_at":"2018-11-09T05:58:20Z","pushed_at":"2018-11-09T06:11:58Z","git_url":"git://github.com/omegaup/omegaup.git","ssh_url":"git@github.com:omegaup/omegaup.git","clone_url":"https://github.com/omegaup/omegaup.git","svn_url":"https://github.com/omegaup/omegaup","homepage":"https://omegaup.com","size":227681,"stargazers_count":65,"watchers_count":65,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":99,"mirror_url":null,"archived":false,"open_issues_count":266,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":99,"open_issues":266,"watchers":65,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/2228"},"html":{"href":"https://github.com/omegaup/omegaup/pull/2228"},"issue":{"href":"https://api.github.com/repos/omegaup/omegaup/issues/2228"},"comments":{"href":"https://api.github.com/repos/omegaup/omegaup/issues/2228/comments"},"review_comments":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/2228/comments"},"review_comment":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/2228/commits"},"statuses":{"href":"https://api.github.com/repos/omegaup/omegaup/statuses/19721c3ea2067e7aa8b6c25bfe2955a5ee2ec219"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"pabo99"}}