Merged PR 833: 本番環境に対する移行データの投入後の修正
## 概要 [Task3580: 本番環境に対する移行データの投入後の修正](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/3580) - デモライセンスの判定を日時から日付だけ見るように修正しました。 - 9999/12/31で始まるかを見ています。 - メールアドレス重複のチェックは大文字小文字を区別せずに実行するようにしています。 ## レビューポイント - 対応箇所は適切でしょうか? - 対応として先頭文字列を見ていますが適切でしょうか? ## UIの変更 - なし ## クエリの変更 - なし ## 動作確認状況 - 本番踏み台で変換できることを確認 - 行った修正がデグレを発生させていないことを確認できるか - ツールの変更だけなので問題なし
This commit is contained in:
parent
e96e8ea54a
commit
5169092892
@ -144,8 +144,8 @@ export class TransferService {
|
||||
}
|
||||
|
||||
// ライセンスのデータの作成を行う
|
||||
// line.expired_dateが"9999/12/31 23:59:59"のデータの場合はデモライセンスなので登録しない
|
||||
if (line.expired_date !== "9999/12/31 23:59:59") {
|
||||
// line.expired_dateが"9999/12/31"で始まるデータの場合はデモライセンスなので登録しない
|
||||
if (!line.expired_date.startsWith("9999/12/31")) {
|
||||
// authorIdが設定されてる場合、statusは"allocated"、allocated_user_idは対象のユーザID
|
||||
// されていない場合、statusは"reusable"、allocated_user_idはnull
|
||||
let status: string;
|
||||
|
||||
@ -63,7 +63,7 @@ export class VerificationService {
|
||||
const licensesCountFromFile =
|
||||
csvInputFiles.filter(
|
||||
(item) =>
|
||||
item.type === "USER" && item.expired_date !== "9999/12/31 23:59:59"
|
||||
item.type === "USER" && !item.expired_date.startsWith("9999/12/31")
|
||||
).length + cardLicensesCountFromFile;
|
||||
|
||||
// 管理ユーザ数のカウント
|
||||
@ -105,7 +105,8 @@ export class VerificationService {
|
||||
// 重複する要素を抽出
|
||||
const duplicates: { [key: string]: number } = {};
|
||||
mailAdresses.forEach((str) => {
|
||||
duplicates[str] = (duplicates[str] || 0) + 1;
|
||||
duplicates[str.toLowerCase()] =
|
||||
(duplicates[str.toLowerCase()] || 0) + 1;
|
||||
});
|
||||
|
||||
// 重複する要素と件数を表示
|
||||
@ -166,7 +167,7 @@ export class VerificationService {
|
||||
VerificationResultDetails,
|
||||
csvInputFiles.filter(
|
||||
(item) =>
|
||||
item.type === "USER" && item.expired_date !== "9999/12/31 23:59:59"
|
||||
item.type === "USER" && !item.expired_date.startsWith("9999/12/31")
|
||||
),
|
||||
licenses.filter((item) => item.expiry_date !== null),
|
||||
accountsMappingInputFiles
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user