[ECP-8842] AbstractPaymentMethodHandler - Might result in TypeError upon adding the product URL $isOpenInvoice=true

Describe the bug
In https://github.com/Adyen/adyen-shopware6/blob/develop/src/Handlers/AbstractPaymentMethodHandler.php#L637
you use $salesChannelContext->getSalesChannel()->getDomains()->first()->getUrl(), to retrieve a potential URL.
However, the domains might be empty - e.g. headless sales channels do not require those except for rare cases like double opt-in etc. so this might fail. also it ignores langauge etc.
Change that code to something like:
$productUrl = null;
if (!is_null($product->getId())) {
$domainUrl = $salesChannelContext->getSalesChannel()->getDomains()?->first()?->getUrl();
if (!is_null($domainUrl)) {
                    $productUrl = sprintf(
                        "%s/detail/%s",
                        $domainUrl
                        $product->getId()
                    );
}
}

Versions
Shopware version: <IP_ADDRESS>
Plugin version: 3.12.0

Hello @AndreasA,
We have created an investigation ticket for this issue. Thank you for raising this one.
Best Regards,
Can

Hey all,
This issue is fixed and new V4 and V3 plugin versions are released.
Best Regards.


Add icons for munkireport

Changed over the links to relative references using example, cleaned up a bad git merge which resulted with duplicated references. Should be good to merge now 👍

The safari-pinned-tab.svg does not seem to work for me, the pinned tab is blank on my machine. (Safari 10.0 on Sierra GM)

Hmm. That functionality of the generator seems to be broken as it won't let me upload a file for it. Let me do some fiddling with it some more.

Seems to be working for me. I'm on safari version, same os x version, running a fresh pull as a test. Took awhile to generate but it shows up for me.

thx!


Speedup by reorganizing code

By reordering some of the logic, we can optimize the function's runtime efficiency.
By doing the Array.isArray() check first, we catch the most common cases and can elide the (moderately expensive) typeof operations.  By separating the isArray() check from the length check, we can elide even more operations in the case where an empty array is passed.  We can reduce even more operations by not recursing when there are simple (string/number) types in the array and concatenating them directly.
This fork should be faster in all cases.
Here's some benchmark results (classcat = my fork, classcatNpm = as it exists now).
Classcat – Strings × 9,316,220 ops/sec
ClasscatNPM – Strings × 7,874,574 ops/sec
classNames – Strings × 3,094,206 ops/sec
Fastest is Classcat – Strings

Classcat – Objects × 95,576,430 ops/sec
ClasscatNPM – Objects × 6,921,587 ops/sec
classNames – Objects × 2,897,037 ops/sec
Fastest is Classcat – Objects

Classcat – Strings & Objects × 5,738,749 ops/sec
ClasscatNPM – Strings & Objects × 5,516,302 ops/sec
classNames – Strings & Objects × 2,589,446 ops/sec
Fastest is Classcat – Strings & Objects

Classcat – Mixed × 3,374,364 ops/sec
ClasscatNPM – Mixed × 3,259,550 ops/sec
classNames – Mixed × 1,857,683 ops/sec
Fastest is Classcat – Mixed

Classcat – Arrays × 3,121,509 ops/sec
ClasscatNPM – Arrays × 2,603,359 ops/sec
classNames – Arrays × 780,863 ops/sec
Fastest is Classcat – Arrays

@EdwardDrapkin The length > 1 check makes this particular case fail:
cc(["ok"])

...which should be infrequent, but still surprising.

Alright, I updated the check to be length > 0 (whoops lol) and I also added a test case for it.
I also optimized the for loop based on this blog post: https://medium.com/@AamuLumi/voyage-to-the-most-efficient-loop-in-nodejs-and-a-bit-js-5961d4524c2e
I can't notice any improvement, but I'm testing on a laptop so it's probably being lost in statistical noise.
I also changed the semantics a little bit in that passing 0 will result in '0' instead of '' because I figured if someone is passing a number, they are doing some kind of weird class replacement based on array indices in a babel plugin or something and they would want their 0 to be preserved.

A minor beneficial side effect is that you can now pass nested arrays (added a test case): [foo, [bar, [foo-bar]], bar-foo, [[[[test]]]]] winds up becoming "foo bar foo-bar bar-foo test".

@EdwardDrapkin Ah, the numbers as CSS classes debate. 😄
Technically a class that starts with a number is not valid CSS. But even if it was (or is going to be in some future spec), a number on its own is semantically meaningless without some sort of prefix, so I'd prefer to optimize for size in this instance.

I can't notice any improvement, but I'm testing on a laptop so it's probably being lost in statistical noise.

Haha bummer. I was quite surprised when I saw that 95,576,430 ops/sec at first.

@EdwardDrapkin A minor beneficial side effect is that you can now pass nested arrays (added a test case): [foo, [bar, [foo-bar]], bar-foo, [[[[test]]]]] winds up becoming "foo bar foo-bar bar-foo test".

This can be done with our current version of classcat. I added a test for that in 85af3f5.

also changed the semantics a little bit in that passing 0 will result in '0' instead of ''...

I am going to pass on this one for now. 0 is still converted to "", so we'll have to cast to string the value if there's a chance the number 0 could be used as a class name.

Closing as there was no noticeable perf result difference and for the reasons given above.
Thank you, anyway @EdwardDrapkin! 👋


create file Resources.md

Hi @saramccombs  sooo excited, my first PR here
I created the resources file following https://gith/issues/10 I hope I got this right.
I took the some content from the links you shared and add some more, I hope this make sense.

Addresses #6


responses for sent and failed (error)?

the docs show the response for failed (rejected) as having an http status code. is this the only response type that has this, and is it always 410? it seems odd to include the http status code at this level, and only for this response type.
https://github.com/node-apn/node-apn/blob/master/doc/provider.markdown#sent

It's just an example and there would be not only 410 but all the status code defined by APNs.

@zaumreit thanks. would the status code be included in the error state as well, or only in the rejected state?
if the values are just strings in the success state, and the status key is only present in the rejected state, then checking for state is pretty awkward. also it makes me insecure about the api not changing, maybe status will start to be included in the error state. here's how i'm checking for the state of the response (in coffeescript).
@client.send(note, deviceToken).then (result) =>
  for device in result
    if typeof device == "string"
      console.log "success"
    else if "status" of device # coffeescript's weird operator for checking hash key presence
      console.log "failed - rejected"
    else
      console.log "failed - error"

This is the only way to do it, right?

to further add to the confusion, it looks like what is returned is completely different :) or maybe i'm reading the docs incorrectly
{
  "sent":[],
  "failed": [
    {"device":"an-apns-token","status":"400","response":{"reason":"BadDeviceToken"}}
  ]
}

@jjb You're right and I commented on #480 PR for the same concerns.

🆒

Sending a notification can fail for two reasons:

The notification is rejected by APNs (or any other error occurs on APNs' side). APNs will return an appropriate HTTP status code, e.g. 410. When this happens node-apn will return the status code to the client.
The connection to APNs fails, e.g. network is down. When this happens node-apn will return an error object to the client.


google trends is empty

2024-08-03 16:09:35,590 [DEBUG] googleTrendsShelf.__dict__ = {'dict': <dbm.dumb._Database object at 0x000001E50D155330>, '_protocol': 4, 'writeback': False, 'cache': {}, 'keyencoding': 'utf-8'}
2024-08-03 16:09:35,590 [DEBUG] google_trends = []
2024-08-03 16:09:52,590 [DEBUG] in __exit__ exc_type=<class 'AssertionError'> exc_value= traceback=<traceback object at 0x000001E50AF58680>
2024-08-03 16:09:53,004 [ERROR]
Traceback (most recent call last):
  File "C:\MS-Rewards-Farmer\main.py", line 39, in main
    earned_points = executeBot(currentAccount, args)
  File "C:\MS-Rewards-Farmer\main.py", line 247, in executeBot
    with Searches(desktopBrowser) as searches:
  File "C:\MS-Rewards-Farmer\src\searches.py", line 72, in __init__
    trends = self.getGoogleTrends(
  File "C:\Downloads\MS-Rewards-Farmer\src\searches.py", line 100, in getGoogleTrends
    assert r.status_code == requests.codes.ok
AssertionError
2024-08-03 16:09:53,676 [INFO] [POINTS] Data saved for the next day.

That AssertionError indicates your bot isn't reaching trends.google.com successfully. Try running again, and if it continues to be a problem you'll want to adjust the retry config in src.utils.Utils.makeRequestsSession for your environment.

Feel free to reopen if needed


respondendo as perguntas do arquivo stats-procs

Thank you so much for your contribution! I added it manually, because git doesn't handle .ipynb files well for PRs. Thanks!

Thank you so much for your contribution! I added it manually, because git doesn't handle .ipynb files well for PRs. Thanks!


Compile error

Flinger.zip
I am getting a compile error whenever I add a mob. I have seen many tutorials and tried regenerating the code, but it didn't work.
Please help me figure this out.

I do not support outdated versions of the plugin.


ERROR in multi vendor

Iam using webpack while bundling the font-awesome library I encountered the following error

Hi,
Their package.json definition is faulty and probably does not do what you expect.
Please re-open at Stack Overflow for more info (see the issue template).


Set thread id callback as required by openssl.

For openssl to work in multi threaded environment, 2 callbacks needs to be set as per following blog.
https://www.openssl.org/blog/blog/2017/02/21/threads/
Spacemonkeygo openssl binding is setting CRYPTO_set_locking_callback but not setting CRYPTO_set_id_callback. I have added required changes for setting CRYPTO_set_id_callback for non windows environment.

The documentation claims:

If the application does not register such a callback using CRYPTO_THREADID_set_callback(), then a default implementation is used - on Windows and BeOS this uses the system's default thread identifying APIs, and on all other platforms it uses the address of errno. The latter is satisfactory for thread-safety if and only if the platform has a thread-local error number facility.

Is there a system you're running on that doesn't have a thread-local errno?

I am using Ubuntu 14.04.5 LTS.
As mentioned in blog link, these 2 call backs need to be set for openssl to work with multi-threading.
Also please refer to following issue in openssl
https://github.com/openssl/openssl/issues/6700

Ok. It looks like this is some funny interaction with FIPS mode. Maybe FIPS uses some legacy code paths that require the callback to be set, or something. We've been running this in prod for years on multiple threads without the callback but we never used FIPS.
Thanks for the fix.

@zeebo, Do we need any handling for windows platform.

No, I implemented that in https://github.com/spacemonkeygo/openssl/commit/3c881b520f0ecf5a8bbf084dcd84a8a5824dfec1.


Git diff view swipe and onion skin as on GitHub

In #12304 git diff was requested and currently, I can only see "2-up" option in VS Code (https://docs.github.com/en/repositories/working-with-files/using-files/working-with-non-code-files#2-up)
It would be great if we could do "Swipe" (https://docs.github.com/en/repositories/working-with-files/using-files/working-with-non-code-files#swipe) and/or "Onion Skin" (https://docs.github.com/en/repositories/working-with-files/using-files/working-with-non-code-files#onion-skin) as well.
My use-case is that I store rendered charts in my repo and update them weekly, would be great to be able to quickly see what changed.
Workaround is to open https://www.diffchecker.com/image-compare/, open diff view in VS Code, drag and drop from left side of VS Code to left of diffchecker, same for right side.

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

It would be nice if custom editors could come up with their own diff editor.

@hediet you mean like plugins?

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Notifications for new issues and PRs

In serde-rs repos and my personal repos, usually when someone makes an issue or PR they don't ping my username. But I would still like to treat those as a notification because I am the one responsible.
It would be great to set via some config, whether local to the repo or global to the user or org, that says who wants to be notified on new issues/PRs.

fef5538e0bf5dd6ee06b0909837063562f606cb6 made all serde-rs activity generate pings for @dtolnay. I suspect this'll be too much -- or at least that we'll want some sort of deduplication -- but I think it's a decent starting point.
One thing I came across recently that may be worth exploring as a way to expand triagebot's scope (relatively) easily is to replace our webhooks with GitHub's support for
PubSubHubbub/WebSub. It looks like that's no better than webhooks, though, since based on this StackOverflow post you need Admin access to the repositories you subscribe to.


Invert vScale of compressed textures when invertY is set and invertY …

…of ktx textures as they are inverted in the file
http://www.html5gamedevs.com/topic/41063-ktx-textures-loading-missing-files-and-hdr-environmenttexture-are-in-a-boat/?tab=comments#comment-235647

Could you also check rebuild on internalTexture ?
I guess you inverse vscale might be missing there ?

@sebavan  good call, it looks like this is already handled by createTexture so rebuild worked fine but when testing this using context loss I found another issue which I fixed.

Other quick question why not just inverting invertY instead of relying on texture._invertVScale ???

because invertY triggers inversion with UNPACK_FLIP_Y_WEBGL which is not supported by compressed textures so vScale inversion was needed. I originally did this for all compressed textures (like dds) but it broke DDS as the UNPACK_FLIP_Y_WEBGL doesn't work at the start but then works when UploadDDSLevels calls _uploadDataToTextureDirectly.

Agree but could we not swap invertY in the KTX Loader instead of adding a separate flag (just wondering did not check the code enough) ?

Ok got it :-)


Enhancement:  Top-Left "burger" button

If you can somehow incorporate the burger button to go back to Hass, that would be amazing!!!  Beyond thank you for this effort btw.

This repository is archived as this exact graph was included as part of the Zwavejs2mqtt.
If you are using the ZwaveJS, please upgrade to full Zwavejs2mqtt to get this functionality back.


Fix: Web Clothing Butcher Issues

About the PR
Corrects issues related to arachnid crafting using silk.

Web coat is now butcherable
Web coat and boot now butcher down to their crafting cost in silk

Boot previously broke down into cloth

Why / Balance
Fix #33117
Technical details
Adds butcherable component to web boots and coat
Requirements

[x] I have read and am following the Pull Request and Changelog Guidelines.
[x] I have added media to this PR or it does not require an ingame showcase.

Changelog

:cl:

fix: The web coat and boots can now be broken down into silk.

Unrelated test fail

Tested and works as intended. Thanks for the PR!

Thanks for the fix! I've tweaked the change log slightly for clarity, I hope you don't mind


Add f1 metric card, update docstring in py file

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


[1.2.x] ci: Fix image repo location when pushing operator images

Description
The nightly Workflow passes but with a warning on 1.2.x about a missing quay.io/rhdh-community/operator:0.2.3 image tag. Example: https://github.com/redhat-developer/rhdh-operator/actions/runs/10624194874

These warnings can be expected since CI tags purposely expire after a few weeks. But in this specific case, we should have recent image builds from the 1.2.x branch because that branch has been updated recently.
It looks like the job building and pushing that image on 1.2.x did not pass: https://github.com/redhat-developer/rhdh-operator/actions/runs/10620716428/job/29441095997
Successfully tagged quay.io/rhdh-community/operator-catalog:0.2.3
28bce337c49efa5435c24f607dad615f4bd0ffa4f026175b896dc81ce0e43749
+ for image in operator operator-bundle operator-catalog
+ podman push quay.io/janus-idp/operator:0.2.3 -q
Error: quay.io/janus-idp/operator:0.2.3: image not known

Which issue(s) does this PR fix or relate to

Fixes issues with the image building workflow: https://github.com/redhat-developer/rhdh-operator/actions/runs/10620716428/job/29441095997
Fixes https://issues.redhat.com/browse/RHIDP-3704

PR acceptance criteria

[ ] Tests
[ ] Documentation
[ ] If the bundle manifests have been updated, make sure to review the rhdh-operator.csv.yaml file accordingly

How to test changes / Special notes to the reviewer
—
/cc @nickboldt

LGTM but did you check if other actions or scripts (like the makefile) are also still using janus-idp instead of rhdh-community ?

LGTM but did you check if other actions or scripts (like the makefile) are also still using janus-idp instead of rhdh-community ?

Yes, I checked that, and it should be fine. These are the remaining occurrences of janus-idp in this PR branch:
The on-new-issue.yaml file could be deleted, since GH issues are disabled in this repo.
.github/README.workflows.adoc:* link:https://github.com/openshift/release/tree/master/core-services/prow/02_config/janus-idp/[core-services/prow/02_config/janus-idp/]
.github/workflows/on-new-issue.yaml:    # https://github.com/janus-idp/.github/blob/main/.github/workflows/add-to-project.yaml
.github/workflows/on-new-issue.yaml:    uses: janus-idp/.github/.github/workflows/add-to-project.yaml@main
README.md:The initial target is in support of Red Hat's assemblies of Backstage - specifically supporting [dynamic-plugins](https://github.com/janus-idp/backstage-showcase/blob/main/showcase-docs/dynamic-plugins.md) on OpenShift. This includes [Red Hat Developer Hub (RHDH)](https://developers.redhat.com/rhdh) but may be flexible enough to install any compatible Backstage instance on Kubernetes. See additional information under [Configuration](docs/configuration.md).
README.md:The telemetry data collection feature is enabled by default. The default configuration uses image with backstage-plugin-analytics-provider-segment plugin enabled and configured. To disable this and to learn what data is being collected, see https://github.com/janus-idp/backstage-showcase/blob/main/showcase-docs/getting-started.md#telemetry-collection
bundle/manifests/backstage-default-config_v1_configmap.yaml:      # generated with the command below (from https://janus-idp.io/docs/auth/service-to-service-auth/#setup):
config/manager/default-config/secret-envs.yaml:  # generated with the command below (from https://janus-idp.io/docs/auth/service-to-service-auth/#setup):
docs/configuration.md:  The Operator can configure [Dynamic Plugins](https://github.com/janus-idp/backstage-showcase/blob/main/showcase-docs/dynamic-plugins.md). To support Dynamic Plugins, the Backstage deployment should contain a dedicated initContainer called **install-dynamic-plugins** (see [RHDH deployment.yaml](../config/manager/default-config/deployment.yaml)). To enable the Operator to configure Dynamic Plugins for a specific Backstage instance (CR), the user must create a ConfigMap with an entry called **dynamic-plugins.yaml**.
examples/showcase-config.yaml:               image: quay.io/janus-idp/backstage-showcase
pkg/model/dynamic-plugins.go:           // TODO workaround for the (janus-idp, rhdh) case where we have
tests/e2e/e2e_test.go:                                                  ContainSubstring("@janus-idp/backstage-scaffolder-backend-module-quay-dynamic"),
tests/e2e/e2e_test.go:                                                  ContainSubstring("@janus-idp/backstage-scaffolder-backend-module-regex-dynamic"),


Non-Void Method Should Return Value

This method needs a return value: UPCGalleryViewController.m:148 (doesn't work with modern XCode and was a smell before). Probably return NSNotFound;

Closed due new library version 3.0


chore: promote origins-cms to version 0.0.26

chore: promote origins-cms to version 0.0.26
this commit will trigger a pipeline to generate the actual kubernetes resources to perform the promotion which will create a second commit on this Pull Request before it can merge

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign dnmahendra
You can assign the PR to them by writing /assign @dnmahendra in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


undefined reference to `GetCodepointNext'

When compiling on Ubuntu with no special defines I get the following warning:
src/raygui.c: In function ‘GuiTextBox’:
src/raygui.c:2178:13: warning: implicit declaration of function ‘GetCodepointNext’; did you mean ‘GetCodepoint’? [-Wimplicit-function-declaration]
 2178 |             GetCodepointNext(text, &codepointSize);
      |             ^~~~~~~~~~~~~~~~
      |             GetCodepoint

And after compiling an example program the error message looks like this:
undefined reference to `GetCodepointNext'

Oh and you have write
gcc -o libraygui.so src/raygui.c ...

instead of
gcc -o raygui.so src/raygui.c ...

on linux. Otherwise the linked won't find raygui.

@MrKleeblatt It requires latest raylib version from GitHub master branch, raylib 4.5-dev.

Funny. Because that's exactly what I used. With just one branch it's really easy to find the one and only source file.


Cant have html elements in react component render method

Category

[ X] Bug

Expected or Desired Behavior
Abiliy to create react dropdown react component like in the guild
c
Observed Behavior
The project just say  Cannot find name 'div'. or any html element in a react component render method
Steps to Reproduce
https://dev.office.com/sharepoint/docs/spfx/web-parts/guidance/build-custom-property-pane-controls

Interesting part is if you put the react component into the file that contain the component for the webpart that was generated from yoman, typescript does not throw error on render method.

are you developing it in ts file or tsx file?

everything is in .ts files just like the guild talks about

Firstly if you need to render react element using the xml syntax you then must use tsx file. You must also wrap the whole elements in a container  if you need to render multiple elements within render.

So why do the other files dont need tsx?

tsx is basically an extension of jsx which is widely used in reactjs. If you're new to react, reading this article may help:
https://facebook.github.io/react/docs/jsx-in-depth.html
https://facebook.github.io/react/docs/hello-world.html
And maybe if necessary do a bit of tutorial (this is in ES6, not TypeScript but logically works):
https://egghead.io/courses/react-fundamentals

Closing this issue as @jonathanhotono redirected to some good resources for TSX. Feel free to re-open if you have further issues.


EOS Context changes

Hi, I used your code and all works fine, but for client (player controller) it does all in a chained events till you join the session.
So I wanted to split the "Find Sessions" and "Join Session" from your code and made 2 UBlueprintAsyncActionBase node to use in blueprint. What happens is that using your code for "Search Sessions" in that code causes "Invalid_User". This seems cause from:
    IOnlineSubsystem* Subsystem = Online::GetSubsystem(GetWorld());
that return 2 different context.
Can you help me resolving that?

I don't think the issue here is with Online::GetSubsystem(GetWorld()) as the OSS instance is the same. Could you share your logs for when the error is thrown? Is it possible when you split the code up you are calling FindSessions() before the player is logged in completely? The FindSessions() should only be done once the Login callback has been triggered.

Hi, thanks for you reply. Actually got if fixed "casually" and the problem was that:
GetWorld() inside UBlueprintAsyncActionBase->Activate return null.
I replaced GetWorld() with GEngine->GameViewport->GetWorld();


Add examples notebooks

Add more examples in jupyter notebooks form.
Try to illustrate the concepts of optimizing the models and trade-off between optimized model accuracy and size/performance.

Added 3a8e54e4496250ae1197adda94592ae6353cdfce


Added templating for iam policy generation and fixed wildcards

Signed-off-by: thejasn<EMAIL_ADDRESS>

/retest

/approve
/lgtm
/label px-approved
/label qe-approved
/label docs-approved


[Improvement] Reduce size of docker image

Current image is several GBs. Can we reduce?

My plan here is to split ModelDB into multiple Docker images. Dockerized projects typically run one service per image, so services can be started/stopped/upgraded at the container level rather than having to shell into them and keep track of what's changed from the image.
I was thinking four images:

Official MongoDB
Backend Java app and SQLite
Frontend NodeJS app
Pre-built ModelDB client libraries

The current monolithic image on Docker Hub is 5 GB. A server made of split images would only need about 2.5 GB: MongoDB (0.3 GB), backend (1.3 GB), and frontend (0.9 GB).
We could shrink the total another 0.5 GB by removing the Thrift compiler from images after it has served its purpose, but then incremental dev builds would take a long time. That's something to think about for production builds if we want to be aggressive about image sizes.
I'll include a Docker Compose file so end users only need to run docker-compose up to get a server going.
Thoughts?

I strongly support going the microservices route as you've suggested. At Scotiabank we were already talking about splitting up the repo into frontend, server, and client containers to achieve our aims - separating out MongoDB makes sense as well.

@shubhamchopra @skadambi thoughts?


Remove lock for etcd machines if underlying machine is deleted

If etcd controller is rolling out new nodes for external etcd, there is a deadlock scenario where the lock is waiting for another machine to initialize even though the underlying machine got deleted for a transient issue.
https://github.com/aws/etcdadm-bootstrap-provider/blob/main/internal/locking/locking.go#L58
We need to fix this by checking if the machine exists to be able to remove the lock and have it reconcile normally.

https://github.com/aws/etcdadm-bootstrap-provider/pull/41 should fix this deadlock issue.


Batocera config improvement for volume control - lines provided

Hello!
This should not an issue but an "idea", however I failed in finding that option, apologies.
I added the following configuration on the batocera.conf file to enable the following:

Hotkey (select) + UP = Volume Up
Hotkey (select) + DOWN = Volume Down

I find this extremely convenient since there is no volume up/down buttons on the ACM and though it would be good to share since in your release page you have anyway a section to add on the batocera.conf for proper button mapping.
Now, by default Save state slot+ and save sate slot- are mapped to hokey+up, hotkey+down; So I moved that to hotkey+right (save state up) and hotkey+left (save state down).
Here the config need to achieve the change I mention:
global.retroarch.input_volume_down = "down"
global.retroarch.input_volume_down_axis = "nul"
global.retroarch.input_volume_down_btn = "nul"
global.retroarch.input_volume_down_mbtn = "nul"
global.retroarch.input_volume_up = "up"
global.retroarch.input_volume_up_axis = "nul"
global.retroarch.input_volume_up_btn = "nul"
global.retroarch.input_volume_up_mbtn = "nul"

global.retroarch.input_state_slot_increase = "right"
global.retroarch.input_state_slot_decrease = "left"
global.retroarch.input_state_slot_increase_axis = "nul"
global.retroarch.input_state_slot_increase_btn = "nul"
global.retroarch.input_state_slot_increase_mbtn = "nul"
global.retroarch.input_state_slot_decrease_axis = "nul"
global.retroarch.input_state_slot_decrease_btn = "nul"
global.retroarch.input_state_slot_decrease_mbtn = "nul"

Feel free to add it to the guide, discard it or do as you see fit.
Thank a lot for your work!!

Thanks for the contribution. I tried that before but I didn't want to change the default batocera shortcuts. The reason is that those are in their documentation and guides so it's better to use different combos for those actions. Maybe hotkey+L/R buttons.

True, the only ones free are L/R (https://wiki.batocera.org/basic_commands)
Alternative Left/Right is used for rewind but I don't think we will be using rewind anytime for the ACM since it kills the performance

This works well, thankyou for sharing !


Cessna 172

Test

Current coverage is 87.34% (diff: 0.00%)

Merging #1 into master will decrease coverage by 0.10%

@@             master         #1   diff @@
==========================================
  Files            26         26
  Lines          1745       1747     +2
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1526       1526
- Misses          219        221     +2
  Partials          0          0

Powered by Codecov. Last update 7ca2f46...230920c


Estimating plot size stuck

Ubuntu 20
Subspace desktop version 0.3.3
the app stuck at estimating plot size during setup plots process

There are 2 components to this problem:

main problem: server is unable to handle all the requests. We will scale the server (but that is outside the scope of subspace-desktop repo)
desktop app was not being efficient in sending requests to the Public RPC. We have optimized the desktop-app requests to the public RPC, it is currently under review: #160

When this PR merges, and when we scale the server, this problem will be solved.
Thank you very much for this issue!

This is the duplicate of #121, let's track it there :)


docker version of taskcat 0.7.5 failing with cfnlint' has no attribute 'decode'

Describe the bug
Latest docker version 0.7.5 of taskcat is failing with the following error:
[taskcat] :Validate Template in test[quickstart-tableau-server]
[DEBUG  ] :cleanup set by cli flag False
Traceback (most recent call last):
File "/usr/local/bin/taskcat", line 79, in
main()
File "/usr/local/bin/taskcat", line 66, in main
tcat_instance.validate_template(taskcat_cfg, test_list)
File "/usr/local/lib/python3.6/site-packages/taskcat/stacker.py", line 648, in validate_template
self.define_tests(taskcat_cfg, test)
File "/usr/local/lib/python3.6/site-packages/taskcat/stacker.py", line 1560, in define_tests
m_constructor = cfnlint.decode.cfn_yaml.multi_constructor
AttributeError: module 'cfnlint' has no attribute 'decode'
To Reproduce
Steps to reproduce the behavior:

Pull latest docker image
Run any taskcat test

Fixed in https://github.com/aws-quickstart/taskcat/commit/8787dec5d21647fa0a84bb1a7be80243234eba77

Verified


[HOLD for payment 2023-11-09] [$500] [Form Provider Refactor] AddDebitCardPage

Coming from https://github.com/Expensify/App/issues/25397#issuecomment-1743272245, we created a new Form provider that works with functional components and we need to refactor all usages of the old Form component.
This issue is specific to refactoring src/pages/settings/Wallet/AddDebitCardPage.js
cc @kowczarz
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01b882bb5f74f3ae3b
Upwork Job ID:<PHONE_NUMBER>346003968
Last Price Increase: 2023-10-05

Hello! I'm Kamil Owczarz from Software Mansion, the expert agency and I would like to work on this task.

@kowczarz when can we expect a PR?

bump @kowczarz

I'm going to start working on this PR till the end of the week

@kowczarz is working on other related PRs, we'll get to this soon.

Sounds good!

In progress, any updates @luacmartins

I will start working on the PR today.

@kowczarz mind giving us an update

Amazing, ty @parasharrajat

@kowczarz @cdOut while testing this PR, we uncovered this issue with FormProvider that seems to affect other forms too - https://github.com/Expensify/App/issues/30703. Would you mind taking a look at it?

@kowczarz @cdOut any uodates?

@dylanexpensify I'm back from OOO, I will fix it today/tomorrow.

thanks @kowczarz!

how're we looking here @kowczarz

payment upcoming!

Payment summary:

Contributor: @kowczarz (SWM)
Contributor+: @parasharrajat $500

Please apply!

$500 approved for @parasharrajat


Question: Is There a Way to Get Notify/Email/Webhook If Offical Image is Updated?

We have our application image store in Azure Container Registry and it uses Microsoft official image "microsoft/aspnet:4.7.1-windowsservercore-ltsc2016".
Is it possible to notify us/email/webhook when image is updated in this repo?  For example, automatically trigger a build in our Azure DevOps to rebuild the application to take latest OS image.
Thanks!

I am not aware of anything.  If you are able to utilize ACR Tasks, they have support for this scenario as described here.
Moving to https://github.com/microsoft/ContainerRegistry since this is an MCR specific question.

Issue moved to microsoft/containerregistry #4 via ZenHub

Hi @MichaelSimons
If we have Linux container store in ACR and uses "ubuntu" official image from docker hub.  Is there a way for us to get notification/webhook when docker official repo is updated?  If we can get a webhook, we can trigger an application build in our CI build (Azure DevOps).
Or how do people usually watch or do when base image changes in Docker Hub?
Thanks!


Authorizer performance improvements

I'm still coming up to speed on how the authorization system works but I had some thoughts:
From what I can tell it seems that every authorization check (which there are of course many) runs with O(n) complexity where n is the number of ACL method checks required for any of the crud operations. This also does not include what appears to be a lot of time spent filtering ACLs to those actually required for the check.
I admit that I have not profiled this, but I think we could dramatically improve the performance by building 4 maps for each of c, r, u, and d operations which would map from type objects to a set of ACL objects.
For selecting only relevant ACLs for those which are attribute specific, we can create a map from attribute names to a set of ACL objects. For r and u operations we can then set intersect  x and y where x is the set of ACL objects given by looking up ACLs by object type and y is the set union of ACLs given by looking up each requested attribute name. I would expect the extra memory overhead to be minimal since we're only storing references to existing objects.
Further gains come from this computation being done once (ie building the dictionaries). A lot of the work filtering ACLs is currently done in every check Authorizer._get_relevant_acls_for_attributes and appears to be O(nm) where n is the number of ACLs and m is the number of requested fields.
It also looks like we could support using the class object as the actee for create operations. Which would provide an easy fix for authorizing #40.

Interesting idea, and I'm sure it would improve the performance of how we identify which roles will satisfy the currently requested permission.
Perhaps a less direct approach that would probably be simpler overall and easier to implement would be to cache the results of Authorizer._get_relevant_acls_for_attributes().  We could create a hash based on a combination of the arguments passed in and use that as a key to cache the results.
However, I think you'll find that since the total number of ACLs is really quite small and is never likely to even top 100, this operation is very fast already and represents a tiny fraction of the total time it takes to handle a request.
My biggest concern about authorizer performance is the check methods, which require a substantial amount of database activity to verify relationships.  Work has been done to minimize that, such as using django's "QuerySet.select_related()" method, and caching the results of certain methods.  My recent work to cache AuthToken objects with associated user data also helped.
In any case, I think this is a good idea that has to be a very low priority right now.  We need to finish implementing features ASAP, and then we can profile to identify performance problems.  Once identified and measured, we can address those performance issues.

Understood on the priority. Just figured it was worth documenting as I was reading through the code.

Maybe something like this https://gist.github.com/1408224

Great point.  It also looks like that code could stand to be cleaned up also.  Your mock-up is much more pythonic than the original.  Let's keep this around and implement it once the rest of our features are in place.
For what it's worth, I'm also not terribly concerned about write operation performance.  It is certainly sufficient as-is, and these writes are FAR less common than reads.  Our best opportunity to improve overall app performance is to streamline authorization of reads.

For future reference based on some profiling it may be worth caching Groups. Particularly for the actor_member_of_group check method.


fix merge conflict and linting issues

fixed merge conflict
fixed linting issues
made sure example was working
updated changelog

Woop, great!


Backlog - CM Collections Management

Add or Remove members to direct-rule Collections.  Include change logging and reporting

From a CM Device page (one device), the Collections tab, you can add the device to a Device Collection using a direct membership rule.   This will be added in reverse from the CM Collection (device) page, Direct Rules tab as well.  I may lock-out the "DirectRules" tab from allowing additions if there are any QueryRules assigned to the same Collection.  Thoughts?

complete as of 1812.15.01


Clarity Icon variants (alerts & badges) are downloading the regular icon

When you select a variant to download, it downloads the regular icon instead
Steps to recreate
Select any type of badge in the "badge" dropdown. Select any badged icon for download.

Expected behavior
It should download the icon you selected. Shijir says it used to work with clr/icons. But needs to be fixed in  cds/icons.
Versions
Clarity project:

[ ] Clarity Core
[ ] Clarity Angular/UI

Clarity version:

[ ] v3.x
[ ] v4.x
[ x ] v5.x

Framework:

[ ] Angular
[ ] React
[ ] Vue
[ ] Other:

Framework version:
ie: Angular 11
Device:

Type: [e.g. MacBook]
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Additional notes
Add any other notes about the problem here.

*Addendum: The solid variants, with and without alerts/badges, also have this issue. So to summarize, ALL variants are downloading the plain outline version.


Negative max tries is infinite.

Is there any reason not to have infinite retries if the MaxRetries is set to a negative value such as this (not to mention negative values are completely unhandled as it stands).

I don't see a compelling use case for infinite retries. But it can easily waste your resources. So I don't like this changes.
You can use MaxRetries = math.MaxInt32 to get something similar.


Add Bobcat to hardware definitions

Just FYI I believe there are two bobcat versions with different CPU and RAM... Possibly other changes too

We decided to kick the Bobcat down the road in favor of the RAK as it's lower hanging fruit. Bobcat will require some reverse engineering (flashing etc) along with Balena support.

Yes agreed

Are any teardowns/board pictures available?

Are any teardowns/board pictures available?

I will upload a few later today - mine just arrived.
Potential access methods I see are:
a.) SD card port - unsure what exact function this has.
b.) USB-OTG port on the back of the device
c.) Debug micro USB (only accessible when lid is removed)

@arduino43 they definitely use an ECC. I believe it's under the concentrator.
ECC is a requirement of hip19. You can't just store on emmc

Sorry, here you go:
https://imgur.com/a/XKkbwuD

Sorry, here you go:
https://imgur.com/a/XKkbwuD

Many thanks. I'm wondering if the SOC is under that IO shield..?

Yes, that would be it. I'll pop it off and post pictures.
You could also just look at the FCC listing, but the pictures are poor quality.

Yes, that would be it. I'll pop it off and post pictures.
You could also just look at the FCC listing, but the pictures are poor quality.

I'm glad you're braver than me :)
I'm mainly curious as to the exact name of the SOC, to see if any work has already been done to get BalenaOS running on it. The product page saying 'PX30' didn't seem that detailed.


Blazor Cookbook: Add features and publish it to the website

[x] Give each recipe a distinct URL so it can be linked to directly
[x] Improve the layout to support mobile views
[x] Clicking a recipe fails for the first one you click
[x] Menu horizontal slider needs to be hidden
[x] The plot size is weird and doesn't adjust well to all screen sizes
[x] Allow more pages than just cookbook recipes to be displayed in the menu
[x] Recipe JSON is loaded after every click, but it should be loaded once when the app starts and passed around
[x] A built-in search box would be great too
[ ] Support multi touch on mobile
[ ] More informative quickstart page
[ ] Disable right-click context menu that launches when zooming
[ ] Make the hamburger float instead of taking up a column
[ ] Add icons to change the plot size
[ ] Add icon to loading screen
[ ] Add OpenGraph meta tags

New live demo: https://swharden.com/tmp/sp/blazor/

Hello @swharden, looks nice 👍
I see some annoying bugs:

on mobile version, the dropdown menu is always open
on mobile version, when selecting an item in dropdown menu, the menu is not hidden
links for "performance tests" and "quick start" are absolute and not relative (which not work when app has not an absolute URL)
there seems to be a mistake between 2 functions for the navigation bar:

on small displays (eg mobile devices): the menu is a top bar which can be dropdown with the burger icon (collapseNavMenu)
on large displays: the menu is a sidebar (on the left) which can be collapsed to save space on screen (IconMenuActive)
those functions seem to be merged is a not very good way

I will try to create a PR

Would it be possible to add a web-based sandbox/playground environment, similar to a Notebook? This would allow users to directly execute some demos in the website

Would it be possible to add a web-based sandbox/playground environment, similar to a Notebook? This would allow users to directly execute some demos in the website

I love this idea, but I suspect this is not possible because it would require a C# compiler to also be available in the browser and I'm not sure if that's currently possible.

https://github.com/ashmind/SharpLab

https://github.com/ashmind/SharpLab

Thanks for sharing this project! It's awesome, but it doesn't run client-side in the browser right? It requires a server for the compilation?

Note to self: PR #3710 made improvements to the Blazor demo but wasn't merged yet. Take a closer look at that PR when this issue is picked up again.

Maybe this is not the right issue but I was looking through the examples in the cookbook and couldn't find an example of dynamically adding plots with, say, an add button. I thought if I had a list of plots I could just loop through them but this does not seem to work. Below is a toy page of what I am trying to do with a list of plots but get the following error error CS1656: Cannot assign to 'plot' because it is a 'foreach iteration variable'. What is the correct way to do this?
@page "/plots"

@using ScottPlot
@using ScottPlot.Blazor

ScottPlot 5 in Blazor

    @foreach(BlazorPlot plot in plots)
    {
        <BlazorPlot @ref=plot Style="=width: 400px; height: 300px;" />
    }
    <BlazorPlot @ref=BlazorPlot Style="width: 400px; height: 300px;" />

@code {
    List<BlazorPlot> plots {get; set; }= new();
    BlazorPlot BlazorPlot { get; set; } = new();
    protected override void OnInitialized()
    {
        try
        {
            for (int i=0; i<3; i++)
            {
                Console.WriteLine("Adding plot to list...");
                var newPlot = new BlazorPlot();
                plots.Add(newPlot);
            }
        }
        catch (Exception e)
        {
            Console.WriteLine(e);
        }
    }
    protected override async Task OnAfterRenderAsync(bool firstRender)
    {
        if (firstRender)
        {
            try
            {
                foreach(BlazorPlot plot in plots)
                {
                    plot.Plot.Add.Signal(Generate.Sin());
                    plot.Plot.Add.Signal(Generate.Cos());
                }
                BlazorPlot.Plot.Add.Signal(Generate.Sin());
                BlazorPlot.Plot.Add.Signal(Generate.Cos());

            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
    }
}

@wanaylor in fact this has nothing to do with ScottPlot, this is a Blazor child components rendering issue.
The easiest way to solve it, is to use a local variable:
    @for (var idx = 0; idx < plots.Count(); ++idx)
    {
        var idxRef = idx;
        <BlazorPlot @ref="plots[idxRef]" Style="width: 400px; height: 300px;" />
    }

I'm in a difficult situation using ScottPlot in Blazor WASM right now 🤣
I can provide some problems which I suggest Cookbook including.

C/J/K font detect will fail and break the character display.
No easy way to show data point label in Scatter-liked plots.
No events(such as OnMouseMove) similar to ones on other platforms(Winform/WPF), so I don't find the way to implement crosshair/text displaying with a picked point by mouse.

There isn't active momentum on this so I'll close this issue, but I'm really interested in bringing the quality of the Blazor cookbook (and even a live Blazor quickstart!) high enough that we feel good about showcasing it on https://scottplot.net/quickstart/blazor/


Shift Tab breaks range datepicker

To reproduce:

Go here http://eternicode.github.io/bootstrap-datepicker/
Select range date picker option
Fill out both input fields
Click on "to" input field, for the menu to pop up
Hit "shift + tab" two times, the datepicker will clear out.

This is not related to the plugin itself but to the demo page.
The inputs are reset by design when anything is focused on the options.


Fix elemental managed label value to match backup operator expectations

This PR ensures the token secret is kept in the backup tarball. Label elemental.cattle.io/managed needs to be set to true to actually be included within the backup according to https://github.com/rancher/backup-restore-operator/commit/52640728ca972d03e3b9861bcf28d40cc6819ada
Part of https://github.com/rancher/elemental/issues/776

For some reason I still need to figure out this is not fully fixing the issue, the service account is not set in sync again as I would have expected. According to the k8s docs I would have expected an automatic relink of the service-account with the associated token secret. This is also why I believe this pr in backup-restore-operator makes sense, as it is expected that k8s re-stablishes the link between the two.


Failed to run plotter.py

Hi @yihaosun1124
Thanks for sharing your great work!
I failed to run python run_example/plotter.py --algos "rambo" --task "hopper-medium-replay-v2", after following your setup instruction.
The outputs are:
Traceback (most recent call last):
  File "run_example/plotter.py", line 173, in <module>
    csv_file = merge_csv(path, args.query_file, args.query_x, args.query_y)
  File "run_example/plotter.py", line 42, in merge_csv
    assert len(results) > 0
AssertionError

After reading plotter.py, I'm not sure what this assert is for. Would you check from your side?
Best,
Levi

Hi,
I would also mention that RAMBO failed to train from my side. Currently, I don't have enough time to check which part is wrong, so I just attached the training log for your reference.
Best,
Levi
policy_training_progress.csv
dynamics_training_progress.csv

This error in plotter.py occurred because the path you specified does not exist. You may carefully inspect whether the specified path "log/hopper-medium-replay-v2/rambo" exists.
For the second issue, could you please additionally provide the "hyper_params.json" file? It will help us to better locate the bug.

You may carefully inspect whether the specified path "log/hopper-medium-replay-v2/rambo" exists.

No, I didn't create this path. I will create this path and try again. Thank you.

For the second issue, could you please additionally provide the "hyper_params.json" file? It will help us to better locate the bug.

There you go, sir.
{"algo_name": "rambo", "task": "hopper-medium-v2", "seed": 0, "actor_lr": 0.0001, "critic_lr": 0.0003, "dynamics_lr": 0.0003, "dynamics_adv_lr": 0.0003, "hidden_dims": [256, 256, 256], "gamma": 0.99, "tau": 0.005, "alpha": 0.2, "auto_alpha": true, "target_entropy": -3.0, "alpha_lr": 0.0001, "dynamics_hidden_dims": [200, 200, 200, 200], "dynamics_weight_decay": [2.5e-05, 5e-05, 7.5e-05, 7.5e-05, 0.0001], "n_ensemble": 7, "n_elites": 5, "rollout_freq": 250, "dynamics_update_freq": 1000, "adv_batch_size": 256, "rollout_batch_size": 50000, "rollout_length": 5, "adv_weight": 0.0003, "model_retain_epochs": 5, "real_ratio": 0.5, "load_dynamics_path": null, "epoch": 2000, "step_per_epoch": 1000, "eval_episodes": 10, "batch_size": 256, "device": "cuda", "include_ent_in_adv": false, "load_bc_path": null, "bc_lr": 0.0001, "bc_epoch": 50, "bc_batch_size": 256, "obs_shape": [11], "action_dim": 3.0, "max_action": 1.0}

Hi, I would also mention that RAMBO failed to train from my side. Currently, I don't have enough time to check which part is wrong, so I just attached the training log for your reference.
Best, Levi policy_training_progress.csv
dynamics_training_progress.csv

Sorry for the late reply! We've fixed the bug in rambo and the new version of rambo works well on several tested tasks (hopper-medium, hopper-medium-replay, walker-medium). Please pull the newest code! Evaluation on more tasks is going on and we'll list the full results soon.

Hi, I have seen your recent PR
           -   observations = next_observations
           +   observations = next_observations.copy()

That makes sense to me. Well done, sir!
I'm testing the new code from my side and will update whether it works fine or not

Hi,
Unfortunately, it does work for the same hyperparameter listed above. I will try with a different random seed and see if there is any difference.


Add code generators to help build workflows

Last part taken from this PR

It might make sense to have tests for the generators so the edge cases are covered (I'm not sure if you plan to do a builder for every possible combination).


[stable/elasticsearch-curator] Make helm hook job object have the same command as the CronJob

What this PR does / why we need it:
The helm hook Job did not use the same command as the CronJob.
Which issue this PR fixes
Fixes #18994
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

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

@gianrubio @desaintmartin

/ok-to-test
/assign

/lgtm


push_transaction API got tx_net_usage_exceeded 3080002

Got the following error and don't know what it is meaning?
2018-06-15 07:05:53,391 INFO /v1/chain/push_transaction{"code":500,"message":"Internal Service Error","error":{"code":3080002,"name":"tx_net_usage_exceeded","what":"transaction exceeded the current network usage limit imposed on the transaction","details":[{"message":"net usage of transaction is too high: 184 > 0","file":"transaction_context.cpp","line_number":278,"method":"check_net_usage"}]}}

@bytemaster Would you please help to check this issue?

Have you staked enough EOS for your account's net limit?

How to calculate how many to stake?

Are you using the mainnet?
The easiest way to do the approximation is by using cleos get account divide the amount of your limit with your stake+delegated and you know roughly how much net you get with 1 EOS. It's roughly linear for a short term.


Bring up to date

Accept requests without Gitea tokens
Two new PDF queues added
Other admin-type updates

Pull Request Test Coverage Report for Build 123

6 of 125 (4.8%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-6.1%) to 16.37%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

tXenqueue/check_posted_tx_payload.py
5
20
25.0%

tXenqueue/tx_enqueue_main.py
0
104
0.0%

Totals

Change from base Build 108:
-6.1%

Covered Lines:
46

Relevant Lines:
281

💛  - Coveralls


Mavlink seems not to work

I have problems by using the Mavlink functionality. I am creating a Mission with a simple TakeOff and Landing item by using the following function.
- (void)writeMavlinkFileWithLatitude:(double)latitude longitude:(double)longitude altitude:(double)altitude
{
   eARMAVLINK_ERROR mavError = ARMAVLINK_OK;

   ARMAVLINK_FileGenerator_t* _mavlinkFileGen = ARMAVLINK_FileGenerator_New(&mavError);

   mavlink_mission_item_t item;
   mavlink_mission_item_t item2;

   mavError = ARMAVLINK_MissionItemUtils_CreateMavlinkTakeoffMissionItem(&item, latitude, longitude, altitude + 2, 0, 0);
   mavError = ARMAVLINK_FileGenerator_AddMissionItem(_mavlinkFileGen, &item);

   mavError = ARMAVLINK_MissionItemUtils_CreateMavlinkLandMissionItem(&item2, latitude, longitude, altitude, 0);
   mavError = ARMAVLINK_FileGenerator_AddMissionItem(_mavlinkFileGen, &item2);

   mission_item_list_t* list = ARMAVLINK_FileGenerator_GetCurrentMissionItemList(_mavlinkFileGen, NULL);
   int count = ARMAVLINK_ListUtils_MissionItemListGetSize(list);
   NSLog(@"count: %i", count);

   NSArray* paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
   NSString* documentsDirectory = [paths objectAtIndex:0];
   NSString* path = [documentsDirectory<EMAIL_ADDRESS>
   ARMAVLINK_FileGenerator_CreateMavlinkFile(_mavlinkFileGen, [path cStringUsingEncoding:NSUTF8StringEncoding]);

   ARMAVLINK_FileGenerator_Delete(&_mavlinkFileGen);
   _mavlinkFileGen = NULL;
}

After that I try to send this to the drone. Unfortunately I don't get any error and no callback is called. The drone does not follow the flight plan. What am I doing wrong?

- (BOOL)uploadMavlinkFile
{
   BOOL sentStatus = YES;
   u_int8_t cmdBuffer[4096];
   int32_t cmdSize = 0;
   eARCOMMANDS_GENERATOR_ERROR cmdError;
   eARNETWORK_ERROR netError = ARNETWORK_ERROR;

   NSArray* paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
   NSString* documentsDirectory = [paths objectAtIndex:0];
   NSString* path = [documentsDirectory<EMAIL_ADDRESS>
   // Send mavlink
   cmdError = ARCOMMANDS_Generator_GenerateCommonMavlinkStart(cmdBuffer, sizeof(cmdBuffer), &cmdSize,
                                                              [path cStringUsingEncoding:NSUTF8StringEncoding], ARCOMMANDS_COMMON_MAVLINK_START_TYPE_FLIGHTPLAN);
   NSLog(@"cmdError: %i", cmdError);
   if (cmdError == ARCOMMANDS_GENERATOR_OK)
   {
      netError = ARNETWORK_Manager_SendData(_netManager, BD_NET_C2D_ACK, cmdBuffer, cmdSize, NULL, &(arnetworkCmdCallback), 1);
      NSLog(@"netError: %i", netError);
   }

   if ((cmdError != ARCOMMANDS_GENERATOR_OK) || (netError != ARNETWORK_OK))
   {
      sentStatus = NO;
   }

   return sentStatus;
}

Can anybody provide me help? What am I doing wrong?

Hi,
Autonomous flight is not supported yet by your Bebop. It will come very soon in the next firmware update.
In your code, it seems that you missed the part where you should send the mavlink file to the bebop.
This is done with ftp on the port 61. After this transfer, you can send the  ARCOMMANDS_Generator_GenerateCommonMavlinkStart command.
Best regards,
Djavan

Good to hear! Is there any other API I can use until the firmware update to send the drone to a specific coordinate or can I do this only by using Mavlink?

Not that I am aware of.
If you really need to do it before the next firmware release (in the coming weeks), you can maybe look at Paparazzi. I can't provide support on it, but I think they support the bebop. It is not very easy, so maybe a small wait is better ;)
Regards,
Djavan


Components - Sprint 3

This PR includes the following changes:

Added AlertDialog composable. However, it is not 100% functional since we found a possible bug in the core that is being investigated.
Added BadgeBox composable.
Added other four types of Buttons: ElevatedButton, FilledTonalButton, OutlinedButton, and TextButton.
Added ExposedDropDownMenuBox composable, which allows to create a  Combobox/Dropdown.
Added DropDownItemMenu which can be used as an item of a Combobox/Dropdown.
Added Snackbar composable and its integration with Scaffold.
Fixed an issue in TextField which was blocking the Comboxbox/Dropdown implementation.
Added ElevatedCard and OutlinedCard composables.
Added RangeSlider composable.

This branch was tested using the next branch of Scratchboard app.


Auto scaling of y-axes doesn't work if data is typed array

Auto scaling of y-axes doesn't work if data is typed array say e.g.
myMixedChart.data.datasets[0].data = Uint32Array_data_array;
However, labels (x-axis) redraw as per new data (even when typed array is used).
Current Behaviour/Expected Behavior
I wouldn't call this strictly a bug, but since lot of folks use serialization libraries such as protobuff etc, de-serialization results into typed arrays. which when assigned to data of chart object, auto-scaling fails and is hard to debug (untill you know typed array is causing issue). Expected behavior is auto-scaling should work on typed arrays too.
Possible Solution
use Array.from before assigning typed array to chart data. e.g.
myMixedChart.data.datasets[0].data = Array.from(Uint32Array_data_array);
Context
Using serialization library which returns chart data as binary buffer. Once de-serialization is done, all the data arrays are typed arrays.
Environment

Chart.js version: 2.7

This was likely solved by #5905 and released in v2.8


AML Compute does not build when private in the workspace

The standard mcr docker images used for the AML compute clusters do not work within the TRE as access to conda / pypi repos are blocked and enabled via the package mirrors.
The setup for the nexus mirror needs to be baked in to the image used for compute in AML.
Plan is to:

take a docker image FROM the standard one, and append the conda / pypi config to it.
build the docker image as part of the AML deploy
push docker image to the AML ACR
(optional) add an environment to AML which references the custom docker image

@damoodamoo believe you have a workaround/solution for this? Are you good to add some notes and I'll pop on the engineering board for when you are ready to do the upstream work? Thanks.

Current plan is to push a dockerfile to the AML - ACR, and use acr tasks to build that image, then document the name of the image for use in AML environments.


chore: restructured test directory to match standard

:tada: This PR is included in version 2.7.11 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add the integral and derivative of sentiment scores to the feature set

@alichtman Are these even the right transforms for this kinda data? Did you tell your Dad that sentiment was a nominal value?

Derivative Analysis -- Change in sentiment from day to day. More days == more smoothing.
Integral Analysis -- Area under the curve. Shows accumulated sentiment. Higher number means more general positive sentiment over a period of time.

Lmao, dude I know what derivatives and integrals are and what they'd show. I'm saying that sentiment is a categorical variable, not a continuous one, so the derivative will always be zero.

We're looking at it over a period of time (we need to use some regression testing to pick the best length), so the derivative won't be zero, right?

No. When you plot sentiment over time, it's going to be a series of horizontal lines.

But I just realized this problem disappears if we use the weighted average sentiment values since they're continuous.

So disregard :^)

So, first step is going to be estimating a function for the average sentiment over each x day period, and then either:

Estimate definite integral from t -> t+x, where t+x is the most recent day in the analysis window
Take some average of the derivatives in the analysis window

For 1, this SO post pretty much covers it.
Not 100% sure what to do about 2 yet.

Just committed the integral analysis. Opening PR, but trying to get derivative done tonight too.
Current thinking on 2. -> We have the data in the form of a list of average daily sentiment scores. I wrote a function to split them into a list of lists that would represent a sliding window. I could write a function to estimate a function for each list and then take the derivative at each day and average them from that.
I haven't seen any libraries that have this capability yet, but I'm going to keep poking around for a little bit.

I'll let you handle this tbh. Make sure both functions take in a dataframe that includes a column for sentiment.

The xdata is time, the ydata is sentiment.

 :)

Actually, since we're adding lag variables (i.e. we'll have sentiment at t, t-1, t-2, and t-3 in our feature set), is the derivative analysis really necessary? It's meant to show how sentiment is changing over time, but the lag variables already do that.
I'm gonna close this for now.


navidrome: 0.29.0 -> 0.38.0

Motivation for this change
Supersedes #97206
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

/marvin opt-in
/status needs_reviewer

Result of nixpkgs-review pr 104639 1

1 package built:

navidrome


Suggested alternative to GitHub

Hi Alex (@acabal),
In the Help Wanted section of the README, you mention the need for a self-hosting alternative to GitHub. The privacyguides.org organisation are currently discussing this question in two separate discussions:

Privacy oriented GitHub alternatives?
Is there any privacy friendly alternative to github.

Several alternatives are suggested, but one that you might want to consider is Codeberg. In the thread it is mentioned as:

an EU non-profit organization which runs on Gitea

Gitea describe themselves as:

A painless, self-hosted Git service

Interestingly, Matthew Butterick of Practical Typography, recently moved his GitHub repos to Codeberg. There was a recent heavily commented discusson at: opinions sought: costs & benefits of switching to self-hosted Git server?
Perhaps there might be some ideas in these links that would help with the decision on where best to move?
Kind Regards,
Liam

Thanks Liam! If we do switch from Github, we want a self-hosted solution. Our concern with Github isn't privacy, rather it's  being charge of our own data and not relying on others for infrastructure.
So the question is, what product can be self hosted and how do we do it with the minimum amount of maintenance pain? This probably means something like Docker but I don't have any Docker experience. Gitea seems to be the closest to Github in terms of functionality and is probably the frontrunner in terms of options.

Hi Alex (@acabal),
Unfortunately, I don't have any experience in self-hosting, but I had recently come across these threads and felt that they might be useful in providing some background.
Matthew Butterick has recently moved his Pollen project, among many others, to his own server using Codeberg and the functionality looks comparable to GitHub. It is certainly worth considering.
Kind Regards,
Liam


chore: update dependencies and migrate to boxo

Codecov Report

Merging #25 (0271129) into main (006ed92) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #25   +/-   ##
=======================================
  Coverage   18.85%   18.85%
=======================================
  Files           4        4
  Lines         472      472
=======================================
  Hits           89       89
  Misses        362      362
  Partials       21       21

Impacted Files
Coverage Δ

lib/bitswap.go
41.52% <ø> (ø)

lib/dht.go
33.94% <ø> (ø)

main.go
0.00% <ø> (ø)

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

Merging because the failing tests are due to Go 1.18 no longer being supported by go-libp2p. CI will get updated in #23


C# fix null ref in LRO constructor

Current coverage is 82.85% (diff: 100%)

Merging #906 into master will not change coverage

@@             master       #906   diff @@
==========================================
  Files           334        334
  Lines         12977      12977
  Methods           0          0
  Messages          0          0
  Branches       1706       1706
==========================================
  Hits          10752      10752
  Misses         1786       1786
  Partials        439        439

Powered by Codecov. Last update 5e06ec0...0bf3d01


Dexalot - The websocket connection was closed

Describe the bug
When reviewing a dexalot instance from dashboard that has been running over 2 days, observed these instance of errors The websocket connection was closed (The WS connection was closed unexpectedly. Close code = 1000 msg data: None) and seem to stopped the connection from hummingbot and dexalot exchange
2024-12-05 06:39:49,530 - 15 - hummingbot.connector.client_order_tracker - INFO - Created LIMIT BUY order 0xb8bd24f7cfec0a9063ad4e2d0b390369fd96d70e9ee6316e3bb63264217f8aba for 0.485 AVAX-USDC at 51.473.
2024-12-05 06:39:49,538 - 15 - hummingbot.core.event.event_reporter - EVENT_LOG - {"timestamp":<PHONE_NUMBER>.0, "type": "OrderType.LIMIT", "trading_pair": "AVAX-USDC", "amount": "0.485", "price": "51.473", "order_id": "0xb8bd24f7cfec0a9063ad4e2d0b390369fd96d70e9ee6316e3bb63264217f8aba", "creation_timestamp":<PHONE_NUMBER>.0, "exchange_order_id": "0x000000000000000000000000000000000000000000000000000000006feff327", "leverage": 1, "position": "NIL", "event_name": "BuyOrderCreatedEvent", "event_source": "dexalot"}
2024-12-05 06:41:12,007 - 15 - hummingbot.strategy.script_strategy_base - INFO - Skipping rebalance due a low amount to sell that may cause future imbalance
.... trimmed from logs

024-12-05 06:52:41,342 - 15 - hummingbot.connector.exchange.dexalot.dexalot_api_user_stream_data_source.DexalotAPIUserStreamDataSource - WARNING - The websocket connection was closed (The WS connection was closed unexpectedly. Close code = 1000 msg data: None)
2024-12-05 06:52:41,541 - 15 - hummingbot.connector.exchange.dexalot.dexalot_api_order_book_data_source.DexalotAPIOrderBookDataSource - WARNING - The websocket connection was closed (WS error: )
2024-12-05 06:52:41,669 - 15 - hummingbot.core.rate_oracle.rate_oracle - INFO - Network status has changed to NetworkStatus.NOT_CONNECTED. Stopping networking...
2024-12-05 06:52:59,406 - 15 - hummingbot.connector.exchange.dexalot.dexalot_api_order_book_data_source.DexalotAPIOrderBookDataSource - ERROR - Unexpected error occurred when listening to order book streams. Retrying in 5 seconds...
Traceback (most recent call last):
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 1345, in _create_direct_connection
    hosts = await self._resolve_host(host, port, traces=traces)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 964, in _resolve_host
    await future
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 1020, in _resolve_host_with_throttle
    addrs = await self._resolver.resolve(host, port, family=self._family)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/resolver.py", line 36, in resolve
    infos = await self._loop.getaddrinfo(
  File "/opt/conda/envs/hummingbot/lib/python3.10/asyncio/base_events.py", line 863, in getaddrinfo
    return await self.run_in_executor(
  File "/opt/conda/envs/hummingbot/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/conda/envs/hummingbot/lib/python3.10/socket.py", line 967, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

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

Traceback (most recent call last):
  File "/home/hummingbot/hummingbot/core/data_type/order_book_tracker_data_source.py", line 78, in listen_for_subscriptions
    ws: WSAssistant = await self._connected_websocket_assistant()
  File "/home/hummingbot/hummingbot/connector/exchange/dexalot/dexalot_api_order_book_data_source.py", line 78, in _connected_websocket_assistant
    await ws.connect(ws_url=url, ping_timeout=CONSTANTS.WS_HEARTBEAT_TIME_INTERVAL)
  File "/home/hummingbot/hummingbot/core/web_assistant/ws_assistant.py", line 45, in connect
    await self._connection.connect(
  File "/home/hummingbot/hummingbot/core/web_assistant/connections/ws_connection.py", line 39, in connect
    self._connection = await self._client_session.ws_connect(
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/client.py", line 1002, in _ws_connect
    resp = await self.request(
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/client.py", line 701, in _request
    conn = await self._connector.connect(
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 544, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 1050, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 1351, in _create_direct_connection
    raise ClientConnectorDNSError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorDNSError: Cannot connect to host api.dexalot.com:443 ssl:default [Temporary failure in name resolution]
2024-12-05 06:52:41,342 - 15 - hummingbot.connector.exchange.dexalot.dexalot_api_user_stream_data_source.DexalotAPIUserStreamDataSource - WARNING - The websocket connection was closed (The WS connection was closed unexpectedly. Close code = 1000 msg data: None)
2024-12-05 06:52:41,541 - 15 - hummingbot.connector.exchange.dexalot.dexalot_api_order_book_data_source.DexalotAPIOrderBookDataSource - WARNING - The websocket connection was closed (WS error: )
2024-12-05 06:52:41,669 - 15 - hummingbot.core.rate_oracle.rate_oracle - INFO - Network status has changed to NetworkStatus.NOT_CONNECTED. Stopping networking...
.... trimmed from logs

2024-12-05 06:56:20,652 - 15 - hummingbot.core.rate_oracle.rate_oracle - INFO - Network status has changed to NetworkStatus.CONNECTED. Starting networking...
2024-12-05 06:56:25,503 - 15 - hummingbot.connector.exchange.dexalot.dexalot_api_order_book_data_source.DexalotAPIOrderBookDataSource - INFO - Subscribed to public order book and trade channels...
2024-12-05 06:56:25,726 - 15 - hummingbot.connector.exchange.dexalot.dexalot_api_user_stream_data_source.DexalotAPIUserStreamDataSource - INFO - Subscribed to private order changes and trade updates channels...
2024-12-05 06:56:35,128 - 15 - hummingbot.connector.exchange.dexalot.dexalot_exchange.DexalotExchange - INFO - Network status has changed to NetworkStatus.CONNECTED. Starting networking...
2024-12-05 06:56:35,129 - 15 - hummingbot.core.data_type.order_book_tracker - INFO - Initialized order book for AVAX-USDC. 1/1 completed.
2024-12-05 06:56:35,908 - 15 - hummingbot.connector.exchange.dexalot.dexalot_exchange.DexalotExchange - WARNING - Ask orderbook for AVAX-USDC is empty.
2024-12-05 06:56:35,908 - 15 - hummingbot.connector.exchange.dexalot.dexalot_exchange.DexalotExchange - WARNING - Bid orderbook for AVAX-USDC is empty.
.... trimmed from logs

2024-12-05 07:39:43,248 - 15 - hummingbot.strategy.script_strategy_base - INFO - (AVAX-USDC) Canceling the limit order 0xb8bd24f7cfec0a9063ad4e2d0b390369fd96d70e9ee6316e3bb63264217f8aba. [clock=2024-12-05 07:39:43+00:00]
2024-12-05 07:39:49,626 - 15 - hummingbot.connector.exchange.dexalot.dexalot_exchange.DexalotExchange - WARNING - {'code': -32000, 'message': 'nonce too low: next nonce 13175, tx nonce 13174'} Attempt cancelAddList 1/5
2024-12-05 07:39:49,941 - 15 - hummingbot.core.event.event_reporter - EVENT_LOG - {"timestamp":<PHONE_NUMBER>.0, "order_id": "0xb8bd24f7cfec0a9063ad4e2d0b390369fd96d70e9ee6316e3bb63264217f8aba", "exchange_order_id": "0x000000000000000000000000000000000000000000000000000000006feff327", "event_name": "OrderCancelledEvent", "event_source": "dexalot"}
2024-12-05 07:39:49,941 - 15 - hummingbot.connector.client_order_tracker - INFO - Successfully canceled order 0xb8bd24f7cfec0a9063ad4e2d0b390369fd96d70e9ee6316e3bb63264217f8aba.

It seems getting timeouts or disconnection from dexalot when an order is placed for the longest time
Observed when the hummingbot and dexalot return connection, it spams orderbook for bid and ask for the selected market is empty in which it recovers after couple of minutes ❌
Gap between order created and cancellation is around 3600s which is correct ✅
There has no orders affected nor stuck orders on exchange ✅

Note: The instance where this log was taken is still running as of the time of this issue was reported. Monitoring for possible issues on orders when hit sudden wss disconnection
Steps to reproduce

Setup a bot on dashboard or standalone hummingbot client
Use dexalot as connecto on v2 strategies
Setup a config with long refresh time (on this test its using 3600s)

Release version
dev-2.2
Type of installation
Source
Attach required files
logs_dexalot-avaxusdc-2024.12.03_23.26.log

When hummingbot and dexalot connection closed due to this issue, observed the following errors occurred:
The connector returns failed to update balances ❌
2024-12-03 16:10:10,562 - 15 - hummingbot.connector.exchange.dexalot.dexalot_exchange.DexalotExchange - WARNING - Failed to update balances. Error:
Traceback (most recent call last):
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/client.py", line 701, in _request
    conn = await self._connector.connect(
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 544, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 1050, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 1345, in _create_direct_connection
    hosts = await self._resolve_host(host, port, traces=traces)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 989, in _resolve_host
    return await asyncio.shield(resolved_host_task)
asyncio.exceptions.CancelledError

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

Traceback (most recent call last):
  File "/home/hummingbot/hummingbot/connector/exchange_py_base.py", line 939, in _update_all_balances
    await self._update_balances()
  File "/home/hummingbot/hummingbot/connector/exchange/dexalot/dexalot_exchange.py", line 828, in _update_balances
    self._account_balances, self._account_available_balances = await self._tx_client.get_balances(
  File "/home/hummingbot/hummingbot/connector/exchange/dexalot/data_sources/dexalot_data_source.py", line 63, in get_balances
    balances = await self.portfolio_sub_manager.functions.getBalances(Account.from_key(self._private_key).address, 50).call()
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/contract/async_contract.py", line 307, in call
    return await async_call_contract_function(
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/contract/utils.py", line 305, in async_call_contract_function
    return_data = await async_w3.eth.call(
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/eth/async_eth.py", line 272, in call
    return await self._durin_call(transaction, block_identifier, state_override)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/eth/async_eth.py", line 291, in _durin_call
    return await self._call(transaction, block_identifier, state_override)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/module.py", line 118, in caller
    result = await async_w3.manager.coro_request(
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/manager.py", line 344, in coro_request
    response = await self._coro_make_request(method, params)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/manager.py", line 224, in _coro_make_request
    return await request_func(method, params)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/middleware/gas_price_strategy.py", line 126, in middleware
    return await make_request(method, params)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/middleware/names.py", line 139, in middleware
    return await make_request(method, params)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/middleware/attrdict.py", line 69, in middleware
    response = await make_request(method, params)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/middleware/formatting.py", line 178, in middleware
    await async_web3_formatters_builder(async_w3, method),
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/middleware/validation.py", line 161, in async_build_method_validators
    w3_chain_id = await async_w3.eth.chain_id
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/eth/async_eth.py", line 155, in chain_id
    return await self._chain_id()
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/module.py", line 118, in caller
    result = await async_w3.manager.coro_request(
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/manager.py", line 344, in coro_request
    response = await self._coro_make_request(method, params)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/manager.py", line 224, in _coro_make_request
    return await request_func(method, params)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/middleware/gas_price_strategy.py", line 126, in middleware
    return await make_request(method, params)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/middleware/names.py", line 139, in middleware
    return await make_request(method, params)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/middleware/attrdict.py", line 69, in middleware
    response = await make_request(method, params)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/middleware/formatting.py", line 185, in middleware
    response = await make_request(method, params)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/middleware/buffered_gas_estimate.py", line 58, in middleware
    return await make_request(method, params)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/middleware/formatting.py", line 185, in middleware
    response = await make_request(method, params)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/middleware/exception_retry_request.py", line 167, in middleware
    return await make_request(method, params)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/providers/async_rpc.py", line 91, in make_request
    raw_response = await async_make_post_request(
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/_utils/request.py", line 241, in async_make_post_request
    response = await async_get_response_from_post_request(
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/web3/_utils/request.py", line 234, in async_get_response_from_post_request
    response = await session.post(endpoint_uri, *args, **kwargs)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/client.py", line 607, in _request
    with timer:
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/helpers.py", line 671, in __exit__
    raise asyncio.TimeoutError from exc_val
asyncio.exceptions.TimeoutError
2024-12-03 16:10:11,154 - 15 - hummingbot.core.rate_oracle.rate_oracle - INFO - Network status has changed to NetworkStatus.NOT_CONNECTED. Stopping networking...
2024-12-03 16:10:12,356 - 15 - hummingbot.client.performance - WARNING - Could not find exchange rate for AVAX-USDC using binance rate oracle. PNL value will be inconsistent.
2024-12-03 16:10:14,360 - 15 - hummingbot.client.performance - WARNING - Could not find exchange rate for AVAX-USDC using binance rate oracle. PNL value will be inconsistent.
2024-12-03 16:10:16,362 - 15 - hummingbot.client.performance - WARNING - Could not find exchange rate for AVAX-USDC using binance rate oracle. PNL value will be inconsistent.
2024-12-03 16:10:16,541 - 15 - hummingbot.connector.exchange.dexalot.dexalot_api_order_book_data_source.DexalotAPIOrderBookDataSource - WARNING - The websocket connection was closed (WS error: )

Connector failed to fetch order updates ❌
2024-12-03 16:10:30,556 - 15 - hummingbot.connector.exchange.dexalot.dexalot_exchange.DexalotExchange - WARNING - Failed to fetch trade updates for order 0x4abfd7d2fc496b986bfb4a909a4125b3ba7563cbb041e079f3dab9ebe4c7f87c. Error: Cannot connect to host api.dexalot.com:443 ssl:default [Temporary failure in name resolution]
Traceback (most recent call last):
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 1345, in _create_direct_connection
    hosts = await self._resolve_host(host, port, traces=traces)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 989, in _resolve_host
    return await asyncio.shield(resolved_host_task)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 1345, in _create_direct_connection
    hosts = await self._resolve_host(host, port, traces=traces)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 964, in _resolve_host
    await future
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 1020, in _resolve_host_with_throttle
    addrs = await self._resolver.resolve(host, port, family=self._family)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/resolver.py", line 36, in resolve
    infos = await self._loop.getaddrinfo(
  File "/opt/conda/envs/hummingbot/lib/python3.10/asyncio/base_events.py", line 863, in getaddrinfo
    return await self.run_in_executor(
  File "/opt/conda/envs/hummingbot/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/conda/envs/hummingbot/lib/python3.10/socket.py", line 967, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

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

Traceback (most recent call last):
  File "/home/hummingbot/hummingbot/connector/exchange_py_base.py", line 955, in _update_orders_fills
    trade_updates = await self._all_trade_updates_for_order(order=order)
  File "/home/hummingbot/hummingbot/connector/exchange/dexalot/dexalot_exchange.py", line 754, in _all_trade_updates_for_order
    all_fills_response = await self._api_get(
  File "/home/hummingbot/hummingbot/connector/exchange_py_base.py", line 863, in _api_get
    return await self._api_request(*args, **kwargs)
  File "/home/hummingbot/hummingbot/connector/exchange_py_base.py", line 906, in _api_request
    request_result = await rest_assistant.execute_request(
  File "/home/hummingbot/hummingbot/core/web_assistant/rest_assistant.py", line 47, in execute_request
    response = await self.execute_request_and_get_response(
  File "/home/hummingbot/hummingbot/core/web_assistant/rest_assistant.py", line 94, in execute_request_and_get_response
    response = await self.call(request=request, timeout=timeout)
  File "/home/hummingbot/hummingbot/core/web_assistant/rest_assistant.py", line 108, in call
    resp = await wait_for(self._connection.call(request), timeout)
  File "/opt/conda/envs/hummingbot/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
    return await fut
  File "/home/hummingbot/hummingbot/core/web_assistant/connections/rest_connection.py", line 10, in call
    aiohttp_resp = await self._client_session.request(
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/client.py", line 701, in _request
    conn = await self._connector.connect(
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 544, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 1050, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
  File "/opt/conda/envs/hummingbot/lib/python3.10/site-packages/aiohttp/connector.py", line 1351, in _create_direct_connection
    raise ClientConnectorDNSError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorDNSError: Cannot connect to host api.dexalot.com:443 ssl:default [Temporary failure in name resolution]

logs_dexalot-avaxusdc-2024.12.03_23.26.log.2024-12-03.log


Optimizer: some improvements for alias analysis in several utilities

Handle destroy_value [dead_end]  in AliasAnalylsis.computeMemoryEffect: We don't have to take deinit effects into account for a destroy_value [dead_end]. Such destroys are lowered to no-ops and will not call any deinit.
A small refactoring: use AccessBase.isLet instead of duplicating the code in MemoryLocation.isLetValue.
Handle more use types for unchecked_addr_cast in EscapeInfo.
Recognize addressor calls of globals as a "global" access base in AccessUtils.

@swift-ci test

@swift-ci benchmark


Venkat

Followed the steps and managed to get the production Redirect URLs configured.  The app works fine with production URL.  Now with the same DomainCallBack URL for the AD prompt, we get the token but this token is not valid (401 error) in the App Service which is running in the visual studio.  Unable to figure out without which we could not debug the app.
These steps are maximum confusing without screenshot or video illustration.  Also there are several combination of parameters in different locations and very confusing to get all parameters in correct place.  No way to debug and find what is wrong where.

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

ID: 34a42775-fe33-ccab-3b5b-22c5db4f60c1
Version Independent ID: 5e892b9d-3620-9d45-1fd7-e2e900cd2079
Content: Configure Azure Active Directory authentication for your App Services application
Content Source: articles/app-service/app-service-mobile-how-to-configure-active-directory-authentication.md
Service: app-service-mobile
GitHub Login: @mattchenderson
Microsoft Alias: mahender

@rrvenki Thanks for the feedback! We are currently investigating and will update you shortly.

Closing as this is an old issue that should have been handled by the work @cephalin did. If this is still an issue, please reopen.
#please-close


chore(main): release 2.2.2

:robot: I have created a release beep boop
2.2.2 (2024-06-24)
Bug Fixes

Badge links to point the correct repo (d1fc719)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v2.2.2
:sunflower:


Support very long path names for compiled artifacts on Windows

Describe the bug
A user is reporting an issue when running dbt compile. The error is for a schema test .sql artifact, and it reads:
No such file or directory: "target\\compiled\\<230 more characters>.sql"

My guess is that the full path to this file is too long, and Windows either truncates the file path, or does something else unexpected, when dbt tries to write out this sql file.
Instead, let's catch this error, log a warning, and move on. Alternatively if there's a way to increase the file path length on windows to beyond ~260 chars, we should do that.
This error may start happening for folks on 0.17.0 because we are now including more information (like the schema.yml file name) in the path for the .sql artifact.
Steps To Reproduce

Run dbt compile on a project that would try to write a filepath > 260 chars long

Expected behavior

dbt should not fail here, but it's ok for dbt to omit writing these artifacts if need be

The output of dbt --version:
0.17.0

The operating system you're using: Windows 10 (Windows Server 2019)
The output of python --version: TBD

I believe this is pretty fixable! We need to prefix all our paths with r'\\?\' on windows, and make sure to normalize any paths we find because that syntax doesn't accept any / in paths. This is mostly hard because it's tedious to get every spot that writes files, not because it's actually a hard problem.

Right on, thanks @beckjake! This one isn't really an 0.17.0 regression -- I'd be happy to do a cheapo version for 0.17.1 (that just catches the error and logs a warning) in the near-term, then do a more fundamental overhaul of windows pathing for our next scheduled feature release. What do you think?

I think if we're catching this error, we might as well fix the path and try again, rather than log a warning.

closed by https://github.com/fishtown-analytics/dbt/pull/2566


(Participation data) Plays with 0 offensive and ~22 defensive players logged

Is there an existing issue for this?

[X] I have searched the existing issues

Have you installed the latest development version of the package(s) in question?

[X] I have installed the latest development version of the package.

What version of the package do you have?
1.3.2
Describe the bug
When participation data is loaded, a number of plays have no listed offense_players, with all players being logged in the defense_players column.  This is also reflected in the n_offense and n_defense columns.
Plays I believe this affects:

all Raider possessions from 2016 through the end of 2019
all the LA Ram possessions from 2016_15_LA_SEA
some random, very sparse administrative entries like timeouts
Also am noticing that it might be having trouble picking up all players in the play for 2016, so a fair number of times n_defense is not quite 22 for plays in question that season.

I would guess a team abbreviation mismatch might have been the issue for nflverse/nflreadr#1 and nflverse/nflreadr#2?
Anyways, the Raiders may have abandoned me twice, but I'm not bitter enough to deny that their offensive existence should be acknowledged.  ;)
Reprex
ppt <- load_participation(
   seasons = TRUE,
   include_pbp = TRUE)
print(ppt %>% filter(n_offense==0 & n_defense >= 20) %>% count(nflverse_game_id),n=100)
-- nflverse play-by-play participation --------------------------------------------------------
i Data updated: 2023-02-01 01:51:10 PST
# A tibble: 74 x 2
   nflverse_game_id     n
   <chr>            <int>
 1 2016_01_OAK_NO      89
 2 2016_02_ATL_OAK     93
 3 2016_03_OAK_TEN     80
 4 2016_04_OAK_BAL     79
 5 2016_05_SD_OAK      93
 6 2016_06_KC_OAK      64
 7 2016_07_OAK_JAX     98
 8 2016_08_OAK_TB     114
 9 2016_09_DEN_OAK    106
10 2016_11_GB_WAS       1
11 2016_11_HOU_OAK     70
12 2016_12_CAR_OAK     92
13 2016_13_BUF_OAK     92
14 2016_13_LA_NE        1
15 2016_14_OAK_KC      94
16 2016_15_LA_SEA      71
17 2016_15_OAK_SD      79
18 2016_15_PHI_BAL      1
19 2016_16_ARI_SEA      1
20 2016_16_IND_OAK     94
21 2016_17_OAK_DEN     67
22 2016_18_OAK_HOU     91
23 2017_01_OAK_TEN     82
24 2017_02_NYJ_OAK     77
25 2017_03_OAK_WAS     65
26 2017_04_OAK_DEN     69
27 2017_05_BAL_OAK     67
28 2017_06_LAC_OAK     69
29 2017_07_KC_OAK      99
30 2017_08_OAK_BUF     75
31 2017_09_OAK_MIA     77
32 2017_11_NE_OAK      82
33 2017_12_DEN_OAK     84
34 2017_13_NYG_OAK     81
35 2017_14_OAK_KC      74
36 2017_15_DAL_OAK     82
37 2017_16_OAK_PHI     80
38 2017_17_OAK_LAC     62
39 2018_01_LA_OAK      86
40 2018_02_OAK_DEN     79
41 2018_03_OAK_MIA     92
42 2018_04_CLE_OAK    118
43 2018_05_OAK_LAC     66
44 2018_06_SEA_OAK     68
45 2018_08_IND_OAK     64
46 2018_09_OAK_SF      68
47 2018_10_LAC_OAK     72
48 2018_11_OAK_ARI     89
49 2018_12_OAK_BAL     72
50 2018_13_KC_OAK      91
51 2018_14_PIT_OAK     84
52 2018_15_OAK_CIN     78
53 2018_16_DEN_OAK     79
54 2018_17_OAK_KC      75
55 2019_01_DEN_OAK     70
56 2019_02_KC_OAK      76
57 2019_03_OAK_MIN     69
58 2019_04_OAK_IND     83
59 2019_05_CHI_OAK     88
60 2019_07_OAK_GB      77
61 2019_08_OAK_HOU     71
62 2019_09_DET_OAK     87
63 2019_10_LAC_OAK     75
64 2019_11_CIN_OAK     82
65 2019_12_OAK_NYJ     70
66 2019_13_OAK_KC      68
67 2019_14_TEN_OAK     75
68 2019_15_JAX_OAK     91
69 2019_16_OAK_LAC     77
70 2019_17_OAK_DEN     87
71 2020_03_LV_NE        1
72 2021_08_DAL_MIN      1
73 2021_15_LV_CLE       1
74 2022_02_CIN_DAL      1

Expected Behavior
11 players listed for offense_players and defense_players,
correct counts for n_offense and n_defense
nflverse_sitrep
-- System Info --------------------------------------------------------------------------------
* R version 4.1.3 (2022-03-10)   * Running under: Windows 10 x64 (build 19045)
-- nflverse Packages --------------------------------------------------------------------------
* nflreadr (1.3.2)  * nflseedR (1.2.0)  * nflplotR (<IP_ADDRESS>01)
* nflfastR (4.5.1)  * nfl4th   (1.0.2)  * nflverse (1.0.2)
-- nflverse Options ---------------------------------------------------------------------------
No options set for nflreadr, nflfastR, nflseedR, nfl4th, nflplotR, and nflverse
-- nflverse Dependencies ----------------------------------------------------------------------
* askpass     (1.1)     * httr       (1.4.2)     * proto        (1.0.0)
* cachem      (1.0.6)   * isoband    (0.2.6)     * purrr        (0.3.5)
* cli         (3.6.0)   * janitor    (2.1.0)     * R6           (2.5.1)
* codetools   (0.2-18)  * jsonlite   (1.8.4)     * rappdirs     (0.3.3)
* colorspace  (2.0-3)   * labeling   (0.4.2)     * RColorBrewer (1.1-3)
* cpp11       (0.4.3)   * lattice    (0.20-45)   * Rcpp         (1.0.9)
* crayon      (1.5.2)   * lifecycle  (1.0.3)     * rlang        (1.0.6)
* curl        (5.0.0)   * listenv    (0.8.0)     * rstudioapi   (0.13)
* data.table  (1.14.6)  * lubridate  (1.9.0)     * scales       (1.2.1)
* digest      (0.6.31)  * magick     (2.7.3)     * snakecase    (0.11.0)
* dplyr       (1.0.10)  * magrittr   (2.0.3)     * stringi      (1.7.6)
* fansi       (1.0.3)   * MASS       (7.3-58.1)  * stringr      (1.5.0)
* farver      (2.1.1)   * Matrix     (1.4-0)     * sys          (3.4)
* fastmap     (1.1.0)   * memoise    (2.0.1)     * tibble       (3.1.8)
* fastrmodels (1.0.2)   * mgcv       (1.8-39)    * tidyr        (1.2.1)
* furrr       (0.2.3)   * mime       (0.12)      * tidyselect   (1.2.0)
* future      (1.29.0)  * munsell    (0.5.0)     * timechange   (0.1.1)
* generics    (0.1.3)   * nlme       (3.1-155)   * utf8         (1.2.2)
* ggplot2     (3.4.0)   * openssl    (2.0.0)     * vctrs        (0.5.1)
* globals     (0.16.2)  * parallelly (1.33.0)    * viridisLite  (0.4.1)
* glue        (1.6.2)   * pillar     (1.8.1)     * withr        (2.5.0)
* gsubfn      (0.7)     * pkgconfig  (2.0.3)     * xgboost      (<IP_ADDRESS>)
* gtable      (0.3.1)   * progressr  (0.12.0)
-----------------------------------------------------------------------------------------------

Screenshots
No response
Additional context
No response

Okay, the OAK cases should be resolved. All that's left now are the edge cases...
@tanho63 think it's worth adding some kind of filters to NA the edge cases? I don't think we've gotten any real complaints about them and we average only about one per season...
nflreadr::load_participation(TRUE) |>
    dplyr::filter(n_offense==0 & n_defense >= 20) |>
    dplyr::count(nflverse_game_id)
#> ── nflverse pbp participation ──────────────────────────────────────────────────
#> ℹ Data updated: 2023-09-12 15:08:01 PDT
#> # A tibble: 8 × 2
#>   nflverse_game_id     n
#>   <chr>            <int>
#> 1 2016_11_GB_WAS       1
#> 2 2016_13_LA_NE        1
#> 3 2016_15_PHI_BAL      1
#> 4 2016_16_ARI_SEA      1
#> 5 2020_03_LV_NE        1
#> 6 2021_08_DAL_MIN      1
#> 7 2021_15_LV_CLE       1
#> 8 2022_02_CIN_DAL      1

Hm, that’s strange. Only one row from each of these games?