Skip to content

perf(angular): upgrade to Angular 1.7.7 #768

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

Merged
merged 1 commit into from
Mar 4, 2019
Merged

Conversation

redallen
Copy link
Contributor

@redallen redallen commented Mar 1, 2019

Description

Closes #766 .

PR Checklist

  • Unit tests are included
  • Screenshots are attached (if there are visual changes in the UI)
  • A Designer (@beanh66) is assigned as a reviewer (if there are visual changes in the UI)
  • A CSS rep (@cshinn) is assigned as a reviewer (if there are visual changes in the UI)
  • Fix pf-bootstrap-select directive unit tests
  • Fix pfCanvas and pfCanvasEditor
  • Fix example script urls (I trust <script src="http://localhost:8000/grunt-scripts/jquery.js"></script> will become <script src="https://www.patternfly.org/angular-patternfly/grunt-scripts/jquery.js"></script> somewhere in the deploy)

Additional notes

All urls in the app have changed to use #! instead of #. See the Angular 1.6 changelog. As a result, we need to upgrade to grunt-uidocs-generator.

@redallen redallen changed the title Upgrade to Angular 1.7.7 perf(angular): upgrade to Angular 1.7.7 Mar 1, 2019
@redallen redallen changed the title perf(angular): upgrade to Angular 1.7.7 feat(angular): upgrade to Angular 1.7.7 Mar 4, 2019
@redallen redallen changed the title feat(angular): upgrade to Angular 1.7.7 perf(angular): upgrade to Angular 1.7.7 Mar 4, 2019
@@ -1,6 +1,6 @@
/**
* @ngdoc directive
* @name patternfly.card.component:pfAggregateStatusCard
* @name patternfly.card.directive:pfAggregateStatusCard
Copy link
Member

Choose a reason for hiding this comment

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

Why the change to directive? pfAggregateStatusCard does appear to be a component:

angular.module( 'patternfly.card' ).component('pfAggregateStatusCard', {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needed for grunt-ui-docs to even show the component on the generated doc webpage.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah - something changed after angular 1.6 that requires the name match directive now (and components aren't natively supported by grunt-ui-docs or ngdocs)

Copy link
Member

Choose a reason for hiding this comment

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

Ok, thought it was something along those lines

@dtaylor113
Copy link
Member

dtaylor113 commented Mar 4, 2019

Hi @redallen, great work!

I downloaded this branch and ran though most uidoc examples: charts, wizards, toolbar, table, nav, notification drawer, filter, etc... Everything ran as expected! Plus, all unit tests pass, so I think this is ready to go, nice work!

Couple of issues:

  1. You have to squash and change the commit msg(s) to a single: "perf(angular): upgrade to Angular 1.7.7" (not the PR description). Assuming we are going with a Major change (due to # files changed, as opposed to 'breaking changes'.)

  2. I think I have to manually merge this PR, looks like coveralls is failing, not sure why it would though?

Thanks,

  • Dave

@redallen redallen force-pushed the chore/angular-1.7.7 branch from fb84d75 to 2c70d2f Compare March 4, 2019 18:51
@redallen
Copy link
Contributor Author

redallen commented Mar 4, 2019

I just squashed the commit and force pushed. Coveralls was failing because test coverage went down 0.8% (not sure why...)

@dtaylor113
Copy link
Member

Also, pls note that the 'npm publish' step will most likely fail after merge. I will have to create a PR to manually update the version number, similar to #770

@jeff-phillips-18
Copy link
Member

Not sure we need to do a Major release only because of the number of files. If it's non-breaking, there shouldn't be a need to bump the major version.

@dtaylor113
Copy link
Member

Not sure we need to do a Major release only because of the number of files. If it's non-breaking, there shouldn't be a need to bump the major version.

I 'somewhat' agree, but there are a lot of source code changes and dependency version updates. I'm for minimizing risk to existing projects who don't necessarily need angular 1.7.7. Even though all unit tests are passing, I'm concerned dependency version updates may affect existing customers in ways we aren't testing for.

@dtaylor113 dtaylor113 merged commit 45b6ff8 into master Mar 4, 2019
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.

4 participants