Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update image flag colour when leased #4413

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

andrew-nowak
Copy link
Member

What does this change?

Follow on from #4404 - update the image's flag immediately when it's been leased. This was an oversight when the colouring was first added - we set it when the image is loaded, but don't reset when it's been updated. We now correct this mistake.

How should a reviewer test this change?

Deploy to TEST. From the search page, select an image (without entering it - use the tickbox and open up the info panel on the right). Set it to some usage rights such as social media, so the image is restricted but not blocked. Add a lease. Does the image's flag turn the leased teal colour, without having to reload the page?

image

How can success be measured?

Who should look at this?

Tested? Documented?

  • locally by committer
  • locally by Guardian reviewer
  • on the Guardian's TEST environment
  • relevant documentation added or amended (if needed)

@andrew-nowak andrew-nowak requested review from a team as code owners January 28, 2025 17:39
Copy link
Contributor

@bryophyta bryophyta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@prout-bot
Copy link

Seen on usage, kahuna, media-api (merged by @andrew-nowak 7 minutes and 33 seconds ago) Please check your changes!

@prout-bot
Copy link

Seen on image-loader, metadata-editor, thrall, cropper, collections (merged by @andrew-nowak 7 minutes and 38 seconds ago) Please check your changes!

@prout-bot
Copy link

Seen on leases (merged by @andrew-nowak 7 minutes and 49 seconds ago) Please check your changes!

1 similar comment
@prout-bot
Copy link

Seen on leases (merged by @andrew-nowak 7 minutes and 49 seconds ago) Please check your changes!

@prout-bot
Copy link

Seen on auth (merged by @andrew-nowak 8 minutes and 37 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants