-
Notifications
You must be signed in to change notification settings - Fork 18
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
EPMRPP-88972 || Fix must condition in the case when previous_launch_i… #160
Conversation
…d was not provided
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## rc/5.11.0 #160 +/- ##
=============================================
- Coverage 72.59% 72.58% -0.01%
=============================================
Files 39 39
Lines 4955 4954 -1
=============================================
- Hits 3597 3596 -1
Misses 1358 1358
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -68,7 +68,7 @@ def _add_launch_name_and_id_boost(self, query: dict, launch_name: str, launch_id | |||
self._add_launch_name_boost(query, launch_name) | |||
|
|||
def add_constraints_for_launches_into_query(self, query: dict, launch) -> dict: | |||
previous_launch_id = getattr(launch, 'previousLaunchId', 0) or 0 | |||
previous_launch_id = getattr(launch, 'previousLaunchId', -1) or -1 |
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.
Please revert.
@@ -39,7 +39,7 @@ | |||
(2, 'CURRENT_AND_THE_SAME_NAME', DEFAULT_LAUNCH_NAME_SEARCH), | |||
(2, 'CURRENT_LAUNCH', {'must': [{'term': {'launch_id': DEFAULT_LAUNCH_ID}}]}), | |||
(2, 'PREVIOUS_LAUNCH', {'must': [{'term': {'launch_id': 2}}]}), | |||
(None, 'PREVIOUS_LAUNCH', {}), | |||
(None, 'PREVIOUS_LAUNCH', {'must': [{'term': {'launch_id': -1}}]}), |
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.
Plase revert.
…d was not provided