Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bugs related to EXPIRY_DATE_NOT_DEFINED #31

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

momomomo111
Copy link
Contributor

@momomomo111 momomomo111 commented Jun 27, 2023

Fixed the issue where a warning to set the deadline in the correct format was displayed even when OWNER_DATE_NOT_DEFINED and EXPIRY_DATE_NOT_DEFINED were set.

…Y_DATE_NOT_DEFINED

EXPIRY_DATE_NOT_DEFINEDなのにも関わらずエラーが吐かれるバグを修正
Comment on lines 50 to 53
if (expiryDate == FlagType.EXPIRY_DATE_INFINITE) {
reportInfiniteExpiryDateErrorIfNeeded(qualifiedName, context, element, location)
return
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prioritize giving warnings when WorkInProgress and Experiment contain EXPIRY_DATE_INFINITE.

@momomomo111 momomomo111 changed the title [fix] Fixed a bug that caused an error to be thrown even though EXPIR… Fix bugs related to OWNER_DATE_NOT_DEFINED and EXPIRY_DATE_NOT_DEFINED. Jun 27, 2023
@momomomo111 momomomo111 self-assigned this Jun 27, 2023
@momomomo111 momomomo111 marked this pull request as ready for review June 27, 2023 05:17
val expiryDate = (annotationAttributes.firstOrNull { it.name == "expiryDate" }
?.evaluate() as String?) ?: ""
if (expiryDate == FlagType.EXPIRY_DATE_INFINITE) {
reportInfiniteExpiryDateErrorIfNeeded(qualifiedName, context, element, location)
return
}
if (owner == FlagType.OWNER_NOT_DEFINED || expiryDate == FlagType.EXPIRY_DATE_NOT_DEFINED) return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you elaborate on why you use owner here? 👀

Copy link
Contributor Author

@momomomo111 momomomo111 Jun 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, I don't use the OWNER parameter. Thanks for pointing that out to me.🙏

85e5479

不要なパラメーター判定の削除
@momomomo111 momomomo111 changed the title Fix bugs related to OWNER_DATE_NOT_DEFINED and EXPIRY_DATE_NOT_DEFINED. Fix bugs related to EXPIRY_DATE_NOT_DEFINED. Jun 27, 2023
Copy link
Contributor

@takahirom takahirom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📅

@momomomo111 momomomo111 merged commit f3e2de8 into main Jun 27, 2023
1 check passed
@momomomo111 momomomo111 deleted the hotfix-deprecated-error branch June 27, 2023 06:14
@momomomo111 momomomo111 changed the title Fix bugs related to EXPIRY_DATE_NOT_DEFINED. Fix bugs related to EXPIRY_DATE_NOT_DEFINED Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants