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

[WIP] Enable a configuration for skipping a saved search that uses the requ… #2153

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

Conversation

mejackreed
Copy link
Contributor

…est and params object

Very similar to approach for crawler, but semantically a bit different?

What do others think?

@@ -38,7 +38,7 @@ def set_current_search_session
end

def find_search_session
if agent_is_crawler?
if agent_is_crawler? || skip_session_tracking?
Copy link
Member

Choose a reason for hiding this comment

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

Should we go ahead and push agent_is_crawler? into the skip_session_tracking? method?

Copy link
Member

Choose a reason for hiding this comment

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

Or, should this check get pushed up to record_search_parameters or before_action :set_current_search_session, if: ... around line 15?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@@ -78,6 +78,13 @@ def agent_is_crawler?
crawler_proc.call(request)
end

def skip_session_tracking?
Copy link
Member

Choose a reason for hiding this comment

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

I haven't look at what track_search_session is, but what if we let it be a boolean and/or a lambda?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that might be a better extendable approach. I'll look into that.

@mejackreed mejackreed changed the title Enable a configuration for skipping a saved search that uses the requ… [WIP] Enable a configuration for skipping a saved search that uses the requ… Sep 30, 2019
@barmintor barmintor force-pushed the config-skip-saved-search branch from 8f8c025 to 4e0cc07 Compare May 5, 2022 13:39
@barmintor
Copy link
Contributor

Not sure if people still want this, but it was in an awkward state of failing tests/requested changes/approved/needed rebase.

I've rebased and put the fixups originally requested in. Do we still want this, or can we close this PR?

@barmintor barmintor force-pushed the config-skip-saved-search branch from 4e0cc07 to 2ef9883 Compare May 5, 2022 14:12
@barmintor barmintor force-pushed the config-skip-saved-search branch from 2ef9883 to 7b812ba Compare May 5, 2022 15:15
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.

4 participants