Skip to content

Add guided_import_enabled config toggle#1153

Merged
laritakr merged 2 commits intobulkrax-v2-importerfrom
feature/guided-import-config
Mar 26, 2026
Merged

Add guided_import_enabled config toggle#1153
laritakr merged 2 commits intobulkrax-v2-importerfrom
feature/guided-import-config

Conversation

@orangewolf
Copy link
Copy Markdown
Member

@orangewolf orangewolf commented Mar 26, 2026

Summary

Adds Bulkrax.config.guided_import_enabled to control whether the guided import button appears in the importers index. Defaults to false, configurable via BULKRAX_GUIDED_IMPORTER env var.

Changes

  • lib/bulkrax.rb — new guided_import_enabled config attribute, default from ENV['BULKRAX_GUIDED_IMPORTER']
  • app/views/bulkrax/importers/index.html.erb — button wrapped in config check

Routes and controller remain active — this only controls UI visibility.

Usage

# Initializer
Bulkrax.config do |c|
  c.guided_import_enabled = false
end
# Environment variable
BULKRAX_GUIDED_IMPORTER=false

…env var

Adds Bulkrax.config.guided_import_enabled to control whether the guided
import button appears in the importers index UI. The default value is
derived from the BULKRAX_GUIDED_IMPORTER environment variable (defaults
to true when unset). Routes and controller remain active — this only
controls button visibility.

Usage:
  # In initializer
  Bulkrax.config do |c|
    c.guided_import_enabled = false
  end

  # Or via environment
  BULKRAX_GUIDED_IMPORTER=false
@laritakr laritakr added the ignore-for-release ignore this for release notes label Mar 26, 2026
@laritakr laritakr merged commit 5384d15 into bulkrax-v2-importer Mar 26, 2026
9 of 10 checks passed
@laritakr laritakr deleted the feature/guided-import-config branch March 26, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore-for-release ignore this for release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants