You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Made all REST calls test with and without country code
Depending on whether we are syncing with a national node or with the
central Directory, we may or may not need to incoporate the country
code into the URL for REST API calls. The changes test both
possibilities.
* Retrieves a list of fact IDs from the Directory associated with a specific collection.
188
188
*
189
-
* @param countryCode The country code, e.g. DE.
190
189
* @param collectionId The ID of the collection to retrieve fact IDs for.
191
190
* @return A list of fact IDs for the specified collection, or null if there is an issue retrieving the data. An empty list indicates that there are no more facts left to be retrieved.
* Retrieves a list of fact IDs from the Directory associated with a specific collection.
642
642
*
643
-
* @param countryCode The country code, e.g. DE.
644
643
* @param collectionId The ID of the collection to retrieve fact IDs for.
645
644
* @return A list of fact IDs for the specified collection, or null if there is an issue retrieving the data. An empty list indicates that there are no more facts left to be retrieved.
* Retrieves a list of fact IDs from the Directory associated with a specific collection.
185
206
*
186
-
* @param countryCode The country code, e.g. DE.
187
207
* @param collectionId The ID of the collection to retrieve fact IDs for.
188
208
* @return A list of fact IDs for the specified collection, or null if there is an issue retrieving the data. An empty list indicates that there are no more facts left to be retrieved.
logger.warn("deleteStarModel: Problem getting facts for collection, factWrapper == null, collectionId=" + collectionId);
199
-
returnnull;
216
+
logger.info("getNextPageOfFactIdsForCollection: Problem getting facts for collection, factWrapper == null, collectionId=" + collectionId + ", trying without country code");
logger.warn("getNextPageOfFactIdsForCollection: Problem getting facts for collection, factWrapper == null, collectionId=" + collectionId + " even without contry code, aborting");
221
+
returnnull;
222
+
}
200
223
}
224
+
201
225
if (!factWrapper.containsKey("items")) {
202
-
logger.warn("deleteStarModel: Problem getting facts for collection, no item key present: " + collectionId);
226
+
logger.warn("getNextPageOfFactIdsForCollection: Problem getting facts for collection, no item key present: " + collectionId);
0 commit comments