Cygnus issueshttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues2018-06-16T23:59:02Zhttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/84Get created pages2018-06-16T23:59:02ZLuke081515luke081515@tools.wmflabs.orgGet created pagesWe should make the bot able to get the list of user contribs. For version 2.1 I will start with created pages.We should make the bot able to get the list of user contribs. For version 2.1 I will start with created pages.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/99Login error2018-06-10T00:42:53ZFreddyLogin errorhttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/100Debug error2018-06-10T00:40:18ZLuke081515luke081515@tools.wmflabs.orgDebug error```
php Debug.php
PHP Fatal error: Uncaught Error: Call to undefined method Debug::askRequired() in /home/luke/Luke081515Bot/Cygnus/Debug.php:11
Stack trace:
#0 /home/luke/Luke081515Bot/Cygnus/Debug.php(753): Debug->__construct()
#1 {main}
thrown in /home/luke/Luke081515Bot/Cygnus/Debug.php on line 11
```
```
php Debug.php
PHP Fatal error: Uncaught Error: Call to undefined method Debug::askRequired() in /home/luke/Luke081515Bot/Cygnus/Debug.php:11
Stack trace:
#0 /home/luke/Luke081515Bot/Cygnus/Debug.php(753): Debug->__construct()
#1 {main}
thrown in /home/luke/Luke081515Bot/Cygnus/Debug.php on line 11
```
Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/1Translate the documentation2018-06-10T00:27:13ZLuke081515luke081515@tools.wmflabs.orgTranslate the documentationThe documentation of BotCore and other files should get translated into english, so that non-german people can understand Cygnus as easily as germans currently. This depends on a decision before that framework was named Cygnus, so time to change it.The documentation of BotCore and other files should get translated into english, so that non-german people can understand Cygnus as easily as germans currently. This depends on a decision before that framework was named Cygnus, so time to change it.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/96Add a space to ask2018-03-31T16:42:50ZLuke081515luke081515@tools.wmflabs.orgAdd a space to askIt would be useful, now that people needs to change from askOperator to ask anyway, to add a space in ask to the end of the msg by default, since you don't want to have the input directly after your question.It would be useful, now that people needs to change from askOperator to ask anyway, to add a space in ask to the end of the msg by default, since you don't want to have the input directly after your question.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/85Move echo to Core2018-03-28T21:49:04ZLuke081515luke081515@tools.wmflabs.orgMove echo to CoreDebug.php contains some echo functions which are ensuring that a definied set of colors is used in console, this makes it easier for the user to see what the script wants etc.
Do you think it would be useful to move that to core? then script writer can use that as well.Debug.php contains some echo functions which are ensuring that a definied set of colors is used in console, this makes it easier for the user to see what the script wants etc.
Do you think it would be useful to move that to core? then script writer can use that as well.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/95fix error in DBCore2018-03-26T21:37:48ZFreddyfix error in DBCore```
PHP Notice: Undefined property: DBCore::$passwordVersion in /home/freddy/BKLLC/Cygnus/DBCore.php on line 30
PHP Fatal error: Uncaught Exception: You are using an old version of DBPassword.php. Please upgrade. in /home/freddy/BKLLC/Cygnus/DBCore.php:31
``````
PHP Notice: Undefined property: DBCore::$passwordVersion in /home/freddy/BKLLC/Cygnus/DBCore.php on line 30
PHP Fatal error: Uncaught Exception: You are using an old version of DBPassword.php. Please upgrade. in /home/freddy/BKLLC/Cygnus/DBCore.php:31
```https://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/94Debug: autodetect if output is an array2018-03-09T20:03:29ZLuke081515luke081515@tools.wmflabs.orgDebug: autodetect if output is an arrayThis should be done automatically, since some functions also return mixed results.This should be done automatically, since some functions also return mixed results.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/93getMissingLinks is missing at Debug2018-03-09T20:03:29ZLuke081515luke081515@tools.wmflabs.orggetMissingLinks is missing at DebugCouldn't find it with the search, looks like it is missing.Couldn't find it with the search, looks like it is missing.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/92editFunctions need to return an array at debug2018-03-09T20:03:29ZLuke081515luke081515@tools.wmflabs.orgeditFunctions need to return an array at debugThis is currently not correct, it should be changed, so that the array gets displayed.This is currently not correct, it should be changed, so that the array gets displayed.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/91Investigation: All edits automatically marked as small?2018-03-09T20:03:29ZLuke081515luke081515@tools.wmflabs.orgInvestigation: All edits automatically marked as small?See https://de.wikipedia.org/w/index.php?title=Benutzer:Alnilam/Pr%C3%BCftabelle/Ergebnisse&action=history for example, this is not expected.See https://de.wikipedia.org/w/index.php?title=Benutzer:Alnilam/Pr%C3%BCftabelle/Ergebnisse&action=history for example, this is not expected.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/89Debug: getTableOfContents handled not properly2018-02-23T22:27:46ZLuke081515luke081515@tools.wmflabs.orgDebug: getTableOfContents handled not properlyThis function returns an array, but Debug does not handle this result as such:
`PHP Notice: Array to string conversion in /home/luke/Luke081515Bot/Cygnus/Debug.php on line 733`
Used version: 680548de92cefefae2cdda5870ac922040a1a4f6This function returns an array, but Debug does not handle this result as such:
`PHP Notice: Array to string conversion in /home/luke/Luke081515Bot/Cygnus/Debug.php on line 733`
Used version: 680548de92cefefae2cdda5870ac922040a1a4f6Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/87Investigation: getPageID works only direct2018-02-11T14:57:02ZLuke081515luke081515@tools.wmflabs.orgInvestigation: getPageID works only directWorks only in Debug, but not in script. undefinied index "query".Works only in Debug, but not in script. undefinied index "query".Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/77Remove ununsed vars2018-02-11T14:55:28ZLuke081515luke081515@tools.wmflabs.orgRemove ununsed varsOften there are action like this:
```php
$result = $this->ApiRequest();
$resultUs = unserialize($result);
```
$result gets then not used again, but consumes ram. This should get removed.Often there are action like this:
```php
$result = $this->ApiRequest();
$resultUs = unserialize($result);
```
$result gets then not used again, but consumes ram. This should get removed.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/11New user-related commands suggestion2018-02-11T12:08:02ZJohn SmithNew user-related commands suggestion* [x] check if the user exists => !14
* [x] check if the user is blocked => !17
* [x] check the user's editcount => !15
* [x] check the user rights of the user => !16
* [x] check if user is a IP => there is no way to check this via the API, you can check if there is user with that name, otherwise it's an IP. That should work.
* [x] not totally sure, check https://github.com/alexz-enwp/wikitools/blob/master/wikitools/user.py#L47 => see discussion
* [x] get the user's talk page => declined, see discussion
* [x] block the user (already available)
* [x] unblock the user (already available)* [x] check if the user exists => !14
* [x] check if the user is blocked => !17
* [x] check the user's editcount => !15
* [x] check the user rights of the user => !16
* [x] check if user is a IP => there is no way to check this via the API, you can check if there is user with that name, otherwise it's an IP. That should work.
* [x] not totally sure, check https://github.com/alexz-enwp/wikitools/blob/master/wikitools/user.py#L47 => see discussion
* [x] get the user's talk page => declined, see discussion
* [x] block the user (already available)
* [x] unblock the user (already available)Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/86Pipeline fails after 1h: Problem with curl2018-02-11T12:06:32ZLuke081515luke081515@tools.wmflabs.orgPipeline fails after 1h: Problem with curlSee https://gitlab.wmflabs.org/Cygnus/Cygnus/-/jobs/6519
* The Pipeline timed out after one hours, normally curl should have thrown an exception after the 18th try.
* The ": " is missing in the output.See https://gitlab.wmflabs.org/Cygnus/Cygnus/-/jobs/6519
* The Pipeline timed out after one hours, normally curl should have thrown an exception after the 18th try.
* The ": " is missing in the output.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/61Implement action "patrol"2018-02-11T12:06:21ZLuke081515luke081515@tools.wmflabs.orgImplement action "patrol"It should be possible to patrol a page, since we already have flaggedrefs included.It should be possible to patrol a page, since we already have flaggedrefs included.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/80Change return format of patrol and rollback2018-02-11T12:06:21ZLuke081515luke081515@tools.wmflabs.orgChange return format of patrol and rollbackBoth are using a mix of strings etc, but they can use more simple values, which are taking less ressources to compare later. These methods where introduced in the current alpha, so changing it is no breaking change.Both are using a mix of strings etc, but they can use more simple values, which are taking less ressources to compare later. These methods where introduced in the current alpha, so changing it is no breaking change.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/78Suppress UA at Unit-tests2018-01-31T21:36:41ZLuke081515luke081515@tools.wmflabs.orgSuppress UA at Unit-tests```
+ phpunit --version
$ bash ci/phpunitBasic.sh
PHPUnit 5.7.26 by Sebastian Bergmann and contributors.
.
Used UserAgent: 'User:UTAccount - TestCore - Cygnus-Framework V2.1 alpha'
.
Used UserAgent: 'User:UTAccount - TestCore - Cygnus-Framework V2.1 alpha'
```
The version is already suppressed, now the UA should get suppressed as well.```
+ phpunit --version
$ bash ci/phpunitBasic.sh
PHPUnit 5.7.26 by Sebastian Bergmann and contributors.
.
Used UserAgent: 'User:UTAccount - TestCore - Cygnus-Framework V2.1 alpha'
.
Used UserAgent: 'User:UTAccount - TestCore - Cygnus-Framework V2.1 alpha'
```
The version is already suppressed, now the UA should get suppressed as well.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/76Use identical var names at API-Requests2018-01-31T21:36:41ZLuke081515luke081515@tools.wmflabs.orgUse identical var names at API-RequestsWhen fetching the API results, the same varname scheme should get used. This should get checked.When fetching the API results, the same varname scheme should get used. This should get checked.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.org