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: Ember Deprecation - Remove A import from ember/array #25788

Merged
merged 2 commits into from
Mar 8, 2024

Conversation

hashishaw
Copy link
Contributor

@hashishaw hashishaw commented Mar 5, 2024

Ember-Data 4.12 deprecated the use of A(), on ember-data ArrayLike class, so this PR removes A() instances. filterBy was already replaced in a prior PR

  • Ent tests pass locally

@hashishaw hashishaw added this to the 1.17.0-rc milestone Mar 5, 2024
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Mar 5, 2024
import { capitalize } from '@ember/string';

const DEFAULTS = {
token: null,
rewrap_token: null,
errors: A(),
errors: null,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this component (and others with a similar pattern) this.errors is set to null in the component lifecycle, so null seems like a reasonable default.

Copy link

github-actions bot commented Mar 5, 2024

Build Results:
All builds succeeded! ✅

Copy link

github-actions bot commented Mar 5, 2024

CI Results:
All Go tests succeeded! ✅

Copy link
Contributor

@hellobontempo hellobontempo left a comment

Choose a reason for hiding this comment

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

Nice work! Looks good once enterprise tests are ✅

@hashishaw hashishaw merged commit 8b715c7 into main Mar 8, 2024
30 of 31 checks passed
@hashishaw hashishaw deleted the ui/24448/remove-A-import branch March 8, 2024 21:59
@hashishaw hashishaw mentioned this pull request May 6, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed pr/no-changelog ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants