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

EPMRPP-88972 || Fix must condition in the case when previous_launch_i… #160

Closed
wants to merge 3 commits into from

Conversation

pbortnik
Copy link
Contributor

@pbortnik pbortnik commented Jan 8, 2024

…d was not provided

@pbortnik pbortnik requested a review from HardNorth January 8, 2024 15:54
Copy link

sonarqubecloud bot commented Jan 8, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a3c3102) 72.59% compared to head (9c0b34e) 72.58%.
Report is 3 commits behind head on rc/5.11.0.

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              
Flag Coverage Δ
unittests 72.58% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -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
Copy link
Member

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}}]}),
Copy link
Member

Choose a reason for hiding this comment

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

Plase revert.

@pbortnik pbortnik closed this Jan 9, 2024
@pbortnik pbortnik deleted the EPMRPP-88972 branch January 9, 2024 08:38
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