Page MenuHomePhabricator

Adding an image with a prefix to Community updates doesn't add the image
Open, Needs TriagePublic

Description

In Community configuration, for the community updates:

  1. add an image with its "File" prefix into the image field: File:Wikiconcours Mauve.png
  2. save

Regarding the final result

  • Expectation: the image is used on the Homepage
  • Reality: "File" prefix get the image being ignored by Community Configuration.

Capture d’écran_2024-10-03_10-38-42.jpeg (1×1 px, 304 KB)

Regarding user information:

  1. Reject
    1. Expectation: the image field rejects the image
    2. Reality: it is possible to save the page, with no error message shown
  2. Parse and accept
    1. Expectation: Community Configuration removes the File prefix on save, users have nothing to take care of
    2. Reality: it is possible to save the page, but the image is not updated

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@Trizek-WMF - the current behavior of the Image field does seem a little bit confusing. It seems that the Image field accepts image files with File: and without it.
Re-checking the steps (and recalling what previous testing has revealed), here is the current behavior:

  • the Image field accepts non-existing images and no indication to users will be given.
  • saving the non-existing image file won't produce any errors - the succes save message will be shown.
  • after "saving" a non-existing image, Community Update module on Special:Homepage won't display an image
  • the Image field will be blank

There is another tricky point - adding and saving a valid image after above steps won't be displayed immediately on Special:Homepage, it requires (after getting to Special:Homepage) to refresh the page again. Note - I checked the image File:Wikiconcours Mauve.png is displayed in CommunityUpdate module - enwiki beta Special:Homepage

Michael subscribed.

We should probably check how relevant the guidance changes coming from T362650 and potential upcoming changes for T376466: Lookup: automatic selection when the text typed matches with one result affect this task. (Codex Lookup is the component internally used in our Commons File picker)