bluetooth.btcommon.BluetoothError: error communicating with local bluetooth adapter

Home Assistant release with the issue:
0.93.2
Last working Home Assistant release (if known):
0.93.1
Operating environment (Hass.io/Docker/Windows/etc.):
rapbian stretch lite with hassio docker and using the internal bluetooth chip (no usb dongle)
Component/platform:
Raspberry pi 3
Description of problem:
When I boot my raspberry it detects bluetooth devices and after 1 minute it trows an error:
Error looking up Bluetooth device
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/bluetooth/bluez.py", line 31, in discover_devices
    lookup_class=lookup_class, device_id=device_id)
_bluetooth.error: (110, 'Operation timed out')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/bluetooth_tracker/device_tracker.py", line 94, in update_bluetooth_once
    for dev in discover_devices():
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/bluetooth_tracker/device_tracker.py", line 52, in discover_devices
    lookup_class=False, device_id=device_id)
  File "/usr/local/lib/python3.7/site-packages/bluetooth/bluez.py", line 34, in discover_devices
    raise BluetoothError ("error communicating with local "
bluetooth.btcommon.BluetoothError: error communicating with local bluetooth adapter

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
- platform: bluetooth_tracker
  #interval_seconds: 15
  #consider_home: 150
  new_device_defaults:
    track_new_devices: False

perhaps related:
https://github.com/home-assistant/home-assistant/issues/24045
https://github.com/home-assistant/home-assistant/issues/16698
Crossposted: https://github.com/raspberrypi/firmware/issues/1152

Some update, with HA 104.3 and HASS.IO 195 on Raspberry Pi 4B error still occurs:
Mon Feb 03 2020 17:14:11 GMT+0100 (Central European Standard Time)
Error looking up Bluetooth device
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/bluetooth/bluez.py", line 31, in discover_devices
    lookup_class=lookup_class, device_id=device_id)
_bluetooth.error: (4, 'Interrupted system call')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/bluetooth_tracker/device_tracker.py", line 140, in perform_bluetooth_update
    devices = await hass.async_add_executor_job(discover_devices, device_id)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/bluetooth_tracker/device_tracker.py", line 62, in discover_devices
    device_id=device_id,
  File "/usr/local/lib/python3.7/site-packages/bluetooth/bluez.py", line 34, in discover_devices
    raise BluetoothError ("error communicating with local "
bluetooth.btcommon.BluetoothError: error communicating with local bluetooth adapter

yah i have this also:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/bluetooth/bluez.py", line 30, in discover_devices
    results = _bt.hci_inquiry (sock, duration=duration, flush_cache=True,
_bluetooth.error: (4, 'Interrupted system call')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/bluetooth_tracker/device_tracker.py", line 140, in perform_bluetooth_update
    devices = await hass.async_add_executor_job(discover_devices, device_id)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/bluetooth_tracker/device_tracker.py", line 57, in discover_devices
    result = bluetooth.discover_devices(
  File "/usr/local/lib/python3.8/site-packages/bluetooth/bluez.py", line 34, in discover_devices
    raise BluetoothError ("error communicating with local "
bluetooth.btcommon.BluetoothError: error communicating with local bluetooth adapter


ZFP test fails with HIP

Tried building zfp/feature-hip-support following the instructions in #142. With a bit of changes system specific changes here and there (for eg. letting the build find the right hipCUB etc CMake file for Rocm 5.0), I was able to get a successful build on a system with AMD MI100 GPUS.
Test: testHip - Success
[==========] Running 2 test(s).
[ RUN      ] given_withHip_when_4dCompressHipPolicy_expect_noop
[       OK ] given_withHip_when_4dCompressHipPolicy_expect_noop
[ RUN      ] given_withHip_when_4dDecompressHipPolicy_expect_noop
[       OK ] given_withHip_when_4dDecompressHipPolicy_expect_noop
[==========] 2 test(s) run.
[  PASSED  ] 2 test(s).

Test: testZfpHip3dFloat - Fail
[==========] Running 13 test(s).
[ RUN      ] when_seededRandomSmoothDataGenerated_expect_ChecksumMatches
[       OK ] when_seededRandomSmoothDataGenerated_expect_ChecksumMatches
[ RUN      ] given_Hip_3dFloatArray_when_ZfpCompressDecompressFixedRate_expect_BitstreamAndArrayChecksumsMatch
                                Fixed rate param: 8
                                        Compress time (s): 0.210157
                                        Decompress time (s): 0.010475
                                Fixed rate param: 16
                                        Compress time (s): 0.002225
                                        Decompress time (s): 0.002265
                                Fixed rate param: 32
                                        Compress time (s): 0.001949
                                        Decompress time (s): 0.002587
[       OK ] given_Hip_3dFloatArray_when_ZfpCompressDecompressFixedRate_expect_BitstreamAndArrayChecksumsMatch
[ RUN      ] given_Hip_3dFloatArray_when_ZfpCompressFixedPrecision_expect_BitstreamAndArrayChecksumsMatch
                                Fixed precision param: 8
                                        Compress time (s): 0.013345
                                Fixed precision param: 16
                                        Compress time (s): 0.001646
                                Fixed precision param: 32
                                        Compress time (s): 0.001827
[       OK ] given_Hip_3dFloatArray_when_ZfpCompressFixedPrecision_expect_BitstreamAndArrayChecksumsMatch
[ RUN      ] given_Hip_3dFloatArray_when_ZfpCompressFixedAccuracy_expect_BitstreamAndArrayChecksumsMatch
                                Fixed accuracy param: 0.500000
                                        Compress time (s): 0.001732
                                Fixed accuracy param: 0.250000
                                        Compress time (s): 0.001559
                                Fixed accuracy param: 0.062500
                                        Compress time (s): 0.001659
[       OK ] given_Hip_3dFloatArray_when_ZfpCompressFixedAccuracy_expect_BitstreamAndArrayChecksumsMatch
[ RUN      ] given_Hip_3dFloatReversedArray_when_ZfpCompressDecompressFixedRate_expect_BitstreamAndArrayChecksumsMatch
                                Fixed rate param: 8
"Memobj map does not have ptr"
Aborted (core dumped)

I also modified the simple.c to compress and decompress with fixed rate bits per value of 8 (Compression Ratio 4 for float). While running he compression with execution policy: zfp_exec_hip, I get the following error:
"Invalid DeviceId less than 0"
Aborted (core dumped)

I believe from the output of testZfpHip3dFloat and it's other counterparts that (de)compression is happening fine and the error that I see w.r.t segfault is different that what I see in the case of modified simple.c for Hip execution policy.
Overall on the snapshot of zfp I am using (https://github.com/LLNL/zfp/commit/03ad1ee6c2b9de20f1af97705edc83dbab5fa296) testexec reports the following summary:
299 of 1728 tests failed
  all 864 serial tests passed
  299 of 864 HIP tests failed

Any ideas why the tests could be failing? I will anyway see in the source code of the tests to dig a bit deep!

There are some known issues with the variable-rate modes that may cause some testexec tests to fail, but I'm not aware of fixed-rate mode failing.  However, I believe we have not yet tested zfp with ROCM 5.0.  I'd like to try to reproduce this issue.  Can you please let us know what changes you made for ROCM 5.0 and include your modified simple.c?
PS. I'm on vacation this week and will not have much time to work on this until next week.

@data-panda Can you please share your relevant changes so we can attempt to reproduce and debug this issue?
Some of the ROCM 5.0 build issues are likely to be addressed on PR #161, but we're not quite yet ready to merge it.

@lindstro After a bit of tinkering around I reached a state where I am seeing all "fixed rate" tests passing even the HIP ones. So I am trying to see and include some changes from the unit test: testexec into my changed simple.c. Unfortunately the system with MI100 is being taken down for a scheduled maintenance activity today. I will post the outcomes and irrespective of success and failure will also share the modified simple.c by this week end!

@data-panda Would be great if you could share your changes and results so we can start looking into this issue on our end.

closing this for now as we are working in AMD dev team to address this. Will post the update and re-open if needed!


Changes to work with pymongo 2.4 or higher which is required for MongoDB 2.2

Removed _connect=false - For pymongo 2.4 or above, connection fails if you have replicaset cluster. Moreover I don't understand why you would want the models with out having mongo running.

Changed the deprecated Connection module to MongoClient

Bumped the version to internal number so that it would be easy upgrade if there is 0.2.9 GA

4 Changed pymongo required version to >= 2.4

Looks good, thanks!


No mention of the -RestoreTargetFolder parameter

I would submit a PR but in this case I don't want to get anything wrong since I'm not in the insider's circle there.  Please add this parameter to the doc.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 21b1cd9d-df2e-d4d6-52e2-d3fbdfb9db9f
Version Independent ID: e675173d-290a-dee0-62a4-5485cf3d2570
Content: Restore-RecoverableItems (ExchangePowerShell)
Content Source: exchange/exchange-ps/exchange/Restore-RecoverableItems.md
Service: exchange-powershell
GitHub Login: @chrisda
Microsoft Alias: chrisda

@JeremyTBradshaw, the parameter has been added to the topic per the referenced pull request. Feel free to add a description using the GitHub backend version of the topic (updated topic likely won't publish to docs.microsoft.com until Tu 1/3 earliest):
https://github.com/MicrosoftDocs/office-docs-powershell/blob/main/exchange/exchange-ps/exchange/Restore-RecoverableItems.md
Instructions for how to edit are here. Be sure to @ include me in your pull request.
Also, I discovered another parameter named PolicyTag, which I also added. Feel free to add a description for that one, too if you know what it's for.

Hi @chrisda just FYI that I have seen your message and do intend to do as suggested.  Just have been busy.  Will get the PR submitted within the next few days for sure.

@JeremyTBradshaw


TETP-256: Fix login page title

Description :sparkles:
Do not set the title explicitly for login page.
Issues :bug:
Testing :alembic:
Screenshots :camera_flash:
Additional notes :spiral_notepad:

Codecov Report

Merging #1222 (1e9d035) into develop (46413c8) will decrease coverage by 36.70%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##           develop    #1222       +/-   ##
============================================
- Coverage    63.16%   26.46%   -36.71%
============================================
  Files         1002       70      -932
  Lines        27491     1130    -26361
  Branches      2891      180     -2711
============================================
- Hits         17364      299    -17065
+ Misses        9684      784     -8900
+ Partials       443       47      -396

Impacted Files
Coverage Δ

frontend/tet/admin/src/pages/login.tsx
0.00% <ø> (ø)

backend/shared/shared/audit_log/tasks.py

backend/benefit/users/utils.py

.../kesaseteli/applications/migrations/0013_school.py

...oks/application/useGetApplicationFormFieldLabel.ts

frontend/shared/src/utils/date.utils.ts

backend/kesaseteli/common/tests/conftest.py

...plications/applicationList/listItem/ListItem.sc.ts

...nd/benefit/calculator/tests/test_calculator_api.py

... and 924 more

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 46413c8...1e9d035. Read the comment docs.


Cross-signing freezes on real account

[ ] Just after new sign-in
[ ] When opening Settings > Security

On my  account, [RecentsDataSource refreshRoomsSections] is called 2091 times in 2min12 just after signing in.


Update package dependencies to latest stable version

Latest stable versions of dependencies:

adapter-rxjava2 v2.7.2
assisted-inject-annotations-dagger2 v0.5.2
assisted-inject-processor-dagger2 v0.5.2
converter-moshi v2.7.2
core-ktx v1.2.0
dagger v2.27
dagger-compiler v2.27
epoxy v3.9.0
fragment-ktx v1.2.3
junit v4.13
kotlin-stdlib-jdk8 v1.3.50
lifecycle-extensions v2.2.0
mockito-kotlin v2.2.0
moshi v1.9.2
moshi-kotlin v1.9.2
moshi-kotlin-codegen v1.8.2
navigation-fragment-ktx v2.2.1
navigation-ui-ktx v2.2.1
picasso v2.71828
recyclerview v1.1.0
retrofit v2.7.2
robolectric v4.3
room-compiler v2.2.0
room-runtime v2.2.0
room-rxjava2 v2.2.0
rxjava v2.2.9

is supporting RxJava3 not yet?

We have not started work to support rxjava3, but would like to in the future

@elihart the problem is if/when JetBrains will support officially kotlinx-coroutines-rx3 as they already do for kotlinx-coroutines-rx2.
Otherwise, instead of building it over coroutines (PR #347), it will be required maintain two distinct code bases.


[stable/prometheus-operator] add udp protocol support for alertmanager NodePort service

Is this a new chart
No
What this PR does / why we need it:
When joining alertmanager to external cluster it is required to have both UDP and TCP enabled for gossip to function properly.
See - https://github.com/prometheus/alertmanager#high-availability

Important: Both UDP and TCP are needed in alertmanager 0.15 and higher for the cluster to work.

Checklist

[x] DCO signed
[x] Chart Version bumped
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

/assign @vsliouniaev

/hold
Let’s hold PRs to prometheus-operator for a short time until https://github.com/prometheus-community/community/issues/28#issuecomment-672933972 is resolved. If you want to help with that effort, to test etc, that would be great!

🚧 This chart is now deprecated.
Further development has moved to prometheus-community/helm-charts. The chart has been renamed kube-prometheus-stack to more clearly reflect that it installs the kube-prometheus project stack, within which Prometheus Operator is only one component.
If applicable, please re-open this PR there. Thanks!


TW:Build Send / Receive UI workflow for iOS

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

For Jan/27/2023 milestone, iOS verifier (receiver) is out of scope.


Mutation operations should be excluded

I'm submitting a ...
[ ] bug report
[x] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

Summary
Mutation operations should be excluded because they are not required by the SWR specification.

@croutonn I'm curious if you think this still applies today given swr now has https://swr.vercel.app/docs/mutation#useswrmutation.


set CI for documentation

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@26402ee). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #8   +/-   ##
=======================================
  Coverage        ?   66.48%
=======================================
  Files           ?        4
  Lines           ?      188
  Branches        ?        0
=======================================
  Hits            ?      125
  Misses          ?       63
  Partials        ?        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 26402ee...f142a40. Read the comment docs.

Hi Rohit,
As part of the redesign and the other PR I've already set up CI for documenter etc. Not sure if that's enough or not?
Cheers

Hi Rohit,
As part of the redesign and the other PR I've already set up CI for documenter etc. Not sure if that's enough or not?
Cheers

Hi @louisponet , I had seen but that was not enough. Now using this template we can move forward without any problems.
Thank you!

Ok, what was missing?

BTW my doctests won't work on julia 1.2


Change stat collection info from tooltip to label

Preview of new stats collection info.

@danwom , not sure if we want to attach the screenshoot given it may provide sensitive information for others.

@feng-tao the screenshot I provided was with mock data. I also changed the location/style of info text to the bottom.

thanks @danwom , the screenshot lgtm


Add an action 'Open in Portal' for 'Deployments' context menu

OS: All
Node.js: V8.12.0
Build Number: 20181201.9
Repro Steps:

Expand one function app ->Right click 'Deployments' node -> Check the context menu.

Expect:
There shows an action 'Open in Portal' on the context menu.
Actual:
There is no action 'Open in Portal' on the context menu.

Added "Deployments" to existing issue. Now closing this as duplicate of https://github.com/Microsoft/vscode-azurefunctions/issues/90


Feature : bind click / item selected on OptionMenu

I'm using Toolbar with OptionMenu, the usual way to do a "click action" on OptionMenu for example is
@Override
    public boolean onOptionsItemSelected(MenuItem item) {
        Intent intent;

        switch (item.getItemId()) {
            case R.id.action_settings:
                intent = new Intent(this, SettingsActivity.class);
                startActivity(intent);
                break;
        }

        return true;
    }

AFAIK butterknife didn't have feature to bind click this thing, so I think it will be great if butterknife could do @OnOptionsItemSelected(R.id.action_settings)

This was proposed in #41 and rejected since it's not view-related. Even more specifically, it only works when the source is an activity or a fragment, and even in that case there's no way to hook into the callback without requiring the user to call back into ButterKnife.


Can't connect to ONVIF when camera is not in the same network

Description
Hi,
I've 2 TAPO cameras, one on the local network (of the home assistant instance) and one remote, the local one works perfectly, the remote one works 50%, stream works perfectly but the onvif (motion sensor) doesn't.
I get this error logs:
2022-11-17 21:45:48.590 ERROR (MainThread) [custom_components.tapo_control] Unexpected error fetching Tapo resource status data: All connection attempts failed
Traceback (most recent call last):
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.9/site-packages/anyio/_core/_sockets.py", line 164, in try_connect
    stream = await asynclib.connect_tcp(remote_host, remote_port, local_address)
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 1691, in connect_tcp
    await get_running_loop().create_connection(
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/asyncio/base_events.py", line 1065, in create_connection
    raise exceptions[0]
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/asyncio/base_events.py", line 1050, in create_connection
    sock = await self._connect_sock(
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/asyncio/base_events.py", line 961, in _connect_sock
    await self.sock_connect(sock, address)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/asyncio/selector_events.py", line 500, in sock_connect
    return await fut
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/asyncio/selector_events.py", line 535, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('<IP_ADDRESS>', 2020)

The thing is, that IP address (<IP_ADDRESS>) is wrong since it's the remote camera (when setting it up I'm using a dyndns domain name) so it seems it's trying to connect to the "local" address (in the remote network) which I never typed anywhere and I've no idea where it got it from.
If I check the open ports all of them seem to be working fine, example:
fab@MBP-Fab ~ [1]> nc -vz xxx.ddns.net 2020
Connection to xxx.ddns.net port 2020 [tcp/xinupageserver] succeeded!

Reproduction Steps

setting up a camera which is not in the same network of the home assistant

Expected behavior
stream and onvif work
If applicable, add error logs.
No response
Device Firmware
latest available
Using stream component
Yes
Does camera work via official integrations?
Yes
Camera has all attributes filled out in developer tools
No
HASS Environment
HA core on dietPi
Search for similar issues
Yes
Additional information
No response

Camera does work remotely as expected. It uses the same IP or hostname you specify for 443, 2020 and rtsp. It also has no way how to get local ip of the camera. The error you see is not related to this issue and probably comes from you testing stuff or adding that IP before.
On a side note, port forwarding your camera is really really bad idea.

That is precisely why i opened this.. marking it as complete doesn’t help anybody. Also if i added that ip previously what does it mean? I can never add any other ip ever? I don’t think so.
That ip was added and deleted, the new configuration has nothing to do with that one that, as i said, was deleted and recreated from scratch.
So something is stuck somewhere.

The log you added is not relevant to the issue at all as it is for something completely different from the past.

That log gets created the moment i hit the reconfigure button on the home assistant devices button.
Also I already grepped everywhere for that wrong IP and there’s nothing anywhere (unless it’s somewhere binary or encryped)

marking it as complete doesn’t help anybody

The issue board on GitHub is for issues with the integration. So far this looks like issue with your network. Just keeping things clean. If this proves to be an integration issue I will reopen this and fix it 🙂

Uninstall the integration and remove any mention of tapo_control objects from all jsons inside .storage.
Restart home assistant
Install integration
Add camera

As i posted the nectat you can see the connection works fine. The only not working thing is the onvif which is the logged errors. The stream works perfect.
to me there’s some cache based on the device id or something

Please follow the steps I sent above, otherwise I cannot help you.

getting back, removed all the tapo devices, removed the integration, cleaned everything (tapo_control related) in .storage, restarted and readded and the error still appears :-(
2022-11-18 09:05:06.986 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: All connection attempts failed
2022-11-18 09:05:10.069 ERROR (MainThread) [custom_components.tapo_control] Unexpected error fetching Tapo resource status data: All connection attempts failed
Traceback (most recent call last):
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.9/site-packages/anyio/_core/_sockets.py", line 164, in try_connect
    stream = await asynclib.connect_tcp(remote_host, remote_port, local_address)
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 1691, in connect_tcp
    await get_running_loop().create_connection(
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/asyncio/base_events.py", line 1065, in create_connection
    raise exceptions[0]
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/asyncio/base_events.py", line 1050, in create_connection
    sock = await self._connect_sock(
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/asyncio/base_events.py", line 961, in _connect_sock
    await self.sock_connect(sock, address)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/asyncio/selector_events.py", line 500, in sock_connect
    return await fut
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/asyncio/selector_events.py", line 535, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('<IP_ADDRESS>', 2020)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpcore/_exceptions.py", line 8, in map_exceptions
    yield
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpcore/backends/asyncio.py", line 109, in connect_tcp
    stream: anyio.abc.ByteStream = await anyio.connect_tcp(
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.9/site-packages/anyio/_core/_sockets.py", line 222, in connect_tcp
    raise OSError("All connection attempts failed") from cause
OSError: All connection attempts failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions
    yield
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
    resp = await self._pool.handle_async_request(req)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 253, in handle_async_request
    raise exc
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 237, in handle_async_request
    response = await connection.handle_async_request(request)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpcore/_async/connection.py", line 86, in handle_async_request
    raise exc
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpcore/_async/connection.py", line 63, in handle_async_request
    stream = await self._connect(request)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpcore/_async/connection.py", line 111, in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpcore/backends/auto.py", line 29, in connect_tcp
    return await self._backend.connect_tcp(
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpcore/backends/asyncio.py", line 109, in connect_tcp
    stream: anyio.abc.ByteStream = await anyio.connect_tcp(
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/contextlib.py", line 137, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpcore/_exceptions.py", line 12, in map_exceptions
    raise to_exc(exc)
httpcore.ConnectError: All connection attempts failed

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/helpers/update_coordinator.py", line 205, in _async_refresh
    self.data = await self._async_update_data()
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/helpers/update_coordinator.py", line 164, in _async_update_data
    return await self.update_method()
  File "/mnt/dietpi_userdata/homeassistant/custom_components/tapo_control/__init__.py", line 206, in async_update_data
    ] = await setupEvents(hass, entry)
  File "/mnt/dietpi_userdata/homeassistant/custom_components/tapo_control/utils.py", line 363, in setupEvents
    if await events.async_start():
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/components/onvif/event.py", line 81, in async_start
    if await self.device.create_pullpoint_subscription():
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.9/site-packages/onvif/client.py", line 311, in create_pullpoint_subscription
    pullpoint = await events.CreatePullPointSubscription()
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.9/site-packages/zeep/proxy.py", line 64, in __call__
    return await self._proxy._binding.send_async(
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.9/site-packages/zeep/wsdl/bindings/soap.py", line 156, in send_async
    response = await client.transport.post_xml(
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.9/site-packages/zeep/transports.py", line 234, in post_xml
    response = await self.post(address, message, headers)
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.9/site-packages/zeep/transports.py", line 219, in post
    response = await self.client.post(
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpx/_client.py", line 1842, in post
    return await self.request(
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpx/_client.py", line 1527, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpx/_client.py", line 1614, in send
    response = await self._send_handling_auth(
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpx/_client.py", line 1642, in _send_handling_auth
    response = await self._send_handling_redirects(
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpx/_client.py", line 1679, in _send_handling_redirects
    response = await self._send_single_request(request)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpx/_client.py", line 1716, in _send_single_request
    response = await transport.handle_async_request(request)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
    resp = await self._pool.handle_async_request(req)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/contextlib.py", line 137, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions
    raise mapped_exc(message) from exc
httpx.ConnectError: All connection attempts failed
2022-11-18 09:05:23.207 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry xxxxxxxxxx.ddns.net for button
Traceback (most recent call last):
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/config_entries.py", line 365, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/components/button/__init__.py", line 66, in async_setup_entry
    return await component.async_setup_entry(entry)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/helpers/entity_component.py", line 161, in async_setup_entry
    raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-11-18 09:05:23.215 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry xxxxxxxxxxx.ddns.net for camera
Traceback (most recent call last):
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/config_entries.py", line 365, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/components/camera/__init__.py", line 410, in async_setup_entry
    return await component.async_setup_entry(entry)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/helpers/entity_component.py", line 161, in async_setup_entry
    raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-11-18 09:05:23.224 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry xxxxxxxxxxx.ddns.net for light
Traceback (most recent call last):
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/config_entries.py", line 365, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/components/light/__init__.py", line 618, in async_setup_entry
    return await component.async_setup_entry(entry)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/helpers/entity_component.py", line 161, in async_setup_entry
    raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-11-18 09:05:23.232 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry xxxxxxxxxxx.ddns.net for number
Traceback (most recent call last):
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/config_entries.py", line 365, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/components/number/__init__.py", line 117, in async_setup_entry
    return await component.async_setup_entry(entry)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/helpers/entity_component.py", line 161, in async_setup_entry
    raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-11-18 09:05:23.240 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry xxxxxxxxxxx.ddns.net for select
Traceback (most recent call last):
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/config_entries.py", line 365, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/components/select/__init__.py", line 62, in async_setup_entry
    return await component.async_setup_entry(entry)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/helpers/entity_component.py", line 161, in async_setup_entry
    raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-11-18 09:05:23.248 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry xxxxxxxxxxx.ddns.net for switch
Traceback (most recent call last):
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/config_entries.py", line 365, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/components/switch/__init__.py", line 83, in async_setup_entry
    return await component.async_setup_entry(entry)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/helpers/entity_component.py", line 161, in async_setup_entry
    raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-11-18 09:05:23.257 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry xxxxxxxxxxx.ddns.net for update
Traceback (most recent call last):
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/config_entries.py", line 365, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/components/update/__init__.py", line 115, in async_setup_entry
    return await component.async_setup_entry(entry)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/helpers/entity_component.py", line 161, in async_setup_entry
    raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-11-18 09:05:23.266 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry xxxxxxxxxxx.ddns.net for binary_sensor
Traceback (most recent call last):
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/config_entries.py", line 365, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/components/binary_sensor/__init__.py", line 169, in async_setup_entry
    return await component.async_setup_entry(entry)
  File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/helpers/entity_component.py", line 161, in async_setup_entry
    raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!

i've no idea where it gets the internal ip from :-\

Please enable debug logs for this integration and onvif from home assistant, reboot and send logs

And could you check if it works as expected via the Home Assistant onvif integration?

Also the onvif implementation has the same problem, but I think I found something.
there are 3 interesting logs, in the first one (http://obfuscated.ddns.net:2020/onvif/device_service) the system receives back the internal IP address.
then another call a bit later is done to the internal address:
2022-11-18 13:59:36.012 DEBUG (MainThread) [zeep.transports] HTTP Response from http://obfuscated.ddns.net:2020/onvif/device_service (status: 200):
b'<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <SOAP-ENV:Header />
   <SOAP-ENV:Body>
      <tds:GetCapabilitiesResponse>
         <tds:Capabilities>
            <tt:Analytics>
               <tt:XAddr>http://<IP_ADDRESS>:2020/onvif/service</tt:XAddr>
               <tt:RuleSupport>true</tt:RuleSupport>
               <tt:AnalyticsModuleSupport>true</tt:AnalyticsModuleSupport>
            </tt:Analytics>
            <tt:Device>
               <tt:XAddr>http://<IP_ADDRESS>:2020/onvif/service</tt:XAddr>
               <tt:Network>
                  <tt:IPFilter>false</tt:IPFilter>
                  <tt:ZeroConfiguration>false</tt:ZeroConfiguration>
                  <tt:IPVersion6>false</tt:IPVersion6>
                  <tt:DynDNS>false</tt:DynDNS>
                  <tt:Extension>
                     <tt:Dot11Configuration>true</tt:Dot11Configuration>
                  </tt:Extension>
               </tt:Network>
               <tt:System>
                  <tt:DiscoveryResolve>false</tt:DiscoveryResolve>
                  <tt:DiscoveryBye>true</tt:DiscoveryBye>
                  <tt:RemoteDiscovery>false</tt:RemoteDiscovery>
                  <tt:SystemBackup>false</tt:SystemBackup>
                  <tt:SystemLogging>false</tt:SystemLogging>
                  <tt:FirmwareUpgrade>false</tt:FirmwareUpgrade>
                  <tt:AutoRebootSupport>true</tt:AutoRebootSupport>
                  <tt:SupportedVersions>
                     <tt:Major>20</tt:Major>
                     <tt:Minor>6</tt:Minor>
                  </tt:SupportedVersions>
                  <tt:Extension>
                     <tt:HttpFirmwareUpgrade>false</tt:HttpFirmwareUpgrade>
                     <tt:HttpSystemBackup>false</tt:HttpSystemBackup>
                     <tt:HttpSystemLogging>false</tt:HttpSystemLogging>
                     <tt:HttpSupportInformation>false</tt:HttpSupportInformation>
                  </tt:Extension>
               </tt:System>
               <tt:IO />
               <tt:Security>
                  <tt:TLS1.1>false</tt:TLS1.1>
                  <tt:TLS1.2>false</tt:TLS1.2>
                  <tt:OnboardKeyGeneration>false</tt:OnboardKeyGeneration>
                  <tt:AccessPolicyConfig>false</tt:AccessPolicyConfig>
                  <tt:X.509Token>false</tt:X.509Token>
                  <tt:SAMLToken>false</tt:SAMLToken>
                  <tt:KerberosToken>false</tt:KerberosToken>
                  <tt:RELToken>false</tt:RELToken>
               </tt:Security>
            </tt:Device>
            <tt:Events>
               <tt:XAddr>http://<IP_ADDRESS>:2020/onvif/service</tt:XAddr>
               <tt:WSSubscriptionPolicySupport>true</tt:WSSubscriptionPolicySupport>
               <tt:WSPullPointSupport>true</tt:WSPullPointSupport>
               <tt:WSPausableSubscriptionManagerInterfaceSupport>false</tt:WSPausableSubscriptionManagerInterfaceSupport>
            </tt:Events>
            <tt:Imaging>
               <tt:XAddr>http://<IP_ADDRESS>:2020/onvif/service</tt:XAddr>
               <tt:WDRSupport>false</tt:WDRSupport>
               <tt:FlipSupport>false</tt:FlipSupport>
               <tt:RotateSupport>false</tt:RotateSupport>
            </tt:Imaging>
            <tt:Media>
               <tt:XAddr>http://<IP_ADDRESS>:2020/onvif/service</tt:XAddr>
               <tt:StreamingCapabilities>
                  <tt:RTPMulticast>false</tt:RTPMulticast>
                  <tt:RTP_TCP>true</tt:RTP_TCP>
                  <tt:RTP_RTSP_TCP>true</tt:RTP_RTSP_TCP>
               </tt:StreamingCapabilities>
            </tt:Media>
            <tt:Extension>
               <tt:DeviceIO>
                  <tt:XAddr />
                  <tt:VideoSources>0</tt:VideoSources>
                  <tt:VideoOutputs>0</tt:VideoOutputs>
                  <tt:AudioSources>1</tt:AudioSources>
                  <tt:AudioOutputs>0</tt:AudioOutputs>
                  <tt:RelayOutputs>0</tt:RelayOutputs>
               </tt:DeviceIO>
            </tt:Extension>
         </tds:Capabilities>
      </tds:GetCapabilitiesResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>'

--CUT--

2022-11-18 13:59:42.702 DEBUG (MainThread) [zeep.wsdl.wsdl] Adding service: MediaService
2022-11-18 13:59:42.836 DEBUG (MainThread) [zeep.transports] HTTP Post to http://<IP_ADDRESS>:2020/onvif/service:
b'<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-env="http://www.w3.org/2003/05/soap-envelope">
   <soap-env:Header>
      <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:UsernameToken>
            <wsse:Username>obfuscated</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">B6ue6+GQ9721BuFqZlZuknB67Sg=</wsse:Password>
            <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">hTQe56z4f0pngkeiiGeISQ==</wsse:Nonce>
            <wsu:Created xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2022-11-18T13:59:42+00:00</wsu:Created>
         </wsse:UsernameToken>
      </wsse:Security>
   </soap-env:Header>
   <soap-env:Body>
      <ns0:GetProfiles xmlns:ns0="http://www.onvif.org/ver10/media/wsdl" />
   </soap-env:Body>
</soap-env:Envelope>'

I guess the Device/XAddr is used to make that second call?

This integration reuses the functionality of Home Assistant onvif for events. In this case there is nothing I can do without reimplementing the whole thing.
I recommend opening issue with home assistant onvif integration.


fix-basestring-unicode-for-Python3-again

The syntax errors in #974 prevented flake8 from finding theses issues or they would have been fixed in #977 so now they will be fixed in this PR.

Coverage increased (+0.004%) to 72.006% when pulling b7ab9f6283febddc40745ede2876407b1949b179 on cclauss:unicode-to-six.text_type-again into 6d3d90396739a3b60bf85d5f1117df23b430f581 on Netflix:develop.

Nice progress but further headway blocked until Netflix-Skunkworks/cloudaux#60 or similar is merged.

Do me a favor and up the version number on this: https://github.com/Netflix-Skunkworks/cloudaux/blob/master/cloudaux/about.py
Then I'll merge it to PyPI. Though I'll probably do this on Monday since it's getting late.

Netflix-Skunkworks/cloudaux#64 or similar must be merged to make further progress.

@mikegrima Please review.

Will look into this now

CloudAux 1.4.8 pushed to PyPI.  @cclauss You'll need to modify setup.py to point to 1.4.8 for CloudAux.

Pushed 1.4.9 to PyPI.

@mikegrima I think that I have taken this PR as far as I can go without help from someone who really knows the code.  In its current state, the code in this PR passes all of the non-Python3 tests so you might want to review it and check it in.  It would be good if you or someone on your team could either can take over the Python 3 port from here or at least help me understand why the Python 3 Travis tests are stuck.

I'll take a look at this when I have some more time.


change widgetsize on click function

is it possible to change widget size on a click function
i want to implement the tiles/list view and in list view i need to resize the height of widget
any suggestions ???

You have the setSize method to resize the widget, just call it whenever you want it should work

i try out this one but on first time its not work after that it fine.
scenario
when i click on list view button i update the widget sizes and call this._onResize()

can you please tell me how to access setSize method

Check this one https://github.com/jaumard/ngx-dashboard/issues/20 you can access setSize directly from your widget

yes it works fine by using size function not setSize , i dont know why, maybe i have old version of repo
thanks


Initialize feedstock

Jira ticket: https://anaconda.atlassian.net/browse/PKG-700
Upstream repo: https://github.com/seanbrant/requests-wsgi-adapter
Changelog: https://pypi.org/project/requests-wsgi-adapter/#history

Linter check found the following problems:
The following problems have been found:
WARNING: /tmp/abs_2dertksmhz/clone/recipe/meta.yaml:44: missing_license_url: The recipe is missing a license_url
WARNING: /tmp/abs_2dertksmhz/clone/recipe/meta.yaml:44: missing_doc_source_url: The recipe is missing a doc_source_url
Warnings were found

We need to make some modifications to the skip section. In order to keep the same structure and consistency in all the packages we want to have two spaces between the word True and the symbol #
https://github.com/AnacondaRecipes/requests-wsgi-adapter-feedstock/blob/44be32105e52451065b4d86a9549f9c326134c14/recipe/meta.yaml#L13

This has been fixed. Thanks!


Use Jepsen blog indicating CRDB passed instead of failed

Re: Frequently Asked Questions
Issue Description
https://www.cockroachlabs.com/docs/stable/frequently-asked-questions.html#do-transactions-in-cockroachdb-guarantee-acid-semantics points to failed Jepsen test blog
Suggested Resolution
Point to https://www.cockroachlabs.com/blog/cockroachdb-beta-passes-jepsen-testing/ showing CRDB passed.
Update https://www.cockroachlabs.com/blog/diy-jepsen-testing-cockroachdb/ to the new linking showing CRDB passed.

@robert-s-lee, I moved the blog update to https://github.com/cockroachlabs/hugo-website/issues/456.


chore(Upgrade NodeJS versions): Change all references to NodeJS 14

Issue #, if available:
Closes #550
Description of changes:
Changed NODEJS_10_X and NODEJS_12_X to NODEJS_14_X in all tests and docs, upgrade snapshots accordingly
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: 1380029e4c41eefa358d2a54160a7df5e7f88483
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v1
Commit ID: 1380029e4c41eefa358d2a54160a7df5e7f88483
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: 8033797e977813dc2eef6d55c9609ff7f04d8fc7
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v1
Commit ID: 8033797e977813dc2eef6d55c9609ff7f04d8fc7
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: 20eef060b9ad36f505511c4ab6cd5fdf19d7f9a3
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v1
Commit ID: 20eef060b9ad36f505511c4ab6cd5fdf19d7f9a3
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

No functional change, just updating the NODE JS version for tests and docs. No reviewer is available, so gonna push it through myself.


Missing CMS KMS policy

When you use a CMS KMS key to encrypt the report data, the CTRTrigger lambda does not run as it does not have permission to decrypt the data from the Kinesis stream.
Could you add the Cloudformation scripts to add the relevant permissions to the CMS KMS key if one is used, or provide the template that should be manually inserted to the CMS KMS Key policy with the accompanying documentation?
Roles that are affected:

sfLambdaBasicExec
sfLambdaBasicExecWithS3Read
sfCTRTriggerRole

Lambda affected:

sfCTRTrigger
sfIntervalAgent - Data stored in S3 will be encrypted
sfIntervalQueue - Data stored in S3 will be encrypted

If you use the ARN of the AWS managed CMK key aws/credentialsmanager then this is not necessary (and encrypt your secrets with that key). The solutions KMSManagedPolicy will work with an AWS managed CMK but not with a customer managed CMK


https redirection broken with IPv6

Do you want to request a feature or report a bug?
Bug
Did you try using a 1.7.x configuration for the version 2.0?

[ ] Yes
[X] No

What did you do?
I'm evaluating IPv6 on the traefik nodes and found the following issue:
I have the following redirection set in my http entrypoint in order to redirect all requests to HTTPS.
  [entryPoints.http.redirect]
    entryPoint = "https"

What did you expect to see?
I was expecting a redirect to https://[2a02:168:xx::xx]:443/traefik/
curl -v -k -6 'http://[2a02:168:xx::xx]/traefik/'
*   Trying 2a02:168:xx::xx:80...
* TCP_NODELAY set
* Connected to 2a02:168:xx::xx (2a02:168:xx::xx) port 80 (#0)
> GET /traefik/ HTTP/1.1
> Host: [2a02:168:xx::xx]> User-Agent: curl/7.65.3
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 302 Found
< Location: https://2a02:168:xx::xx]:443/traefik/
< Date: Tue, 13 Aug 2019 06:53:22 GMT
< Content-Length: 5
< Content-Type: text/plain; charset=utf-8<
* Connection #0 to host 2a02:168:xx::xx left intact

What did you see instead?
A redirect to https://http:443://[2a02:168:xx::xx]/traefik/
curl -v -k -6 'http://[2a02:168:xx::xx]/traefik/'
*   Trying 2a02:168:xx::xx:80...
* TCP_NODELAY set
* Connected to 2a02:168:xx::42 (2a02:168:xx::xx) port 80 (#0)
> GET /traefik/ HTTP/1.1
> Host: [2a02:168:xx::xx]> User-Agent: curl/7.65.3
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 302 Found
< Location: https://http:443://[2a02:168:xx::xx]/traefik/
< Date: Tue, 13 Aug 2019 06:53:22 GMT
< Content-Length: 5
< Content-Type: text/plain; charset=utf-8<
* Connection #0 to host 2a02:168:xx::42 left intact

Output of traefik version: (What version of Traefik are you using?)

Running traefik in docker with discovery via the socket
HTTP to HTTPS redirection is configured in traefik.toml

defaultEntryPoints = ["https"]

[entryPoints]
  [entryPoints.http]
    address = ":80"
  [entryPoints.http.redirect]
    entryPoint = "https"
  [entryPoints.https]
    address = ":443"
  [entryPoints.https.tls]

[docker]
...

I can confirm the issue and tested with traefik 2.2.1
The following curl is being redirected to https://http://[b8:a:8b:cc::a111]
`# curl -svLk "http://[b8:a:8b:cc::a111]/"

Trying b8:a:8b:cc::a111:80...
Connected to b8:a:8b:cc::a111 (b8:a:8b:cc::a111) port 80 (#0)

GET / HTTP/1.1
Host: [b8:a:8b:cc::a111]
User-Agent: curl/7.70.0
Accept: /

Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Permanently
< Location: https://http://[b8:a:8b:cc::a111]/
< Date: Sun, 24 May 2020 13:00:16 GMT
< Content-Length: 17
< Content-Type: text/plain; charset=utf-8
<
Ignoring the response-body
Connection #0 to host b8:a:8b:cc::a111 left intact
Issue another request to this URL: 'https://http//[b8:a:8b:cc::a111]/'
Could not resolve host: http
Closing connection 1
`

I have the following entryPoints configuration:
entryPoints:   web:     address: :80     http:       redirections:         entryPoint:           to: websecure           scheme: https   websecure:     address: :443     http:       tls:         certResolver: letsencrypt       middlewares:         - secHeaders@file
I would expect that this request is being rejected after the redirect, because I set sniStrict to true. For ipv4 it is working as expected.

Closed by #6902.

Closed by #6901.


Do not display inactive Api's on Healthcheck page

[Inactive API's appears on Health check page. We should only show Active APi's on Health Check page.]
Reproduction Steps:

[Log in to Janus]
[Search for an inactive API davor-qa-dj]
[Verify that the APi is not Active]
[Navigate to Healthcheck page (API appears on the list)]

Expected behavior:
[We should only show Active APi's on Health Check page. ]
Observed behavior:
[[Inactive API's appears on Health check page]

@rafaeljesus , is there a way to not send me inactive stuff? 😄

@JuricDavor it should be fixed on this PR https://github.com/hellofresh/janus/pull/239 can you please test again?

+1

Can confirm that inactive endpoints don't show up in healthcheck page anymore, closing issue.


no_short_loops breaks Zaw compilation

% cd ~zaw
% setopt no_short_loops
% rm -f *.zwc
% zcompile zaw.plugin.zsh
zsh: parse error near `source'
zcompile: can't read file: zaw.plugin.zsh

It's about those lines of zaw.plugin.zsh:
# load zaw sources
setopt local_options extended_glob
local src_dir="${cur_dir}/sources" f
if [[ -d "${src_dir}" ]]; then
    for f ("${src_dir}"/^*.zwc) source "${f}"
fi

You really shouldn't use short_loops, they're intended for interactive use (they have drawback – they limit Zsh's parser capability to detect syntax errors). So, to fix, to first lines of zaw.plugin.zsh:
function() {

zmodload zsh/parameter
autoload -U is-at-least

There should be added:
setopt localoptions short_loops

The question is whether zaw want's to change some of Zsh's options. If yes, then better, and overall better, rewrite the loop:
if [[ -d "${src_dir}" ]]; then
    for f ("${src_dir}"/^*.zwc) source "${f}"
fi
-->
if [[ -d "${src_dir}" ]]; then
    for f in "${src_dir}"/^*.zwc; do
       source "${f}"
    done
fi

and forget about any problems with short_loops.

Thanks for the report.


Pod not working

This is my podfile look like
use_frameworks!
pod 'BouncyLayout'

when i install my pod it throws error like:
Analyzing dependencies
[!] Unable to find a specification for `BouncyLayout`

This is what my podfile looks like:
(replace project-name with the name of your target)
use_frameworks!

target 'project-name' do
  pod 'BouncyLayout'
end

If this doesn't help can you try running pod update BouncyLayout?

Exactly this is what my pods look like, it doesn't work. I'm currently using CocoaPods App 1.2.0
use_frameworks!
target 'project-name' do
  pod 'BouncyLayout'
end

@hilalbaig Did you try running pod update BouncyLayout in the root folder of your project?

This pod update BouncyLayout will work once i get successfully install BouncyLayout. Actually i'm unable ti install BouncyLayout at all, it throws error when i put pod 'BouncyLayout' in my podfile and hit install. i.e
Analyzing dependencies
[!] Unable to find a specification for `BouncyLayout`

This is really strange, is it possible to attach a zip with your project or a sample project that has the same problem?

Let me first try a new sample project.

Hi @roberthein — getting the same error message

Ok guys, please help me out here by attaching a sample project that demonstrates the issue.

Does below attached project work for you?
storyboard-test.zip

@roberthein No, storyboard-test project also failed. Getting the same error message. Attached is screenshot for your storyboard-test.zip

@hilalbaig, @roberthein — I was able to install BouncyLayout. The issue with me was the my deployment target is 8.0. Changing it to 9.0 solved it. Not sure why I did not get the right error message.
@roberthein — I think it’s important to mention that BouncyLayout is min 9.0 as well as Swift 3.0.

Thanks @oferRounds! 🤔 I will mention it in the readme.
@hilalbaig Does this help you too?

I change it to 9.0
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'

use_frameworks!

target 'storyboard-test' do
  pod 'BouncyLayout'
end

Still it throwing error:
Analyzing dependencies
[!] Unable to find a specification for `BouncyLayout`

Did you change also the deployment target in your project to 9.0+?

Yes it is already 10.2 latest

Can you try a different library? For example, replace pod 'BouncyLayout' with pod 'TinyConstraints'

Yup! Installing TinyConstraints works fine.

Can you try running pod repo update in your terminal?

It worked! 👍🏼 Thank you so much for giving that much of time.

Sorry it took so long 😉


missing $DBHOST to mysql client

Hello guys!

before:

$ ./zabbix-dump -H zabbix-db1
Configuration:
 - type:     mysql
 - host:     zabbix-db1 (zabbix-db1)
 - port:     3306
 - database: zabbix
 - user:     zabbix
 - output:   /home/tiago.cruz/movile/zabbix-backup
Fetching list of existing tables...
ERROR while trying to access database:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")

after:

$ ./zabbix-dump -H zabbix-db1
Configuration:
 - type:     mysql
 - host:     zabbix-db1 (zabbix-db1)
 - port:     3306
 - database: zabbix
 - user:     zabbix
 - output:   /home/tiago.cruz/movile/zabbix-backup
Fetching list of existing tables...
ERROR while trying to access database:
ERROR 1045 (28000): Access denied for user<EMAIL_ADDRESS>(using password: NO)

The variable $DBHOST" was only used um pgsql client, not in mysql
Thanks

Hi @tiago-cruz-movile, thank you for reporting this issue and your PR!
I now realized that the whole $DBHOST processing has to be done inside the if-blocks for mysql and psql (to get a correct $DB_OPTS_BATCH).
Could you please add another commit that moves the line after esac into the psql) branch (just after the $DBSOCKET line)?

Thanks @maxhq, done as you suggest =)

@tiago-cruz-movile Great, thanks a lot!


AWSSDK.S3 3.7.307.4 escapes colon in bucket name in GetPreSignedURL

Describe the bug
We use ceph S3 where bucket names are not a subdomain but after the domain, e.g. https://example.com/11213ef55:mybucket/path/to/file.jpg.
When using AWSSDK.S3 3.7.307.4 it percent-encodes a colon in the bucket name (which is a valid character in an URL path) when calling GetPreSignedURL(request).
This breaks the upload to our S3 file host since it can not match to the correct bucket.
Can this be fixed on your end or would you say thats a problem of the ceph S3?
Expected Behavior
We are currently on AWSSDK <IP_ADDRESS> where it does not percent-encode a colon in the bucket name.
In this version the file upload to S3 works.
Current Behavior
Because of the colon percent-encode the s3 ceph file server returns a

Forbidden AccessDenied...
when trying to upload a file to the pre signed URL.

Reproduction Steps
That should not be neccessary
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSSDK.S3 3.7.307.4
Targeted .NET Platform
.NET 8
Operating System and version
Windows 10

@desdoades Good morning. Thanks for reporting the issue. Could you please share if you are using AWS S3 service or simulated service that mimics S3?
Thanks,
Ashish

Need reproduction with actual AWS S3 service.

@desdoades Good afternoon. Please confirm if your bucket is named 11213ef55:mybucket. AWS S3 console doesn't allow : (colon) character in bucket name. I'm unsure how CEPH S3 service is allowing it. So it appears be an issue with CEPH S3 side, not SDK side since : is not a valid character in bucket name.
Thanks,
Ashish

Dear @ashishdhingra,
we are not using AWS S3 but netways S3 which uses ceph. As I said it does not have the bucketname in the subdomain but in the path.
Our actual bucket is not named 11213ef55:mybucket but very similar, so it does contain a colon.

Dear @ashishdhingra,
we are not using AWS S3 but netways S3 which uses ceph. As I said it does not have the bucketname in the subdomain but in the path. Our actual bucket is not named 11213ef55:mybucket but very similar, so it does contain a colon.

@desdoades Thanks for the reply. As mentioned in my previous comment, colon : character is not supported in AWS bucket names. The colon : is a reserved character in a URL and it has a special meaning in identifying the protocol used in the URL (http:, https:, ftp: etc.). However, you can still add a colon in other parts of a URL by using URL encoding. URL encoding is a process of converting reserved characters into their corresponding hexadecimal code so that they can be safely transmitted over the internet.
Please contact Ceph S3 support to handle this character at their end (this may be as simple as decoding the URL before processing various segments).
Thanks,
Ashish

Dear @ashishdhingra,
While AWS might not support them many site allow colons in the URL.
Still thank you, I understand you wont do anything about it. I will try to reach our ceph S3 support.


Change CommandFactory in order to be able to access the INestApplicationContext before runner execution.

Is there an existing issue that is already proposing this?

[X] I have searched the existing issues

Is your feature request related to a problem? Please describe it
Hello ! First of all thank you for this very nice project !
In the nestjs application I have and on which I'd like to add a cli, we are relying on nestjs-pino with a custom LoggerModule which we register like so:
const app = await NestFactory.create(AppModule, { bufferLogs: true });
app.useLogger(app.get(Logger));

As the CommandFactory is currently designed, it is impossible to access the INestApplicationContext returned from the NestFactory.create(...) before the runner is run, which is what I'd like to have control on.
Describe the solution you'd like
I understand the benefits of having most CommandFactory methods as private but eventually making those protected or changing the API might allow extending the CommandFactory and make a custom one that fits more complex use-cases where accessing instantiated modules before we start the command runner is necessary.
Teachability, documentation, adoption, migration strategy
No response
What is the motivation / use case for changing the behavior?
The current API is a bit too restrictive and block our usage of nestjs-pino in our current app. A bit more flexibility on the CommandFactory would unblock some usages such as this one.

I'm fine with a PR to make most of the methods protected instead to give that flexibility. I don't think a logger makes much sense in the final version of the CLI, at least for the Nest startup logs, but that's my opinion

I'll get to work on this here soon to add in some more usability for if you need scenarios like your use case :)

I'd like to +1 this functionality, I'm also trying to implement pino logger into a CLI to get more details on some of the inner working.

@grant-otus check out the linked PR and see if you believe it should fit your use case :)

@jmcdo29 I believe it will, all I need is access to the INestApplicationContext, so that looks golden to me.

Available in 3.7.0

Hello!
Thanks for great project and for changes made here. Now app creation looks much better.
But, can we pass to options all available options of NestFactory.createApplicationContext?
As mentioned above, i would like to logs all with nestjs-pino, but initial logs are missed since 'bufferLogs' are not set here
https://github.com/jmcdo29/nest-commander/blob/d3d89b403bbd5b969f39acc0b182d0241df31e80/packages/nest-commander/src/command.factory.ts#L49C10-L54
Maybe merge CommandFactoryRunOptions with Partial?
https://github.com/jmcdo29/nest-commander/blob/d3d89b403bbd5b969f39acc0b182d0241df31e80/packages/nest-commander/src/command-factory.interface.ts#LL12C1-L20C2
Also.. I think this is bug. If we pass empty object to CommandFactory.createWithoutRunning options or for example 'cliName' - as result built-in nest logger will be enabled.

Also.. I think this is a bug. If we pass an empty object in the CommandFactory.createWithoutRunning option or for example 'cliName' - as a result, the built-in Nest logger will be enabled (but we did not enable it ourselves).

Do you think you could make a reproduction with this? Just want to double check it/make it easily added to the test suite

As mentioned above, i would like to logs all with nestjs-pino, but initial logs are missed since 'bufferLogs' are not set here.
d3d89b4/packages/nest-commander/src/command.factory.ts#L49C10-L54
Maybe merge CommandFactoryRunOptions with Partial ?
d3d89b4/packages/nest-commander/src/command-factory.interface.ts#LL12C1-L20C2

Makes sense.  We should be able to merge those interfaces pretty easily.

What do you think about my previous message?

All sounds good. @Sadzurami Would you like to work on a PR for this? Apologies for the slight delay, I was taking the weekend to enjoy some time with family :)

@jmcdo29 Sorry to bother you, I didn't notice it was the weekend.
PR created.

Available in 3.8.0

@Sadzurami do you have an example of how you pass your pino logger?

NVM It is
export async function bootstrap() {
  const app = await CommandFactory.createWithoutRunning(
    AppModule,
    standaloneAppConfigurationOptions,
  );
  app.useLogger(.... ) < do what need to do
  await CommandFactory.runApplication(app);
}

void bootstrap();


哪里有安装及使用教程

对于新人来讲，Readme里面的跳跃太强了。跟不上节奏

Hello. I have a question for you, so I'm writing here. I wonder if you have upgraded the unity version of fo-Dicom. If you did, can you tell us what you did?


🐛 mysteriously sporadic "user not found" bug

sometimes, when we load up or refresh the app demo, the page is broken, and there's a javascript console error, something like "user id 'abc123...' is not found", or something like that
we've been unable to reproduce the bug...

Steps to reproduce bug:

Click login(admin)
Post a comment
Wipe database
Post a comment
Refresh page

@zenkyuv
hmm, we'll need to wipe the whole app state whenever wipe database is pressed

rename wipe database to wipe everything
wipe the entire app state when it's pressed (in addition to localStorage.clear()
here's where app state is defined https://github.com/haumea-group/namaka/blob/master/s/frontend/models/app-snap.ts#L8-L17
here's where the app snap is passed to prepareComponents https://github.com/haumea-group/namaka/blob/master/s/frontend/components/prepare-components.ts#L26
you may be able to set snap.state = freshAppState()
but you'd have to implement freshAppState to generate a new empty app state
if you implement freshAppState, we should also use it to generate the starting state here in makeAppSnap: https://github.com/haumea-group/namaka/blob/master/s/frontend/models/app-snap.ts#L23-L30


Simplify build

Made the bash,dos script dumber by introducing a pretty horrible command line parser in F# :)
This also replaces inc target with test and targets can be suffixed with -all in which case commands will target all TFM's. the default is build-all
e.g:
> build test-all geohashcell

Runs unit tests for all TFM's dotnet-xunit supports filtering the tests we with those that contain geohashcell
> build test geohashcell

Only runs against netstandard1.3

ported to master and 2.x


Fix settings

Option to reset settings to their default values
Use sliders for settings with a fixed range

Debounce timer for fields with edit


Use annotation from the model to create OpenApiInfo

The OASIS OData to OpenApi v3.0 says:
4.2.1  Field title
The value of title is the value of the unqualified annotation Core.Description (see [OData-VocCore]) of the main schema or the entity container of the OData service.
If no Core.Description is present, a default title has to be provided as this is a required OpenAPI field.
4.2.2 Field version
The value of version is the value of the annotation Core.SchemaVersion (see [OData-VocCore]) of the main schema.
If no Core.SchemaVersion is present, a default version has to be provided as this is a required OpenAPI field.
4.2.3 Field description
The value of description is the value of the annotation Core.LongDescription (see [OData-VocCore]) of the main schema or the entity container.
While this field is optional, it prominently appears in OpenAPI exploration tools, so a default description should be provided if no Core.LongDescription annotation is present.
However, the ODL doesn't support "Core.Description" on main schema and Core.SchemaVersion. Once it supports, please update using the annotation.

Schema annotations are not included in the resulting EdmModel after parsing the CSDL.  Issue raised in the OData lib https://github.com/OData/odata.net/issues/2530


comment-out attempted feature detection

latest versions of node 18 are failing without any changes :/

this seems related to one of the dependencies, closing this to reopen later


bug #6 : lint and code error for testing actions

This branch has issues to show how errors are displayed with github actions and in pull requests

DO NOT MERGE THIS BRANCH


README.md sometimes does not display

The README.md file is supposed to display below the content area for a resource.  For this resource it does not https://www.hydroshare.org/resource/8161a96a08474d12bba219852409be61/.
I am able to download the README.md file and load into a new resource and have it display properly, so there does not appear to be a problem with the README.md file.  I have not been able to determine the conditions that cause this problem.

I wondered if this had something to do with the fact that there are two files in the resource with the word "README" in the file name. But, I tried several combinations of adding files with these names to different resource and I was also unable to reproduce the issue of the README.md file not being rendered. I used different files and just tried combinations of file names.

After looking into this, I found that this filter looking at files in the root directory doesn't work with this resource because the file_folder on the README.md file is '' instead of None.  https://github.com/hydroshare/hydroshare/blob/develop/hs_core/models.py#L2333
@dtarb, I'm trying to understand how the file_folder is '' instead of None... did you do something like move the README.md file after uploading it?

@sblack-usu this is not a resource I own, so I have no idea what David Arctur did with this.  Could this be because it is published, or a later version of an earlier published resource.

When a new version of a resource is created, the root files in the resource are set to an empty string.  I'm considering just constraining non null values to handle this situation consistently across the codebase rather than accomodating both null and empty strings.


New collections using FreeList internally might consume much more gas than using Vector depending on use case

Hello,
ok so first I'm sorry for the confusingly long title, but I didn't know how else to tell this in a short sentence.
Let me explain my use case:
In my contract I keep track of work that needs to be done, but might not fit into current execution of contract due to gas limitations. Instead I postpone this work into future executions of the contract.
I keep track of this work using the new store::UnorderedMap.
I noticed a weird behavior using this new API where gas usage increased when I removed elements from the start while iterating through them. The implementation reveals that internally for iteration a FreeList is used which does not re-arrange elements on removal. This is quite bad for my use case, because I need to optimize gas usage for worst case.
In a worst case scenario my UnorderedMap will be filled quite heavily in a single contract call. Then in later contract calls this work will be executed. Unfortunately iterating and removing the elements at the start results in the iterator visiting empty elements in successive contract calls. The gas usage increases with every call!
When I switch back to the legacy UnorderedMap which internally uses Vector (I assume?) for iteration, I no longer have this problem. The gas usage on first iteration is a little more, but it does not increase with every iteration.
Please let me know if I need to explain further and eventually give a code example.
My suggested solution would be to have another store::UnorderedMap that also uses Vector for storing keys. The user should be able to pick one of both and the difference would need to be explained. Since other collection types also use FreeList under the hood these collections would also need a second implementation for consistency reasons.

No need for more context, that makes sense! This was a trade-off that was picked to optimize for gas in most cases, and the case of a large amount of deletions without replacing them and iterating through the elements in a non-view call is the negative side of that trade-off but assumed to be very uncommon. The fact that the "bucket" of keys doesn't re-arrange elements on removal is for the optimization of gas costs.
There was an API I was considering adding when designing this that I think would solve this problem, but I'd love your confirmation:
The basic idea is having some sort of defrag method (on FreeList but that extends to UnorderedMap and others) where it will swap all of the last elements into the empty indices of the FreeList (could also be a method that just does this operation once, to give more control). This would mean that it would give you control over when the elements are re-arranged to be more compact for iteration. Would this solve your issue?
Alternatively, we could consider adding a method like remove_defrag that is like remove except that it does a swap-remove, loads the swapped index node, and writes that back to storage on delete. This on its own doesn't solve all use cases, though, as if someone had deleted a large number of elements already that they won't replace, they would not have the ability to defragment that storage.
WDYT?

The defrag method would be great! I'm pretty sure it would solve my issue. After thinking a little bit about it, I also think that having another almost identical implementation is probably a really bad idea :D
I assume the remove_defrag would also work, but since defrag will be able to do bulk defragging eventually, I would rather use the first option.
My code looks roughly like this:
        while let Some((id, work_item)) =
            work.iter().next()
        {
            if env::prepaid_gas().0 - env::used_gas().0
                < required_gas
            {
                break;
            }

            // do stuff with `work_item`

            work.remove(&id);
        }

Awesome! I think this is a valuable addition. I think this issue might be a good first issue to get entry on the SDK and storage collections, so I'll mark it as such for now, but if it doesn't get picked up, I'll do it when I have a spare cycle because I've already thought it through.

I'll pick this up.

I'll pick this up.

Awesome! Let me know if you'd like more specifics on what this API could/would look like :) Good luck!

@austinabell I have created a draft PR with defrag function. I am yet to write tests and update the LookupMap in UnorderedMap with swapped indices. Let me know if this looks okay.

Edit: There might be a simple solution for UnorderedMap. Rather than iterating keys: FreeList we can iterate values: LookupMap. The values store the key and does not have the empty entries issues in FreeList. What do you think?

This isn't possible because you cannot iterate over a LookupMap because it doesn't track the keys. That's the difference with UnorderedMap. I've given some suggestions on the PR, hope they're helpful!

The underlying BTreeMap has an iterator. Can't we expose it in LookupMap?

That only contains the elements that have been loaded in the current execution. It acts as a cache to make the collection lazily loaded, so it doesn't contain all elements needed.


Creating manually a user with PMO ID is not possible

Hi, I switched to the new plugin and users are now not anymore automatically created. I tried now to create a user manually, but a user name must include at least one letter when I want to create the user via the Wordpress admin page. How can I now with the new plugin create a user to assign e.g. role admin when he/she log in via BCC Login?

Note: I figured out that the Wordpress validation rule in wp-includes/ms-functions.php creates this issue:
// All numeric?
if ( preg_match( '/^[0-9]*$/', $user_name ) ) {
	$errors->add( 'user_name', __( 'Sorry, usernames must have letters too!' ) );
}

One option is to manually disable this logic but I guess it is there for a reason. The Wordpress plugin should work here differently to link the PMO ID to the user by another field than the username.

The user can be linked to the BCC member also by the email address, independent of what username you are setting to the account.

@cs1m0n This is great to hear!
But I think this would not work anymore when someone changes the email address, right? Then one would be locked out of Wordpress right?


Filter with strict OR

Description
I have a React application displaying products. I'd like to filter by multiple categories like  "shoe", "hat".
In typesense the request would look like this.
  'searches': [
    {
      'collection': 'products',
      'q': '*',
      'filter_by': "category:["shoe", "hat"]"
    }
  ]

But I can't seem to make it work with the instantsearch adapter. Did I miss something in my approach shown below?
Steps to reproduce
I have configured Instantsearch like so:
<Configure facetFilters=["category:shoe", "category:hat"] />

the request to typesense is then translated to filter_by: "category:=["shoe"] && category:=["hat"]" so I'll get no results since there's no product that's both a shoe AND a hat.
I retrieve the expected result by doing one filter at a time like so: <Configure facetFilters=["category:shoe"]/>
Expected Behavior
Was expecting that I could get results that's either shoe or hat referring to algolia docs that states that

[["category:Book", "category:Movie"], "author:John Doe"] translates as (category:Book OR category:Movie) AND author:"John Doe"

Actual Behavior
No results found.
Metadata
Typesense Version: 0.22.0
OS:

@dav1d992 Could you try this:
<Configure facetFilters=[["category:shoe", "category:hat"]] />

(Notice the two square brackets).

@jasonbosco Amazing... That did the job 😅 Thank you!


Moved Code Lines Overlap Too Much

There are 6 crossings here:

repro

It should look like this:


New PR to test SignCLA at 2019-04-18 13:33:56.394683956 -0700 PDT m=+5.809544300

Body of PR

unsigned-fail-staging: test succeeded


The InternetAddress.type parameter is missing

From Dart 2.8, the InternetAddress constructor in dart:io has a optional named parameter InternetAddressType type, which is missing in universal_io 1.0.1.
Cfr socket.dart in dart:io:
external factory InternetAddress(String address,
      {@Since("2.8") InternetAddressType type});

Fixed.

Fixed.


Serialize FixedByte items

Summary
Data packages have fixed byte fields which should be serialized for build the data packages.

FixedByte item serializer added.


Update release-notes.md

@saveenr : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Make this into a string literal

'the name can only contain upper and lowercase letters, digits and spacebars'

done in 1f731b6


Different S3 serving endpoint (e.g. CDN support)

DigitalOcean supports a built-in CDN when using their S3-compatible Spaces storage. After enabling, use of the CDN just requires changing the endpoint; e.g.:

Origin: https://bucket.region.digitaloceanspaces.com
Edge: https://bucket.region.cdn.digitaloceanspaces.com

It's also possible to configure a custom domain (using a subdomain you own, for example).
I can try to add a new configuration parameter to support this (something like s3.servingHostname), but wanted to get your thoughts before making the change.
Simplest approach would be to just generate and return the custom URL within s3Storage.Save, but if you think there's value in pulling this up more generally, we could probably move it into monitor.go. This would potentially let other storage providers use the same param. I don't think this would be valuable for local serving, but maybe for other providers in the future? I dunno.

AWS also offers a feature to change the host to get a CDN'ized version of it, not to mention just having control over where the video segments are in general would be useful across the board.
So as it stands the Segment type (in playlist.go) knows the relative path (via  RelativeUploadPath like 1/stream-1595834191.ts) and the absolute remote URL (RemoteID, not a great name, https://gabevideo.us-east-1.linodeobjects.com/gabevideo/hls/0/stream-1595814948.ts)
So in GenerateRemotePlaylist it seems like instead of using just the RemoteID if the config has a servingHostname it could instead piece together its own absolute URL using the overriden host in the config + the relative path.  And then if an overridden host doesn't exist in the config then GenerateRemotePlaylist would just do what it already does now and use the RemoteID.
I think? :)
If you want to take a stab at this, go for it!  Otherwise I can probably get to it this week.

Just noticed you already looked at it!  So the only thought I had that's different is instead of rewriting the URL in Save we rewrite it in GenerateRemotePlaylist, only because that URL returned from save is technically correct, but we just want to reference it differently in the playlist.

Yup, I was just mucking around to see if I could get something working. I'll update the branch and open a PR


Error in new Version Whatsapp Web 2.2023.1

We getting an error when loading wapi.js on new version of Whatsapp Web: 2.2023.1.
window.Store.Msg.off('add')
Window.Store.Msg is undefined.
Is someone suffering from the same problem?

Whatsapp web version went back to the previous version.

Same problem here.

The error happened again. Whatsapp Web Version: 2.2023.2.

same problem... any idea??

I have the same issue.

Try this solution by felippeefreire  ->#888

same problem... any idea??

#888


CSS selector IE7 problem with header HTML5 element

previous lighthouse ticket #1185
by Filippo Buratti

the problem occurs on the browser Internet Explorer version 6/7 only with the element HTML5 "header":
// well use http://html5shiv.googlecode.com/svn/trunk/html5.js

// some content
$$("header h2 a").invoke(blabla); // don't work
$$("#myheader h2 a").invoke(blabla); // work

//some contentsome content";
// nav arent inside header #myheader
$$("nav").invoke("hide"); works at all
$$("header nav").invoke(blabla); // don't work
$$("#myheader nav").invoke(blabla); // work

better solution is to use current nwmatcher instead of sizzle, and all the selectors of the examples above work

Assuming that Sizzle has fixed this by now.


Render YML DAG config as DAG Docs

closes: https://github.com/astronomer/dag-factory/issues/272

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

Project coverage is 93.39%. Comparing base (e53b456) to head (996927b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #305      +/-   ##
==========================================
+ Coverage   93.22%   93.39%   +0.16%
==========================================
  Files           8        8
  Lines         664      681      +17
==========================================
+ Hits          619      636      +17
  Misses         45       45

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


Support structs that have trivial other fields

Currently RefCast can only be derived for structs that have a single field. Let's allow structs to have other fields as long as they are trivial like () or PhantomData.
#[derive(RefCast)]
struct U {
    t: T,
    trivial: PhantomData<*const u8>,
}

Any suggestions on how it would know if field is trivial?
I guess, if #2 was implemented, it would be a safe-guard against malicious attempts like defining your own PhantomData struct.


Create a footer white-2

Issue No: https://github.com/Clueless-Community/web-ui-kit/issues/561
Tailwind Play:

@PrakashGatiyala good job
Congrats 🎉, your PR got merged. To be eligible for the swags from ClueLess. Follow this steps.

Star this repository. ⭐
SignIn / SignUp in [ClueLess Website](https://www.clueless.tech/) .
Go to profile section from the top right hand corner.

Comment your profile URL under this comment tagging the person who merged your PR.

That’s it. Follow the leaderboard !
And don’t forget to share your achievement with your friends.


Models missing

model folder not found in game
giving following errors while playing:
System.Exception: Archive not found: C:\Users\Adnan\Desktop\SanAndreaseUnity\SanAndreasUnity\SanAndreasUnity\Assets\Resources/models/gta3.img
at SanAndreasUnity.Behaviours.Loader.StepLoadArchives () [0x0005e] in C:\Users\Adnan\Desktop\SanAndreaseUnity\SanAndreasUnity\SanAndreasUnity\Assets\Scripts\Behaviours\Loader.cs:278
at SanAndreasUnity.Behaviours.Loader+d__36.MoveNext () [0x001f6] in C:\Users\Adnan\Desktop\SanAndreaseUnity\SanAndreasUnity\SanAndreasUnity\Assets\Scripts\Behaviours\Loader.cs:184

You didn't select correct path to GTA. When the game starts, click "Change path to GTA" and select folder where GTA is installed.

oh that means i required original gta game installed to run it?

@AdnanSayyed Yes, because otherwise this wouldn't be possible without being accused of copyright. If this were released with GTA's files at all then it would not be legal.


Update README.md

Fixed link for YAML (thought I did this already, but it seems not to have taken somehow)

👍

Thanks!


Add find_closest_version

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

Project coverage is 100.00%. Comparing base (2cb2de9) to head (2aaeb67).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #196   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            5         5
  Lines          165       167    +2
  Branches        23        23
=========================================
+ Hits           165       167    +2

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


feat(node:diagnostics_channel): polyfill node:diagnostics_channel module

🔗 Linked issue

❓ Type of change

[ ] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations)
[ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[x] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description
Adds a polyfill for the node:diagnostics_channel module.
📝 Checklist

[ ] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

I might be missing something here, but it seems that this PR is unnecessary for Cloudflare.

aww shucks 🤦 .
I overlooked the fact that this was included in workerd. My thought process here was that I started working on dgram, and realized it had a dependency on diagnostics_channel, so I decided to pick that up first thinking it needed to be done.
🤷

hahaha.. I see. oops. 🤣
well, let's have @pi0 take a look at this one and see if he likes it. I think it's a good addition to nodeless preset, but as we know it won't be used with workerd.


eBPF for Windows should support perf_event_array and ringbuf map types

eBPF has two special map types:
BPF_MAP_TYPE_PERF_EVENT_ARRAY,
BPF_MAP_TYPE_RINGBUF
These are high performance data structures that can be used to send data from kernel to UM app. These are supported by helper functions:
bpf_perf_event_output()
and
bpf_ringbuf_output()
When an eBPF program invokes these helper APIs, they “notify” UM app. UM Apps call libbpf APIs
perf_buffer__new()
and
ring_buffer__new()
to register for these perf events and provide a callback.
So this solves the ask we had of UM apps being notified of maps being updated without having to actively poll for them.
Reference:
https://nakryiko.com/posts/bpf-ringbuf/

Regarding perf event array vs. eBPF ring buffer:

There are two distinctive motivators for this work, which are not satisfied by existing perf buffer, which prompted creation of a new ring buffer implementation.

more efficient memory utilization by sharing ring buffer across CPUs;
preserving ordering of events that happen sequentially in time, even across multiple CPUs (e.g., fork/exec/exit events for a task).

(Extract from the kernel documentation for the ring buffer - Andrii's post linked above is also an excellent resource)
My understanding is that new applications would benefit from going with the ring buffer, although most existing programs that need to send data to user space have used the perf event array so far so it might be worth supporting too, for compatibility.


made the top bar's orientation proper after logging in

corresponds to issue-> #57

oh ,  forgot to remove that

oh ,  forgot to remove that

@Sloth-Panda I will suggest changing the password of your Gmail account right now.

@Sloth-Panda I will suggest changing the password of your Gmail account right now.

@sanjay270899 have corrected that

@sanjay270899 have corrected that

@Sloth-Panda Now it is fine. Also, I will suggest you to change the password of your google account.

@Sloth-Panda Now it is fine. Also, I will suggest you to change the password of your google account.

@sanjay270899 changing still delete the photos

@sanjay270899 changing still delete the photos

Issue has been resolved #67

Issue has been resolved #67