Skip to content

New CTA type. End/start date changed to string in campaign#71

Merged
vladimanaev merged 6 commits intotaboola:masterfrom
KovalevuchMykhaylo:Start-date-string
Apr 27, 2023
Merged

New CTA type. End/start date changed to string in campaign#71
vladimanaev merged 6 commits intotaboola:masterfrom
KovalevuchMykhaylo:Start-date-string

Conversation

@KovalevuchMykhaylo
Copy link
Copy Markdown

No description provided.

Comment thread src/main/java/com/taboola/backstage/model/media/campaigns/items/CtaType.java Outdated
Copy link
Copy Markdown
Collaborator

@vladimanaev vladimanaev left a comment

Choose a reason for hiding this comment

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

See my comments

@KovalevuchMykhaylo
Copy link
Copy Markdown
Author

See my comments

Comments are resolved

public class Campaign {

private final String EXTENDED_DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
protected final String DATE_TIME_FORMAT = "yyyy-MM-dd";
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Make the pattern fields 'private static final'

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Because DATE_TIME_FORMAT was used in the CampaignOperation added one more SimpleDateFormat

*/
public class Campaign {

private final String EXTENDED_DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Make the pattern fields 'private static final'

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done

@@ -21,6 +23,9 @@
*/
public class Campaign {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please create unit test that test the date functionality

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done

vladimanaev
vladimanaev previously approved these changes Apr 27, 2023
@vladimanaev vladimanaev merged commit 5b23d83 into taboola:master Apr 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.

2 participants