Cygnus issueshttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues2017-12-26T22:47:22Zhttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/38Detect Botpasswords2017-12-26T22:47:22ZLuke081515luke081515@tools.wmflabs.orgDetect BotpasswordsFunctions like allowBots need to know the username. If they don't have this, this can create problems. The currently problem: If you are using a botpassword, your username is not username, but username@botpwdname, so we need to detect if there is a botpassword, and create a fixedUsername or something like that, which functions like allowBots can use.Functions like allowBots need to know the username. If they don't have this, this can create problems. The currently problem: If you are using a botpassword, your username is not username, but username@botpwdname, so we need to detect if there is a botpassword, and create a fixedUsername or something like that, which functions like allowBots can use.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/10Create a possiblity to put echo to files2017-12-21T23:51:18ZLuke081515luke081515@tools.wmflabs.orgCreate a possiblity to put echo to filesIt would be useful to Redirect the Output to a file. With the ircecho script we can use this to write a simple ircbot implementation.It would be useful to Redirect the Output to a file. With the ircecho script we can use this to write a simple ircbot implementation.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/34get a list of notifications2017-11-13T09:20:32ZLuke081515luke081515@tools.wmflabs.orgget a list of notificationsoriginally from https://rcm-2.wmflabs.org/T890
Make the bot able read out notification.
@freddy2001 I think you have already something similar?originally from https://rcm-2.wmflabs.org/T890
Make the bot able read out notification.
@freddy2001 I think you have already something similar?Version 2.2FreddyFreddyhttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/98Ensure user is logged in2018-06-11T09:29:21ZLuke081515luke081515@tools.wmflabs.orgEnsure user is logged inEnsure that the user is still logged in, or do a relogin.Ensure that the user is still logged in, or do a relogin.Version 2.2https://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/97Take assert to the password2018-06-11T09:29:31ZLuke081515luke081515@tools.wmflabs.orgTake assert to the passwordMost accounts have a botflag or not, so it would be useful to set the assert value with the account credentials in Password.phpMost accounts have a botflag or not, so it would be useful to set the assert value with the account credentials in Password.phpVersion 2.2https://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/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/90Check if a username looks like an IP2018-02-11T12:08:01ZLuke081515luke081515@tools.wmflabs.orgCheck if a username looks like an IPSee https://gitlab.wmflabs.org/Cygnus/Cygnus/issues/11#note_854See https://gitlab.wmflabs.org/Cygnus/Cygnus/issues/11#note_854Version 2.2https://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/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/82Implement action=clientlogin2018-01-13T00:12:33ZLuke081515luke081515@tools.wmflabs.orgImplement action=clientloginSee #31 for the original issue. We maybe want to implement action=clientloginSee #31 for the original issue. We maybe want to implement action=clientloginVersion 2.2https://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/81Ban serialized arrays as return value2018-01-12T23:53:10ZLuke081515luke081515@tools.wmflabs.orgBan serialized arrays as return valueSerialized Arrays as return value are bad. The user needs to take care of the API-Answer then. The function should do that for him instead.
Current functions using serialized Arrays:
* [ ] `movePage()`
* [ ] `getCatMembers()`
* [ ] `getPageCats()`
* [ ] `getAllEmbedings()`
* [ ] `getAllPages()`Serialized Arrays as return value are bad. The user needs to take care of the API-Answer then. The function should do that for him instead.
Current functions using serialized Arrays:
* [ ] `movePage()`
* [ ] `getCatMembers()`
* [ ] `getPageCats()`
* [ ] `getAllEmbedings()`
* [ ] `getAllPages()`Version 2.2https://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/79Use similar layout for the docu2018-01-29T01:19:19ZLuke081515luke081515@tools.wmflabs.orgUse similar layout for the docuCurrently the order of @param, @author etc. is different, it would be useful to make that similar.
I'd say we can do:
```php
/** method name
* Short description
* @author Authorname
* @param $param - text here
* @param $param - [default: default value] - text
* @return type: text
*/
```Currently the order of @param, @author etc. is different, it would be useful to make that similar.
I'd say we can do:
```php
/** method name
* Short description
* @author Authorname
* @param $param - text here
* @param $param - [default: default value] - text
* @return type: text
*/
```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/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.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/75Put generic API-params in a function2018-01-30T12:43:13ZLuke081515luke081515@tools.wmflabs.orgPut generic API-params in a functionEach function needs maxlag. Each function needs assert, or at least most. It would be nice if we can put this to a function that get called on each api-call.Each function needs maxlag. Each function needs assert, or at least most. It would be nice if we can put this to a function that get called on each api-call.Version 2.2Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/73Write a generic query continue2018-01-09T19:41:46ZLuke081515luke081515@tools.wmflabs.orgWrite a generic query continue!77 inspired me. What do you think of:
**A generic query continue!**
The concept itself is simple and nice, implementation may be not.
# What the function does
## Conditions for using
Query functions often have more results then the limit allows, so continue is needed. Currently the functions are doing this until all results are fetched. This may be useless if the user only needs 7000 for example.
## Calling it
Functions are reciving the continue. This continue has a name as well (if using rawcontinue, we may switch to the other continue), so the continue engine can get called, with the params `continuename `and `api-call url` at least. The function will start fetching everything then. It would be useful to implement that recursive, but PHP allows only 50 levels of recursive functions IIRC
# Nice additional features
The user can specify a limit, and the function tries to fetch as much as possible data, if [limit] > [limit of data to fetch in one request]. Then, the function will continue, until the limit is reached.
Please share your opinion on this proposal with me.!77 inspired me. What do you think of:
**A generic query continue!**
The concept itself is simple and nice, implementation may be not.
# What the function does
## Conditions for using
Query functions often have more results then the limit allows, so continue is needed. Currently the functions are doing this until all results are fetched. This may be useless if the user only needs 7000 for example.
## Calling it
Functions are reciving the continue. This continue has a name as well (if using rawcontinue, we may switch to the other continue), so the continue engine can get called, with the params `continuename `and `api-call url` at least. The function will start fetching everything then. It would be useful to implement that recursive, but PHP allows only 50 levels of recursive functions IIRC
# Nice additional features
The user can specify a limit, and the function tries to fetch as much as possible data, if [limit] > [limit of data to fetch in one request]. Then, the function will continue, until the limit is reached.
Please share your opinion on this proposal with me.Version 2.2https://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/72Check if a page contains a template2018-01-16T21:05:14ZLuke081515luke081515@tools.wmflabs.orgCheck if a page contains a templateWrite a function that checks if a template is present on a page.Write a function that checks if a template is present on a page.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.orghttps://gitlab.wmflabs.org/Cygnus/Cygnus/-/issues/71Replace unneeded whiles with for2018-01-13T22:33:44ZLuke081515luke081515@tools.wmflabs.orgReplace unneeded whiles with forwhile's that don't need to be while's should be for.while's that don't need to be while's should be for.Version 2.1Luke081515luke081515@tools.wmflabs.orgLuke081515luke081515@tools.wmflabs.org