You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create table "bundle_analysis_cacheconfig" with columns
class CacheConfig(models.Model):
id = models.BigAutoField(primary_key=True)
repo_id = models.IntegerField()
bundle_name = models.CharField()
is_caching = models.BooleanField(null=False, default=True)
make sure to create a new app "bundle_analysis" under "shared/django_apps"
Create a service class that can store values into the table:
class BundleAnalysisCacheConfigService:
@staticmethod
def update_cache_option(repo_id, name, is_caching=True):
if CacheConfig.objects.filter(repo_id, name) is empty:
CacheConfig.objects.create(repo_id, name, is_caching)
The text was updated successfully, but these errors were encountered:
JerrySentry
changed the title
[Bundle Caching] Create table to store bundle caching configurations
[Bundle Caching][Shared] Create table to store bundle caching configurations
Jul 4, 2024
Create table "bundle_analysis_cacheconfig" with columns
make sure to create a new app "bundle_analysis" under "shared/django_apps"
Create a service class that can store values into the table:
The text was updated successfully, but these errors were encountered: