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

Schedule adherence report include vehicle id #16

Merged
merged 4 commits into from
May 19, 2024

Conversation

TsimurSh
Copy link
Contributor

  • added vehicle id to schedule adherence report
  • added parameter flexibility for date

@TsimurSh TsimurSh self-assigned this May 18, 2024
@TsimurSh TsimurSh requested a review from vesavlad May 18, 2024 16:13
@TsimurSh TsimurSh added the enhancement New feature or request label May 18, 2024
@TsimurSh TsimurSh changed the title Goeuropa/features/sched adh report include vehicle Schedule adherence report include vehicle id May 18, 2024
@@ -217,10 +217,12 @@ public static String timeRangeClause(

SimpleDateFormat currentFormat = new SimpleDateFormat("MM-dd-yyyy");
SimpleDateFormat requiredFormat = new SimpleDateFormat("yyyy-MM-dd");
if (beginDate.charAt(4) != '-') { // for two patterns MM-dd-yyyy & yyyy-MM-dd
Copy link
Member

Choose a reason for hiding this comment

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

please format properly, and more than this what happens in case of the date in is the 'yyyy-MM-dd' format? we still need to validate is a valid date (eg. I want to make sure I do not endup passing 2024-29-23' to db

Copy link
Contributor Author

@TsimurSh TsimurSh May 19, 2024

Choose a reason for hiding this comment

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

Ok. just pushed a solution

@vesavlad vesavlad merged commit cc6baa0 into next May 19, 2024
5 checks passed
@vesavlad vesavlad deleted the goeuropa/features/sched_adh_report-include-vehicle_id branch May 19, 2024 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants