Merge lp:~marcustomlinson/unity-scopes-api/send_locale_in_smartscope into lp:unity-scopes-api/devel

Proposed by Marcus Tomlinson
Status: Merged
Approved by: Marcus Tomlinson
Approved revision: 300
Merged at revision: 300
Proposed branch: lp:~marcustomlinson/unity-scopes-api/send_locale_in_smartscope
Merge into: lp:unity-scopes-api/devel
Diff against target: 25 lines (+4/-4)
1 file modified
include/unity/scopes/internal/smartscopes/SmartScope.h (+4/-4)
To merge this branch: bzr merge lp:~marcustomlinson/unity-scopes-api/send_locale_in_smartscope
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Paweł Stołowski (community) Approve
Review via email: mp+214692@code.launchpad.net

Commit message

Send locale to SSS on search and preview requests

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Paweł Stołowski (stolowski) wrote :

+1

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
300. By Marcus Tomlinson

Merged devel

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'include/unity/scopes/internal/smartscopes/SmartScope.h'
2--- include/unity/scopes/internal/smartscopes/SmartScope.h 2014-04-08 07:19:17 +0000
3+++ include/unity/scopes/internal/smartscopes/SmartScope.h 2014-04-08 12:09:08 +0000
4@@ -62,8 +62,8 @@
5 SmartScopesClient::SPtr ss_client = reg->get_ssclient();
6 std::string base_url = reg->get_base_url(scope_id_);
7
8- ///! TODO: session_id, query_id, locale, country
9- search_handle_ = ss_client->search(base_url, query_.query_string(), query.department_id(), "session_id", 0, hints.form_factor(), "", "", hints.cardinality());
10+ ///! TODO: session_id, query_id, country
11+ search_handle_ = ss_client->search(base_url, query_.query_string(), query.department_id(), "session_id", 0, hints.form_factor(), hints.locale(), "", hints.cardinality());
12 }
13
14 ~SmartQuery() noexcept
15@@ -144,8 +144,8 @@
16 SmartScopesClient::SPtr ss_client = reg->get_ssclient();
17 std::string base_url = reg->get_base_url(scope_id_);
18
19- ///! TODO: session_id, widgets_api_version, locale, country
20- preview_handle_ = ss_client->preview(base_url, result_["result_json"].get_string(), "session_id", hints.form_factor(), 0, "", "");
21+ ///! TODO: session_id, widgets_api_version, country
22+ preview_handle_ = ss_client->preview(base_url, result_["result_json"].get_string(), "session_id", hints.form_factor(), 0, hints.locale(), "");
23 }
24
25 ~SmartPreview()

Subscribers

People subscribed via source and target branches

to all changes: