Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version #70

Merged
merged 45 commits into from
Jan 16, 2025
Merged
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
0b66a62
Match authors to openalex schema
alepbloyd Sep 26, 2024
8dc71b9
AuthorsIds spec
alepbloyd Sep 26, 2024
9d75972
Add instutions relationships
alepbloyd Sep 26, 2024
d9024ba
temporarily remove nodes and edges, add work relationships
alepbloyd Sep 26, 2024
f4a8e50
Add models to match openalex db
alepbloyd Sep 30, 2024
a72af23
Add db migrations to match openalex db
alepbloyd Sep 30, 2024
76f6e2e
Add model tests
alepbloyd Sep 30, 2024
142ceea
Add concepts_ancestors
alepbloyd Sep 30, 2024
dc5acec
Add load institutions, institutions_geos, institutions_ids rake tasks
alepbloyd Oct 2, 2024
014f429
change migrations to use bigint fields
alepbloyd Oct 2, 2024
5897962
update models for data import
alepbloyd Oct 3, 2024
b547584
start reworking graphql, institutions
alepbloyd Oct 4, 2024
5b08a64
start to rework model tests
alepbloyd Oct 4, 2024
83bf2d9
work on topics/works relationships
alepbloyd Oct 4, 2024
858368f
Add data_import rake tasks
alepbloyd Oct 16, 2024
a94386d
Add migrations
alepbloyd Oct 16, 2024
73dd524
Start of reworking tests
alepbloyd Oct 16, 2024
91fe7d9
update gemfile
alepbloyd Oct 16, 2024
96a37c4
Add addition gql types
alepbloyd Oct 16, 2024
bb571cc
temp remove user context for development
alepbloyd Oct 16, 2024
ad2f2f7
temp db yml and routes updates
alepbloyd Oct 16, 2024
83b4d8c
Add topics import
alepbloyd Oct 17, 2024
36d1c0c
Migrations and models for work-author-institution relationships
alepbloyd Oct 30, 2024
13e2f2c
Reworking migrations
alepbloyd Nov 11, 2024
b5d4614
Reworking loading rake tasks
alepbloyd Nov 11, 2024
23aa897
Updated migrations for full data snapshot
alepbloyd Dec 4, 2024
d07f8ba
Update data_import rake tasks
alepbloyd Dec 4, 2024
669edc9
Update models for full snapshot
alepbloyd Dec 4, 2024
33b98f5
Fix many-to-many self referrential join for works/citations/references
alepbloyd Dec 5, 2024
d021170
update author model with author_openalex_id
alepbloyd Dec 5, 2024
4dbbd5a
Remove _api from schema name
alepbloyd Dec 5, 2024
915a2e9
Start of reworking gql types
alepbloyd Dec 6, 2024
45f6a8b
update worktype
alepbloyd Dec 6, 2024
7eb78ba
new generated types, need to pare back
alepbloyd Dec 6, 2024
c8eb308
addition author and institution indexing
alepbloyd Dec 18, 2024
babe356
updated schema
alepbloyd Dec 18, 2024
a15e559
remove concepts models
alepbloyd Dec 19, 2024
8498d5c
Remove works_concept and works_mesh models
alepbloyd Dec 19, 2024
2459280
add topics
alepbloyd Dec 19, 2024
997f3cc
work_topics migration
alepbloyd Dec 19, 2024
de3d2b3
Fix all text -> bool castings resulting in false
alepbloyd Jan 2, 2025
1482675
rename to bookworm
alepbloyd Jan 2, 2025
4eeb083
Work on frontend simplification and connection with backend
alepbloyd Jan 16, 2025
0d8490f
misc other fixes for loading openalex snapshot version
alepbloyd Jan 16, 2025
6b952f2
Merge branch 'loading-openalex-snapshot' of github.com:gwu-libraries/…
alepbloyd Jan 16, 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
Prev Previous commit
Next Next commit
start to rework model tests
alepbloyd committed Oct 4, 2024
commit 5b08a644bfd5b54d64f4a1a500a4c8e4d8d4c32d
2 changes: 1 addition & 1 deletion rails/spec/models/author_spec.rb
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
describe 'relationships' do
# it { should have_many :author_nodes }
it { should have_one :authors_ids }
it { should have_one :authors_counts_by_year }
it { should have_many :authors_counts_by_year }

it { should have_many :works_authorships }
it { should have_many(:institutions).through(:works_authorships) }
2 changes: 1 addition & 1 deletion rails/spec/models/authors_counts_by_year_spec.rb
Original file line number Diff line number Diff line change
@@ -6,4 +6,4 @@
describe 'relationships' do
it { should belong_to :author }
end
end
end
2 changes: 1 addition & 1 deletion rails/spec/models/authors_ids_spec.rb
Original file line number Diff line number Diff line change
@@ -12,4 +12,4 @@
describe 'relationships' do
it { should belong_to :author }
end
end
end
5 changes: 3 additions & 2 deletions rails/spec/models/concept_spec.rb
Original file line number Diff line number Diff line change
@@ -3,14 +3,15 @@
require 'rails_helper'

