Skip to content

Add uib prefixes in accordance to migration guide #353

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

Conversation

jjlangholtz
Copy link
Contributor

Migrate deprecated angular-ui-bootstrap usage to new uib-prefixed
versions. Most of the changes apply to dropdowns, modals and tooltips.

Also remove classes and aria attributes that are added during link phase
for dropdown directives.

Tested against latest ManageIQ Service UI and was not able to locate any
issues.

https://github.com/angular-ui/bootstrap/wiki/Migration-guide-for-prefixes

Migrate deprecated `angular-ui-bootstrap` usage to new `uib`-prefixed
versions. Most of the changes apply to dropdowns, modals and tooltips.

Also remove classes and aria attributes that are added during link phase
for dropdown directives.

Tested against latest ManageIQ Service UI and was not able to locate any
issues.

https://github.com/angular-ui/bootstrap/wiki/Migration-guide-for-prefixes
jjlangholtz added a commit to jjlangholtz/manageiq-ui-service that referenced this pull request Dec 1, 2016
Upgrade to the most recent version of `angular-ui-bootstrap`. This
includes a significant number of bug fixes and improvements for a
library that we heavily use.

The biggest breaking change for the upgrade is the addition of a `uib`
prefix to all of `angular-ui-bootstrap` directives. This PR updates all
deprecated usage to the new version.

Because another dependency `angular-patternfly` is still using an older
version of `angular-ui-bootstrap`, a few minor things will not work
until the upgrade is complete there (the about modal and some tooltips).

A PR is open to make the changes there so hopefully it will be updated
in the next release patternfly/angular-patternfly#353

https://github.com/angular-ui/bootstrap/wiki/Migration-guide-for-prefixes
@dtaylor113
Copy link
Member

Hi @jjlangholtz, funny we were just discussing this week how/when to upgrade to latest angular-ui-bootstrap. Thanks for starting this effort! 👍
However, I don't see where you actually updated the ui-bootstrap version in bower.json ?
Thanks,

  • Dave

@jjlangholtz
Copy link
Contributor Author

@dtaylor113 I believe the version was already bumped in a recent PR https://github.com/patternfly/angular-patternfly/blob/master/bower.json#L43, I was thinking that it could actually be bumped to the latest version 2.2.0 but I believe that would be a breaking change for clients of angular-patternfly and should probably involve a version bump here as well.

@dtaylor113
Copy link
Member

Hi @jjlangholtz, you are correct, we did just update to angular-bootstrap "0.14.x". The migration guide says the new prefixes were introduced in 0.14, so it seems like release 0.14 works with and without the 'uib-' prefixes?
Thanks,

  • Dave

@jjlangholtz
Copy link
Contributor Author

@dtaylor113 so it looks for the 0.14.x series both versions are supported, but usage of the non-prefixed versions shows deprecation warnings in the console. For versions 1.x and above the non-prefixed versions are not supported.

jjlangholtz added a commit to jjlangholtz/manageiq-ui-service that referenced this pull request Dec 1, 2016
Upgrade to the most recent version of `angular-ui-bootstrap`. This
includes a significant number of bug fixes and improvements for a
library that we heavily use.

The biggest breaking change for the upgrade is the addition of a `uib`
prefix to all of `angular-ui-bootstrap` directives. This PR updates all
deprecated usage to the new version.

Because another dependency `angular-patternfly` is still using an older
version of `angular-ui-bootstrap`, a few minor things will not work
until the upgrade is complete there (about modal, toolbar, and tooltips).

A PR is open to make the changes there so hopefully it will be updated
in the next release patternfly/angular-patternfly#353

https://github.com/angular-ui/bootstrap/wiki/Migration-guide-for-prefixes
jjlangholtz added a commit to jjlangholtz/manageiq-ui-service that referenced this pull request Dec 1, 2016
Upgrade to the most recent version of `angular-ui-bootstrap`. This
includes a significant number of bug fixes and improvements for a
library that we heavily use.

The biggest breaking change for the upgrade is the addition of a `uib`
prefix to all of `angular-ui-bootstrap` directives. This PR updates all
deprecated usage to the new version.

