-
Notifications
You must be signed in to change notification settings - Fork 118
Adding Research Outputs (DB and model components only) #2739
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
Conversation
Pushing base DMPRoadmap code into new roadmap-main branch
…nto DMPRoadmap-development
ebe85e2 to
6083af4
Compare
…into research-outputs
Syncing with DMPRoadmap
add new mime_types Rake task to upgrade task reverted sym links reverted gitignore changes reverted blank lines added to bottom of a few configs reverted issue with open_aire config minor text change to comment in open_aire initializer to force rubocop fix Remove blank line added to open_aire initializer by Atom to fix rubocop
…into research-outputs
…into research-outputs
| puts "\n== Copying sample files ==" | ||
| %w[ | ||
| config/database.yml.sample | ||
| config/initializers/wicked_pdf.rb.example | ||
| ].each do |file| | ||
| new_file .gsub('.sample', '').gsub('.example', '') | ||
| cp file, new_file unless File.exist?(new_file) | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for updating this.
config/initializers/open_aire.rb
Outdated
| # frozen_string_literal: true | ||
|
|
||
| # These configuration settings are used to communicate with the | ||
| # Open Aire Research Project Registry API. For more information about | ||
| # the API and to verify that your configuration settings are correct, | ||
| Rails.configuration.x.open_aire.api_base_url = "https://api.openaire.eu/" | ||
| # The api_url should contain `%s. This is where the funder is appended! | ||
| Rails.configuration.x.open_aire.search_path = "projects/dspace/%s/ALL/ALL" | ||
| Rails.configuration.x.open_aire.default_funder = "H2020" | ||
| Rails.configuration.x.open_aire.active = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which initializer should we be using for open_aire?
The one in external_apis or this one in initializers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops. the one in config/initializers/external_apis/ is the correct one. Will remove this
* sym linked necessary files and ignored others * add research_outputs and mime_types * add new mime_types Rake task to upgrade task * reverted sym links * reverted gitignore changes * reverted blank lines added to bottom of a few configs * reverted issue with open_aire config * minor text change to comment in open_aire initializer to force rubocop fix * Remove blank line added to open_aire initializer by Atom to fix rubocop * add research_outputs and mime_types add new mime_types Rake task to upgrade task reverted sym links reverted gitignore changes reverted blank lines added to bottom of a few configs reverted issue with open_aire config minor text change to comment in open_aire initializer to force rubocop fix Remove blank line added to open_aire initializer by Atom to fix rubocop * updated schema date in schema.rb * removed dupplicate copy of open_aire initializer
Part of #2738.
Changes proposed in this PR:
mime_typesandresearch_outputsbin/setupto run the new Rake task