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

curationexperts / cypripedium / 5cada286-ece5-4934-b56b-b4c4118171f4
98%
main: 98%

Build:
Build:
LAST BUILD BRANCH: upgrade_cleanup
DEFAULT BRANCH: main
Ran 23 Oct 2024 09:46PM CUT
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:41PM CUT coverage: 98.115% (+3.6%) from 94.505%
5cada286-ece5-4934-b56b-b4c4118171f4

push

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.

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 5cada286-ece5-4934-b56b-b4c4118171f4.1 23 Oct 2024 09:46PM CUT 85
98.11
Source Files on build 5cada286-ece5-4934-b56b-b4c4118171f4
  • Tree
  • List 85
  • Changed 3
  • Source Changed 0
  • Coverage Changed 1
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
76.92
...rers/hyrax/renderers/license_attribute_renderer.rb33 13 10 3 1.0
83.33
config/exception_middleware.rb16 6 5 1 16.0
88.89
app/helpers/work_zips_helper.rb16 9 8 1 3.0
90.0
app/renderers/hyrax/renderers/markdown_renderer.rb22 10 9 1 5.0
90.2
app/controllers/creators_controller.rb101 51 46 5 3.0
91.67
app/lib/rdf/markdown/literal.rb43 12 11 1 1.0
92.0
config/initializers/hyrax.rb225 25 23 2 1.0
95.0
app/models/user.rb44 20 19 1 13.0
96.3
app/presenters/cypripedium/citation_formatter.rb148 54 52 2 10.0
97.5
app/lib/hyrax/work_bag.rb72 40 39 1 5.0
Showing 1 to 10 of 85 entries
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 9
  • Next
  • ►
    97.85
    app/
  • ►
    98.88
    config/
  • Back to Repo
  • CircleCI Build #5CADA286...
  • 2293b14a on github
  • Prev Build on main (#CB503BA3...)
  • Next Build on simplify_fits (#B6E4549F...)
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

© 2025 Coveralls, Inc