Skip to content
Snippets Groups Projects

Source API fix

Open Fiona D'Mello requested to merge bug-fix/source-api into dev
1 unresolved thread

Source API failed to function as required. The current MR changes the SOLR Query building process to reuse the search query to find the correct item by id. It also fixes the case of failure when no record is found in SOLR for a given id

Closes #128

Edited by Fiona D'Mello

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
11 10 }
12 11 try {
13 const params = new URLSearchParams({
14 q: "*:*",
15 fq: `+id:"${id}"`,
16 rows: "1",
17 });
12 const solrResponse: SolrResponseType = await new SolrQuery(
13 0,
14 1,
15 [],
16 [],
17 undefined,
18 undefined,
19 `id:${id}`
20 ).json();
Please register or sign in to reply
Loading