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

DATAUP-246: error pages #1887

Merged
merged 4 commits into from
Oct 23, 2020
Merged

Conversation

ialarmedalien
Copy link
Collaborator

@ialarmedalien ialarmedalien commented Oct 23, 2020

Description of PR purpose/changes

Cleaning up error template pages and moving the css to a separate file

Jira Ticket / Issue

https://kbase-jira.atlassian.net/browse/DATAUP-246

Testing Instructions

  • Details for how to test the PR:

... plus any others that you can generate!

Dev Checklist:

  • My code follows the guidelines at https://sites.google.com/truss.works/kbasetruss/development
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas - N/A
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works - N/A
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules - N/A
  • I have run Black and Flake8 on changed Python Code manually or with git precommit (and the travis build passes) - N/A

@@ -21,7 +21,7 @@ require([
return Login.init($('#signin-button'), true);
})
.then(function () {
let statusCode = document.getElementsByClassName('error')[0].getAttribute('data-code');
let statusCode = document.getElementById('error_container').getAttribute('data-code');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

accessing by the element ID instead of the class, since I changed the class

Copy link
Member

Choose a reason for hiding this comment

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

statusCode doesn't change, so it can be const.

Comment on lines -1 to -11
/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/

/*
Created on : Jul 14, 2016, 2:31:08 PM
Author : erik
*/

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unneeded

Comment on lines +14 to +16
font-weight: bold;
font-size: 200%;
line-height: 1.5;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is all a bit random and horrible, but leaving it as-is for now. When the typography is sorted out, it can be edited to be more uniform.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 16.979% when pulling be56aab on DATAUP-246_css_to_css-error_pages into 0322e93 on truss.

Copy link
Member

@briehl briehl left a comment

Choose a reason for hiding this comment

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

This all looks great to me.

@@ -21,7 +21,7 @@ require([
return Login.init($('#signin-button'), true);
})
.then(function () {
let statusCode = document.getElementsByClassName('error')[0].getAttribute('data-code');
let statusCode = document.getElementById('error_container').getAttribute('data-code');
Copy link
Member

Choose a reason for hiding this comment

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

statusCode doesn't change, so it can be const.

@sonarcloud
Copy link

sonarcloud bot commented Oct 23, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ialarmedalien ialarmedalien merged commit 742c3be into truss Oct 23, 2020
@ialarmedalien ialarmedalien deleted the DATAUP-246_css_to_css-error_pages branch October 23, 2020 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants