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

Replace organization logo URLs with uploaded images #1850

Open
1 task
adborden opened this issue Jul 9, 2020 · 6 comments
Open
1 task

Replace organization logo URLs with uploaded images #1850

adborden opened this issue Jul 9, 2020 · 6 comments
Labels
component/catalog Related to catalog component playbooks/roles component/inventory Inventory playbooks/roles

Comments

@adborden
Copy link
Contributor

adborden commented Jul 9, 2020

User Story

In order to control the delivery of organization logos in CKAN and prevent broken images, data.gov operators want to replace any image URLs from CKAN2.3 with image uploads (in CKAN 2.8).

Acceptance Criteria

[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]

Background

Catalog never supported organization image uploads, you had to supply a URL. Some logos point to image in GSA/logo and some point to third-party resources (Wikipedia).

This causes problems when third-parties remove or change the image. Suddenly we'll start seeing broken links on catalog.data.gov organization pages.

In CKAN2.8, we can upload images directly to be served from CKAN.

Security Considerations (required)

None

Sketch

[Notes or a checklist reflecting our understanding of the selected approach]

@adborden adborden added the component/catalog Related to catalog component playbooks/roles label Jul 9, 2020
@mogul mogul added the component/inventory Inventory playbooks/roles label Jul 9, 2020
@mogul
Copy link
Contributor

mogul commented Jul 24, 2020

This issue is Blocked as it can't start before #1886

@adborden
Copy link
Contributor Author

I tested this on catalog-next and I'm still seeing a broken image.

@thejuliekramer
Copy link
Contributor

@adborden this is a PR so it does not display a broken link for either upload or link url - once this is merged I can upload the images GSA/ckanext-datagovtheme#81

@adborden
Copy link
Contributor Author

@thejuliekramer when you upload an organization image, where is it stored?

@FuhuXia
Copy link
Member

FuhuXia commented Mar 5, 2021

Not complete.

Catalog is displaying the uploaded image. But image is stored at local instance: /var/lib/ckan/storage/uploads/group/...

Inventory is showing a broken image after upload. Image is stored at local instance /var/lib/ckan/files/storage/uploads/group/...

@mogul
Copy link
Contributor

mogul commented Mar 5, 2021

I'm going to remove this from the Epic since it is a standalone problem no resolved by the 2.8 rollout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/catalog Related to catalog component playbooks/roles component/inventory Inventory playbooks/roles
Projects
Archived in project
Development

No branches or pull requests

4 participants