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

HDDS-2000. Don't depend on bootstrap/jquery versions from hadoop-trun… #1339

Closed
wants to merge 1 commit into from

Conversation

vivekratnavel
Copy link
Contributor

…k snapshot

I have copied all the dependencies we need for OM and SCM web UI into hdds-framework static folder so that we need not depend on hadoop static resources. I have tested each of the UIs manually from invoking OM, SCM and Datanode in docker compose.

Also, included in this patch is the upgrade of bootstrap and jquery versions used in docs. I have also added ozone logo the navbar header of our docs and verified that the changes look good by both hugo serve and by clicking on docs link from OM and SCM web UIs.

@vivekratnavel
Copy link
Contributor Author

/label ozone

@vivekratnavel
Copy link
Contributor Author

@anuengineer @elek @swagle Please review

@elek elek added the ozone label Aug 23, 2019
padding: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:tabs in line

-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
direction: ltr;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:tabs in line

* ======================================================================== */


+function ($) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:34:W033:Missing semicolon.

+function ($) {
'use strict';

// ALERT CLASS DEFINITION

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:27:W033:Missing semicolon.

'use strict';

// ALERT CLASS DEFINITION
// ======================

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:45:W033:Missing semicolon.

// ======================

var dismiss = '[data-dismiss="alert"]'
var Alert = function (el) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:36:W033:Missing semicolon.


var dismiss = '[data-dismiss="alert"]'
var Alert = function (el) {
$(el).on('click', dismiss, this.close)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:68:W033:Missing semicolon.

$(el).on('click', dismiss, this.close)
}

Alert.VERSION = '3.4.1'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:51:W033:Missing semicolon.

}

Alert.VERSION = '3.4.1'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:45:W033:Missing semicolon.

Alert.VERSION = '3.4.1'

Alert.TRANSITION_DURATION = 150

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:30:W033:Missing semicolon.


Alert.prototype.close = function (e) {
var $this = $(this)
var selector = $this.attr('data-target')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:40:W033:Missing semicolon.

var selector = $this.attr('data-target')

if (!selector) {
selector = $this.attr('href')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:51:W033:Missing semicolon.

if (!selector) {
selector = $this.attr('href')
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:39:W033:Missing semicolon.

selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
}

selector = selector === '#' ? [] : selector

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:30:W033:Missing semicolon.

var $parent = $(document).find(selector)

if (e) e.preventDefault()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:59:W033:Missing semicolon.


$parent.trigger(e = $.Event('close.bs.alert'))

if (e.isDefaultPrevented()) return

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:21:W030:Expected an assignment or function call and instead saw an expression.
jshint:22:W033:Missing semicolon.

$parent.trigger(e = $.Event('close.bs.alert'))

if (e.isDefaultPrevented()) return

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:4:W033:Missing semicolon.

* Licensed under the MIT license
*/

if (typeof jQuery === 'undefined') {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:53:W033:Missing semicolon.

$parent.detach().trigger('closed.bs.alert').remove()
}

$.support.transition && $parent.hasClass('fade') ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:26:W033:Missing semicolon.

}

$.support.transition && $parent.hasClass('fade') ?
$parent

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:41:W033:Missing semicolon.

$.support.transition && $parent.hasClass('fade') ?
$parent
.one('bsTransitionEnd', removeElement)
.emulateTransitionEnd(Alert.TRANSITION_DURATION) :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:66:W033:Missing semicolon.

$parent
.one('bsTransitionEnd', removeElement)
.emulateTransitionEnd(Alert.TRANSITION_DURATION) :
removeElement()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:62:W033:Missing semicolon.

.one('bsTransitionEnd', removeElement)
.emulateTransitionEnd(Alert.TRANSITION_DURATION) :
removeElement()
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:7:W033:Missing semicolon.

}


// ALERT PLUGIN DEFINITION

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:23:W033:Missing semicolon.


// ALERT PLUGIN DEFINITION
// =======================

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:34:E043:Too many errors. (6% scanned).
jshint:34:W033:Missing semicolon.

@@ -0,0 +1,2580 @@
/*!
* Bootstrap v3.4.1 (https://getbootstrap.com/)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jshint:113:W033:Missing semicolon.

* 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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:tabs in line

*/

body {
background-color : #ffffff;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:tabs in line

font-family : sans-serif;
}

.small {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:tabs in line

font-size : smaller;
}

div#dfsnodetable tr#row1, div.dfstable td.col1 {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:tabs in line

font-weight : bolder;
}

div.dfstable th {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:tabs in line

}

div.dfstable th {
text-align:left;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:tabs in line

}

div.dfstable td#col3 {
text-align : right;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

}

