Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Two fixes for our spa's integration with the GoodData library. #298

Merged

Conversation

Blackbaud-MikitaYankouski
Copy link
Contributor

Rxjs library update to match the version of GoodData and adding a require to reflect-metadata so our unit tests are able to run and produce code coverage.

@codecov-io
Copy link

codecov-io commented Oct 11, 2017

Codecov Report

Merging #298 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #298   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          60     60           
  Lines        1440   1440           
  Branches      227    227           
=====================================
  Hits         1440   1440
Flag Coverage Δ
#builder 100% <ø> (ø) ⬆️
#runtime 100% <ø> (ø) ⬆️
#srcapp 100% <ø> (ø) ⬆️

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 042936a...eb4acd6. Read the comment docs.

@@ -84,7 +84,7 @@
"raw-loader": "0.5.1",
"reflect-metadata": "0.1.10",
"remap-istanbul": "0.9.5",
"rxjs": "5.4.2",

Choose a reason for hiding this comment

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

Hey @Blackbaud-MikitaYankouski, in your testing, did you run into any problems upgrading to this version of rxjs. Our dependency chain isn't crystal clear, and we've ran into problems when upgrading the dependency in builder, but not upgrading it in the skyux2 components.

https://github.com/blackbaud/skyux2/blob/master/package.json#L108

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just re-ran the all the tests and haven't ran into any issues!

Choose a reason for hiding this comment

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

The template also works with these changes. A point of note: UX does not directly depend on rxjs, so the mixmatched versions shouldn't affect a SPA.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are using a third party library that is required by our app that is more heavily dependent on rxjs, and they use this higher version and having two version in our node_modules gave us build errors.

@@ -30,6 +30,8 @@ require('zone.js/dist/sync-test');
require('zone.js/dist/proxy');
require('zone.js/dist/jasmine-patch');

require('reflect-metadata');

Choose a reason for hiding this comment

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

@Blackbaud-MikitaYankouski Mind providing more information on how this affects your unit tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without this line the unit tests do not run and the code coverage results aren't printed so our build ends up failing as well.

Copy link
Member

@Blackbaud-SteveBrush Blackbaud-SteveBrush left a comment

Choose a reason for hiding this comment

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

LGTM. Nothing was affected during my local tests.

package.json Outdated
@@ -112,4 +112,4 @@
"proxyquire": "1.8.0",
"rimraf": "2.6.1"
}
}
}

Choose a reason for hiding this comment

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

I noticed your editor removed the trailing newline character from both these files. Those newlines need to be preserved for TSLint and so would cause problems if you had edited a .ts file. The project's .editorconfig file specifies that a newline should be added to a file on save, which makes me think your editor is not configured to recognize the .editorconfig file. If you're using VSCode, you can install the EditorConfig plugin to fix this.

@Blackbaud-PaulCrowder Blackbaud-PaulCrowder merged commit 8289443 into blackbaud:master Nov 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants