Skip to content
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

Merge to master: AgroPortal release 2.8.0 #4

Merged
merged 50 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
f04673d
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jan 2, 2023
2378976
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jan 2, 2023
05b48c3
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jan 2, 2023
3c1d799
update Gemfile to set gem branch's development
syphax-bouazzouni Jan 2, 2023
f55baf4
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jan 2, 2023
8dc2827
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jan 3, 2023
5c912a3
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jan 3, 2023
ddc8671
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jan 3, 2023
58c40b2
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jan 5, 2023
8db3481
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jan 20, 2023
fd8c50e
add option force re-archiving to archive_old_submissions script
syphax-bouazzouni Jun 14, 2023
80fb200
add request_store gem
syphax-bouazzouni Jun 14, 2023
0fbb8c9
remove the ontology deletion in the test_parse_submissions to re-use it
syphax-bouazzouni Jun 15, 2023
a0d53a7
Merge pull request #14 from ontoportal-lirmm/feature/zip-archived-sub…
syphax-bouazzouni Jun 15, 2023
380edd3
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jun 20, 2023
8918dde
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jul 20, 2023
77707c4
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jul 20, 2023
7be36ad
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jul 30, 2023
1e1d68f
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jul 31, 2023
4be0eca
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jul 31, 2023
af46521
add agroportal new model migration script
syphax-bouazzouni Jul 31, 2023
8b9869d
Merge branch 'development' into feature/new-agent-model-migration
syphax-bouazzouni Jul 31, 2023
1631ab5
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Aug 24, 2023
8355dbf
fix the attribute of type String migration to URI didn't want to update
syphax-bouazzouni Sep 7, 2023
43e0610
Merge remote-tracking branch 'origin/feature/new-agent-model-migratio…
syphax-bouazzouni Sep 7, 2023
32bc968
Merge branch 'development' into feature/new-agent-model-migration
syphax-bouazzouni Sep 7, 2023
7e81670
Merge pull request #15 from ontoportal-lirmm/feature/new-agent-model-…
syphax-bouazzouni Sep 7, 2023
98eb59b
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Sep 7, 2023
13d4661
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Sep 7, 2023
20c2a8f
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Sep 8, 2023
a41a686
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Sep 23, 2023
94d1240
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Nov 9, 2023
f5d4547
Merge branch 'master'
syphax-bouazzouni Dec 10, 2023
a2d88ee
Merge to Master: Release 2.1.1 - Migration tools and Archiving old su…
syphax-bouazzouni Dec 10, 2023
d424a03
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Dec 12, 2023
987fba3
update AgroPortal migration script to handle values xsd:DataType
syphax-bouazzouni Dec 10, 2023
1b300a8
Merge branch 'development'
syphax-bouazzouni Dec 16, 2023
155db7a
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Dec 16, 2023
53ad701
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Dec 20, 2023
8b9edab
Feature: Enhance Analaytics module to fetch Ontology visits, User vis…
syphax-bouazzouni Dec 27, 2023
3eb770b
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Dec 28, 2023
b1f6039
Merge branch 'master' into development
syphax-bouazzouni Dec 28, 2023
a3e06ab
Merge pull request #18 from ontoportal-lirmm/development
syphax-bouazzouni Dec 28, 2023
f741e77
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Dec 28, 2023
16fb0a1
fix the object analytics fetching after the new year change (#19)
syphax-bouazzouni Jan 1, 2024
f33a917
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jan 1, 2024
9ec0147
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Feb 8, 2024
2f31d13
Merge to master: Release 2.2.0 - Add index all data step to the proce…
syphax-bouazzouni May 22, 2024
5a6af32
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm May 23, 2024
eff3a0c
Merge branch 'master' into ecoportal-ontoportal-reset
syphax-bouazzouni May 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Git
#.git
.git
.github
.gitignore
# Logs
log/*
Expand All @@ -8,3 +9,9 @@ tmp/*
# Editor temp files
*.swp
*.swo
coverage
create_permissions.log
# Ignore generated test data
test/data/dictionary.txt
test/data/ontology_files/repo/**/*
test/data/tmp/*
42 changes: 42 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Docker Image CI

on:
release:
types: [published]

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: bioportal/ncbo_cron

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
build-args: |
RUBY_VERSION=2.7
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
50 changes: 31 additions & 19 deletions .github/workflows/ruby-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,37 @@ on:
jobs:
test:
strategy:
fail-fast: false
matrix:
backend: ['ruby', 'ruby-agraph'] # ruby runs tests with 4store backend and ruby-agraph runs with AllegroGraph backend
goo-slice: [ '20', '100', '500' ]
ruby-version: [ '2.7' ]
triplestore: [ 'fs', 'ag', 'vo', 'gb' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: copy config.rb file from template
run: cp config/config.test.rb config/config.rb
- name: Build docker-compose
working-directory: ./test
run: docker-compose build
- name: Run unit tests
working-directory: ./test
run: |
ci_env=`bash <(curl -s https://codecov.io/env)`
docker-compose run $ci_env -e CI --rm ${{ matrix.backend }} bundle exec rake test TESTOPTS='-v'
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
flags: unittests
verbose: true
fail_ci_if_error: false # optional (default = false)

- uses: actions/checkout@v3
- name: create config.rb file
run: cp config/config.rb.sample config/config.rb
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get -y install raptor2-utils
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run unit tests
# unit tests are run inside a container
# http://docs.codecov.io/docs/testing-with-docker
run: |
ci_env=`bash <(curl -s https://codecov.io/env)`
GOO_SLICES=${{ matrix.goo-slice }} bundle exec rake test:docker:${{ matrix.triplestore }} TESTOPTS="-v"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
flags: unittests
verbose: true
fail_ci_if_error: false # optional (default = false)
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ config/config.rb
config/appliance.rb
config/config_*.rb
config/*.p12
config/*.json
data/
projectFilesBackup/
.ruby-version
repo*
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ COPY Gemfile* *.gemspec /srv/ontoportal/ncbo_cron/

WORKDIR /srv/ontoportal/ncbo_cron

# set rubygem and bundler to the last version supported by ruby 2.7
# remove version after ruby v3 upgrade
RUN gem update --system '3.4.22'
RUN gem install bundler -v '2.4.22'
RUN gem update --system
RUN gem install bundler
ENV BUNDLE_PATH=/srv/ontoportal/bundle
RUN bundle install

COPY . /srv/ontoportal/ncbo_cron
RUN cp /srv/ontoportal/ncbo_cron/config/config.rb.sample /srv/ontoportal/ncbo_cron/config/config.rb

CMD ["/bin/bash"]
29 changes: 17 additions & 12 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,49 @@ source 'https://rubygems.org'

gemspec

gem 'faraday', '~> 1.9'
gem 'activesupport', '~> 3.2'
gem 'ffi', '~> 1.15.5'
gem 'ffi'

# This is needed temporarily to pull the Google Universal Analytics (UA)
# data and store it in a file. See (bin/import_google_ua_analytics_data)
# The ability to pull this data from Google will cease on July 1, 2024
gem "google-apis-analytics_v3"

gem 'google-analytics-data'
gem 'mail', '2.6.6'
gem 'minitest', '< 5.0'
gem 'multi_json'
gem 'oj', '~> 2.0'
gem 'oj', '~> 3.0'
gem 'parseconfig'
gem 'pony'
gem 'pry'
gem 'rake'
gem 'redis'
gem 'rest-client'
gem 'sys-proctable'

gem 'request_store'
gem 'parallel'
gem 'json-ld'
gem 'activesupport', '~> 3.2.22'
# Monitoring
gem 'cube-ruby', require: 'cube'

gem 'goo', git: 'https://github.com/ontoportal-lirmm/goo.git', branch: 'ecoportal'
gem 'sparql-client', github: 'ontoportal-lirmm/sparql-client', branch: 'master'
gem 'goo', github: 'ontoportal-lirmm/goo', branch: 'development'
gem 'sparql-client', github: 'ontoportal-lirmm/sparql-client', branch: 'development'
gem 'ncbo_annotator', github: 'ontoportal-lirmm/ncbo_annotator', branch: 'development'
gem 'ontologies_linked_data', git: 'https://github.com/lifewatch-eric/ontologies_linked_data.git', branch: 'master'
gem 'ncbo_annotator', github: 'ontoportal-lirmm/ncbo_annotator', branch: 'master'

group :development do
# bcrypt_pbkdf and ed35519 is required for capistrano deployments when using ed25519 keys; see https://github.com/miloserdow/capistrano-deploy/issues/42
gem 'bcrypt_pbkdf', '>= 1.0', '< 2.0', require: false
gem 'capistrano', '~> 3', require: false
gem 'bcrypt_pbkdf', '>= 1.0', '< 2.0', require: false
gem 'capistrano-bundler', require: false
gem 'capistrano-locally', require: false
gem 'capistrano-rbenv', require: false
gem 'ed25519', '>= 1.2', '< 2.0', require: false
end


# Testing
group :test do
gem 'email_spec'
gem 'minitest', '< 5.0'
gem 'simplecov'
gem 'simplecov-cobertura' # for codecov.io
gem 'test-unit-minitest'
Expand Down
Loading
Loading