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

Profile Case Search #34603

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Profile Case Search #34603

wants to merge 2 commits into from

Conversation

esoergel
Copy link
Contributor

Product Description

Technical Summary

Make the profiling code a bit less obtrusive

Feature Flag

Safety Assurance

Relying on automated and local tests

Safety story

Automated test coverage

QA Plan

Rollback instructions

  • This PR can be reverted after deploy with no further considerations

Labels & Review

  • Risk label is set correctly
  • The set of people pinged as reviewers is appropriate for the level of risk of the change

@esoergel esoergel added the product/invisible Change has no end-user visible impact label May 10, 2024
@esoergel esoergel requested a review from gherceg May 10, 2024 19:17
def get_base_queryset(self):
def get_base_queryset(self, slug=None):
# slug is only informational, used for profiling
CaseSearchES = self.profiler.get_case_search_class(slug)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not certain whether this is the best way to override the class, but I do like the idea of using an auto-logging subclass rather than needing to use the profiler to call run. Open to feedback if you can think of a cleaner approach

Base automatically changed from es/alt-es-index-2 to master May 14, 2024 19:05
@esoergel esoergel marked this pull request as ready for review May 17, 2024 20:15
This should hopefully make the profiling code a bit less obtrusive
It also means the ancestor queries will be profiled now too
To avoid messing up the numbers of the actual query

def add_query(self, slug, es_query):
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this function just unused?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product/invisible Change has no end-user visible impact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants