Add guided_import_enabled config toggle#1153
Merged
laritakr merged 2 commits intobulkrax-v2-importerfrom Mar 26, 2026
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
Bulkrax.config.guided_import_enabledto control whether the guided import button appears in the importers index. Defaults tofalse, configurable viaBULKRAX_GUIDED_IMPORTERenv var.Changes
lib/bulkrax.rb— newguided_import_enabledconfig attribute, default fromENV['BULKRAX_GUIDED_IMPORTER']app/views/bulkrax/importers/index.html.erb— button wrapped in config checkRoutes and controller remain active — this only controls UI visibility.
Usage
# Environment variable BULKRAX_GUIDED_IMPORTER=false