{"action":"created","issue":{"url":"https://api.github.com/repos/ironhack-labs/lab-intro-node/issues/311","repository_url":"https://api.github.com/repos/ironhack-labs/lab-intro-node","labels_url":"https://api.github.com/repos/ironhack-labs/lab-intro-node/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/ironhack-labs/lab-intro-node/issues/311/comments","events_url":"https://api.github.com/repos/ironhack-labs/lab-intro-node/issues/311/events","html_url":"https://github.com/ironhack-labs/lab-intro-node/pull/311","id":359159215,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0NzE4NDcy","number":311,"title":"[MAD DE] Almudena Guerras","user":{"login":"agdwm","id":30243266,"node_id":"MDQ6VXNlcjMwMjQzMjY2","avatar_url":"https://avatars2.githubusercontent.com/u/30243266?v=4","gravatar_id":"","url":"https://api.github.com/users/agdwm","html_url":"https://github.com/agdwm","followers_url":"https://api.github.com/users/agdwm/followers","following_url":"https://api.github.com/users/agdwm/following{/other_user}","gists_url":"https://api.github.com/users/agdwm/gists{/gist_id}","starred_url":"https://api.github.com/users/agdwm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agdwm/subscriptions","organizations_url":"https://api.github.com/users/agdwm/orgs","repos_url":"https://api.github.com/users/agdwm/repos","events_url":"https://api.github.com/users/agdwm/events{/privacy}","received_events_url":"https://api.github.com/users/agdwm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-11T18:07:06Z","updated_at":"2018-09-12T10:13:26Z","closed_at":"2018-09-12T10:13:26Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/ironhack-labs/lab-intro-node/pulls/311","html_url":"https://github.com/ironhack-labs/lab-intro-node/pull/311","diff_url":"https://github.com/ironhack-labs/lab-intro-node/pull/311.diff","patch_url":"https://github.com/ironhack-labs/lab-intro-node/pull/311.patch"},"body":"En general me ha parecido sencillo, aunque me creó confusión el siguiente concepto. \r\n\r\nEn un primer momento el código de mi constructor era así:\r\n\r\nclass SortedList {\r\n\tconstructor() {\r\n\t\tthis.items = [];\r\n\t\t**this.length = this.items.length;**\r\n\t}\r\n...\r\n}\r\n\r\nY pensé que en el momento en el que hacíamos : \r\n\t**this.items.push(item);**\r\nAutomáticamente quedaba actualizada la propiedad \"this.length\" del constructor, pero por lo visto, hasta que no actualizamos de nuevo ese valor: \r\n\t**this.length = this.items.length;**\r\n\r\nEl campo no queda actualizado ¿verdad?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ironhack-labs/lab-intro-node/issues/comments/420591898","html_url":"https://github.com/ironhack-labs/lab-intro-node/pull/311#issuecomment-420591898","issue_url":"https://api.github.com/repos/ironhack-labs/lab-intro-node/issues/311","id":420591898,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDU5MTg5OA==","user":{"login":"ta-web-mad","id":26923217,"node_id":"MDQ6VXNlcjI2OTIzMjE3","avatar_url":"https://avatars3.githubusercontent.com/u/26923217?v=4","gravatar_id":"","url":"https://api.github.com/users/ta-web-mad","html_url":"https://github.com/ta-web-mad","followers_url":"https://api.github.com/users/ta-web-mad/followers","following_url":"https://api.github.com/users/ta-web-mad/following{/other_user}","gists_url":"https://api.github.com/users/ta-web-mad/gists{/gist_id}","starred_url":"https://api.github.com/users/ta-web-mad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ta-web-mad/subscriptions","organizations_url":"https://api.github.com/users/ta-web-mad/orgs","repos_url":"https://api.github.com/users/ta-web-mad/repos","events_url":"https://api.github.com/users/ta-web-mad/events{/privacy}","received_events_url":"https://api.github.com/users/ta-web-mad/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T10:13:26Z","updated_at":"2018-09-12T10:13:26Z","author_association":"NONE","body":"Está perfecto!\r\n\r\nSobre tu duda -  no lo hace automáticamente. Creo que Marc ya lo comentó esta mañana?\r\nSigue así!\r\nAnna"}}
{"actor":{"display_login":"ta-web-mad"}}