{"action":"created","issue":{"url":"https://api.github.com/repos/translate/pootle/issues/3642","labels_url":"https://api.github.com/repos/translate/pootle/issues/3642/labels{/name}","comments_url":"https://api.github.com/repos/translate/pootle/issues/3642/comments","events_url":"https://api.github.com/repos/translate/pootle/issues/3642/events","html_url":"https://github.com/translate/pootle/pull/3642","id":62469833,"number":3642,"title":"Second stage on vfolders","user":{"login":"unho","id":939880,"avatar_url":"https://avatars.githubusercontent.com/u/939880?v=3","gravatar_id":"","url":"https://api.github.com/users/unho","html_url":"https://github.com/unho","followers_url":"https://api.github.com/users/unho/followers","following_url":"https://api.github.com/users/unho/following{/other_user}","gists_url":"https://api.github.com/users/unho/gists{/gist_id}","starred_url":"https://api.github.com/users/unho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unho/subscriptions","organizations_url":"https://api.github.com/users/unho/orgs","repos_url":"https://api.github.com/users/unho/repos","events_url":"https://api.github.com/users/unho/events{/privacy}","received_events_url":"https://api.github.com/users/unho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-17T17:53:15Z","updated_at":"2015-04-08T07:56:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/translate/pootle/pulls/3642","html_url":"https://github.com/translate/pootle/pull/3642","diff_url":"https://github.com/translate/pootle/pull/3642.diff","patch_url":"https://github.com/translate/pootle/pull/3642.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/translate/pootle/issues/comments/90835199","html_url":"https://github.com/translate/pootle/pull/3642#issuecomment-90835199","issue_url":"https://api.github.com/repos/translate/pootle/issues/3642","id":90835199,"user":{"login":"unho","id":939880,"avatar_url":"https://avatars.githubusercontent.com/u/939880?v=3","gravatar_id":"","url":"https://api.github.com/users/unho","html_url":"https://github.com/unho","followers_url":"https://api.github.com/users/unho/followers","following_url":"https://api.github.com/users/unho/following{/other_user}","gists_url":"https://api.github.com/users/unho/gists{/gist_id}","starred_url":"https://api.github.com/users/unho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unho/subscriptions","organizations_url":"https://api.github.com/users/unho/orgs","repos_url":"https://api.github.com/users/unho/repos","events_url":"https://api.github.com/users/unho/events{/privacy}","received_events_url":"https://api.github.com/users/unho/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T07:56:04Z","updated_at":"2015-04-08T07:56:04Z","body":"First of all a brief description of what is each commit: \r\n\r\n* VFolder: Accept specifying filter by path\r\n  * This is allowing to specify filter by directories (relative to vfolder location) in the JSON file used to add the vfolders. Right now we only are supporting specific file paths (relative to vfolder location). This is unrelated to the rest of the commits and can be safely landed on its own.\r\n* VFolder: Relate new units with existing matching virtual folders\r\n  * This just adds a postsave signal handler for Unit so each time a new unit is created (new units in a file, or units in new files, or units in new language, or even units in a completely newly added project) it is included on all the existing vfolders that it matches. This can also be safely landed on its own.\r\n* Editor: Display priority for current unit\r\n  * This adds the ability to display the top priority for the current unit being edited in the vfolder. Top priority means the higher priority for all the vfolders the unit belongs to. If the unit is not in any vfolder then no priority is being displayed. This can be safely landed on its own.\r\n* Cleanup: Relocate code\r\n  * This just relocates some code in a separate commit to reduce the changeset on the next commit making it easier to review commit by commit.\r\n* VFolder: Display virtual folders stats table on TP overview\r\n  * This adds the ability to display a stats table for the browsable and uncompleted vfolders with priority higher or equal to 1. The table is displayed on the TP overview just above the regular stats table. The vfolders do have any unit on the current location or below it (this means that those vfolders location can be in current location, below it, or above it). Translate links provided in the table point to the editor to translate that specific vfolder restricted to current location, despite the ability to do that is implemented in a later commit.\r\n* VFolder: List all virtual folders on TP overview for admins\r\n  * This just displays more vfolders on the stats table added by the previous commit. This allows admin users to see completed vfolders and also vfolders with any priority, and also not browsable vfolders are displayed.\r\n* VFolder: Display virtual folders in the navbar dropdown\r\n  * This adds the ability to display and select vfolders in the navbar dropdown (the one that lists files and directories). This is only done at TP level, both for overview and editor. The endpoint for the URLs that are set after selecting a vfolder in the editor is implemented in a later commit. The endpoint for overview is not yet implemented, but cleanly falls back to display the vfolders location (adjusted to current TP if necessary), thus not providing any data restricted to a specific vfolder (this will be fixed in a later commit).\r\n* Editor: Filter by vfolder\r\n  * This provides the ability to restrict the units displayed in the editor to those belonging to a specific vfolder. This provides the endpoint to the translate URLs in the TP overview vfolders stats table and also for when chosing a vfolder in the navbar dropdown in the editor.\r\n* Editor: Display priority when we are translating a vfolder\r\n  * This is a followup for previous \"Editor: Display priority for current unit\" above. It forces to display the priority for the current vfolder being translated in the editor independently of if the current unit has a vfolder with a higher priority.\r\n* Editor: Display priority sorting only when applies\r\n  * As pointed out by @julen it is confusing to display the priority sorting when there are no vfolders in the current location being translated. Priority sorting is also not displayed if we are translating a specific vfolder because all the units have the same priority.\r\n"}}