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

Feature: Add federation tests #918

Merged
merged 14 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
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
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ gem 'iso-639', '~> 0.3.6'
gem 'countries', '~> 5.7'

# Custom API client
gem 'ontologies_api_client', git: 'https://github.com/ontoportal-lirmm/ontologies_api_ruby_client.git', branch: 'development'
gem 'ontologies_api_client', git: 'https://github.com/ontoportal-lirmm/ontologies_api_ruby_client.git', branch: 'fix/federation-requests-timeout'
Bilelkihal marked this conversation as resolved.
Show resolved Hide resolved
# Ruby 2.7.8 pinned gems (to remove when migrating to Ruby >= 3.0)

gem 'ffi', '~> 1.16.3'
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
GIT
remote: https://github.com/ontoportal-lirmm/ontologies_api_ruby_client.git
revision: 7423b46ff6fa7e5ef0f1d36548f7c04466939f71
branch: development
revision: ba4e729462c8887d744ca1cbccfdd96da5947328
branch: fix/federation-requests-timeout
specs:
ontologies_api_client (2.2.0)
activesupport (~> 7.0.4)
excon
excon (= 0.112.0)
faraday
faraday-excon (~> 2.0.0)
faraday-multipart
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/multi_languages_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def main_language_label(label)
end

# @param label String | Array | OpenStruct
def display_in_multiple_languages(label)
def display_in_multiple_languages(label, show_max: 5, style_as_badge: false)
Bilelkihal marked this conversation as resolved.
Show resolved Hide resolved
if label.blank?
return render Display::AlertComponent.new(message: t('ontology_details.concept.no_preferred_name_for_selected_language'),
type: "warning",
Expand Down
Loading
Loading