-
Notifications
You must be signed in to change notification settings - Fork 29
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
Upgrade api to ember 4.12 #1833
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -82,7 +82,8 @@ | |||
"**/@storybook/**/ansi-regex": "^5.0.1", | |||
"**/jsprim/json-schema": "^0.4.0", | |||
"**/@storybook/**/yuidocjs/markdown-it": "^12.3.2", | |||
"**/ember-cli/markdown-it-terminal/markdown-it": "^12.3.2" | |||
"**/ember-cli/markdown-it-terminal/markdown-it": "^12.3.2", | |||
"**/ember-cli-mirage/@embroider/macros": "^1.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
left a non-blocking question
@@ -10,67 +10,70 @@ | |||
"scripts": { | |||
"build:development": "ember build", | |||
"build": "ember build --environment=production", | |||
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel \"lint:!(fix)\"", | |||
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix", | |||
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None blocking comment: I guess ember-cli
deprecated npm-run-all
and installed concurrently
? or we did so?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this was all ember-cli
😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!! Great upgrade!! first addon to pass the 4.0 and to mebrace newer node support!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
const pluginName = snapshot.attr('plugin')?.name; | ||
if (pluginName) url = `${url}?plugin_name=${pluginName}`; | ||
} catch (e) { | ||
// Ignore any adapter errors here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These try catches are needed now because for some reason, if there's a 404 you get a cache error by just trying to access the snapshot attribute
@@ -124,10 +123,7 @@ module('Acceptance | authentication', function (hooks) { | |||
|
|||
test('visiting auth method when the scope cannot be loaded is still allowed', async function (assert) { | |||
assert.expect(1); | |||
setupOnerror(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this doesn't work anymore, possibly because ember changed what uses ember runloop in the most recent changes and this only catches things on the runloop.
Either way it doesn't appear it's needed in the first place since we weren't mocking the correct route anyways
* chore: 🤖 Upgrade API layer to ember 4.12 * chore: 🤖 Upgrade ember-data to 4.12 * fix: 🐛 Fix breaking change from usage of internal method * chore: 🤖 Remove stylelint in API addon * test: 💍 Fix broken API tests * chore: 🤖 get rid of toArray * test: 💍 Fix tests broken by ember data changes --------- Co-authored-by: dharini <[email protected]>
* chore: 🤖 Upgrade API layer to ember 4.12 * chore: 🤖 Upgrade ember-data to 4.12 * fix: 🐛 Fix breaking change from usage of internal method * chore: 🤖 Remove stylelint in API addon * test: 💍 Fix broken API tests * chore: 🤖 get rid of toArray * test: 💍 Fix tests broken by ember data changes --------- Co-authored-by: dharini <[email protected]>
Description
Initial upgrade of ember and ember-data to 4.12 for API addon.