-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #719 from datacite/optional-event-facets
Make facets for v3 events API opt-in
- Loading branch information
Showing
22 changed files
with
9,325 additions
and
95 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: Pull request | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
services: | ||
memcached: | ||
image: memcached:1.4.31 | ||
ports: | ||
- 11211/udp | ||
mysql: | ||
image: mysql:5.7 | ||
env: | ||
MYSQL_DATABASE: datacite | ||
MYSQL_USER: root | ||
MYSQL_ALLOW_EMPTY_PASSWORD: "yes" | ||
ports: | ||
- 3306 | ||
elasticsearch: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:7.1.1 | ||
env: | ||
discovery.type: single-node | ||
ES_JAVA_OPTS: -Xms512m -Xmx512m | ||
ELASTIC_PASSWORD: changeme | ||
xpack.security.enabled: "false" | ||
http.cors.enabled: "true" | ||
http.cors.allow-origin: "*" | ||
ports: | ||
- 9200 | ||
env: | ||
MEMCACHE_SERVERS: "localhost:11211" | ||
MYSQL_HOST: "127.0.0.1" | ||
MYSQL_DATABASE: datacite | ||
MYSQL_USER: root | ||
ES_HOST: "localhost:9200" | ||
ELASTIC_PASSWORD: "changeme" | ||
SECRET_KEY_BASE: ${{ secrets.SECRET_KEY_BASE }} | ||
SESSION_ENCRYPTED_COOKIE_SALT: ${{ secrets.SESSION_ENCRYPTED_COOKIE_SALT }} | ||
JWT_PRIVATE_KEY: ${{ secrets.JWT_PRIVATE_KEY }} | ||
JWT_PUBLIC_KEY: ${{ secrets.JWT_PUBLIC_KEY }} | ||
MDS_USERNAME: ${{ secrets.MDS_USERNAME }} | ||
MDS_PASSWORD: ${{ secrets.MDS_PASSWORD }} | ||
AWS_REGION: ${{ secrets.AWS_REGION }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Ruby 2.6 | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: '2.6.x' | ||
- uses: actions/cache@v2 | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
- name: Install | ||
env: | ||
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }} | ||
run: | | ||
cp .env.build .env | ||
gem install bundler | ||
bundle config path vendor/bundle | ||
bundle install --jobs 4 --retry 3 | ||
sudo /etc/init.d/mysql start | ||
bundle exec rails db:setup RAILS_ENV=test | ||
- name: Lint and Test | ||
env: | ||
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }} | ||
ES_HOST: localhost:${{ job.services.elasticsearch.ports[9200] }} | ||
ELASTIC_PASSWORD: "changeme" | ||
MEMCACHE_SERVERS: "localhost:11211" | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
run: | | ||
bundle exec rubocop | ||
bundle exec rspec | ||
echo $? |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,7 +73,7 @@ | |
provider | ||
|
||
uid { SecureRandom.uuid } | ||
email { "[email protected]" } | ||
sequence(:email) { |n| "josiah#{n}@example.org" } | ||
given_name { "Josiah" } | ||
family_name { "Carberry" } | ||
role_name { ["voting"] } | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,7 +140,7 @@ | |
"uid,fabricaAccountId,fabricaId,email,firstName,lastName,type,createdAt,modifiedAt,deletedAt,isActive\n", | ||
) | ||
expect(csv[1]).to start_with( | ||
"#{contact.uid},UVA,UVA-[email protected],[email protected],Josiah,Carberry,voting", | ||
"#{contact.uid},UVA,UVA-#{contact.email},#{contact.email},Josiah,Carberry,voting", | ||
) | ||
end | ||
end | ||
|
Oops, something went wrong.