text:
euler如何支持hdfs

看到吗现在会判断hdfs_prefix='hdfs://'
若何使用viewfs:// ?

指定hdfs 报错
no hdfs file io factory register

if (euler::common::factory_map.find("hdfs") ==
    euler::common::factory_map.end()) {
  LOG(ERROR) << "no hdfs file io factory register";
  return false;
}

如果需要支持hdfs数据加载，则需要修改项目根目录下的CMakeLists.txt，把option(USE_HDFS "Option for using hdfs" OFF)改为option(USE_HDFS "Option for using hdfs" ON)，详细过程请看编译安装部分

如果需要支持hdfs数据加载，则需要修改项目根目录下的CMakeLists.txt，把option(USE_HDFS "Option for using hdfs" OFF)改为option(USE_HDFS "Option for using hdfs" ON)，详细过程请看编译安装部分

怎么用viewfs呢？开启这个option(USE_HDFS "Option for using hdfs" ON) 就可以了么

我使用docker方式运行的 DockerFile怎么改这个呢？

目前我们只测试了hdfs://这种方式，不太清楚viewfs://会有什么问题。
至于打docker，
git clone --recursive https://github.com/alibaba/euler.git # 执行完这个命令之后修改一下根目录的CMakeLists.txt，设置option(USE_HDFS "Option for using hdfs" ON)，然后执行下面两句命令应该就好了，Dockerfile不用修改
cd euler
docker build --net=host -f tools/docker/Dockerfile .

目前我们只测试了hdfs://这种方式，不太清楚viewfs://会有什么问题。
至于打docker，
git clone --recursive https://github.com/alibaba/euler.git # 执行完这个命令之后修改一下根目录的CMakeLists.txt，设置option(USE_HDFS "Option for using hdfs" ON)，然后执行下面两句命令应该就好了，Dockerfile不用修改
cd euler
docker build --net=host -f tools/docker/Dockerfile .

hdfs_prefix = 'hdfs://'
if not directory.startswith(hdfs_prefix):
raise ValueError('Only hdfs graph data is support for shared graph.')
directory = directory[len(hdfs_prefix):]
看代码是不支持viewfs://这种方式的，我们目前无法使用hdfs:// 因为用了federation，看下能不能支持下viewfs这种方式呢？

On 16 Feb 2019, at 8:13 PM, SuperbDong notifications@github.com wrote:指定hdfs 报错
no hdfs file io factory register—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.

目前我们只测试了hdfs://这种方式，不太清楚viewfs://会有什么问题。
至于打docker，
git clone --recursive https://github.com/alibaba/euler.git # 执行完这个命令之后修改一下根目录的CMakeLists.txt，设置option(USE_HDFS "Option for using hdfs" ON)，然后执行下面两句命令应该就好了，Dockerfile不用修改
cd euler
docker build --net=host -f tools/docker/Dockerfile .

指定这个依然报no hdfs file io factory register
我把demo里面的ppi 上传到hdfs上面了，是数据不对么

你修改了CMakeLists.txt吗？有没有把option(USE_HDFS "Option for using hdfs" OFF)改为option(USE_HDFS "Option for using hdfs" ON)？

On 18 Feb 2019, at 9:44 AM, SuperbDong notifications@github.com wrote:
目前我们只测试了hdfs://这种方式，不太清楚viewfs://会有什么问题。
至于打docker，
git clone --recursive https://github.com/alibaba/euler.git https://github.com/alibaba/euler.git # 执行完这个命令之后修改一下根目录的CMakeLists.txt，设置option(USE_HDFS "Option for using hdfs" ON)，然后执行下面两句命令应该就好了，Dockerfile不用修改
cd euler
docker build --net=host -f tools/docker/Dockerfile .
指定这个依然报no hdfs file io factory register
我把demo里面的ppi 上传到hdfs上面了，是数据不对么
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/alibaba/euler/issues/31#issuecomment-464549236, or mute the thread https://github.com/notifications/unsubscribe-auth/AD20y35-_OM9iLbN94H4nY6YdyWC_eqRks5vOgWPgaJpZM4a9TEF.

如果编译没有问题，启动的时候会打印“hdfs file io factory register”这个日志

如果编译没有问题，启动的时候会打印“hdfs file io factory register”这个日志

启动打印的是local file io factory register
启动命令是
python -m tf_euler --ps_hosts=localhost:59980 --worker_hosts=localhost:20000 --data_dir hdfs://hdfs:9000/ppi --euler_zk_addr zk:2181 --euler_zk_path /path/for/euler --max_id 56944 --feature_idx 1 --feature_dim 50 --label_idx 0 --label_dim 121 --model graphsage_supervised --mode train --job_name=worker --task_index=0
python -m tf_euler --ps_hosts=localhost:59980 --worker_hosts=localhost:20000 --data_dir hdfs://hdfs:9000/ppi --euler_zk_addr zk:2181 --euler_zk_path /path/for/euler --max_id 56944 --feature_idx 1 --feature_dim 50 --label_idx 0 --label_dim 121 --model graphsage_supervised --mode train --job_name=ps --task_index=0

如果只打印local file io factory register，说明编译没有把hdfs部分编译进去。我们在euler/filo_io_factory.cc中用宏做了选择编译：
"
#ifdef HDFS
#include "euler/common/hdfs_file_io_factory.h"
static euler::common::HdfsFileIOFactoryReg hdfs_reg;
#endif
"
如果没有在根目录的CMakeLists.txt中把设置option(USE_HDFS "Option for using hdfs" OFF)改为option(USE_HDFS "Option for using hdfs" ON)，是不会编译hdfs部分的。

如果只打印local file io factory register，说明编译没有把hdfs部分编译进去。我们在euler/filo_io_factory.cc中用宏做了选择编译：
"
#ifdef HDFS
#include "euler/common/hdfs_file_io_factory.h"
static euler::common::HdfsFileIOFactoryReg hdfs_reg;
#endif
"
如果没有在根目录的CMakeLists.txt中把设置option(USE_HDFS "Option for using hdfs" OFF)改为option(USE_HDFS "Option for using hdfs" ON)，是不会编译hdfs部分的。

已经改成这种了 依旧如此
option(USE_HDFS "Option for using hdfs" ON)
同时
#include "euler/common/file_io_factory.h"
namespace euler {
namespace common {
std::unordered_map<std::string, FileIOFactory*> factory_map;
}  // namespace euler
}  // namespace common
#include "euler/common/hdfs_file_io_factory.h"
static euler::common::HdfsFileIOFactoryReg hdfs_reg;
#include "euler/common/local_file_io_factory.h"
static euler::common::LocalFileIOFactoryReg local_reg;

能把你的编译步骤详细再说明一下吗

如果只打印local file io factory register，说明编译没有把hdfs部分编译进去。我们在euler/filo_io_factory.cc中用宏做了选择编译：
"
#ifdef HDFS
#include "euler/common/hdfs_file_io_factory.h"
static euler::common::HdfsFileIOFactoryReg hdfs_reg;
#endif
"
如果没有在根目录的CMakeLists.txt中把设置option(USE_HDFS "Option for using hdfs" OFF)改为option(USE_HDFS "Option for using hdfs" ON)，是不会编译hdfs部分的。

[ 25%] Building CXX object euler/common/CMakeFiles/common.dir/string_util.cc.o
[ 25%] Building C object third_party/grpc/third_party/zlib/CMakeFiles/example64.dir/test/example.o
[ 25%] Building CXX object euler/common/CMakeFiles/common.dir/hdfs_file_io.cc.o
[ 25%] Building C object third_party/grpc/third_party/zlib/CMakeFiles/minigzip64.dir/test/minigzip.o
-- verifying file...
file='/tmp/build/jemalloc/src/5.1.0.tar.gz'
-- Downloading... done
[ 25%] Building CXX object third_party/grpc/CMakeFiles/grpc_unsecure.dir/src/core/lib/avl/avl.cc.o
[ 25%] Building CXX object third_party/grpc/CMakeFiles/grpc_unsecure.dir/src/core/lib/channel/channelz.cc.o

能把你的编译步骤详细再说明一下吗

我直接build的DockerFile

你能确定下你的执行环境是你修改之后build的docker吗？

On 18 Feb 2019, at 12:00 PM, SuperbDong notifications@github.com wrote:
能把你的编译步骤详细再说明一下吗
我直接build的DockerFile
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/alibaba/euler/issues/31#issuecomment-464575028, or mute the thread https://github.com/notifications/unsubscribe-auth/AD20yzpqUlCKiXFihQyCvRSWyQzXw4Qdks5vOiVfgaJpZM4a9TEF.

希望后续能支持一下viewfs 还有xdl好像也不支持viewfs

如果需要支持hdfs数据加载，则需要修改项目根目录下的CMakeLists.txt，把option(USE_HDFS "Option for using hdfs" OFF)改为option(USE_HDFS "Option for using hdfs" ON)，详细过程请看编译安装部分

如果用pip安装的，需要手动开启这个开关不

pip安装的不支持hdfs

On 18 Feb 2019, at 5:31 PM, Gavin Zhang notifications@github.com wrote:
如果需要支持hdfs数据加载，则需要修改项目根目录下的CMakeLists.txt，把option(USE_HDFS "Option for using hdfs" OFF)改为option(USE_HDFS "Option for using hdfs" ON)，详细过程请看编译安装部分
如果用pip安装的，需要手动开启这个开关不
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/alibaba/euler/issues/31#issuecomment-464655302, or mute the thread https://github.com/notifications/unsubscribe-auth/AD20y2jvOq8p3Ejg6uUvRdKbjyRic42bks5vOnLUgaJpZM4a9TEF.

这个我们会评估下，其实文件系统这块我们提供了抽象，用户可以自己扩展

On 18 Feb 2019, at 4:44 PM, SuperbDong notifications@github.com wrote:
希望后续能支持一下viewfs 还有xdl好像也不支持viewfs
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/alibaba/euler/issues/31#issuecomment-464639032, or mute the thread https://github.com/notifications/unsubscribe-auth/AD20yzZWIntWYEB0eVW5Cskee1dugt7Xks5vOmfegaJpZM4a9TEF.

docker 运行模式 单worker没问题 如果多worker会报
NotFoundError (see above for traceback): ckpt/model.ckpt-0_temp_763e08a969e04f0eb55c86f367e10977; No such file or directory

每个worker在一个机器上

可以说一下执行过程吗？

On 19 Feb 2019, at 2:19 PM, SuperbDong notifications@github.com wrote:
0_temp_763e08a969e04f0eb55c86f367e10977

https://stackoverflow.com/questions/53828895/does-distributed-tensorflow-requires-a-distributed-file-system-to-save-checkpoin
和这个一样的case

需要指定额外的参数么，checkpoint的时候会失败，当worker大于1的时候
NotFoundError (see above for traceback): ckpt/model.ckpt-0_temp_763e08a969e04f0eb55c86f367e10977; No such file or directory

这个问题看起来是由于ps在不同的机器上导致的，不同机器的ps需要有共享的文件系统，如果你是这种情况可以考虑hdfs或者nfs。
你看看是不是跟这个issue上的情形类似， https://github.com/tensorflow/tensor2tensor/issues/394

On 20 Feb 2019, at 10:19 AM, SuperbDong notifications@github.com wrote:
需要指定额外的参数么，checkpoint的时候会失败，当worker大于1的时候
NotFoundError (see above for traceback): ckpt/model.ckpt-0_temp_763e08a969e04f0eb55c86f367e10977; No such file or directory
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/alibaba/euler/issues/31#issuecomment-465392687, or mute the thread https://github.com/notifications/unsubscribe-auth/AD20ywVydPvHx8JtRKKtFdoiWZdfKLVKks5vPLC4gaJpZM4a9TEF.

pip安装的不支持hdfs
…
On 18 Feb 2019, at 5:31 PM, Gavin Zhang @.***> wrote: 如果需要支持hdfs数据加载，则需要修改项目根目录下的CMakeLists.txt，把option(USE_HDFS "Option for using hdfs" OFF)改为option(USE_HDFS "Option for using hdfs" ON)，详细过程请看编译安装部分 如果用pip安装的，需要手动开启这个开关不 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#31 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AD20y2jvOq8p3Ejg6uUvRdKbjyRic42bks5vOnLUgaJpZM4a9TEF.

我通过pip安装 是支持hdfs的

pip 安装的支持 hdfs么？我这通过whl文件安装的出现下面的错误
E0801 20:48:20.770622 68588 graph_engine.cc:75] no hdfs file io factory register I0801 20:48:20.770738 68588 graph_service.cc:179] service init finish E0801 20:48:20.770808 68588 graph_service.cc:157] service error

pip安装版本不支持hdfs，需要源码编译安装
| |
计算机院 魏源
邮箱：18810543471@163.com
|
签名由 网易邮箱大师 定制
在2019年08月01日 21:28，xiongzhiyuan 写道：
pip 安装的支持 hdfs么？我这通过whl文件安装的出现下面的错误
E0801 20:48:20.770622 68588 graph_engine.cc:75] no hdfs file io factory register I0801 20:48:20.770738 68588 graph_service.cc:179] service init finish E0801 20:48:20.770808 68588 graph_service.cc:157] service error
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

有没有支持hdfs的euler whl包

Python 有支持hdfs的 whl包，或者可以在euler 的dockerfile文件中增加ssh、format等相关内容，如：
用户在pod中就可以直接操作hdfs相关内容。
| |
zhuyusen2002
|
|
zhuyusen2002@163.com
|
签名由网易邮箱大师定制
在2019年08月2日 16:44，xiongzhiyuannotifications@github.com 写道：
有没有支持hdfs的euler whl包
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

euler_gl-0.1.2-cp27-cp27mu-manylinux1_x86_64.whl 这个whl支持么，我这边重新编译的代价有点大，网络，你们那边可以提供一下能支持hdfs的whl包么？

authors: 2shou SuperbDong chengenbao xiongzhiyuan zakheav zys2017

repo: alibaba/euler


text:
Fix typo valiateResult -> validateResult

Fix typo valiateResult -> validateResult

Codecov Report

Merging #3737 (697e152) into master (14a95cc) will decrease coverage by 0.01%.
The diff coverage is 85.71%.

@@             Coverage Diff              @@
##             master    #3737      +/-   ##
============================================
- Coverage     80.30%   80.29%   -0.02%
+ Complexity     7519     7518       -1
============================================
  Files           157      157
  Lines         28096    28096
  Branches       6790     6790
============================================
- Hits          22563    22560       -3
- Misses         3499     3500       +1
- Partials       2034     2036       +2

Impacted Files
Coverage Δ
Complexity Δ

.../main/java/com/alibaba/fastjson/JSONValidator.java
64.83% <85.71%> (ø)
58.00 <5.00> (ø)

...main/java/com/alibaba/fastjson/util/FieldInfo.java
86.42% <0.00%> (-0.34%)
98.00% <0.00%> (-1.00%)

...n/java/com/alibaba/fastjson/util/JavaBeanInfo.java
86.89% <0.00%> (-0.17%)
216.00% <0.00%> (ø%)

...java/com/alibaba/fastjson/parser/ParserConfig.java
80.46% <0.00%> (-0.15%)
226.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 14a95cc...697e152. Read the comment docs.

source: gharchive/pull-request

authors: clark-liu codecov-commenter

repo: alibaba/fastjson

license_type: permissive

license_source: github-api


text:
单独修改资源文件，freeline运行后闪退

10月份在qcon大会上第一次了解到freeline，当时非常兴奋，如获至宝，秒级编译，热部署。。。这些功能对于android开发者来说能大大的提高开发效率，最近将freeline引入到我们项目里，发现了下面几个问题，希望能帮忙一起看下
1 修改资源文件闪退问题
a. 修改java文件，运行python freeline.py 正常
b. 修改java文件+资源文件（layout里的布局文件），运行python freeline.py 正常
c.  修改资源文件，不修改java文件，运行python freeline.py app闪退，需要手动启动app
2 无法debug
看我们的freeline.py 里有 -d 参数，应该是debug的意思，但是执行 python freeline.py -d app起来的时候无法进入设置的断点（android studio 2.1.1），如果无法像在android studio里进行调试，那freeline的实用性将大打折扣，我希望是我环境搭建的问题，而不是不支持调试
对于上面的问题，我已经将我们的工程简化成demo，这个demo工程能重现上面问题，工程文件见附件。用的freeline版本 0.8.1，gradle jdk等版本见demo工程，我初步怀疑是和静态变量有关，重现步骤：
layout/activity_main.xml 修改textview的text属性，然后运行python freeline.py  闪退
这两个问题困扰我一个多星期，实在希望能在项目组里推广freeline，一直在摸搜不想放弃，希望能在这里得到帮助，非常感谢
PS: 工程文件压缩成.zip 还是无法上传，所以就把后缀直接改成了.pdf，下载下来的时候请把文件后缀名改回 .rar 即 MyApplication2.PDF 改为MyApplication2.rar
MyApplication2.PDF

@yak99 抱歉哈...有点奇怪...刚看到这个issue...
先回到下debug的问题，-d是显示freeline的debug log的参数，windows下，默认显示debug log。
要debug app，需要在Android Studio里点击那个attach debugger的按钮即可，新的断点逻辑会走到了...

@yak99 这个问题不是闪退，没有闪退的堆栈，而是被finish()掉了。
在你的BaseActivity里有这个调用：
        @Override
	protected void onDestroy() {
		super.onDestroy();

		// 结束Activity&从堆栈中移除
		AppManager.getAppManager().finishActivity(this);
	}

而在 Freeline 增量编译资源你更新的时候，会调用Activity#recreate()。最终导致重建的Activity直接被finish掉了，就出现了类似你提到的“闪退”的现象。
排查方法，你可以在MainActivity的onDestroy()方法里加入log，会看到这里被调用了两次。
把这里的finishActivity()处理了就能够正常使用了。

@lomanyong 增量编译重建activity 调用recreate() 为什么会导致两次 onDestroy方法的触发？ 第二次的触发是为什么？ 怎么解释 java文件修改+资源文件修改就只会触发一次,而单单修改资源文件就会触发两次？从这个角度讲应该和我们freeline重建activity的逻辑有关，而不是工程代码中BaseActivity的问题，并且android studo 启动都不会有问题；
另外您的回复中提到：把这里的finishActivity()处理了就能够正常使用了。
对于这个修改，我如何判断那次是需要finish ，哪一次不要finish呢？而且对于能正常运行的项目代码，为了适应freeline而进行代码逻辑的改动，应该是尽可能少甚至不应该修改（除非我的逻辑本来就存在错误，而没被发现）；希望给点修改建议，谢谢

@yak99 代码修改的时候是freeline执行了killProcess了，这时finish()不会生效。
我们也是在做到使用freeline的时候尽量不会涉及到你们本身代码逻辑的修改...只是你们这里的调用貌似本身就有点问题？为什么需要在onDestroy()的时候调用finish()呢？onDestroy()的时候不是本身就是进入finish()流程了吗？

@lomanyong  谢谢你的回复，也谢谢freeline团队为我们分享这么好用的插件！支持你们，顶！

source: gharchive/issue

repo: alibaba/freeline


text:
Update Dockerfile.base

Ⅰ. Describe what this PR did
Update Dockerfile.base,and remove the command “update-ca-certificates“ as it will be triggered automatically by “apt upgrade”,it is not necessary to run this command separately before.
Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #473 (1c14868) into main (1f154c5) will increase coverage by 0.06%.
The diff coverage is n/a.

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #473      +/-   ##
==========================================
+ Coverage   40.26%   40.33%   +0.06%
==========================================
  Files          45       45
  Lines        6181     6181
==========================================
+ Hits         2489     2493       +4
+ Misses       3519     3515       -4
  Partials      173      173

see 1 file with indirect coverage changes

authors: codecov-commenter xiezheng-XD

repo: alibaba/higress


text:
介绍文章

TODO

fixed in https://github.com/alibaba/lightproxy/issues/19

repo: alibaba/lightproxy


text:
请问这个怎么用于mlp的网络结构搜索？

这个关于CNN网络的规划问题似乎不能很好套用在mlp上。

我没理解错的话，根据论文表达的最大熵原理以及上面两个公式，似乎mlp的层数越多，并且宽度合适的时候，网络的表达能力就越强?
那这样如果算力很多甚至无限的情况下网络可以无限深。这个最大熵原理好像对实际情况下的mlp模型结构搜索的指导意义不是很强？因为实际情况下样本量有限（尤其工业界的样本往往很难获取），很明显网络深到一定程度再深下去可训练参数量对于这个样本来说太多了。

就比如我现在想用DeepMAD的原理搜索一个应用于工业界的mlp回归预测模型。举个例子就是我有个电池的验证样本，这个样本包含两个特征：电容量和已使用时间，然后要用这两个特征预测这个电池的寿命。
我希望能通过NAS技术解决工业界从业人员在使用mlp时人工选择模型结构的不确定性。希望NAS能完成模型选择这一过程。
我尝试过AutoML平台，不过这些平台并不公布他们搜索出来的模型结构。

就比如我现在想用DeepMAD的原理搜索一个应用于工业界的mlp回归预测模型。举个例子就是我有个电池的验证样本，这个样本包含两个特征：电容量和已使用时间，然后要用这两个特征预测这个电池的寿命。 并且很多这些工业界的研究经常会用mlp和其他机器学习算法进行比较，但往往这些mlp的网络结构设计是手工设计的，可靠性无法保证。除此之外，手工选择mlp模型结构导致开发效率低下，因为这种手工选择往往伴随着大量的实验试错。
我希望能通过NAS技术解决工业界从业人员在使用mlp时人工选择模型结构的不确定性。希望NAS能完成模型选择这一过程。 我尝试过AutoML平台，不过这些平台并不公布他们搜索出来的模型结构。
请问可以给一些建议吗?

1 可以去看看是否有支持MLP的 one-shot nas 方法的开源项目，这部分我们的了解有限；
2 如果训练成本低，搜索空间比较小的话，可以使用我们的代码进行修改，直接通过 模型生成+训练+评估的流程去做；

谢谢，您的建议对我帮助很大！
---原始邮件---
发件人: @.>
发送时间: 2023年5月22日(周一) 下午5:03
收件人: @.>;
抄送: "Kenny @.@.>;
主题: Re: [alibaba/lightweight-neural-architecture-search] 请问这个怎么用于mlp的网络结构搜索？ (Issue #17)
就比如我现在想用DeepMAD的原理搜索一个应用于工业界的mlp回归预测模型。举个例子就是我有个电池的验证样本，这个样本包含两个特征：电容量和已使用时间，然后要用这两个特征预测这个电池的寿命。 并且很多这些工业界的研究经常会用mlp和其他机器学习算法进行比较，但往往这些mlp的网络结构设计是手工设计的，可靠性无法保证。除此之外，手工选择mlp模型结构导致开发效率低下，因为这种手工选择往往伴随着大量的实验试错。
我希望能通过NAS技术解决工业界从业人员在使用mlp时人工选择模型结构的不确定性。希望NAS能完成模型选择这一过程。 我尝试过AutoML平台，不过这些平台并不公布他们搜索出来的模型结构。
请问可以给一些建议吗?
1 可以去看看是否有支持MLP的 one-shot nas 方法的开源项目，这部分我们的了解有限；
2 如果训练成本低，搜索空间比较小的话，可以使用我们的代码进行修改，直接通过 模型生成+训练+评估的流程去做；
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


text:
antd DatePicker 物料翻译中文部分失效问题

Describe the bug (required) / 详细描述 bug（必填）
基于antd 组件库 DatePicker组件进行二次封装，并且对它进行翻译，使用了 部分是好的，但是月份和星期翻译失败，这一部分翻译是由moment.js 提供，但是引入了却是翻译失败了
To Reproduce (required) / 如何复现 bug？（必填，非常重要）
物料代码

最小demo 复现成功案例（在低代码物料 和编辑器却失败了）
demo
Expected behavior (required) / 预期行为（必填，非常重要）
A clear and concise description of what did you expect to happen. / 请清晰和精确的描述你预期的行为

希望星期 和月也能翻译成功
Screenshots (optional) / bug 截图（可选）
Sceenshots for further information. (If applicable.) / 一些有用的截图将会帮助我们更好的明确以及定位问题

绿色的是翻译成功的，是使用了进行翻译的，月份和星期翻译错误由moment.js翻译,但是翻译失败，自己用最小demo 是成功的，但是在低代码物料 和编辑器都不行
Environments (please complete the following information) (required): / 请提供如下信息（必填）

AliLowCodeEngine  v1.1.9-beta
AliLowCodeExt  v1.0.6-beta.27
AliLowCodeEngineDemo  v1.0.28
Google Chrome 版本 114.0.5735.199（正式版本） （64 位）

#1117 问题 @lucy091 描述的也是该问题，现在我们在低代码编辑器 preview.tsx 增加计时器 反复设置moment的语言包，这样才解决，初步排查可能引入或重复设置了moment，希望官方排查一下，或者给出一个更好的解决方案

@hujiulong 请问大佬有其他解决方案吗

{
package: 'moment',
version: '2.24.0',
urls: [
'https://unpkg.com/moment@2.24.0/min/moment.min.js',
'https://unpkg.com/moment@2.24.0/min/locales.min.js'
],
library: 'moment'
},
我也遇到了，可以这样引入locales文件，然后在 传入中文包，此处参考antd官方的做法

{ package: 'moment', version: '2.24.0', urls: [ 'https://unpkg.com/moment@2.24.0/min/moment.min.js', 'https://unpkg.com/moment@2.24.0/min/locales.min.js' ], library: 'moment' },我也遇到了，可以这样引入moment的locales文件，然后使用ConfigProvider 传入中文包，此处参考antd官方的做法 通过这样引入后，代码里是按下边这样子写的吗， 我这样做了，发现不生效
import 'moment/locale/zh-cn';
import zhCN from 'antd/es/locale/zh_CN';
{props.children}
`

authors: 947291135 mrliyaya shanyijin

repo: alibaba/lowcode-engine

license: MIT


text:
怎么在不修改物料包组件源码的情况下修改组件属性面板没有的属性

Describe the bug (required) / 详细描述 bug（必填）
比如：antd组件库树选择TreeSelect怎么设置treeNodeFilterProp属性为title（属性面板没有该属性）配合“筛选节点”属性进行筛选

To Reproduce (required) / 如何复现 bug？（必填，非常重要）
不需要
Expected behavior (required) / 预期行为（必填，非常重要）
通过修改treeNodeFilterProp为title进行筛选title
Screenshots (optional) / bug 截图（可选）

Environments (please complete the following information) (required): / 请提供如下信息（必填）

AliLowCodeEngine version: [e.g. 1.0.0] / 低代码引擎版本  1.0.28
AliLowCodeEngineExt version: [e.g. 1.0.0] / 低代码引擎扩展包版本
Browser [e.g. chrome, safari] / 浏览器版本
materials / plugins / tools / 其他物料 / 插件 / 工具链版本

没看懂什么意思，请再具体描述一下

没看懂什么意思，请再具体描述一下

就是树选择TreeSelect的那个筛选节点(图中所示)需要配合treeNodeFilterProp属性来筛选，我想要把treeNodeFilterProp属性值改为title筛选title，但是组件属性面板没有这个属性，我怎么修改这个属性值呢？（试过修改他的props但是不生效）

那在属性面板上增加这个不就可以了

有不修改组件源码的处理办法吗

为什么不修改组件物料描述，而要在没有的情况下设置

因为要用title筛选呀，value筛选用不上

还是没懂，你是说属性间有些联动，有些时候某些属性隐藏？那既然隐藏了为什么还要设置它的值


text:
物料引入问题请教

在使用官方antd物料的时候，发现assets中需要将antd的umd库CDN方式引入，但是看antd物料的配置，并没有看到有比较特殊的配置表明antd以externals的方式引用。所以请教一下官方这块有具体的配置吗？我具体的需求是：自己开发的组件库是umd形式的，但是会生成类型定义，然后在materials项目中，将这些组件库以externals的方式引入呢？

写在 assets#packages 里，即代表会引入~


text:
add unit-test for getAppArmorSecurityOpts & getSeccompSecurityOpts me…

…thod which locate on cri/v1alpha1/cri_utils.go

Ⅰ. Describe what this PR did
Add unit-test for getAppArmorSecurityOpts & getSeccompSecurityOpts method which locate on cri/v1alpha1/cri_utils.go.
Ⅱ. Does this pull request fix one issue?

fixes #1931
Ⅲ. Describe how you did it
Build unit test by condition combination coverage(ccc).
First, build program structure graph. According to the graph and the principle of ccc, we derive the test cases
Ⅳ. Describe how to verify it
cd cri/v1alpha1/;go test
Ⅴ. Special notes for reviews
no

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.莲示 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

repo: alibaba/pouch


text:
版本依赖关系 Spring Boot 2.4.2.RELEASE 应为 2.4.2

如题

是的，2.4以后的版本，都没有RELEASE字样了。那么请问您的问题是什么？

Refer to https://github.com/alibaba/spring-cloud-alibaba/issues/2059

authors: HaojunRen fengwenyi

repo: alibaba/spring-cloud-alibaba


text:
tengine is support thread pool?

tengine is support thread pool?
and, nginx1.7.1 release is support , how abort this future performance ？

2015-04-21
nginx-1.8.0 stable version has been released, incorporating many new features from the 1.7.x mainline branch - including hash load balancing method, backend SSL certificate verification, experimental thread pools support, proxy_request_buffering and more.
We need nginx 1.7.11+ too.

thread pool is a suitable solution for some block or sync compute task. but port this feature has a lot of work to do, so please wait for a while~

it has been merged for now in tengine 2.2.0 (in development).
but we prefer co-routine for thread pool.

authors: cfsego imleon rfyiamcool tanguofu

repo: alibaba/tengine


text:
Chromium should be used on Linux

Some distros ship chromium (FOSS Chrome build) under binary name chromium. I don't know much C, but it seems that currently webui searches for chromium only on macOS. Since Chromium/chrome has better app mode, it would be nice to try to use it on Linux as well.

https://github.com/alifcommunity/webui/blob/6ef37f068ad787605713bf93eae9cab49772b8b9/src/webui.c#L2797
Right now, WebUI searches for Chromium on Linux using chromium-browser. Are you saying that Chromium in your Linux distro uses chromium? If yes, we can easily add it to the search commands.
Can you please provide your Linux distribution name?

Yes.

distro
binary

Ubuntu
chromium-browser

Arch
chromium

Void
chromium

Linux Mint
chromium

Fedora
chromium-browser

open suse
both 😉

alpine
chromium-browser

Thank you, @TeddyDD 👍
Added https://github.com/alifcommunity/webui/pull/92

authors: AlbertShown TeddyDD hassandraga

repo: alifcommunity/webui


text:
微信小程序，输入控件无法输入

手机型号: OPPO
安卓版本: Android 7.1.1

可以尝试使用输入并搜索功能
SoloPi 的执行SHELL命令是在SHELL环境下执行的，直接使用input text就可以输入了

repo: alipay/SoloPi

license_source: bigquery


text:
使用sofa-rpc,会报Unknown invoke type:bolt错误

版本依赖，为2.4.0时，启动两个应用，一个是consumer, 一个是provider，配置bolt类型的rpc通信；发现通信时就会报错：Unknown invoke type:bolt
<parent>
        <groupId>com.alipay.sofa</groupId>
        <artifactId>sofaboot-dependencies</artifactId>
        <version>2.4.0</version>
 </parent>

版本依赖为2.4.1时就没这个问题。

@nolan4954 推荐使用 2.4.x 的最新版，版本最后一位主要是 bugfix。

好的，明白了 :)

repo: alipay/sofa-rpc


text:
Fix SpringMvc AutoConfiguration error when startup in webflux environment.

Add condition on FilterRegistrationBean to fix startup error in webflux environment.

Fixed by https://github.com/alipay/sofa-tracer/pull/96/commits/ca59a007d9c2f5a68cef8d78ac3f8cc3185a63cf

repo: alipay/sofa-tracer


text:
Allow the profile editor to edit screen_name?

Now that we've disabled the check for uniqueness on screen names, can we let people check their screen name, since we're no longer worried about collisions?

This will be pushed to production when we deploy all the new features

authors: michellekondou murtaugh

repo: alistapart/AListApart

license: mit


text:
Do we really need root privilege?

Hi,
Could the project consider removing operations that require root privileges? Running the program as root may pose security risks and isn't ideal for general usage. It would be beneficial if these actions could be handled with standard user permissions. Thank you!
Best,
Lin

Very good suggestion, we will try to implement this method (mainly to reduce the use of the /etc directory). Furthermore, we have tested that the official Ubuntu20.04 image can successfully pass all tests and can be used with root privileges in Docker.

repo: aliyun/SimAI


text:
PHP8无法正常使用

SDK 2.4.1 无法在php8使用，php7可以正常使用
php8.0提示Required parameter $data follows optional parameter $type

近期会发版本支持php8

已发布，请使用 2.4.2 版本

authors: dayrui huiguangjun

repo: aliyun/aliyun-oss-php-sdk


text:
pod 报错，其他的库都没问题

Analyzing dependencies
Downloading dependencies
Installing AliPlayerPartSDK_iOS (4.7.4)
[!] Error installing AliPlayerPartSDK_iOS
[!] /usr/bin/git clone https://github.com/aliyunvideo/AliPlayerSDK.git /var/folders/q7/8mz0pcld4t73js_hrlv22s4r0000gn/T/d20200707-10827-om9q5z --template= --single-branch --depth 1 --branch 4.7.4
Cloning into '/var/folders/q7/8mz0pcld4t73js_hrlv22s4r0000gn/T/d20200707-10827-om9q5z'...
fatal: unable to access 'https://github.com/aliyunvideo/AliPlayerSDK.git/': Failed to connect to github.com port 443: Connection refused

现在GitHub访问速度真的是太慢了，建议官方把source改成git协议，或者把仓库挪到国内git或者阿里的服务器上吧！

我也是这个错误，不知道怎么解决

我现在将镜像切换到了source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
目前如果多试几次可以更新的下来，也是很慢

也没有什么其他的解决方案，问题关闭了

好的，谢谢了
发自我的iPhone

在 2020年9月23日，11:31，yunjinghui123 notifications@github.com 写道：

我现在将镜像切换到了source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
目前如果多试几次可以更新的下来，也是很慢
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

repo: aliyunvideo/AliPlayerSDK


text:
prune parmeters

Could you share your prune parmeters ?
When i run erigon based the snapshot, it indicates me wrong prune parmeters.

I use the default parameters in the docker-compose.yml file. The only thing I modify in the script is it adds: --chain bsc to the erigon command.

I think I see the errors you are receiving. I have fixed it in a patch I just pushed https://github.com/allada/bsc-archive-snapshot/commit/188a3feb4009bd6e7cf12c769b08b8df569fdbed
erigon made some changes and it appears the default of this flag was changed, and was notifying users that there's a problem from the database version they are using and the launched process flag.
It should be fixed now, if you apply that patch then run:
docker-compose stop
ERIGON_FLAGS=--syncmode=full XDG_DATA_HOME=/erigon/data docker-compose up -d

as root in the /erigon/erigon directory, it should work.

These changes have been committed.

authors: allada byhashdong

repo: allada/bsc-archive-snapshot


text:
Import data from CSV / JSON

Does this framework support importing data from CSV / JSON files?
If not is it possible to implement a new button that supports this feature?

@StigUtson, although we don't have such feature at the moment it can be implemented using attachments field and action that parses it.

Thank you for your answer. How would I mange to attach/upload a file? Is there an API for that?

You could use attachment field: https://allcountjs.com/docs/apps#primitive-types
It still seems like a workaround though if you want to upload and parse files on the fly. In this case you could write your own express route.
Some example code how it can be done here:
https://github.com/allcount/allcountjs/blob/master/services/config/routes-setup.js#L85
https://github.com/allcount/allcountjs/blob/master/routes/crud.js#L137

authors: StigUtson paveltiunov

repo: allcount/allcountjs


text:
How can I get feedbacks from delphi

Hello, while reproducing the model, I tried to get some predictions from Delphi in the following way as you suggested:
import requests
import json
question_prefix = “[moral_single]: ”
for question in questions:
question_input = question_prefix + question
r = requests.post(“https://mosaic-api-morality-delta.apps.allenai.org/api/answer”, headers={“Content-Type”: “application/json”}, data=json.dumps({“question”: question_input}))
r_json = r.json() # This will get you the response as a JSON object
class_label = r_json[“output_raw_list”][0].split(“/class> text>“)[0].split(“class>“)[-1]
text_label = r_json[“output_raw_list”][0].split(“/class> text>“)[-1]
print(class_label, text_label)
I can't get all feedbacks of the questions from delphi and get this error "requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)" caused by this line "r_json = r.json()", and get this response "503 Service Temporarily Unavailable".
Could you please give me any suggestion on how to solve the problem? Thanks in advance for your help!

I just ran the code you sent and didn't get an error message. I assume this error is happening because the API is rate-limited. You could wait a bit before trying to continue running the script, or you could set some artificial waiting times in your script.

authors: Chenchenxxx ValentinaPy

repo: allenai/clarifydelphi


text:
quote instead of delete

Deleting some characters lead to shitty looking descriptions.
Illegel characters can be reduced further to
"'`

only

Thanks for removing the +-... characters. Those definitely didn't look very good.
@tfoote Would you prefer the illegal characters be escaped, or would you prefer the illegal characters be removed?
My opinion here is that, since we only get 80 characters, I'd rather have more of the actual content than spend characters escaping the one's that aren't supposed to be in that field (note: they will still appear in the metadata.xml file's longdescription).
But if I'm the only one with that opinion, I'm open to just escaping them.

I think escaping will be easier to read, especially as the number of characters goes up. Packing in characters by dropping whitespace will only gain a marginal benefit of more characters and lose readability.

authors: Alessandro-Barbieri allenh1 tfoote


text:
Marker not displaying on ng-repeat

I am able to bind marker data on ng-repeat. I can see the list of markers in the console but the markers are not displayed on the map.
Here is the html code snippet
 <map zoom="2" center="[22.9734229, 78.65689420000001]" style="height:300px">
 <marker ng-repeat="storefront in storefronts | orderBy:order" position="[{{storefront.instance.lattitude}}, {{storefront.instance.longitude}}]"></marker><map>

Any help on that?
Thanks in advance.

It looks that you have binding issue since you can see marker in 0,0 position. This usually happens if you pass null or undefined or any other invalid value to the position directive of the marker. Check if storefront.instance.lattitude and storefront.instance.longitude have correct values.
Here is working example:
http://plnkr.co/edit/pNGmIcHKWS3ysqNjFDyf?p=preview
And this is NOT WORKING version with incorrect binding (similar to your case):
http://plnkr.co/edit/lv2OTKCPi4t4e4rRcl17?p=preview

Are you suggesting that if lat/lng values are incorrect, do not show up a marker?

The values of lat/lng are correct in the console. I am able to bind the latitude and longitude data to plain html but cannot bind the data to the marker. Getting the same error as before.

I don't understand.       <marker ng-repeat="pos in positions" position="{{pos.incorrect.ref.lat}},{{pos.incorrect.ref.lng}}"></marker>
there is no pos.incorrect defined in your example.

The example <marker ng-repeat="pos in positions" position="{{pos.incorrect.ref.lat}},{{pos.incorrect.ref.lng}}"></marker> shows a sample of INCORRECT usage.
I'm saying that single (its really many of them in a single point) marker you see on @tinker20's screenshot is usually placed there in 0,0 point when coordinates come as undefined or null to the map.
I have created plunker using original snippet and it seams to be working perfectly fine.
http://plnkr.co/edit/S6l1A4liHl4rhREai6dX?p=preview
@tinker20 can you recreate this issue in plunker?

Sorry I confused comments of @tinker20 and @extravagansta.  Without seeing the exact problem in plunker, I can not be much helpful

Closing for inactivity

authors: allenhwkim extravagangsta tinker20

repo: allenhwkim/angularjs-google-maps


text:
Request: Please update the pot file.

I declared to send a Docker image with a pull request before.
However, given the burden of the developers, I judged that the decision was not good and changed the policy.
Since satisfactory results were obtained with some tests, I decided to release it as an Unofficial Docker image.
At the same time, I had some experimental features implemented.
Main subject
Demonstration
Looking at this, most are localized, but there are parts that are not partially localized.
There seems to be a missing part in the pot file.
Especially not priority, but please update the pot file.
As soon as the missing part is complemented, I update the localization file.
Thanks.

This is really nice. Thanks for sharing it!

Don't mention it. :sunglasses:
It already functions in part of the staging environment and has earned high reputation "It became easy to find high-load process".
I will continue to maintain Japanese localization. If I can be of assistance, please don't hesitate to contact me.
Best regards,

#1301 Bandwidth :arrow_right: Tx. Amount

repo: allinurl/goaccess


text:
can't pipe awk to goaccess

Hi,
i'm trying to pipe awk command to goaccess but is not working
awk '$7~/\<api\>/' /var/log/nginx/access.log | goaccess
is anybody experience the same problem? or i'm doing something wrong?
thanks

I'm having the same issue, however I'm trying to "gunzip -c" a zipped apache log file and keep getting a goaccess specific error. Does goaccess not accept STDIN?

try to comment log-file option in config file.

Hi @vmanyushin,
if I comment the log-file in config file he pipe the awk but Break Out and the debug-file only says "bye"

Can you please post the error message you are getting and if possible a few lines from your access log matching the pattern posted above?

I don't get any error, please see the video below
https://drive.google.com/open?id=0B5VlM_LKLNzGQk52Z0xhczZaaWM
nginx log
192.168.94.58 - - [25/Aug/2016:14:39:19 +0100] "PUT /api/list/3/contact/1111111111/field/status HTTP/1.1" 200 56 "http://site.com/ui/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"0.882

@hmmatos what output do you get on the specified report file? i.e., /var/www/services.e... Also have you tried running goaccess without -o and outputting to the terminal?

@sabin800 can you please post the command you are running and the output from goaccess so I can take a look? Thanks

@allinurl what do you mean by the output report file? is a html file generated by goaccess.
if I run goaccess without -o and outputting to the terminal it work but is a static report I have to quit and execute again to update.

@hmmatos if I run with the sample line you posted:
awk '$7~/\<api\>/' sample.log | goaccess --log-format=COMBINED -o report.html

I get the correct html report. I'm not sure what issue is that you are having?

@allinurl I'm getting the same result, please see the video below
https://drive.google.com/open?id=0B5VlM_LKLNzGdlZUT2d4VTNINTQ
is the log too large?

Is the log too large? not at all.
The command you are running should ouput an html file called report.html. However, what I see is that you are outputting a real-time report, while piping data in. Right now piping a log to GoAccess will disable the real-time functionality. This is part of issue #428.

@allinurl ok that's the problem.
I will keep my eyes on that issue
Thanks

@hmmatos in the meantime, a workaround is to filter your dataset to a new log file and use that to feed goaccess.
I'll close this issue since it's related to #428 and #117.
Stay tuned for these changes!

@hmmatos I've pushed a commit that enables the ability to output live stats from a stream or an unclosed STDIN, i.e., tail -f as well as parsing multiple logs in live mode:
goaccess --log-format=COMBINED access.log access.log.1

or
tail -f access.log | goaccess --log-format=COMBINED -

or even
tail -f access.log | goaccess --log-format=COMBINED -o report.html --real-time-html -

It also opens the possibility for live data filtering from the pipe such as:
tail -f access.log | grep -i 'firefox' | goaccess --log-format=COMBINED -

Feel free to build from master to test this out, otherwise it will be pushed out in the upcoming release. Thanks.

@allinurl thanks for the commit i'll tested

authors: allinurl hmmatos sabin800 vmanyushin


text:
[FR] Support numbers such as "IV"

Support numbers such as IV (4), II (2), etc.

found this on the web for roman numbers:
def roman_to_int(s):
rom_val = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000}
int_val = 0
for i in range(len(s)):
if i > 0 and rom_val[s[i]] > rom_val[s[i - 1]]:
int_val += rom_val[s[i]] - 2 * rom_val[s[i - 1]]
else:
int_val += rom_val[s[i]]
return int_val


text:
[Feature] Genesis Hardforks

Component
consensus, eips, genesis
Describe the feature you would like
op-alloy has a new op-alloy-genesis crate that introduces Hardforks into the genesis crate.
This issue is to upstream Hardforks into alloy-genesis as well.
Additional context
https://github.com/alloy-rs/op-alloy/pull/97#discussion_r1758891100

we want to solve this differently and maybe even extract the reth ethereum-forks crate from reth instead

authors: mattsse refcell

repo: alloy-rs/alloy


text:
Sticky footer AngularJS

I know this is going to have issues with JQuery/AngularJS, but has anyone else witnessed a footer problem in window? Actually sticky footer works fine If I touch the browser window to resize and move even 1px to any direction, or If I just refresh the page. It doesn't work when navigating in my SPA application's pages. Any help is appreciated.

Have you made sure that your HTML is correct and that you included all the required css and js?
CSS to check:

Bootstrap
AdminLTE

JS:

jQuery
Bootstrap
AdminLTE's app.js
In that order.

I have set ng-view with the class wrapper but I should have moved this class one step before ng-view in order to wrap propery,,,,


text:
"Open link in new window" does not work

Click on a 'link' in the UI while holding 'ctrl' on the keyboard.
Expected
The browser opens the link in a new window.
Actual
The browser opens the link in the same window

Please have a look at this (as it already explains well): http://stackoverflow.com/a/12939966

It's not possible with pure HTML.
Can be somewhat achieved with JS, but is not-recommended in general scenario.
It's intended not to be controlled programatically and without user's consent (security/popups).
User sets the preferences (in most modern browsers) how they want the ctrl+click to behave

Chrome offers extensions to control this behavior, other browsers have preferences for that

Browsers also provide context menu option to open links in new window.
User is given control over this choice for a good reason; we, as app-devs, should respect that

authors: aslakknutsen debloper

repo: almighty/almighty-ui


text:
Update scala3-library_3 to 3.2.0

Updates org.scala-lang:scala3-library_3 from 3.1.3 to 3.2.0.
GitHub Release Notes - Version Diff - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (3.1.3).
You might want to review and update them manually.
.github/workflows/ci.yml
docs/website/package-lock.json

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-lang", artifactId = "scala3-library_3" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "org.scala-lang", artifactId = "scala3-library_3" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, old-version-remains, commit-count:1

Superseded by #1008.

repo: almond-sh/almond


text:
[FEATURE] Добавить информацию в всплывающее окно инструмента

Опишите проблему, которую решает ваша фича

Прошу добавить в выпадающее окно информацию:

лот (кол-во в лоте)
стоимость шага цены (сшц)

Опишите предлагаемое вами решение
..
Опишите альтернативные решения, о которых вы думали
No response
Дополнительная информация
No response
Правила

[X] Я согласен следовать правилам

Не вижу особого смысла это делать. Если виджет информация об инструменте, в котором можно посмотреть если забыл параметры для этого инструмента.

Не вижу особого смысла это делать. Если виджет информация об инструменте, в котором можно посмотреть если забыл параметры для этого инструмента.

В виджете нет такой информации

Нужно взять лот и в ручную умножить на шаг цены , который нужно еще и определить.
А добавить этот нужно для удобства и скорости. Т.к. есть инструменты , которые не часто торгуешь и при переключении было бы удобнее напомнить себе , что бы выбрать верный объем

authors: PilgrimViis uncrashable

repo: alor-broker/Astras-Trading-UI


text:
[Question]: How can I inherit the sdk's classes e.g. TradingClient?

Question form pre-submit checklist.

[X] I have searched the existing issues to ensure there isn't already an issue about this question.
[X] My question has to do with the Python SDK and isn't a general question about the API. (If it is please open your issue here)
[X] My question isn't about how to do a specific algorithm or asking for trade advice (answers to these are outside the scope of this repo).

Question
I'm trying to extend the capabilities of alpaca.trading.client.TradingClient
I tried to start a very simple example by creating a subclass like this:
class StockTrader(TradingClient):
    def __init__(self, api_key, secret_key, paper):
        super().__init__(api_key=api_key, secret_key=secret_key, paper=paper)

    def get_account(self):
        return super().get_account()

However when I try to use this class:
trader = StockTrader(api_key,secret_key,paper)
trader.get_account()

I get the following error:
TypeError: TradingClient.get_account() missing 1 required positional argument: 'self'
Is there an obvious reason why inheriting from TradingClient like this can't work?

@dskarbrevik I can not replicate this issue in my local environment and also Google Colab.
Can you please provide more information to replicate this issue such as version of alpaca-py and Python .
Below is the code I have tested in my end with alpaca-py v0.11.0 and Python 3.10.12 / Python 3.11.5.
from alpaca.trading.client import TradingClient

class StockTrader(TradingClient):
    def __init__(self, api_key, secret_key, paper):
        super().__init__(api_key=api_key, secret_key=secret_key, paper=paper)

    def get_account(self):
        return super().get_account()

api_key=<PAPER API KEY>
secret_key=<PAPER API SECRET>
paper = True

trader = StockTrader(api_key, secret_key, paper)
trader.get_account()

IMO generally this method:
def get_account(self):
        return super().get_account()

should actually be:
def get_account(self):
        account =  self.get_account()
        # do something else here
        return account

or even better you shouldn't re-define the same method if you're not doing anything else apart from calling the method of the parent class and returning it, this way you're just polluting that class namespace with no real reason.

authors: alessiocastrica dskarbrevik hiohiohio

repo: alpacahq/alpaca-py


text:
Throttle requests documenation

I can't seem to find any documentation on how to throttle remote requests. In it's current state the typeahead sends a request on every single key press. Is the lack of documentation due to there being no throttling?
Can anyone please advise? @nickcolley
Thanks

Heya,
We're talking about how to do this over in this thread so hopefully my comment helps you with this:
https://github.com/alphagov/accessible-autocomplete/issues/210#issuecomment-549470423
Feel free to add to that thread if it does not.

Hey @nickcolley Thanks appreciate that. We managed to implement throttling ourselves.

authors: imranazad nickcolley

repo: alphagov/accessible-autocomplete


text:
Add a script to deploy a feature branch to Heroku

Added a script, like the one in smart-answers to make deploying a change to Heroku easier.
The production config also had to be modified slightly to allow static css files to be rendered on the Heroku servers.

I've just tried running the script for this PR and it successfully created this Heroku app.
Other than the minor comments above, this looks good to me. 👍

@floehopper Thanks. I'll update the code before merging.

authors: floehopper leenagupte

repo: alphagov/calculators


text:
Remove Miller Column Browse template

We have completed the AB Test for the New Browse template and want to switch from the Miller Column based template as the default.
Preview on Heroku should show you only see the New Browse designs.
Trello
⚠ This repo is Continuously Deployed: make sure you follow the guidance ⚠

Work from this PR is being incorporated into https://github.com/alphagov/collections/pull/2865

repo: alphagov/collections


text:
Update the state of retired and removed documents

Trello: https://trello.com/c/2VIaBEOi
Supersedes: PR #548
Motivation
In PR #510 a task was added to allow us manually remove or retire documents in publishing-api. Now we need to reflect the state of those documents in Content Publisher.
Terminology
An explanation of what retired and removed documents are can be found here.
What's changed

Documents can be filtered by removed or retired from the "States" drop-down
State of document is displayed as "retired" or "removed" on index page
Document history has an entry for retired documents that displays a note about why the document was retired. This is the same as the explanation that appears in the banner on the live site.
Document history has an entry for removed documents that displays a note about why the document was retired and an alternative path.
Internally sets a new live_state to reflect the status of a document once it has been published.

Index page
Drop-down

Retired

Removed

Document history
Retired

Removed

Removed and redirected

Summary page
Retired

Removed

@benthorner I've addressed your comments. I've also added a rather ugly "fix" for the horizontal rule.

repo: alphagov/content-publisher


text:
[KBV-459] Add CFN template for fargate deployment

Proposed changes
Add cfn template for fargate deployment
Add sam validate stage
Add sam build to create cfn and zip stage
What changed
Added as above

Why did it change
To support the migration to fargate
Issue tracking

KBV-459

Successfully deployed to build with the GHActions role trust policy set to accept this branch. This has been set back to main.
Build account trust policy has remained on main so has always failed.

repo: alphagov/di-ipv-cri-kbv-front


text:
Open not live requirements

For this story on Pivotal.
Briefs should be described as 'open' and not 'live'. The dm frameworks repo has been updated to reflect this, see this PR.
This PR is to bring in that new version of the frameworks, as well as a slight adjustment to a test.

:+1:

authors: TheDoubleK Wynndow


text:
Scroll to the selected tab on page load

This behaviour means that a selected tab retains the default fragment behaviour, i.e. people can copy links to a particular section of a site. An example url would be http://frontend.dev.gov.uk/view-driving-licence#other-ways-to-apply  - loading the page will jump to the tab strip with the correct tab selected and its content showing below.

I can’t see any problems with this becoming the default behaviour, but I’d like to hear dissenting opinions if there are any.

For what it’s worth, this section of code was last touched in 2012: https://github.com/alphagov/frontend/commit/19b222026456665a27fe426cb63b14422533e2e4

:+1:

authors: bradwright robinwhittleton

repo: alphagov/frontend


text:
Passthru bulk_publishing for patch_links

Setting this optional flag controls which priority jobs are given
within the publishing-api.
Uses https://github.com/alphagov/publishing-api/pull/329

Ooh, that's very useful 👍

authors: boffbowsh tijmenb

repo: alphagov/gds-api-adapters


text:
Finalise conversion of Make to Rake

This suite now takes 4 seconds to run using Rake alone.
Best reviewed commit-by-commit. Work done by @benilovj.
I've added a Makefile which simply wraps rake with a couple of deprecation warnings.

:+1: on the bits I didn't do.

:+1: on the bits done by @boffbowsh

:+1: when :green_apple:

authors: benilovj benlovell boffbowsh

repo: alphagov/govuk-content-schemas


text:
Decide on how to do research on navigation (as a concept)

What
With Design System users
We identified that we may wish to investigate why our users wish to put things between the header and proposed service navigation component
With end users of GOVUK services
Do research with end users - method tbc
Why
We would like to know more about what our Design System users are building and how we can improve our contribution in order to fit their needs.
We would like to know more about our end-users and be open to them having different Navigation needs to ones we are building to address. We'd also like to learn more about specific things like highlighting where they are within the website.

We may be able to trust that our Design System users have already identified the need for Navigation in end users

We need more time to make a decision and move forward with an approach.
We have conducted some desk research on a list of services, identifying differences in their headers.

repo: alphagov/govuk-design-system


text:
Possible issue with 'Get AWS access' section on 'Get started on GOV.UK' page

Hello, I have come across a possible issue with the Get started on GOV.UK page.
On step 7, (Get access to integration infrastructure) https://github.com/alphagov/govuk-developer-docs/blob/6f9b0bd93f5b6269289b73d804a656b43e0a8448/source/manual/get-started.html.md#get-access-to-integration-infrastructure, it's mentioned:

To get access, you must add your email address to the list of role_user_user_arns users in the govuk-aws-data GitHub repo and
Use the same <account-ID> as other entries in the role_user_user_arns section. Use the same <account-ID> as other entries in the role_user_user_arns section.

I found that the policy for this role did not provide me with permissions to complete the rest of the steps in Access AWS for the first time. Intead I needed to add my email address to the section role_poweruser_user_arns.
Otherwise, I would come across the following error when I'd run gds aws govuk-integration-poweruser -l:
aws-vault: error: login: Failed to get credentials for govuk-integration-poweruser:
AccessDenied: User: arn:aws:iam::622626885786:user/jon.kirwan@digital.cabinet-office.gov.uk
is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::210287912431:role/jon.kirwan-poweruser
status code: 403, request id: 8436e068-5a27-4ba9-a460-bd4c6f6acb21

Thanks 👍

@jon-kirwan it looks like we both spotted the same issue with the 'Get started' docs.
I resolved it with the PR #3318, so I'm going to close this issue.

@jon-kirwan it looks like we both spotted the same issue with the 'Get started' docs.
I resolved it with the PR #3318, so I'm going to close this issue.

Thanks @ollietreend - good to know!

authors: jon-kirwan ollietreend

repo: alphagov/govuk-developer-docs


text:
Add helper to render links to Jenkins jobs

We already have RunRakeTask that renders links to the Jenkins rake task job in all environments, so this adds a similar feature for other Jenkins jobs.

This is looking great! I wonder if we could push up one final commit, turning RunRakeTask into a proxy that calls RunJenkinsTask?

I've tried a few possible ways of doing this, but everything is making the code more complex.  The main issue is that the URLs for Rake tasks are application dependant, whereas they aren't for Jenkins jobs, so we end up with lots of conditional logic.


text:
Provide pre-release branches with a 5.x version number

What
Ensure our pre-release branches start having a 5.x version number as soon as possible.
Why
This will help the Prototype Kit start implementing any adjustment to our breaking changes (for ex. the move of the built files to dist).
Who needs to work on this
Developers
Who needs to review this
Developers
Done when

[ ] Pre-release branches have a v5 number.

A couple of options for that, as a starting point:

update the pre-release.sh script and/or the branch pre-release process to include a version bump, quite easy to forget to do, though, and repetitive for if we create multiple pre-release branches for the same upcoming version.
update the version in packages/govuk-frontend/package.json on main, which we should be able to do now the package is no longer versionned (so the number does not need to remain to the last published package for diffing). We would likely want to update our release process to move the version bump from "before-publishing-a-release" to "after-publishing-a-release". Because we're in charge of which work goes in each release (and can always update that number or use a support branch), I think that would work OK.

Not a thing anymore as we pre-release from main.

repo: alphagov/govuk-frontend


text:
Create test-components-using-accessibility-acceptance-criteria.md

Co-authored by: @hannalaakso
What we're adding
This PR fixes #1781 and adds a new document ('Test components using accessibility acceptance criteria') to the 'Contributing' folder in our Frontend repo.
Why we're adding it
When building the notification and cookie banners, we used a template to check how components should behave with assistive tech. We feel there is value in publishing this information so contributors can use it, too.

@EoinShaughnessy Looks good! Are you ok to squash the commits before merging?

@vanitabarrett Cheers! Yeah, I'll sort the commits (but thanks, I appreciate the offer). :)

Holding off merging till we can attribute proper co-authorship!

authors: EoinShaughnessy vanitabarrett


text:
Add new govuk-frontend.min.css package bundle

To make sure we catch Sass compilation problems early, our npm package has a new minified bundle
Previously we ran PostCSS-only tasks during npm run build:package and missed https://github.com/alphagov/govuk-frontend/pull/4239
Package minified bundles
Output using npm run build:package

govuk-frontend.min.js
govuk-frontend.min.css ✅ Added

GitHub Release minified bundles
Using npm run build:release

govuk-frontend-X.Y.Z.min.js
govuk-frontend-X-Y-Z.min.css

I've split this from #4237 as it's related but I think we can call it done – will add this to the board separately.

Thanks @romaricpascal

Could you add a little entry to the CHANGELOG, please? then all good to go 🥳

✅ Done


text:
Test updating prototype using v6 compatibility mode to release without v6

