-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new functions to the Package and PackageVersion models to determine whether a package or package version is unavailable. A package is considered unavailable if: - It is not active (is_effectively_active is False), or - It does not have a related listing in a specific community, or - It has a listing, but the listing is marked as rejected. A package version is considered unavailable if: - The related package is unavailable, or - The package version itself is not active. - (If both conditions apply, the package's status takes precedence.) Additionally, implement unit tests to validate these new functions for both the Package and PackageVersion models. Refs. TS-2776
- Loading branch information
1 parent
4a82877
commit 4d807f5
Showing
4 changed files
with
118 additions
and
2 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
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