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

refactor: server (part 2) #1849

Merged
merged 1 commit into from
May 7, 2019
Merged

refactor: server (part 2) #1849

merged 1 commit into from
May 7, 2019

Conversation

alexander-akait
Copy link
Member

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

No need

Motivation / Use-Case

Refactor

Breaking Changes

No

Additional Info

No

@alexander-akait alexander-akait requested a review from hiroppy as a code owner May 7, 2019 10:42
const updateCompiler = require('./utils/updateCompiler');
const createLogger = require('./utils/createLogger');
const createCertificate = require('./utils/createCertificate');
const getCertificate = require('./utils/getCertificate');
const routes = require('./utils/routes');
Copy link
Member Author

Choose a reason for hiding this comment

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

Fix order (eslint rule)

return fs.readFileSync(certificatePath);
}

module.exports = getCertificate;
Copy link
Member Author

Choose a reason for hiding this comment

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

New util

options.sockPath
? options.sockPath.replace(/^\/|\/$/g, '')
this.options.sockPath
? this.options.sockPath.replace(/^\/|\/$/g, '')
Copy link
Member Author

Choose a reason for hiding this comment

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

Now we should use this.options.<option> instead this.<option> because it is very uncomfortable and require extra code like: this.clientOverlay = options.clientOverlay so we should remove them in future major release

@alexander-akait alexander-akait force-pushed the refactor-server-part-2 branch from 1d45a52 to a33d0e4 Compare May 7, 2019 11:26
@codecov
Copy link

codecov bot commented May 7, 2019

Codecov Report

Merging #1849 into master will increase coverage by 0.08%.
The diff coverage is 95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1849      +/-   ##
==========================================
+ Coverage   89.22%   89.31%   +0.08%     
==========================================
  Files          10       11       +1     
  Lines         622      627       +5     
  Branches      187      187              
==========================================
+ Hits          555      560       +5     
  Misses         55       55              
  Partials       12       12
Impacted Files Coverage Δ
lib/Server.js 85.05% <100%> (+0.16%) ⬆️
lib/utils/createCertificate.js 100% <100%> (ø) ⬆️
lib/utils/getCertificate.js 85.71% <85.71%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a1cdd2a...a33d0e4. Read the comment docs.

@alexander-akait alexander-akait merged commit 34058a6 into master May 7, 2019
@alexander-akait alexander-akait deleted the refactor-server-part-2 branch May 7, 2019 12:22
@alexander-akait
Copy link
Member Author

Feel free to feedback

@hiroppy
Copy link
Member

hiroppy commented May 7, 2019

hmm... sorry but I can not understand that you can not wait 2 hours for the review...

@alexander-akait
Copy link
Member Author

alexander-akait commented May 7, 2019

@hiroppy sorry, i think you still on vacation and unavaliable

@alexander-akait
Copy link
Member Author

@hiroppy Feel free to any feedback and we fix it in next refactor PR

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.

2 participants