Extension Temporary fixes for CKAN core issues


Extension Basics

Title
Temporary fixes for CKAN core issues
Name
ckanext-core-fix
Type
Public extension
Description
Provides temporary fixes for CKAN core issues pending upstream merges
CKAN versions

~2.9, ~2.10, ~2.11

Show details
Download-Url (zip)
Download-Url commit date
2024-01-01
Url to repo
Category
Specialized Tools


Background Infos

Description (long)
Show details

This extension provides temporary fixes to CKAN core issues that aren’t yet merged upstream but are expected to be merged soon. All fixes are enabled by default and can be selectively disabled via configuration. Each fix is associated with a CKAN core pull request. Features include: dashboard activity page fix (PR#7482, in master), markdown macro regression fix after Bootstrap 5 migration (PR#7485, in master), FontAwesome icons fix after Bootstrap 5 (PR#7474, in master), primary/secondary block order regression fix (PR#7468, in master), button icon/text gap fix (PR#7470, in master), mobile layout breakpoint fix for Bootstrap 5 (PR#7467, in master), activities list page modern restyling (PR#7491), dataset group list CSRF token fix (in master), dashboard organization tab labels and links fix (in master), Redis session serialization fix for Markup objects using msgspec (PR#8704 ongoing). Compatible with CKAN 2.10.0. Merged fixes may be removed in future versions to avoid accumulating disabled fixes. Python 3.7-3.10 compatible. Beta development status. AGPL licensed.

Version
0.8.0
Version release date
2024-01-01
Contact name
DataShades
Contakt email
Contact Url
(not set)


Installation Guide

Configuration hints

Install via pip:

pip install ckanext-core-fix

Enable the plugin:

ckan.plugins = core_fix

Configuration:

Disable specific fixes by providing fix names (optional, default: None)

ckanext.core_fix.disable_fix = dashboard_activity

Available fixes (use names in parentheses to disable):

  1. dashboard_activity

    • Fix dashboard_activity_stream helper call
    • PR: https://github.com/ckan/ckan/pull/7482
    • Status: Already in master
  2. markdown_macro

    • Fix markdown.html macro regression after Bootstrap 5 migration
    • PR: https://github.com/ckan/ckan/pull/7485
    • Status: Already in master
  3. fontawesome_icons

    • Fix missing FontAwesome icons after Bootstrap 5 migration
    • PR: https://github.com/ckan/ckan/pull/7474
    • Status: Already in master
  4. secondary_order

    • Fix primary/secondary order regression
    • PR: https://github.com/ckan/ckan/pull/7468
    • Status: Already in master
  5. button_icon_text_gap

    • Fix missing gap between button icon and text
    • PR: https://github.com/ckan/ckan/pull/7470
    • Status: Already in master
  6. mobile_layout_breakpoint

    • Fix improper breakpoint for mobile view after Bootstrap 5
    • PR: https://github.com/ckan/ckan/pull/7467
    • Status: Already in master
  7. restyle_activity

    • Restyle activities list page in modern way
    • PR: https://github.com/ckan/ckan/pull/7491
  8. group_list_csrf

    • Add CSRF token to dataset group list form
    • Status: Already in master
  9. dashboard_organization

    • Fix dashboard organization tab org labels and link
    • Status: Already in master
  10. redis_session

    • Fix Markup object serialization in Flask sessions
    • Replaces default Flask-Session Redis interface with msgspec
    • PR: https://github.com/ckan/ckan/pull/8704
    • Status: Ongoing PR in CKAN core

Dependencies: - msgspec (for Redis session fix)

Note: - All fixes enabled by default - Disable individual fixes via config if needed - Merged fixes may be removed in future versions - Each fix linked to upstream CKAN PR

Requirements: - CKAN 2.10.0

Plugins to configure (ckan.ini)
core_fix
CKAN Settings (ckan.ini)
# ckanext.core_fix.disable_fix = dashboard_activity
DB migration to be executed
(not set)
<< back to Extensions