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

Refactored part of flighthistory request #2064

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

tjwdev
Copy link
Contributor

@tjwdev tjwdev commented Jun 29, 2021

-Removed erroneous fields from booking detail history
-Adjusted query to consider a date recall limit on how far the history reaches (set to 1 year tentatively), also considers flight direction.
-added datetime to history call to pass to new query

fixes #569 on the gtas ui side

-Removed erroneous fields from booking detail history
-Adjusted query to consider a date recall limit on how far the history reaches (set to 1 year tentatively), also considers flight direction.
-added datetime to history call to pass to new query
+ "left join fetch f.mutableFlightDetails mf "
+ "WHERE (f.direction = 'O' AND mf.etd > :dateLimit) "
+ "OR (f.direction ='I' AND mf.eta > :dateLimit ) "
+ "OR (f.direction = 'A' AND (mf.etd > :dateLimit "
Copy link
Contributor

@originalname51 originalname51 Oct 5, 2021

Choose a reason for hiding this comment

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

f.direction of 'C' should be accounted for as well.

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