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: ride hail transit re-enable #3790

Merged
merged 19 commits into from
Oct 4, 2023
Merged

Conversation

nikolayilyin
Copy link
Collaborator

@nikolayilyin nikolayilyin commented Sep 26, 2023

  • fixed RH transit mode
  • added test to check all modes are working

This change is Reviewable

@nikolayilyin nikolayilyin self-assigned this Sep 26, 2023
@nikolayilyin
Copy link
Collaborator Author

fix for #3781

@nikolayilyin nikolayilyin linked an issue Sep 26, 2023 that may be closed by this pull request
@nikolayilyin
Copy link
Collaborator Author

test!

8 similar comments
@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

1 similar comment
@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

1 similar comment
@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

@nikolayilyin
Copy link
Collaborator Author

test!

1 similar comment
@nikolayilyin
Copy link
Collaborator Author

test!

Copy link
Collaborator

@dimaopen dimaopen left a comment

Choose a reason for hiding this comment

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

If what I suggested seems too complicated feel free to skip it.

def logInfo(message: String): Unit = logger.info(message)

// required for testing purposes
def logError(message: String): Unit = logger.error(message)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Basically we can use it. Though it looks a little strange. What we can do is to create a custom Logback appender (https://www.baeldung.com/custom-logback-appender) and in logback-test.xml add it to the PopulationAdjustment only. Then we can get the appender programmatically and cleanup/check it before/after running a test.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Previously it did not work with custom appender and logger in the test (the approach was different though), and it looks like suggested change is too much work just to get one test working

@nikolayilyin nikolayilyin merged commit 9686a0b into develop Oct 4, 2023
1 check passed
@nikolayilyin nikolayilyin deleted the inm/ride_hail_transit_fix_3781 branch October 4, 2023 14:41
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.

ridehai_transit mode is not working
2 participants