Page MenuHomePhabricator

Mirror licensing from previous file
Open, Needs TriagePublic

Description

Currently, we hard-code the license to the following text, {{self|cc-by-sa-4.0}}\n, however, we shouldn't be doing this and instead should be lifting the licensing text from the previous video (we don't want to get into a licensing mismatch issue by releasing it under a potentially incompatible license).

Screenshot from 2023-03-05 12-18-33.png (535×518 px, 45 KB)

Deliverables

  • Setup VideoCutTool locally based on the instructions given in the README file here
  • Reproduce the above bug
  • Make changes and verify that the changes meet the following criteria
    • When the uploading to commons screen is shown, the file text field should show use the license text in the commons file from which the current file was created.
    • After uploading to commons the licensing text for both the newly uploaded and old files should be the same (unless the text has been edited).
  • Upload a patch for your change to Gerrit using the following tutorial
  • Make sure that your commit message aligns with the commit message guidelines
  • Add @Gopavasanth and @Soda as reviewers for your patch.

Event Timeline

you(@Soda) mean for this particular video ->https://commons.wikimedia.org/wiki/File:%27Walla_Zaman_Ya_Selahy%27.ogg
{{self|cc-by-sa-4.0}} should be replace by the text given below

image.png (269×1 px, 98 KB)

should be {{Text}} or {{self| Text}} or just Text

you(@Soda) mean for this particular video ->https://commons.wikimedia.org/wiki/File:%27Walla_Zaman_Ya_Selahy%27.ogg
{{self|cc-by-sa-4.0}} should be replace by the text given below

image.png (269×1 px, 98 KB)

should be {{Text}} or {{self| Text}} or just Text

I'm not sure what you mean here, we want to mirror the licensing information, there is no specific Text variable involved here

Text refers to the text given under the licensing

Pppery added a subscriber: A7zheng.

hey @Dumbledore feel free to ask your queries here on the phab ticket itself (regarding the ticket)

Hi team,
I'm Surya, new to Wikimedia development and preparing for GSoC 2026.

I've read the task and the Deliverables. My understanding is:
• VideoCutTool currently hard‑codes the license text ({{self|cc-by-sa-4.0}}).
• Instead, it should fetch and mirror the exact licensing text from the original Commons file and prefill it in the overwrite form.

Before I start, I have one clarification:
Should I mirror the entire “file description + licensing section” from the source file, or only the exact licensing templates?

Once confirmed, I will proceed with local setup, reproduction, and a patch.

Thanks!

Hi! I'm Manish, a 2nd-year CS student from India working towards contributing to MediaWiki for GSoC 2026.

I'm experienced with JavaScript and web development. This VideoCutTool task about mirroring licensing from previous files is interesting as it involves improving the workflow for content creators.

I'd like to work on this task. I can set up VideoCutTool locally, understand the licensing workflow, reproduce the issue, and implement the necessary changes to fetch and mirror the licensing text. Please let me know if I can get started!

Thanks!

Hello,

My name is Siva Paparao and I am a new contributor preparing for GSoC.

I have reviewed the task description and would be interested in working on this issue if it is still available. I plan to set up VideoCutTool locally, reproduce the issue, and then work on implementing the fix described in the deliverables.

Please let me know if I may proceed or if there are any additional guidelines I should follow.

Thank you!

Hello!

My name is Emani Balakrishna Sai Kumar, and I am a new contributor preparing for GSoC 2026. I am interested in working on this task.

From the description, my understanding is that VideoCutTool currently hard-codes the license text ({{self|cc-by-sa-4.0}}) when preparing a file for upload to Commons. Instead, the tool should retrieve and mirror the licensing text from the original Commons file so that the new upload uses the same license and avoids any licensing mismatches.

I plan to proceed with the following steps:

  1. Set up VideoCutTool locally using the instructions in the repository README.
  2. Reproduce the issue by following the upload workflow described in the task.
  3. Identify where the license text is currently hard-coded in the codebase.
  4. Modify the implementation so the license text is fetched from the original Commons file and prefilled in the upload form.
  5. Test the change to ensure the licensing text matches the original file after upload.
  6. Submit a patch to Gerrit following the contribution guidelines and add the suggested reviewers.

Please let me know if this approach looks correct or if there are any additional guidelines I should follow before starting.

Thank you!

Please everybody just do it, instead of posting "Please let me know..." comments which always look a bit AI-generated. Thank you.