MediaWiki talk:Gadget-PermissionOTRS.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 3 days. For the archive overview, see Special:PrefixIndex/MediaWiki talk:Gadget-PermissionOTRS.js/Archive.

features[edit]

Is it possible to add some features? It would be great if gadget could:

  1. add {{OTRS received}} with parameter and replace {{OTRS pending}} by {{OTRS received}};
  2. replace {{OTRS received}} by {{PermissionOTRS}};
  3. add appropriate edit summary.

And I think it's maybe better to use "id=parameter" than "link=parameter" in the gadget, but it's not so important. Rubin16 (talk) 10:11, 27 August 2010 (UTC)[reply]

I looked through the code and noticed that it can replace "otrs pending" by "permissionOTRS". There is nothing connected with "OTRS received" in the code but in this case it's not so important. Forget my suggestion :) Rubin16 (talk) 10:15, 27 August 2010 (UTC)[reply]

Not removing OTRS pending[edit]

Several times recently I've had to manually remove {{OTRS pending}} after using this script to add {{PermissionOTRS}}. [1] [2]. What's the matter with the script? HJ Mitchell | Penny for your thoughts? 21:58, 31 January 2012 (UTC)[reply]

I am facing the same issue. no responce. Jayantanth (talk) 11:21, 26 March 2022 (UTC)[reply]
@HJ Mitchell @Jayantanth OTRS Pending templates shouldn't be used anymore and are deprecated. There are probably few still around: be patient and remove them by hand. Thanks Ruthven (msg) 13:10, 26 March 2022 (UTC)[reply]

Suggestion for improved handling[edit]

First, expand the gadget by an ability to place {{No OTRS permission since}} on images which claims to have a mesage sent to OTRS. And second, reword this template so it could be used with a better text for images tagged with OTRS received. --Denniss (talk) 21:00, 17 December 2012 (UTC)[reply]

Insert permission template without overwritting contents[edit]

Currently the Gadget replaces the entire "Permissions="-row Leading to some undesired results [3]. It would be better if it simply inserted the template directly after the appropriate "="-sign. /Lokal_Profil 18:04, 22 April 2014 (UTC)[reply]

Another example of incorrect behavior reported at VillagePump. This needs to get fixed. --Jarekt (talk) 18:19, 1 October 2014 (UTC)[reply]

Refactor[edit]

The script should be completely refactored: A library utilizing a Wiki-DOM parser allowing any customer-script to add the permission tag to the permission section and a front-end part providing the dialogue asking for the ticket number in a separate script file. -- Rillke(q?) 18:54, 1 October 2014 (UTC)[reply]

Removal of old contents of "permission" field[edit]

Jcb wrote 'the license does not belong to the permission field. Did you know that is disappears when using the script for an OTRS tag if the license is there?'. This appears to be a bug.   — Jeff G. ツ please ping or talk to me 10:03, 2 March 2018 (UTC)[reply]

@Jeff G. and Jcb: Please be more concrete, as this should indeed never happen (concrete case?). -- User: Perhelion 12:59, 2 March 2018 (UTC)[reply]
I don't remember a particular case. I sometimes find them in Category:Media without a license: needs history check. I will drop a note if I come accross this situation again. Jcb (talk) 17:39, 2 March 2018 (UTC)[reply]
@Perhelion: I didn't find that, but I did find multiple instances of removal of a delete tag.   — Jeff G. ツ please ping or talk to me 16:30, 3 March 2018 (UTC)[reply]

Enter[edit]

{{Editprotected}} It would be really nice if we could tap the "Enter" key after typing or pasting the ticket number to perform the tagging directly, rather than having to tab to the "OK" button.   — Jeff G. ツ please ping or talk to me 13:08, 1 July 2018 (UTC)[reply]

✓ Done Thank you! -- User: Perhelion 14:24, 1 July 2018 (UTC)[reply]
@Perhelion: Thank you very much!   — Jeff G. ツ please ping or talk to me 14:33, 1 July 2018 (UTC)[reply]

Speaking of the "Enter" key, does anyone know why we can't use it any more in the "Edit summary" to "Publish changes" here like we can on other wikis?   — Jeff G. ツ please ping or talk to me 07:06, 14 August 2018 (UTC)[reply]

More clean up[edit]

Please make it possible that the gadget cleans up {{Information}}'s every parameters, not just |permission=. For example, this file's code is a bit messy and the gadget fixed only one line; could | date = 2018-10-26|permission = 2018-10-26 happen as well? (check it in source mode) Thanks in advance! Bencemac (talk) 11:18, 8 June 2019 (UTC)[reply]

@Bencemac: Date doesn't belong in the permission field.   — Jeff G. please ping or talk to me 12:19, 8 June 2019 (UTC)[reply]
I tried to say that the unnecessary white space characters should be eliminated from {{Information}}. Date was just an example. Bencemac (talk) 12:23, 8 June 2019 (UTC)[reply]

Temporarily undeleted should be deleted[edit]

{{Temporarily undeleted}} should be removed when I am inserting the OTRS permission. As you can see in this edit, this function is missing right now. Can you please add it? Thanks in advance! Bencemac (talk) 07:13, 5 August 2020 (UTC)[reply]

Bug in the script for adding permission template?[edit]

I was working on OTRS this morning and noticed that when adding a permission template to the page with the script, the OTRS-pending template is not automatically removed (example), and since I also noticed that images in the OTRS pending category get deleted with the batch-task script, I'm afraid we might lose good and rightfully released images.

Or: is my brain fooling me and am I making a mistake in the process? Ciell (talk) 13:30, 6 December 2020 (UTC)[reply]

PermissionTicket[edit]

{{Edit request}}

Hello, the PermissionOTRS template has been moved to {{PermissionTicket}} because of the OTRS to VRTS renaming process; e.g. see Phab:T280392 and Phab:T280397. It is possible to update the gadget to use the new name of the permission template? Thanks --Ruthven (msg) 09:15, 12 May 2021 (UTC)[reply]

PS: {{OTRS received}} will be renamed soon. I'll fill another edit request then. Cheers --Ruthven (msg) 09:16, 12 May 2021 (UTC)[reply]
✓ Done AntiCompositeNumber (talk) 22:52, 20 May 2021 (UTC)[reply]

Permission received[edit]

{{Edit request}}

Hi, still part of the OTRS to VRTS renaming process, now I've moved the Template:OTRS received to Template:Permission received. Can you please do the relative modifications in the gadget? Thanks --Ruthven (msg) 12:51, 17 September 2021 (UTC)[reply]

✓ Done, hopefully – feel free to ping me if there are issues. --Lucas Werkmeister (talk) 08:55, 18 September 2021 (UTC)[reply]

Tag: PermissionOTRS / renaming of the tool[edit]

Hello. I think the tag this tool generates in revision histories needs to be changed so that it no longer uses "otrs". I hesitate to change only the tag, as it corresponds to the tool name. Are there any objections to rename the whole tool to "Gadget-Permission-Ticket.js"? --Krd 10:06, 7 December 2021 (UTC)[reply]

 Support.   — Jeff G. please ping or talk to me 14:09, 7 December 2021 (UTC)[reply]
I don’t know if there’s a way to rename change tags in the database, updating all existing page history rows, but if there isn’t, I suggest just updating MediaWiki:Tag-PermissionOTRS’ (and MediaWiki:Tag-PermissionOTRS-description’s) content instead of creating a new tag with a new name so that existing and new edits can be found by filtering to one tag. And probably develop a way to rename tags in the database. —Tacsipacsi (talk) 20:46, 12 December 2021 (UTC)[reply]
Is there any use case for this tag? --Krd 21:18, 12 December 2021 (UTC)[reply]
@Krd: Evidently, it was created so that Steinsplitter and other Commons Admins could track use (and potential misuse) of the gadget. Sometimes, it is helpful in troubleshooting to be able to pinpoint the exact date/time something last worked. Knowing how many times a particular user used it in a given time period can also be helpful.   — Jeff G. please ping or talk to me 21:36, 12 December 2021 (UTC)[reply]
 Support Fine with me the update of MediaWiki:Tag-PermissionOTRS and MediaWiki:Tag-PermissionOTRS-description to "Permission-Ticket" (or even the renaming of the JS). --Ruthven (msg) 11:58, 8 March 2022 (UTC)[reply]

errorbox[edit]

{{Ep}}

@@ -233,7 +233,7 @@
 	var VRTSfield = $( '#field-vrts' ), // there is already a ticket
 		name = 'VRTS',
 		$select,
-		type = 'errorbox',
+		type = 'mw-message-box mw-message-box-error',
 		noprompt = false, // whether we expect input
 		title = ( VRTS && VRTS.name ) ? VRTS.name : name;

As part of the phab:T300306. Stang 20:05, 15 April 2022 (UTC)[reply]

✓ Done. -- CptViraj (talk) 12:15, 16 April 2022 (UTC)[reply]

Bug report[edit]

When I click on the permission vrts link from the mobile device, the prompt box that comes is blinking. gif screenshot Yahya (talk) 12:35, 23 August 2022 (UTC)[reply]

@Yahya: Have you tried it in landscape mode and/or desktop mode? I prefer to use both on my phone and tablet when editing, even if the keyboard does obscure more than half of the screen.   — Jeff G. please ping or talk to me 21:36, 23 August 2022 (UTC)[reply]
Nevermind the desktop comment, desktop is required for this gadget.   — Jeff G. please ping or talk to me 21:39, 23 August 2022 (UTC)[reply]

Vietnamse translation[edit]

{{Edit request}}

            vi: {  // Translation by [[User:Tryvix1509]]
                apiErrorCode: 'Có lỗi khi xử lý yêu cầu. Vui lòng thử lại.\n\t Mã lỗi API: %CODE%',
                confirmDR: 'Đề nghị xóa tập tin này?',
                digit: 'Nhập ID thẻ (gồm 16 chữ số):',
                Done: 'Xong!',
                emptyResponse: 'Máy chủ đã trả về phản hồi rỗng.',
                Error: 'Lỗi!',
                fail: 'thất bại',
                gotContent: 'Đang lấy nội dung trang…',
                INVALIDID: 'ID THẺ KHÔNG HỢP LỆ',
                invalidId: 'Bạn phải nhập số thẻ hợp lệ có 16 chữ số.',
                noAuth: 'Bạn không có quyền thực hiện tác vụ này!',
                noFound: 'Không tìm thấy vị trí phù hợp để chèn bản mẫu! Xin hãy tự thêm vào thủ công. ',
                process: '…đang yêu cầu gắn thẻ Ticket#: %TICKET%',
                Processing: 'Đang xử lý…',
                reason: 'Cung cấp lý do?',
                sameTicket: 'Thẻ này đã được thêm vào rồi.',
                sdcAdding: 'Đang thêm tuyên bố cho Dữ liệu có cấu trúc ...',
                sdcAdded: 'Đã thêm tuyên bố cho Dữ liệu có cấu trúc, đang lưu trang',
                success: 'Thẻ VRTS đã được chèn vào tập tin.'
            },

Support Vietnamse user :D Tryvix1509 (talk) 13:08, 2 April 2023 (UTC)[reply]

✓ Done --Lucas Werkmeister (talk) 13:45, 2 April 2023 (UTC)[reply]