-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
・CSVをインポートするAPIを追加。 ・モバイル環境のユーザビリティの向上。 ・APIによるレコード作成時に添付ファイルのサイズチェックが行われない問題を解消。 ・ファイルアップロード時に拡張機能のサイトIDの指定が機能しない問題を解消。 ・ファイルアップロード時にサーバスクリプトのサイト設定の読み込み時が動作しない問題を解消。
- Loading branch information
Showing
34 changed files
with
3,472 additions
and
265 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 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
5 changes: 5 additions & 0 deletions
5
Implem.Pleasanter/App_Data/Definitions/Definition_Code/Model_ImportByApi.json
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,5 @@ | ||
{ | ||
"Id": "Model_ImportByApi", | ||
"Indent": "2", | ||
"Include": "Items" | ||
} |
39 changes: 39 additions & 0 deletions
39
Implem.Pleasanter/App_Data/Definitions/Definition_Code/Model_ImportByApi_Body.txt
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,39 @@ | ||
public ContentResultInheritance ImportByApi(Context context) | ||
{ | ||
SetSite( | ||
context: context, | ||
initSiteSettings: true, | ||
setSiteIntegration: true, | ||
setAllChoices: true); | ||
if (!Site.WithinApiLimits(context: context)) | ||
{ | ||
return ApiResults.Get(ApiResponses.OverLimitApi( | ||
context: context, | ||
siteId: Site.SiteId, | ||
limitPerSite: context.ContractSettings.ApiLimit())); | ||
} | ||
switch (Site.ReferenceType) | ||
{ | ||
case "Issues": | ||
if (SiteId == ReferenceId) | ||
{ | ||
return IssueUtilities.ImportByApi( | ||
context: context, | ||
ss: Site.SiteSettings, | ||
siteModel: Site); | ||
} | ||
break; | ||
case "Results": | ||
if (SiteId == ReferenceId) | ||
{ | ||
return ResultUtilities.ImportByApi( | ||
context: context, | ||
ss: Site.SiteSettings, | ||
siteModel: Site); | ||
} | ||
break; | ||
default: | ||
return ApiResults.Get(ApiResponses.BadRequest(context: context)); | ||
} | ||
return ApiResults.Get(ApiResponses.BadRequest(context: context)); | ||
} |
Oops, something went wrong.