-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[core]Support enums without spaces in TagPeriodFormatter #5165
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
[core]Support enums without spaces in TagPeriodFormatter #5165
Conversation
Change-Id: I302587dd0f907b6cf9977fbaf7d7b983b66a0fba
|
Great speed! |
| WITH_DASHES("with_dashes", "Dates and hours with dashes, e.g., 'yyyy-MM-dd HH'"), | ||
| WITHOUT_DASHES("without_dashes", "Dates and hours without dashes, e.g., 'yyyyMMdd HH'"); | ||
| WITHOUT_DASHES("without_dashes", "Dates and hours without dashes, e.g., 'yyyyMMdd HH'"), | ||
| WITH_DASHES_WITHOUT_SPACES( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm don't think any user need this mode, yyyy-MM-ddHH . Looks weird. Maybe yyyyMMddHH is enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your suggestion, I've delete it.
Change-Id: I48dcb32ff0a07654c3ded2b47c9fcac8254c39f0
53f82fa to
52a0f63
Compare
Change-Id: I27358ad0af4f1528de8ea8ad1613702c562cb557
|
@chenxinwei Can CI passed in your local repo? |
|
The code change LGTM. |
xiangyuf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Yes |
|
cc: @JingsongLi @wwj6591812 for review. |
JingsongLi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Purpose
Hourly tag format only supports yyyy-MM-dd HH and yyyyMMdd HH now, user also need format without space.
Linked issue: close #5161
Support enums without spaces in TagPeriodFormatter.
Tests
Add testTagHourlyPeriodFormatterWithoutDashesAndSpaces in TagAutoManagerTest.java
API and Format
Documentation