Page MenuHomePhabricator

Overwrite file text field should be same as original file
Open, Needs TriagePublic

Description

Currently, we by default have a file text field while overwriting a file, however this is not desirable since it might lead to important information (such as POTY nominations, mass upload headers, Categories etc) to be lost by overwriting. We should fill the file text field with the exact same data that is already there in the file.

Screenshot from 2023-03-05 12-32-20.png (517×498 px, 44 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 the exact text that was availiable in the original file should be mirrored
    • After uploading to commons the text should remain 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

@Najni_Fatima Lmk if you are stuck in a specific area

Change 902053 had a related patch set uploaded (by Najni Fatima; author: Najni Fatima):

[labs/tools/VideoCutTool@master] Overwrite file text field is now same as the original file

https://gerrit.wikimedia.org/r/902053

for fetching the current wikiText of the video use this api https://en.wikipedia.org/w/api.php?action=parse&page=Pet_door&prop=wikitext&formatversion=2
and as far as wikitext for newly uploaded videos is concerned, we'll have to discuss some stuff on that

Hi, @Maryann-Onyinye I want to confirm if this task and other tasks in this category is open for outreachy contributors 2024.

Hi, @Maryann-Onyinye I want to confirm if this task and other tasks in this category is open for outreachy contributors 2024.

Hi This is not an outreachy task. See outreachy projects here: https://www.outreachy.org/apply/project-selection/#wikimedia

Pppery added a subscriber: DO-NOT-CHANGE.
Pppery removed a subscriber: DO-NOT-CHANGE.

I want to ask, can i start contribute on it?

@Soda can you please assign me this task?

hey @AyushShukla1807 lmk if you're stuck somewhere. This is actually a high priority ticket (BUG), and we're looking to close it asap.

Ok Sure, am working on the issue. Will update you soon.

Change #902053 abandoned by Hashar:

[labs/tools/VideoCutTool@master] Overwrite file text field is now same as the original file

Reason:

This repository has been migrated to GitLab: https://gitlab.wikimedia.org/cloudvps-repos/videocuttool/VideoCutTool

https://gerrit.wikimedia.org/r/902053

Izno added a subscriber: AyushShukla1807.

Hi! I’m Surya, new to Wikimedia development and preparing for GSoC.
I would like to work on this good-first task.
Could you please confirm if it’s okay for me to proceed?

Hi @Aklapper,

Thanks for pointing me to the communication tips. I’ve read them.

My name is Nagam Surya, and I’m preparing for GSoC 2026. I’m interested in contributing to Wikimedia and would like to start with this
task:
https://phabricator.wikimedia.org/T331235

From what I understand, this task is about improving the documentation so that new contributors can find and work on “good first issues” more easily. I’ve started reading the related pages and trying to understand what can be improved.

Please let me know if I’m on the right track and if this is a good place for me to begin. I’d also appreciate any suggestions on how to proceed.

Thank you,
Nagam Surya.

From what I understand, this task is about improving the documentation

Hi, it is not. See the "Deliverables" section above in the task description.

Thanks, @Aklapper, for the clarification.

Since this task involves setting up VideoCutTool locally and making code changes, and I’m currently looking specifically for documentation‑related newcomer tasks, I will step back from this one.

Thanks for the guidance!

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

I have experience with JavaScript and web development, and I'm interested in working on frontend features. This VideoCutTool task about fixing the file text field looks like a good opportunity to contribute.

I'd like to work on this task. I can set up VideoCutTool locally and work on reproducing and fixing the bug as described in the deliverables. Please let me know if I can proceed!

Thanks!

Hi! I'm interested in working on this task for GSoC 2026. I have experience with JavaScript and Web Development. I've read the description and understand that the fix involves fetching the original file text and pre-filling the upload form field. Could you please guide me on any specific API or function I should look into? I'll start by setting up VideoCutTool locally.