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?