databank-2 is the Rails application for Illinois Data Bank dataset management and publication workflows, including authentication, metadata publishing, and preservation storage integrations.
- Install dependencies and initialize local app state:
bin/setup- Start local development services:
bin/dev- Run the test suite:
bundle exec rspecOn the dataset edit form, reorder individual or organizational authors with the up/down arrow buttons. The first author's up arrow and last author's down arrow are disabled; both are disabled for a single author. These states update when authors are added, removed, or moved. Drag-and-drop ordering is not offered.
Creator email addresses may be left blank when saving drafts. Every creator must have an email address before publication. The form validates the format of non-empty email fields.
A draft may also be saved without a selected primary contact. One primary contact must be selected before publication. The Email and Primary Contact asterisks indicate publication requirements, not requirements for saving a draft. When a primary contact is selected, Save & Continue saves that selection on the creator record, including newly added authors.
Dataset owners, editors, and curators can generate and revoke a private sharing
link from the dataset page. Anyone with the link can read the metadata, preview
files, and download files without signing in, but cannot edit the dataset.
Links use a separate ShareCode, not the Token used by command-line upload
tools. The "has sharing link" badge indicates an effective, unexpired ShareCode.
Links expire 12 months after creation, are revoked when the dataset's files
become public, and remain usable during an embargo. Deleting a link immediately
invalidates it; generating another produces a new code. Sharing access is
dataset-scoped and must accompany each request as the code query parameter.
After deploying this feature, run bin/rails db:migrate. API clients can use
POST /datasets/:id/share and DELETE /datasets/:id/remove_sharing_link;
JSON responses contain private_share_link. Both endpoints require edit access.
- CI parity checks:
bin/ci- Ruby lint:
bin/rubocop -f github- Security scans:
bin/brakeman --no-pager
bin/bundler-audit
bin/importmap audit- App code: app/
- Framework and runtime config: config/
- Tests/specs: spec/, test/
- Build and developer scripts: bin/, script/
- Operational and integration docs: docs/
Developer-facing integration configuration and operational details are documented in docs/:
- Shibboleth integration
- Illinois Experts integration
- DataCite integration
- Medusa integration
- Ingest events integration
- External delivery audit
- Globus integration
- Archive extractor integration
Migration runbooks, import/export commands, and binary storage migration notes are documented in:
Testing and coverage guidance is documented in:
Pre-push checks are documented in:
Deployment runbook details are documented in:
- Deployment and config contract checks: Deploy config contract
- Local quality gates before push: Local pre-push checklist
- Testing and coverage expectations: Testing and coverage
- Migration and cutover imports: Migration pipelines
- Integration-specific behavior and config: see the links under Integration Documentation