Page MenuHomePhabricator

SecurePoll import.php script should provide output to confirm something has happened
Closed, ResolvedPublic

Description

The script seems to give output for failure conditions, but nothing if all goes well... At least "done" would be useful.

For example:

mysql:wikiadmin@db63 [enwiki]> SELECT MAX( en_id ) FROM securepoll_entity;
+----------------+

MAX( en_id )

+----------------+

258

+----------------+
1 row in set (0.02 sec)

mysql:wikiadmin@db63 [enwiki]> ^CCtrl-C -- exit!
Aborted
reedy@fenari:/home/wikipedia/common/php-1.21wmf4$ mwscript extensions/SecurePoll/cli/import.php --wiki=enwiki ~/arbcom-2012.xml
reedy@fenari:/home/wikipedia/common/php-1.21wmf4$ sql enwiki
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 502691498
Server version: 5.1.53-wm-log (mysql-at-facebook-r3875)

Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql:wikiadmin@db63 [enwiki]> SELECT MAX( en_id ) FROM securepoll_entity;
+----------------+

MAX( en_id )

+----------------+

281

+----------------+
1 row in set (0.00 sec)


Version: unspecified
Severity: minor

Details

Reference
bz42462

Event Timeline

bzimport raised the priority of this task from to Low.
bzimport set Reference to bz42462.
bzimport added a subscriber: Unknown Object (MLST).
Reedy created this task.Nov 26 2012, 10:17 PM

Related URL: https://gerrit.wikimedia.org/r/66120 (Gerrit Change I879feacba211ac3cfd1eb55629300b78ef2e4c0c)

drdee added a comment.Oct 18 2013, 3:22 AM

https://gerrit.wikimedia.org/r/66120 was merged and issue has been resolved.