-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Moderators audit logs #3449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moderators audit logs #3449
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There are test failures on Travis. They are not necessarily related to your changes, but please, look into them to be sure.
Sorry @brarnaudovski I didn't leave a note with the review! The code look solid! I've added a few comments |
Thank you @rhymes and @lightalloy for reviewing this. I'll try to resolve some of the comments and make changes to this PR |
05e8685
to
0a783f6
Compare
Hi. I am having strange behavior in travis CI. Acording to build, it fails with: rspec ./spec/services/credits/ledger_spec.rb:22 # Credits::Ledger returns a list of user purchases with their costs
rspec ./spec/services/notifications/reactions/send_spec.rb:60 # Notifications::Reactions::Send when a reaction is persisted and has siblings creates a notification with the correct json
rspec ./spec/services/notifications/reactions/send_spec.rb:89 # Notifications::Reactions::Send when a reaction is persisted and has siblings when notification exists updates the notification
rspec ./spec/services/notifications/reactions/send_spec.rb:96 # Notifications::Reactions::Send when a reaction is persisted and has siblings when notification exists updates the notification json But when I make local tests, tests are not failing. $ rspec spec/services/notifications/reactions/send_spec.rb spec/services/credits/ledger_spec.rb and the output The HashDiff constant used by this gem conflicts with another gem of a similar name. As of version 1.0 the HashDiff constant will be completely removed and replaced by Hashdiff. For more information see https://github.com/liufengyun/hashdiff/issues/45.
[Zonebie] Setting timezone: ZONEBIE_TZ="Port Moresby"
.......................
Finished in 4.45 seconds (files took 3.6 seconds to load)
23 examples, 0 failures Please help! |
Let me re-run it for you to check if this is a flaky test |
@brarnaudovski I'll look at it on Monday. |
These tests fail if you run all the |
@brarnaudovski the failures are not related to your changes. We prepared a separate pr to fix them #3518 |
0a783f6
to
fad1a37
Compare
Hi. I notice re-occurrence of flaky test at user_edits_an_article_spec.rb Also I can reproduce locally when running
There is some try to fix this. See this PR @maestromac Are you able to look more into this? |
fad1a37
to
169ebb5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding a test. I left a couple of suggestions/questions related to the test and behavior.
I think we are close to merging a feature :)
@brarnaudovski I left a comment on the original issue in case you want to continue contributing to this feature #3141 (comment) |
e5e1fd6
to
ca3ab7d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes, I'm approving it.
I think that remove_moderator
and add_moderator
should be separate log records, and I'll leave it as an opportunity for future improvement.
What type of PR is this? (check all applicable)
Description
Wrapper classes are created under
Audit
namespace, which are able to use the internal Rails Instrumentation APITo be done:
Related Tickets & Documents
Fixes #3141
Added to documentation?