-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Traffic analytics: track 404s (#9027)
Co-authored-by: Eric Holscher <[email protected]> Co-authored-by: Manuel Kaufmann <[email protected]>
- Loading branch information
1 parent
9a56069
commit 759733c
Showing
9 changed files
with
340 additions
and
72 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 |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
.cache | ||
.coverage | ||
.coverage.* | ||
coverage.xml | ||
.idea | ||
.vagrant | ||
.vscode | ||
|
55 changes: 55 additions & 0 deletions
55
readthedocs/analytics/migrations/0002_track_status_code.py
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,55 @@ | ||
# Generated by Django 3.2.12 on 2022-03-29 17:51 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("builds", "0041_track_task_id"), | ||
("projects", "0087_use_booleanfield_null"), | ||
("analytics", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="pageview", | ||
name="full_path", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="Full path including the version and language parts.", | ||
max_length=4096, | ||
null=True, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="pageview", | ||
name="status", | ||
field=models.PositiveIntegerField( | ||
default=200, help_text="HTTP status code" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="pageview", | ||
name="path", | ||
field=models.CharField( | ||
help_text="Path relative to the version.", max_length=4096 | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="pageview", | ||
name="version", | ||
field=models.ForeignKey( | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="page_views", | ||
to="builds.version", | ||
verbose_name="Version", | ||
), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="pageview", | ||
unique_together={("project", "version", "path", "date", "status")}, | ||
), | ||
] |
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.