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

Fix ember-canary error/deprecation #1445

Merged
merged 1 commit into from
Nov 19, 2023
Merged

Fix ember-canary error/deprecation #1445

merged 1 commit into from
Nov 19, 2023

Conversation

chancancode
Copy link
Member

The canary build started failing after emberjs/ember.js#20570 was merged. We were never supposed to pass a TemplateFactory to OutletState, but it was previously tolerated. The pattern was fixed in the pass, but regressed when implementing support for render(<template>...</template>).

No new tests because existing ones are already failing. If we wait till emberjs/ember.js#20577 lands then we should see it turn into a deprecation, and this fix will remove the deprecation.

The canary build started failing after emberjs/ember.js#20570
was merged. We were never supposed to pass a `TemplateFactory` to
`OutletState`, but it was previously tolerated. The pattern was
fixed in the pass, but regressed when implementing support for
`render(<template>...</template>)`.
chancancode added a commit to emberjs/ember.js that referenced this pull request Nov 18, 2023
Fixes #20576

The test is a bit misleading in that, this is not actually restored
to support the very old 1.6.0 version of ember-test-helpers. The
issue is that while that particular spot of the invalid usage was
fixed in 1.6.1, other similarly invalid patterns have popped up in
the code since then. However, the old tests was probably a close
enough approximation of the general problem.

This is not to avoid fixing the actual issue, but it's just that it
was very difficult for us to support for a short time, and there
may be other code that copied the same invalid pattern elsewhere.

See also emberjs/ember-test-helpers#1445
chancancode added a commit to emberjs/ember.js that referenced this pull request Nov 18, 2023
Fixes #20576

The test is a bit misleading in that, this is not actually restored
to support the very old 1.6.0 version of ember-test-helpers. The
issue is that while that particular spot of the invalid usage was
fixed in 1.6.1, other similarly invalid patterns have popped up in
the code since then. However, the old tests was probably a close
enough approximation of the general problem.

This is not to avoid fixing the actual issue, but it's just that it
was very difficult for us to support for a short time, and there
may be other code that copied the same invalid pattern elsewhere.

See also emberjs/ember-test-helpers#1445
chancancode added a commit to emberjs/ember.js that referenced this pull request Nov 18, 2023
Fixes #20576

The test is a bit misleading in that, this is not actually restored
to support the very old 1.6.0 version of ember-test-helpers. The
issue is that while that particular spot of the invalid usage was
fixed in 1.6.1, other similarly invalid patterns have popped up in
the code since then. However, the old tests was probably a close
enough approximation of the general problem.

This is not to avoid fixing the actual issue, but it's just that it
was very difficult for us to support for a short time, and there
may be other code that copied the same invalid pattern elsewhere.

See also emberjs/ember-test-helpers#1445
@chancancode
Copy link
Member Author

https://github.com/emberjs/ember-test-helpers/actions/runs/6911462222/job/18809097106 – it did trigger the deprecation (as intended) but we didn't set it to raise on deprecation

@chancancode chancancode merged commit 99c9e47 into master Nov 19, 2023
16 checks passed
@chancancode chancancode deleted the fix-canary branch November 19, 2023 05:30
chancancode added a commit to chancancode/discourse that referenced this pull request Dec 14, 2023
Mainly we are after emberjs/ember-test-helpers#1445
so the Ember 5 test suite doesn't fail on canary, but also took
some code from emberjs/ember-test-helpers#1378
as needed to make the code make sense.
davidtaylorhq pushed a commit to discourse/discourse that referenced this pull request Jan 3, 2024
Mainly we are after emberjs/ember-test-helpers#1445
so the Ember 5 test suite doesn't fail on canary, but also took
some code from emberjs/ember-test-helpers#1378
as needed to make the code make sense.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants