Skip to content

test(docs-infra): add unit tests for rxjs examples - #38905

Closed
sonukapoor wants to merge 4 commits into
angular:masterfrom
sonukapoor:unit-tests-for-rx-library
Closed

sonukapoor wants to merge 4 commits into
angular:masterfrom
sonukapoor:unit-tests-for-rx-library

Conversation

@sonukapoor

Copy link
Copy Markdown
Contributor

This commit adds missing unit tests for all rxjs examples from the docs.

Closes #28017

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Documentation content changes

Does this PR introduce a breaking change?

  • Yes
  • No

@sonukapoor
sonukapoor marked this pull request as ready for review September 19, 2020 12:42
@pullapprove
pullapprove Bot requested a review from alxhub September 19, 2020 12:42
@sonukapoor
sonukapoor requested review from gkalpak and removed request for alxhub September 19, 2020 12:42
@pullapprove
pullapprove Bot requested a review from alxhub September 19, 2020 12:42
@sonukapoor sonukapoor added comp: docs-infra refactoring Issue that involves refactoring or code-cleanup labels Sep 19, 2020
@ngbot ngbot Bot modified the milestone: needsTriage Sep 19, 2020
@sonukapoor sonukapoor added the target: patch This PR is targeted for the next patch release label Sep 19, 2020
@gkalpak gkalpak added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 19, 2020

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thx, @sonukappor!

Awesome to see that these tests provide immediate value by finding broken examples (such as the retry-on-error one) 🎉

Please update the commit message to mention that this PR is targeting the rx-library example specifically.

@gkalpak gkalpak added state: WIP and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 19, 2020
@sonukapoor
sonukapoor force-pushed the unit-tests-for-rx-library branch 3 times, most recently from 62fc8a4 to 79741b1 Compare September 20, 2020 14:03
@sonukapoor
sonukapoor requested a review from gkalpak September 20, 2020 14:06
@sonukapoor
sonukapoor force-pushed the unit-tests-for-rx-library branch 4 times, most recently from c19bc48 to 015e251 Compare September 20, 2020 23:26

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reminder to self: #38905 (comment) is still pending.

@sonukapoor
sonukapoor force-pushed the unit-tests-for-rx-library branch from 49c8389 to e7a7160 Compare September 22, 2020 00:02
@sonukapoor
sonukapoor requested a review from gkalpak September 22, 2020 00:03
@sonukapoor
sonukapoor force-pushed the unit-tests-for-rx-library branch from e7a7160 to 5cda081 Compare September 22, 2020 12:02

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

#38905 (comment) doesn't seem to have been addressed.

Reminder to self: #38905 (comment) is still pending.

@sonukapoor
sonukapoor requested a review from gkalpak September 26, 2020 18:32

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

#38905 (comment) doesn't seem to have been addressed.

Reminder to self: #38905 (comment) is still pending.

sonukapoor and others added 3 commits September 28, 2020 17:58
This commit adds missing unit tests for all rx-library examples from the docs.

Closes angular#28017
This commit adds an extra test for the `retry-on-error` snippet of the
`rx-library` docs example to ensure it can successfully recover after a
couple of failed attempts.

This commit addresses comment
angular#38905 (comment).
@gkalpak
gkalpak force-pushed the unit-tests-for-rx-library branch from 30a7212 to e0e139d Compare September 28, 2020 16:35
@googlebot

This comment has been minimized.

@gkalpak

This comment has been minimized.

@googlebot

This comment has been minimized.

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM :shipit:
Thank you, @sonukapoor, for getting everything sorted out ❤️

Reviewed-for: global-docs-approvers

@gkalpak
gkalpak removed the request for review from alxhub September 28, 2020 16:38
@gkalpak gkalpak 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 state: WIP labels Sep 28, 2020
@gkalpak

gkalpak commented Sep 28, 2020

Copy link
Copy Markdown
Member

@sonukapoor: FYI, I rebased this on master, squashed fixup commits, added a new fixup commit with some minor clean-up and added a new commit with the test we discussed in #38905 (comment).

Please, take a look and confirm this looks good to you 👀

@sonukapoor

Copy link
Copy Markdown
Contributor Author

@sonukapoor: FYI, I rebased this on master, squashed fixup commits, added a new fixup commit with some minor clean-up and added a new commit with the test we discussed in #38905 (comment).

Please, take a look and confirm this looks good to you 👀

LGTM. Thanks @gkalpak

@gkalpak gkalpak added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Sep 28, 2020
@alxhub alxhub closed this in 5ef2c98 Sep 28, 2020
alxhub pushed a commit that referenced this pull request Sep 28, 2020
This commit adds missing unit tests for all rx-library examples from the docs.

Closes #28017

PR Close #38905
alxhub pushed a commit that referenced this pull request Sep 28, 2020
…38905)

This commit adds an extra test for the `retry-on-error` snippet of the
`rx-library` docs example to ensure it can successfully recover after a
couple of failed attempts.

This commit addresses comment
#38905 (comment).

PR Close #38905
alxhub pushed a commit that referenced this pull request Sep 28, 2020
Previously, the `retry` example did not work as intended. The `retry`
operator was called before the exception occured, thus not retrying the
`ajax` request.

This commit moves the `retry` operator into the correct order to ensure
that the failed request is retried.

PR Close #38905
alxhub pushed a commit that referenced this pull request Sep 28, 2020
This commit adds missing unit tests for all rx-library examples from the docs.

Closes #28017

PR Close #38905
alxhub pushed a commit that referenced this pull request Sep 28, 2020
…38905)

This commit adds an extra test for the `retry-on-error` snippet of the
`rx-library` docs example to ensure it can successfully recover after a
couple of failed attempts.

This commit addresses comment
#38905 (comment).

PR Close #38905
@sonukapoor
sonukapoor deleted the unit-tests-for-rx-library branch September 28, 2020 20:20
@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 Oct 29, 2020
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 cla: yes refactoring Issue that involves refactoring or code-cleanup target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: add tests for RxJS guide examples

3 participants