Skip to content

Commit

Permalink
- Add relation_uri to related item ids for all items (including EU ma…
Browse files Browse the repository at this point in the history
…terial)
  • Loading branch information
j-corry committed Nov 25, 2024
1 parent 2820c95 commit 3c81fee
Show file tree
Hide file tree
Showing 5 changed files with 1,042 additions and 969 deletions.
2 changes: 1 addition & 1 deletion app/models/content_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def notes
end

def related_item_ids
get_all_ids_from('relation_t')
combine_fields(get_all_ids_from('relation_t'), get_all_ids_from('relation_uri'))
end

def contribution_text
Expand Down
5 changes: 3 additions & 2 deletions app/models/european_material.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def ec_documents
def related_item_ids
doc_text = get_all_ids_from('referencingDD_t')
doc_uri = get_all_ids_from('referencingDD_uri')
relation_uris = get_all_ids_from('relation_t')
[doc_text, doc_uri, relation_uris].flatten.compact
relation_text_uris = get_all_ids_from('relation_t')
relation_uris = get_all_ids_from('relation_uri')
[doc_text, doc_uri, relation_text_uris, relation_uris].flatten.compact
end
end
2 changes: 1 addition & 1 deletion coverage/.last_run.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"result": {
"line": 80.25
"line": 80.17
}
}
Loading

0 comments on commit 3c81fee

Please sign in to comment.