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

Avoid unnecessary instantiation of data object #1911

Merged
merged 1 commit into from Jul 20, 2018
Merged

Conversation

jcoyne
Copy link
Member

@jcoyne jcoyne commented Jun 26, 2018

This makes it possible to use with Elasticsearch due to:
elastic/elasticsearch-rails#804

This makes it possible to use with Elasticsearch due to:
elastic/elasticsearch-rails#804
Copy link
Member

@mjgiarlo mjgiarlo left a comment

Choose a reason for hiding this comment

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

See comment.

@@ -65,7 +65,7 @@ def track
path = uri.query ? "#{uri.path}?#{uri.query}" : uri.path
redirect_to path, status: 303
else
redirect_to blacklight_config.document_model.new(id: params[:id]), status: 303
redirect_to({ action: :show, id: params[:id] }, status: 303)
Copy link
Member

Choose a reason for hiding this comment

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

It's not clear to me that the code you removed is not necessary. Can you explain?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not necessary, because the tests show the intended behavior is unchanged.

@jcoyne jcoyne merged commit 89f71c2 into master Jul 20, 2018
@jcoyne jcoyne deleted the simplify_track branch July 20, 2018 03:30
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.

None yet

2 participants