ckan / ckan/ckanext-scheming

Organization try to use scheming.css by href, this cause 404

Open
#288 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
102
Forks
182
PR merge metrics
No merged PRs in 30d

Description

When we use scheming for customized organization formats and we go over an organization the template is loaded:

https://github.com/ckan/ckanext-scheming/blob/d441d2dee72a7382a73de4185b01fae4b2d37473/ckanext/scheming/templates/organization/edit_base.html#L5

I think that this line is causing the issue, is redundant and can be deleted (maybe also the whole template can go...

Moreover we are already correctly importing the scheming.css thanks to:

https://github.com/ckan/ckanext-scheming/blob/master/ckanext/scheming/2.8_templates/scheming/snippets/scheming_asset.html

and
https://github.com/ckan/ckanext-scheming/blob/d441d2dee72a7382a73de4185b01fae4b2d37473/ckanext/scheming/templates/base.html#L5

What do you think?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with ckanext/scheming/templates/organization/edit_base.html at the linked line, then compare its stylesheet reference with ckanext/scheming/templates/base.html and 2.8_templates/scheming/snippets/scheming_asset.html. Confirm the organization page no longer requests a missing scheming.css URL while the existing stylesheet import still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, python
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.