-
Notifications
You must be signed in to change notification settings - Fork 171
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
Don't require file_public_base_url to be set manually #4205
Comments
I remember at the time this was done we were very annoyed that it was the best solution we could come up with, but it's likely that if we revisit it we can come up with something better. Possibly we were being too stubborn at the time about not using Drupal-specific paradigms in the API or Harvest specs like "public://"? But it seems like yes you should be able to put either an absolute file path or a public:// url in a harvest and it should work. |
The only place where I experimented with commenting out the It turns out we might not actually need this setting to be explicitly set before showing sample content. Some git archaeology tells us that the comment about In terms of testing, Recommendations:
|
@paul-m I agree with the first three recommendations, but I think the ResourceImporter is potentially useful for other default content modules people might implement for their own sites, and also is one of the few examples of a transform class, so I would keep it where it is. |
Review question from @janette Does it hurt to remove the config? |
Feature Description
Every new DKAN site requires file_public_base_url to be set with the full URL of the site if sample content is to be created.
Detailed Feature Description
If I understand the issue, it is because we use a harvest to create the sample content, and that harvest works by downloading remotely, but sites don't always know their own URL when called from the command line?
Problem and Motivation
This is a paper cut that can trip up users and adds steps to the setup process.
Potential Benefits
Makes it easier to test and deploy new DKAN sites.
Target Audience
Possible Implementation
Not sure what the easiest approach, but I think for a full fix we need to enable sites to harvest from a local file path/uri (without redownloading it), at least when called programmatically.
Additional Context
No response
The text was updated successfully, but these errors were encountered: