{"action":"reopened","issue":{"url":"https://api.github.com/repos/NRules/NRules/issues/154","repository_url":"https://api.github.com/repos/NRules/NRules","labels_url":"https://api.github.com/repos/NRules/NRules/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/NRules/NRules/issues/154/comments","events_url":"https://api.github.com/repos/NRules/NRules/issues/154/events","html_url":"https://github.com/NRules/NRules/issues/154","id":324650232,"number":154,"title":"Rule OnChange filter fails to filter out updates with no effective change","user":{"login":"snikolayev","id":1813333,"avatar_url":"https://avatars0.githubusercontent.com/u/1813333?v=4","gravatar_id":"","url":"https://api.github.com/users/snikolayev","html_url":"https://github.com/snikolayev","followers_url":"https://api.github.com/users/snikolayev/followers","following_url":"https://api.github.com/users/snikolayev/following{/other_user}","gists_url":"https://api.github.com/users/snikolayev/gists{/gist_id}","starred_url":"https://api.github.com/users/snikolayev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snikolayev/subscriptions","organizations_url":"https://api.github.com/users/snikolayev/orgs","repos_url":"https://api.github.com/users/snikolayev/repos","events_url":"https://api.github.com/users/snikolayev/events{/privacy}","received_events_url":"https://api.github.com/users/snikolayev/received_events","type":"User","site_admin":false},"labels":[{"id":142176072,"url":"https://api.github.com/repos/NRules/NRules/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"snikolayev","id":1813333,"avatar_url":"https://avatars0.githubusercontent.com/u/1813333?v=4","gravatar_id":"","url":"https://api.github.com/users/snikolayev","html_url":"https://github.com/snikolayev","followers_url":"https://api.github.com/users/snikolayev/followers","following_url":"https://api.github.com/users/snikolayev/following{/other_user}","gists_url":"https://api.github.com/users/snikolayev/gists{/gist_id}","starred_url":"https://api.github.com/users/snikolayev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snikolayev/subscriptions","organizations_url":"https://api.github.com/users/snikolayev/orgs","repos_url":"https://api.github.com/users/snikolayev/repos","events_url":"https://api.github.com/users/snikolayev/events{/privacy}","received_events_url":"https://api.github.com/users/snikolayev/received_events","type":"User","site_admin":false},"assignees":[{"login":"snikolayev","id":1813333,"avatar_url":"https://avatars0.githubusercontent.com/u/1813333?v=4","gravatar_id":"","url":"https://api.github.com/users/snikolayev","html_url":"https://github.com/snikolayev","followers_url":"https://api.github.com/users/snikolayev/followers","following_url":"https://api.github.com/users/snikolayev/following{/other_user}","gists_url":"https://api.github.com/users/snikolayev/gists{/gist_id}","starred_url":"https://api.github.com/users/snikolayev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snikolayev/subscriptions","organizations_url":"https://api.github.com/users/snikolayev/orgs","repos_url":"https://api.github.com/users/snikolayev/repos","events_url":"https://api.github.com/users/snikolayev/events{/privacy}","received_events_url":"https://api.github.com/users/snikolayev/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/NRules/NRules/milestones/10","html_url":"https://github.com/NRules/NRules/milestone/10","labels_url":"https://api.github.com/repos/NRules/NRules/milestones/10/labels","id":3131761,"number":10,"title":"0.9.0","description":"","creator":{"login":"snikolayev","id":1813333,"avatar_url":"https://avatars0.githubusercontent.com/u/1813333?v=4","gravatar_id":"","url":"https://api.github.com/users/snikolayev","html_url":"https://github.com/snikolayev","followers_url":"https://api.github.com/users/snikolayev/followers","following_url":"https://api.github.com/users/snikolayev/following{/other_user}","gists_url":"https://api.github.com/users/snikolayev/gists{/gist_id}","starred_url":"https://api.github.com/users/snikolayev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snikolayev/subscriptions","organizations_url":"https://api.github.com/users/snikolayev/orgs","repos_url":"https://api.github.com/users/snikolayev/repos","events_url":"https://api.github.com/users/snikolayev/events{/privacy}","received_events_url":"https://api.github.com/users/snikolayev/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":3,"state":"open","created_at":"2018-02-21T03:13:51Z","updated_at":"2018-05-19T18:59:43Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-05-19T18:28:43Z","updated_at":"2018-05-19T18:59:43Z","closed_at":null,"author_association":"COLLABORATOR","body":"Consider a rule:\r\n```c#\r\nFact fact = null;\r\nWhen()\r\n    .Match(() => fact);\r\nFilter()\r\n    .OnChange(() => fact.Value);\r\nThen()\r\n    .Do(_ => Something());\r\n```\r\n\r\nConsider the following sequence of events:\r\n```c#\r\nvar fact = new Fact { Value = 1};\r\nsession.Insert(fact);\r\nsession.Fire();\r\n//Fires\r\nfact.Value = 2;\r\nsession.Update(fact);\r\nfact.Value = 1;\r\nsession.Update(fact);\r\nsession.Fire();\r\n//Fires, but should not, since there is no effective change to the Value\r\n```"}}
{"actor":{"display_login":"snikolayev"}}