[develop | DONE | CHANGED]: Updated checks for searching organizations collected from openOrgs to apply the new criteria everywhere but productions (to be promoted after testing).
This commit is contained in:
parent
9fcdb1df74
commit
25fbfd2f79
|
@ -1 +1 @@
|
||||||
Subproject commit 799af0ba6afc4c88c00d6a452c5dba772121070b
|
Subproject commit e90a1efee3d85049a802ae0bade7b97c26825c7b
|
|
@ -104,7 +104,7 @@ app.delete(['/delete/:filename', '/delete/stakeholder/:filename', '/delete/:type
|
||||||
|
|
||||||
app.get('/explore/home', async function (req, res) {
|
app.get('/explore/home', async function (req, res) {
|
||||||
try {
|
try {
|
||||||
let openOrgsId = properties.get('environment') == "beta" ? 'openaire____%3A%3A0362fcdb3076765d9c0041ad331553e8' : "";
|
let openOrgsId = properties.get('environment') != "production" ? 'openaire____%3A%3A0362fcdb3076765d9c0041ad331553e8' : "";
|
||||||
// Make requests to multiple APIs
|
// Make requests to multiple APIs
|
||||||
let requests= [
|
let requests= [
|
||||||
"http://localhost:" + properties.get('port') + "/portals/countResults",
|
"http://localhost:" + properties.get('port') + "/portals/countResults",
|
||||||
|
@ -147,7 +147,7 @@ app.get('/explore/home', async function (req, res) {
|
||||||
app.get('/explore/search', async function (req, res) {
|
app.get('/explore/search', async function (req, res) {
|
||||||
let aggregatedData = {};
|
let aggregatedData = {};
|
||||||
try {
|
try {
|
||||||
let openOrgsId = properties.get('environment') == "beta" ? 'openaire____%3A%3A0362fcdb3076765d9c0041ad331553e8' : ""; // Make requests to multiple APIs
|
let openOrgsId = properties.get('environment') != "production" ? 'openaire____%3A%3A0362fcdb3076765d9c0041ad331553e8' : ""; // Make requests to multiple APIs
|
||||||
let requests= [
|
let requests= [
|
||||||
searchServiceAPIUrl +'resources2/?format=json&size=0&type=results',
|
searchServiceAPIUrl +'resources2/?format=json&size=0&type=results',
|
||||||
searchServiceAPIUrl + 'datasources/count?format=json',
|
searchServiceAPIUrl + 'datasources/count?format=json',
|
||||||
|
|
Loading…
Reference in New Issue