Skip to content

User date time formats#707

Merged
arogge merged 5 commits intobareos:masterfrom
alaaeddineelamri:dev/alaa/master/user-date-time-formats
Feb 25, 2021
Merged

User date time formats#707
arogge merged 5 commits intobareos:masterfrom
alaaeddineelamri:dev/alaa/master/user-date-time-formats

Conversation

@alaaeddineelamri
Copy link
Contributor

@alaaeddineelamri alaaeddineelamri commented Jan 8, 2021

add support for shorter date formats, where shorter dates are compensated with lowest value possible to make a full date
also fix a bug where Bareos accepted bogus datetime formats.

@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaa/master/user-date-time-formats branch from 29af759 to d29866b Compare January 12, 2021 15:42
Copy link
Contributor

@franku franku left a comment

Choose a reason for hiding this comment

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

Added some remarks.

@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaa/master/user-date-time-formats branch 2 times, most recently from b2b8d63 to d95a2d5 Compare January 18, 2021 14:00
@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaa/master/user-date-time-formats branch 5 times, most recently from 3aa961b to fd918c9 Compare January 27, 2021 09:32
@arogge arogge self-assigned this Jan 28, 2021
Copy link
Member

@arogge arogge left a comment

Choose a reason for hiding this comment

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

Thank you very much! This is amazing work.
Great implementation, nicely tested and well documented.
You should definitely add your name to the AUTHORS file!

I have some remarks and suggestions. Most of them are not too important, feel free to discuss.

@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaa/master/user-date-time-formats branch 2 times, most recently from 228f1ca to 08dcd54 Compare February 1, 2021 09:31
@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaa/master/user-date-time-formats branch from 08dcd54 to 3dad462 Compare February 3, 2021 10:03
Copy link
Member

@arogge arogge left a comment

Choose a reason for hiding this comment

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

I found a small problem that's left, otherwise it is really fine now.

@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaa/master/user-date-time-formats branch 2 times, most recently from 82584da to 04ed914 Compare February 10, 2021 11:04
@alaaeddineelamri alaaeddineelamri marked this pull request as ready for review February 10, 2021 11:06
@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaa/master/user-date-time-formats branch from 04ed914 to 25bba18 Compare February 15, 2021 09:23
@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaa/master/user-date-time-formats branch 3 times, most recently from 06921bf to bf2e3ec Compare February 18, 2021 08:49
@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaa/master/user-date-time-formats branch 4 times, most recently from 1e0f612 to 73c1f7c Compare February 25, 2021 12:11
- User could enter wrong dates such as 1999-88-70 27:55:798, now he is denied
- Trailing strings are now detected
- Added tests for typical wrong entries
- User can now directly enter a short date such as 1999-05, and it will be compensated with the lowest remainder values possible to become a full date such as 1999-05-01 00:00:00
- added tests for different user date entries
@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaa/master/user-date-time-formats branch from 73c1f7c to b1faae6 Compare February 25, 2021 15:01
@arogge arogge merged commit 7bc45af into bareos:master Feb 25, 2021
@alaaeddineelamri alaaeddineelamri deleted the dev/alaa/master/user-date-time-formats branch August 12, 2022 13:03
@alaaeddineelamri alaaeddineelamri restored the dev/alaa/master/user-date-time-formats branch August 12, 2022 13:03
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.

3 participants