{"action":"created","issue":{"url":"https://api.github.com/repos/NRGI/resourcecontracts.org/issues/622","labels_url":"https://api.github.com/repos/NRGI/resourcecontracts.org/issues/622/labels{/name}","comments_url":"https://api.github.com/repos/NRGI/resourcecontracts.org/issues/622/comments","events_url":"https://api.github.com/repos/NRGI/resourcecontracts.org/issues/622/events","html_url":"https://github.com/NRGI/resourcecontracts.org/issues/622","id":114344747,"number":622,"title":"Page count not updated when new PDF is uploaded ","user":{"login":"JesseCCSI","id":14910764,"avatar_url":"https://avatars.githubusercontent.com/u/14910764?v=3","gravatar_id":"","url":"https://api.github.com/users/JesseCCSI","html_url":"https://github.com/JesseCCSI","followers_url":"https://api.github.com/users/JesseCCSI/followers","following_url":"https://api.github.com/users/JesseCCSI/following{/other_user}","gists_url":"https://api.github.com/users/JesseCCSI/gists{/gist_id}","starred_url":"https://api.github.com/users/JesseCCSI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JesseCCSI/subscriptions","organizations_url":"https://api.github.com/users/JesseCCSI/orgs","repos_url":"https://api.github.com/users/JesseCCSI/repos","events_url":"https://api.github.com/users/JesseCCSI/events{/privacy}","received_events_url":"https://api.github.com/users/JesseCCSI/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NRGI/resourcecontracts.org/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"mojbenzcar","id":5144570,"avatar_url":"https://avatars.githubusercontent.com/u/5144570?v=3","gravatar_id":"","url":"https://api.github.com/users/mojbenzcar","html_url":"https://github.com/mojbenzcar","followers_url":"https://api.github.com/users/mojbenzcar/followers","following_url":"https://api.github.com/users/mojbenzcar/following{/other_user}","gists_url":"https://api.github.com/users/mojbenzcar/gists{/gist_id}","starred_url":"https://api.github.com/users/mojbenzcar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojbenzcar/subscriptions","organizations_url":"https://api.github.com/users/mojbenzcar/orgs","repos_url":"https://api.github.com/users/mojbenzcar/repos","events_url":"https://api.github.com/users/mojbenzcar/events{/privacy}","received_events_url":"https://api.github.com/users/mojbenzcar/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/NRGI/resourcecontracts.org/milestones/11","html_url":"https://github.com/NRGI/resourcecontracts.org/milestones/Sprint%20%2311:%20Fixes,%20internationalization%20and%20more","labels_url":"https://api.github.com/repos/NRGI/resourcecontracts.org/milestones/11/labels","id":1335647,"number":11,"title":"Sprint #11: Fixes, internationalization and more","description":"This sprint is focused on support that is needed for PH-EITI to launch and advance their country site. \r\n\r\nSprint period; November 2nd - November 13th","creator":{"login":"anderspeders","id":1101585,"avatar_url":"https://avatars.githubusercontent.com/u/1101585?v=3","gravatar_id":"","url":"https://api.github.com/users/anderspeders","html_url":"https://github.com/anderspeders","followers_url":"https://api.github.com/users/anderspeders/followers","following_url":"https://api.github.com/users/anderspeders/following{/other_user}","gists_url":"https://api.github.com/users/anderspeders/gists{/gist_id}","starred_url":"https://api.github.com/users/anderspeders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anderspeders/subscriptions","organizations_url":"https://api.github.com/users/anderspeders/orgs","repos_url":"https://api.github.com/users/anderspeders/repos","events_url":"https://api.github.com/users/anderspeders/events{/privacy}","received_events_url":"https://api.github.com/users/anderspeders/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":28,"state":"open","created_at":"2015-10-02T21:30:10Z","updated_at":"2015-11-16T09:40:09Z","due_on":"2015-11-13T05:00:00Z","closed_at":null},"comments":1,"created_at":"2015-10-30T19:55:12Z","updated_at":"2015-11-16T10:52:17Z","closed_at":null,"body":"Re this contract: http://rc-site-stage.elasticbeanstalk.com/olc/public/contract/1154/view#/pdf/page/13/annotation/22853\r\n\r\nWe uploaded a new PDF with 13 pages (per issue #574 ) which replaced an incorrect document that had 14 pages.\r\nThe new PDF is now displaying on the site, but the page count at the top of the PDF on the contract view page still reads 14 pages. When you go to the 14th page, there is no PDF page, just a message that says \"loading\".\r\n\r\n![screen shot 2015-10-30 at 15 53 45](https://cloud.githubusercontent.com/assets/14910764/10856507/8ec7a0ca-7f1e-11e5-8e21-215f48e5ed60.png)\r\n\r\n\r\n1. Can the PDF page count please be fixed?\r\n2. How do we avoid this in the future?\r\n\r\nWe need to replace the PDF for two other contracts (http://rc-site-stage.elasticbeanstalk.com/olc/public/contract/1155/view#/pdf/page/12/annotation/22908 and http://www.openlandcontracts.org/contract/ocds-591adf-LR8570774189OL/view#/pdf/page/97/annotation/23705), so we need to know how to avoid this. \r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NRGI/resourcecontracts.org/issues/comments/156989856","html_url":"https://github.com/NRGI/resourcecontracts.org/issues/622#issuecomment-156989856","issue_url":"https://api.github.com/repos/NRGI/resourcecontracts.org/issues/622","id":156989856,"user":{"login":"anjesh","id":120488,"avatar_url":"https://avatars.githubusercontent.com/u/120488?v=3","gravatar_id":"","url":"https://api.github.com/users/anjesh","html_url":"https://github.com/anjesh","followers_url":"https://api.github.com/users/anjesh/followers","following_url":"https://api.github.com/users/anjesh/following{/other_user}","gists_url":"https://api.github.com/users/anjesh/gists{/gist_id}","starred_url":"https://api.github.com/users/anjesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anjesh/subscriptions","organizations_url":"https://api.github.com/users/anjesh/orgs","repos_url":"https://api.github.com/users/anjesh/repos","events_url":"https://api.github.com/users/anjesh/events{/privacy}","received_events_url":"https://api.github.com/users/anjesh/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T10:52:17Z","updated_at":"2015-11-16T10:52:17Z","body":"When the pdf gets replaced, pages are replaced with newly uploaded pdf pages. However the page count of the previous pdf page is included in the metadata so it's still showing up the previous page count. You have to re-publish the metadata after uploading the pdf to reflect the page count in the subsite. "}}