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

Updated patternfly to v3.23 #402

Merged
merged 1 commit into from
Mar 27, 2017
Merged

Conversation

skateman
Copy link
Member

@skateman skateman commented Feb 16, 2017

Merge together with: ManageIQ/manageiq#13940
Related issue: #400

Closes #400

@skateman
Copy link
Member Author

@miq-bot assign @himdel

@himdel himdel self-assigned this Feb 16, 2017
@himdel himdel added the euwe/no label Feb 16, 2017
@himdel
Copy link
Contributor

himdel commented Feb 16, 2017

Hakiri issues are not caused by this PR and look like false positives .. @martinpovolny ?

@himdel
Copy link
Contributor

himdel commented Feb 16, 2017

The notification icon is completely gone, and the indicator is offset..

notification

fixed by 3.21

@himdel
Copy link
Contributor

himdel commented Feb 16, 2017

Ok, this will be problematic...

master:
vmi_w_lifecycle-master
(ignore the black rectangle)

pf320:
vmi_w_lifecycle

(diff:
diff
)

  • the font has changed (which is possibly OK, idk)
  • quadicon quads have moved a few pixels to the bottom
  • quadicon checkboxes have moved upwards
  • the search bar is about 20% wider
  • tree items have moved a few pixels upwards

@himdel
Copy link
Contributor

himdel commented Feb 16, 2017

vm_infra list view is too wide now:

listview-wide

nope, happens on master too

@himdel
Copy link
Contributor

himdel commented Feb 16, 2017

all topology screens are broken

topology

fixed by 3.21

@himdel
Copy link
Contributor

himdel commented Feb 16, 2017

The bottom accordion looks cut off

accord_bottom

@himdel
Copy link
Contributor

himdel commented Feb 16, 2017

In fact.. all the angular screens are broken :)

angular

Will investigate more...

fixed by 3.21

@yaacov
Copy link
Member

yaacov commented Feb 18, 2017

They have a fix for something similar:
patternfly/angular-patternfly#422
It looks like we will have to wait for a new release :-(

@yaacov
Copy link
Member

yaacov commented Feb 21, 2017

@skateman skateman changed the title Updated patternfly to v3.20 Updated patternfly to v3.21 Feb 21, 2017
@mzazrivec
Copy link
Contributor

@karelhala What's your take on this one? Is it ok to go?

bower.json Outdated
@@ -22,7 +22,7 @@
"angular-bootstrap-switch": "~0.5.1",
"angular-dragdrop": "~1.0.13",
"angular-mocks": "~1.5.8",
"angular-patternfly-sass": "~3.15.0",
"angular-patternfly-sass": "~3.21.0",
Copy link
Member

@yaacov yaacov Feb 24, 2017

Choose a reason for hiding this comment

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

are we missing
"angular-drag-and-drop-lists": "2.0.0",
line ?
I can't find it , but I do not know if we need it :-) see:
https://github.com/patternfly/angular-patternfly/pull/422/files

Copy link
Member Author

Choose a reason for hiding this comment

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

It's there, I'm just not keeping the stuff in master 😉

Copy link
Member

Choose a reason for hiding this comment

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

👍 thanks

@karelhala
Copy link
Contributor

karelhala commented Feb 24, 2017

Can confirm that adding //= require angular-drag-and-drop-lists to application.js fixed the problems
#402 (comment) (missing notification icon)
#402 (comment) (error in angular screen)
#402 (comment) (broken angular screens)

@martinpovolny
Copy link
Member

Reopening for Hakiri.

@himdel
Copy link
Contributor

himdel commented Mar 2, 2017

So.. I've tested in UI, including the production branch.. and it seems to work completely now, so...

@martinpovolny can you merge both PRs please? (ManageIQ/manageiq#13940)

(I still hate the new font, but .. nothing is really broken, so..)

EDIT: don't, not yet..

@himdel
Copy link
Contributor

himdel commented Mar 3, 2017

So, @skateman this will be harder.

Basically, you have to do this: https://github.com/angular-ui/bootstrap/wiki/Migration-guide-for-prefixes

Every single place where we use ui-bootstrap directives is broken now, and these need to be renamed.

( https://github.com/patternfly/angular-patternfly/releases?after=v3.17.0 - 3.16.0 updated to newer version of angular-ui-bootstrap)

(You can check by going to Compute > Containers > Provider - pick one - toolbar Monitoring > Ad hoc Metrics .. the tenant input should have a typeahead, but doesn't with new PF)

@martinpovolny
Copy link
Member

What I don't understand here is: Why would someone do such breaking changes in a minor version?

I would expect patternly to be in maintenance mode and do only fixes. But I probably misunderstood the plans there :-(

ping @serenamarie125

@serenamarie125
Copy link

@martinpovolny Have you guys pinged anyone in PatternFly ? I agree that this doesn't make sense in a minor release. @jeff-phillips-18 are you aware of this change? I'm happy to contact PatternFly on this matter, but want to understand more details if possible

@himdel
Copy link
Contributor

himdel commented Mar 8, 2017

The good thing is that if we force angular-ui-bootstrap back to 0.13.*, we get warnings for these things (but risk incompatibilities).
Another good thing, only dropdown-menu can be a class, the rest is restricted to elements or attributes only (thus hopefully easier to search for)...

@himdel
Copy link
Contributor

himdel commented Mar 8, 2017

(note to self: https://gist.github.com/himdel/d6467c0da7ef670952dcc667b4b5fe58 .. angular-ui-bootstrap comes from gem and bower now)

@jeff-phillips-18
Copy link
Member

@martinpovolny @serenamarie125 My understanding is with angular bootstrap 0.14.x you can use either the uib prefixes or continue with the older style so this is not a breaking change.

@martinpovolny
Copy link
Member

@himdel : can we keep using the old style?

@himdel
Copy link
Contributor

himdel commented Mar 10, 2017

Not sure, I tried and it didn't work, @skateman says the same. But I'll have to recheck, maybe there was a some dependency conflict that caused bower to install a much newer version...

@skateman skateman changed the title Updated patternfly to v3.21 Updated patternfly to v3.23 Mar 22, 2017
@miq-bot
Copy link
Member

miq-bot commented Mar 22, 2017

Checked commit skateman@8e4235c with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
0 files checked, 0 offenses detected
Everything looks good. 🍰

@skateman
Copy link
Member Author

Seems like all the errors are gone since 3.23.0...

@epwinchell
Copy link
Contributor

@himdel Tested. This one looks good.

@himdel himdel assigned martinpovolny and unassigned himdel Mar 27, 2017
@himdel
Copy link
Contributor

himdel commented Mar 27, 2017

pficon-info

So.. the info icon looks a bit broken.

But that's the only issue I can find, so.. yeah.. @martinpovolny feel free to merge please... (together with ManageIQ/manageiq#13940)

(We can always replace by glyphicon glyphicon-info-sign (or fa fa-info) and add .alert > .glyphicon {font-size: 22px; position: absolute; left: 13px; top: 10px; } to our css.)

EDIT: should be fixed in the next release - patternfly/patternfly#621

@martinpovolny martinpovolny added this to the Sprint 57 Ending Mar 27, 2017 milestone Mar 27, 2017
@martinpovolny martinpovolny merged commit 97d62f1 into ManageIQ:master Mar 27, 2017
@skateman skateman deleted the patternfly-3.20 branch March 28, 2017 07:21
@moolitayer
Copy link

moolitayer commented Apr 2, 2017

@skateman
Copy link
Member Author

skateman commented Apr 2, 2017

Yup, this was merged before the fine branch was made

@yaacov
Copy link
Member

yaacov commented Apr 2, 2017

@yaacov BTW I see this is already in fine:

@moolitayer @skateman thanks, all the regression in the ad-hoc metrics page, related to patternfly v3.23 update, are fixed merged and backported to fine 🥇

p.s.
I can now remove the hack I did for the charts to work with older versions of patternfly, I forgot about that :-)

@skateman
Copy link
Member Author

skateman commented Apr 2, 2017

@yaacov Fine 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.