forked from mozilla/testpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove user dependency from installation tracking API
- Migration to drop user field from UserInstallation model, users relation in Experiment model. - Remove `distinct('user')` filter from `installation_count` property in Experiment model. - Drop auth requirement from installation tracking API resources. - Remove unused `experiment-installation-list` API resource. - Remove list of installed experiments from `/api/me` resource. - Stop doing a full sync of experiments with the server, list of enabled experiments from the add-on is authoritative - Separate call to fetch installed experiments and request to fetch `/api/me` resource in frontend Me model. - Remove deletion of user installations from user retire API resource. - Remove UserInstallations from admin - Bump add-on to v0.8.0 - Updated tests. Fixes mozilla#1040
- Loading branch information
Showing
12 changed files
with
77 additions
and
167 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
26 changes: 26 additions & 0 deletions
26
testpilot/experiments/migrations/0019_auto_20160707_2050.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,26 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('experiments', '0018_auto_20160709_0247'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='experiment', | ||
name='users', | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='userinstallation', | ||
unique_together=set([('experiment', 'client_id')]), | ||
), | ||
migrations.RemoveField( | ||
model_name='userinstallation', | ||
name='user', | ||
), | ||
] |
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
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.