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: Update Ember/Ember CLI to 3.20 #9641

Merged
merged 14 commits into from
Feb 17, 2021
Merged

UI: Update Ember/Ember CLI to 3.20 #9641

merged 14 commits into from
Feb 17, 2021

Conversation

backspace
Copy link
Contributor

@backspace backspace commented Dec 15, 2020

This doesn’t include Ember Data, as we are still back on 3.12.

Most changes are deprecation updates, linting fixes, and dependencies. It can
be read commit-by-commit, though many of them are mechanical and skimmable.
For the new linting exclusions, I’ve added them to the Tech Debt list.

The decrease in test count is because linting is no longer included in ember test.

There’s a new deprecation warning in the logs that can be fixed by updating Ember
Power Select but when I tried that it caused it to render incorrectly, so I decided to
ignore it for now and address it separately:

DEPRECATION: The use of the private `{{-in-element}}` is deprecated, please refactor to the public `{{in-element}}`. ('ember-basic-dropdown/templates/components/basic-dropdown-content.hbs' @ L1:C0)  [deprecation id: glimmer.private-in-element]

@github-actions
Copy link

github-actions bot commented Dec 15, 2020

Ember Test Audit comparison

master 7d2c00e change
passes 1551 996 -555
failures 0 0 0
flaky 0 0 0
duration 8m 35s 511ms 7m 23s 470ms -1m 12s 041ms

@vercel vercel bot temporarily deployed to Preview – nomad December 15, 2020 20:31 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad December 15, 2020 22:27 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad December 15, 2020 22:49 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad December 15, 2020 23:17 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad December 16, 2020 00:07 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad-storybook-and-ui December 16, 2020 19:03 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad December 16, 2020 19:03 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad December 16, 2020 20:06 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad December 16, 2020 20:26 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad January 11, 2021 21:30 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad-storybook-and-ui January 12, 2021 17:07 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad January 12, 2021 17:07 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad January 13, 2021 16:38 Inactive
This includes reverting to Ember Data 3.12 and simple manual merging.
This includes a name change of `contains` to `includes`.
Without this, the following error was happening:
Expected modifier head to be a string, got [32,1]

Thanks to amk221 on the Ember Discord for mentioning
this solution:
https://discord.com/channels/480462759797063690/608346628163633192/712604682429661194
This fixes an error:
“cannot create a new tag for (thing) after it has been destroyed”

Thanks to the suggestion here:
emberjs/ember.js#16541 (comment)
I also manually fixed the dependent keys for totalMemoryUnits
including a spurious totalCPU.
This is just a naming clash, these aren’t the now-forbidden
testing modules.
I guess autofix couldn’t handle them being nested…?
The linked issue is still open 😳
From the Ember Discord, pzuraq:
If you don’t return a value, it’ll rerun the getter
Which IMO is better, if a little more expensive

https://discord.com/channels/480462759797063690/608346628163633192/751200673323810927

These don’t seem onerous to rerun, so I’ve removed them.
After reconstructing this update on the main branch, I was
getting this failure when trying to run anything:

_helperPluginUtils.declare is not a function

Another mysterious Babel failure that required clearing
the lockfile 😞
Copy link
Contributor

@DingoEatingFuzz DingoEatingFuzz left a comment

Choose a reason for hiding this comment

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

This looks nice and straightforward and all the tests pass ✨

There are just a couple extra long lines that were probably introduced by tooling.

@@ -23,7 +23,7 @@ export default class AgentMonitor extends Component {
isStreaming = true;
logger = null;

@computed('level', 'client.id', 'server.id')
@computed('client.id', 'level', 'server.{id,region}')
Copy link
Contributor

Choose a reason for hiding this comment

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

Does eslint expect dependent keys to be sorted now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is an autofix situation where it added the missing server.region dependent key and also brace expansion, when it rewrites it doesn’t care about existing ordering, I guess. I can change it to stay in the same order if preferable!

'activeTaskStates.@each.name',
'activeTasks.@each.name',
'activeTaskGroups.@each.name'
'activeTaskGroups.@each.name', 'activeTaskStates.@each.name', 'activeTasks.@each.name', 'taskGroup.{name,tasks}'
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, is there a prettier vs. eslint battle going on? This line exceeds our 100 character rule.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

eep… it seems as though Prettier didn’t run on this autofix change (and others, probably…) I’ll add another commit to fix these 😞 thanks for pointing it out

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, I added 7d2c00e with line length fixes for a few files. I wish I knew why this happened.

I found 23 other files with Prettier autofixes, could be a separate PR at some point 🤔

import attr from 'ember-data/attr';
import { belongsTo, hasMany } from 'ember-data/relationships';
import Model from '@ember-data/model';
import { attr, belongsTo, hasMany } from '@ember-data/model';
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm a big fan of this packaging change.

Why were these missed in the original commits? 🤔
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants