{"action":"opened","issue":{"url":"https://api.github.com/repos/LU-CML/activity-browser/issues/8","repository_url":"https://api.github.com/repos/LU-CML/activity-browser","labels_url":"https://api.github.com/repos/LU-CML/activity-browser/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/LU-CML/activity-browser/issues/8/comments","events_url":"https://api.github.com/repos/LU-CML/activity-browser/issues/8/events","html_url":"https://github.com/LU-CML/activity-browser/issues/8","id":317588090,"number":8,"title":"Databases list: “Read Only” behaviour","user":{"login":"TMillross","id":1932155,"avatar_url":"https://avatars2.githubusercontent.com/u/1932155?v=4","gravatar_id":"","url":"https://api.github.com/users/TMillross","html_url":"https://github.com/TMillross","followers_url":"https://api.github.com/users/TMillross/followers","following_url":"https://api.github.com/users/TMillross/following{/other_user}","gists_url":"https://api.github.com/users/TMillross/gists{/gist_id}","starred_url":"https://api.github.com/users/TMillross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TMillross/subscriptions","organizations_url":"https://api.github.com/users/TMillross/orgs","repos_url":"https://api.github.com/users/TMillross/repos","events_url":"https://api.github.com/users/TMillross/events{/privacy}","received_events_url":"https://api.github.com/users/TMillross/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-25T11:31:19Z","updated_at":"2018-04-25T11:31:19Z","closed_at":null,"author_association":"NONE","body":"_This pseudocode relates to the list of databases visible near the top of the right-hand panel, for a particular selected project._\r\n\r\n1.\tRead-only checkbox is visible for all rows in the database list (done)\r\n2.\tOn open, read settings file entries to determine checked state (default=read-only)\r\n3.\tOn click:\r\na.\tSend signal. Slot/method design described below for 2 possible state changes\r\nb.\tChange checked state\r\n\r\n**Setting a database read-only = true:** \r\n1.\tFind open activities relating to the checked db in the activity_cache\r\n2.\tCall appropriate method to set their tables/rows/cells to read-only and set the Read-Only checkbox to greyed-out (as described in separate upcoming issue by @AnjeKnottnerus )\r\n4.\tActivities inventory context menu: Options for “Edit activity” and “New activity” become greyed out (make this change here or on right-click?)\r\n5.\tTop-right toolbar buttons: Options for “Edit activity” and “New activity” become greyed out (make this change here or on right-click?)\r\n6.\tInsert or update entry in ab_settings file\r\n7.\tCheckbox -> checked\r\n\r\n**Setting database read-only = false.**\r\n1.\tFind open activities in the cache\r\n2.\tSet read-only checkbox of open panels to active (not greyed out)\r\n3.\tActivities inventory list: Options for “Edit activity” and “New activity” become active again (as above, may be handled on right-click)\r\n4.\tTop-right toolbar buttons: Options for “Edit activity” and “New activity” become active again (as above, editability of currently selected activity would determine whether these are active)\r\n5.\tUpdate settings file entry to read-only = false\r\n6.\tCheckbox -> unchecked\r\n"}}
{"actor":{"display_login":"TMillross"}}