The save_policy() function does not seem to work

import asyncio

from casbin import Enforcer
from casbin_async_sqlalchemy_adapter import Adapter

from sqlalchemy import Column, Integer, String
from sqlalchemy.ext.asyncio import create_async_engine

from sqlalchemy.orm import declarative_base

Base = declarative_base()

class CustomCasbinRule(Base):
    __tablename__ = "custom_casbin_rule"

    id = Column(Integer, primary_key=True)
    ptype = Column(String(255))
    v0 = Column(String(255))
    v1 = Column(String(255))
    v2 = Column(String(255))
    v3 = Column(String(255))
    v4 = Column(String(255))
    v5 = Column(String(255))

    def __str__(self):
        arr = [self.ptype]
        for v in (self.v0, self.v1, self.v2, self.v3, self.v4, self.v5):
            if v is None:
                break
            arr.append(v)
        return ", ".join(arr)

    def __repr__(self):
        return '<CasbinRule {}: "{}">'.format(self.id, str(self))

async def run_code():
    engine = create_async_engine("postgresql+asyncpg://postgres:------@localhost:44444/postgres")
    adapter = Adapter(engine, CustomCasbinRule)
    enforcer = Enforcer("./model.conf", adapter)

    await enforcer.load_policy()

    res = await enforcer.add_policy('data_admin', 'data', 'read')
    await enforcer.add_policy('data_admin', 'data', 'write')
    await enforcer.add_policy('group_admin', 'group', 'read')
    await enforcer.add_policy('group_admin', 'group', 'write')
    await enforcer.add_grouping_policy('alice', 'data_admin')
    await enforcer.add_grouping_policy('bob', 'group_admin')

    await enforcer.save_policy()

    print(f'Redundant Policy: {not res}')

    result = enforcer.enforce('alice', 'data', 'read')
    print(f'Enforce Result: {result}')

if __name__ == "__main__":
    asyncio.run(run_code())

after i ran this, i got something wrong with the save_policy() function
Traceback (most recent call last):
  File "/home/abin/prj/test/main.py", line 63, in <module>
    asyncio.run(run_code())
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/home/abin/prj/test/main.py", line 54, in run_code
    await enforcer.save_policy()
  File "/home/abin/prj/test/venv/lib/python3.10/site-packages/casbin/core_enforcer.py", line 214, in save_policy
    await self.adapter.save_policy(self.model)
  File "/home/abin/prj/test/venv/lib/python3.10/site-packages/casbin_async_sqlalchemy_adapter/adapter.py", line 147, in save_policy
    await session.execute(query.delete())
AttributeError: 'Select' object has no attribute 'delete'. Did you mean: 'is_delete'?

The traceback information indicates that this function in adapter.py didn't work:
    async def save_policy(self, model):
        """saves all policy rules to the storage."""
        async with self._session_scope() as session:
            query = select(self._db_class)
            await session.execute(query.delete())
            for sec in ["p", "g"]:
                if sec not in model.model.keys():
                    continue
                for ptype, ast in model.model[sec].items():
                    for rule in ast.policy:
                        await self._save_policy_line(ptype, rule)
        return True

I'm not skilled with sqlalchemy, can anyone help?

@BustDot

@ETCHKILI What's your casbin_async_sqlalchemy_adapter version? Update to 1.2.0 may solve this problem.

After i switch to v1.2.0, it does work.The data was saved as expected, however i still encountered some error.
I can't tell the reason, maybe it's because of the behavior of asyncio.
I'm working on ubuntu 18.04, python 3.10, if it's needed.
Fatal error on SSL transport
protocol: <asyncio.sslproto.SSLProtocol object at 0x7fb71c797b50>
transport: <_SelectorSocketTransport closing fd=9>
Traceback (most recent call last):
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 924, in write
    n = self._sock.send(data)
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/asyncio/sslproto.py", line 690, in _process_write_backlog
    self._transport.write(chunk)
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 930, in write
    self._fatal_error(exc, 'Fatal write error on socket transport')
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 725, in _fatal_error
    self._force_close(exc)
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 737, in _force_close
    self._loop.call_soon(self._call_connection_lost, exc)
  File "/usr/lib/python3.10/asyncio/base_events.py", line 753, in call_soon
    self._check_closed()
  File "/usr/lib/python3.10/asyncio/base_events.py", line 515, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

@ChenHaolinOlym After i switch to v1.2.0, it does work.The data was saved as expected, however i still encountered some error. I can't tell the reason, maybe it's because of the behavior of asyncio. I'm working on ubuntu 18.04, python 3.10, if it's needed.
Fatal error on SSL transport
protocol: <asyncio.sslproto.SSLProtocol object at 0x7fb71c797b50>
transport: <_SelectorSocketTransport closing fd=9>
Traceback (most recent call last):
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 924, in write
    n = self._sock.send(data)
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/asyncio/sslproto.py", line 690, in _process_write_backlog
    self._transport.write(chunk)
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 930, in write
    self._fatal_error(exc, 'Fatal write error on socket transport')
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 725, in _fatal_error
    self._force_close(exc)
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 737, in _force_close
    self._loop.call_soon(self._call_connection_lost, exc)
  File "/usr/lib/python3.10/asyncio/base_events.py", line 753, in call_soon
    self._check_closed()
  File "/usr/lib/python3.10/asyncio/base_events.py", line 515, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

It seems that this is an asyncio problem, not related to casbin.
But you may try
loop = asyncio.get_event_loop()
loop.run_until_complete(run_code())

instead of
asyncio.run(run_code())

@ChenHaolinOlym
Thanks! This solves my problem.


There are 'duplicate attribute' errors for .AssemblyInfo.cs file after deployment

OS: Windows
Node.js: V10.15.0
Build Version: 20190402.1
Azure Functions Core Tools: V2.4.498
Repro Steps:

Create a C# project.
Create a new function with 'HTTP trigger' template and 'Function' level.
Deploy this C# project to Azure Function app.
Wait for 1 minute and click 'PROBLEMS' panel to check the logs.

Expect:
There is no error in 'PROBLEMS' panel.
Actual:
There are 'duplicate attribute' errors for .AssemblyInfo.cs file.

More Info:

This issue don't reproduce for JavaScript/TypeScript and Python project.
This issue also reproduces on Azure Function extension previous release build 0.16.0.

This happens because there is an AssemblyInfo file in both the "Debug" and "Release" folder. Once https://github.com/OmniSharp/omnisharp-vscode/issues/1694 is fixed, we should be able to leverage the files.exclude setting to hide the "obj" folder and any of its errors

Filed a new issue on omnisharp: https://github.com/OmniSharp/omnisharp-vscode/issues/3050

How is this still an issue two and a half years later? This is a bug that pretty much anyone using Microsoft's flagship programming language running on their flagship serverless technology will encounter.

Hi @MikePennington
I understand your frustration, but unfortunately this is stemming from the OmniSharp extension.
We're tracking both of those issues, but unless we edit user's .csproj files manually to include the changes mentioned here: https://github.com/microsoft/vscode-azurefunctions/issues/1154#issuecomment-794286543, there is not much the Azure Functions extension team can do about it.


[Change Request] Codeunit 1800 "Assisted Company Setup" - indirect permissions for table "G/L Entry"

Describe the request
Dear ALAppExtensions team,
On behalf of 4PS I would like to request indirect permissions for table "G/L Entry" to be added to codeunit 1800 "Assisted Company Setup".
codeunit 1800 "Assisted Company Setup"
{
    Permissions = tabledata "Assisted Company Setup Status" = r,
                  tabledata "G/L Entry" = r; //new
    InherentPermissions = X;
    InherentEntitlements = X;

    trigger OnRun()
    begin
    end;

Additional context
This change is necessary to avoid that an error is thrown when this functionality is called by a user that has only indirect permissions for table "G/L Entry".

Hi @KlaasKleermaker,
Your request sounds fair, but since the code you are referring to is in the BaseApp, you'd have to suggest and fix this code in the BaseApp contribution pilot: https://github.com/microsoft/businesscentralapps. For access to the pilot, please fill out the following form: https://forms.office.com/r/E9wyE5a58f.
This repository is only for extensibility requests or pull requests towards the 1st party Business Central apps.
Would you like me to move the issue to the contribution pilot for you?
IMPORTANT: Microsoft is not going to address the reported issue for you. You will have to get the issue approved, and then push a pull request with the suggested changes yourself. If you would like Microsoft to address the issue, please create a support request.

Thanks @JesperSchulz,
We will close this issue. I will ask some who already has access to the BaseApp contribution pilot to create a pull request in this pilot.


Change select statement for active providers

boolean literal search without assigment is valid for most database. SAP HANA does not allow such a where clause. With the prepared statement the assignment to true is valid for all.

Thank you for this pull request. We've merged it and it should be part of our 3.8 release.


Component tests

Codecov Report

Merging #195 (92e6d7f) into main (fd0fbda) will increase coverage by 2.49%.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            main     #195      +/-   ##
=========================================
+ Coverage   9.00%   11.49%   +2.49%
=========================================
  Files        186      186
  Lines      22525    22515      -10
=========================================
+ Hits        2028     2589     +561
+ Misses     20497    19926     -571

Flag
Coverage Δ

gsagh
11.49% <100.00%> (+2.49%)
:arrow_up:

integration
∅ <ø> (∅)

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

Impacted Files
Coverage Δ

GsaGH/Components/1_Properties/CreateBool6.cs
72.34% <ø> (+72.34%)
:arrow_up:

GsaGH/Helpers/CustomInput.cs
19.64% <ø> (+19.64%)
:arrow_up:

GsaGH/Parameters/1_Properties/GsaMaterial.cs
38.83% <ø> (+9.70%)
:arrow_up:

...GH/Components/1_Properties/CreateCustomMaterial.cs
81.73% <100.00%> (+81.73%)
:arrow_up:

GsaGH/Components/1_Properties/CreateMaterial.cs
73.33% <100.00%> (ø)

GsaGH/Components/1_Properties/CreateProfile.cs
0.39% <0.00%> (+0.39%)
:arrow_up:

GsaGH/GsaGHInfo.cs
10.92% <0.00%> (+0.84%)
:arrow_up:

GsaGH/Parameters/1_Properties/GsaProp3d.cs
71.83% <0.00%> (+7.04%)
:arrow_up:

...GH/Parameters/1_Properties/GsaMaterialParameter.cs
66.66% <0.00%> (+8.33%)
:arrow_up:

... and 18 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


fallocate shouldn't return c_int

fallocate, like posix_fallocate, doesn't have a meaningful return value.
From the man page

On success, fallocate() returns zero.  On error, -1 is returned and errno is set to indicate the error.

Yep, that's correct.  Care to submit a PR to change it?


Updated slug url to atmosphere-cookbook - fixes issue #13

Updated url to point to renamed project slug "atmosphere-cookbook"
Fixes issue 13

The link doesn't seem to exist.

We should put back the link that works until the new link is operable?

That's also what I found. Thought there was something else that needed to be done.
I will reply to Santos.
Heidi Nettelbeck                                         [cid:89ede1ab-3f24-48b8-8652-49b6f90fe5f1]
Team Leader, Atmospheric Modelling Infrastructure
Australian Earth System Simulator (ACCESS-NRI)
T: +61 02 6125 4959 | E<EMAIL_ADDRESS>| W: access-nri.org.auhttps://www.access-nri.org.au/ |
We at ACCESS-NRI acknowledge the Traditional Owners of the land on which our research infrastructure and community operate across Australia and pay our respects
to Elders past and present. We recognise the thousands of years of accumulated knowledge and deep connection they have with all the Earth systems we simulate.

From: Navid C. Constantinou @.>
Sent: Wednesday, 4 September 2024 11:47
To: ACCESS-Community-Hub/atmosphere-cookbook @.>
Cc: Heidi Nettelbeck @.>; State change @.>
Subject: Re: [ACCESS-Community-Hub/atmosphere-cookbook] Updated slug url to atmosphere-cookbook - fixes issue #13 (PR #14)
The link doesn't seem to exist.
—
Reply to this email directly, view it on GitHubhttps://github.com/ACCESS-Community-Hub/atmosphere-cookbook/pull/14#issuecomment-2327748746, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A35ECZ32LGVWESCXGNTCROLZUZRCXAVCNFSM6AAAAABNTE5PTSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRXG42DQNZUGY.
You are receiving this because you modified the open/close state.Message ID: @.***>

Try now? I might have triggered a new build at https://atmosphere-cookbook.readthedocs.io/en/latest/

Works for me


System running issue

System running issue
 I have imported everything and was able to get the front end running. However, whenever I try to type something into the text bar, I would return a series of error.
Setup and configuration
Current version:

commit 4882cb6a66e856106930f0ce5c5849cbe135e09f (HEAD -> main, origin/main, origin/HEAD)
Author: Robert Brennan<EMAIL_ADDRESS>Date:   Sat Mar 30 14:11:58 2024 -0400

    Update README.md (#403)

My config.toml and environment vars (be sure to redact API keys):
_PS C:\Users\max\opendevin> set OPEN_API_KEY="i_inserted_my_api_key"
PS C:\Users\max\opendevin> set LLM_BASE_URL="https://localhost:3001/"

My model and agent (you can see these settings in the UI):

Model: "gpt-3.5-turbo"
Agent: OpenAI

Steps to Reproduce:

Commands I ran to install and run OpenDevin
**Back End
_PS C:\Users\max\opendevin> set OPEN_API_KEY="i_inserted_my_api_key"
PS C:\Users\max\opendevin> set LLM_BASE_URL="https://localhost:3001/"
PS C:\Users\max\opendevin> set LLM_MODEL="gpt-4-32k-0613"
PS C:\Users\max\opendevin> python -m pipenv install -v
Installing dependencies from Pipfile.lock (5563c0)...
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
PS C:\Users\max\opendevin> python -m pipenv shell
Launching subshell in virtual environment...
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
PS C:\Users\max\OpenDevin> uvicorn opendevin.server.listen:app --port 3000
INFO: Started server process [28312]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://<IP_ADDRESS>:3000/ (Press CTRL+C to quit)_
Front End
_Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
PS C:\Users\max> cd opendevin
PS C:\Users\max\opendevin> cd frontend
PS C:\Users\max\opendevin\frontend> npm install
<EMAIL_ADDRESS>prepare
cd .. && husky install frontend/.husky
husky - Git hooks installed
up to date, audited 826 packages in 3s
209 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
PS C:\Users\max\opendevin\frontend> npm start
<EMAIL_ADDRESS>start
vite
Port 3001 is in use, trying another one...
Port 3002 is in use, trying another one...
VITE v5.1.6 ready in 1330 ms
➜ Local: http://localhost:3003/
➜ Network: use --host to expose
➜ press h + enter to show help_
Results
_During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\max\OpenDevin\opendevin\controller\agent_controller.py", line 88, in step
action = self.agent.step(self.state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\max\OpenDevin\agenthub\langchains_agent\langchains_agent.py", line 124, in step
self._add_event(prev_action.to_dict())
File "C:\Users\max\OpenDevin\agenthub\langchains_agent\langchains_agent.py", line 74, in _add_event
self.monologue.condense(self.llm)
File "C:\Users\max\OpenDevin\agenthub\langchains_agent\utils\monologue.py", line 35, in condense
raise RuntimeError(f"Error condensing thoughts: {e}")
RuntimeError: Error condensing thoughts: OpenAIException - Traceback (most recent call last):
File "C:\Users\max.virtualenvs\OpenDevin-wJ2ztY-k\Lib\site-packages\litellm\llms\openai.py", line 376, in completion
raise e
File "C:\Users\max.virtualenvs\OpenDevin-wJ2ztY-k\Lib\site-packages\litellm\llms\openai.py", line 312, in completion
openai_client = openai(
^^^^^^^
File "C:\Users\max.virtualenvs\OpenDevin-wJ2ztY-k\Lib\site-packages\openai_client.py", line 98, in init
raise openaiError(
openai.openaiError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable**:
Additional Context: ran the system but it keeps returning an error

hey try to use this format
LLM_API_KEY="OpenAI API KEs"
LLM_MODEL="openai model name"
WORKSPACE_DIR="./workspace"

I believe that if you set config.toml to the format suggested by @stratte89 that should fix your issue, so I'll close this. But please re-open the issue with more details about the error you're getting if that does not work!

Hi, I've done it but its still not working on my end. This showed up in the backend instead:
Error! Error while fetching server API version: (2, 'CreateFile', 'The system cannot find the file specified.') Failed to stop container: Error while fetching server API version: (2, 'CreateFile', 'The system cannot find the file specified.') Error creating controller.

okok


Update dependencies and workflows

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (eb5f858) to head (78aeeae).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #263   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            4         4
  Lines          139       139
  Branches        12        12
=========================================
  Hits           139       139

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


lazy not called on resize

I have a slider with slidesPerViews: auto and lazy loading with watchSlidesVisibility.
when the browser get initial loading with one slide,on resize with more slides, these slides are not lazyloaded. visibility class is set right but lazy is not called. i give a rapid watch to the code and seems me that lazy is called only on init and not in resize handler?

Ok , i have to modfied  the updateSlidesProgress function in core.js:
if (isVisible) {
            s.slides.eq(i).addClass(s.params.slideVisibleClass);
            if (s.lazy && s.params.lazyLoading){
					s.lazy.loadImageInSlide(i);
            }
}

Are you sure you are using latest 3.3.0 version? Would be good to see live example or JSFiddle with that issue then

ok i have created an example...
The slider have slidesperviews defined by css... when you get initial page load at mobile width and then resize to full screen images are not loaded.
The little commit resolve this.
But i have another problem: the onSlideChangeStart and onSlideChangeEnd callbacks are not fired when change slide by drag. I don't know if this is by design( but in that case the names are a little misleading) but i cannot find the callback for this case.
In the previous examples i've putted a callback which log these events...

The last issue i was refering is already raised https://github.com/nolimits4web/Swiper/issues/1579

Have you seene the examples?

Your commit doesn't resolve the issue. recheck the example. I've updated swiper

It is not in dist version yet, check the build version


[FIX]: Cluster dashboard not rendered

fix #811

I don't know how it's possible but const rootElem = document.getElementById("app") inside src/renderer/bootstrap.tsx gets wrong element. Not the one inside current iframe, but first found from the root DOM.

@aleksfront problem of the issue not in DOM at all :)
webFrame.routingId returns cached id for previously created iframe with same url or something..
In that case cluster-view didn't receive proper state after refresh() and thus not rendered at all.


msmtp: 1.8.7 -> 1.8.8

Rebased to master in 730ecad048156741ca9e5db80c7640615c4e95da.

@rycee btw is there a specific reason you merge PRs manually? That's a bit confusing as GitHub shows them as closed instead of merged.
If you just want to avoid the extra merge commit you can use "Squash and merge" (assuming only one commit) or "Rebase and merge" (though I didn't try that one yet). Alternatively it should work if you first update your branch and then push to NixOS:master.

@primeos Ah, no I've never reflected on it. I just use the quickest and cleanest way I've found to review and merge single commit PRs into master. I use git-hub for it so it's also possible to avoid the github site. I don't know why git-hub is marking the PRs as closed instead of merged, perhaps it due to some limitation of the github API?
I think I tried the squash and merge button once but it was a bit clunky to fix the commit message in a browser text box without having access to the magit commit message edit mode. Maybe the rebase and merge won't have that problem, but I do often make some final edits of the commit message when I merge. Of course, both methods will cause the final commit to be unsigned, which I think is a pity.


Put snippets at the bottom of suggestions until typing

Today I can choose to have snippets either at the top or at the bottom of the suggestions list. In order to have them quickly accessible, you need to have the editor.snippetSuggestions setting to top. Here is an example using the if snippet. Image if I didn't have the setting value top, then the if-snippet wouldn't be the highlighted item, resulting in a very slow workflow:

However, when I hit ctrl+space to see suggestions for what I am allowed to do in a given context, then it's just annoying that the snippets are shown first in the list. In this example, the suggested items with blue icons are what I'm after:

Feature request: hide the snippets from the list of suggestions unless you've started typing. Or at least add a new option to the editor.snippetSuggestions called topWhenPrefixMatches or something.
This issue addresses the problem, but proposes a different solution that I don't really agree with:
https://github.com/Microsoft/vscode/issues/62236

currently with version 1.53.  When setting  editor.snippetSuggestions to top, snippet is still showing on th bottom.


【错误反馈】nonebot无法加载

运行环境
macOS 14.0, fabric 1.20.1
NB插件及版本号
1.2.7
MC插件及版本号
1.2.7
错误描述
使用命令nb plugin install nonebot-plugin-mcqq安装，启动nonebot后提示加载错误（
报错日志（如果有）
10-08 13:20:57 [ERROR] nonebot | Failed to import "nonebot_plugin_mcqq"
Traceback (most recent call last):
  File "<string>", line 14, in <module>
  File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/plugin/load.py", line 130, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/plugin/load.py", line 64, in load_all_plugins
    return manager.load_all_plugins()
  File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 176, in load_all_plugins
    return set(
  File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 177, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 142, in load_plugin
    module = importlib.import_module(name)
  File "/Users/justin/miniconda3/envs/bot/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 242, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot_plugin_mcqq/__init__.py", line 8, in <module>
    from nonebot.drivers import ASGIMixin
ImportError: cannot import name 'ASGIMixin' from 'nonebot.drivers' (/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/drivers/__init__.py)

你的nonebot2版本是否 v2.1.1，如果不是请更新

刚刚更新了，仍旧加载错误，日志如下
pip install --upgrade nb-cli nonebot2 nonebot-adapter-cqhttp
Requirement already satisfied: nb-cli in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (1.2.5)
Requirement already satisfied: nonebot2 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (2.0.1)
Collecting nonebot2
Obtaining dependency information for nonebot2 from https://files.pythonhosted.org/packages/68/06/eb8f6d6484f2b1bd71e687d308e436ca5b312adcd2d6a232003080846ede/nonebot2-2.1.1-py3-none-any.whl.metadata
Downloading nonebot2-2.1.1-py3-none-any.whl.metadata (20 kB)
Collecting nonebot-adapter-cqhttp
Downloading nonebot_adapter_cqhttp-2.0.0b1-py3-none-any.whl (1.7 kB)
Requirement already satisfied: anyio~=3.6 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nb-cli) (3.7.1)
Requirement already satisfied: cashews~=6.0 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nb-cli) (6.2.0)
Requirement already satisfied: click~=8.1 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nb-cli) (8.1.6)
Requirement already satisfied: cookiecutter~=2.2 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nb-cli) (2.2.3)
Requirement already satisfied: httpx~=0.18 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nb-cli) (0.24.1)
Requirement already satisfied: importlib-metadata>=4.6 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nb-cli) (6.8.0)
Requirement already satisfied: jinja2~=3.0 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nb-cli) (3.1.2)
Requirement already satisfied: noneprompt<1.0.0,>=0.1.9 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nb-cli) (0.1.9)
Requirement already satisfied: pydantic~=1.9 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nb-cli) (1.10.12)
Requirement already satisfied: pyfiglet<1.0.0,>=0.8.post1 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nb-cli) (0.8.post1)
Requirement already satisfied: tomlkit~=0.10 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nb-cli) (0.12.1)
Requirement already satisfied: typing-extensions~=4.4 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nb-cli) (4.7.1)
Requirement already satisfied: virtualenv~=20.21 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nb-cli) (20.24.5)
Requirement already satisfied: watchfiles~=0.16 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nb-cli) (0.19.0)
Requirement already satisfied: wcwidth~=0.2 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nb-cli) (0.2.6)
Requirement already satisfied: loguru<1.0.0,>=0.6.0 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nonebot2) (0.6.0)
Requirement already satisfied: pygtrie<3.0.0,>=2.4.1 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nonebot2) (2.5.0)
Requirement already satisfied: tomli<3.0.0,>=2.0.1 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nonebot2) (2.0.1)
Requirement already satisfied: yarl<2.0.0,>=1.7.2 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nonebot2) (1.9.2)
Requirement already satisfied: nonebot-adapter-onebot in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nonebot-adapter-cqhttp) (2.2.3)
Requirement already satisfied: idna>=2.8 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from anyio~=3.6->nb-cli) (3.4)
Requirement already satisfied: sniffio>=1.1 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from anyio~=3.6->nb-cli) (1.3.0)
Requirement already satisfied: exceptiongroup in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from anyio~=3.6->nb-cli) (1.1.2)
Requirement already satisfied: binaryornot>=0.4.4 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from cookiecutter~=2.2->nb-cli) (0.4.4)
Requirement already satisfied: pyyaml>=5.3.1 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from cookiecutter~=2.2->nb-cli) (6.0.1)
Requirement already satisfied: python-slugify>=4.0.0 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from cookiecutter~=2.2->nb-cli) (8.0.1)
Requirement already satisfied: requests>=2.23.0 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from cookiecutter~=2.2->nb-cli) (2.31.0)
Requirement already satisfied: arrow in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from cookiecutter~=2.2->nb-cli) (1.2.3)
Requirement already satisfied: certifi in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from httpx~=0.18->nb-cli) (2023.7.22)
Requirement already satisfied: httpcore<0.18.0,>=0.15.0 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from httpx~=0.18->nb-cli) (0.17.3)
Requirement already satisfied: zipp>=0.5 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from importlib-metadata>=4.6->nb-cli) (3.16.2)
Requirement already satisfied: MarkupSafe>=2.0 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from jinja2~=3.0->nb-cli) (2.1.3)
Requirement already satisfied: prompt-toolkit<4.0.0,>=3.0.19 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from noneprompt<1.0.0,>=0.1.9->nb-cli) (3.0.39)
Requirement already satisfied: python-dotenv>=0.10.4 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from pydantic~=1.9->nb-cli) (1.0.0)
Requirement already satisfied: distlib<1,>=0.3.7 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from virtualenv~=20.21->nb-cli) (0.3.7)
Requirement already satisfied: filelock<4,>=3.12.2 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from virtualenv~=20.21->nb-cli) (3.12.2)
Requirement already satisfied: platformdirs<4,>=3.9.1 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from virtualenv~=20.21->nb-cli) (3.11.0)
Requirement already satisfied: multidict>=4.0 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from yarl<2.0.0,>=1.7.2->nonebot2) (6.0.4)
Requirement already satisfied: msgpack<2.0.0,>=1.0.3 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from nonebot-adapter-onebot->nonebot-adapter-cqhttp) (1.0.5)
Requirement already satisfied: chardet>=3.0.2 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from binaryornot>=0.4.4->cookiecutter~=2.2->nb-cli) (5.1.0)
Requirement already satisfied: h11<0.15,>=0.13 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from httpcore<0.18.0,>=0.15.0->httpx~=0.18->nb-cli) (0.14.0)
Requirement already satisfied: text-unidecode>=1.3 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from python-slugify>=4.0.0->cookiecutter~=2.2->nb-cli) (1.3)
Requirement already satisfied: charset-normalizer<4,>=2 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from requests>=2.23.0->cookiecutter~=2.2->nb-cli) (3.2.0)
Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from requests>=2.23.0->cookiecutter~=2.2->nb-cli) (2.0.4)
Requirement already satisfied: python-dateutil>=2.7.0 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from arrow->cookiecutter~=2.2->nb-cli) (2.8.2)
Requirement already satisfied: six>=1.5 in /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages (from python-dateutil>=2.7.0->arrow->cookiecutter~=2.2->nb-cli) (1.16.0)
Downloading nonebot2-2.1.1-py3-none-any.whl (101 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.4/101.4 kB 889.0 kB/s eta 0:00:00
Installing collected packages: nonebot2, nonebot-adapter-cqhttp
Attempting uninstall: nonebot2
Found existing installation: nonebot2 2.0.1
Uninstalling nonebot2-2.0.1:
Successfully uninstalled nonebot2-2.0.1
Successfully installed nonebot-adapter-cqhttp-2.0.0b1 nonebot2-2.1.1
尝试重新安装，日志如下
nb plugin install nonebot-plugin-mcqq
使用 Python: /Users/justin/lily/.venv/bin/python
Collecting nonebot-plugin-mcqq
Using cached nonebot_plugin_mcqq-1.2.7-py3-none-any.whl (17 kB)
Requirement already satisfied: nonebot-adapter-onebot>=2.1.1 in ./.venv/lib/python3.9/site-packages (from nonebot-plugin-mcqq) (2.2.3)
Requirement already satisfied: mcqq-tool>=0.0.8 in ./.venv/lib/python3.9/site-packages (from nonebot-plugin-mcqq) (0.1.2)
Requirement already satisfied: nonebot-plugin-guild-patch>=0.2.0 in ./.venv/lib/python3.9/site-packages (from nonebot-plugin-mcqq) (0.2.3)
Requirement already satisfied: nonebot2>=2.0.0 in ./.venv/lib/python3.9/site-packages (from nonebot-plugin-mcqq) (2.0.1)
Requirement already satisfied: aio-mc-rcon>=3.2.0 in ./.venv/lib/python3.9/site-packages (from nonebot-plugin-mcqq) (3.2.0)
Requirement already satisfied: websockets>=10.3 in ./.venv/lib/python3.9/site-packages (from mcqq-tool>=0.0.8->nonebot-plugin-mcqq) (11.0.3)
Requirement already satisfied: msgpack<2.0.0,>=1.0.3 in ./.venv/lib/python3.9/site-packages (from nonebot-adapter-onebot>=2.1.1->nonebot-plugin-mcqq) (1.0.5)
Requirement already satisfied: pygtrie<3.0.0,>=2.4.1 in ./.venv/lib/python3.9/site-packages (from nonebot2>=2.0.0->nonebot-plugin-mcqq) (2.5.0)
Requirement already satisfied: typing-extensions<5.0.0,>=4.0.0 in ./.venv/lib/python3.9/site-packages (from nonebot2>=2.0.0->nonebot-plugin-mcqq) (4.7.1)
Requirement already satisfied: loguru<1.0.0,>=0.6.0 in ./.venv/lib/python3.9/site-packages (from nonebot2>=2.0.0->nonebot-plugin-mcqq) (0.7.0)
Requirement already satisfied: pydantic[dotenv]<2.0.0,>=1.10.0 in ./.venv/lib/python3.9/site-packages (from nonebot2>=2.0.0->nonebot-plugin-mcqq) (1.10.12)
Requirement already satisfied: yarl<2.0.0,>=1.7.2 in ./.venv/lib/python3.9/site-packages (from nonebot2>=2.0.0->nonebot-plugin-mcqq) (1.9.2)
Requirement already satisfied: tomli<3.0.0,>=2.0.1 in ./.venv/lib/python3.9/site-packages (from nonebot2>=2.0.0->nonebot-plugin-mcqq) (2.0.1)
Requirement already satisfied: python-dotenv>=0.10.4 in ./.venv/lib/python3.9/site-packages (from pydantic[dotenv]<2.0.0,>=1.10.0->nonebot2>=2.0.0->nonebot-plugin-mcqq) (1.0.0)
Requirement already satisfied: idna>=2.0 in ./.venv/lib/python3.9/site-packages (from yarl<2.0.0,>=1.7.2->nonebot2>=2.0.0->nonebot-plugin-mcqq) (3.4)
Requirement already satisfied: multidict>=4.0 in ./.venv/lib/python3.9/site-packages (from yarl<2.0.0,>=1.7.2->nonebot2>=2.0.0->nonebot-plugin-mcqq) (6.0.4)
Installing collected packages: nonebot-plugin-mcqq
Successfully installed nonebot-plugin-mcqq-1.2.7
运行nonebot，日志如下
nb run
使用 Python: /Users/justin/lily/.venv/bin/python
10-08 13:37:45 [SUCCESS] nonebot | NoneBot is initializing...
10-08 13:37:45 [INFO] nonebot | Current Env: prod
10-08 13:37:45 [SUCCESS] nonebot | Succeeded to load plugin "echo" from "nonebot.plugins.echo"
10-08 13:37:45 [SUCCESS] nonebot | Succeeded to load plugin "tex" from "plugins.tex"
10-08 13:37:46 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_localstore"
10-08 13:37:47 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_memes"
10-08 13:37:47 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_datastore"
10-08 13:37:48 [SUCCESS] nonebot | Succeeded to load plugin "nonebot-plugin-random"
10-08 13:37:48 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_help"
10-08 13:37:48 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_saa"
10-08 13:37:48 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_picstatus"
10-08 13:37:49 [INFO] nonebot_plugin_quote | nonebot_plugin_quote路径配置成功
10-08 13:37:49 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_quote"
10-08 13:37:49 [SUCCESS] nonebot | Succeeded to load plugin "render" from "plugins.render"
10-08 13:37:49 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_chatrecorder"
10-08 13:37:49 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_eitherchoice"
10-08 13:37:49 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_repeater"
10-08 13:37:49 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_apscheduler"
10-08 13:37:49 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_wordcloud"
10-08 13:37:49 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_guild_patch"
10-08 13:37:49 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_dialectlist"
10-08 13:37:49 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_homo_mathematician"
10-08 13:37:49 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_withdraw"
10-08 13:37:49 [ERROR] nonebot | Failed to import "nonebot_plugin_mcqq"
Traceback (most recent call last):
File "", line 14, in
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/plugin/load.py", line 130, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/plugin/load.py", line 64, in load_all_plugins
return manager.load_all_plugins()
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 176, in load_all_plugins
return set(
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 177, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))

File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 142, in load_plugin
module = importlib.import_module(name)
File "/Users/justin/miniconda3/envs/bot/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 242, in exec_module
super().exec_module(module)
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot_plugin_mcqq/init.py", line 8, in
from nonebot.drivers import ASGIMixin
ImportError: cannot import name 'ASGIMixin' from 'nonebot.drivers' (/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/drivers/init.py)
10-08 13:37:49 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_htmlrender"
10-08 13:37:50 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_eventmonitor"
10-08 13:37:50 [SUCCESS] nonebot | Running NoneBot...
10-08 13:37:50 [INFO] uvicorn | Started server process [26247]
10-08 13:37:50 [INFO] uvicorn | Waiting for application startup.
10-08 13:37:50 [INFO] nonebot_plugin_memes | 正在检查资源文件...
10-08 13:37:50 [INFO] nonebot_plugin_datastore | 数据库初始化完成
10-08 13:37:50 [INFO] nonebot_plugin_htmlrender | 使用 chromium 启动

执行 pip show nonebot2 查看版本号

看上去是2.1.1（
pip show nonebot2
Name: nonebot2
Version: 2.1.1
Summary: An asynchronous python bot framework.
Home-page: https://nonebot.dev/
Author: yanyongyu
Author-email<EMAIL_ADDRESS>License: MIT
Location: /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages
Requires: loguru, pydantic, pygtrie, tomli, typing-extensions, yarl
Required-by: nonebot-adapter-onebot, nonebot-plugin-localstore, nonebot-plugin-memes

看上去是2.1.1（ pip show nonebot2 Name: nonebot2 Version: 2.1.1 Summary: An asynchronous python bot framework. Home-page: https://nonebot.dev/ Author: yanyongyu Author-email<EMAIL_ADDRESS>License: MIT Location: /Users/justin/miniconda3/envs/bot/lib/python3.9/site-packages Requires: loguru, pydantic, pygtrie, tomli, typing-extensions, yarl Required-by: nonebot-adapter-onebot, nonebot-plugin-localstore, nonebot-plugin-memes

那不应该无法导入，我这边测试没有问题


Add more functional tests

[ ] ClaimsTransformation
[x] Cookies
[x] CustomPolicyProvider
[x] DynamicSchemes
[ ] Identity.External
[x] PathSchemes
[ ] StaticFileAuthZ
[ ] https://github.com/blowdart/AspNetAuthorizationWorkshop (need to create sample as well)

@Tratcher can you some tests for StaticFileAuth?  I'll take care of the rest

Sure, I'll take a look

@HaoK moving out to 3.0. Please bring it back if there'll be more work in release/2.2 branches.


/[id]/since/[timestamp] does not order the data

Not sure if this is a but or a "feature"
If you write data using "write at" out of order, then the data returned by /since is also out of order.

I will sort those on the timestamp before returning instead.

New image available for testing this.


Cant expand description on Communities

Simplest thing would be to have it expanded/collapsed when the description is clicked. To make it a bit more discoverable, we can add a 'see more' and 'see less' link at the end of it. Don't have a strong preference either way, I'll leave it to the dev who picks this up to decide whether the effort is worth it.
Link to Figma

@aseckin there was a request to support markdown content in community descriptions:
https://metaculus.slack.com/archives/C01Q9AQBVHB/p1733244071737329
To address this, we removed the restriction on description length. This allows us to handle cases like this, where non-text content appears at the beginning:
https://www.metaculus.com/c/Brasil/
We could implement a “show more” button by disabling all formatting (except plain text) in the collapsed mode and enabling it when expanded. However, I’m not sure if we actually need it.


CockroachDB operator

Has anyone started on a CockroachDB operator yet? Pretty new to this whole k8s ecosystem so I don't have anything specific to ask. If this is a bad format and I should come back when I have something tangible, feel free to just close this issue. :)

Welcome @annismckenzie ! We have not started anything yet. If you would like to start that we are happy to work to you.

Thank you! I'll report back when I have something.

Great!.

@annismckenzie , I wonder if you made any progress on this? We now have a skeleton project to start writing new operators for additional databases. https://github.com/k8sdb/xdb

Sadly, I haven't made any progress. I thought I'd get to finally play around with k8s but that hasn't happened yet. Thanks for the pointer to the skeleton project but feel free to close this issue for now because it's gonna be 2018 before I see myself in the position to consider picking this up again.


Update statsig-id-resolver.mdx to mention size constraints

We want to clarify the limits on number of items to return / lengths so users know what to constrain their resolver at. We will reject responses over certain sizes, but these bounds should ensure the responses aren't rejected.

🚀 Deployed on https://66d38c7835bb4f848c523747--cozy-fox-0defec.netlify.app


Conflicting websockets dependencies (webostv, discord, vallox)

There are conflicting dependencies between several components for websockets, affecting at least webostv, discord, and vallox integrations.
This follows from a discussion at https://github.com/home-assistant/home-assistant/issues/31213#issuecomment-579379923
In particular discord.py required by the discord integration, and vallox-websocket-api required by the vallox integration are requiring older versions of websockets, while at least aiopylgtv required by the webostv integration requires a newer version.
One solution to this problem would be to update dependencies for discord.py to 1.3.1 and vallox-websocket-api to 2.4.0, since these have compatible websockets dependencies with aiopylgtv.
Full list of conflicts below, from running
pip install -r requirements_all.txt

in Home Assistant 0.104.3
ERROR: abodepy 0.16.7 has requirement colorlog==3.0.1, but you'll have colorlog 4.0.2 which is incompatible.
ERROR: aioambient 1.0.2 has requirement aiohttp<4.0.0,>=3.6.2, but you'll have aiohttp 3.6.1 which is incompatible.
ERROR: airly 0.0.2 has requirement aiohttp==3.5.4, but you'll have aiohttp 3.6.1 which is incompatible.
ERROR: aurorapy 0.2.6 has requirement pyserial>=3.2.1, but you'll have pyserial 3.1.1 which is incompatible.
ERROR: blinkpy 0.14.2 has requirement python-slugify~=3.0.2, but you'll have python-slugify 4.0.0 which is incompatible.
ERROR: discord-py 1.2.5 has requirement aiohttp<3.6.0,>=3.3.0, but you'll have aiohttp 3.6.1 which is incompatible.
ERROR: discord-py 1.2.5 has requirement websockets<7.0,>=6.0, but you'll have websockets 8.1 which is incompatible.
ERROR: dsmr-parser 0.12 has requirement PyCRC<2,>=1.2, but you'll have pycrc 0.9.2 which is incompatible.
ERROR: eebrightbox 0.0.4 has requirement certifi==2018.11.29, but you'll have certifi 2019.11.28 which is incompatible.
ERROR: eebrightbox 0.0.4 has requirement requests==2.21.0, but you'll have requests 2.22.0 which is incompatible.
ERROR: eebrightbox 0.0.4 has requirement urllib3==1.24.1, but you'll have urllib3 1.25.8 which is incompatible.
ERROR: elkm1-lib 0.7.15 has requirement pytz<2019.0,>=2018.9, but you'll have pytz 2019.3 which is incompatible.
ERROR: http3 0.6.7 has requirement h2==3.*, but you'll have h2 2.6.2 which is incompatible.
ERROR: gearbest-parser 1.0.7 has requirement beautifulsoup4==4.6.0, but you'll have beautifulsoup4 4.8.2 which is incompatible.
ERROR: python-jose-cryptodome 1.3.2 has requirement pycryptodome<3.4.0,>=3.3.1, but you'll have pycryptodome 3.9.4 which is incompatible.
ERROR: homematicip 0.10.15 has requirement aiohttp==3.6.2, but you'll have aiohttp 3.6.1 which is incompatible.
ERROR: homematicip 0.10.15 has requirement websocket-client==0.57.0, but you'll have websocket-client 0.54.0 which is incompatible.
ERROR: ibm-watson 4.0.1 has requirement websocket-client==0.48.0, but you'll have websocket-client 0.54.0 which is incompatible.
ERROR: insteonplm 0.16.5 has requirement pyserial==3.2.0, but you'll have pyserial 3.1.1 which is incompatible.
ERROR: locationsharinglib 4.1.0 has requirement requests~=2.21.0, but you'll have requests 2.22.0 which is incompatible.
ERROR: miflora 0.6 has requirement btlewrap==0.0.8, but you'll have btlewrap 0.0.2 which is incompatible.
ERROR: mitemp-bt 0.0.3 has requirement btlewrap==0.0.8, but you'll have btlewrap 0.0.2 which is incompatible.
ERROR: motorparts 1.1.0 has requirement beautifulsoup4==4.5.1, but you'll have beautifulsoup4 4.8.2 which is incompatible.
ERROR: mycroftapi 2.0 has requirement websocket-client==0.44.0, but you'll have websocket-client 0.54.0 which is incompatible.
ERROR: nad-receiver 0.0.11 has requirement pyserial==3.2.1, but you'll have pyserial 3.1.1 which is incompatible.
ERROR: openwrt-luci-rpc 1.1.2 has requirement requests==2.21.0, but you'll have requests 2.22.0 which is incompatible.
ERROR: pyblackbird 0.5 has requirement pyserial>=3.4, but you'll have pyserial 3.1.1 which is incompatible.
ERROR: pyicloud 0.9.1 has requirement click<7.0,>=6.0, but you'll have click 7.0 which is incompatible.
ERROR: pyicloud 0.9.1 has requirement keyring<9.0,>=8.0, but you'll have keyring 20.0.0 which is incompatible.
ERROR: pyicloud 0.9.1 has requirement keyrings.alt<2.0,>=1.0, but you'll have keyrings-alt 3.4.0 which is incompatible.
ERROR: pymonoprice 0.3 has requirement pyserial>=3.4, but you'll have pyserial 3.1.1 which is incompatible.
ERROR: pymysensors 0.18.0 has requirement pyserial>=3.4, but you'll have pyserial 3.1.1 which is incompatible.
ERROR: pystiebeleltron 0.0.1.dev2 has requirement pymodbus>=2.1.0, but you'll have pymodbus 1.5.2 which is incompatible.
ERROR: python-velbus 2.0.35 has requirement pyserial==3.3, but you'll have pyserial 3.1.1 which is incompatible.
ERROR: simplisafe-python 5.3.6 has requirement aiohttp<4.0.0,>=3.6.2, but you'll have aiohttp 3.6.1 which is incompatible.
ERROR: skybellpy 0.4.0 has requirement colorlog==3.0.1, but you'll have colorlog 4.0.2 which is incompatible.
ERROR: temperusb 1.5.3 has requirement pyusb>=1.0.0rc1, but you'll have pyusb 1.0.0b1 which is incompatible.
ERROR: pyrebase4 4.3.0 has requirement oauth2client==4.1.2, but you'll have oauth2client 4.0.0 which is incompatible.
ERROR: toonapilib 3.2.4 has requirement cachetools~=3.1.1, but you'll have cachetools 2.0.1 which is incompatible.
ERROR: toonapilib 3.2.4 has requirement requests~=2.21.0, but you'll have requests 2.22.0 which is incompatible.
ERROR: vallox-websocket-api 2.2.0 has requirement websockets<8.0,>=7.0, but you'll have websockets 8.1 which is incompatible.
ERROR: wirelesstagpy 0.4.0 has requirement colorlog==3.0.1, but you'll have colorlog 4.0.2 which is incompatible.

I updated discord.py with https://github.com/home-assistant/home-assistant/pull/31391.

Websocket requirement of the different packages:

[x] vallox_websocket_api (#31913): websockets >= 7.0, < 9.0
[x] aiopylgtv (#31545): websockets>=8.1
[x] discord.py (#31391): websockets>=6.0,!=7.0,!=8.0,!=8.0.1,<9.0

As a consequence, websocket >=8.1, <9.0 will be sufficient.


llvmPackages_13.clang: add nostdlibinc flag

Motivation for this change
This patch adds nostdlibinc flag after parsing arguments
instead of sed substitution.
Fix #151879
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

cc @lovek323 @raskin @dtzWill @primeos

I think it is better to target staging here

I think it is better to target staging here

Done.

Would it be possible to backport this to 21.11?

Sure!


[SUGGESTION] Remove String constant from BetterUI

Suggestion
Currently, the title printed by BetterUI is a string constant, which makes it hard to reuse the BetterUI class for other projects (e.g. for something like a neoforge version). This could be replaced by providing the String in a resource file or setting it with a setter method.
An even cleaner way would be to split BetterUI and KettingCore, since anyone wanting to use BetterUI would have to copy the BetterUI class, edit its content and repackage it in their own source code. However, I don't really see anyone using that class since it is very specific.

Not gonna do this as KettingCore is made to be only used on Ketting servers, the BetterUI class is practically deprecated here since it now gets used in KettingLauncher, this is just here for backwards compatibility


tests: arch: arm: arm_interrupt: arch.interrupt.no_optimizations Wrong crash type got 2 expected 0

Describe the bug
The tests/arch/arm/arm_interrupt/arch.interrupt.no_optimizations fails
Observed for

nrf9160dk_nrf9160
nrf5340dk_nrf5340_cpuapp
nrf5340dk_nrf5340_cpunet

To Reproduce
Steps to reproduce the behavior:

have nrf9160dk connected
go to your zephyr dir
call ./scripts/twister -T tests/arch/arm/arm_interrupt -p nrf9160dk_nrf9160 --device-testing --device-serial /dev/ttyACM0 -v --inline-logs
See console output with error

Expected behavior
Valid console output
Impact
Not clear
Logs and console output
[2022-08-11T22:59:48.365Z] ERROR   - *** Booting Zephyr OS build zephyr-v3.1.0-3361-gb076aa373a63  ***
[2022-08-11T22:59:48.365Z] Running TESTSUITE arm_interrupt
[2022-08-11T22:59:48.365Z] ===================================================================
[2022-08-11T22:59:48.365Z] START - test_arm_esf_collection
[2022-08-11T22:59:48.365Z] E: ***** USAGE FAULT *****
[2022-08-11T22:59:48.365Z] E:   Stack overflow (context area not valid)
[2022-08-11T22:59:48.365Z] E: r0/a1:  0x00000428  r1/a2:  0xa1000000  r2/a3:  0xffd7efe8
[2022-08-11T22:59:48.365Z] E: r3/a4:  0x2d23e934 r12/ip:  0xafbfed75 r14/lr:  0xf0549929
[2022-08-11T22:59:48.365Z] E:  xpsr:  0xb0113200
[2022-08-11T22:59:48.365Z] E: Faulting instruction address (r15/pc): 0x5feff6bf
[2022-08-11T22:59:48.365Z] E: >>> ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0
[2022-08-11T22:59:48.365Z] E: Current thread: 0x200000d8 (test_arm_esf_collection)
[2022-08-11T22:59:48.365Z] Caught system error -- reason 2
[2022-08-11T22:59:48.365Z] Wrong crash type got 2 expected 0

Environment (please complete the following information):

OS: Ubuntu 20.04.1 LTS
Toolchain Zephyr SDK 0.14.1
Commit SHA or Version used: v3.1.0-3361-gb076aa373a63

This has already been fixed by #48876.


Correcting type of extraOperators

Fixes #363

❯ pre-commit run --all-files
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
Pre-render Kubernetes resources..........................................Passed
Trim Trailing Whitespace.................................................Passed
Fix End of Files.........................................................Passed
Check Yaml...............................................................Passed
Check for added large files..............................................Passed

Please add a line to Fixed section in CHANGELOG.md and mark it as not a draft PR, so we can merge it


Added JavaScript tutorial

Docs Build status updates of commit cdfd572:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

breadcrumb/toc.yml
:white_check_mark:Succeeded

docfx.json
:white_check_mark:Succeeded

tutorials/javascript.yml
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Add some readability checks and fix all reports in current codebase

In this PR, we:

remove useless const, e.g. f(const int), const int g()
add const in member functions, e.g. bool A::IsX() const { return ... }
make all this-unrelated member function static
remove unneccessary private: public:

Thanks all. Merging...


SAK-41886 Gradebook Classic is not listed in tools to import in Site …

…Info -> Import from site... if both Gradebook Classic and GradebookNG are selected to be copied, Only transfer entities for NG

Sorry, I'm not sure if this was the correct way to do it, but this is a separate PR from
https://github.com/sakaiproject/sakai/pull/7014
because this one is for merging into master

IIRC, GradebookNG handles this internally and will not import entries that already exist (ie have been imported from the old Gradebook Classic). I don't think the logic should be in SiteManageServiceImpl.

@steveswinsburg
GradebookNG handles this internally and will not import entries that already exist
I mentioned that in https://jira.sakaiproject.org/browse/SAK-41886?focusedCommentId=243232&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-243232
however, it sounded like @ern wanted me to add the extra logic:  https://jira.sakaiproject.org/browse/SAK-41886?focusedCommentId=243348&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-243348
Please let me know if I should keep or remove the 2nd commit (SiteManageServiceImpl) from this PR

@steveswinsburg said in https://jira.sakaiproject.org/browse/SAK-41886

ok yep the code in gradebook classic is where it should be. If both Gradebook Classic and GBNG importers are both aware of a gradebook existing already and being able to handle that (checking for existing items etc) then this should be fine. Site manage shouldn't need to be involved here which is where the contention is.

so I'm closing this PR since it's not needed


fix KYLIN-3731, KYLIN-3643

Can one of the admins verify this patch?

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@338a8f1). Click here to learn what that means.
The diff coverage is 0%.

@@            Coverage Diff            @@
##             master     #415   +/-   ##
=========================================
  Coverage          ?   24.38%
  Complexity        ?     4934
=========================================
  Files             ?     1143
  Lines             ?    69268
  Branches          ?     9862
=========================================
  Hits              ?    16890
  Misses            ?    50677
  Partials          ?     1701

Impacted Files
Coverage Δ
Complexity Δ

...va/org/apache/kylin/cube/common/SegmentPruner.java
60.52% <0%> (ø)
25 <0> (?)

...c/main/java/org/apache/kylin/gridtable/GTUtil.java
1.33% <0%> (ø)
2 <0> (?)

.../engine/mr/steps/UpdateCubeInfoAfterBuildStep.java
0% <0%> (ø)
0 <0> (?)

...a/org/apache/kylin/metadata/datatype/DataType.java
69.66% <0%> (ø)
43 <0> (?)

...g/apache/kylin/engine/spark/SparkFactDistinct.java
0% <0%> (ø)
0 <0> (?)

...in/engine/mr/steps/FactDistinctColumnsReducer.java
0% <0%> (ø)
0 <0> (?)

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 338a8f1...d526763. Read the comment docs.


[CSL-2007] Revise tx resubmitter logic

Now we

Choose and resubmit only one transaction per slot
Allow to reset status of all failed transactions so that they will be processed by resubmitter again

Ok, https://travis-ci.org/input-output-hk/cardano-sl/jobs/311007029 failed due to time limit being blown.
Otherwise, this PR has been tested, and it passed Duncan's review, as per Slack communication.

#2020 has the same changes and has been merged.


Explain what WIT is

Always mention the elephant in the room; especially when its pink and weighs 18T.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

@joshuawilson @kwk Updated.

[test]

Codecov Report

Merging #1776 into master will decrease coverage by 0.09%.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           master   #1776     +/-   ##
========================================
- Coverage    57.5%   57.4%   -0.1%
========================================
  Files         129     129
  Lines       15296   15296
========================================
- Hits         8796    8781     -15
- Misses       5793    5806     +13
- Partials      707     709      +2

Impacted Files
Coverage Δ

remoteworkitem/jira.go
76.19% <0%> (-23.81%)
:arrow_down:

remoteworkitem/scheduler.go
46.93% <0%> (-14.29%)
:arrow_down:

controller/workitem.go
80.38% <0%> (-0.58%)
: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 7278954...557ffbe. Read the comment docs.


[E106] Title should not have word "adapter" in the name. It is clear, that this is adapter. Now: Syncthing Adapter

Fixed


Playback Controlling Shortcuts (Arrow Keys, shift+Comma ...)

I would love to see more keyboard shortcuts to control the video playback.
Maybe one could mimic the shortcuts that youtube already uses?
Like some are already implementet (like K=pause, M=mute) but some are missing imo:

key
function

⇧ Shift + ,
inc speed

⇧ Shift + .
dec speed

→
5 or 10 sec skip

←
-5 or -10 sec skip

↑
inc volume

↓
dec volume

0, 1, ...
jump within video

This has already been implemented and was merged just 30 minutes ago :D https://github.com/joschahenningsen/TUM-Live/pull/476
You can expect to see it live soon :)


ID MLH intro saving answers logged in:
User feedback: something
(MLH_intro_navigate_save)

Question ID
MLH intro saving answers logged in

Details
"Tapping" seems werid on a computer. Consider changing from:

You can also see and edit earlier answers by tapping the “✎ Review / Edit” link.
To :
You can also see and edit earlier answers with the “✎ Review / Edit” link.
Variable being sought | MLH_intro_navigate_save
Package version | 0.3
Filename | docassemble.FeeWaiverRequest:data/questions/fee_waiver_request.yml

@ekressmiller - a consideration for the framework. However, a bit of a moot point since "tap" and "tapping" are used widely throughout the framework and underlying AL/docassemble.


Add ability to change java opts

This will allow for New Relic integration to be enabled.

Closed by #33


Week5_PruthviRaaj

Week 5 - Views
Bootstrap was used to style the views of the Activity-tracker app and the Devise Views as well.
List of Implemented Views & Features

Styled the activities/stats page.
Improved the design of authentication-related views: Log In, Sign Up and Reset   Password views
Alerts and Notices have been styled using Bootstrap Alerts.
Toggle between Dark Mode and Light Mode.
A User Name field was added to Devise Models to record the name of the user.
Devise (User) and Activities Models have been associated so that a particular user can view only their activities and stats.

Screenshots
Toggle between Dark & Light Modes with a click of a button

Styled Stats Page
Two users whose Activities models have been associated with their User Models.

Improved the design of authentication-related views: Log In, Sign Up and Reset   Password views

Alert Styled using Bootstrap Alerts

Good stuff!


Error: connect ETIMEDOUT

Your issue may already be reported!
Please search on the issue tracker before creating one.
Expected Behavior
AWS ElasticCache connection should be established without having an issue.
Current Behavior
AWS Security Group's inbound rule is open to public (<IP_ADDRESS>).

RedisModule.forRootAsync({
    imports: [ConfigModule],
    inject: [ConfigService],
    useFactory: (config: ConfigService) => ({
      config: {
        host: 'aws-elastic-cache-url',
        port: config.get('REDIS_PORT') || 6379,
        password: config.get('REDIS_PASSWORD'),
      },
    }),
  }),

I'm facing the following error.
[Nest] 77739  - 03/16/2023, 5:50:05 PM   ERROR [RedisModule] default: connect ETIMEDOUT +10056ms
Error: connect ETIMEDOUT
    at Socket.<anonymous> (/Users/x/Projects/workspace/backend/node_modules/ioredis/built/Redis.js:170:41)
    at Object.onceWrapper (node:events:627:28)
    at Socket.emit (node:events:513:28)
    at Socket._onTimeout (node:net:562:8)
    at listOnTimeout (node:internal/timers:564:17)
    at processTimers (node:internal/timers:507:7)

If I try with my localhost redis, it works fine.
Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

Version used: 9.0.5
NestJS version: 9
Node.js version: 18.12
Operating System and version (macOS, Windows, Linux): macOS
Link to your project:

I've heard that the Elasticache is a service designed to be used internally to a specific VPC. Is this the possible reason why the connection issue occurred?


Meta data tag to set push icon not honoured

To set a custom push icon the SDK docs require adding the following meta data tag to the manifest within the <application> tag.
<meta-data android:name="com.parse.push.notification_icon" android:resource="@drawable/icon"/>
In this version of the SDK no check is made for the presence of that metadata, so only the launcher icon is ever set.
See IconId in https://github.com/ParsePlatform/Parse-SDK-dotNET/blob/master/Parse/Internal/ManifestInfo.cs

Thanks for the report! This appears to be a duplicate of #12.

Misread the question. This is indeed an issue with the SDK on Xamarin for android.


BZ1241550: Fix json to bpmn2 unmarshalling exception for ServiceTask …

…with no params

@jlindop I think the real bug is the condition under which the assignments property in the json becomes just "="
"assignments": "=",
This could have been introduced by the number of refactoring prs lately but maybe worth investigating because it should imo never be just "="

@jlindop this seems to be in bpmn2.0jbpm.orig template where stringtemplate parses the workitems:
"value":"$workitemDefs.(k).parameters:{k1| $k1.name$}; separator="=,"$=",

@tsurdilo  Thanks - your idea to fix the root of the problem in bpmn2.0jbpm.orig template works, and I've updated the PR accordingly. There was no need to change the value for the results of workitems in the template as the value of dataoutputset for services with no results is already "".

+1


perf: nexmark q22

Query:
CREATE MATERIALIZED VIEW nexmark_q22 AS
SELECT
    auction, bidder, price, channel,
    split_part(url, '/', 4) as dir1,
    split_part(url, '/', 5) as dir2,
    split_part(url, '/', 6) as dir3
FROM
    bid;

RW:
 StreamMaterialize { columns: [auction, bidder, price, channel, dir1, dir2, dir3, _row_id(hidden)], pk_columns: [_row_id], pk_conflict: "no check" }
 └─StreamExchange { dist: HashShard(_row_id) }
   └─StreamProject { exprs: [Field(bid, 0:Int32) as $expr1, Field(bid, 1:Int32) as $expr2, Field(bid, 2:Int32) as $expr3, Field(bid, 3:Int32) as $expr4, SplitPart(Field(bid, 4:Int32), '/':Varchar, 4:Int32) as $expr5, SplitPart(Field(bid, 4:Int32), '/':Varchar, 5:Int32) as $expr6, SplitPart(Field(bid, 4:Int32), '/':Varchar, 6:Int32) as $expr7, _row_id] }
     └─StreamFilter { predicate: (event_type = 2:Int32) }
       └─StreamRowIdGen { row_id_index: 4 }
         └─StreamSource { source: "nexmark", columns: ["event_type", "person", "auction", "bid", "_row_id"] }
(6 rows)

 Fragment 0
   StreamMaterialize { columns: [auction, bidder, price, channel, dir1, dir2, dir3, _row_id(hidden)], pk_columns: [_row_id], pk_conflict: "no check" }
       materialized table:<PHONE_NUMBER>
     StreamExchange Hash([7]) from 1

 Fragment 1
   StreamProject { exprs: [Field(bid, 0:Int32) as $expr245, Field(bid, 1:Int32) as $expr246, Field(bid, 2:Int32) as $expr247, Field(bid, 3:Int32) as $expr248, SplitPart(Field(bid, 4:Int32), '/':Varchar, 4:Int32) as $expr249, SplitPart(Field(bid, 4:Int32), '/':Varchar, 5:Int32) as $expr250, SplitPart(Field(bid, 4:Int32), '/':Varchar, 6:Int32) as $expr251, _row_id] }
     StreamFilter { predicate: (event_type = 2:Int32) }
       StreamRowIdGen { row_id_index: 4 }
         StreamSource { source: "nexmark", columns: ["event_type", "person", "auction", "bid", "_row_id"] }
             source state table: 0

  Table 0 { columns: [partition_id, offset], primary key: [$0 ASC], value indices: [0, 1], distribution key: [] }
  Table<PHONE_NUMBER> { columns: [auction, bidder, price, channel, dir1, dir2, dir3, _row_id], primary key: [$7 ASC], value indices: [0, 1, 2, 3, 4, 5, 6, 7], distribution key: [7] }
(14 rows)

Flink:
== Optimized Physical Plan ==
Calc(select=[bid.auction AS auction, bid.bidder AS bidder, bid.price AS price, bid.channel AS channel, SPLIT_INDEX(bid.url, _UTF-16LE'/', 3) AS dir1, SPLIT_INDEX(bid.url, _UTF-16LE'/', 4) AS dir2, SPLIT_INDEX(bid.url, _UTF-16LE'/', 5) AS dir3], where=[=(event_type, 2)])
+- WatermarkAssigner(rowtime=[dateTime], watermark=[-(dateTime, 4000:INTERVAL SECOND)])
   +- Calc(select=[event_type, person, auction, bid, CASE(=(event_type, 0), person.dateTime, =(event_type, 1), auction.dateTime, bid.dateTime) AS dateTime])
      +- TableSourceScan(table=[[default_catalog, default_database, datagen]], fields=[event_type, person, auction, bid])

== Optimized Execution Plan ==
Calc(select=[bid.auction AS auction, bid.bidder AS bidder, bid.price AS price, bid.channel AS channel, SPLIT_INDEX(bid.url, '/', 3) AS dir1, SPLIT_INDEX(bid.url, '/', 4) AS dir2, SPLIT_INDEX(bid.url, '/', 5) AS dir3], where=[(event_type = 2)])
+- WatermarkAssigner(rowtime=[dateTime], watermark=[(dateTime - 4000:INTERVAL SECOND)])
   +- Calc(select=[event_type, person, auction, bid, CASE((event_type = 0), person.dateTime, (event_type = 1), auction.dateTime, bid.dateTime) AS dateTime])
      +- TableSourceScan(table=[[default_catalog, default_database, datagen]], fields=[event_type, person, auction, bid])

split_part(varchar,varchar,int32) | 29.032 | 28.368 | -2.3%

as shown in #6868


Subtask 4: Add toggle “Max Speed” in the aggregated stats option under settings.

This subtask is for the enhancement #182

Display the " Max Speed" under Aggregated stats in setting options in open tracks
Add the toggle functionality in the Max Speed

Snapshots of the implementation
Application Behaviour when Max Speed toggle is off:

Application behaviour when Max Speed toggle is On:


access recycle bin from powertoys run

Description of the new feature / enhancement
i dont know if this is an error or a feature that need to be added but  i would like to be able to access my recycle bin from run
Scenario when this would be used?
this is the only scenario where i cant use the powertoys run and i have to go to the microsoft search
Supporting information
No response

@crutkas
Sounds like a good idea.
Do you feel this should be an own results or should it bee a context menu of "empty recycle bin"?

Hi,
As you see in the picture when you type recycle you see the option to empty the bin. So maybe this can be replaced by an own result and the the empty the bin option appear on the right..what do u think?
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Heiko @.>
Sent: Thursday, May 5, 2022, 13:16
To: microsoft/PowerToys @.>
Cc: rayyesboulous @.>; Author @.>
Subject: Re: [microsoft/PowerToys] access recycle bin from powertoys run (Issue #18097)
@crutkashttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcrutkas&data=05|01||8b9216a016d54a8cf7b408da2ebaffd9|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637873677937350053|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=wBdcs7sTpeXQROIdBFcNQ5%2BJ3f5EX3usn03ltQZjEJY%3D&reserved=0
Sounds like a good idea.
Do you feel this should be an own results or should it bee a context menu of "empty recycle bin"?
—
Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FPowerToys%2Fissues%2F18097%23issuecomment-1118850954&data=05|01||8b9216a016d54a8cf7b408da2ebaffd9|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637873677937350053|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=3TW1zO1Il5dmBXWf54RQGgQ9DIsq%2BmqXRfhXpaAdhYw%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQEFTUIQEDJQEAJVFAQNCI3VIP665ANCNFSM5VFRXEZA&data=05|01||8b9216a016d54a8cf7b408da2ebaffd9|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637873677937350053|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=KSOBwds0F5KTZ1iZXGDa72lQnijOqcaVnZLqG9P4Cuo%3D&reserved=0.
You are receiving this because you authored the thread.Message ID: @.***>

Hi,
As you see in the picture when you type recycle you see the option to empty the bin. So maybe this can be replaced by an own result and the the empty the bin option appear on the right..what do u think?

Also a good idea. Let's discuss this here with other people too.
Btw what image did you mean?

I attached an image in the email with the result
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Heiko @.>
Sent: Thursday, May 5, 2022 1:23:38 PM
To: microsoft/PowerToys @.>
Cc: rayyesboulous @.>; Author @.>
Subject: Re: [microsoft/PowerToys] access recycle bin from powertoys run (Issue #18097)
Hi,
As you see in the picture when you type recycle you see the option to empty the bin. So maybe this can be replaced by an own result and the the empty the bin option appear on the right..what do u think?
Also a good idea. Let's discuss this here with other people too.
Btw what image did you mean?
—
Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FPowerToys%2Fissues%2F18097%23issuecomment-1118856806&data=05|01||27e5b3870e704795d07408da2ebbfe2b|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637873682200239097|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=0OoGjmMG5PPIGhHJvdgYHypC52qMjNybJ3ewVvYTq%2BY%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQEFTUM47RUM5SVWLEPHXYLVIP7ZVANCNFSM5VFRXEZA&data=05|01||27e5b3870e704795d07408da2ebbfe2b|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637873682200239097|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=171q37tiwgHvpkiwKPmKuTPUTLgjOF%2BD53pzlFfAbXI%3D&reserved=0.
You are receiving this because you authored the thread.Message ID: @.***>

I agree. I actually can't get recycle bin to come up in my Start search menu either (its not on my desktop, because that is wholly unnecessary), so the only way I can access it when I (rarely) need it, is the address bar in file explorer.

workaround: You can create a link "C:\Windows\explorer.exe shell:RecycleBinFolder", then start the lnk file.
BTW: is there a way to boost the .lnk file priority so I don't have to input  lnk for invoking them?

thanks for the tip it worked!
i didnt had to input ink btw..

glad it works for you, did you place the link in a special directory? I can get to it via the "file search" feature, but not via the application launcher...

i go via powertoys run. i saved it in C:\Users\pauld\AppData\Roaming\Microsoft\Windows\Start Menu\Programs soi t appears as an app 🙂
[cid:ede1e8d7-f9e0-4b65-b83a-9bf004a45d54]
Paul
Paul D.
________________________________
From: tnierath<EMAIL_ADDRESS>Sent: December 24, 2022 23:14
To: microsoft/PowerToys<EMAIL_ADDRESS>Cc: rayyesboulous<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [microsoft/PowerToys] access recycle bin from powertoys run (Issue #18097)
glad it works for you, did you place the link in a special directory? I can get to it via the "file search" feature, but not via the application launcher...
—
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FPowerToys%2Fissues%2F18097%23issuecomment-1364624014&data=05|01||66c3da66a313441a96ff08dae62e7535|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|638075384447488049|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=t1tBeRql2bkJXt2nvXlrVeoZhKPahlJtHsZRfEptx5E%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQEFTUKW6BTRYSJ7XRP4K2TWO7CYVANCNFSM5VFRXEZA&data=05|01||66c3da66a313441a96ff08dae62e7535|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|638075384447488049|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=ffvGRw%2BisM4%2F0Qt3N2%2FPB2Buog%2BVwDvZtBJ6tuLlLvY%3D&reserved=0.
You are receiving this because you authored the thread.Message ID: @.***>

@crutkas , @jaimecbernardo
I suggest the following:

Rename result to only "Recycle bin".
Change main command to open.
Add context menu for empty the recycle bin.

What do you think?

...AppData\Roaming\Microsoft\Windows\Start Menu\Programs

perfect, thanks! I remember directly copying too many links into that folder eventually confused windows (in the win 7 days), so I stopped doing that, but lets see how things go with powertoys run.

I do it a lot sonce windows 10 to get rid of all the folders and show only apps. With times windows started dealing better with apps but still some apps showed in a folder with the uninstall button and some extra Un useful stuff so i deleted them and kept only the app shortcut
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: tnierath @.>
Sent: Sunday, December 25, 2022 11:46:16 PM
To: microsoft/PowerToys @.>
Cc: rayyesboulous @.>; Author @.>
Subject: Re: [microsoft/PowerToys] access recycle bin from powertoys run (Issue #18097)
...AppData\Roaming\Microsoft\Windows\Start Menu\Programs
perfect, thanks! I remember directly copying too many links into that folder eventually confused windows (in the win 7 days), so I stopped doing that, but lets see how things go with powertoys run.
—
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FPowerToys%2Fissues%2F18097%23issuecomment-1364882618&data=05|01||324284cc4df1453bd75508dae6fc201a|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|638076267787361284|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=UGuMu39EAMHF50SAUIiZTLJFN7%2BSau530zwytPIudj4%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQEFTUOUDZGYRQPRJ4Q6LRDWPEPJRANCNFSM5VFRXEZA&data=05|01||324284cc4df1453bd75508dae6fc201a|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|638076267787361284|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=xVz50j9DV52IIJzYQF55yMoyQia3D2qWncLfMhEMBeQ%3D&reserved=0.
You are receiving this because you authored the thread.Message ID: @.***>

@crutkas , @jaimecbernardo I suggest the following:

Rename result to only "Recycle bin".
Change description to "Open ... - Deleted items: x".
Change main command to open.
Add context menu for empty the recycle bin. (Enhancement: Show only if item count is > 0. Currently we catch and ignore the error.)

What do you think?

I tried to implement my ideas and this is what I made:
With an empty Recycle Bin:

With deleted files in Recycle Bin:

@crutkas, @jaimecbernardo
If you like the change I can create a PR. My code needs some improvements bevor merging but this not a big thing. You can find the code here.

I like it. How / when does it do the calculation?

I like it. How / when does it do the calculation?

We use the official documented SHELL api SHQueryRBInfo.   How does this act if there are 40k items in there, I'd bet that will take a while.  This would happen if you had the PowerToys source dir in there after a compile for instance or had a directory that leveraged NPM.

is that call async'ed?  How does this act if there are 40k items in there, I'd bet that will take a while.  This would happen if you had the PowerToys source dir in there after a compile for instance or had a directory that leveraged NPM.

I need to test it.

is that call async'ed?  How does this act if there are 40k items in there, I'd bet that will take a while.  This would happen if you had the PowerToys source dir in there after a compile for instance or had a directory that leveraged NPM.

I need to test it. And no it is not async.

@crutkas
I did a small test on a machine with 2 cores, 4 GB RAM and WIn10 22H2:

Deleting around 33,000 1KB files: Query cost around 4,000 milliseconds.
Deleting around 10,000 1KB files: Query cost 2,700 milliseconds
Deleting the root folder of PT repository clone (24,286 files, 3,372 directories, 2.4 GB) as one item: Query cost around 1 millisecond.

We have two options: Either we mark the result as delayed to not block the other results (in case someone deletes many single files) or we don't add the count information. I prefer to mark the result as delayed, but I like to know your opinion.

I'd async to get the count and update via dispatcher.  The other thing to think about is how to calculate it once if PT Run is visible vs multiple times on result updating  Typing: r, re, rec shouldn't each do a calculation.
thoughts?

I'd async to get the count and update via dispatcher.  The other thing to think about is how to calculate it once if PT Run is visible vs multiple times on result updating  Typing: r, re, rec shouldn't each do a calculation.
thoughts?

Thus solution sounds a bit complicated. Don't think I can implement this.
But I will definitely create a PR to fix two other bugs:

PT hangs on deleting a huge amount of files.
The progress UI isn't showing correctly sometimes.

@crutkas
I think I will implement it in the first step with disabled "count/size code". And I will include two fixes.
Is there an example for the dispatcher thing in our code I can look at to adapt it? (cc: @stefansjfw, @davidegiacometti)

@crutkas
I think I will implement it in the first step with disabled "count/size code". And I will include two fixes.
Is there an example for the dispatcher thing in our code I can look at to adapt it? (cc: @stefansjfw, @davidegiacometti)

I did lots of tests with around 60,000 files to evaluate how we can implement multi threading. The problem is that the calculation needs a huge amount of system resources. You can try this by yourself with opening Recycle Bin after deleting 60,000 files.
I think we should not implement the counter, even if I like the idea. Thoughts?

i'm OK not implementing the counter.  The resources is one aspect, the delay at calculating size was the larger issue.
For invoking the dispatcher from a plugin, i'd have to go quickly look  This would have to be very carefully written also incase it wasn't in the DOM anymore

i'm OK not implementing the counter.  The resources is one aspect, the delay at calculating size was the larger issue.
For invoking the dispatcher from a plugin, i'd have to go quickly look  This would have to be very carefully written also incase it wasn't in the DOM anymore

I created a code that comes without delay and instead returns "many" after a few seconds. But the resource consumption was so high that the whole system slows down.
I will create a PR tomorrow including some improvements for the deletion process to not block PT Run.

This feature was included in the 0.67 release.


How to initialize Accelerator twice but with different setup within the same code ?

System Info
Hello I want to initialize accelerate once for the training and another time for the inference.

Looks like it does not work and the error message is not clear. Is there a way to reset the previously initialized accelerate and then initialize with inference setup?

For training  I am doing :
    accelerator = Accelerator(kwargs_handlers=[process_group_kwargs])
    model,test_loader, valid_loader, optimizer, scheduler = accelerator.prepare(
                model, test_loader, valid_loader, optimizer, scheduler)

For inference I want to do: accelerator = Accelerator()
model, valid_loader, optimizer = eval_accelerator.prepare(model, valid_loader, optimizer)

For inference, I do no want to use optimizer but I get error as I am using zero_stage: 1, So I used the optimizer I used during training. But then I was getting batch size error for the valid set then I prepare the valid loader one more time after initializing the Accelerator. Still during inference I am getting error on the preparation.

Any idea how to fix this?

Information

[ ] The official example scripts
[X] My own modified scripts

Tasks

[ ] One of the scripts in the examples/ folder of Accelerate or an officially supported no_trainer script in the examples folder of the transformers repo (such as run_no_trainer_glue.py)
[X] My own task or dataset (give details below)

Reproduction

Initialize Accelerator for training
Once the training is done, initialize again for the inference.

Expected behavior
I just want to prepare the accelerate for the inference task once the training is done.

It is generally not recommended to initialize Accelerator twice in the same process. You could try if calling AcceleratorState._reset_state() works for you but beware that this is outside of how accelerate should be used normally.


Option to use the new Component solution

Hi,
As angular 1.5 have been released, there is also the option to start using components instead of directives. https://docs.angularjs.org/guide/component
Would be cool to implement it on ng classify :)

+1

+1


Provisioning of GKE-Cluster not working (configured proxy)

What kind of request is this (question/bug/enhancement/feature request):
BUG
Steps to reproduce (least amount of steps as possible):
Don't know if this is related to our proxy

Configure a http-proxy in Rancher Helm-Chart
a. proxy: http://techproxy.<domain>.local:80
b. noProxy: <IP_ADDRESS>/8,<IP_ADDRESS>/8,<IP_ADDRESS>/12,<IP_ADDRESS>/16
Generate a valid ServiceAccount in the GCP
Create GKE Cluster through UI (we disabled stackdriver monitoring and logging)

Result:

"Provisioning cluster c-hb67b....."

Cluster is up in GKE

"Waiting for API to be available"

No cluster and node agent ressources are deployed in the GKE Cluster

"Waiting for API to be available" infinitely
Is it prossible that the proxy is not applied to some sub-container during cluster creation or sth?
Other details that may be helpful:

No Rancher cluster and node agent ressources are deployed to the GKE Cluster

The endpoint url (from the logs below) can be curled and accessed from within the rancher pod. The proxy vars are set there correctly.

The GKE Cluster is being deleted if I trigger the deletion in Rancher

Rancher logs flooding with the following

19/08/06 08:31:42 [INFO] Stopping cluster agent for c-hb67b
2019/08/06 08:31:42 [ERROR] ClusterController c-z8rqx [user-controllers-controller] failed with : failed to start user controllers for cluster c-hb67b: failed to contact server: Get https://<gke-endpoint>/api/v1/namespaces/kube-system?timeout=30s: proxyconnect tcp: waiting for cluster agent to connect
2019/08/06 08:31:43 [INFO] Stopping cluster agent for c-hb67b
2019/08/06 08:31:43 [ERROR] ClusterController c-vnrwk [user-controllers-controller] failed with : failed to start user controllers for cluster c-hb67b: failed to contact server: Get https://<gke-endpoint>/api/v1/namespaces/kube-system?timeout=30s: proxyconnect tcp: waiting for cluster agent to connect
2019/08/06 08:31:43 [INFO] Stopping cluster agent for c-hb67b
2019/08/06 08:31:43 [ERROR] ClusterController c-vnrwk [user-controllers-controller] failed with : failed to start user controllers for cluster c-hb67b: failed to contact server: Get https://<gke-endpoint>/api/v1/namespaces/kube-system?timeout=30s: proxyconnect tcp: waiting for cluster agent to connect
...

Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): 2.2.6
Installation option (single install/HA): HA

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported): Hosted GKE
Machine type (cloud/VM/metal) and specifications (CPU/memory): cloud
Kubernetes version (use kubectl version): 1.13.7

Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.7", GitCommit:"4683545293d792934a7a7e12f2cc47d20b2dd01b", GitTreeState:"clean", BuildDate:"2019-06-06T01:46:52Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13+", GitVersion:"v1.13.7-gke.8", GitCommit:"7d3d6f113e933ed1b44b78dff4baf649258415e5", GitTreeState:"clean", BuildDate:"2019-06-19T16:37:16Z", GoVersion:"go1.11.5b4", Compiler:"gc", Platform:"linu
x/amd64"}

Docker version (use docker version):

18.09.6

Reproduced the issue in v2.2.8 following the steps above but provisioning an EKS cluster instead.
The only logged error is:

2019/09/19 12:27:22 [ERROR] ClusterController c-9nc2j [user-controllers-controller] failed with : failed to start user controllers for cluster c-9nc2j: failed to contact server: Get https://REDACTED.gr7.eu-central-1.eks.amazonaws.com/api/v1/namespaces/kube-system?timeout=30s: proxyconnect tcp: waiting for cluster agent to connect

The EKS Kubernetes cluster does have the cattle-system namespace, but it is empty.
This all points to the the issue occurring during generating and deploying the Rancher agent YAML.
I was able to deploy the Rancher agent YAML manually, which caused the cluster to become healthy.

+1

+1

@tuxmonteiro @ChrisHaPunkt do you have `localhost,<IP_ADDRESS>' added to NO_PROXY? Rancher uses localhost connection to run kubectl apply to deploy cluster-agent https://github.com/rancher/rancher/blob/f139213011c9cdffd0baecaf1ac26c9fb85ec2b9/pkg/clustermanager/manager.go#L462 , and I wonder if that request tries to go through proxy and fails.

The root cause is: cluster gets stuck at the user controller registration point. Cluster/node agent kubectl deployment gets called after user controllers are registered, and that never happens.
The reason for the user controller registration failure is in the way we build the dialer to the hosted k8s clusters. All the requests should go directly to hosted k8s api endpoint, but this condition will never be true if proxy environment is set:
https://github.com/rancher/rancher/blob/master/pkg/dialer/factory.go#L139
address will be a proxy ip address, and hostPort is the k8s api endpoints, and they'll never match

The bug is reproduced in Rancher:v2.3.3
Steps:

run Rancher behind a proxy
add a GKE cluster from Rancher's UI

Results:

the cluster is created and active in Google's console
the namespace cattle-system is created in the cluster with no pods in it
The cluster is stuck in Waiting for API to be available in Rancher
Rancher logs shows the error:

2019/12/09 22:16:25 [ERROR] ClusterController _all_ [user-controllers-controller]
failed with : failed to start user controllers for cluster c-whvph: failed to
contact server: Get https://<IP_ADDRESS>/api/v1/namespaces/kube-systemtimeout=30s: proxyconnect tcp:
waiting for cluster agent to connect

The bug fix is validated in master-head ed99b31be
Steps:

run Rancher behind a proxy
add a GKE cluster from Rancher's UI

Results:

the cluster is active in Rancher
can deploy workloads
can access to the kubectl via UI

The bug fix is validated in v2.3-head 7195064f9
Steps:

run Rancher behind a proxy
add a GKE cluster from Rancher's UI

Results:

the cluster is active in Rancher
no error in Rancher log
can deploy workloads
can access to the kubectl via UI

Hello everyone. I have the same issue with Rancher for GKE. How can I setup rancher again from scratch. I had tried delete and add again but I had no successful result.


Loading "error" event does not fire

The (load) event seems to always fire -- even if the URL is faulty/null -- and the (error) event seems to never fire. Is that intended this way?
I have a use case in which it's important to know if the image has loaded correctly. I'm loading an avatar and if it fails, I display a different DOM element with the user's name initial:
<img-loader useImg [hidden]="!loaded" [src]="..." (load)="loaded=true" (error)="loaded=false; loadError=true"></img-loader>
<div [hidden]="loaded && !loadError">{{ user.name | slice:0:1 }}</div>
I cannot get this to work as the (load) event seems to always fire and the (error) event seems to never fire. Am I doing something wrong?

I just found a way to determine a loading error by specifying a fallback URL and then checking as follows:
onLoad(imgLoader: ImgLoader) {
  this.loaded = imgLoader.element.attributes['src'].value !== fallbackUrl;
}

However, this isn't very elegant. May I suggest to have the <img-loader> pass on its <img> element's (load) event binding?

This workaround isn't doing it for me. The src attribute isn't consistently updated when it is checked in the event handler. Exposing the (error) event is definitely the correct solution.

+1

you can add the (error) event by the  [imgAttributes] attribure like this:
[imgAttributes]="[{element: (error), value: 'onError($event)'}]"

you can add the (error) event by the [imgAttributes] attribure like this:
[imgAttributes]="[{element: (error), value: onError()}]"

you can add the (error) event by the [imgAttributes] attribure like this:
[imgAttributes]="[{element: (error), value: onError()}]"

+1
i tried to add the (error) event by the [imgAttributes] attribure like this:
[imgAttributes]="[{element: (error), value: onError()}]"
but it didn't worked correctly


Build Chromium

Progress?

I should probably just move this to done.  Not sure what can be reviewed on this one.


Send deployment event when update or rollback

@JosephGoulden
Sorry about last PR, the self is a conflict.  I will wait until all green from bors. :pray:
Please help me review it again.

This is the output I get. I don't think it makes sense to show a KLD version for the cockroach nodes, given they don't have KLD on them...
[db-00]
kld-version: 0.1.0
git-sha: d0b168c8cdba50356babf683d4f8c7a2e7e2e146
git-commit-date:<PHONE_NUMBER>3011

[db-01]
kld-version: 0.1.0
git-sha: d0b168c8cdba50356babf683d4f8c7a2e7e2e146
git-commit-date:<PHONE_NUMBER>3011

[kld-00]
kld-version: 0.1.0
git-sha: d0b168c8cdba50356babf683d4f8c7a2e7e2e146
git-commit-date:<PHONE_NUMBER>3011
bitcoind-version: v24.0.1


Limit concurrency when running git ... to 1

It will slow down cloning git repositories.

This should fix issue #447 both locally or on CI.

TODO: A better alternative would be to retry upon failure.

Not sure why MacOS CI failed, but it seems unrelated.
I'll go ahead and merge.


Questions about teacher models

Anyone have an idea about why CenterPoint and PointPillar are the worse teacher models than SECOND, even if they perform better than SECOND?

Thank for your reply!


RefreshSegmentTask - Support for scheduling adhoc tasks

PR https://github.com/apache/pinot/pull/14300/files added support for automatic segment refreshes.
This PR adds support for scheduling ad-hoc RefreshSegment tasks.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 0.00%. Comparing base (59551e4) to head (f19a850).
Report is 1424 commits behind head on master.

:exclamation:  There is a different number of reports uploaded between BASE (59551e4) and HEAD (f19a850). Click for more details.
HEAD has 53 uploads less than BASE

Flag
BASE (59551e4)
HEAD (f19a850)

integration
7
1

integration2
3
1

temurin
12
1

java-21
7
1

skip-bytebuffers-true
3
1

skip-bytebuffers-false
7
0

unittests
5
0

unittests1
2
0

java-11
5
0

unittests2
3
0

integration1
2
0

custom-integration1
2
0

Additional details and impacted files
@@              Coverage Diff              @@
##             master   #14596       +/-   ##
=============================================
- Coverage     61.75%    0.00%   -61.76%
=============================================
  Files          2436        3     -2433
  Lines        133233        6   -133227
  Branches      20636        0    -20636
=============================================
- Hits          82274        0    -82274
+ Misses        44911        6    -44905
+ Partials       6048        0     -6048

Flag
Coverage Δ

custom-integration1
?

integration
0.00% <ø> (-0.01%)
:arrow_down:

integration1
?

integration2
0.00% <ø> (ø)

java-11
?

java-21
0.00% <ø> (-61.63%)
:arrow_down:

skip-bytebuffers-false
?

skip-bytebuffers-true
0.00% <ø> (-27.73%)
:arrow_down:

temurin
0.00% <ø> (-61.76%)
:arrow_down:

unittests
?

unittests1
?

unittests2
?

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Get access to node metadata when processing a request in lua

Is it possible to access the metadata of a node when processing a request in lua?
https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/core/v3/base.proto#envoy-v3-api-msg-config-core-v3-node

Now it is not supported in Lua, but if it is reasonable, we can support it. cc @wbpcode

SGTM.