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

feat: Add endpoints for search actions #9990

Merged

Conversation

AmanuelAaron
Copy link
Contributor

@AmanuelAaron AmanuelAaron commented Sep 25, 2024

Ticket

ET-706
ET-707
ET-708
ET-710
ET-711
ET-712
ET-713
ET-714
ET-715
ET-716
ET-717
ET-718
ET-719
ET-721

Description

Adding archive, unarchive, pause, resume, delete, kill with bulk action

Test Plan

Existing tests should pass

Checklist

  • Changes have been manually QA'd
  • New features have been approved by the corresponding PM
  • User-facing API changes have the "User-facing API Change" label
  • Release notes have been added as a separate file under docs/release-notes/
    See Release Note for details.
  • Licenses have been included for new code which was copied and/or modified from any external code

@@ -169,3 +169,230 @@ func (a *apiServer) DeleteSearchTag(
}
return &res, nil
}

func BulkFiltersSearchtToExperiment(filter *apiv2.BulkSearchFilters) *apiv1.BulkExperimentFilters {
Copy link
Contributor

Choose a reason for hiding this comment

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

Small typo here -- hopefully a tool can help rename it (F2 in VSCode, or find+replace would probably do it in this case)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@AmanuelAaron AmanuelAaron marked this pull request as ready for review September 27, 2024 16:40
@AmanuelAaron AmanuelAaron requested a review from a team as a code owner September 27, 2024 16:40
@AmanuelAaron AmanuelAaron requested review from carolinaecalderon and removed request for a team September 27, 2024 16:40
Copy link

codecov bot commented Sep 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 40.59%. Comparing base (41107a3) to head (a402566).

❗ There is a different number of reports uploaded between BASE (41107a3) and HEAD (a402566). Click for more details.

HEAD has 8 uploads less than BASE
Flag BASE (41107a3) HEAD (a402566)
harness 8 1
web 1 0
Additional details and impacted files
@@                         Coverage Diff                         @@
##           feature/ET-684/run-centric-api    #9990       +/-   ##
===================================================================
- Coverage                           54.54%   40.59%   -13.95%     
===================================================================
  Files                                1256      116     -1140     
  Lines                              156852     9614   -147238     
  Branches                             3601        0     -3601     
===================================================================
- Hits                                85551     3903    -81648     
+ Misses                              71168     5711    -65457     
+ Partials                              133        0      -133     
Flag Coverage Δ
harness 39.81% <ø> (-32.94%) ⬇️
web ?

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

see 1201 files with indirect coverage changes

Copy link
Contributor

@carolinaecalderon carolinaecalderon left a comment

Choose a reason for hiding this comment

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

looks good, needs tests though

return &res, nil
}

func (a *apiServer) DeleteSearches(ctx context.Context, req *apiv2.DeleteSearchesRequest,
Copy link
Contributor

Choose a reason for hiding this comment

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

tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These endpoints are essentially wrappers around already tested endpoints. Added a test for the newly added bulk conversion filter function

@AmanuelAaron AmanuelAaron merged commit 61540be into feature/ET-684/run-centric-api Oct 3, 2024
64 of 83 checks passed
@AmanuelAaron AmanuelAaron deleted the aaron_amanuel/search-actions branch October 3, 2024 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants