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

ui: Upgrade to ember 3.16 Octane Edition #7334

Merged
merged 9 commits into from
Feb 21, 2020
Merged

Conversation

johncowen
Copy link
Contributor

@johncowen johncowen commented Feb 21, 2020

This PR upgrade ember to 3.16 and moves us to the Octane edition.

Whilst not yet LTS we understand this will become the next LTS towards the end of March. Therefore this gives us time to run 3.16 whilst we iterate on features for the next release of the UI, and by the time we release this version will be the LTS version.

We made some minor changes here:

  1. ember-power-select now requires onChange rather than onchange.
  2. We found a strange bug where you couldn't maintain ember-power-select in open state when it was within a label, only within our text editor. I found that adding an empty for="" to the label solved this issue.
  3. Update some tests to use the new style of textContent assertions and standardize on the test naming for helpers.
  4. Our EventSources were no longer being cleaned up on destruction during testing, so we added some additional code here to explicitly clean those up on destruction.
  5. We disabled quite a few template linting rules. Whilst we would like to get onto a 3.16 ember, we would really like to concentrate on feature work whilst we test 3.16 out, rather than spend too much time cleaning up templates due to new rules. We plan on gradually re-enabling these over time with the help of some template codemods.

John Cowen added 9 commits February 21, 2020 14:21
When clicking on the syntax selector, it seemed like an extra click
event was firing from the label, which then immediately closed the
dropdown. By adding a for="" attribute this event isn't passed to the
dropdown menu and therefore doesn't immediately close
@johncowen johncowen added the theme/ui Anything related to the UI label Feb 21, 2020
@johncowen johncowen requested a review from a team February 21, 2020 15:03
@johncowen johncowen marked this pull request as ready for review February 21, 2020 15:03
Copy link
Contributor

@kaxcode kaxcode left a comment

Choose a reason for hiding this comment

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

:shipit: 🚀 LGTM

@johncowen johncowen merged commit b3fcf17 into ui-staging Feb 21, 2020
@johncowen johncowen deleted the ui/feature/ember-3-16 branch February 21, 2020 16:48
johncowen added a commit that referenced this pull request Mar 18, 2020
* v3.12.0...v3.16.0

* Upgrades

* Remove old wormhole fix

* Fixup ember power select (camelcasing)

* Fixup immedaitely closing dropdown

When clicking on the syntax selector, it seemed like an extra click
event was firing from the label, which then immediately closed the
dropdown. By adding a for="" attribute this event isn't passed to the
dropdown menu and therefore doesn't immediately close

* Fix up integration tests with new style (plus standardize titles)

* Temporarily disable some template linting rules

* Add required methods (even though they aren't used anywhere)

* Ensure event sources get closed on destruction
johncowen added a commit that referenced this pull request Apr 6, 2020
* v3.12.0...v3.16.0

* Upgrades

* Remove old wormhole fix

* Fixup ember power select (camelcasing)

* Fixup immedaitely closing dropdown

When clicking on the syntax selector, it seemed like an extra click
event was firing from the label, which then immediately closed the
dropdown. By adding a for="" attribute this event isn't passed to the
dropdown menu and therefore doesn't immediately close

* Fix up integration tests with new style (plus standardize titles)

* Temporarily disable some template linting rules

* Add required methods (even though they aren't used anywhere)

* Ensure event sources get closed on destruction
johncowen added a commit that referenced this pull request Apr 8, 2020
* v3.12.0...v3.16.0

* Upgrades

* Remove old wormhole fix

* Fixup ember power select (camelcasing)

* Fixup immedaitely closing dropdown

When clicking on the syntax selector, it seemed like an extra click
event was firing from the label, which then immediately closed the
dropdown. By adding a for="" attribute this event isn't passed to the
dropdown menu and therefore doesn't immediately close

* Fix up integration tests with new style (plus standardize titles)

* Temporarily disable some template linting rules

* Add required methods (even though they aren't used anywhere)

* Ensure event sources get closed on destruction
kaxcode pushed a commit that referenced this pull request Apr 20, 2020
* v3.12.0...v3.16.0

* Upgrades

* Remove old wormhole fix

* Fixup ember power select (camelcasing)

* Fixup immedaitely closing dropdown

When clicking on the syntax selector, it seemed like an extra click
event was firing from the label, which then immediately closed the
dropdown. By adding a for="" attribute this event isn't passed to the
dropdown menu and therefore doesn't immediately close

* Fix up integration tests with new style (plus standardize titles)

* Temporarily disable some template linting rules

* Add required methods (even though they aren't used anywhere)

* Ensure event sources get closed on destruction
johncowen added a commit that referenced this pull request Apr 30, 2020
* v3.12.0...v3.16.0

* Upgrades

* Remove old wormhole fix

* Fixup ember power select (camelcasing)

* Fixup immedaitely closing dropdown

When clicking on the syntax selector, it seemed like an extra click
event was firing from the label, which then immediately closed the
dropdown. By adding a for="" attribute this event isn't passed to the
dropdown menu and therefore doesn't immediately close

* Fix up integration tests with new style (plus standardize titles)

* Temporarily disable some template linting rules

* Add required methods (even though they aren't used anywhere)

* Ensure event sources get closed on destruction
kaxcode pushed a commit that referenced this pull request May 11, 2020
* v3.12.0...v3.16.0

* Upgrades

* Remove old wormhole fix

* Fixup ember power select (camelcasing)

* Fixup immedaitely closing dropdown

When clicking on the syntax selector, it seemed like an extra click
event was firing from the label, which then immediately closed the
dropdown. By adding a for="" attribute this event isn't passed to the
dropdown menu and therefore doesn't immediately close

* Fix up integration tests with new style (plus standardize titles)

* Temporarily disable some template linting rules

* Add required methods (even though they aren't used anywhere)

* Ensure event sources get closed on destruction
johncowen added a commit that referenced this pull request May 12, 2020
* v3.12.0...v3.16.0

* Upgrades

* Remove old wormhole fix

* Fixup ember power select (camelcasing)

* Fixup immedaitely closing dropdown

When clicking on the syntax selector, it seemed like an extra click
event was firing from the label, which then immediately closed the
dropdown. By adding a for="" attribute this event isn't passed to the
dropdown menu and therefore doesn't immediately close

* Fix up integration tests with new style (plus standardize titles)

* Temporarily disable some template linting rules

* Add required methods (even though they aren't used anywhere)

* Ensure event sources get closed on destruction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/ui Anything related to the UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants