-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flow][indexing] Diff the
new_available_exports_index
and `old_avai…
…lable_exports_index` Summary: This stack aims to fix the bug that incremental update of exports will incorrectly drop some export count to zero, because the current subtract function will incorrectly remove the entire export even through it will be added back. This diff fixes the issue by first diffing the available export index into two disjoint index for additional and removal, which are then passes to `Export_index.merge` and `Export_index.subtract`. This ensures that for the overlapping old and new available index that's supposed to cancel out, they won't incorrectly nuke the usage count entry. Changelog: [fix] Fixed a bug that causes incorrect updates to our index that tracks usage of exports, which leads to incorrect autoimport-ranked-by-usage results. Reviewed By: panagosg7 Differential Revision: D69694640 fbshipit-source-id: 9f777f69db78d05b49b373f68531b1d777590763
- Loading branch information
1 parent
81f82d4
commit fc43315
Showing
3 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters