Skip to content

fix(core): remove deprecated annotation for TestBed.get - #30514

Closed
cexbrayat wants to merge 1 commit into
angular:masterfrom
cexbrayat:fix/29905-test-bed-get
Closed

cexbrayat wants to merge 1 commit into
angular:masterfrom
cexbrayat:fix/29905-test-bed-get

Conversation

@cexbrayat

Copy link
Copy Markdown
Member

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: #29905 and FW-1336

What is the new behavior?

PR #29290 introduced a new TestBed.get signature and deprecated the existing one.
This raises a lot of TSLint deprecation warnings in projects using a strict TS config (see #29905 for context), so we are temporarily removing the @deprecated annotation in favor of a plain text warning until we properly fix it.

Does this PR introduce a breaking change?

  • Yes
  • No

@cexbrayat
cexbrayat requested a review from a team May 16, 2019 15:41
@cexbrayat
cexbrayat force-pushed the fix/29905-test-bed-get branch from 832f78f to 4249ec7 Compare May 16, 2019 15:45
@cexbrayat
cexbrayat requested a review from a team May 16, 2019 15:45
@jasonaden jasonaden added the area: core Issues related to the framework runtime label May 16, 2019
@ngbot ngbot Bot added this to the needsTriage milestone May 16, 2019

@kara kara left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor nit

Comment thread packages/core/testing/src/test_bed.ts Resolved
@kara kara added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews target: patch This PR is targeted for the next patch release labels May 17, 2019
@cexbrayat
cexbrayat force-pushed the fix/29905-test-bed-get branch from 4249ec7 to 9b11f49 Compare May 17, 2019 18:51
@cexbrayat cexbrayat removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label May 17, 2019
@cexbrayat
cexbrayat requested a review from kara May 17, 2019 18:55
@cexbrayat cexbrayat removed their assignment May 17, 2019

@kara kara left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, though we should still get a public API review from @IgorMinar

@kara kara added action: review The PR is still awaiting reviews from at least one requested reviewer risk: medium labels May 17, 2019

@IgorMinar IgorMinar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I also suggest that you rename the commit message to "fix(core): temporarily remove @deprecated jsdoc tag for a TextBed.get overload"

Comment thread packages/core/testing/src/test_bed.ts Resolved
@IgorMinar IgorMinar added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels May 18, 2019
@IgorMinar IgorMinar modified the milestones: needsTriage, version 8 May 18, 2019
… overload

PR angular#29290 introduced a new `TestBed.get` signature and deprecated the existing one.
This raises a lot of TSLint deprecation warnings in projects using a strict TS config (see angular#29905 for context), so we are temporarily removing the `@deprecated` annotation in favor of a plain text warning until we properly fix it.

Refs angular#29905
Fixes FW-1336
@cexbrayat
cexbrayat force-pushed the fix/29905-test-bed-get branch from 9b11f49 to 7f50ab1 Compare May 18, 2019 08:56
@cexbrayat
cexbrayat requested a review from IgorMinar May 18, 2019 08:58
@cexbrayat cexbrayat removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label May 18, 2019
@cexbrayat

Copy link
Copy Markdown
Member Author

@IgorMinar I updated the doc to mention the TSLint issue according to your feedback and changed the commit message.

@IgorMinar IgorMinar added the action: merge The PR is ready for merge by the caretaker label May 20, 2019
@IgorMinar IgorMinar added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label May 20, 2019
@ngbot

ngbot Bot commented May 20, 2019

Copy link
Copy Markdown

I see that you just added the PR action: merge label, but the following checks are still failing:
    failure status "ci-codefresh-bazel" is failing
    failure status "ci/angular: size" is failing
    pending status "codefresh-angular" is pending
    pending status "google3" is pending

If you want your PR to be merged, it has to pass all the CI checks.

If you can't get the PR to a green state due to flakes or broken master, please try rebasing to master and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help.

@IgorMinar

Copy link
Copy Markdown
Contributor

merge-assistance: ci is flaky

@jasonaden jasonaden closed this in f6bf892 May 21, 2019
jasonaden pushed a commit that referenced this pull request May 21, 2019
… overload (#30514)

PR #29290 introduced a new `TestBed.get` signature and deprecated the existing one.
This raises a lot of TSLint deprecation warnings in projects using a strict TS config (see #29905 for context), so we are temporarily removing the `@deprecated` annotation in favor of a plain text warning until we properly fix it.

Refs #29905
Fixes FW-1336

PR Close #30514
cexbrayat added a commit to cexbrayat/angular that referenced this pull request May 29, 2019
…ic.get overload

Followup to angular#30514 which did the same for `TestBed`, but `TestBedStatic` was necessary too.
AndrewKushnir pushed a commit that referenced this pull request Jun 14, 2019
…ic.get overload (#30714)

Followup to #30514 which did the same for `TestBed`, but `TestBedStatic` was necessary too.

PR Close #30714
AndrewKushnir pushed a commit that referenced this pull request Jun 14, 2019
…ic.get overload (#30714)

Followup to #30514 which did the same for `TestBed`, but `TestBedStatic` was necessary too.

PR Close #30714
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime cla: yes merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note risk: medium target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants