text:
Fix documentation on boundary_conditions_provider operator

Discussed in https://github.com/ansys/pydpf-core/discussions/542

Originally posted by kmahajan-cadfem October 10, 2022
I have a simple question,
what is boundary conditions provider operator and how to use it or where can i use it
code
from ansys.dpf import core as dpf
from ansys.dpf.core import operators as ops
from ansys.dpf.core import examples
fp = examples.download_hemisphere()
model = dpf.Model(fp)
ds = dpf.DataSources(model)
st_op = ops.metadata.streams_provider() # operator instantiation
st_op.inputs.data_sources.connect(ds)
my_streams_container = st_op.outputs.streams_container
op = dpf.operators.metadata.boundary_condition_provider() # operator instantiation
op.inputs.data_sources.connect(ds)
print(op.outputs.results_info)

output is
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_3988\2261196826.py in <module>
     10 op = dpf.operators.metadata.boundary_condition_provider() # operator instantiation
     11 op.inputs.data_sources.connect(ds)
---> 12 print(op.outputs.results_info)

AttributeError: 'Outputs' object has no attribute 'results_info'

See discussion for proposed improvements to the operator's documentation.

repo: ansys/pydpf-core


text:
Vulnerability scan reveals 30 known vulnerabilities in the dependency tree

🤓 Before submitting the issue

[X] I have visited the Troubleshooting section.
[X] I have searched among the existing issues.
[X] I am using a Python virtual environment.
[X] I am using the latest version of PyMAPDL and its dependencies (fully updated virtual environment). You can update them using pip install --upgrade --upgrade-strategy eager ansys-mapdl-core in your activated virtual environment.

🔍 Description of the bug
Installing pymapdl installs vtkmodules. VTK relies on libtiff 4.3.0, which has 27 known vulnerabiliities.  I have filed an Issue with VTK here:
https://gitlab.kitware.com/vtk/vtk/-/issues/19142
There is also vulnerability CVE-2022-37434 from vtk's use of zlib 1.2.12, which has been resolved in vtk 9.3.
🕵 Steps To Reproduce
pip install ansys.mapdl.core

💻 Which Operating System are you using?
Windows
🐍 Which Python version are you using?
3.10
📝 PyMAPDL Report
Show the Report!

PyMAPDL Software and Environment Report

Packages Requirements
*********************

Core packages
-------------
ansys.mapdl.core    : 0.67.0
numpy               : 1.26.1
platformdirs        : 3.11.0
scipy               : 1.11.3
grpc                : Package not found
ansys.api.mapdl.v0  : Package not found
ansys.mapdl.reader  : 0.52.20
google.protobuf     : Package not found

Optional packages
-----------------
matplotlib          : 3.8.0
pyvista             : 0.42.3
pyiges              : 0.3.1
tqdm                : 4.66.1

Ansys Installation
******************
Version   Location
------------------
193       C:\Program Files\ANSYS Inc\v193
195       C:\Program Files\ANSYS Inc\v195
202       C:\Program Files\ANSYS Inc\v202
211       C:\Program Files\ANSYS Inc\v211
212       C:\Program Files\ANSYS Inc\v212
221       C:\Program Files\ANSYS Inc\v221
222       C:\Program Files\ANSYS Inc\v222
231       C:\Program Files\ANSYS Inc\v231
232       C:\Program Files\ANSYS Inc\v232
241       C:\Program Files\ANSYS Inc\v241

Ansys Environment Variables
***************************
ANSYS190_DIR                   C:\Program Files\ANSYS Inc\v190\ANSYS
ANSYS193_DIR                   C:\Program Files\ANSYS Inc\v193\ANSYS
ANSYS195_DIR                   C:\Program Files\ANSYS Inc\v195\ANSYS
ANSYS202_DIR                   C:\Program Files\ANSYS Inc\v202\ANSYS
ANSYS211_DIR                   C:\Program Files\ANSYS Inc\v211\ANSYS
ANSYS212_DIR                   C:\Program Files\ANSYS Inc\v212\ANSYS
ANSYS221_DIR                   C:\Program Files\ANSYS Inc\v221\ANSYS
ANSYS222_DIR                   C:\Program Files\ANSYS Inc\v222\ANSYS
ANSYS231_DIR                   C:\Program Files\ANSYS Inc\v231\ANSYS
ANSYS232_DIR                   C:\Program Files\ANSYS Inc\v232\ANSYS
ANSYS241_DIR                   C:\Program Files\ANSYS Inc\v241\ANSYS
ANSYSEM_ROOT231                C:\Program Files\AnsysEM\v231\Win64
ANSYSLIC_DIR                   C:\Program Files\ANSYS Inc\Shared Files\Licensing
ANSYS_REPORT_GEN_ADDRESS       57052
ANSYS_SYSDIR                   winx64
ANSYS_SYSDIR32                 win32
AWP_LOCALE190                  en-us
AWP_LOCALE193                  en-us
AWP_LOCALE202                  en-us
AWP_LOCALE211                  en-us
AWP_LOCALE212                  en-us
AWP_LOCALE221                  en-us
AWP_LOCALE222                  en-us
AWP_LOCALE231                  en-us
AWP_LOCALE232                  en-us
AWP_LOCALE241                  en-us
AWP_ROOT190                    C:\Program Files\ANSYS Inc\v190
AWP_ROOT193                    C:\Program Files\ANSYS Inc\v193
AWP_ROOT195                    C:\Program Files\ANSYS Inc\v195
AWP_ROOT202                    C:\Program Files\ANSYS Inc\v202
AWP_ROOT211                    C:\Program Files\ANSYS Inc\v211
AWP_ROOT212                    C:\Program Files\ANSYS Inc\v212
AWP_ROOT221                    C:\Program Files\ANSYS Inc\v221
AWP_ROOT222                    C:\Program Files\ANSYS Inc\v222
AWP_ROOT231                    C:\Program Files\ANSYS Inc\v231
AWP_ROOT232                    C:\Program Files\ANSYS Inc\v232
AWP_ROOT241                    C:\Program Files\ANSYS Inc\v241
CADOE_LIBDIR190                C:\Program Files\ANSYS Inc\v190\CommonFiles\Language\en-us
CADOE_LIBDIR193                C:\Program Files\ANSYS Inc\v193\CommonFiles\Language\en-us
CADOE_LIBDIR195                C:\Program Files\ANSYS Inc\v195\CommonFiles\Language\en-us
CADOE_LIBDIR202                C:\Program Files\ANSYS Inc\v202\CommonFiles\Language\en-us
CADOE_LIBDIR211                C:\Program Files\ANSYS Inc\v211\CommonFiles\Language\en-us
CADOE_LIBDIR212                C:\Program Files\ANSYS Inc\v212\CommonFiles\Language\en-us
CADOE_LIBDIR221                C:\Program Files\ANSYS Inc\v221\CommonFiles\Language\en-us
CADOE_LIBDIR222                C:\Program Files\ANSYS Inc\v222\CommonFiles\Language\en-us
CADOE_LIBDIR231                C:\Program Files\ANSYS Inc\v231\CommonFiles\Language\en-us
CADOE_LIBDIR232                C:\Program Files\ANSYS Inc\v232\CommonFiles\Language\en-us
CADOE_LIBDIR241                C:\Program Files\ANSYS Inc\v241\CommonFiles\Language\en-us
ENSIGHT_ANSYS_BETA_FLAG        1
PYANSYS_PRIVATE_PYPI_PAT       wjbl55waeno74yg6meq2rl6njnq7j2yd3x2oe6jokrz2mszaw5aq

📝 Installed packages
Show the installed packages!

ansys-api-mapdl==0.5.1
ansys-api-platform-instancemanagement==1.0.0
ansys-mapdl-core==0.67.0
ansys-mapdl-reader==0.52.20
ansys-math-core==0.1.3
ansys-platform-instancemanagement==1.1.2
ansys-tools-path==0.3.2
appdirs==1.4.4
certifi==2023.7.22
charset-normalizer==3.3.1
click==8.1.7
colorama==0.4.6
contourpy==1.1.1
cycler==0.12.1
fonttools==4.43.1
geomdl==5.3.1
grpcio==1.59.0
idna==3.4
importlib-metadata==6.8.0
kiwisolver==1.4.5
matplotlib==3.8.0
numpy==1.26.1
packaging==23.2
Pillow==10.1.0
platformdirs==3.11.0
pooch==1.7.0
protobuf==3.20.3
psutil==5.9.6
pyansys-tools-versioning==0.5.0
pyiges==0.3.1
pyparsing==3.1.1
python-dateutil==2.8.2
pyvista==0.42.3
requests==2.31.0
scipy==1.11.3
scooby==0.9.2
six==1.16.0
tqdm==4.66.1
urllib3==2.0.7
vtk==9.2.6
zipp==3.17.0

📝 Logger output file
Show the logger output file.

# PASTE HERE THE CONTENT OF THE LOGGER OUTPUT FILE.

I'm closing this issue because it has been mentioned in the comment of this issue: https://gitlab.kitware.com/vtk/vtk/-/issues/19142
That from 9.3.0, the offending lib (libtiff) has been updated and most of the issues should be then fixed. Surely, not all the issues will be fixed, but it's something. And we do not have access/write permissions to the upper stream package.

source: gharchive/issue

repo: ansys/pymapdl

license: MIT

license_type: permissive

license_source: github-api


text:
Failed to init socket

Hi,
I am trying to compile and run the sample http server. However its unable to initialize the socket properly.
Could you please help as source code is not available for socket library?
ubuntu@dpdk$ sudo ./http_server
affinity to 0 core by default
EAL: Detected 2 lcore(s)
EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles !
USER8: LCORE[-1] anssock any lcore id 0xffffffff
USER8: LCORE[-1] Can't find ans memzone
init sock failed
USER8: LCORE[-1] socket: anssock isn't init, (nil)
socket error

you shall run ans(tcp/ip stack) process before run http_server.

repo: ansyun/dpdk-ans


text:
🐛[BUG] useStyles和useTheme的性能问题

🐛 bug 描述
在我的基础组件Iconfont中我使用了useStyles，这个icon被应用到了antd 虚拟滚动的tree中，
现在我遇到了性能问题，每个icon的渲染都会执行useStyles，我看到createStylesFactory这个方法的执行时间在20ms，这对虚拟滚动的场景应该是不能接受的。
我觉得这个问题同 #158
📷 复现步骤
🏞 期望结果
可以优化useStyles的时间，或者能不能有一个单例的useStyles，没必要每个组件都要去执行useStyles
💻 复现代码
可复现demo： https://codesandbox.io/p/sandbox/frosty-chatelet-j23j8m?file=%2Fsrc%2FDemo.tsx%3A10%2C1
© 版本信息

antd-style 版本: [e.g. 1.0.0]
浏览器环境
开发环境 [e.g. mac OS]

🚑 其他信息

嗯，#158 的问题的确存在。上次看过一次，一下子没找到解决方案，最近有空的时候再研究下怎么解比较好。核心应该还是存在 re-render 了

嗯，#158 的问题的确存在。上次看过一次，一下子没找到解决方案，最近有空的时候再研究下怎么解比较好。核心应该还是因为引用不同造成了 re-render

好的谢谢，还有个问题就是主题色切换反应有些慢，这个有的解吗，包括lobechat也有这个问题，在页面更复杂的时候这个时间可能会更久。

这个应该可以用 cssvar 解。你试下 antd 官网的主题切换速度 OK 吗？

authors: arvinxx shanhexi

repo: ant-design/antd-style


text:
🐛[BUG]当pro-table最大化时不能显示antd Modal组件

🐛 bug 描述 [详细地描述 bug，让大家都能理解]
当pro-table最大化时不能显示antd Modal组件
📷 复现步骤 [清晰描述复现步骤，让别人也能看到问题]
当pro-table最大化时，单击按钮弹出antd Modal组件，但没有任何显示。
🏞 期望结果 [描述你原本期望看到的结果]
💻 复现代码 [提供可复现的代码，仓库，或线上示例]
© 版本信息

pro-table :[ version: 2.0.1 ]

🚑 其他信息 [如截图等其他信息可以贴在这里]

@effapp  全屏模式需要用 https://ant.design/components/config-provider-cn/   getPopupContainer 来挂载到 全屏的 dom 上

还是不太明白，能用codesandbox做一个简单的例子吗？

你查看一下全屏的dom 就知道为什么了, pro-table 代码中有类似的代码

你查看一下全屏的dom 就知道为什么了, pro-table 代码中有类似的代码

搞不定，类似代码在哪

@chenshuai2144 全屏的dom在哪？？

https://github.com/ant-design/pro-table/blob/b52365e8b7b3e5a084f296a9723dac1a43fbc4d4/src/Table.tsx#L657
在这里

authors: chenshuai2144 effapp icyes

repo: ant-design/pro-table


text:
Bugs with: LogIn / Register / Add to Cart / Like Product / Show Product / WishList .....

--- When press **add to cart or like product / wishlist / your wishlist / ** i have this error:
FatalErrorException in Handler.php line 135:
Call to undefined method App\Exceptions\Handler::unauthenticated()
in Handler.php line 135
-- When clicking on product ( thumbnail / name link / or button link to see more info ):
ErrorException in 435dc909906be573862abbd30f4fdf4ff352d505.php line 139:
Trying to get property of non-object (View: C:\Users\BonBonS\Desktop\OpenServer\domains\antvel\resources\views\products\detailProd.blade.php)
in 435dc909906be573862abbd30f4fdf4ff352d505.php line 139
at CompilerEngine->handleViewException(object(ErrorException), '0') in PhpEngine.php line 44
at PhpEngine-.......
-- When logining ( captcha works ):
BadMethodCallException in Controller.php line 82:
Method [getFailedLoginMessage] does not exist.
in Controller.php line 82
at Controller->__call('getFailedLoginMessage', array()) in LoginController.php line 75...
And other bugs.....

what other bugs? can u be more clear?
thanks

I have done all as it said. So, i have web site, working Data Base, .env is seems to be okay. Captcha and map connected.  Also, i am using Windows 7/ OpenServer ( PhP 5.6 - MySQL 5.7, Apache 2.4, bower and other dependencies installed ).
Every feature i found, will use ---
--- click 'Add to cart' button ( where it is ).
FatalErrorException in Handler.php line 135:
Call to undefined method App\Exceptions\Handler::unauthenticated()
in Handler.php line 135
-- click 'Like' the product ( heart shape button ):
FatalErrorException in Handler.php line 135:
Call to undefined method App\Exceptions\Handler::unauthenticated()
in Handler.php line 135
--- click 'Product info' ( aye button / name link / img ( thumbnail )  ):
ErrorException in 435dc909906be573862abbd30f4fdf4ff352d505.php line 139:
Trying to get property of non-object (View: C:\Users\BonBonS\Desktop\OpenServer\domains\antvel\resources\views\products\detailProd.blade.php)
in 435dc909906be573862abbd30f4fdf4ff352d505.php line 139
at CompilerEngine->handleViewException(object(ErrorException), '0') in PhpEngine.php line 44
at PhpEngine->evaluatePath('C:\Users\BonBonS\Desktop\OpenServer\domains\antvel\storage\framework\views/435dc909906be573862abbd30f4fdf4ff352d505.php', array('__env' => object(Factory), 'app' => object(Application), 'main_company' => object(Company), 'categories_menu' => array(array('id' => '1', 'name' => 'Digital & Music'), array('id' => '14', 'name' => 'Books & Audible'), array('id' => '30', 'name' => 'Movies, Music & Games'), array('id' => '58', 'name' => 'Electronics & Computers'), array('id' => '113', 'name' => 'Home, Garden & Tools'), array('id' => '156', 'name' => 'Beauty, Health & Grocery'), array('id' => '181', 'name' => 'Toys, Kids & Baby'), array('id' => '206', 'name' => 'Clothing, Shoes & Jewelry'), array('id' => '225', 'name' => 'Sports & Outdoors'), array('id' => '280', 'name' => 'Automotive & Industrial'), array('id' => '308', 'name' => 'Home Services')), 'errors' => object(ViewErrorBag), 'product' => object(Product), 'panel' => array('center' => array('width' => '12')), 'allWishes' => '', 'reviews' => object(Collection), 'freeproductId' => '0', 'features' => array(array('id' => '1', 'name' => 'images', 'input_type' => 'image', 'default_values' => '{}', 'validation_rules' => '{"images_1": .....
---  click 'wishlist' dropdown button:
FatalErrorException in Handler.php line 135:
Call to undefined method App\Exceptions\Handler::unauthenticated()
in Handler.php line 135
--- click 'Your wishlist':
FatalErrorException in Handler.php line 135:
Call to undefined method App\Exceptions\Handler::unauthenticated()
in Handler.php line 135
( account register works fine, so when i registered there are no such errors).
Now i will try do some sort of things logged as new registered user.
--- i cant upload avatar, when i click 'Update Profile', there is error ( with updating other info same things ):
The E-Mail has already been taken.
The User Name (Nickname) has already been taken.
Okay, now gonna try as admin.
--- i logged as admin, when captcha is not checked
--- 'Notice' page unclickable.  I think even if it is empty, i need some message.
WEB PANEL
-- click 'store settings ':
ErrorException in UrlGenerator.php line 314:
Route [wpanel.profile.update] not defined. (View: C:\Users\BonBonS\Desktop\OpenServer\domains\antvel\resources\views\company\index.blade.php)
in UrlGenerator.php line 314
at CompilerEngine->handleViewException(object(InvalidArgumentException), '0') in PhpEngine.php line 44
at PhpEngine->evaluatePath('C:\Users\BonBonS\Desktop\OpenServer\domains\antvel\storage\framework\views/06c942be95be623be070da89e93996eb2cd52304.php', array('__env' => object(Factory), 'app' => object(Application), 'main_company' => object(Company), 'categories_menu' => array(array('id' => '1', 'name' => 'Digital & Music'), array('id' => '14', 'name' => 'Books & Audible'), array('id' => '30', 'name' => 'Movies, Music & Games'), array('id' => '58', 'name' => 'Electronics & Computers'), array('id' => '113', 'name' => 'Home, Garden & Tools'), array('id' => '156', 'name' => 'Beauty, Health & Grocery'), array('id' => '181', 'name' => 'Toys, Kids & Baby'), array('id' => '206', 'name' => 'Clothing, Shoes & Jewelry'), array('id' => '225', 'name' => 'Sports & Outdoors'), array('id' => '280', 'name' => 'Automotive & Industrial'), array('id' => '308', 'name' => 'Home Services')), 'errors' => object(ViewErrorBag), 'panel' => array('left' => array('width' => '2'), 'center' => array('width' => '10')), 'company' => object(Company))) in CompilerEngine.php line 59
at CompilerEngine->get('C:\Users\BonBonS\Desktop\OpenServer\domains\antvel\resources\views/company/index.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'main_company' => object(Company), 'categories_menu' => array(array('id' => '1', 'name' => 'Digital & Music'), array('id' => '14', 'name' => 'Books & Audible'), array('id' => '30', 'name' => 'Movies, Music & Games'), array('id' => '58', 'name' => 'Electronics & Computers'), array('id' => '113', 'name' => 'Home, Garden & Tools'), array('id' => '156', 'name' => 'Beauty, Health & Grocery'), array('id' => '181', 'name' => 'Toys, Kids & Baby'), array('id' => '206', 'name' => 'Clothing, Shoes & Jewelry'), array('id' => '225', 'name' => 'Sports & Outdoors'), array('id' => '280', 'name' => 'Automotive & Industrial'), array('id' => '308', 'name' => 'Home Services')), 'errors' => object(ViewErrorBag), 'panel' => array('left' => array('width' => '2'), 'center' => array('width' => '10')), 'company' => object(Company))) in View.php line 149.........
...
--- 'Product Category' page, when i clicked:
ErrorException in UrlGenerator.php line 314:
Route [wpanel.category.create] not defined. (View: C:\Users\BonBonS\Desktop\OpenServer\domains\antvel\resources\views\categories\home.blade.php)
in UrlGenerator.php line 314
at CompilerEngine->handleViewException(object(InvalidArgumentException), '0') in PhpEngine.php line 44
at PhpEngine->evaluatePath('C:\Users\BonBonS\Desktop\OpenServer\domains\antvel\storage\framework\views/484724333e6d2fc6f6d8928c265d0f93335aca58.php', array('__env' => object(Factory), 'app' => object(Application), 'main_company' => object(Company), 'categories_menu' => array(array('id' => '1', 'name' => 'Digital & Music'), array('id' => '14', 'name' => 'Books & Audible'), array('id' => '30', 'name' => 'Movies, Music & Games'), array('id' => '58', 'name' => 'Electronics & Computers'), array('id' => '113', 'name' => 'Home, Garden & Tools'), array('id' => '156', 'name' => 'Beauty, Health & Grocery'), array('id' => '181', 'name' => 'Toys, Kids & Baby'), array('id' => '206', 'name' => 'Clothing, Shoes & Jewelry'), array('id' => '225', 'name' => 'Sports & Outdoors'), array('id' => '280', 'name' => 'Automotive & Industrial'), array('id' => '308', 'name' => 'Home Services')), 'errors' => object(ViewErrorBag), 'categories' => object(Categories), 'panel' => array('left' => array('width' => '2'), 'center' => array('width' => '10')))) in CompilerEngine.php line 59.....
-- And last one, 'Product Features' page, click:
ErrorException in UrlGenerator.php line 314:
Route [wpanel.productsdetails.create] not defined. (View: C:\Users\BonBonS\Desktop\OpenServer\domains\antvel\resources\views\features\index.blade.php)
in UrlGenerator.php line 314
at CompilerEngine->handleViewException(object(InvalidArgumentException), '0') in PhpEngine.php line 44
at PhpEngine->evaluatePath('C:\Users\BonBonS\Desktop\OpenServer\domains\antvel\storage\framework\views/f5b8397a8f1f6bc309068ed13c8a7253b41a34d6.php', array('__env' => object(Factory), 'app' => object(Application), 'main_company' => object(Company), 'categories_menu' => array(array('id' => '1', 'name' => 'Digital & Music'), array('id' => '14', 'name' => 'Books & Audible'), array('id' => '30', 'name' => 'Movies, Music & Games'), array('id' => '58', 'name' => 'Electronics & Computers'), array('id' => '113', 'name' => 'Home, Garden & Tools'), array('id' => '156', 'name' => 'Beauty, Health & Grocery'), array('id' => '181', 'name' => 'Toys, Kids & Baby'), array('id' => '206', 'name' => 'Clothing, Shoes & Jewelry'), array('id' => '225', 'name' => 'Sports & Outdoors'), array('id' => '280', 'name' => 'Automotive & Industrial'), array('id' => '308', 'name' => 'Home Services')), 'errors' => object(ViewErrorBag), 'panel' => array('left' => array('width' => '2'), 'center' => array('width' => '10')), 'features' => object(Collection))) in CompilerEngine.php line 59...
I am sure, there are a lot of more, but i am gonna to develope my own web market with laravel ( i am newbie ), while searching for inspiring open source project, to look through the code.

Ok thanks, I will look into it

The problem is the authentication, for add product to cart or wishlist is required be authenticated, the bottons need to be disabled or invisible for not authenticated users.

I know, but for common users maybe author should add some redirect, or error message. Also, adminpanel, we cant manage our site, add / delete / edit - users / products / categories and roles.

Of course in the future is comtemplated add an admin area for manager all this things.

We are working on the ecommerce refactoring. We are gonna get look into this bugs in order for all of you can use the site as it is. New features, validation, etc will be shipped whithin the new version.
Again, thanks for testing.

Fixed on PR #204 by @Artessan
Let us know how it goes

Ok, i have checked, and found again couple bugs. ( cleared all cache, created new DB, folder, generally started as new project ).
---=== I logged when captcha check failed, or even not checked.
---=== I there is no such user, i have got laravel error page in Countroller...:
---=== Also, when i clicked aye to see product i have:
ErrorException in f1b922fe9942d15a44de32dd6886e4bfb39a1873.php line 139:
Trying to get property of non-object (View: C:\Users\BonBonS\Desktop\OpenServer\domains\antvel2\resources\views\products\detailProd.blade.php)...
...at CompilerEngine->handleViewException(object(ErrorException), '0') in PhpEngine.php line 44
at PhpEngine-....
---=== Other one, idk why, after first login, i cant log in or sign out, i have ( sometimes this error ):
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated.....
I am sure, there is more, but here i supposed to stop, will be waiting for new patches, and will try it maybe in couple weeks.
U've done great work, but it is still not enough to start it working  well. =(

Artessan, i always prefer to start new website from adminpanel building, to see what will be siplayed on front, how admins / moders can manage   data and etc important things.

Hi, thanks for your feedback. We will look into them as soon as possible. In the meanwhile, you are free to send PR's if you would like to contribute. This project was a testing one for me, but now, we are working on its refactoring ant-vel/Shop.
We will try to have this done asap.
Thanks

authors: Artessan BonBonSlick gocanto

repo: ant-vel/antVel

license: mit

license_source: bigquery


text:
Changes to support Vue3

Here are the necessary changes to the vue-youtube for it to work with Vue3.
Ignore the changes to the ./dist folder, I made those for my own project so I could continue using the component while the package gets updated, as I was unable to quickly get the rollup build to work with vue#. But Vue3 drops the support for older browsers anyway, so worth thinking about which bundles are needed.
Important changes are these:

beforeDestroy -> beforeUnmount
instead of render(h) { return h('div'); } using render () { return h('div') } and import { h } from 'vue'
Use @vue/compiler-sfc instead of vue-template-compiler
src/index.js changes for the plugin() method to install the plugin globally (not tested, as I am not using the plugin globally)

I guess this should be a tagged release in a new major version to keep the vue2 release as well.
Oh, and a side note on using the fork/PR version already. When using the plugin locally in components, i was using it in vue2 like this:
import { Youtube } from 'vue-youtube';
but since i did not use the rollup to do the release, rather just copied the component to dist as modern browsers can handle it, then you can use the component locally like this:
import Youtube from 'vue-youtube';

I'd love to see this PR get merged, even in 2023 :)!

source: gharchive/pull-request

authors: MaxKorlaar ainarend

repo: anteriovieira/vue-youtube


text:
vite / vue-tsc compiler error

Not exactly sure when this started, but I'm getting an error when running vue-tsc (TS typechecking for vue) related to this plugin
running vue-tsc --noEmit gives me the following error
node_modules/unplugin-icons/dist/vite.d.ts:4:60 - error TS2304: Cannot find name 'Plugin$1'.

declare const _default: (options?: Options | undefined) => Plugin$1;
                                                           ~~~~~~~~

My tsconfig:
{
  "compilerOptions": {
    "target": "ESNext",
    "module": "ESNext",
    "moduleResolution": "node",
    "strict": true,
    "jsx": "preserve",
    "sourceMap": true,
    "resolveJsonModule": true,
    "esModuleInterop": true,
    "experimentalDecorators": true,
    "allowUnreachableCode": true,
    "lib": ["ESNext", "dom"],
    "types": [
      "node",
      "vite/client",
      "unplugin-icons/types/vue"
    ],
    "baseUrl": "./",
    "paths": {
      "@/*": ["src/*"],
    }
  },
  "include": [
    "**/*.ts",
    "**/*.js",
    "src/**/*.tsx",
    "src/**/*.vue"
  ]
}

The same to me. Any solution on this one guys.

Same here, i've managed to isolate the issue to Typescript 4.5+, it goes away when you activate the compilerOptions.skipLibCheck: true in your tsconfig file

authors: hugazo theoephraim trathailoi

repo: antfu/unplugin-icons


text:
Added basic utf8 support

It's not exactly a patch, but maybe you are interested in this version that adds some basic utf-8 support with no external dependency and just ~170 more lines. The size is a bit big, but if you remove the comments it's still ~1100 lines. It has a rudimentary mechanism to check if the tty is in utf-8 and it reverts back to ascii-like if it's not. It doesn't support combining characters and it assumes the application knows which encoding to use, but at worse it has the same problem it had before. I did test it on 2 tty and with different tty encodings, but it probably needs more testing as I never used low-level tty before and I may have misunderstood some existing code (plus eventual new bugs I didn't find). I also fixed a minor existing bug in case the prompt is empty. Lastly I found an existing bug in case the tty is resized while typing, but I didn't fix it.

Hello Giuseppe, thank your for this PR. After reading the patch, I've the felling that it can be used as a starting point to add some UTF8 support, but that it shows that once we need to deal with non 8 bit characters, we need to do it in a different way, considering the current line as a linked list of characters for instance, where each character is a node with its length in bytes. This will not have any real performance impact given what linenoise does, but will make the logic of handling UTF8 much simlper, and especially unified with the normal logic for non UTF8 characters. In the next weeks / months, I'm not sure when, I'll look forward to check your patch with the idea of refactoring linenoise and rewrite it in terms of a new version of the internals. Thanks.

authors: ManzoniGiuseppe antirez

repo: antirez/linenoise


text:
Add month-day-events props on view mont and year

When many >1k events are loaded the initial rendering of the month view becomes very slow as there are many events to process.
I would like to be able to pass a counter for each day with the number of events.
Something like:
<template>
  <div>
    <vue-cal
      active-view="month"
      :disable-views="['years', 'week', 'day']"
      :month-day-events="countEvents"
    />
  </div>
</template>

<script>
import VueCal from 'vue-cal'
import 'vue-cal/dist/vuecal.css'

export default {
  components: { VueCal },
  data () {
    return {
        countEvents: [
            {
                date: "2020-08-25",
                count: 4
            },
            {
                date: "2020-08-26",
                count: 5
            },
            {
                date: "2020-08-27",
                count: 16
            }
        ]
    }
  }
}
</script>

Hi @xerifandtomas,
Thanks for your suggestion, and I understand the delay you are facing when you click on the year view.
But I don't think this is a proper solution, and it would create more problems down the track.
What I can suggest, if you know the events count, is to disable the events-count on year view (events-count-on-year is false by default) and manage it yourself outside of Vue Cal.
You can then use a custom cell renderer on year view to add a custom events count.
https://antoniandre.github.io/vue-cal/#ex--custom-title-and-cells
But in the end I am not sure it will be much faster.
May be the smartest move is:

if can, don't load too many events at the same time, you can populate the events array when moving on month view only like in this example https://codepen.io/antoniandre/pen/rbpPab
if you need that many events, you could have a spinner overlay triggered on view-change

Hope it helps.

Closing due to inactivity, please reopen if you need more assistance.

authors: antoniandre xerifandtomas

repo: antoniandre/vue-cal


text:
Added Croatian locale

I've created i18n json file for Croatian language, locale sign is "hr"

Thank you for your contribution @mZabcic!

authors: antoniandre mZabcic


text:
Memory Usage too High

So have my maps working the way I want and started getting OutOfMemory crashes. You can reproduce by drawing a polyline one point at a time (as though you're tracking real time). After a few minutes on an s5 you'll get a crash or screen freezes. I believe it's the screen sized bitmap under the hood. If I can't find a fix I'll have to yank it and go with something else.

Some follow-up here:
I had 2 richLayers going on. I would toggle them by removing or re-adding the shapes. Looks like  having 2 screen sized bitmap's was too much. The other map doesn't need gradients so I've gone back to regular polylines and now the memory usage is much better.

repo: antoniocarlon/richmaps


text:
Update README.md

Correct bash commands documentation.

Thanks!

authors: antonioribeiro lucascudo

repo: antonioribeiro/version


text:
issue G910

Hi every one.
I got an issue whit the G910
I can configurate the desktop , and all that stuff, but when I want to configurate for example league of legends, there's happend a problem , my keyboard did not change the colours. and meaby some of you can help me :D
and look like this:

remember that the last version of league is:
...\RADS\solutions\lol_game_client_sln\releases\0.0.1.142 .... so meaby something is going wrong in the research or something.
and last I have a big question ... my Aurora folder look like this ...

so i wanna know if is right or not
Thx and rewards!.
----------------------------------------------------------------------------------------------
I made the same whit other game Evolve 2 and works fine , every thing goes fine so meaby is something in the league config ?
this is the evolve config

and this is how the keyboard look like in the game:

Well, first of all, you downloaded both the source code and the release. You just need the latest release from here: https://github.com/antonpup/Aurora/releases
Then for League, you have to enable a lightfx setting in the config file of the game to allow for LightFX to work. The instructions for that can be found here: http://forums.na.leagueoflegends.com/board/showthread.php?t=2110253
I also noticed that your entire LoL profile is set as a rainbow effect, you will not be able to see the LightFX effects if Color Zones cover the entire canvas.

@antonpup Thank you buddy it's actually works now , so if some one have some issue this can help out some other people :+1:

Glad you got it fixed. I hope you enjoy Aurora! :smile:

authors: antonpup llGoldMemberll

repo: antonpup/Aurora


text:
Asrock Motherboard RGB header Support

Specifically the Asrock B450 PRO4

I have a ASRock X570.
I would be willing to dig into code a bit but I'm not sure if there's an sdk. I do know that they integrated it with razer's chroma apps so I wonder if there's a way to utilize that code.

Support for this motherboard would be great. I will check that it still definitely isn't supported soon and report back if it does 👍

any news here?
i have a ASRock X670E Pro RS

authors: UniCizin abyzma jktikka timami


text:
[doc][flexible-ipam] Update document for Multiple-VLAN support

Signed-off-by: gran gran@vmware.com

Codecov Report

Merging #3507 (cda4145) into main (2c7d486) will decrease coverage by 27.36%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main    #3507       +/-   ##
===========================================
- Coverage   65.58%   38.22%   -27.37%
===========================================
  Files         277      114      -163
  Lines       27264    14999    -12265
===========================================
- Hits        17881     5733    -12148
- Misses       7483     8795     +1312
+ Partials     1900      471     -1429

Flag
Coverage Δ

integration-tests
38.22% <ø> (?)

kind-e2e-tests
?

unit-tests
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/agent/cniserver/ipam/antrea_ipam.go

pkg/controller/querier/querier.go

pkg/controller/networkpolicy/status_controller.go

pkg/agent/nodeportlocal/portcache/port_table.go

pkg/agent/nodeportlocal/npl_agent_init.go

pkg/agent/proxy/types/groupcounter.go

pkg/agent/interfacestore/types.go

pkg/util/sets/string.go

pkg/apiserver/certificate/cacert_controller.go

pkg/querier/querier.go

... and 381 more

/skip-all

authors: codecov-commenter gran-vmv tnqn

repo: antrea-io/antrea


text:
Support Egress using IPs from a separate subnet

By default, it's assumed that the IPs allocated from the pool are in the
same subnet as the Node IPs. In some cases, users want to use IPs in
different subnets as Egress IPs. Additionally, users may want to use
VLAN taggaing to segment the Egress traffic and the Node traffic.
The commit implements the requirements by introducing an optional field,
subnetInfo, to the ExternalIPPool resource. The subnetInfo field
contains the subnet attributes of the IPs in this pool. When using a
different subnet:

gateway and prefixLength must be set. Antrea will route Egress
traffic to the specified gateway when the destination is not in the
same subnet of the Egress IP, otherwise route it to the destination
directly.

Optionally, you can specify vlan if the underlying network is
expecting it. Once set, Antrea will tag Egress traffic leaving the
Egress Node with the specified VLAN ID. Correspondingly, it's
expected that reply traffic towards these Egress IPs are also tagged
with the specified VLAN ID when arriving the Egress Node.

The implementation involves VLAN sub-interfaces and policy routing.

For a given subnet with a VLAN ID, a separate VLAN sub-interface will
be created to hold the Egress IPs allocated from it. Egress traffic
and its reply traffic will be sent over and received from the VLAN
sub-interface for proper tagging and untagging.

For a given subnet, a separate route table will be created, routing
the selected Egress traffic to the specified gateway, or to its
neighbor.

For multiple Egress IPs associated allocated from the same subnet, a
separate IP rule will be created for each Egress IP, matching its pkt
mark and looking up the shared route table.

The feature is gated by the alpha "EgressSeparateSubnet" feature gate.
TODO: Add an e2e test.

typos in PR description:
s/users may want to use VLAN taggaing/users may want to use VLAN tagging
s/when the destination is not in the same subnet of the Egress IP/when the destination is not in the same subnet as the Egress IP
s/For multiple Egress IPs associated allocated from the same subnet/For multiple Egress IPs allocated from the same subnet

Could you explain to me how stale rules are cleaned up after agent restarts?

It's done by RestoreEgressRoutesAndRules, we simply remove all routes and rules associated with table IDs between 101 and 120.

I think one thing that came up during the community meeting 2 weeks ago was whether overlapping subnets (CIDRs) could exist for different VLAN IDs. IIRC, this is not supported (and perhaps some parts of the code make that assumption). Do we have any validation for this or any meaningful error log? Any need to mention it in the documentation?

Let me try if it can work with overlapping subnets, will add validation or documentation if it can't. But I assume this can be in another PR given it's not common to use overlapping external IPs.

I think one thing that came up during the community meeting 2 weeks ago was whether overlapping subnets (CIDRs) could exist for different VLAN IDs. IIRC, this is not supported (and perhaps some parts of the code make that assumption). Do we have any validation for this or any meaningful error log? Any need to mention it in the documentation?

Let me try if it can work with overlapping subnets, will add validation or documentation if it can't. But I assume this can be in another PR given it's not common to use overlapping external IPs.

It can't work, created https://github.com/antrea-io/antrea/issues/5842 for enhancing the validation.

typo in PR description that can be fixed when merging: s/taggaing/tagging

thanks, corrected description, will edit commit message when merging.

/test-all
/test-ipv6-all
/test-ipv6-only-all

/test-windows-all

authors: antoninbas tnqn


text:
iOS升级到15.0后在Safari中当color的分类中含有中文字符时浏览器的内容反复刷新

在这个https://antv-g2.gitee.io/zh/examples/line/basic#curved例子中试着把city里面加入中文就可以复现

G2 Version:
Platform:
Mini Showcase(like screenshots):
CodePen Link:

#3640

authors: skyingdancing yongkekeinfo


text:
feat(interaction): add brush axis

brushAxisHighlight
增加 brushAxisHighlight 交互：通过 brush axis 去筛选数据。
案例

export function penguinsPointBrushAxis(): G2Spec {
  return {
    type: 'point',
    data: {
      type: 'fetch',
      value: 'data/penguins.csv',
    },
    encode: {
      color: 'species',
      x: 'culmen_length_mm',
      y: 'culmen_depth_mm',
    },
    interactions: [{ type: 'brushAxisHighlight', unhighlightedStroke: 'gray' }],
  };
}

export function cars3LineBrushAxis(): G2Spec {
  const position = [
    'economy (mpg)',
    'cylinders',
    'displacement (cc)',
    'power (hp)',
    'weight (lb)',
    '0-60 mph (s)',
    'year',
  ];
  return {
    type: 'view',
    height: 800,
    coordinates: [{ type: 'parallel' }, { type: 'transpose' }],
    children: [
      {
        type: 'line',
        data: {
          type: 'fetch',
          value: 'data/cars3.csv',
        },
        encode: {
          position,
          color: 'cylinders',
        },
        style: {
          strokeWidth: 1.5,
          strokeOpacity: 0.4,
        },
        scale: {
          color: { palette: 'brBG', offset: (t) => 1 - t },
        },
        axis: Object.fromEntries(
          Array.from({ length: position.length }, (_, i) => [
            `position${i === 0 ? '' : i}`,
            {
              zIndex: 1,
              labelStroke: '#fff',
              labelStrokeWidth: 5,
              labelFontSize: 10,
              labelStrokeLineJoin: 'round',
              titleStroke: '#fff',
              titleFontSize: 10,
              titleStrokeWidth: 5,
              titleStrokeLineJoin: 'round',
              lineStroke: 'black',
              tickStroke: 'black',
              lineStrokeWidth: 1,
            },
          ]),
        ),
      },
    ],
    interactions: [{ type: 'brushAxisHighlight', unhighlightedStroke: 'grey' }],
  };
}

export function cars3LineVerticalBrushAxis(): G2Spec {
  const position = [
    'economy (mpg)',
    'cylinders',
    'displacement (cc)',
    'power (hp)',
    'weight (lb)',
    '0-60 mph (s)',
    'year',
  ];
  return {
    type: 'view',
    coordinates: [{ type: 'parallel' }],
    children: [
      {
        type: 'line',
        data: {
          type: 'fetch',
          value: 'data/cars3.csv',
        },
        encode: {
          position,
          color: 'cylinders',
        },
        style: {
          strokeWidth: 1.5,
          strokeOpacity: 0.4,
        },
        scale: {
          color: { palette: 'brBG', offset: (t) => 1 - t },
        },
        axis: Object.fromEntries(
          Array.from({ length: position.length }, (_, i) => [
            `position${i === 0 ? '' : i}`,
            {
              zIndex: 1,
              labelStroke: '#fff',
              labelStrokeWidth: 5,
              labelFontSize: 10,
              labelStrokeLineJoin: 'round',
              titleStroke: '#fff',
              titleFontSize: 10,
              titleStrokeWidth: 5,
              titleStrokeLineJoin: 'round',
              lineStroke: 'black',
              tickStroke: 'black',
              lineStrokeWidth: 1,
            },
          ]),
        ),
      },
    ],
    interactions: [
      {
        type: 'brushAxisHighlight',
        unhighlightedStroke: 'grey',
        maskFill: 'red',
        maskOpacity: 0.8,
      },
    ],
  };
}

强啊，看到了 sliderY 的部分作用了

authors: pearmini visiky


text:
style: 添加line默认样式

Checklist

[ ] npm test passes
[ ] benchmarks are included
[ ] commit message follows commit guidelines
[ ] documents are updated

Description of change

Fiexs #5685
折线图 line 的默认主题样式中增加 lineCap: 'round'

方便重新 push 一下吗？比如 git commit --am 生成一个新的 commit，然后 git push origin -f，我想测试一下这个 https://github.com/antvis/G2/pull/5719 问题是否解决了。

方便rebase v5之后再强制推送一次吗？我想测试一下这个#5719问题是否解决了

@iamzone

需要在 v5 再合并一个 commit

这啥意思？

@iamzone

需要在 v5 再合并一个 commit

这啥意思？

我昨晚和的时候应该是从上一个commit 切出来的

@iamzone

需要在 v5 再合并一个 commit

这啥意思？

@iamzone

需要在 v5 再合并一个 commit

这啥意思？

稍等，我知道为啥了

@iamzone

需要在 v5 再合并一个 commit

可以了

@iamzone
CI 可以运行了，非常感谢！

CI 挂了，本地运行 npm t 看看是否通过，如果截图测试报错的话，把错误的基准图片（下图中红框标出的）删除，然后重新运行 npm t 生成新截图。

CI 挂了，本地运行 npm t 看看是否通过，如果截图测试报错的话，把错误的基准图片（下图中红框标出的）删除，然后重新运行 npm t 生成新截图。

所有的截图测试都没通过

@iamzone  你的 node 版本和操作系统是？把 node 版本设置为 14.18 试试？

@iamzone 你的 node 版本和操作系统是？把 node 版本设置为 14.18 试试？

这个 PR 我先合并了，我先本地生成一下截图。

@iamzone 你的 node 版本和操作系统是？把 node 版本设置为 14.18 试试？

嗯嗯

authors: iamzone pearmini


text:
大数量的树图是否可以一个完整的demo，能看到效果

G6 Version:
Platform:
Mini Showcase(like screenshots):
CodePen Link:

多少数据量呢，能否提供一份测试的数据？

多少数据量呢，能否提供一份测试的数据？
几千个节点时，拖拽画布 和 minimap 都会非常卡顿，很不友好。

authors: LLLuojp baizn yangjialing


text:
G6中的树，数据过多的时候会出现位置错乱的问题

Describe the bug

如图所示，单有线段文字没有了
Your Example Website or App
https://codesandbox.io/s/vibrant-chebyshev-1in71?file=/index.html
Steps to Reproduce the Bug or Issue
1.点击最后一个节点，会在后面追加数据。然后就会出现错乱的问题
Expected behavior
不出现这种错乱
Screenshots or Videos

Platform
Windows11
Chrome

Version: [97.0.4692.99]

Additional context
No response

出现这种情况一般是节点存在不合法 id，

节点 id 存在重复
节点 id 缺失
节点 id 不是 string

看了下你发的 demo，把 graph.layout() 去掉即可，updateChildren 内部会调用重新布局。

把你下发的demo，把会的layout()去掉，更新Child内部重新结构。

去掉graph.layout() 还是会出现，你重新刷新页面看看。一开始我也并未添加graph.layout()  但是因为出现错乱，所以才选择加上graph.layout() 。

遇到类似的问题，子节点的数量超过一定值好像就会出现，请问该如何解决？

应该是布局的计算时间和动画产生了冲突，动画开始的时候实际上大数据量的布局还没有计算完成。建议在展开大量节点的时候，把动画关掉：graph.set('animate', false)，展开完成后再开启

感谢，关掉动画就可以了！

尊敬的用户，您好。我们很重视您的 issue，但由于长时间没有答复，我们暂时认为这个问题已经解决。如果还有任何问题，请随时根据 issue 模版再开启新的 issue。

authors: Yanyan-Wang allny frontend-afei limit00


text:
如何重画refresh?

问题描述
graph.refresh()
graph.refreshPositions()
graph.render()
graph.layout()
都不可以。难道要再从新load data才能重画？
重现链接
https://codesandbox.io/s/g6-forked-mmyxcy?file=/index.js
重现步骤
如上
预期行为
如上
平台

操作系统: [ Windows.]
网页浏览器: [ Firefox]
G6 版本: [4.8.15. ]

屏幕截图或视频（可选）
No response
补充说明（可选）
No response

什么情况下需要 refresh ？

什么情况下需要 refresh ？

有时候当你做了太多的拖拽，变动，纯粹想重新来过

graph.layout() 就可以

graph.layout()

不能，可能是因为fx ,fy已更改了
refreshDragedNodePosition(e: IG6GraphEvent) {
const nodes = this.linkViewInstance?.findAllByState('node', 'selected');
if (nodes && nodes.length > 0) {
nodes.forEach(n => {
const model = n.get("model");
model.fx = model.x;
model.fy = model.y;
})
}
const model = e.item?.get("model");
model.fx = e.x;
model.fy = e.y;
}

对不起，是我搞错了。graph.render()是可以的

graph.layout 不影响有 fx fy 的节点，还是会被固定。你是想要重置的时候固定节点被恢复不固定状态？那就把对应数据中的 fx fy 去掉即可


text:
Demo link is broken

https://choc-ui.tech/docs/packages/pill-pity

@ummahusla The domain was moved to choc-ui.com


text:
BUG: Improvement in the contact page in Css.

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
I think if the contact section had a fixed alignment in every text item and by adding max-width, border-radius so it would have better UI.
Please Assign me this issue with the label of GSSOC.
screenshots:
before:

After:

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

Assigned!
Make sure to attach before & after screenshots in your PR and include the issue number.
Also, please star the repo before working on it. Happy open-source contributing!


text:
Proper navigation for quick links in the footer of the Home page and Book recommendation page.

Related Issue
Fixes:  #2777
Description
Added proper navigation for quick links in the footer of a login page.
Type of PR

[X] Bug fix

Screenshots / videos (if applicable)
https://drive.google.com/file/d/1oL0Wk7cLc-YUEuccX38EJwSrsS6oPPGw/view?usp=drive_link
Checklist:

[X] I have made this change from my own.
[X] My code follows the style guidelines of this project.
[X] I have performed a self-review of my own code.
[X] My changes generate no new warnings.
[X] I have tested the changes thoroughly before submitting this pull request.
[X] I have provided relevant issue numbers and screenshots after making the changes.

@huamanraj @anuragverma108
Please review this PR.
Thank you.


text:
Tony/31_survey_3

Pull Request Details
What issue does this PR address

Changed the button type for Survey 3.

Link to associated issue: #31

Checklist
Complete the check-list below to ensure your branch is ready for PR.
Flutter Style Guide: https://survivor.togaware.com/gnulinux/flutter-style.html

[ ] Screenshots included in linked issue
[x] Changes adhere to the team style and coding guideline
[x] No confidential information
[x] No duplicated content
[x] No lint check errors related to your changes (make prep or flutter analyze lib)
[ ] Pre-exisiting lint errors noted: [HERE]
[x] Tested on at least one device

[ ] Android Phone
[ ] Android Emulator
[ ] Chrome on Android
[x] Chrome
[ ] iOS
[ ] Linux
[x] MacOS
[ ] Windows

[x] Added 2 reviewers (or 1 for private repositories then they add another)

Finalising
Once PR discussion is complete and 2 reviewers have approved:

[ ] Merge dev into the branch
[ ] Resolve any conflicts
[ ] Add one line summary into CHANGELOG.md
[ ] Bump appropriate version number in pubspec.yaml
[ ] Push to git repository and review
[ ] Merge PR into dev

The file name confirmation dialogue function has been moved to another issue (#33), and was submitted in another PR (#34 ).

That fixed it. Thanks.

Let's merge this one now. Thanks

authors: gjwgit tonypioneer


text:
IndexError on calling ppo.PPOTrainer(config, env = SELECT_ENV) 01-Application-Cart-Pole.ipynb

I follow the suggestion ,
config["framework"] = "torch"
config["num_gpus"] = 0.001                    # can't work
config["num_gpus_per_worker"] = (1 - 0.001) / 4
but I get the error,
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-33-c1627876193e> in <module>
----> 1 agent = ppo.PPOTrainer(config, env=SELECT_ENV)
      2
      3 results = []
      4 episode_data = []
      5 episode_json = []

~/anaconda3/envs/anyscale-academy/lib/python3.7/site-packages/ray/rllib/agents/trainer_template.py in __init__(self, config, env, logger_creator)
    121
    122         def __init__(self, config=None, env=None, logger_creator=None):
--> 123             Trainer.__init__(self, config, env, logger_creator)
    124
    125         def _init(self, config: TrainerConfigDict,

~/anaconda3/envs/anyscale-academy/lib/python3.7/site-packages/ray/rllib/agents/trainer.py in __init__(self, config, env, logger_creator)
    546             logger_creator = default_logger_creator
    547
--> 548         super().__init__(config, logger_creator)
    549
    550     @classmethod

~/anaconda3/envs/anyscale-academy/lib/python3.7/site-packages/ray/tune/trainable.py in __init__(self, config, logger_creator)
     96
     97         start_time = time.time()
---> 98         self.setup(copy.deepcopy(self.config))
     99         setup_time = time.time() - start_time
    100         if setup_time > SETUP_TIME_THRESHOLD:

~/anaconda3/envs/anyscale-academy/lib/python3.7/site-packages/ray/rllib/agents/trainer.py in setup(self, config)
    707
    708         with get_scope():
--> 709             self._init(self.config, self.env_creator)
    710
    711             # Evaluation setup.

~/anaconda3/envs/anyscale-academy/lib/python3.7/site-packages/ray/rllib/agents/trainer_template.py in _init(self, config, env_creator)
    153                 policy_class=self._policy_class,
    154                 config=config,
--> 155                 num_workers=self.config["num_workers"])
    156             self.execution_plan = execution_plan
    157             self.train_exec_impl = execution_plan(self.workers, config)

~/anaconda3/envs/anyscale-academy/lib/python3.7/site-packages/ray/rllib/agents/trainer.py in _make_workers(self, env_creator, validate_env, policy_class, config, num_workers)
    795             trainer_config=config,
    796             num_workers=num_workers,
--> 797             logdir=self.logdir)
    798
    799     @DeveloperAPI

~/anaconda3/envs/anyscale-academy/lib/python3.7/site-packages/ray/rllib/evaluation/worker_set.py in __init__(self, env_creator, validate_env, policy_class, trainer_config, num_workers, logdir, _setup)
     98                 num_workers=num_workers,
     99                 config=self._local_config,
--> 100                 spaces=spaces,
    101             )
    102

~/anaconda3/envs/anyscale-academy/lib/python3.7/site-packages/ray/rllib/evaluation/worker_set.py in _make_worker(self, cls, env_creator, validate_env, policy_cls, worker_index, num_workers, config, spaces)
    405             fake_sampler=config["fake_sampler"],
    406             extra_python_environs=extra_python_environs,
--> 407             spaces=spaces,
    408         )
    409

~/anaconda3/envs/anyscale-academy/lib/python3.7/site-packages/ray/rllib/evaluation/rollout_worker.py in __init__(self, env_creator, validate_env, policy_spec, policy_mapping_fn, policies_to_train, tf_session_creator, rollout_fragment_length, count_steps_by, batch_mode, episode_horizon, preprocessor_pref, sample_async, compress_observations, num_envs, observation_fn, observation_filter, clip_rewards, clip_actions, env_config, model_config, policy_config, worker_index, num_workers, record_env, log_dir, log_level, callbacks, input_creator, input_evaluation, output_creator, remote_worker_envs, remote_env_batch_wait_ms, soft_horizon, no_done_at_end, seed, extra_python_environs, fake_sampler, spaces, policy, monitor_path)
    535         else:
    536             self.policy_map, self.preprocessors = self._build_policy_map(
--> 537                 policy_dict, policy_config)
    538
    539         # Update Policy's view requirements from Model, only if Policy directly

~/anaconda3/envs/anyscale-academy/lib/python3.7/site-packages/ray/rllib/evaluation/rollout_worker.py in _build_policy_map(self, policy_dict, policy_config)
   1194             # non-tf.
   1195             else:
-> 1196                 policy_map[name] = cls(obs_space, act_space, merged_conf)
   1197
   1198         if self.worker_index == 0:

~/anaconda3/envs/anyscale-academy/lib/python3.7/site-packages/ray/rllib/policy/policy_template.py in __init__(self, obs_space, action_space, config)
    265                 action_distribution_fn=action_distribution_fn,
    266                 max_seq_len=config["model"]["max_seq_len"],
--> 267                 get_batch_divisibility_req=get_batch_divisibility_req,
    268             )
    269

~/anaconda3/envs/anyscale-academy/lib/python3.7/site-packages/ray/rllib/policy/torch_policy.py in __init__(self, observation_space, action_space, config, model, loss, action_distribution_class, action_sampler_fn, action_distribution_fn, max_seq_len, get_batch_divisibility_req)
    153                 for i, id_ in enumerate(gpu_ids) if i < config["num_gpus"]
    154             ]
--> 155             self.device = self.devices[0]
    156             ids = [
    157                 id_ for i, id_ in enumerate(gpu_ids) if i < config["num_gpus"]

IndexError: list index out of range

And after I debug, i found that  ray/rllib/policy/torch_policy.py#L150 ray.get_gpu_ids()will return a empty list, how can i use gpu for training?

I use num_gpus_per_worker uncorrectly, and I use tf and tfe, it works well, but torch will return list index out of range. And I downgraded ray from 1.4 to 0.8.7, and now it works well.It is a bug for ray 1.4?

repo: anyscale/academy


text:
Update go openapi importer to match Python importer

Expected behaviour
Go importer handles query params consistently with Python importer.
Go importer handles multiple return types consistently with Python importer.
Steps to reproduce the behaviour
Import the same OpenAPI spec with both Go and Python, the results will be different in certain aspects.

Implementing openapi-3.0 importing at the same time.

Done

repo: anz-bank/sysl


text:
Use reserved account keys list to restrict tx write locks

Problem
The transaction scheduler and the runtime both demote transaction write locks for builtin programs and sysvars using a static list of reserved IDs. This change replaces the currently used static lists of builtin program and sysvar IDs with a dynamic set of reserved account keys that can be updated at epoch boundaries with feature gates (added here: https://github.com/anza-xyz/agave/pull/84)
Summary of Changes

Bank now has a field for tracking reserved account keys and this field is updated on epoch boundaries according to new feature activations
Many Transaction and Message constructors and functions now require a reserved_account_keys argument to properly assess if a transaction account can be write locked.

The change is split into two commits so that the functional changes aren't drowned in test updates to plumb the new reserved account keys argument through.
Breaking Changes

solana_sdk::transaction::SanitizedTransaction::try_from_legacy_transaction has a new reserved_account_keys argument
solana_sdk::transaction::SanitizedTransaction::try_create has a new reserved_account_keys argument
solana_sdk::transaction::SanitizedTransaction::try_new has a new reserved_account_keys argument
solana_program::message::Message::is_writable has a new reserved_account_keys argument
solana_program::message::Message::get_account_keys_by_lock_type has a new reserved_account_keys argument
solana_program::message::LegacyMessage::new has a new reserved_account_keys argument
solana_program::message::SanitizedMessage::try_new has a new reserved_account_keys argument
solana_program::message::LoadedMessage::new has a new reserved_account_keys argument
solana_program::message::LoadedMessage::new_borrowed has a new reserved_account_keys argument

Feature Gate Issue: https://github.com/anza-xyz/agave/issues/540

Seems i'm coming in late in the process here; what's the reason we are taking this path of making these consensus breaking? It seems the Anza's client could simply choose to filter such transactions out early without adding complexity to the protocol.

@apfitzge you're right that filtering could happen instead and that's what firedancer is planning to do
Here's my main reasoning:

Demoting write locks is an existing mechanism that we are kind of stuck with for now but aim to deprecate in the future. Since this mechanism is already presumed to be depended on by downstream clients and since there are already a handful of active builtin programs and upcoming sysvars that we want to prevent write locks for, this approach solves the issue in a relatively simple way without breaking any downstream clients.

The ideal way to handle this is to fail offending transactions but have them land on chain with an error explaining which reserved account was write locked unsuccessfully so that clients can see and fix the error. That change is arguably much more complex than extending the write lock demotion mechanism and will also require comms to migrate users.

Filtering in the scheduler is simple but similarly requires users to migrate. But the key point is that it doesn't allow us to communicate actionable errors back to users because the transactions are just dropped. We could duplicate the filtering logic in RPC transaction APIs but even that's not really enough because anyone not using those APIs would still be confusingly broken.

The CI failure looks legit.
In the meantime, talk to me more about the breaking changes in solana_program wrt the backward compatibility policy. I have some thoughts, but want to hear what you're thinking.

In the meantime, talk to me more about the breaking changes in solana_program wrt the backward compatibility policy. I have some thoughts, but want to hear what you're thinking.

Well, first of all I think it's unfortunate that the most convenient place for the sanitized types has always been solana-program which is subject to the backwards compatibility policy. I have viewed these as primarily internal types that were exposed in client sdk's incidentally. I think we could mirror the types in something like solana-runtime-transaction and then avoid needing to break the api in the client sdks.
On the other hand, since master has moved to 2.0, it's ok to introduce breaking changes here. I think the most unfortunate API change is the message is_writable API since it's the only change to a non-sanitized type and probably most likely to be used by end users. I could revert that breaking change since the only time we call that API in consensus sensitive path is inside sanitized::LegacyMessage which could handle the reserved keys at the call-site instead.

Codecov Report
Attention: Patch coverage is 90.51724% with 22 lines in your changes are missing coverage. Please review.

Project coverage is 81.8%. Comparing base (de8e9e6) to head (9503a62).

Additional details and impacted files
@@           Coverage Diff            @@
##           master     #541    +/-   ##
========================================
  Coverage    81.8%    81.8%
========================================
  Files         851      851
  Lines      230224   230385   +161
========================================
+ Hits       188527   188670   +143
- Misses      41697    41715    +18

Sorry about the delay; I was ooo for a few days. Thanks for your api/backward compatibility thoughts; echoes my thinking exactly.

I think the most unfortunate API change is the message is_writable API since it's the only change to a non-sanitized type and probably most likely to be used by end users. I could revert that breaking change since the only time we call that API in consensus sensitive path is inside sanitized::LegacyMessage which could handle the reserved keys at the call-site instead.

Yes, I agree. I think it would be best to preserve Message::is_writable for now. I haven't looked carefully at the approach you proposed to tell which is better, but an alternative would be to add a new method that takes reserved_account_keys and deprecate the existing method.

I think this looks good, aside from the Message::is_writable breakage.

Reverted the breakage here: https://github.com/anza-xyz/agave/pull/541/commits/a4771a96325a91bcca37d79cfbdb0320f8423145

However, the first commit is a bear; I would have more confidence in my review if it were broken up a bit. For instance, the bank.rs changes that add and update the Bank::reserved_account_keys field should probably be a separate commit.

Broken up here: https://github.com/anza-xyz/agave/pull/769

And if any of the api interface changes can be separated from each other (and built on top of each other), that would be a natural progression.

Open to ideas but that first commit now basically only has two functional changes (applying the reserved account keys set in LoadedMessage and LegacyMessage) and the rest of the changes is plumbing the keys to every place we construct one of those messages. I understand that's a lot of code but I think functionally it's relatively straightforward now that the banking changes are pulled out.

authors: CriesofCarrots apfitzge codecov-commenter jstarry

repo: anza-xyz/agave


text:
Netrw integration

Hi, thanks for the plugin!
Is it possible to show netrw buffer too?
Currently its not showing and surprise me when I do :bp the buffer switch to netrw buffer, not the buffer on tab list.
Thanks.

Netrw is problematic because each directory browser uses two buffers – the listed one you navigate to, which is empty, and then another unlisted buffer, where the directory contents are actually rendered. When you try to switch to the listed buffer it catches you and switches to the unlisted one instead. It’s… weird. Because of reasons – see #25 and #31 for details.
Given that this is the third issue about Netrw support (maybe no surprise since it ships with Vim), I’m now thinking I ought that if I can find a hack to support it anyway, I ought to. I’ll see if I can figure something out.

Glad you enjoy it ☹
Netrw is problematic because each directory browser uses two buffers – the listed one you navigate to, which is empty, and then another unlisted buffer, where the directory contents are actually rendered. When you try to switch to the listed buffer it catches you and switches to the unlisted one instead. It’s… weird. Because of reasons – see #25 and #31 for details.
Given that this is the third issue about Netrw support (maybe no surprise since it ships with Vim), I’m now thinking I ought that if I can find a hack to support it anyway, I ought to. I’ll see if I can figure something out.

Glad you enjoy it 😊
Netrw is problematic because each directory browser uses two buffers – the listed one you navigate to, which is empty, and then another unlisted buffer, where the directory contents are actually rendered. When you try to switch to the listed buffer it catches you and switches to the unlisted one instead. It’s… weird. Because of reasons – see #25 and #31 for details.
Given that this is the third issue about Netrw support (maybe no surprise since it ships with Vim), I’m now thinking I ought that if I can find a hack to support it anyway, I ought to. I’ll see if I can figure something out.

(Sorry, that wow the wrong smiley the first time around 😧)

FWIW @ap's solution in https://github.com/ap/vim-buftabline/issues/25#issuecomment-255796784 works great, you just add:
Plug 'ap/vim-readdir' " Assuming you use vim-plug.

let g:loaded_netrw = 1
let g:loaded_netrwPlugin = 1 " Don't use the built-in file browser (use vim-readdir instead).

And you get a (IMO) much nicer file browser, o and t to open files is everything I've needed so far.
The one downside is that it breaks gx to open URLs in the browser, so you'd need to use another plugin that provides that functionality (or write a little function).

authors: ap gibfahn rawaludin

repo: ap/vim-buftabline


text:
Investigate MCM/CAM alternates

Openshift Virtalization?
CrossPlane?

Update to CP4WAIOps IM https://github.com/IBM/cp4waiops-samples/blob/main/infrastructure-automation/infrastructureAutomation.sh

authors: nickmerrett rampadc

repo: apac-mcm-aiops-asset/mcm-aiops-gitops


text:
Simplify Maven Pom

@EdColeman @mjwall and I were getting frustrated with our Maven build lifecycle the other day and thought it might be nice to simplify the pom down so "mvn clean verify" does the minimum amount of work.
Simplifiying the pom would help with maintainability for the project.  I find myself always running "mvn clean verify -Dspotbugs.skip -DskipTests" which is fine but can still take a while.  For newer developers unfamiliar with Maven appending an absurd amount of "skip" options can be a burden as well.

I think it is a mistake to characterize this as a simplification. It would only be simpler for use cases which shortcut important checks. It wouldn't be simpler for the use case of actually running our verification checks. I don't think newer developers unfamiliar with Maven should be appending any skip options. Skipping checks should require some knowledge of what you are doing. The default should not be to skip quality assurance/verification plugins.
The whole point of running through to the verify phase is to verify the build... that means running all the verification checks. Users should not be skipping these verification checks unless they know what they are doing. I do not think the default run of verify phase should be to run fewer verification checks.
We frequently have developers checking in code which fails verification steps, because they've gotten into the practice of skipping these checks (a bad habit, I think). Skipping verification plugins by default during the verify phase would encourage more of that stuff to fall through, increasing the likelihood of reduced code quality until another developer steps in and closes the gap.
We've already added a -PskipQA profile, which was not in favor of. Why is that profile insufficient?

We've already added a -PskipQA profile, which was not in favor of. Why is that profile insufficient?

I am not sure.  I think that only works running package?

Profiles are active for the entire build lifecycle. The contents of the profile may only affect a portion of it, though. In this case, the skipQA profile includes mostly stuff that affects plugins after the package phase.

authors: ctubbsii milleruntime

repo: apache/accumulo


text:
Flaky test: SimpleTimerTest

Test name(s)

org.apache.accumulo.server.util.time.SimpleTimerTest.testFailure

Describe the failure observed
Stacktrace
java.lang.AssertionError
	at org.apache.accumulo.server.util.time.SimpleTimerTest.testFailure(SimpleTimerTest.java:98)

Standard Output
2020-10-29T03:28:54,071 [time.SimpleTimer] WARN : Asked to create SimpleTimer with thread pool size 2, existing instance has 1

Testing Environment:

ASF Jenkins
Commit ea5fa7d1da90da9dfe1128c9561022d310102777

Executing Maven:  -B -f /home/jenkins/workspace/Accumulo/main/pom.xml -V -e -ntp clean verify -Dstyle.color=always -Dfailsafe.rerunFailingTestsCount=5
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/asfpackages/maven/apache-maven-3.6.3
Java version: 11.0.6, vendor: Oracle Corporation, runtime: /usr/local/asfpackages/java/jdk-11.0.6
Default locale: en_US, platform encoding: ISO-8859-1
OS name: "linux", version: "4.15.0-74-generic", arch: "amd64", family: "unix"

What have you tried already?
I re-ran the test and it usually passes.
Additional context
There's a good chance this is just a flaky test, because of resource contention on the server. The warning seems related to the testSingleton test case, and not the testFailure test case that failed.
One thing that might be possible to do to is to wrap the assert statement in a loop, with a delay of PAD, until it passes, and then add a JUnit timeout to the test of some reasonable length (5 seconds?). That way, if the pass condition isn't met immediately, the test won't fail, as long as it is met within the timeout period.

I am looking into implementing the fix you suggested and am running into the issue of looping over an assert statement. From my understanding it is not possible to stop the loop based on the condition that an assert statement has passed(or failed for that matter). In other words, the assert statement would be called continuously, within the loop, until an added JUnit timeout occurs. Apparently there are ways to add "rules" to tests which could add the ability to loop until a test passes, but I'm not sure if this is something we want to use (example).

@DomGarguilo Thanks for your interest in working on this issue. I have assigned this ticket to you in response to that interest. You are correct that you can't have the assert statement execute repeatedly in a loop. However, what you can do is do a simple if check inside the loop and similar checks inside the loop. If the loop is an infinite loop, the only way the test won't time out is if the conditions are met. For extra measure, you can add additional assert statements after the loop. I don't think we need to resort to any complex JUnit features for this kind of thing.
Here's an example of us doing a similar kind of check in an existing test: https://github.com/apache/accumulo/blob/cccac86255cd2d0ecd49e791162ca5cdf07512b6/server/base/src/test/java/org/apache/accumulo/server/master/balancer/DefaultLoadBalancerTest.java#L198-L209

authors: DomGarguilo ctubbsii


text:
Tablet server may unnecessarily make zookeeper calls to get the session id.

In the tablet server method getTabletSession() it calls ServiceLock.getSessionId() which makes multiple calls to zookeeper.  Within the tablet server process the session id should be invariant, so going to zookeeper each time adds cost to things in the tserver that call this.
Also its not clear that this is correct.  In the case where tablet server has lost its lock and has not terminated yet when it calls this method it will get the other tserver process session id.
There is a  ServiceLock.getLockID() that calls zooKeeper.getSessionId(). This makes sense to use in the process that acquired the lock, but not outside.  Maybe TabletServer.getTabletSession() could use ServiceLock.getLockID() to get the session id or cache the session id.
Noticed this while working on #3625.  Not completely sure its a problem, opening issue for follow up.

ZooKeeper.getSessionId javadoc:
public long getSessionId()
The session id for this ZooKeeper client instance. The value returned is not valid until the client connects to a server and may change after a re-connect. This method is NOT thread safe
Returns:
current session id

It seems that calling ZooKeeper.getSessionId may give the wrong answer if the ZooKeeper client reconnects to the server.  It might be best to get the SessionId right after creating the ServiceLock and use that for the life of the TabletServer.

Looks like this was closed with #3638

authors: ctubbsii dlmarion keith-turner


text:
Modify stop-here behavior to use accumulo-service

Fixes a bug in stop-here where accumulo-cluster would shut down other parts of the cluster.
Modifies the behavior to only stop local processes.

Closing in favor of #5174


text:
Updated README.md

Formatted README.md. Added missing space(" ") in a sentence.

Hey the whitespace fix you want to push also has a typo right after it where it says "download the download an official release" so if you can go ahead and fix that too that would be great

Updated!

@Huzaiifaaaa can you squash these commits down to 1 commit? thanks

authors: Huzaiifaaaa dehowef

repo: apache/age


text:
[AMBARI-24837] Make Grafana connection attempts and retry delay configurable

What changes were proposed in this pull request?
Make the number of attempts and length of the delay for Metrics Grafana HTTP requests configurable.  Shorter retry delay could be useful to reduce overall startup time.  The default values for number of attempts and retry period are kept for backwards compatibility.
Also, log "Connection failed. Next retry in ... seconds" after the failure, before waiting for next attempt, instead of after sleep.
https://issues.apache.org/jira/browse/AMBARI-24837
How was this patch tested?
Tested blueprint deployment with various config values (absent, valid, invalid) with simulated connection failure.
Example with custom number of attempts (n=3) and retry period (t=5 seconds):
2018-10-26 21:43:29,124 - Pid file doesn't exist after starting of the component.
2018-10-26 21:43:29,148 - Connecting (GET) to c7401.ambari.apache.org:3000/api/user
2018-10-26 21:43:29,156 - Connection to Grafana failed. Next retry in 5 seconds.
2018-10-26 21:43:34,159 - Connecting (GET) to c7401.ambari.apache.org:3000/api/user
2018-10-26 21:43:34,160 - Connection to Grafana failed. Next retry in 5 seconds.
2018-10-26 21:43:39,164 - Connecting (GET) to c7401.ambari.apache.org:3000/api/user
2018-10-26 21:43:39,173 - Skipping stack-select on AMBARI_METRICS because it does not exist in the stack-select package structure.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/4413/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/4417/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/4418/
Test PASSed.

Is this change going to the right branch?

@swagle Yes.  PR for branch-2.7 will follow after this one is approved.

@g-boros please review

authors: adoroszlai asfgit swagle

repo: apache/ambari


text:
AMBARI-25929: Add ranger 2.4 support in ambari 2.8 bigtop stacks

What changes were proposed in this pull request?
Main logic and changes of the commit:
Desc:
Ambari Ranger adaptation
Ambari 2.8 uses bigtopstack 3.2.0, which corresponds to apache bigtop version 3.2.0
1.All components lack corresponding ranger property files. Therefore, all ranger-related configuration files for all components are added.
2.There is a lack of ranger integration, and here we integrate the ranger service. This ranger service is ported from hdp3.1.5's ranger service. The difference is that some initialization content in the install method is referenced to the /usr/bigtop/current directory, but this directory will only be linked with the "bigtop-select distro-select set component version" command in the post-hook after the install method is completed. Therefore, the initialization logic in the install method is moved to the configure method, and a mark file is set. Once the initialization is completed, a mark file is generated, and subsequent initialization will not be performed if the mark file exists.

Bug fix for ranger advisor not working
After integrating Ranger, most of the component advisors were not functioning properly due to the presence of ambari/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/stack_advisor.py in the 2.8.0 branch.
The working logic of stack_advisor is such that ambari/ambari-server/src/main/resources/scripts/stack_advisor.py, as the starting point, loads all advisors, including stack_advisor.py and service_advisor.py under ambari/ambari-server/src/main/resources/stacks directory.
service_advisor.py loads all service_advisor.py under each component directory and retrieves the recommended configuration, such as ambari/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/service_advisor.py, which contains all recommended HDFS configurations.
However, in the 2.8.0 branch, ambari/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/stack_advisor.py hardcodes to only return a few service advisors, causing all other component service advisors to not work properly.
Furthermore, ambari/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/stack_advisor.py is redundant, and the configurations are scattered in each service advisor. Therefore, removing this file fixed the issue. The fix can be found in this PR: https://github.com/apache/ambari/pull/3677.

How was this patch tested?
manual test
before enable kerberos all compoent works smoonthly

after enable kerberos all compoent works smoonthly

Please review Ambari Contributing Guide before opening a pull request.

/recheck

@vishalsuvagia do you think this is good to go?

@virajjasani @vishalsuvagia
https://issues.apache.org/jira/browse/AMBARI-25929
Adding support for Ranger in Ambari is a rather complicated change. It involves packaging Ranger in Apache Bigtop, integration testing of Ambari Ranger service itself, integration with Ambari Infra, and fixing bugs in Ambari Advisor, since installing Ambari Ranger requires Advisor to provide a lot of recommended configurations. Therefore, I have organized all related pull requests (PRs), and the progress of these PRs can be found in the description of this issue.
Currently, all Ranger-related PRs on the Bigtop side have been reviewed and merged. As for the three bugs in Apache Ranger, they have been patched and placed in the resource package of Bigtop because there is currently no one reviewing them in the Apache Ranger community. Therefore, only the Ambari-related PRs need to be reviewed for Ranger support.
Thus, to support Ranger, we need to review and merge the Advisor-related PRs and the PRs for Ambari Infra integration first, and then review the PR for Ranger support. During my testing, I have locally reviewed and merged all the PRs mentioned in the issue description and conducted rigorous testing, and so far, no issues have been found.

@JiaLiangC thank you for your efforts! This is fantastic!

As of now, we need this to be merged first correct? https://github.com/apache/ambari/pull/3696

As of now, we need this to be merged first correct? #3696

I asked the community's PMC kevinw66, and currently, the Ranger integration will not be included in the 2.8.0 release but will be released in subsequent versions after the 2.8.0 release.
First, we need to review and merge several Advisor-related PRs, such as https://github.com/apache/ambari/pull/3677, because Ranger relies heavily on the configuration provided by Advisor. Otherwise, users will need to manually configure a large number of settings to make the Ranger plugin of each component work properly.
Secondly, we need to review and merge the PR for Ambari Infra because Ranger depends on the ambari-infra-client to perform some automation settings in Solr, such as creating a Ranger collection in Solr.

@virajjasani
since Advisor-related PRs already merged,  Could you kindly help review these ranger related PR, please?
https://github.com/apache/ambari-infra/pull/48 (infra solr upgrade)
https://github.com/apache/ambari/pull/3696 (ambari infra support)

recent commit caused merge conflict for this PR

@virajjasani conflicts resolved

@JiaLiangC @timyuer  @virajjasani
Should we move Ranger 2.4 to Bigtop 3.3.0 stack instead of 3.2.0?
Bigtop 3.2.0 don't include ranger.

@smallyao
Thank you very much for your suggestion. You are right, https://issues.apache.org/jira/browse/BIGTOP-3909 is the release plan for Bigtop, and Ranger 2.4 will be supported in Bigtop 3.3. I will add a new directory under Bigtop stacks and move the Ranger service there. The downside is that Ambari releases are too slow, so it will be a long wait for users who want to use Ranger in the future.

@smallyao @virajjasani
already moved ranger2.4 service into bigtop 3.3.0 stacks, and updated  ranger support version in stack_features

log4j
It was my oversight. I checked the default configuration of Ranger 2.4 and found that it was using the logback configuration. I will fix this and test it.

@smallyao
The logback issue has been fixed, and I have also moved the Ranger 2.4 service to the Bigtop 3.2.0 directory for installation testing. The logback configuration is now working correctly.

@virajjasani
All the issues discovered in Ranger have been fixed. Can you please help review this PR?

Thanks @JiaLiangC, seems like we are ready to go.
@smallyao are you fine with the latest changes?

Thanks @JiaLiangC, seems like we are ready to go.
@smallyao are you fine with the latest changes?

Would it be better if we could finish other services support in bigtop stack 3.3.0 before continuing this work?

@smallyao @virajjasani
I agree, as Ranger now supports moving to the directory of Bigtop stack 3.3, it is inconvenient to test. This PR can indeed wait until Ambari supports testing with Bigtop stack 3.3.

sounds good, thanks

您好，这个能否合并到主分支里。

Hello, I want to use Ranger on Ambari 2.8.0.
Whether it can be used directly
Use this directly "https://github.com/JiaLiangC/ambari/tree/AMBARI-25929"
Build Ambari

@feixue
Ambari 2.8.0 supports Ranger steps:

Use the Ambari master code and merge the PR https://github.com/apache/ambari/pull/3697.
Move the directory ambari/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER to ambari/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/.
Modify ambari/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/properties/stack_features.json and replace all occurrences of "3.3.0" with "3.2.0".

Packaging:
Use the Bigtop master branch and directly package the Ranger component.

@feixue Ambari 2.8.0 支持 Ranger 步骤：

使用 Ambari 主代码并合并 PR AMBARI-25929：在 ambari bigtop 堆栈中添加 ranger 2.4 支持 #3697。
将目录移动ambari/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER到ambari/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/.
修改ambari/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/properties/stack_features.json所有出现的“3.3.0”并将其替换为“3.2.0”。

打包： 使用Bigtop master分支，直接打包Ranger组件。

Hello, Ambari didn't quite understand that step. Do you build Ambari based on this Master branch after incorporating PR and so on using the Ambari Master code?
How about throwing the ranger part into the service of ambari 2.8.0?

Hi @JiaLiangC
Could you contiue this work based on #3718 ？

Hi @JiaLiangC Could you continue this work based on #3718 ？

ok, i will work on it.

Hi team,
I successfully built Ranger from the Ambari trunk branch and followed the steps outlined below:
1.Moved the directory ambari/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER to ambari/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/.
2.Modified ambari/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/properties/stack_features.json by replacing all instances of "3.3.0" with "3.2.0".
I successfully added the Ranger service to Bigtop. However, I encountered an issue when attempting to enable HDFS plugins within Ranger. The changes are not taking effect in Ranger. HDFS plugins are not enabling in Ranger. As a result, I'm wondering if there are any specific configurations that need to be added or modified to address this issue. Additionally, I'm curious if there are any Git merges that need to be performed in order to successfully build the Ranger service.
Can anyone please help on this

@arjun-guptha
restart hdfs and try again

do you checked amabri 2.8 with ranger 2.4 on el8 or el7?

@JiaLiangC  / @arjun-guptha ,
I am also trying to integrate ranger with ambari 2.8 .
can you please guide me with steps either to use Apache Ambari or https://github.com/JiaLiangC/ambari/tree/AMBARI-25929
meanwhile i tried copying the RANGER service from https://github.com/JiaLiangC/ambari/tree/AMBARI-25929/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER
and placed it directly on installed ambari 2.8.0 ,i was able to see ranger in add service but then it was not able to identify the rpm package build with bigtop_3.2.1 .
as it was expecting package name to be ranger_3_2_1-admin but ranger rpm build with bigtop was showing ranger-admin .
so i changed package name using rpmbuild ,after this i was able to install ranger using Ambari 2.8 ,but it was not configuring plugins properly ,so finall not working .
can you please guide me how to proceed :
which  Ambari to build
Do i need to build ranger rpm again using Apache bigtop 3.2.1 ?
Thanks in Advance .

authors: JiaLiangC aghazeh amitkr146 arjun-guptha feixue smallyao virajjasani vishalsuvagia


text:
feat: add logic for ApisixRoute v2beta1

Please answer these questions before submitting a pull request

Why submit this pull request?

[ ] Bugfix

[x] New feature provided

[ ] Improve performance

[ ] Backport patches

Related issues
#116  #396

Bugfix

Description

How to fix?

New feature or improvement

Describe the details and related test reports.

Backport patches

Why need to backport?

Source branch

Related commits and pull requests

Target branch

Codecov Report

Merging #576 (5a86c0f) into master (4b16e28) will decrease coverage by 1.67%.
The diff coverage is 2.66%.

@@            Coverage Diff             @@
##           master     #576      +/-   ##
==========================================
- Coverage   35.03%   33.35%   -1.68%
==========================================
  Files          54       54
  Lines        4556     4761     +205
==========================================
- Hits         1596     1588       -8
- Misses       2742     2952     +210
- Partials      218      221       +3

Impacted Files
Coverage Δ

pkg/ingress/apisix_route.go
0.00% <0.00%> (ø)

pkg/ingress/controller.go
1.12% <0.00%> (-0.01%)
:arrow_down:

pkg/kube/translation/translator.go
45.88% <ø> (ø)

pkg/kube/translation/apisix_route.go
25.69% <0.67%> (-15.11%)
:arrow_down:

pkg/kube/translation/util.go
38.33% <10.00%> (-11.13%)
:arrow_down:

pkg/kube/translation/plugin.go
100.00% <100.00%> (ø)

pkg/apisix/route.go
33.08% <0.00%> (-2.21%)
:arrow_down:

pkg/apisix/cluster.go
23.38% <0.00%> (-1.80%)
:arrow_down:

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 4b16e28...5a86c0f. Read the comment docs.

authors: codecov-commenter gxthrj

repo: apache/apisix-ingress-controller


text:
chore: introduce a log package

This package doesn't referenced by other components now.

missing test case

I have added more and more test cases, now the coverage is 91.9%.


text:
request help: failed to receive RPC_HTTP_REQ_CALL: closed

Issue description
There will be exceptions from time to time :  failed to receive RPC_HTTP_REQ_CALL: closed .

What is the reason for this? How to solve?
Environment

Docker deployment;  An apisix-doker image built by myself based on centos7 + apisix ；
Upstream uses nacos;
Run a Java plugin;

open the java runner log for more information, here: https://github.com/apache/apisix-java-plugin-runner/blob/cbd3b3a6ad536df5d1ea71336c4a319a28c0622d/runner-core/src/main/resources/application.properties#L19
BTW, use text instead of images.

logging.level.root=DEBUG   is OPEN 。
errorinfo :
2022/02/16 09:59:42 [error] 47#47: *116549586 [lua] init.lua:689: phase_func(): failed to receive RPC_HTTP_REQ_CALL: closed, client: 172.20.255.28, server: _, request: "POST /byd-intergral/in
tergralRule/getIntergralRulePageList HTTP/1.1", host: "172.20.6.10:9080"2022/02/16 09:59:42 [warn] 47#47: *116549586 [lua] plugin.lua:722: run_plugin(): ext-plugin-pre-req exits with http status code 503, client: 172.20.255.28, server: _, request: "POST /byd-inte
rgral/intergralRule/getIntergralRulePageList HTTP/1.1", host: "172.20.6.10:9080"

我的运行环境是：
1、自己基于centos 和 apisix 2.11.0 构建的Docker镜像；
2、启动的时候 把java插件jar包 ，挂载到容器里面。
3、上游服务是基于nacos的微服务；
4、路由关联的服务，服务里面配置的插件是：ext-plugin-pre-req 。插件使用Java语言编写。
问题出现的时间点：
当我的上游服务重启后就会偶发的出现这个问题，然后我重启apisix 又能够正常访问；

You can keep an eye on whether the container has restarted or whether the java runner process has exited abnormally.
From the information you provided, it's hard for me to determine the problem.

repo: apache/apisix-java-plugin-runner


text:
bugfix: fix APISIX architecture image size distorted

Fixes: #581
Changes:
Remove width setting in customTheme.css

Screenshots of the change:
https://github.com/NGX-AI/apisix-website/blob/2424e3b009788cc46b24bf97f8fb65818272278c/website/src/css/customTheme.css#L62-L65

might want to update PR title to something like chore: or bug: to fix semantic pull req warning.

@1502shivam-singh updated

also cc @Baoyuantop to have a look

authors: 1502shivam-singh leslie-tsang liuxiran

repo: apache/apisix-website


text:
LogicalPlan COPY TO statement support

Is your feature request related to a problem or challenge?
I want to be able to use
Statement::Copy {
                table_name,
                columns,
                to,
                target,
                options,
                legacy_options,
                values
            }

in the logical plan, from SQLParser. It is mentioned in https://github.com/apache/arrow-datafusion/issues/5076 and https://github.com/apache/arrow-datafusion/issues/5130.
Describe the solution you'd like
Add a logical plan enum for this operator that supports the statement::copy fields.
Describe alternatives you've considered
NA
Additional context
NA

This is included in https://github.com/apache/arrow-datafusion/pull/6313

I plan a PR for this shortly

Proposed PR: https://github.com/apache/arrow-datafusion/pull/6355

authors: alamb metesynnada

repo: apache/arrow-datafusion


text:
minor: fix doctest that runs accidentally

Which issue does this PR close?

Closes #.
Fixes failing CI https://github.com/apache/arrow-datafusion/actions/runs/4685079004/jobs/8301949150
Probably broken by https://github.com/apache/arrow-datafusion/pull/5962
Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Thanks @yjshen  and @jackwener -- I think I probably broke this with https://github.com/apache/arrow-datafusion/pull/5962

authors: alamb yjshen


text:
Compare dictionary with non-dictionary arrays in comparison kernels

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

Comparison kernels currently only support comparison among non-dictionary arrays and dictionary arrays separately. But in many use cases, we cannot prevent dictionary array to be compared with non-dictionary array. We should extend comparison kernels functionalities.
Describe the solution you'd like

Describe alternatives you've considered

Additional context

Subtasks:

[ ] #2535

I think this is now complete?

Yea, I think so.

authors: tustvold viirya

repo: apache/arrow-rs


text:
[R] Improve error message when providing a mix of readr and Arrow options

I was trying to solve a user issue today and tried to run the following code:

df = tibble(x = c("a","b",  ""  , "d"))
write_tsv(df, "data.tsv")
open_dataset("data.tsv", format="tsv", skip_rows=1, schema=schema(x=string()), skip_empty_rows = TRUE) %>%
  collect()

which gives me the error

Error: Use either Arrow parse options or readr parse options, not both

which is somewhat obnoxious as I have literally no context provided to know which options are being referred to and what the possible options are.
Also, like, why can't we have a mix of both? This is a totally valid use-case.  I think both a code update and a more informative error message are needed here.
Reporter: Nicola Crane / @thisisnic
Note: This issue was originally created as ARROW-18236. Please see the migration documentation for further details.

Note: an improved error message has already been implemented for the CSV reading options, so this would just need something similar.
Here's the code which improves the messages for the CSV reading: https://github.com/apache/arrow/blob/b413ac4f2b6911af5e8241803277caccc43aa3c4/r/R/dataset-format.R#L440-L454

authors: asfimport thisisnic

repo: apache/arrow


text:
Need to find Top n elements from the set of elements

Describe the usage question you have. Please include as many useful details as  possible.
Need to use arrow for finding topK elements. I have a list of groups and counts corresponding to the same , i need to update the group count with less time complexity frequently and need to gather topN elements by group count . Is arrow array suitable for the same or should i use any other library. Need to implement the same in golang.
Component(s)
Go

Arrow would be perfectly suitable to do so, I just haven't implemented this in the compute library yet. It would make sense to do so though and it is indeed on my list of things to do, but I'd welcome any contributions if you take a look at the compute package.

Thank @zeroshade for your response . I would love to contribute in the compute package..

Awesome thanks! Feel free to file a PR / draft and ask for any help/assistance you need and I'll try to help out where I can!
It should automatically add me as a reviewer when you file it

authors: VEDANTDOKANIA zeroshade


text:
Reading user metadata from orc file

STOP! Are you reporting a bug, a possible bug, or requesting a
feature? If so, please report under the ARROW project on the ASF JIRA
server https://issues.apache.org/jira/browse/ARROW. This JIRA server
is free to use and open to the public, but you must create an account
if it is your first time.
Is there a way in py arrow to read user metadata from an orc file?
thanks
See our contribution guidelines for more information:
http://arrow.apache.org/docs/developers/contributing.html
We have GitHub issues available as a way for new contributors and
passers-by who are unfamiliar with Apache Software Foundation projects
to ask questions and interact with the project. Do not be surprised if
the first response is to open a JIRA issue or to write an e-mail to
one of the public mailing lists:

Development discussions: dev@arrow.apache.org (first subscribe by
sending an e-mail to dev-subscribe@arrow.apache.org).
User discussions: user@arrow.apache.org (first subscribe by
sending an e-mail to user-subscribe@arrow.apache.org).

Thank you!

Please ask questions on the mailing lists or open a JIRA issue if you've found a bug or want to request a feature.

authors: dattem wesm


text:
ARROW-16058: [Python] Address docstrings for Table class, methods, attributes and constructor

This PR adds docstring examples to:

pyarrow.Table class methods and attributes
pyarrow.table
to_pandas for _PandasConvertible
pyarrow.TableGroupBy class
pyarrow.concat_tables
pyarrow.concat_arrays

Ok, so it seems the error is triggered only when the Examples section is added to the docstring. Not sure why though.
@amol- I suggest keeping to_string method without an example and then this PR is ready for another round of review/merge.


text:
[website] Update Java 11 and Spark roadmap

R: @mwalenia

Preview URL
https://apache-beam-website-pull-requests.storage.googleapis.com/10819/index.html

LGTM, thanks! Merging

authors: iemejia mwalenia

repo: apache/beam


text:
[BEAM-14029] Add getter, setter for target maven repo

Adds a mechanism through which a user could change the automated expansion service Maven repo to target a different repository. Current target audience is developers performing Beam release validation who want to target the RC JARs for cross-language valdiation.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @lostluck @damccorm

Oof - I need to update that pr bot comment string to "failing or in progress" (and probably not mention it at all if they're still in progress?)

We should add guidance to using this to the https://beam.apache.org/blog/validate-beam-release/ page, as this won't be the last time users verify things using RC jars.
Yes it's a blog post. But that's where it is for now.

authors: damccorm jrmccluskey lostluck