div#dfsnodetable caption {
text-align : left;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line
whitespace:tabs in line


div#dfsnodetable a#title {
font-size : larger;
font-weight : bolder;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line


div#dfsnodetable td, th {
padding-bottom : 4px;
padding-top : 4px;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:tabs in line

}

div#dfsnodetable A:link, A:visited {
text-decoration : none;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:tabs in line

}

div#dfsnodetable th.header, th.headerASC, th.headerDSC {
padding-bottom : 8px;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:tabs in line

padding-bottom : 8px;
padding-top : 8px;
}
div#dfsnodetable th.header:hover, th.headerASC:hover, th.headerDSC:hover,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:tabs in line

text-decoration : underline;
cursor : pointer;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line
whitespace:tabs in line

div#dfsnodetable td.blocks, td.size, td.pcused, td.adminstate, td.lastcontact {
text-align : right;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:tabs in line

background-color : lightyellow;
}

.warning {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:tabs in line

}

.warning {
font-weight : bolder;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:tabs in line

color : red;
}

div.dfstable table {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:tabs in line

}

div.dfstable table {
white-space : pre;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:tabs in line

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 45 Docker mode activated.
_ Prechecks _
+1 dupname 1 No case conflicting files found.
+1 @author 0 The patch does not contain any @author tags.
-1 test4tests 0 The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
0 mvndep 66 Maven dependency ordering for branch
+1 mvninstall 655 trunk passed
+1 compile 384 trunk passed
+1 mvnsite 0 trunk passed
+1 shadedclient 2457 branch has no errors when building and testing our client artifacts.
+1 javadoc 149 trunk passed
_ Patch Compile Tests _
0 mvndep 28 Maven dependency ordering for patch
+1 mvninstall 551 the patch passed
-1 jshint 2526 The patch generated 1647 new + 194325 unchanged - 1737 fixed = 195972 total (was 196062)
+1 compile 358 the patch passed
+1 javac 358 the patch passed
+1 mvnsite 0 the patch passed
-1 whitespace 0 The patch has 4 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
-1 whitespace 0 The patch 38 line(s) with tabs.
+1 xml 5 The patch has no ill-formed XML file.
+1 shadedclient 643 patch has no errors when building and testing our client artifacts.
+1 javadoc 152 the patch passed
_ Other Tests _
-1 unit 181 hadoop-hdds in the patch failed.
-1 unit 1797 hadoop-ozone in the patch failed.
+1 asflicense 36 The patch does not generate ASF License warnings.
8561
Reason Tests
Failed junit tests hadoop.ozone.container.ozoneimpl.TestOzoneContainer
hadoop.ozone.container.server.TestSecureContainerServer
hadoop.ozone.client.rpc.TestBlockOutputStreamWithFailures
hadoop.ozone.container.common.statemachine.commandhandler.TestBlockDeletion
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1339/1/artifact/out/Dockerfile
GITHUB PR #1339
Optional Tests dupname asflicense jshint compile javac javadoc mvninstall mvnsite unit shadedclient xml
uname Linux dd21cc6c37c9 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / f6af7d0
Default Java 1.8.0_212
jshint https://builds.apache.org/job/hadoop-multibranch/job/PR-1339/1/artifact/out/diff-patch-jshint.txt
whitespace https://builds.apache.org/job/hadoop-multibranch/job/PR-1339/1/artifact/out/whitespace-eol.txt
whitespace https://builds.apache.org/job/hadoop-multibranch/job/PR-1339/1/artifact/out/whitespace-tabs.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1339/1/artifact/out/patch-unit-hadoop-hdds.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1339/1/artifact/out/patch-unit-hadoop-ozone.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-1339/1/testReport/
Max. process+thread count 5343 (vs. ulimit of 5500)
modules C: hadoop-hdds hadoop-hdds/docs hadoop-hdds/framework hadoop-ozone U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-1339/1/console
versions git=2.7.4 maven=3.3.9 jshint=2.10.2
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@vivekratnavel
Copy link
Contributor Author

The integration test failure is not related to this patch

Copy link
Member

@elek elek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 thanks the thorough patch.

Tested and both the UIs are working well...

@elek
Copy link
Member

elek commented Aug 23, 2019

(FTR: I fixed the whitespace issues of hadoop.css durging the commit)

@elek elek closed this in b4a95a2 Aug 23, 2019
@vivekratnavel
Copy link
Contributor Author

@elek Thanks for the whitespace fix and commit.

asfgit pushed a commit that referenced this pull request Aug 28, 2019
amahussein pushed a commit to amahussein/hadoop that referenced this pull request Oct 29, 2019
RogPodge pushed a commit to RogPodge/hadoop that referenced this pull request Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants