Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
ac090fa
refactor(sql): Merge `import` table into `entity` table
kellnerd Jul 29, 2024
2c5b3ef
refactor(sql): Give import tables and columns more descriptive names
kellnerd Jul 29, 2024
b9fa9fb
chore(sql): Drop pointless foreign key referencing its own column
kellnerd Jul 29, 2024
4953027
refactor(sql): Give the two `import_metadata` BBID columns verbose names
kellnerd Jul 29, 2024
35979ec
chore(sql): Port import schema changes to the migration files
kellnerd Jul 29, 2024
8210c10
refactor(imports): Adapt to the latest schema/ORM changes
kellnerd Aug 19, 2024
13d2ad4
chore(sql): Consistently indent using tabs
kellnerd Aug 22, 2024
66aae22
feat(sql): Combine import views with regular entity views
kellnerd Aug 22, 2024
169704b
fix(sql): Reorder dependent view definitions
kellnerd Aug 22, 2024
e107640
fix: Display pending imports via the regular entity pages
kellnerd Aug 22, 2024
cb6f32e
fix: Hide "Add Edition/Work" buttons and CB modal for imported entities
kellnerd Aug 22, 2024
36a2acb
feat(server): Handle pending imports with standard entity loader
kellnerd Aug 22, 2024
b33b4bc
fix: Show the proper footer for imported entities
kellnerd Aug 22, 2024
be3563d
refactor: Rename `entity.import` prop to `importMetadata`
kellnerd Sep 12, 2024
56aa9d5
feat(server): Load all import metadata
kellnerd Sep 12, 2024
7691a9d
feat(server): Add `/approve` route to regular author router
kellnerd Sep 12, 2024
3541746
refactor(imports): Use rewritten approval function to preserve BBID
kellnerd Oct 28, 2024
1c1376c
refactor(server): Adapt import discard routes for regular entity router
kellnerd Nov 1, 2024
6c4d2b2
feat(server): Error when attempting to approve/discard a regular entity
kellnerd Nov 1, 2024
34c39a5
fix(imports): Also update property name in the client-side controller
kellnerd Nov 1, 2024
ac0212c
fix: Address React property type warning
kellnerd Nov 1, 2024
c7fede4
feat(imports): Link to unified entity routes for recent imports
kellnerd Nov 1, 2024
a9751a5
chore: Make linter happy
kellnerd Nov 1, 2024
9dacdfd
feat(server): Add approve and discard routes to all other entity routers
kellnerd Nov 1, 2024
614e8d4
fix(server): Catch and handle entity editor form submission errors
kellnerd Nov 1, 2024
baf462e
fix: Address more React property type warnings
kellnerd Nov 1, 2024
b2c0577
feat(imports): Allow editing of pending entities ("Edit & Approve")
kellnerd Nov 1, 2024
9dd8b51
fix: Only create a new revision if there are actual changes
kellnerd Nov 2, 2024
b206930
chore(ts): Add a few more ORM types where it is trivially possible
kellnerd Nov 2, 2024
d9830e5
chore: Delete now unused import pages/routes/controllers and utils
kellnerd Nov 2, 2024
163cbfd
Merge branch 'import-entities' into pr/1136
MonkeyDo Nov 19, 2024
f0dbc76
Update yarn lockfile
MonkeyDo Nov 19, 2024
1ff9b76
SQL: Add credit_section column to entity import tables and views
MonkeyDo Feb 28, 2025
50ced83
Move isImport check
MonkeyDo Feb 28, 2025
7f74f8a
Update bookbrainz-data package
MonkeyDo Mar 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@fortawesome/free-brands-svg-icons": "^6.4.2",
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@fortawesome/react-fontawesome": "^0.1.11",
"bookbrainz-data": "5.1.1",
"bookbrainz-data": "^5.3.0",
"chart.js": "^2.9.4",
"chartjs-adapter-date-fns": "^1.0.0",
"classnames": "^2.3.2",
Expand Down
8 changes: 8 additions & 0 deletions sql/migrations/import/down.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,21 @@ DROP VIEW IF EXISTS bookbrainz.publisher_import;
DROP VIEW IF EXISTS bookbrainz.series_import;
DROP VIEW IF EXISTS bookbrainz.work_import;

-- Only drop these tables if the database contains no pending imports!
DROP TABLE IF EXISTS bookbrainz.author_import_header;
DROP TABLE IF EXISTS bookbrainz.edition_import_header;
DROP TABLE IF EXISTS bookbrainz.edition_group_import_header;
DROP TABLE IF EXISTS bookbrainz.publisher_import_header;
DROP TABLE IF EXISTS bookbrainz.series_import_header;
DROP TABLE IF EXISTS bookbrainz.work_import_header;
DROP TABLE IF EXISTS bookbrainz.discard_votes;
DROP TABLE IF EXISTS bookbrainz.import_metadata;
DROP TABLE IF EXISTS bookbrainz.external_source;

-- Only drop this column if the database contains no pending imports!
ALTER TABLE entity DROP COLUMN IF EXISTS is_import;

-- Legacy tables from an earlier version of the import schema.
DROP TABLE IF EXISTS bookbrainz.link_import;
DROP TABLE IF EXISTS bookbrainz.origin_source;
DROP TABLE IF EXISTS bookbrainz.import;
Expand Down
329 changes: 251 additions & 78 deletions sql/migrations/import/up.sql

Large diffs are not rendered by default.

Loading
Loading