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

fix: conditionally add async tag in page editor clientlibs #19

Merged
merged 16 commits into from
Sep 22, 2020

Conversation

rachitkumar13
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Sep 14, 2020

Codecov Report

Merging #19 into master will increase coverage by 0.84%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #19      +/-   ##
==========================================
+ Coverage   90.83%   91.67%   +0.84%     
==========================================
  Files          10       11       +1     
  Lines         622      685      +63     
  Branches      169      182      +13     
==========================================
+ Hits          565      628      +63     
  Misses         56       56              
  Partials        1        1              
Impacted Files Coverage Δ
src/AuthoringUtils.ts 100.00% <100.00%> (ø)
src/Constants.ts 95.65% <100.00%> (+5.65%) ⬆️
src/MetaProperty.ts 85.71% <100.00%> (+2.38%) ⬆️
src/ModelClient.ts 95.23% <100.00%> (+0.50%) ⬆️
src/ModelManager.ts 86.47% <100.00%> (+0.16%) ⬆️
src/PathUtils.ts 96.13% <100.00%> (+0.04%) ⬆️

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 f8d2f4f...eed084c. Read the comment docs.

src/ModelManager.ts Outdated Show resolved Hide resolved
src/ModelClient.ts Outdated Show resolved Hide resolved
src/ModelClient.ts Outdated Show resolved Hide resolved
src/ModelManager.ts Outdated Show resolved Hide resolved
src/Utils.ts Outdated Show resolved Hide resolved
src/Utils.ts Outdated Show resolved Hide resolved
src/Constants.ts Show resolved Hide resolved
src/Utils.ts Outdated Show resolved Hide resolved
src/Utils.ts Outdated Show resolved Hide resolved
src/ModelClient.ts Outdated Show resolved Hide resolved
src/ModelManager.ts Outdated Show resolved Hide resolved
src/Utils.ts Outdated Show resolved Hide resolved
src/Utils.ts Outdated
let tags = '';
if (state === Constants.AUTHORING) {
const clientLibs = this.generateClientLibsUrl();
clientLibs.forEach(clientlib => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be cool if we changed the forEach to map and return the tags, this way we have no side effect

src/Utils.ts Outdated Show resolved Hide resolved
src/Utils.ts Outdated Show resolved Hide resolved
src/Utils.ts Outdated Show resolved Hide resolved
src/Utils.ts Outdated Show resolved Hide resolved
src/Utils.ts Outdated Show resolved Hide resolved
src/Utils.ts Outdated Show resolved Hide resolved
@grubyak
Copy link
Contributor

grubyak commented Sep 16, 2020

@rachitkumar13 i have updated github actions (your branch is basing on very old master) and while sonar check is now passing, codecov still requires better coverage, see https://github.com/adobe/aem-spa-page-model-manager/pull/19/checks?check_run_id=1124975929

missing tests for:

  • Utils#getEditParam
  • Utils#getDomain
  • PathUtils#getCurrentURL

src/Utils.ts Outdated Show resolved Hide resolved
-Dsonar.sources=src
-Dsonar.tests=test
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
Copy link
Contributor

Choose a reason for hiding this comment

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

i fixed here sonar code coverage reports

@sonarqubecloud
Copy link

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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@CezCz CezCz left a comment

Choose a reason for hiding this comment

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

Test

@grubyak grubyak merged commit 9c3e86b into master Sep 22, 2020
github-actions bot pushed a commit that referenced this pull request Sep 22, 2020
# [1.1.0](v1.0.3...v1.1.0) (2020-09-22)

### Features

* conditionally add async tag in page editor clientlibs ([#19](#19)) ([9c3e86b](9c3e86b))
@github-actions
Copy link

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

6 participants