RSpec.describe Concept, type: :model do

describe 'relationships' do
it { should have_many :works_concepts }
it { should have_many(:works).through(:works_concepts) }
it { should have_one :concepts_counts_by_year }
it { should have_one :concepts_ids }

it { should have_many(:concepts_related_concepts) }
it { should have_many(:related_concepts).through(:concepts_related_concepts) }
it do
should have_many(:related_concepts).through(:concepts_related_concepts)
end
end
end
2 changes: 1 addition & 1 deletion rails/spec/models/concepts_counts_by_year_spec.rb
Original file line number Diff line number Diff line change
@@ -6,4 +6,4 @@
describe 'relationships' do
it { should belong_to :concept }
end
end
end
2 changes: 1 addition & 1 deletion rails/spec/models/concepts_ids.rb
Original file line number Diff line number Diff line change
@@ -6,4 +6,4 @@
describe 'relationships' do
it { should belong_to :concept }
end
end
end
10 changes: 7 additions & 3 deletions rails/spec/models/institution_spec.rb
Original file line number Diff line number Diff line change
@@ -4,9 +4,13 @@

RSpec.describe Institution, type: :model do
describe 'relationships' do
it { should have_one :institutions_counts_by_year }
it { should have_many :institutions_counts_by_year }
it { should have_one :institutions_ids }
it { should have_one :institutions_geo }
it { should have_many(:associated_institutions).through(:institutions_associated_institutions) }
it do
should have_many(:associated_institutions).through(
:institutions_associated_institutions
)
end
end
end
end
2 changes: 1 addition & 1 deletion rails/spec/models/institutions_counts_by_year_spec.rb
Original file line number Diff line number Diff line change
@@ -6,4 +6,4 @@
describe 'relationships' do
it { should belong_to :institution }
end
end
end
2 changes: 1 addition & 1 deletion rails/spec/models/institutions_geo_spec.rb
Original file line number Diff line number Diff line change
@@ -6,4 +6,4 @@
describe 'relationships' do
it { should belong_to :institution }
end
end
end
2 changes: 1 addition & 1 deletion rails/spec/models/institutions_ids_spec.rb
Original file line number Diff line number Diff line change
@@ -6,4 +6,4 @@
describe 'relationships' do
it { should belong_to :institution }
end
end
end
10 changes: 10 additions & 0 deletions rails/spec/models/publisher_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Publisher, type: :model do
describe 'relationships' do
it { should have_one :publishers_ids }
it { should have_many :publishers_counts_by_year }
end
end
9 changes: 9 additions & 0 deletions rails/spec/models/publishers_counts_by_year_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe PublishersCountsByYear, type: :model do
describe 'relationships' do
it { should belong_to :publisher }
end
end
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@

require 'rails_helper'

RSpec.describe VenuesCountsByYear, type: :model do
RSpec.describe PublishersIds, type: :model do
describe 'relationships' do
it { should belong_to :venue }
it { should belong_to :publisher }
end
end
end
12 changes: 0 additions & 12 deletions rails/spec/models/venue_spec.rb

This file was deleted.

9 changes: 0 additions & 9 deletions rails/spec/models/venues_ids_spec.rb

This file was deleted.

2 changes: 1 addition & 1 deletion rails/spec/models/works_biblio_spec.rb
Original file line number Diff line number Diff line change
@@ -6,4 +6,4 @@
describe 'relationships' do
it { should belong_to :work }
end
end
end
2 changes: 1 addition & 1 deletion rails/spec/models/works_concept_spec.rb
Original file line number Diff line number Diff line change
@@ -7,4 +7,4 @@
it { should belong_to :work }
it { should belong_to :concept }
end
end
end
2 changes: 1 addition & 1 deletion rails/spec/models/works_ids_spec.rb
Original file line number Diff line number Diff line change
@@ -6,4 +6,4 @@
describe 'relationships' do
it { should belong_to :work }
end
end
end
2 changes: 1 addition & 1 deletion rails/spec/models/works_mesh_spec.rb
Original file line number Diff line number Diff line change
@@ -6,4 +6,4 @@
describe 'relationships' do
it { should belong_to :work }
end
end
end
2 changes: 1 addition & 1 deletion rails/spec/models/works_open_access_spec.rb
Original file line number Diff line number Diff line change
@@ -6,4 +6,4 @@
describe 'relationships' do
it { should belong_to :work }
end
end
end