-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 #1102 from makeplane/stage-release
promote: stage-release to master
- Loading branch information
Showing
325 changed files
with
17,570 additions
and
7,557 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
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from .base import BaseSerializer | ||
from plane.db.models import AnalyticView | ||
from plane.utils.issue_filters import issue_filters | ||
|
||
|
||
class AnalyticViewSerializer(BaseSerializer): | ||
class Meta: | ||
model = AnalyticView | ||
fields = "__all__" | ||
read_only_fields = [ | ||
"workspace", | ||
"query", | ||
] | ||
|
||
def create(self, validated_data): | ||
query_params = validated_data.get("query_dict", {}) | ||
if bool(query_params): | ||
validated_data["query"] = issue_filters(query_params, "POST") | ||
else: | ||
validated_data["query"] = dict() | ||
return AnalyticView.objects.create(**validated_data) | ||
|
||
def update(self, instance, validated_data): | ||
query_params = validated_data.get("query_data", {}) | ||
if bool(query_params): | ||
validated_data["query"] = issue_filters(query_params, "POST") | ||
else: | ||
validated_data["query"] = dict() | ||
validated_data["query"] = issue_filters(query_params, "PATCH") | ||
return super().update(instance, validated_data) |
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.
5c63292
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
plane – ./apps/app
plane-theta.vercel.app
app.plane.so
plane-plane.vercel.app
plane-git-master-plane.vercel.app
5c63292
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
plane-hot-fix – ./apps/app
plane-hot-fix-plane.vercel.app
plane-hot-fix.vercel.app
plane-hot-fix-git-hot-fix-plane.vercel.app