We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creates the Django models to handle tiered permissions (reference: codecov/codecov-api#381)
With the following setup, (probably don't need to do Risky mode, but reach out to infra)
class OwnerPermission( ExportModelOperationsMixin("codecov_auth.owner_permission"), BaseCodecovModel ): """ Will have values like: ["project_coverage", "patch_coverage", "components", "flags"] """ name = models.CharField(max_length=100, unique=True, null=False, blank=False) class OwnerTier( ExportModelOperationsMixin("codecov_auth.owner_tier"), BaseCodecovModel ): """ Will have values like: ["free", "team", "pro", "enterprise"] """ name = models.CharField(max_length=100, unique=True, null=False, blank=False) class OwnerTierPermission( ExportModelOperationsMixin("codecov_auth.owner_tier_permission"), BaseCodecovModel ): permission = models.ForeignKey( OwnerPermission, null=False, on_delete=models.CASCADE, blank=False, related_name="permission", ) tier = models.ForeignKey( OwnerTier, null=False, on_delete=models.CASCADE, blank=False, related_name="tier", ) class OwnerTierPlan( ExportModelOperationsMixin("codecov_auth.owner_tier_plan"), BaseCodecovModel ): """ Will have values like: [(team, users-teamm), (team, users-teamy), (pro, users-pr-inappm)] """ tier = models.ForeignKey( OwnerTier, null=False, on_delete=models.CASCADE, blank=False, related_name="tier_plan", ) plan = models.TextField(null=False, blank=False)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Creates the Django models to handle tiered permissions
(reference: codecov/codecov-api#381)
With the following setup, (probably don't need to do Risky mode, but reach out to infra)
The text was updated successfully, but these errors were encountered: