Merge pull request #1948 from makeplane/stage-release

Promot: Stage Release to Production
This commit is contained in:
sriram veeraghanta 2023-08-23 14:51:27 +05:30 committed by GitHub
commit 9d3952006b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 53 additions and 3 deletions

View File

@ -14,6 +14,11 @@ from plane.db.models import Cycle, CycleIssue, CycleFavorite
class CycleWriteSerializer(BaseSerializer):
def validate(self, data):
if data.get("start_date", None) is not None and data.get("end_date", None) is not None and data.get("start_date", None) > data.get("end_date", None):
raise serializers.ValidationError("Start date cannot exceed end date")
return data
class Meta:
model = Cycle
fields = "__all__"
@ -35,6 +40,11 @@ class CycleSerializer(BaseSerializer):
started_estimates = serializers.IntegerField(read_only=True)
workspace_detail = WorkspaceLiteSerializer(read_only=True, source="workspace")
project_detail = ProjectLiteSerializer(read_only=True, source="project")
def validate(self, data):
if data.get("start_date", None) is not None and data.get("end_date", None) is not None and data.get("start_date", None) > data.get("end_date", None):
raise serializers.ValidationError("Start date cannot exceed end date")
return data
def get_assignees(self, obj):
members = [

View File

@ -40,6 +40,11 @@ class ModuleWriteSerializer(BaseSerializer):
"updated_at",
]
def validate(self, data):
if data.get("start_date", None) is not None and data.get("target_date", None) is not None and data.get("start_date", None) > data.get("target_date", None):
raise serializers.ValidationError("Start date cannot exceed target date")
return data
def create(self, validated_data):
members = validated_data.pop("members_list", None)

View File

@ -1,9 +1,9 @@
// services images
import GithubLogo from "public/services/github.png";
import JiraLogo from "public/services/jira.png";
import CSVLogo from "public/services/csv.png";
import ExcelLogo from "public/services/excel.png";
import JSONLogo from "public/services/json.png";
import CSVLogo from "public/services/csv.svg";
import ExcelLogo from "public/services/excel.svg";
import JSONLogo from "public/services/json.svg";
export const ROLE = {
5: "Guest",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

View File

@ -0,0 +1,12 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_6990_114407)">
<rect width="24" height="24" rx="12" fill="#FAFAFA"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.2667 6.86693C8.14293 6.86693 8.02423 6.91609 7.93672 7.00361C7.8492 7.09113 7.80003 7.20983 7.80003 7.33359V16.6669C7.80003 16.7907 7.8492 16.9094 7.93672 16.9969C8.02423 17.0844 8.14293 17.1336 8.2667 17.1336H15.7334C15.8571 17.1336 15.9758 17.0844 16.0633 16.9969C16.1509 16.9094 16.2 16.7907 16.2 16.6669V10.6003H12.9334C12.8096 10.6003 12.6909 10.5511 12.6034 10.4636C12.5159 10.3761 12.4667 10.2574 12.4667 10.1336V6.86693H8.2667ZM13.4 7.52679L15.5402 9.66693H13.4V7.52679ZM6.8667 7.33359C6.8667 6.96229 7.0142 6.6062 7.27675 6.34365C7.5393 6.08109 7.8954 5.93359 8.2667 5.93359H12.9334C12.9947 5.93348 13.0554 5.94546 13.1121 5.96884C13.1688 5.99223 13.2203 6.02655 13.2638 6.06986L16.9971 9.80319C17.0404 9.84661 17.0747 9.89814 17.0981 9.95483C17.1215 10.0115 17.1335 10.0723 17.1334 10.1336V16.6669C17.1334 17.0382 16.9859 17.3943 16.7233 17.6569C16.4608 17.9194 16.1047 18.0669 15.7334 18.0669H8.2667C7.8954 18.0669 7.5393 17.9194 7.27675 17.6569C7.0142 17.3943 6.8667 17.0382 6.8667 16.6669V7.33359Z" fill="#3F76FF"/>
<path d="M10.876 14.3008H10.4422C10.4298 14.2297 10.407 14.1667 10.3737 14.1117C10.3405 14.0561 10.2991 14.0089 10.2496 13.9702C10.2001 13.9315 10.1437 13.9025 10.0803 13.8832C10.0176 13.8631 9.94995 13.8531 9.87725 13.8531C9.7481 13.8531 9.63365 13.8855 9.53388 13.9505C9.43412 14.0147 9.35601 14.109 9.29955 14.2335C9.2431 14.3573 9.21487 14.5085 9.21487 14.6871C9.21487 14.8689 9.2431 15.022 9.29955 15.1465C9.35678 15.2702 9.43489 15.3638 9.53388 15.4272C9.63365 15.4899 9.74772 15.5212 9.87609 15.5212C9.94724 15.5212 10.0138 15.5119 10.0756 15.4933C10.1383 15.474 10.1943 15.4458 10.2438 15.4087C10.2941 15.3715 10.3362 15.3259 10.3703 15.2718C10.4051 15.2176 10.429 15.1558 10.4422 15.0862L10.876 15.0885C10.8598 15.2014 10.8246 15.3074 10.7705 15.4063C10.7171 15.5053 10.6471 15.5927 10.5605 15.6685C10.4739 15.7435 10.3726 15.8023 10.2566 15.8448C10.1406 15.8866 10.0118 15.9075 9.87029 15.9075C9.66149 15.9075 9.47511 15.8591 9.31115 15.7625C9.1472 15.6658 9.01805 15.5262 8.9237 15.3437C8.82935 15.1612 8.78218 14.9423 8.78218 14.6871C8.78218 14.4311 8.82974 14.2123 8.92486 14.0305C9.01999 13.848 9.14952 13.7084 9.31348 13.6118C9.47743 13.5151 9.66303 13.4668 9.87029 13.4668C10.0025 13.4668 10.1255 13.4853 10.2392 13.5224C10.3529 13.5596 10.4542 13.6141 10.5431 13.686C10.6321 13.7572 10.7051 13.8445 10.7624 13.9482C10.8204 14.051 10.8583 14.1686 10.876 14.3008ZM12.496 14.1523C12.4851 14.051 12.4395 13.9722 12.3591 13.9157C12.2794 13.8592 12.1758 13.831 12.0482 13.831C11.9585 13.831 11.8815 13.8445 11.8173 13.8716C11.7531 13.8987 11.704 13.9354 11.67 13.9818C11.636 14.0282 11.6186 14.0812 11.6178 14.1407C11.6178 14.1902 11.629 14.2332 11.6515 14.2695C11.6747 14.3059 11.706 14.3368 11.7454 14.3623C11.7849 14.3871 11.8285 14.4079 11.8765 14.425C11.9244 14.442 11.9728 14.4563 12.0215 14.4679L12.2442 14.5236C12.3339 14.5444 12.4202 14.5727 12.5029 14.6082C12.5864 14.6438 12.6611 14.6887 12.7268 14.7428C12.7933 14.7969 12.8459 14.8623 12.8846 14.9388C12.9232 15.0154 12.9426 15.1051 12.9426 15.208C12.9426 15.3472 12.907 15.4698 12.8358 15.5757C12.7647 15.6809 12.6618 15.7632 12.5273 15.8228C12.3935 15.8816 12.2315 15.911 12.0412 15.911C11.8564 15.911 11.6959 15.8823 11.5598 15.8251C11.4245 15.7679 11.3185 15.6844 11.242 15.5746C11.1662 15.4647 11.1252 15.3309 11.119 15.1732H11.5424C11.5486 15.2559 11.5741 15.3248 11.619 15.3797C11.6638 15.4346 11.7222 15.4756 11.7941 15.5026C11.8668 15.5297 11.948 15.5432 12.0377 15.5432C12.1313 15.5432 12.2133 15.5293 12.2837 15.5015C12.3548 15.4729 12.4105 15.4334 12.4507 15.3831C12.4909 15.3321 12.5114 15.2726 12.5122 15.2045C12.5114 15.1426 12.4933 15.0916 12.4577 15.0514C12.4221 15.0104 12.3722 14.9764 12.308 14.9493C12.2446 14.9214 12.1704 14.8967 12.0853 14.875L11.815 14.8054C11.6194 14.7552 11.4647 14.679 11.351 14.5769C11.2381 14.4741 11.1816 14.3376 11.1816 14.1674C11.1816 14.0274 11.2195 13.9049 11.2953 13.7997C11.3719 13.6945 11.4759 13.6129 11.6074 13.5549C11.7388 13.4961 11.8877 13.4668 12.054 13.4668C12.2226 13.4668 12.3703 13.4961 12.4971 13.5549C12.6247 13.6129 12.7249 13.6937 12.7976 13.7974C12.8703 13.9002 12.9078 14.0186 12.9101 14.1523H12.496ZM13.5788 13.4992L14.1971 15.3692H14.2214L14.8386 13.4992H15.3119L14.4743 15.875H13.943L13.1066 13.4992H13.5788Z" fill="#3F76FF"/>
</g>
<defs>
<clipPath id="clip0_6990_114407">
<rect width="24" height="24" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

View File

@ -0,0 +1,11 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_6990_114419)">
<rect width="24" height="24" rx="12" fill="#FAFAFA"/>
<path d="M15.9375 6.3125H8.9375C8.70544 6.3125 8.48288 6.40469 8.31878 6.56878C8.15469 6.73288 8.0625 6.95544 8.0625 7.1875V8.5H7.1875C6.95544 8.5 6.73288 8.59219 6.56878 8.75628C6.40469 8.92038 6.3125 9.14294 6.3125 9.375V14.625C6.3125 14.8571 6.40469 15.0796 6.56878 15.2437C6.73288 15.4078 6.95544 15.5 7.1875 15.5H8.0625V16.8125C8.0625 17.0446 8.15469 17.2671 8.31878 17.4312C8.48288 17.5953 8.70544 17.6875 8.9375 17.6875H15.9375C16.1696 17.6875 16.3921 17.5953 16.5562 17.4312C16.7203 17.2671 16.8125 17.0446 16.8125 16.8125V7.1875C16.8125 6.95544 16.7203 6.73288 16.5562 6.56878C16.3921 6.40469 16.1696 6.3125 15.9375 6.3125ZM13.75 10.6875H15.9375V13.3125H13.75V10.6875ZM15.9375 9.8125H13.75V9.375C13.75 9.14294 13.6578 8.92038 13.4937 8.75628C13.3296 8.59219 13.1071 8.5 12.875 8.5V7.1875H15.9375V9.8125ZM8.9375 7.1875H12V8.5H8.9375V7.1875ZM7.1875 9.375H12.875V14.625H7.1875V9.375ZM8.9375 15.5H12V16.8125H8.9375V15.5ZM12.875 16.8125V15.5C13.1071 15.5 13.3296 15.4078 13.4937 15.2437C13.6578 15.0796 13.75 14.8571 13.75 14.625V14.1875H15.9375V16.8125H12.875ZM8.60117 13.0325L9.46195 12L8.60117 10.9675C8.52691 10.8783 8.49113 10.7633 8.50169 10.6477C8.51225 10.5321 8.5683 10.4254 8.6575 10.3512C8.7467 10.2769 8.86175 10.2411 8.97733 10.2517C9.09291 10.2623 9.19957 10.3183 9.27383 10.4075L10.0312 11.3164L10.7887 10.4075C10.8254 10.3633 10.8706 10.3268 10.9214 10.3001C10.9723 10.2734 11.0279 10.2569 11.0852 10.2517C11.1424 10.2465 11.2001 10.2526 11.255 10.2696C11.3099 10.2867 11.3608 10.3144 11.405 10.3512C11.4492 10.3879 11.4857 10.4331 11.5124 10.4839C11.5391 10.5348 11.5556 10.5904 11.5608 10.6477C11.566 10.7049 11.5599 10.7626 11.5429 10.8175C11.5258 10.8724 11.4981 10.9233 11.4613 10.9675L10.6005 12L11.4613 13.0325C11.5356 13.1217 11.5714 13.2367 11.5608 13.3523C11.5502 13.4679 11.4942 13.5746 11.405 13.6488C11.3158 13.7231 11.2008 13.7589 11.0852 13.7483C10.9696 13.7377 10.8629 13.6817 10.7887 13.5925L10.0312 12.6836L9.27383 13.5925C9.19957 13.6817 9.09291 13.7377 8.97733 13.7483C8.86175 13.7589 8.7467 13.7231 8.6575 13.6488C8.5683 13.5746 8.51225 13.4679 8.50169 13.3523C8.49113 13.2367 8.52691 13.1217 8.60117 13.0325Z" fill="#3F76FF"/>
</g>
<defs>
<clipPath id="clip0_6990_114419">
<rect width="24" height="24" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

View File

@ -0,0 +1,12 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_6990_114394)">
<rect width="24" height="24" rx="12" fill="#FAFAFA"/>
<path d="M13.4583 6.1665H8.49992C8.1905 6.1665 7.89375 6.28942 7.67496 6.50821C7.45617 6.72701 7.33325 7.02375 7.33325 7.33317V16.6665C7.33325 16.9759 7.45617 17.2727 7.67496 17.4915C7.89375 17.7103 8.1905 17.8332 8.49992 17.8332H15.4999C15.8093 17.8332 16.1061 17.7103 16.3249 17.4915C16.5437 17.2727 16.6666 16.9759 16.6666 16.6665V9.37484L13.4583 6.1665Z" stroke="#3F76FF" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M13.1665 6.1665V9.6665H16.6665M10.8332 11.9998C10.6785 11.9998 10.5301 12.0613 10.4207 12.1707C10.3113 12.2801 10.2498 12.4285 10.2498 12.5832V13.1665C10.2498 13.3212 10.1884 13.4696 10.079 13.579C9.96959 13.6884 9.82121 13.7498 9.6665 13.7498C9.82121 13.7498 9.96959 13.8113 10.079 13.9207C10.1884 14.0301 10.2498 14.1785 10.2498 14.3332V14.9165C10.2498 15.0712 10.3113 15.2196 10.4207 15.329C10.5301 15.4384 10.6785 15.4998 10.8332 15.4998M13.1665 15.4998C13.3212 15.4998 13.4696 15.4384 13.579 15.329C13.6884 15.2196 13.7498 15.0712 13.7498 14.9165V14.3332C13.7498 14.1785 13.8113 14.0301 13.9207 13.9207C14.0301 13.8113 14.1785 13.7498 14.3332 13.7498C14.1785 13.7498 14.0301 13.6884 13.9207 13.579C13.8113 13.4696 13.7498 13.3212 13.7498 13.1665V12.5832C13.7498 12.4285 13.6884 12.2801 13.579 12.1707C13.4696 12.0613 13.3212 11.9998 13.1665 11.9998" stroke="#3F76FF" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
</g>
<defs>
<clipPath id="clip0_6990_114394">
<rect width="24" height="24" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB