{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-platform/issues/13324","repository_url":"https://api.github.com/repos/edx/edx-platform","labels_url":"https://api.github.com/repos/edx/edx-platform/issues/13324/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-platform/issues/13324/comments","events_url":"https://api.github.com/repos/edx/edx-platform/issues/13324/events","html_url":"https://github.com/edx/edx-platform/pull/13324","id":173294476,"number":13324,"title":"Persistent Grade being saved for individual problems","user":{"login":"efischer19","id":7373924,"avatar_url":"https://avatars.githubusercontent.com/u/7373924?v=3","gravatar_id":"","url":"https://api.github.com/users/efischer19","html_url":"https://github.com/efischer19","followers_url":"https://api.github.com/users/efischer19/followers","following_url":"https://api.github.com/users/efischer19/following{/other_user}","gists_url":"https://api.github.com/users/efischer19/gists{/gist_id}","starred_url":"https://api.github.com/users/efischer19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efischer19/subscriptions","organizations_url":"https://api.github.com/users/efischer19/orgs","repos_url":"https://api.github.com/users/efischer19/repos","events_url":"https://api.github.com/users/efischer19/events{/privacy}","received_events_url":"https://api.github.com/users/efischer19/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-08-25T19:56:10Z","updated_at":"2016-09-01T19:34:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/13324","html_url":"https://github.com/edx/edx-platform/pull/13324","diff_url":"https://github.com/edx/edx-platform/pull/13324.diff","patch_url":"https://github.com/edx/edx-platform/pull/13324.patch"},"body":"@jcdyer @sanfordstudent I noticed this when playing around on my devstack.\r\n\r\n[TNL-5394](https://openedx.atlassian.net/browse/TNL-5394)\r\n\r\nIn the demo course, I'm getting this event firing for the individual problem, which means the subsection grade is never updated, which makes the progress page incorrect. The change I've made does *not* fix anything, but I wanted to highlight what was happening and throw up a PR.\r\n\r\nExample of invalid data:\r\n```\r\nmysql> select * from grades_persistentsubsectiongrade where usage_key like \"%problem%\" order by modified desc;\r\n+----------------------------+----------------------------+----+---------+---------------------------------+------------------------------------------------------------------------------------+----------------------------+--------------------------+------------+--------------+---------------+-----------------+------------------------------+\r\n| created                    | modified                   | id | user_id | course_id                       | usage_key                                                                          | subtree_edited_timestamp   | course_version           | earned_all | possible_all | earned_graded | possible_graded | visible_blocks_hash          |\r\n+----------------------------+----------------------------+----+---------+---------------------------------+------------------------------------------------------------------------------------+----------------------------+--------------------------+------------+--------------+---------------+-----------------+------------------------------+\r\n| 2016-08-25 17:44:21.066019 | 2016-08-25 19:44:19.685641 | 36 |       3 | course-v1:edX+DemoX+Demo_Course | block-v1:edX+DemoX+Demo_Course+type@problem+block@ex_practice_2                    | 2016-05-16 02:29:28.044000 | 57bcb23156c02c76124b3f6e |          0 |            1 |             0 |               1 | 2hbBNKiSb9Kk8//HTvgaAV3bPaI= |\r\n| 2016-08-25 17:44:45.588858 | 2016-08-25 19:34:25.370523 | 38 |       3 | course-v1:edX+DemoX+Demo_Course | block-v1:edX+DemoX+Demo_Course+type@problem+block@651e0945b77f42e0a4c89b8c3e6f5b3b | 2016-05-16 02:29:28.068000 | 57bcb23156c02c76124b3f6e |          0 |            1 |             0 |               1 | AoDJ10wzjqm/B1tRRefR/p8IpNY= |\r\n| 2016-08-25 17:42:18.051497 | 2016-08-25 19:18:27.328714 | 23 |       3 | course-v1:edX+DemoX+Demo_Course | block-v1:edX+DemoX+Demo_Course+type@problem+block@700x_editmolB                    | 2016-05-16 02:29:27.868000 | 57bcb23156c02c76124b3f6e |          0 |            1 |             0 |               1 | DK1Zmjp4/STcoYsHpYs9am6Eko0= |\r\n| 2016-08-25 17:44:51.547352 | 2016-08-25 19:16:33.048775 | 39 |       3 | course-v1:edX+DemoX+Demo_Course | block-v1:edX+DemoX+Demo_Course+type@problem+block@ex_practice_limited_checks       | 2016-05-16 02:29:28.080000 | 57bcb23156c02c76124b3f6e |          1 |            1 |             1 |               1 | gCgTSmNcGfVaJPFyj7774XMWbkg= |\r\n| 2016-08-25 17:45:21.935780 | 2016-08-25 18:43:26.870976 | 41 |       3 | course-v1:edX+DemoX+Demo_Course | block-v1:edX+DemoX+Demo_Course+type@problem+block@ex_practice_3                    | 2016-05-16 02:29:28.096000 | 57bcb23156c02c76124b3f6e |          1 |            1 |             1 |               1 | HwAc57ZHvlUXVluhqx0n2IF5OBk= |\r\n| 2016-08-25 17:44:59.992010 | 2016-08-25 17:44:59.992287 | 40 |       3 | course-v1:edX+DemoX+Demo_Course | block-v1:edX+DemoX+Demo_Course+type@problem+block@d1b84dcd39b0423d9e288f27f0f7f242 | 2016-05-16 02:29:28.084000 | 57bcb23156c02c76124b3f6e |          1 |            1 |             1 |               1 | 74cz5KO3Xnh2kTrG8elhm1grZIM= |\r\n| 2016-08-25 17:44:30.445015 | 2016-08-25 17:44:34.536637 | 37 |       3 | course-v1:edX+DemoX+Demo_Course | block-v1:edX+DemoX+Demo_Course+type@problem+block@45d46192272c4f6db6b63586520bbdf4 | 2016-05-16 02:29:28.056000 | 57bcb23156c02c76124b3f6e |          1 |            1 |             1 |               1 | GG4ZadAt1/AXSDFcng6K2Eu3n8g= |\r\n| 2016-08-25 17:43:31.129904 | 2016-08-25 17:43:31.130201 | 25 |       3 | course-v1:edX+DemoX+Demo_Course | block-v1:edX+DemoX+Demo_Course+type@problem+block@logic_gate_problem               | 2016-05-16 02:29:27.905000 | 57bcb23156c02c76124b3f6e |          0 |            1 |             0 |               1 | EJq21Pw5wbupv0tvU3goXxxI+pM= |\r\n| 2016-08-25 17:42:47.284322 | 2016-08-25 17:42:47.284661 | 24 |       3 | course-v1:edX+DemoX+Demo_Course | block-v1:edX+DemoX+Demo_Course+type@problem+block@free_form_simulation             | 2016-05-16 02:29:27.900000 | 57bcb23156c02c76124b3f6e |          1 |            1 |             1 |               1 | toIYoYNr9QsEGSBtUkt1IsbJ/Pk= |\r\n| 2016-08-25 17:41:33.778549 | 2016-08-25 17:41:33.778798 | 22 |       3 | course-v1:edX+DemoX+Demo_Course | block-v1:edX+DemoX+Demo_Course+type@problem+block@d7daeff25e4f4026bdd269ae69e03e02 | 2016-07-13 15:36:56.526000 | 57bcb23156c02c76124b3f6e |          0 |            0 |             0 |               0 | nsPo7rZAwyrn4lc7fz/T9LQJpz8= |\r\n| 2016-08-25 17:41:25.632347 | 2016-08-25 17:41:25.632850 | 21 |       3 | course-v1:edX+DemoX+Demo_Course | block-v1:edX+DemoX+Demo_Course+type@problem+block@0d759dee4f9d459c8956136dbde55f02 | 2016-07-13 15:36:56.488000 | 57bcb23156c02c76124b3f6e |          1 |            1 |             1 |               1 | eSQiwZB8M7wxfC41xYyvxwgAfHs= |\r\n| 2016-08-25 17:41:14.163985 | 2016-08-25 17:41:18.774102 | 20 |       3 | course-v1:edX+DemoX+Demo_Course | block-v1:edX+DemoX+Demo_Course+type@problem+block@75f9562c77bc4858b61f907bb810d974 | 2016-07-13 15:36:56.445000 | 57bcb23156c02c76124b3f6e |          3 |            3 |             3 |               3 | IE2KXTZaXfCBGGv6ReAOqRhVvow= |\r\n| 2016-08-25 17:40:44.059197 | 2016-08-25 17:40:44.059495 | 19 |       3 | course-v1:edX+DemoX+Demo_Course | block-v1:edX+DemoX+Demo_Course+type@problem+block@Sample_ChemFormula_Problem       | 2016-07-13 15:36:56.404000 | 57bcb23156c02c76124b3f6e |          1 |            1 |             1 |               1 | YSMFLWRutF1ZVKshZk59GT9/QB0= |\r\n| 2016-08-25 17:40:04.253051 | 2016-08-25 17:40:04.253385 | 18 |       3 | course-v1:edX+DemoX+Demo_Course | block-v1:edX+DemoX+Demo_Course+type@problem+block@Sample_Algebraic_Problem         | 2016-07-13 15:36:56.354000 | 57bcb23156c02c76124b3f6e |          1 |            1 |             1 |               1 | ISZaDpKoe/dXeYRH8RqyS+6J8Gg= |\r\n| 2016-08-25 17:39:49.474269 | 2016-08-25 17:39:49.474527 | 17 |       3 | course-v1:edX+DemoX+Demo_Course | block-v1:edX+DemoX+Demo_Course+type@problem+block@a0effb954cca4759994f1ac9e9434bf4 | 2016-07-13 15:36:56.313000 | 57bcb23156c02c76124b3f6e |          3 |            3 |             3 |               3 | dx1UFrqQL/o8nwYevwBR6MiMz/E= |\r\n| 2016-08-25 17:39:38.631020 | 2016-08-25 17:39:38.631306 | 16 |       3 | course-v1:edX+DemoX+Demo_Course | block-v1:edX+DemoX+Demo_Course+type@problem+block@d2e35c1d294b4ba0b3b1048615605d2a | 2016-07-13 15:36:56.272000 | 57bcb23156c02c76124b3f6e |          1 |            1 |             1 |               1 | opmvP+CVOtsE3+8CyOZQ1iraYsU= |\r\n| 2016-08-25 17:39:09.500470 | 2016-08-25 17:39:09.500787 | 15 |       3 | course-v1:edX+DemoX+Demo_Course | block-v1:edX+DemoX+Demo_Course+type@problem+block@c554538a57664fac80783b99d9d6da7c | 2016-07-13 15:36:56.224000 | 57bcb23156c02c76124b3f6e |          1 |            1 |             1 |               1 | TDOXh1/5phlHJhREOf5J/PG2MBw= |\r\n+----------------------------+----------------------------+----+---------+---------------------------------+------------------------------------------------------------------------------------+----------------------------+--------------------------+------------+--------------+---------------+-----------------+------------------------------+\r\n17 rows in set (0.00 sec)\r\n```"},"comment":{"url":"https://api.github.com/repos/edx/edx-platform/issues/comments/244187546","html_url":"https://github.com/edx/edx-platform/pull/13324#issuecomment-244187546","issue_url":"https://api.github.com/repos/edx/edx-platform/issues/13324","id":244187546,"user":{"login":"jcdyer","id":77486,"avatar_url":"https://avatars.githubusercontent.com/u/77486?v=3","gravatar_id":"","url":"https://api.github.com/users/jcdyer","html_url":"https://github.com/jcdyer","followers_url":"https://api.github.com/users/jcdyer/followers","following_url":"https://api.github.com/users/jcdyer/following{/other_user}","gists_url":"https://api.github.com/users/jcdyer/gists{/gist_id}","starred_url":"https://api.github.com/users/jcdyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcdyer/subscriptions","organizations_url":"https://api.github.com/users/jcdyer/orgs","repos_url":"https://api.github.com/users/jcdyer/repos","events_url":"https://api.github.com/users/jcdyer/events{/privacy}","received_events_url":"https://api.github.com/users/jcdyer/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T19:34:41Z","updated_at":"2016-09-01T19:34:41Z","body":"Okay, note to self:\r\n\r\nTODO:\r\n\r\n- [ ] Standardize AppConfig handling of signal handlers\r\n- [ ] Draw a fearsome ascii diagram\r\n- [ ] Test the progress page\r\n- [ ] Change try/except to if in block structure creation.\r\n- [ ] Update calling pattern [as per this comment](https://github.com/edx/edx-platform/pull/13324#discussion_r77082087)\r\n\r\n@nasthagiri @sanfordstudent Did I miss anything?  This PR's getting pretty long now."}}
{"actor":{"display_login":"jcdyer"}}