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

curationexperts / epigaea / 2099
90%

Build:
DEFAULT BRANCH: master
Ran 14 Dec 2017 04:10AM UTC
Jobs 1
Files 181
Run time 10s
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

pending completion
2099

Pull #766

travis-ci

web-flow
Allow setting file types on file_sets within a work via XmlImport

Supports setting filetypes in XML batch imports by passing `type="transcript"`
as an attribute on an XML file.

Callers to the Actor Stack's `#create` method can now pass a filename to each of
the `:transcript`, `:representative`, and `:thumbnail` to force the stack to set
these roles when an item is attached to the work.

Unfortunately, we need to overwrite significant parts of the Hyrax ActorStack to
achieve this goal. The attach files part of the stack is run in a background
job, making it challenging to extend. We create customized versions of a
standard Hyrax actor (`CreateWithFilesAndPassTypesActor`) and a job to handle
the setting (`AttachTypedFilesToWorkJob`). The first allows passthrough of the
required arguments to the job. These arguments must be deleted before the work`s
actor is called to prevent errors on the unknown attributes. The Job overwrite
ensures that the roles are set before the `FileSetActor` (which is, confusingly,
neither an actor, nor in the stack) runs and tries to use its own setting
strategies.

ImportRecord is extended to recognize file roles from the `type` XML attribute,
and the import service passes these roles to the actor stack, triggering the
above setting.

Closes #632.
Pull Request #766: Allow setting file types on file_sets within a work via XmlImport

2448 of 2714 relevant lines covered (90.2%)

85.11 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2099.1 (2.3.4) 14 Dec 2017 04:10AM UTC 0
90.2
Travis Job 2099.1
Source Files on build 2099
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2099
  • Pull Request #766
  • PR Base - master (#2090)
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