Skip to content
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

Report limited editors to admin and only to admin #556

Merged
merged 1 commit into from Oct 9, 2017

Conversation

yvanzo
Copy link
Contributor

@yvanzo yvanzo commented Sep 29, 2017

No description provided.

@@ -29,6 +29,14 @@
<li><a href="[% c.uri_for_action('/report/show', 'ArtistsDisambiguationSameName') %]">[% l('Artists with disambiguation the same as the name') %]</a></li>
</ul>

[% IF c.user.is_account_admin -%]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than not outputting the link here, where does it restrict access to account admins?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mwiencek
Copy link
Member

mwiencek commented Oct 5, 2017

#557 changes the user-visible name to "new" editor, but I think it's fine to keep "limited" here.


use MusicBrainz::Server::Constants qw( $EDITOR_MODBOT );

with 'MusicBrainz::Server::Report::EventReport';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks unnecessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 125982f

AND ( email_confirm_date IS NULL
OR member_since < NOW() - INTERVAL '2 weeks'
OR (SELECT COUNT(*) FROM edit WHERE eor.id = edit.editor AND edit.status = 2 AND edit.autoedit = 0) < 10
)";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it currently unordered, or ordered by name elsewhere? Should we order by member_since DESC instead? It seems like it'd be useful for admins to see the most recent accounts at the top of the list.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess @Freso or @reosarevok will be looking at this report the most, so however they'd want it ordered.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Actually, rows are ordered by id at line 11. Greatest ID being the most recent, it is the same as ordering by member_since.

Allow admins to quickly view beginner/limited editors (most recent
first), with name, email, website and biography, and to possibly
delete them.  Because of the email, only admins are granted access
to this report.
@yvanzo yvanzo force-pushed the mbs-9357-part-2-admin-report branch from 22d6305 to b49de61 Compare October 9, 2017 15:11
@yvanzo yvanzo merged commit 2453b5a into metabrainz:master Oct 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants