Logo for Autoban project does not show

Created on 30 December 2024, about 2 months ago

Problem/Motivation

Logo for Autoban project does not show by Project browser module and on the Project modules page โ†’

Proposed resolution

I used the logo from https://www.drupal.org/project/advban/issues/3459437 ๐Ÿ“Œ Create logo for Advanced ban for Project Browser Initiative Active
Can you check, please, why the logo doesn't show

๐Ÿ’ฌ Support request
Status

Active

Version

2.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ฆUkraine goodboy Kharkiv, Ukraine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @goodboy
  • ๐Ÿ‡ซ๐Ÿ‡ฎFinland heikkiy Oulu

    I think the problem might be because looking at https://git.drupalcode.org/project/autoban/-/tree/7.x-1.x?ref_type=heads the default branch is 7.x-1.x and the logo.png is not present there. The logo can be found from https://git.drupalcode.org/project/autoban/-/tree/8.x-1.x?ref_type=heads.

    I was able to get it showing in another project by switching the default branch in Gitlab to be the one with the logo.png. This was mentioned in ๐Ÿ“Œ Update logo for compatibility with Project Browser Active .

    Note also that Project browser seems to cache the logo images and โœจ Allow clearing of cached data from Project Browser sources Active seems to be a related issue to that.

  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine goodboy Kharkiv, Ukraine

    @heikkiy, thank you very much for your answer. I have changed the default branch to 8.x-1.x and I can see the logo at the https://git.drupalcode.org/project/autoban . Hopefully I will have to wait a bit for the project images to update.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States leslieg

    This documentation should help: Module Maintainers: How to update projects to be compatible with Project Browser โ†’

    Check the requirements and ensure the logo.png is on your default branch. It is not displaying on the drupal.org project page to the left of the project name. (could be the Cache issue mentioned above) Also, please remove the logo from the first image on your drupal.org project page as that is no longer the recommendation.

    See

    Note - also check the Short Description and Category requirements to help make your module easier to find and understand in the Project Browser.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States chrisfromredfin Portland, Maine

    The other thing to note is that if you ask for it, then update, Project Browser tends to aggressively "cache" data that we've requested from the endpoint. This is not in regular cache, but in key-value storage (for... reasons). So PB has a UI where you can flush that data. Then you might start seeing the data in PB as long as you're seeing it on your project page.

    Config > Development > Project Browser > Actions.

  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine goodboy Kharkiv, Ukraine

    @leslieg, thank you. I have removed the first picture from the module's page ( https://www.drupal.org/project/autoban โ†’ )

  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine goodboy Kharkiv, Ukraine

    @leslieg, thank you again. I can see logo for my projects. But I am shocked that the description is wrong. How do you write descriptions for modules?
    @chrisfromredfin, I tried to click to the button but the storage didn't clear. I see very old and wrong description to my modules. What I need to do to fix the great problem for me?

    If your module can't get correct module descriptions, is there a way to opt out of being included in the "index" of your module?

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States leslieg

    Hi @goodboy. The Short description on the cards pulls from the Summary field on your Drupal.org project page. If the Summary field is empty, the first 200 characters of the Description field are displayed. followed by ellipses.

    That's why Autoban displays a short description of "๐Ÿ‡บ๐Ÿ‡ฆ This module is maintained by Ukrainian developers. Please consider supporting Ukraine in a fight for their freedom and safety of Europe. Advanced ban is a replacement to Drupal core Ban moduleโ€ฆ"

    Enter text in the Summary field (off of the Description field - note it may be hidden) and you should be all set.
    Note - The short description should answer this question (in a non-technical way): "What does this module do?" or "Why would I install this?"
    The short description can be be up to 200 characters. Do not start the description with "The xx module ..." as the module name will display above the short desciption.

    You should also check the categories assigned. We recommend one category, however you can have up to three if you feel your module should fall under additional categories, For guidance on category selection, please read Category Descriptions โ†’ .

    A reference that will be helpful Module Maintainers: How to update projects to be compatible with Project Browser โ†’

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States chrisfromredfin Portland, Maine

    @goodboy, AHA! OK, so what you're actually seeing then is a delay in when we update the information in Project Browser. Actually, our endpoint is running off a D10 version of Drupal.org where we migrate the data from the existing drupal.org to that one on a nightly schedule.

    It may take a while for the canonical data to move from drupal.org over to the new site.

    I'll ask @fjgarlin how long we should expect data to update, or if we're using `--update` with our migration.

  • ๐Ÿ‡ช๐Ÿ‡ธSpain fjgarlin

    We are not running migrations with --update. Iโ€™d expect that Drupal migrations catch the update at the source and propagate nodes that have been updated. But maybe this is not happening.

    Migrations run once per hour, but just drush migrate:import drupalorg_migrate_project_module
    The migration for projects is this one.

    Due to our setup, we cannot use high water marks, but maybe we can use track_changes or run with --update once a day only. I just triggered a migration with --update manually in any case right now.

  • ๐Ÿ‡ช๐Ÿ‡ธSpain fjgarlin

    After triggering the update and reindex, the data seems to be ok: https://www.drupal.org/jsonapi/index/project_modules?filter[machine_name... โ†’

    I created โœจ Track changes on migrations or update more regularly Active so we can take care of these things in the endpoint.

  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine goodboy Kharkiv, Ukraine

    Thank you all, now description of my projects are correct

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States leslieg
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States leslieg

    assigned credit

Production build 0.71.5 2024