-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #769 from readthedocs/davidfischer/traffic-fill-an…
…d-cap Calculate traffic fill rate daily and enforce traffic cap
- Loading branch information
Showing
10 changed files
with
447 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,6 +99,8 @@ class Meta: | |
"cpm", | ||
"sold_impressions", | ||
"targeting_parameters", | ||
"traffic_fill", | ||
"traffic_cap", | ||
) | ||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Generated by Django 3.2.18 on 2023-07-07 23:19 | ||
import jsonfield.fields | ||
from django.db import migrations | ||
|
||
import adserver.validators | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('adserver', '0083_allow_api_keywords'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='flight', | ||
name='traffic_cap', | ||
field=jsonfield.fields.JSONField(blank=True, default=None, null=True, validators=[adserver.validators.TrafficFillValidator()], verbose_name='Traffic cap'), | ||
), | ||
migrations.AddField( | ||
model_name='flight', | ||
name='traffic_fill', | ||
field=jsonfield.fields.JSONField(blank=True, default=None, null=True, validators=[adserver.validators.TrafficFillValidator()], verbose_name='Traffic fill'), | ||
), | ||
migrations.AddField( | ||
model_name='historicalflight', | ||
name='traffic_cap', | ||
field=jsonfield.fields.JSONField(blank=True, default=None, null=True, validators=[adserver.validators.TrafficFillValidator()], verbose_name='Traffic cap'), | ||
), | ||
migrations.AddField( | ||
model_name='historicalflight', | ||
name='traffic_fill', | ||
field=jsonfield.fields.JSONField(blank=True, default=None, null=True, validators=[adserver.validators.TrafficFillValidator()], verbose_name='Traffic fill'), | ||
), | ||
] |
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
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
Oops, something went wrong.