Skip to content
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

[management-ui] portal.entrypoint overriding constants.json has no effect #2676

Closed
jaimesf opened this issue Sep 25, 2019 · 5 comments
Assignees
Milestone

Comments

@jaimesf
Copy link

@jaimesf jaimesf commented Sep 25, 2019

Overriding contants.json to change portal.entrypoint has no effect on screen. Bug just on 1.29.0. previous versions not affected

Expected Behavior

Overriding portal.entrypoint, must show url on api gallery

Current Behavior

Api gallery entrypoint shows the default value

Steps to Reproduce (for bugs)

  1. Override contants.json with custom value for portal.entrypoint
    2.Create an API
    3.Create plan for that api
    4.Check API gallery and check entrypoint for the api

Your Environment

  • Version used: 1.29.0 previous versions not affected
  • Browser Name and version: Chrome stable
  • Operating System and version: Windows 10 pro
@brasseld

This comment has been minimized.

Copy link
Member

@brasseld brasseld commented Oct 29, 2019

I just had a try and it works as expected.
Can you tell how you configure entrypoint / sharding-tags ?

Capture d’écran 2019-10-29 à 14 29 07

@brasseld

This comment has been minimized.

Copy link
Member

@brasseld brasseld commented Oct 29, 2019

Can you provide us with the result of :

curl -k -X GET https://localhost:80/constants.json (UI)

and

curl -k -X GET https://localhost:8083/management/portal (MGMT-API)

@jaimesf

This comment has been minimized.

Copy link
Author

@jaimesf jaimesf commented Oct 29, 2019

curl -k -X GET https://localhost:80/constants.json (UI)

{
  "baseURL": "https://10.107.11.186/apim/management/",
  "portal" : {
      "entrypoint" : "https://10.107.11.186/apim"
  }
}

curl -k -X GET https://localhost:8083/management/portal

  "company" : {
    "name" : "Gravitee.io"
  },
  "management" : {
    "title" : "Gravitee.io Management"
  },
  "portal" : {
    "title" : "Gravitee.io Portal",
    "entrypoint" : "https://api.company.com",
    "apikeyHeader" : "X-Gravitee-Api-Key",
    "support" : {
      "enabled" : false
    },
    "devMode" : {
      "enabled" : false
    },
    "userCreation" : {
      "enabled" : true
    },
    "apis" : {
      "tilesMode" : {
        "enabled" : true
      },
      "viewMode" : {
        "enabled" : false
      },
      "apiHeaderShowTags" : {
        "enabled" : false
      },
      "apiHeaderShowViews" : {
        "enabled" : false
      }
    },
    "analytics" : {
      "enabled" : false
    },
    "rating" : {
      "enabled" : false,
      "comment" : {
        "mandatory" : false
      }
    },
    "uploadMedia" : {
      "enabled" : false,
      "maxSizeInOctet" : 1000000
    }
  },
  "authentication" : {
    "forceLogin" : {
      "enabled" : false
    },
    "localLogin" : {
      "enabled" : true
    },
    "google" : { },
    "github" : { },
    "oauth2" : {
      "color" : "#0076b4",
      "scope" : [ ]
    }
  },
  "scheduler" : {
    "tasks" : 10,
    "notifications" : 10
  },
  "documentation" : {
    "url" : "https://docs.gravitee.io"
  },
  "theme" : {
    "name" : "default",
    "logo" : "themes/assets/GRAVITEE_LOGO1-01.png",
    "loader" : "assets/gravitee_logo_anim.gif"
  },
  "plan" : {
    "security" : {
      "apikey" : {
        "enabled" : true
      },
      "oauth2" : {
        "enabled" : true
      },
      "keyless" : {
        "enabled" : true
      },
      "jwt" : {
        "enabled" : true
      }
    }
  },
  "apiQualityMetrics" : {
    "enabled" : false,
    "functionalDocumentationWeight" : 0,
    "technicalDocumentationWeight" : 0,
    "descriptionWeight" : 0,
    "descriptionMinLength" : 100,
    "logoWeight" : 0,
    "viewsWeight" : 0,
    "labelsWeight" : 0,
    "healthcheckWeight" : 0
  },
  "apiReview" : {
    "enabled" : false
  },
  "logging" : {
    "maxDurationMillis" : 0,
    "audit" : {
      "enabled" : false,
      "trail" : {
        "enabled" : false
      }
    },
    "user" : {
      "displayed" : false
    }
  },
  "analytics" : {
    "clientTimeout" : 30000
  },
  "application" : {
    "registration" : {
      "enabled" : false
    },
    "types" : {
      "simple" : {
        "enabled" : true
      },
      "browser" : {
        "enabled" : true
      },
      "web" : {
        "enabled" : true
      },
      "native" : {
        "enabled" : true
      },
      "backend_to_backend" : {
        "enabled" : true
      }
    }
  }
}

I mount constants.json on my docker deployment via volume:

   volumes:
      - ../volumes/config/api-managementui/constants.json:/var/www/html/constants.json:ro
@jaimesf

This comment has been minimized.

Copy link
Author

@jaimesf jaimesf commented Oct 29, 2019

Result on api gallery:

EntrypointAPIMCaptura

@brasseld

This comment has been minimized.

Copy link
Member

@brasseld brasseld commented Oct 29, 2019

Ok perfect

Thanks for those helpful informations :)

@brasseld brasseld added this to the APIM - 1.29.x milestone Oct 29, 2019
@brasseld brasseld added the type: bug label Oct 29, 2019
NicolasGeraud added a commit to gravitee-io/gravitee-management-webui that referenced this issue Nov 7, 2019
@NicolasGeraud NicolasGeraud self-assigned this Nov 7, 2019
NicolasGeraud added a commit to gravitee-io/gravitee-management-webui that referenced this issue Nov 7, 2019
NicolasGeraud added a commit to gravitee-io/gravitee-management-webui that referenced this issue Nov 7, 2019
aelamrani added a commit to gravitee-io/gravitee-management-webui that referenced this issue Nov 7, 2019
@aelamrani aelamrani closed this Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
API Management
Awaiting triage
4 participants
You can’t perform that action at this time.