Because another dependency `angular-patternfly` is still using an older
version of `angular-ui-bootstrap`, a few minor things will not work
until the upgrade is complete there (about modal, toolbar, and tooltips).

A PR is open to make the changes there so hopefully it will be updated
in the next release patternfly/angular-patternfly#353

https://github.com/angular-ui/bootstrap/wiki/Migration-guide-for-prefixes
@dtaylor113
Copy link
Member

dtaylor113 commented Dec 2, 2016

Hi @jjlangholtz, thanks for the uib prefix info.

Cloned this branch, unit tests all passed, but saw the following issues when reviewing the ngdoc examples (grunt ngdocs:view):

  • pfCard - Timeframe Filters: The "Last n Days" dropdowns do not open. Here is a working example
  • pfCard - Trends: The "Last 15 Days" dropdown doesn't open.

All other ngdoc examples seem to be running fine 😄
Thanks,
Dave

Copy link
Member

@jeff-phillips-18 jeff-phillips-18 left a comment

Choose a reason for hiding this comment

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

👍

@jeff-phillips-18 jeff-phillips-18 merged commit f831564 into patternfly:master Dec 2, 2016
jjlangholtz added a commit to jjlangholtz/manageiq-ui-service that referenced this pull request Dec 5, 2016
Upgrade to the most recent version of `angular-ui-bootstrap`. This
includes a significant number of bug fixes and improvements for a
library that we heavily use.

The biggest breaking change for the upgrade is the addition of a `uib`
prefix to all of `angular-ui-bootstrap` directives. This PR updates all
deprecated usage to the new version.

Because another dependency `angular-patternfly` is still using an older
version of `angular-ui-bootstrap`, a few minor things will not work
until the upgrade is complete there (about modal, toolbar, and tooltips).

A PR is open to make the changes there so hopefully it will be updated
in the next release patternfly/angular-patternfly#353

https://github.com/angular-ui/bootstrap/wiki/Migration-guide-for-prefixes
jjlangholtz added a commit to jjlangholtz/angular-patternfly that referenced this pull request Dec 5, 2016
Remove intermediate `div` used to `ng-include` the card filter partial.
The angular-ui-bootstrap dropdown directives require the `uib-dropdown`
directive to be a direct parent of the toggle and menu directives. This
change conditionally loads the card filter template without splitting
the `uib` dropdown directives.

Issue was raised here:

patternfly#353
jjlangholtz added a commit to jjlangholtz/manageiq-ui-service that referenced this pull request Dec 7, 2016
Upgrade to the most recent version of `angular-ui-bootstrap`. This
includes a significant number of bug fixes and improvements for a
library that we heavily use.

The biggest breaking change for the upgrade is the addition of a `uib`
prefix to all of `angular-ui-bootstrap` directives. This PR updates all
deprecated usage to the new version.

Because another dependency `angular-patternfly` is still using an older
version of `angular-ui-bootstrap`, a few minor things will not work
until the upgrade is complete there (about modal, toolbar, and tooltips).

A PR is open to make the changes there so hopefully it will be updated
in the next release patternfly/angular-patternfly#353

https://github.com/angular-ui/bootstrap/wiki/Migration-guide-for-prefixes
jjlangholtz added a commit to jjlangholtz/manageiq-ui-service that referenced this pull request Dec 8, 2016
Upgrade to the most recent version of `angular-ui-bootstrap`. This
includes a significant number of bug fixes and improvements for a
library that we heavily use.

The biggest breaking change for the upgrade is the addition of a `uib`
prefix to all of `angular-ui-bootstrap` directives. This PR updates all
deprecated usage to the new version.

Because another dependency `angular-patternfly` is still using an older
version of `angular-ui-bootstrap`, a few minor things will not work
until the upgrade is complete there (about modal, toolbar, and tooltips).

A PR is open to make the changes there so hopefully it will be updated
in the next release patternfly/angular-patternfly#353

https://github.com/angular-ui/bootstrap/wiki/Migration-guide-for-prefixes
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.

3 participants