Skip to content

About

Hotwire/Tailwind reimplementation of all databank functionality

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

366 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Illinois Data Bank databank-2

Project Overview

databank-2 is the Rails application for Illinois Data Bank dataset management and publication workflows, including authentication, metadata publishing, and preservation storage integrations.

Quick Start

  1. Install dependencies and initialize local app state:
bin/setup
  1. Start local development services:
bin/dev
  1. Run the test suite:
bundle exec rspec

Creator ordering

On 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.

Private dataset sharing

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.

Common Commands

  • CI parity checks:
bin/ci
  • Ruby lint:
bin/rubocop -f github
  • Security scans:
bin/brakeman --no-pager
bin/bundler-audit
bin/importmap audit

Repository Map

  • App code: app/
  • Framework and runtime config: config/
  • Tests/specs: spec/, test/
  • Build and developer scripts: bin/, script/
  • Operational and integration docs: docs/

Integration Documentation

Developer-facing integration configuration and operational details are documented in docs/:

Migration Pipelines (Initial Implementation)

Migration runbooks, import/export commands, and binary storage migration notes are documented in:

Testing

Testing and coverage guidance is documented in:

Pre-Push Checklist

Pre-push checks are documented in:

Demo-First Capistrano Deploy Runbook

Deployment runbook details are documented in:

Troubleshooting Links

About

Hotwire/Tailwind reimplementation of all databank functionality

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages