mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-17 21:56:56 +00:00
Minor and conf fixes
This commit is contained in:
parent
e207d31729
commit
2d4cd66354
@ -101,6 +101,16 @@ public class Application extends Controller {
|
||||
return serveAsset("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Generic not found response
|
||||
* @param path
|
||||
* @return
|
||||
*/
|
||||
@Nonnull
|
||||
public Result apiNotFound(@Nullable String path) {
|
||||
return badRequest("{\"error\": \"API endpoint does not exist\"}");
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a wrapping ObjectNode containing config information
|
||||
*
|
||||
@ -112,7 +122,6 @@ public class Application extends Controller {
|
||||
config.put("appVersion", _config.getString("app.version"));
|
||||
config.put("isInternal", _config.getBoolean("linkedin.internal"));
|
||||
config.put("shouldShowDatasetLineage", _config.getBoolean("linkedin.show.dataset.lineage"));
|
||||
config.put("shouldShowDatasetHealth", _config.getBoolean("linkedin.show.dataset.health"));
|
||||
config.put("suggestionConfidenceThreshold",
|
||||
Integer.valueOf(_config.getString("linkedin.suggestion.confidence.threshold")));
|
||||
config.set("wikiLinks", wikiLinks());
|
||||
@ -122,6 +131,8 @@ public class Application extends Controller {
|
||||
config.put("isStagingBanner", _config.getBoolean("ui.show.staging.banner"));
|
||||
config.put("isLiveDataWarning", _config.getBoolean("ui.show.live.data.banner"));
|
||||
config.put("showChangeManagement", _config.getBoolean("ui.show.CM.banner"));
|
||||
// Flag to enable people entity elements
|
||||
config.put("showPeople", _config.getBoolean("ui.show.people"));
|
||||
config.put("changeManagementLink", _config.getString("ui.show.CM.link"));
|
||||
// Flag set in order to warn users that search is experiencing issues
|
||||
config.put("isStaleSearch", _config.getBoolean("ui.show.stale.search"));
|
||||
|
@ -50,8 +50,6 @@ linkedin.internal = true
|
||||
|
||||
linkedin.show.dataset.lineage = true
|
||||
|
||||
linkedin.show.dataset.health = true
|
||||
|
||||
linkedin.suggestion.confidence.threshold = "50"
|
||||
|
||||
tracking.piwik.siteid = "0"
|
||||
@ -81,14 +79,15 @@ links.wiki.datasetDecommission = ""
|
||||
|
||||
ui.show.ownership.revamp = true
|
||||
|
||||
ui.show.staging.banner = true
|
||||
ui.show.staging.banner = false
|
||||
ui.show.people = false
|
||||
|
||||
ui.show.CM.banner = true
|
||||
ui.show.CM.banner = false
|
||||
ui.show.CM.link = ""
|
||||
|
||||
ui.show.stale.search = true
|
||||
|
||||
ui.show.live.data.banner = true
|
||||
ui.show.live.data.banner = false
|
||||
|
||||
ui.show.lineage.graph = true
|
||||
|
||||
|
@ -37,6 +37,9 @@ GET /api/v2/datasets/:urn/snapshot co
|
||||
GET /api/v2/datasets/:urn/upstreams controllers.api.v2.Dataset.getDatasetUpstreams(urn: String)
|
||||
GET /api/v2/search controllers.api.v2.Search.search()
|
||||
|
||||
GET /api/*path controllers.Application.apiNotFound(path)
|
||||
POST /api/*path controllers.Application.apiNotFound(path)
|
||||
|
||||
# Map static resources from the /public folder to the /assets URL path
|
||||
GET /assets/*file controllers.Assets.at(path="/public", file)
|
||||
|
||||
|
2
runMidTier.sh
Executable file
2
runMidTier.sh
Executable file
@ -0,0 +1,2 @@
|
||||
./gradlew build -x datahub-web:emberBuild -x datahub-web:emberWorkspaceTest -x datahub-frontend:unzipAssets
|
||||
cd datahub-frontend/run && ./run-local-frontend
|
Loading…
x
Reference in New Issue
Block a user