Skip to content

Commit

Permalink
serializer reorg (#2069)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiftran authored Dec 17, 2019
1 parent 18b1441 commit 51213e2
Show file tree
Hide file tree
Showing 19 changed files with 2,174 additions and 2,102 deletions.
8 changes: 4 additions & 4 deletions app/experimenter/experiments/api_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
from experimenter.experiments.constants import ExperimentConstants
from experimenter.experiments.models import Experiment
from experimenter.experiments import email
from experimenter.experiments.serializers import (
ExperimentCloneSerializer,
from experimenter.experiments.serializers.entities import ExperimentSerializer
from experimenter.experiments.serializers.clone import ExperimentCloneSerializer
from experimenter.experiments.serializers.design import (
ExperimentDesignAddonSerializer,
ExperimentDesignBranchedAddonSerializer,
ExperimentDesignGenericSerializer,
ExperimentDesignMultiPrefSerializer,
ExperimentDesignPrefSerializer,
ExperimentDesignRolloutSerializer,
ExperimentRecipeSerializer,
ExperimentSerializer,
)
from experimenter.experiments.serializers.recipe import ExperimentRecipeSerializer


class ExperimentListView(ListAPIView):
Expand Down
2 changes: 1 addition & 1 deletion app/experimenter/experiments/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
ExperimentComment,
ExperimentVariant,
)
from experimenter.experiments.serializers import ChangeLogSerializer
from experimenter.experiments.serializers.entities import ChangeLogSerializer
from experimenter.notifications.models import Notification


Expand Down
2 changes: 1 addition & 1 deletion app/experimenter/experiments/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def generate_normandy_slug(self):

@property
def normandy_recipe_json(self):
from experimenter.experiments.serializers import ExperimentRecipeSerializer
from experimenter.experiments.serializers.recipe import ExperimentRecipeSerializer

return json.dumps(ExperimentRecipeSerializer(self).data, indent=2)

Expand Down
Loading

0 comments on commit 51213e2

Please sign in to comment.