Skip to content

bug: ECR Plugin Does Not Display Latest Images also random #409

@yashwanthnimmala-houzz

Description

@yashwanthnimmala-houzz

📜 Description

The ECR plugin currently limits the number of images using maxImages before sorting them, which causes it to display outdated images if the AWS DescribeImages API returns them in an unsorted order (which it often does).

As a result, the UI shows older images (e.g., 2 weeks ago) and misses newer images entirely, even though maxImages is set.

👍 Expected behavior

The plugin should:

Collect all available images (or a sufficient sample).

Sort them by imagePushedAt descending.

Then apply the maxImages limit after sorting to show the latest pushed images.

👎 Actual Behavior with Screenshots

Image

This is the top

👟 Reproduction steps

Use the plugin with a repository containing more than maxImages (e.g., 100) images.

Navigate to the /ecr tab for a component.

Observe that older images are shown at the top, and the most recent images are missing.

📃 Content

No response

🖥️ Your Environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions