-
Notifications
You must be signed in to change notification settings - Fork 7
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
"Resource type" filter does not work in production #26
Comments
To resolve the issue about the "Resource Type" filter that does not work on Production environment. Analyzing the problem through the Dev Console of the browser, I verified that the filter doesn't work because the "config.js" file in production is not correctly configured. It would therefore be necessary to correct this file or otherwise the "controller.js" file in the "js/results" directory of the Validator UI would have to be changed. Here is the piece of code that applies the filter (I have omitted all the list of static IDs to simplify the visualization of the code):
As you can see, when the user select a specific Resource Type, the application generate an array of IDs. Then, for every item (test) received from the REST service, it goes to took the executabletestSuite.href field, it removes some elements (substrings) with the replace function in order to obtain only the simple ID code. However, executing a simple debug I saw that on production environment, all the executabletestSuite.href contain values similar to this: while the $scope.urlRealValidator is set to https://inspire.ec.europa.eu/validator/v2/ So when it tries to remove the value contained in $scope.urlRealValidator, it will never be able to do it because the value is incorrect/different in this env. So, to correct this issue you have 2 choices:
var serverRealURL = "https://inspire.ec.europa.eu/validator/v2/"; with the new line var serverRealURL = "https://yzyiqfakm4.execute-api.eu-west-1.amazonaws.com/validator/v2/";
|
The fix for this issue was included in the release v2023.0 - 25/01/2023. |
It seems the "Resource type" filter does not work in the production instance.
Whichever values you select it always returns a blank list, even if there are resources of that type.
It works fine in the staging instance.
The text was updated successfully, but these errors were encountered: