rxjs empty() function is deprecated

Bug #1991344 reported by Jane Sandberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned

Bug Description

Here is the documentation: https://rxjs.dev/api/index/function/empty

In most cases, the fix should be very simple:
1) Import EMPTY instead of empty
2) Change empty() to EMPTY in the typescript code

I don't think this will bite us anytime soon (it's scheduled for removal in rxjs 8, and Angular 14 is still on rxjs 6). But it's some low-hanging future-proofing fruit.

description: updated
Revision history for this message
Shula Link (slink-g) wrote :
tags: added: pullrequest
Revision history for this message
Shula Link (slink-g) wrote :
Revision history for this message
Jason Stephenson (jstephenson) wrote :

Shula, this is great!

I have a couple of suggestions regarding the commit messages that will make things easier for reviewrs and committers:

It's customary for us to put the Launchpad Bug number at the beginning of the first line of the commit message, likes so:

LP1991344: ....

You will see several variations on how that's done, but it's a useful cue that the commit comes from a LP bug and makes it easy to look up the bug in case anyone has any questions about it.

It's also useful to provide a brief sentence or two about why the change is being made in the lines below the first line of the commit message. This way the final committer or tester may not have to refer to the Lp bug to know what's going on.

If you can link to the branch rather than individual commits when adding links to Launchpad comments, that helps with possibly avoiding missed code, etc.

If you'd like to make those changes and want any help, feel free to bug Dyrcona in #evergreen on irc.libera.chat.

Thanks, again, for sharing these changes!

Revision history for this message
Shula Link (slink-g) wrote :
Revision history for this message
Jane Sandberg (sandbergja) wrote :

Thanks for the patch, Shula! It looks like there are four commits now on your branch -- could you please try the squash again?

Also, it should be safe to simply remove the imports in files where empty isn't actually used. Apologies for not mentioning that in the ticket!

Revision history for this message
Shula Link (slink-g) wrote :

All commits squashed, empty() removed from imports where it's not being used, and the branch remains the same. This has been a fun learning experience :)

Revision history for this message
Jane Sandberg (sandbergja) wrote :

Thanks, Shula! Merged.

tags: added: signedoff
Changed in evergreen:
milestone: none → 3.10-beta
status: New → Fix Committed
importance: Undecided → Medium
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.