Commit 0bf878de by Hemanth Yamijala

ATLAS-927 aboutAtlas_tmpl.html has hard-coded project version (Kalyanikashikar via yhemanth)

parent 607e7de2
......@@ -103,7 +103,7 @@ public class AtlasAuthorizationUtils {
String api = getApi(contextPath);
if (api.startsWith("types")) {
resourceTypes.add(AtlasResourceTypes.TYPE);
} else if (api.startsWith("admin") && contextPath.contains("/session")) {
} else if (api.startsWith("admin") && (contextPath.contains("/session") || contextPath.contains("/version"))) {
resourceTypes.add(AtlasResourceTypes.UNKNOWN);
} else if ((api.startsWith("discovery") && contextPath.contains("/gremlin")) || api.startsWith("admin")
|| api.startsWith("graph")) {
......
......@@ -37,6 +37,17 @@ define(['require',
toString: function() {
return this.get('name');
},
/*************************
* Non - CRUD operations
*************************/
aboutUs: function(url, options) {
var url = Globals.baseURL + url;
options = _.extend({
contentType: 'application/json',
dataType: 'json'
}, options);
return this.constructor.nonCrudOperation.call(this, url, 'GET', options);
}
}, {});
return VCommon;
});
......@@ -57,14 +57,10 @@ define([
var that = this;
require([
'hbs!tmpl/common/aboutAtlas_tmpl',
'modules/Modal'
], function(aboutAtlasTmpl, Modal) {
var aboutAtlas = Marionette.LayoutView.extend({
template: aboutAtlasTmpl,
events: {},
});
var view = new aboutAtlas();
'modules/Modal',
'views/common/aboutAtlas',
], function(aboutAtlasTmpl, Modal, aboutAtlasView) {
var view = new aboutAtlasView();
var modal = new Modal({
title: 'Apache Atlas',
content: view,
......
......@@ -16,9 +16,8 @@
-->
<div class="row">
<div class="col-md-4">
<img src="img/ApacheAtlasLogo.png" class="img-responsive">
<div class="col-md-8 subContent">
<p class="ng-binding"><b>Version : </b> 0.7-incubating-SNAPSHOT-ra2cc01c4342ace7f7a3e3e254d7ede781f990318</p>
<p data-id="atlasVersion"></p>
<br>
<p class="text-info">Get involved!</p>
<p class="text-info"><a href="http://apache.org/licenses/LICENSE-2.0" target="_blank">Licensed under the Apache License Version 2.0</a></p>
......
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
define(['require',
'backbone',
'hbs!tmpl/common/aboutAtlas_tmpl',
'models/VCommon'
], function(require, Backbone, aboutAtlasTmpl, VCommon) {
'use strict';
var aboutAtlasView = Backbone.Marionette.LayoutView.extend(
/** @lends aboutAtlasView */
{
template: aboutAtlasTmpl,
/** Layout sub regions */
regions: {},
/** ui selector cache */
ui: {
atlasVersion: "[data-id='atlasVersion']"
},
/** ui events hash */
events: function() {},
/**
* intialize a new aboutAtlasView Layout
* @constructs
*/
initialize: function(options) {
_.extend(this, _.pick(options, 'globalVent'));
},
bindEvents: function() {
},
onRender: function() {
var that = this;
var url = "/api/atlas/admin/version";
var VCommonModel = new VCommon();
VCommonModel.aboutUs(url, {
success: function(data) {
var str = "<b>Version : </b>" + data.Version;
that.ui.atlasVersion.html(str);
},
error: function(error, data, status) {},
complete: function() {}
});
},
});
return aboutAtlasView;
});
......@@ -6,6 +6,7 @@ INCOMPATIBLE CHANGES:
ALL CHANGES:
ATLAS-927 aboutAtlas_tmpl.html has hard-coded project version (Kalyanikashikar via yhemanth)
ATLAS-624 UI: Clicking a tag hyperlink should always result in DSL search. In some cases, results in full-text search. (Kalyanikashikar via yhemanth)
ATLAS-950 Atlas should support Solr that requires Kerberos authentication (madhan.neethiraj via yhemanth)
ATLAS-947 Return state information in inputs and outputs lineage API (shwethags)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment