• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

curationexperts / cypripedium / b6e4549f-771f-4e05-a890-2ddfed266c4a
98%
main: 99%

Build:
Build:
LAST BUILD BRANCH: dependabot/bundler/uri-1.0.4
DEFAULT BRANCH: main
Ran 23 Oct 2024 09:47PM UTC
Jobs 1
Files 85
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Oct 2024 09:43PM UTC coverage: 98.115% (+3.6%) from 94.505%
b6e4549f-771f-4e05-a890-2ddfed266c4a

Pull #618

circleci

mark-dce
Simplify overrides for using FITS servlet

**ISSUE**
The application copied all of the Hydra::Works::CharacterizationService
class in order to conditionally override one line in the `#extract_metadata`
method:

```
  def extract_metadata(content)
    Hydra::FileCharacterization.characterize(content, file_name, tools) do |cfg|
      cfg[:fits] = Hydra::Derivatives.fits_path
    end
  end
```

Gets overriden if the FITS servled URL is configured
```
  def extract_metadata(content)
    if ENV['FITS_SERVLET_URL']
      Hydra::FileCharacterization.characterize(content, file_name, :fits_servlet)
    else
      Hydra::FileCharacterization.characterize(content, file_name, :fits) do |cfg|
        cfg[:fits] = Hydra::Derivatives.fits_path
      end
    end
  end
```

**RESOLUTION**
We can actually push the check for the servlet downstream and override less code by
modifying the `#command` method in the Hydra::FileCharacterization::Characterizers::Fits
characterizer class.

This allows us to specifically target and test only the code we want to modify,
without pulling extra methods or classes that we don't need (or want) to override.
Pull Request #618: Simplify overrides for using FITS servlet

9 of 9 new or added lines in 2 files covered. (100.0%)

1041 of 1061 relevant lines covered (98.11%)

8.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 b6e4549f-771f-4e05-a890-2ddfed266c4a.1 23 Oct 2024 09:47PM UTC 0
98.11
Source Files on build b6e4549f-771f-4e05-a890-2ddfed266c4a
Detailed source file information is not available for this build.
  • Back to Repo
  • CircleCI Build #B6E4549F...
  • Pull Request #618
  • PR Base - main (#CB503BA3...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc