Conversation
…ular-7 # Conflicts: # src/app/core/services/route.service.ts # src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.ts # src/app/shared/form/builder/form-builder.service.ts # src/app/shared/object-list/object-list.component.spec.ts # src/app/submission/submission.service.ts
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3. - [Release notes](https://github.com/wycats/handlebars.js/releases) - [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md) - [Commits](handlebars-lang/handlebars.js@v4.1.2...v4.5.3) Signed-off-by: dependabot[bot] <support@github.com>
tdonohue
left a comment
There was a problem hiding this comment.
@atarix83 : Thanks for this! I gave this a quick code review today, and it mostly looks fine to me. There's one new method which is added that needs TypeDocs & tests (and this method is pointed out by Coveralls in the coverage drop, so it may be a small part of the issue here).
That said, currently this PR fails to run with AoT compilation (yarn start). It looks like it may just be a minor issue, but here's the error I see:
ERROR in build/app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/search-tab/dynamic-lookup-relation-search-tab.component.spec.ts(116,7): error TS2554: Expected 0-1 arguments, but got 2.
build/app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/search-tab/dynamic-lookup-relation-search-tab.component.spec.ts(140,7): error TS2554: Expected 0-1 arguments, but got 2.
build/app/shared/object-list/selectable-list/selectable-list.service.spec.ts(53,41): error TS2345: Argument of type 'Store<SelectableListsState>'
is not assignable to parameter of type 'Store<AppState>'.
Type 'SelectableListsState' is not assignable to type 'AppState'.
Property 'router' is missing in type 'SelectableListsState'.
It does run if you use yarn run watch (and testing it out it seems to work fine). The above error only occurs when using yarn start.
…ular-7 # Conflicts: # src/app/+collection-page/collection-form/collection-form.component.ts # src/app/+community-page/community-form/community-form.component.ts # src/app/shared/comcol-forms/comcol-form/comcol-form.component.ts
|
@atarix83 : I retested this today, and based on your latest changes the AoT compilation now succeeds! So, thanks for those updates! I think this is looking good, but I would like to see if we can add tests to the new function I mentioned above -- this new function is specifically called out by the Coveralls report as having a big impact on code coverage. I suspect if you added some tests for it, we might get the coverage to increase slightly (maybe get us closer to 78% or 79% again). Beyond that, I'd personally like to see this effort merged soon, as the next step will be to also upgrade us to Angular 8. |
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks for the updates, @atarix83 . I gave this some more testing today, and I'm not noticing any obvious issues with the UI after the upgrade. I also don't see any obvious reasons why the code coverage has dropped so significantly. So, in order to move this forward (and unblock the Angular 8 upgrade), I'm OK with merging this as-is. Thanks again!
This PR provides upgrade to angular 7.
Tests run successful and all seem to work fine.
I removed the webpack's resolve-url-loader from dependencies because it doesn't work but everything else seems to work the same.