What
Create a prototype that uses v6 compatibility mode, try upgrading to branch which removes v6 support (https://github.com/alphagov/govuk-prototype-kit/tree/remove-v6-support), and see what happens.
Why
We want to be able to know what will happen to users if they try to upgrade from v12 to v13 with code using GOV.UK Frontend Toolkit and GOV.UK Elements, so that we can warn them what to expect and now what to look out for when on support.
Who needs to work on this
Developer
Who needs to review this
Developer, Content designer (so we can put something in comms #1308)
Done when

[ ] We know what will happen if you try and upgrade to v13 with v6 code

I tested this by creating a branch test-updating-compatibility in my own test repo.
I found that after the upgrade the v6 paths would either default to the main app view or 404, but otherwise the kit ran fine.
However, I did also notice that issue https://github.com/alphagov/govuk-prototype-kit/issues/801 is still live; although we say that pages from the main app will 'win', in practice v6 pages are preferred. So a kit that is updated to version 13 might find that things are failing silently - instead of getting the page the user expects, or an error, they will get a page they might not have known existed before.
For this reason I think we need to change the update script to warn users about updating to v13 if they have code in app/v6 (or refuse to do it at all).

Good point.. I think a warning would be fine, that v6 has been detected and is no longer supported

So I think what we would say to users is that 'if you upgrade to v13, any pages using the compatibility mode will stop working'.

authors: joelanman lfdebrux

repo: alphagov/govuk-prototype-kit


text:
Make the manage prototype pages independent of the govuk-frontend plugin

See: Make the Manage Prototype pages work without GOV.UK Frontend

When I try to run this I get a load of errors:
Undefined mixin.
   ╷
15 │   @include govuk-text-colour;
   │   ^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
  node_modules/@govuk-prototype-kit/common-templates/sass/_contents-list.scss 15:3  @import
  .tmp/sass/_plugins.scss 4:9                                                       @import
  ../../opensource/alphagov/govuk-prototype-kit/lib/assets/sass/prototype.scss 5:9  root stylesheet
Error: Undefined mixin.
   ╷
15 │   @include govuk-text-colour;
   │   ^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
  node_modules/@govuk-prototype-kit/common-templates/sass/_contents-list.scss 15:3  @import
  .tmp/sass/_plugins.scss 4:9                                                       @import
  ../../opensource/alphagov/govuk-prototype-kit/lib/assets/sass/prototype.scss 5:9  root stylesheet
    at Object.wrapException (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:1247:17)
    at _EvaluateVisitor1.visitIncludeRule$1 (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:81234:17)
    at IncludeRule0.accept$1$1 (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:86218:22)
    at IncludeRule0.accept$1 (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:86221:19)
    at _EvaluateVisitor_visitStyleRule__closure1.call$0 (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:83275:16)
    at _EvaluateVisitor1._evaluate0$_withStyleRule$1$2 (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:82164:25)
    at _EvaluateVisitor1._evaluate0$_withStyleRule$2 (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:82169:19)
    at _EvaluateVisitor_visitStyleRule_closure20.call$0 (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:83267:10)
    at Environment0.scope$1$3$semiGlobal$when (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:80245:25)
    at Environment0.scope$1$2$when (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:80291:19)
Undefined mixin.
   ╷
15 │   @include govuk-text-colour;
   │   ^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
  node_modules/@govuk-prototype-kit/common-templates/sass/_contents-list.scss 15:3   @import
  .tmp/sass/_plugins.scss 4:9                                                        @import
  ../../opensource/alphagov/govuk-prototype-kit/lib/assets/sass/prototype.scss 5:9   @import
  ../../opensource/alphagov/govuk-prototype-kit/lib/assets/sass/unbranded.scss 12:9  root stylesheet
Error: Undefined mixin.
   ╷
15 │   @include govuk-text-colour;
   │   ^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
  node_modules/@govuk-prototype-kit/common-templates/sass/_contents-list.scss 15:3   @import
  .tmp/sass/_plugins.scss 4:9                                                        @import
  ../../opensource/alphagov/govuk-prototype-kit/lib/assets/sass/prototype.scss 5:9   @import
  ../../opensource/alphagov/govuk-prototype-kit/lib/assets/sass/unbranded.scss 12:9  root stylesheet
    at Object.wrapException (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:1247:17)
    at _EvaluateVisitor1.visitIncludeRule$1 (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:81234:17)
    at IncludeRule0.accept$1$1 (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:86218:22)
    at IncludeRule0.accept$1 (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:86221:19)
    at _EvaluateVisitor_visitStyleRule__closure1.call$0 (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:83275:16)
    at _EvaluateVisitor1._evaluate0$_withStyleRule$1$2 (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:82164:25)
    at _EvaluateVisitor1._evaluate0$_withStyleRule$2 (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:82169:19)
    at _EvaluateVisitor_visitStyleRule_closure20.call$0 (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:83267:10)
    at Environment0.scope$1$3$semiGlobal$when (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:80245:25)
    at Environment0.scope$1$2$when (/Users/natalie.carey/projects/opensource/alphagov/govuk-prototype-kit/node_modules/sass/sass.dart.js:80291:19)

It seems to work anyway, I'll keep reviewing.

@BenSurgisonGDS thanks for your reply on Slack - I uninstalled @govuk-prototype-kit/common-templates and the errors went away.
The functionality works and it feels really good to be able to use the kit without govuk-frontend (for those who don't use it).
One thing I think we should change - when the user doesn't have govuk-frontend I don't think we should show the Install common templates button in the Templates tab.
(I'm still reviewing the code but that's the only change I'd suggest in the behaviour.

authors: BenSurgisonGDS nataliecarey


text:
Fix GCP Mirror Sync alert

makes error message cleaner
now correctly discerns the latest_operation_name of the last run
mirror sync operation

Co-authored-by: Karl Baker karl.baker@digital.cabinet-office.gov.uk

Merging as done as a pair

repo: alphagov/govuk-puppet


text:
Implement "fall back" for legacy promotions correctly

When checking for the "promotion_choice" key inside the
presentation_toggles hash field if it wasn't present we would return the
default hash.  However this wouldn't be stored in the model so any changes
that were written to it would not be persisted.  To fix we write the
default hash into the presentation_toggles if the key wasn't already there.
This fix makes the changes in #374 and #372 actually work when persisting data.  No tests failed because we had none that simulated the real world scenario of a document with only the legacy promo storage scheme.  I've added one.

Looks good! 🚢

authors: davidbasalla h-lame


text:
Use V2 of GOV.UK Dependabot Merger

GOV.UK Dependency Merger configuration changed to allow automatic patching of all dependencies as described in RFC-167 ^1. Consequently V1 no longer works. This updates the configuration to use the version 2 convention to reinstate the basic functionality of automatic patching of internal dependencies only. The default allowed_semver_bumps are [patch, minor].
Follow up work will be required to enable automatic patching of external dependencies, which we encourage the team to do.

We need to get coverage up before merging (tests currently at 85%)

Oh. I updated the config so it should only merge rubocop-govuk.

authors: AgaDufrat KludgeKML


text:
Add analytics to kit app

Now that our docs and install instructions are on the kit app, we can add some analytics to see what bits people are looking at most.

I"m talking to Tim Leighton-Boyce about getting a tracking code in the GDS account

fixed by #320

authors: edwardhorsford joelanman


text:
WIP: [#118275583] Upgrade to CF v240

#118275583 Upgrade to CF v240
What
We want to upgrade to CF v240 as part of our regular upgrades.
We chose v240 because:

It has > 3 weeks
v241 seems to new and has more changes

Additionally, we have decided to upgrade to Diego 0.1482.0 instead of the  suggested version from CF v240, 0.1481.0. The reason is that 0.1482.0 includes a required patch for rep, and using this release will prevent us from using a custom release to use a patched version of rep.
See more notes about all the changes included in this PR in a comment below
How to review

Check the changes and commits, if they make sense and are well documented.
Deploy from master
Redeploy from this branch
Tests should pass

Who?
Anyone but @combor or @keymon

References
New releases:

CF v239
CF v240

Note:
Rep bug is not fixed in recomended diego version . It seems to be included in v0.1482.0 so we have to keep our rep fork or use the next release of diego.
Finally we decided that we will upgrade to diego v0.1482.0 to get the patched version of rep
Other releases:

Bosh Stemcell 3262.4

From 3232.11

Diego release v0.1482.0 (v240 recommends v0.1481.0).

From 0.1476.0
Release notes for

(!= recommended by CF v240 ) v0.1482.0
v0.1481.0
v0.1481.0
v0.1480.0
v0.1479.0
v0.1478.0
v0.1477.0
v0.1476.0

Garden-Linux release v0.341.0. (v240 recommends v0.339.0).

From  0.338.0
Release notes for:

(!= recommended by CF v240 ) v0.341.0. (bugfix)
(!= recommended by CF v240 ) v0.340.0. (bugfix)
v0.339.0.

etcd release v64.

from v55
Release notes for

(!= recommended by CF v240 ) v64 (README change)
v63
v62
v61
v60
v59
v58
v57
v56

cflinuxfs2-rootfs release v1.22.0.

from v1.18.0
Release notes for

(!= recommended by CF v240 ) v1.22.0 (CVE fixes)
v1.21.0
v1.20.0
v1.19.0

Changes to highlight
CF v239

Cloud Foundry now defaults to run containers on Diego in unprivileged mode
As a CF user, I would like Diego to validate the SHA checksum of my droplet before running it details

Manifest changes:

Renamed router.debug_addr to router.debug_address: 81abeb05c

Manifest generation will now set the property uaa.zones.internal.hostnames to ["uaa.service.cf.internal"] if no stub overrides that value. This is in support of routing components contacting UAA over its internal TLS port.
Shall we set this ?

Added etcd_metrics_server.etcd.dns_suffix property to etcd_metrics_server job to support configuring the job to talk to the secure etcd server. details .. More info: https://github.com/cloudfoundry-incubator/etcd-release/releases/tag/v58

But this option is only used if etc.require_ssl == true. And enable SSL in etcd requires some more work, and might be disruptive.

Opportunities/Improvements:

Expose Metron URL Through Bosh 2.0 Links details
Remove AZ property from Traffic Controller details
Added router.enable_proxy (default false) to enable PROXY protocol support.

Other changes
Changes in the UAA clients:

Before we added routing.router_groups.read scope to cf client from https://www.pivotaltracker.com/n/projects/1344794/stories/100975070

Add routing.router_groups.write to cf client https://www.pivotaltracker.com/n/projects/1358110/stories/115980656

Added admin_read_only scope to uaa client https://www.pivotaltracker.com/n/projects/966314/stories/117558887

Comments from the story

merge the cell and colocated jobs into one

This no longer applies. It was done as part of #123862321

We're still using the cloudfoundry-incubator diego.

Implemented

Pull AZ information from BOSH in trafficontroller
Pull Zone (when available) From Bosh 2.0 in Metron and Doppler

Implemented

remove our fork if the new version of diego-release includes the fix

We'll use diego v0.1482.0 which includes the fix

It states in the release notes for Diego v0.1481.0 that the following properties have been removed, but they are still in our manifest:
diego.converger.dropsonde_port
diego.converger.bbs.api_location
diego.converger.bbs.ca_cert
diego.converger.bbs.client_cert
diego.converger.bbs.client_key
diego.converger.bbs.require_ssl

The release notes state the reason for this:

Diego no longer contains a separate 'converger' component. Instead, the active BBS server runs Task and LRP convergence periodically and in reaction to a cell presence disappearing.

Should we be removing these properties?

That's correct. Thanks @HenryTK .

authors: HenryTK combor keymon

repo: alphagov/paas-cf


text:
PP-12570 Run pact tests in GitHub Actions for PRs

WHAT YOU DID

Run pact tests in GitHub actions for PRs

It's better not to prefix run_tests with an underscore in the filename. The only things with that naming convention are workflows which are purely reusable and never run in their own right

It's better not to prefix run_tests with an underscore in the filename. The only things with that naming convention are workflows which are purely reusable and never run in their own right

Scratch that, I just saw you added pr.yml and called it from there 🤦

authors: jfharden kbottla

repo: alphagov/pay-adminusers


text:
PP-3676 Renamed Mandate#reference to Mandate#mandateReference

WHAT

Renamed Mandate's reference field to mandateReference on resource and database level
Added Mandate#serviceReference
Minor code styling corrections and refactoring

with @georgeracu

we didn't change the field exposed in the token response. It's still called reference. That might get confusing. Is there any reason not to change it to mandate_reference?

Looks fine.
Couple of things we might want to do in a subsequent PR:

add a description of the API in a docs/ folder, either as markdown file or open api specification format
change the return value of the token api to rename reference to mandate_reference

Thank you @heathd , we will address that in the next PRs

authors: DanailMinchev heathd

repo: alphagov/pay-direct-debit-connector


text:
Add the ability to create and edit Artefacts

This is functionality that is being deprecated from Panopticon.
It adds a new task to the main menu 'Add Artefact', as well as providing
a view to edit (draft) artefact parameters.

Looks good, have added a few comments. Also the other controllers have functional tests, would it be worth writing some for the new ArtefactsController?

There's coverage in the Integration tests, and I'm not sure that writing lower level Functional tests for the controller will add much value. Relevant materials in support of this claim.

Do users understand what an artefact is?

I think this UI could be improved.

Creating a new document should be provided in the context that users would want to perform that action, eg it might not be the top nav
The term "Artefacts" is an artefact of the system, use terms like "document" or "article"
Please test this with users

@whoojemaflip I think if we're not adding functional/controller tests then we should add some more edge case tests to the integration tests. For example what happens when an artefact can not be created or updated, to exercise more of the code branches

@fofr We've shown this functionality to a group of content designers, who didn't seem particularly put out by the naming. It's directly lifted from Panopticon you see. While I might agree that it's poorly named, renaming the function at this stage is probably going to be a worse user experience.
As to the positioning of the link in the top-nav: do you have any suggestions regarding where else it might exist?

oh and @fofr do feel free to come over and discuss these concerns with us directly. We're friendly :)

@davidbasalla we've updated the integration tests to ensure coverage of all controller logic branches.

@whoojemaflip Regarding:

While I might agree that it's poorly named, renaming the function at this stage is probably going to be a worse user experience.

I don't understand why a better name would be a worse experience?

We've shown this functionality to a group of content designers

Have you done user research though? Usually best to do some research with people relatively new to the application.
I'm happy for these changes to go through if there is a plan to iterate.

Looks good 👍

authors: davidbasalla fofr whoojemaflip

repo: alphagov/publisher


text:
Remove Specialist Publisher parent links

Parent links were added to all specialist publisher documents in
https://github.com/alphagov/publishing-api/pull/821 . This has had an
unfortunate side effect - as parent links are represented as "children"
links, this caused finder content items such as /aaib-reports or
/dfid-research-outputs to have links to every child which was making the
content items huge in size.
The effects of this seem to be:

413 errors writing to content store
slow responses from content store
potentially (I hope this was the cause) a huge increase in memory
usage in content store.

This migration removes these parent links, which seems to be the best
immediate action we can take. As an intermediary message apps that plan
to consume this link can use the finder link which is the same as the
parent.
cc @fofr - this would undo the work we've done to put parent links into specialist documents, would you be able to use the finder link for the breadcrumbs in the mean time until we find a solution?

Do we intend to fix this, so that parents can still exist without huge content items? cc @tijmenb

A first step towards fixing this might be to stop automatically expanding parents within children links, since that appears to be pointless.

@fofr the approach on our planning board for this is to spike into whether we can define reverse links at a schema level which would allow us to make children only definable when appropriate. A simpler thing would be to cut out the magic.
@danielroseman do we know who, if anyone, uses the children type?

Anything with reverse dependencies uses children, as far as I know: eg policies, guidance, and the travel-advice-index stuff I've been working on.

authors: danielroseman fofr kevindew

repo: alphagov/publishing-api


text:
Deleting documents of type other than edition and best_bet

It might not be possible to delete documents unless they have the type of 'edition' or 'best_bet' via rummageable.
Calling #delete https://github.com/alphagov/rummageable/blob/master/lib/rummageable.rb#L39 forms the rummager document URL (without a request body).
The delete action in Rummager tries to find a document type in the request body, which will never happen using rummageable, and then sets the type based on this method which only allows 'edition' or 'best_bet'..
We (the service manual team) want to delete documents of type 'service_manual_guide'. I'm thinking our options are...

Form a URL to delete from rummager in our publisher and bypass rummageable
Do what was done for best_bet and just tack on additional types to allow through (doesn't seem very sustainable)
Support a new way of passing type to rummager. eg. DELETE /mainstream/documents/%2Fservice-manual%2Fthe-slug?_type=service_manual_guide
Send a request body along the lines of {"_type" : "service_manual_guide"} in the DELETE from rummageable. #delete already supports passing in a :type in the options but it's merged into the URL rather put into the request body. Perhaps we could call the option :forced_type? So the code in our publishers would look something like Rummageable::Index.new(Plek.current.find('rummager'), '/mainstream').delete('/service-manual/the-slug', forced_type: 'service_manual_guide')

I'm not sure which is best / the least dangerous. Personally, I prefer the last option. It feels to me as though rummager supports the desired behaviour and it's rummageable that doesn't support it?

Closing because this gem is deprecated.

repo: alphagov/rummageable


text:
Remove example draft smartdown flows

The plan is to phase out Smartdown flows. These flows are marked as "draft" so they don't currently appear in production. Also they're clearly not intended to ever be deployed to production. So I think it's safe to remove them.

Can we also remove the animal-example-multiple and animal-example-simple folders from the smartdown_plugins directory?

There also appear to be a number of tests that are trying to use "animal-example-simple", although I don't really understand how this PR says all the tests passed if that's really true. Maybe "animal-example-simple" is also defined as a flow in test somewhere...?
$ grep -R animal-example . | grep -v .git | grep -v .bundle | grep -v log
./test/integration/smartdown_flows/question_types_test.rb:    visit smart_answer_path(id: "animal-example-simple")
./test/unit/smartdown_adapter/flow_registration_presenter_test.rb:        flow = SmartdownAdapter::Registry.instance(flow_registry_options).find("animal-example-simple")
./test/unit/smartdown_adapter/presenter_test.rb:        @flow = SmartdownAdapter::Registry.instance(flow_registry_options).find("animal-example-simple")
./test/unit/smartdown_adapter/presenter_test.rb:          assert_equal "animal-example-simple", @presenter.name
./test/unit/smartdown_adapter/presenter_test.rb:          assert_equal "animal-example-simple", @presenter.name
./test/unit/smartdown_adapter/presenter_test.rb:          assert_equal "animal-example-simple", @presenter.name
./test/unit/smartdown_adapter/registry_test.rb:      flow1 = instance.find("animal-example-simple")
./test/unit/smartdown_adapter/registry_test.rb:      flow2 = instance.find("animal-example-simple")
./test/unit/smartdown_adapter/registry_test.rb:      flow1 = instance.find("animal-example-simple")
./test/unit/smartdown_adapter/registry_test.rb:      flow2 = instance.find("animal-example-simple")
./test/unit/smartdown_adapter/registry_test.rb:      assert instance.flows.any? { |flow| flow.name == 'animal-example-simple' }
./test/unit/smartdown_adapter/registry_test.rb:      refute instance.flows.any? { |flow| flow.name == 'animal-example-simple' }
./test/unit/smartdown_adapter/registry_test.rb:      refute instance.flows.any? { |flow| flow.name == 'animal-example-simple' }
./test/unit/smartdown_plugins/animal-example-multiple_test.rb:require 'smartdown_plugins/animal-example-multiple/render_time'

@chrisroos: Confusingly animal-example-simple is also defined as a fixture flow. Apart from SmartdownPlugins:: AnimalExampleMultipeTest which tests the plugin class directly, the tests that you list either call the TestFixturesHelper#use_test_smartdown_flow_fixtures method or set the SmartdownAdapter::Registry smartdown_load_path  option which means they use the fixture version:

https://github.com/alphagov/smart-answers/blob/master/test/integration/smartdown_flows/question_types_test.rb#L5
https://github.com/alphagov/smart-answers/blob/master/test/unit/smartdown_adapter/flow_registration_presenter_test.rb#L7-L13
https://github.com/alphagov/smart-answers/blob/master/test/unit/smartdown_adapter/presenter_test.rb#L9-L14
https://github.com/alphagov/smart-answers/blob/master/test/unit/smartdown_adapter/registry_test.rb#L9

@chrisroos: I think you're right about removing the plugins, although looks like I might need to remove a test or two as well. I'll do that shortly and add it to this PR. Thanks.

I've addressed @chrisroos' point about the plugins and updated the first commit note to mention the fixture flow with the same name. I've also rebased against master and force-pushed in preparation for merging.

authors: chrisroos floehopper

repo: alphagov/smart-answers


text:
Check if you need a permit (/check-boundary) page - copy edits

Lizzie's comments:
some unneeded copy: 'Postcode' label, 'my Address' on button

tagging @joannesouthern to this

done in test

authors: EUzkuraityte joanneSouthern

repo: alphagov/verify-local-patterns


text:
Shared states

All instances of {{ember-scrollable}} appear to share state.
If I hover over one container, not only the scrollbar of this container fades in, but all other containers do the same. Also, when using scrollTo, all containers scroll to that position.

Correction: the synced scrolling was my bad. However, I still have both scrollbars fading in and out synchronously. Is this intended behavior?

I still have both scrollbars fading in and out synchronously. Is this intended behavior?

@buschtoens I believe so. When you hover over a scrollable div, the scrollbars should fade in to show the user that they can scroll either horizontally, vertically, or both.

I think I wasn't wording it clearly enough. I mean in two separate scroll
containers.
On Thu, Feb 2, 2017, 21:16 Offir Golan notifications@github.com wrote:

I still have both scrollbars fading in and out synchronously. Is this
intended behavior?
@buschtoens https://github.com/buschtoens I believe so. When you hover
over a scrollable div, the scrollbars should fade in to show the user that
they can scroll either horizontally, vertically, or both.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/alphasights/ember-scrollable/issues/46#issuecomment-277070489,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAy8THwCx5vgP8WDBb-P440PYKZyQV_Gks5rYjmGgaJpZM4L1ZD_
.

@buschtoens oh... I dont think that is intended....

authors: buschtoens offirgolan

repo: alphasights/ember-scrollable


text:
Disable eoled distro check

As discussed with @at-wat offline, we decided to disable the EOL distribution check and use the default branch of this repository as base to compute the diff.

@at-wat I think it is better to change the base branch in a separate PR. It seems to require more changes than I initially thought.

repo: alpine-ros/rosdistro


text:
Slider is hidden by UITableViewCell, when cell height is to small

Is there any chance to bring the popup view in front of all other views?

It can happen if you are calling [tableview reloadData] after changing slider value like I did.
So I haven`t found a way to dodge this and moved it from valueChanged to didFinishEditing

authors: Ma-He vitaliypriydun

repo: alskipp/ASValueTrackingSlider


text:
Add exchange UpBit

Please provide as much information as possible to make the addition of the exchange easier:
Exchange API URL
https://docs.upbit.com/docs/upbit-quotation-websocket
Additional information about Websocket connection
Documentation in Korean.  WebSocket supports Tickers, Trades, and L2 Orderbooks Updates (snapshot provided on connection).
BasicClient can probably be used, it looks like the socket allows subscribing to more than one feed per connection.

Refer to Contributing Guide for additional information.

Create client in src/exchanges that follows CCXWS library interface (refer to README)
Create client test suite in src/exchanges to validate subscribe/unsubscribe methods and that data parsing is correct
Add a lowercase export to index.js
Implement subscribe to tickers sending logic

must support calling subscribe multiple times in a row with different markets

Implement subscribe to trades

must support calling multiple times in a row with different markets

Implement subscribe to orderbooks/depth

should default to highest limit and smallest resolution interval
determine if exchange supports snapshots, updates, or both
if exchange supports broadcasting depth updates, CCXWS should initiate a snapshot request when subscribe for a market is called and broadcast a snapshot event

Please push update to npm. Thank you!

@OnlyC, will have a few updates (including this) this week. Thanks!

repo: altangent/ccxws


text:
🛑 roothouse-3 is down

In ef6381e, roothouse-3 (https://rhstatus-proxy.alterine0101.id/?deviceId=roothouse-3) was down:

HTTP code: 404
Response time: 190 ms

Resolved: roothouse-3 is back up in 4389eaf.


text:
Automated Latest Dependency Updates

This is an auto-generated PR with latest dependency updates.

Looks like the root cause may be that converting a nullable type to Categorical preserves the nullable types in the pandas Categorical categories. On the top is the latest pandas and on the bottom is 1.3.4 pandas.

This causes np.asarray calls in our imputers to introduce the new pandas null value place-holder, <NA> which throws off sklearn:

authors: freddyaboulton machineFL

repo: alteryx/evalml


text:
🛑 fxkyss.com is down

In e78d890, fxkyss.com (https://fxkyss.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: fxkyss.com is back up in c7b4f87.

repo: alzee/up


text:
Req. #11 - Depending on how PS / Daemon interfaces to clients, determine whether or not local IPC can be used

Description: Determine whether or not local IPC can be used for Daemon requests or if messages must be sent over the internet (INET sockets). May need to rewrite to move to alternate method / abandon local solutions (#20)
Artifact: The answer will be provided in the end-of-sprint release notes, which will be provided to the GTA, and in the artifact(s) from issue 12. Laa::Daemon methods for the IPC methods we choose not to support will be removed (that is, either the mqueue support methods or the socket support methods).
Story Points: 3

We have decided messages will be sent over INET sockets.


text:
WARNING: An illegal reflective access operation has occurred

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/G:/APPLIS/MAVEN/REPO/com/thoughtworks/xstream/xstream/1.4.11.1/xstream-1.4.11.1.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

This is not related to StreamEx. Xstream is completely unrelated library.

authors: amaembo ldelaprade

repo: amaembo/streamex


text:
[Docs]: Middleware documentation is too light

Link to page
https://next-intl-docs.vercel.app/docs/getting-started/app-router#middleware
Describe the problem
Currently you're indicating that we just need to define
import createMiddleware from 'next-intl/middleware';

export default createMiddleware({
  // A list of all locales that are supported
  locales: ['en', 'de'],

  // Used when no locale matches
  defaultLocale: 'en'
});

export const config = {
  // Match only internationalized pathnames
  matcher: ['/', '/(de|en)/:path*']
};

I wanted to use a dynamic configuration, but this is a nextjs limitation it's impossible to write something like
`/(${AvailableLocales.join("|")})/:path*`

Therefore I would suggest to improve the documentation to specify this to those who will try like me
Also I'm giving another matcher matcher: ["/((?!api|_next/static|_next/image|site.webmanifest|favicon).*)"] that seems to work.

There are detailed docs about this in the matcher config section (see also "Can I avoid hardcoding the locales in the
matcher config?").
Unfortunately there's no ideal matcher that I know of, the one we suggest in the docs is known to have the least amount of downsides from my experience. If the one you're suggesting works well for your app, that's absolutely fine, just make sure that if you're adding anything to the public folder that you want to update your matcher.

authors: ScreamZ amannn

repo: amannn/next-intl


text:
Error due to flip flop with shape view on Xilinx platform

Currently, if you try to use a flip flop with a shaped input, the conversion fails when using XilinxPlatform.
Other places in the code might be affected to, I haven't checked that.
To reproduce:
from amaranth import *
from amaranth.lib import wiring, cdc, data

class FooStruct(data.Struct):
    one: 1
    two: 2

class Foo(wiring.Component):

    input: wiring.In(FooStruct)
    output: wiring.Out(FooStruct)

    def elaborate(self, _platform):
        m = Module()

        m.domains.bar = ClockDomain(local=True)

        m.d.comb += [
            ClockSignal("bar").eq(1),
            ResetSignal("bar").eq(0),
        ]

        m.submodules[f"cdc_bar"] = cdc.FFSynchronizer(
            i = self.input,
            o = self.output,
            o_domain = "bar",
            init = 0,
        )

        return m

if __name__ == "__main__":
    from amaranth.back import verilog
    # Any implementation of XilinxPlatform
    from amaranth_boards.microzed_z020 import MicroZedZ020Platform

    verilog.convert(Foo(), name="foo", platform=MicroZedZ020Platform())

The error:
Traceback (most recent call last):
  File ".../venv/lib/python3.10/site-packages/amaranth/lib/data.py", line 865, in __getattr__
    item = self[name]
  File ".../venv/lib/python3.10/site-packages/amaranth/lib/data.py", line 833, in __getitem__
    field = self.__layout[key]
  File ".../venv/lib/python3.10/site-packages/amaranth/lib/data.py", line 344, in __getitem__
    return self._fields[key]
KeyError: 'attrs'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File ".../ff_shape.py", line 37, in <module>
    verilog.convert(Foo(), name="foo", platform=MicroZedZ020Platform())
  File ".../venv/lib/python3.10/site-packages/amaranth/back/verilog.py", line 60, in convert
    fragment = _ir.Fragment.get(elaboratable, platform)
  File ".../venv/lib/python3.10/site-packages/amaranth/hdl/_ir.py", line 63, in get
    new_obj = obj.elaborate(platform)
  File ".../venv/lib/python3.10/site-packages/amaranth/hdl/_dsl.py", line 687, in elaborate
    fragment.add_subfragment(Fragment.get(submodule, platform), name, src_loc=src_loc)
  File ".../venv/lib/python3.10/site-packages/amaranth/hdl/_ir.py", line 63, in get
    new_obj = obj.elaborate(platform)
  File ".../venv/lib/python3.10/site-packages/amaranth/lib/cdc.py", line 94, in elaborate
    return platform.get_ff_sync(self)
  File ".../venv/lib/python3.10/site-packages/amaranth/vendor/_xilinx.py", line 1243, in get_ff_sync
    flops[0].attrs["amaranth.vivado.false_path"] = "TRUE"
  File ".../venv/lib/python3.10/site-packages/amaranth/lib/data.py", line 867, in __getattr__
    raise AttributeError(
AttributeError: View with layout StructLayout({'one': 1, 'two': 2}) does not have a field 'attrs'; did you mean one of: 'one', 'two'?

I suspect this is because this line creates a signal with the shape:
https://github.com/amaranth-lang/amaranth/blob/590cba1d6c00dffba7abb5f399680ac50e252adf/amaranth/vendor/_xilinx.py#L1238-L1241
Which is then accessed here:
https://github.com/amaranth-lang/amaranth/blob/590cba1d6c00dffba7abb5f399680ac50e252adf/amaranth/vendor/_xilinx.py#L1244
But because of the metaclass of Signal what actually gets created is a View:
https://github.com/amaranth-lang/amaranth/blob/590cba1d6c00dffba7abb5f399680ac50e252adf/amaranth/hdl/_ast.py#L1941-L1946

Thanks, we completely missed this case.

I fixed it for now by wrapping the parameters in Value.cast():
m.submodules[f"cdc_bar"] = cdc.FFSynchronizer(
    i = Value.cast(self.input),
    o = Value.cast(self.output),
    o_domain = "bar",
    init = 0,
)

Although I'm not sure if this is actually "correct"

That workaround will work fine.

authors: jorolf whitequark

repo: amaranth-lang/amaranth


text:
Support Android Drawables for Pin.Icon

FEATURE REQUEST / SUGGESTION
SUMMARY
I have an idea what using Android Drawables(e.g. R.Drawable.my_icon) for Pin.Icon.
DETAILS
1. Define bundle name to Drawable resource ID mappings in Android side FormsGoogleMaps.Init()
// MainActivity.cs
protected override void OnCreate(Bundle bundle)
{
    base.OnCreate(bundle);

    var nameToDrawable = new Dictionary<string, int>();
    nameToDrawable.Add("image01.png", Resource.Drawable.image01);
    nameToDrawable.Add("image02.png", Resource.Drawable.image02);

    Xamarin.FormsGoogleMaps.Init(this, bundle, nameToDrawable);  // add parameter to Init method
    LoadApplication(new App());
}

2. Call BitmapDescriptorFactory.FromBundle with defined bundle name in PCL side
// YourPinPage.xaml.cs
yourPin1.Icon = BitmapDescriptorFactory.FromBundle("image01.png");

3. What happens in BitmapDescriptorFactory.FromBundle?
If bundleName contained in nameToDrawable mapping then just using NativeBitmapDescriptorFactory.FromResource() with Drawable resource ID.
Otherwise, using NativeBitmapDescriptorFactory.FromAsset() with bundleName that is same old behavior.
Thus you can override Asset resources by nameToDrawable mapping you defined in Android side .
PLATFORMS
which platform do you want?

[x] Android
[ ] iOS
[ ] UWP

Any comments?

Another idea
using #497 's caching mechanism.

It's certainly doable. You don't even need to create a dictionary. You can create "proxy" factory that would convert every descriptor of type "Bundle" into type "Stream" by extracting it from application resources. Application resources can be passed during init phase.
Something like this:
var descriptorFactory =
       new CachingNativeBitmapDescriptorFactory(
           new CustomBundleBitmapDescriptorFactory(Application.Resources));

var platformConfig = new PlatformConfig
{
        BitmapDescriptorFactory = descriptorFactory
};

FormsGoogleMaps.Init(this, bundle, platformConfig);

The caching factory is used here to "remember" the bundle descriptor. If it was not there then converting bundle to stream from resources would cause out of memory for large number of pins.
If type of descriptor passed to CustomBundleBitmapDescriptorFactory is not Bundle then request qould be passed to the default factory to create a pin. Although if it was found the resource would be extracted from (dpi-aware) drawables.

FEATURE REQUEST / SUGGESTION
SUMMARY
I have an idea what using Android Drawables(e.g. R.Drawable.my_icon) for Pin.Icon.
DETAILS
1. Define bundle name to Drawable resource ID mappings in Android side FormsGoogleMaps.Init()
// MainActivity.cs
protected override void OnCreate(Bundle bundle)
{
    base.OnCreate(bundle);

    var nameToDrawable = new Dictionary<string, int>();
    nameToDrawable.Add("image01.png", Resource.Drawable.image01);
    nameToDrawable.Add("image02.png", Resource.Drawable.image02);

    Xamarin.FormsGoogleMaps.Init(this, bundle, nameToDrawable);  // add parameter to Init method
    LoadApplication(new App());
}

2. Call BitmapDescriptorFactory.FromBundle with defined bundle name in PCL side
// YourPinPage.xaml.cs
yourPin1.Icon = BitmapDescriptorFactory.FromBundle("image01.png");

3. What happens in BitmapDescriptorFactory.FromBundle?
If bundleName contained in nameToDrawable mapping then just using NativeBitmapDescriptorFactory.FromResource() with Drawable resource ID.
Otherwise, using NativeBitmapDescriptorFactory.FromAsset() with bundleName that is same old behavior.
Thus you can override Asset resources by nameToDrawable mapping you defined in Android side .
PLATFORMS
which platform do you want?

[x]  Android
[ ]  iOS
[ ]  UWP

Any comments?

In this I'm getting error that- cannot convert from 'System.Collections.Generic.Dictionary<string, int>' to 'Xamarin.Forms.GoogleMaps.Android.PlatformConfig'

Could you see our sample app's listed code:

https://github.com/amay077/Xamarin.Forms.GoogleMaps/blob/4ab24797821e19768ebf89baa5c6896d4977f0af/XFGoogleMapSample/Droid/MainActivity.cs
https://github.com/amay077/Xamarin.Forms.GoogleMaps/blob/4ab24797821e19768ebf89baa5c6896d4977f0af/XFGoogleMapSample/Droid/CachingNativeBitmapDescriptorFactory.cs
https://github.com/amay077/Xamarin.Forms.GoogleMaps/blob/4ab24797821e19768ebf89baa5c6896d4977f0af/XFGoogleMapSample/XFGoogleMapSample/MultiplePinsIconsCaching.xaml.cs

And modify CachingNativeBitmapDescriptorFactory.
using System.Collections.Concurrent;
using Xamarin.Forms.GoogleMaps.Android.Factories;
using Xamarin.Forms.GoogleMaps;
using AndroidBitmapDescriptor = Android.Gms.Maps.Model.BitmapDescriptor;
using AndroidBitmapDescriptorFactory = Android.Gms.Maps.Model.BitmapDescriptorFactory;

namespace XFGoogleMapSample.Droid
{
    public sealed class CachingNativeBitmapDescriptorFactory : IBitmapDescriptorFactory
    {
        public AndroidBitmapDescriptor ToNative(BitmapDescriptor descriptor)
        {
            // Mapping Id to drawable resource id
            int resId;
            switch (descriptor.Id)
            {
                case "drawable1":
                    resId = Resource.Drawable.your_awesome_drawable_1;
                    break;
                case "drawable2":
                    resId = Resource.Drawable.your_awesome_drawable_2;
                    break;
            }

            return AndroidBitmapDescriptorFactory.FromResource(resId);
        }
    }
}

authors: JitendraEpicomm Matiszak amay077


text:
Source link on PR environments is incorrect for GitLab

Describe the bug
When pull requests are enabled in Lagoon, and the git repo is on GitLab the "source" link shown on the Lagoon PR environment overview page is incorrect. It gives a 404 from GitLab when clicked.
To Reproduce
Steps to reproduce the behavior:

Create a MR in GitLab
Go to the PR Environment Overview page in Lagoon
Click on the link under the Source heading
Get 404 error page on GitLab

Expected behavior
Clicking the link should take you to the MR page on GitLab.
Screenshots

Additional context
The link in the CI channel of Rocket Chat is correct and does not give a 404.

@kmbremner for your example can you provide what the correct gitlab link is?

@rocketeerbkw sure! The (working) link in rocket chat was https://gitlab.com/one_young_world/oyw-website-d8/merge_requests/34

After the recent update to 0.22.1, we see a : added before the GitLab group name in the source link. For example:
https://projects.govcms.gov.au/:sandbox/someproject/tree/master
...when it should have been:
https://projects.govcms.gov.au/sandbox/someproject/tree/master

@klonos I have raised #1066 to address the problem you are seeing

fixed in #1066

authors: klonos kmbremner rocketeerbkw shreddedbacon tobybellwood

repo: amazeeio/lagoon


text:
pynini as requirement for macos with M1 can not be installed

As a fix, you can remove it from the requirements.txt and replace it with boto3, which is needed to run demo.py.
demo.py is still downloading, so I might run into issues with this down the line. Just a quickfix that might help others.

Thank you for this. You are correct, pynini is not currently needed to run the ReFinED model. I will remove this from the requirments.txt in the next release.

Hi, I have updated the README for this (https://github.com/amazon-science/ReFinED/blob/main/README.md). Thanks.

authors: bablf tayoola

repo: amazon-science/ReFinED