我们正在将Ruby On Rails网站从HTTP迁移到HTTPS。我们的网站使用该fb-comments
插件捕获各个页面上的用户评论。在测试过程中,我们发现将页面从HTTP切换到HTTPS时,Facebook似乎将其视为新页面,并且不再加载该页面的任何先前注释。
换句话说,http://my.domain.com/page1
和https://my.domain.com/page1
被视为具有不同评论集的单独页面fb-comments
。
这是我们HTML的一小段,其中包括对的当前调用fb-comments
:
<div class="fb-comments"
data-href="<%=url_for(:only_path=>false)%>"
data-num-posts="<%=number_of_posts%>"
data-width="<%=width%>">
</div>
Run Code Online (Sandbox Code Playgroud)
有没有人知道正确的方法使Facebook返回与页面无关的协议(HTTP与HTTPS)?
我创建了一个视图来连接 Big Query 中的两个表。当我将该视图用作 Data Studio 中的数据源时,出现配置错误。用于创建视图的查询如下所示:
SELECT emp.name, emp.gender, emp.age, pay.salary
FROM [project:doug.employees] as emp
JOIN [project:doug.payrates] as pay on emp.name = pay.name
Run Code Online (Sandbox Code Playgroud)
在 Big Query 中,视图按预期工作。我可以毫无问题地查询它。如果我尝试将视图直接用作数据洞察中的数据源,则在页面上放置报表控件或查看报表时,我会立即收到以下错误。
There`s a query error.
Field 't0.gender' not found; did you mean 'emp.Gender'?
Error ID: b07b8f27
Run Code Online (Sandbox Code Playgroud)
我还尝试使用视图的自定义查询作为数据源。自定义查询是...
select * from [project:doug.employee_salaries_view]
Run Code Online (Sandbox Code Playgroud)
这给了我以下错误。
There`s a query error.
Field 't0.emp_name' not found; did you mean 'emp.Name'?
Error ID: 98782922
Run Code Online (Sandbox Code Playgroud)
这是相同的但具有不同的错误编号。
我已经能够使用不涉及连接的表和视图作为数据源而没有任何问题。
最后,所有使用的查询都使用 Big Query 中的 Legacy SQL。
使用 Big Query 视图连接其他表作为 Data Studio 中的源有什么技巧吗?