Publish Microsoft Authored templates to azure samples browser

Not all Microsoft authored templates are onboarded to the azure samples browser. The onboarding process https://review.learn.microsoft.com/en-us/help/contribute/samples/process/onboarding?branch=main
Please refer to the issue and changes @weikanglim did for onboarding the TODO templates and do the same for all Microsoft Authored templates.

https://github.com/Azure/azure-dev/issues/526
https://github.com/Azure/azure-dev/pull/1556

cc @hemarina @gkulin @spboyer

@rajeshkamal5050  For publishing Microsoft-authored templates to Azure sample browser, we have created a PR, please review. If it's okay, we'll create PRs for the rest of templates.

https://github.com/Azure-Samples/function-javascript-ai-openai-chatgpt/pull/7

@v-xuto This PR LGTM. Feel free to create PRs for the rest of template while we are waiting function-javascript-ai-openai-chatgpt owner to merge the PR.

@hemarina Got it. We will create PRs for the rest of the templates.

@hemarina We have created 10 PRs so far, please review.

https://github.com/Azure-Samples/chat-csharp-cosmos-db-nosql-openai/pull/5
https://github.com/Azure-Samples/function-python-ai-openai-chatgpt/pull/6
https://github.com/Azure-Samples/function-python-ai-langchain/pull/6
https://github.com/Azure-Samples/function-csharp-ai-textsummarize/pull/13
https://github.com/Azure-Samples/function-python-ai-textsummarize/pull/5
https://github.com/Azure-Samples/azure-sql-db-session-recommender/pull/20
https://github.com/Azure-Samples/azd-deployment-environments/pull/2
https://github.com/Azure-Samples/azure-search-openai-demo-csharp/pull/263
https://github.com/Azure-Samples/azure-search-openai-javascript/pull/174
https://github.com/Azure-Samples/contoso-real-estate/pull/429

@hemarina 12 new PRs were created today, please review.

https://github.com/Azure-Samples/ASA-Samples-Event-Driven-Application/pull/26
https://github.com/Azure-Samples/fastapi-on-azure-functions/pull/29
https://github.com/Azure-Samples/azure-search-openai-demo-java/pull/73
https://github.com/Azure-Samples/bindings-dapr-csharp-cron-postgres/pull/8
https://github.com/Azure-Samples/bindings-dapr-nodejs-cron-postgres/pull/8
https://github.com/Azure-Samples/bindings-dapr-python-cron-postgres/pull/6
https://github.com/Azure-Samples/pubsub-dapr-csharp-servicebus/pull/7
https://github.com/Azure-Samples/pubsub-dapr-nodejs-servicebus/pull/18
https://github.com/Azure-Samples/pubsub-dapr-python-servicebus/pull/7
https://github.com/Azure-Samples/svc-invoke-dapr-csharp/pull/5
https://github.com/Azure-Samples/svc-invoke-dapr-nodejs/pull/6
https://github.com/Azure-Samples/svc-invoke-dapr-python/pull/6

@hemarina 8 new PRs were created today, please review.

https://github.com/Azure-Samples/pubsub-dapr-aks-java/pull/6
https://github.com/Azure/GPT-RAG/pull/95
https://github.com/Azure-Samples/msdocs-django-postgresql-sample-app/pull/69
https://github.com/Azure-Samples/azure-django-postgres-flexible-aca/pull/85
https://github.com/Azure-Samples/msdocs-flask-postgresql-sample-app/pull/37
https://github.com/Azure-Samples/react-component-toolkit-openai-demo/pull/8
https://github.com/Azure/reliable-web-app-pattern-dotnet/pull/349
https://github.com/Azure-Samples/ASA-Samples-Web-Application/pull/28

@hemarina Thanks for your quick review. 5 new PRs were created today, and added the owner of repos. Please review. For https://github.com/Azure-Samples/azure-django-postgres-flexible-aca/pull/85, we will create PR in repo https://github.com/kjaymiller/cookiecutter-relecloud.

https://github.com/Azure-Samples/app-service-javascript-sap-cloud-sdk-quickstart/pull/122
https://github.com/Azure-Samples/chatgpt-quickstart/pull/62
https://github.com/Azure-Samples/spring-chatgpt-sample/pull/10
https://github.com/Azure-Samples/spring-petclinic-java-mysql/pull/4
https://github.com/Azure-Samples/apptemplate-wordpress-on-aca/pull/18

@hemarina 1 new PR was created today, please review.

https://github.com/kjaymiller/cookiecutter-relecloud/pull/324

So far, we have created all PRs for the required templates.
55 (All templates) = 37 PRs + 14 have supported templates + 2 have added templates + 2 no need templates

2 have added templates: In the Readme, they have their own corresponding metadata, but they are not displayed in the azure samples browser. We don't know what causes this.
https://github.com/Azure-Samples/todo-nodejs-mongo-aks
https://github.com/Azure-Samples/todo-python-mongo
2 no need templates：
https://github.com/Azure-Samples/azd-starter-bicep
https://github.com/Azure-Samples/azd-starter-terraform

@hemarina To fix invalid slugs, we have created 13 PRs, please review.

https://github.com/Azure-Samples/function-python-ai-langchain/pull/7
https://github.com/Azure-Samples/function-python-ai-textsummarize/pull/6
https://github.com/Azure-Samples/azure-search-openai-demo-java/pull/75
https://github.com/Azure-Samples/pubsub-dapr-aks-java/pull/7
https://github.com/Azure-Samples/msdocs-django-postgresql-sample-app/pull/73
https://github.com/Azure-Samples/msdocs-flask-postgresql-sample-app/pull/39
https://github.com/Azure-Samples/openai-chat-app-quickstart/pull/68
https://github.com/Azure-Samples/apptemplate-wordpress-on-aca/pull/19
https://github.com/Azure-Samples/spring-petclinic-java-mysql/pull/5
https://github.com/Azure-Samples/app-service-javascript-sap-cloud-sdk-quickstart/pull/126
https://github.com/Azure-Samples/pubsub-dapr-python-servicebus/pull/8
https://github.com/Azure-Samples/pubsub-dapr-nodejs-servicebus/pull/19
https://github.com/Azure-Samples/pubsub-dapr-csharp-servicebus/pull/8

@hemarina To fix invalid slugs, 2 new PRs were created today, please review.

https://github.com/Azure/GPT-RAG/pull/99
https://github.com/Azure/reliable-web-app-pattern-dotnet/pull/352

@hemarina In Microsoft authored templates, there are two new repos. So, 2 PRs for adding metadata are ready, please review.

https://github.com/Azure-Samples/aks-store-demo/pull/107
https://github.com/Azure-Samples/openai-aca-lb/pull/4

@hemarina - We have filed one more PR to fix issue #760.

https://github.com/Azure-Samples/chat-with-your-data-solution-accelerator/pull/764

@hemarina 9 new PRs were created today, please review.

https://github.com/dotnet/ai-samples/pull/63
https://github.com/Azure-Samples/openai-apim-lb/pull/19
https://github.com/microsoft/aoai-logging-with-apim/pull/21
https://github.com/Azure-Samples/azure-sql-db-session-recommender-v2/pull/8
https://github.com/Azure-Samples/agent-openai-python-prompty/pull/87
https://github.com/Azure-Samples/azure-appconfig-aks/pull/7
https://github.com/Azure-Samples/agent-python-openai-prompty-langchain/pull/27
https://github.com/Azure-Samples/agent-openai-python-prompty-langchain-pinecone/pull/33
https://github.com/Azure-Samples/openai-chat-app-quickstart/pull/129

@hemarina 3 new PRs were created today, please review.

https://github.com/Azure/APICenter-Analyzer/pull/19
https://github.com/Azure/APICenter-Portal-Starter/pull/21
https://github.com/Azure-Samples/APICenter-Reference/pull/33

@rajeshkamal5050 I've got a question around this frontmatter metadata. Can this frontmatter be wrapped with <!-- ... -->?
For example, here's the APICenter-Reference:
---
page_type: sample
languages:
- azdeveloper
- javascript
- csharp
- powershell
- bash
- html
- bicep
products:
- azure
- azure-api-center
- azure-api-management
- azure-app-service
- azure-event-grid
- azure-logic-apps
- static-web-apps
urlFragment: APICenter-Reference
name: API Center Reference
description: Let developer experiences how to use API Center (APIC) and seamless integration with API Management (APIM), as well as inner-loop development velocity increase.
---

Instead of doing that, I wonder if it's possible to put like:
<!--
---
page_type: sample
languages:
- azdeveloper
- javascript
- csharp
- powershell
- bash
- html
- bicep
products:
- azure
- azure-api-center
- azure-api-management
- azure-app-service
- azure-event-grid
- azure-logic-apps
- static-web-apps
urlFragment: APICenter-Reference
name: API Center Reference
description: Let developer experiences how to use API Center (APIC) and seamless integration with API Management (APIM), as well as inner-loop development velocity increase.
---
-->

By doing so, this frontmatter is not visible to the reader, but machine still can read it?

@hemarina About above comments, any ideas? Can we create a new docs/README.md file in repos and add metadata to the README.md under docs, such as: https://github.com/azure-samples/azure-search-openai-javascript/tree/main/docs.


Exec tachikoma update<PHONE_NUMBER>2051

:hamster::hamster::hamster:   Strategy none
Powered by Interval Pull Request as a Service - Tachikoma.io

Coverage decreased (-0.01%) to 99.7% when pulling 7609e0e38f81a1a1ce7b862e9a60f151b06c67cf on tachikomapocket:tachikoma/update-20150219152051 into 77a776d257a2436999eb722afb99b372b7aa9f95 on hoshinotsuyoshi:master.


Update Options.tsx

overflow-y-scroll' applies the same CSS properties as 'overflow-y-auto

Thanks @cha2hyun for this MR too. But if this applies the same CSS properties then why use it.

Thanks @cha2hyun for this MR too. But if this applies the same CSS properties then why use it.

Hi there, It was a literaly warning message from lint

overflow-y-auto makes overflow-y: auto;
overflow-y-scroll makes overflow-y: scroll;
So it's duplicated for overflow-y options
for my case only overflow-y-auto works well 👍

Oh yes, it's a duplicate. I didn't realize that. I thought there was overflow-y-scroll and this PR just replaces it with overflow-y-auto.
Thanks for this PR


Adds some WebClient options

Summary
This PR adds the following options to the App constructor:

agent: Allows users to set a custom HTTP agent, which is most often used for setting up proxy support. Will affect both the client HTTP requests made from the WebClient and the ExpressReceiver (if the default receiver is used).

clientTls: Allows users to set a custom TLS configuration for HTTP client requests. This is most often used to send requests to a specific Slack environment (internal usage). Will affect both the client HTTP requests made from the WebClient and the ExpressReceiver (if the default receiver is used).

clientOptions.slackApiUrl: Allows users to set a custom endpoint for the Slack API. This is most often used for testing as well as sending requests to a specific Slack environment (internal usage). This only affects the WebClient.

It also changes the behavior of the logger option to also affect the WebClient.
Fixes #221
Requirements (place an x in each [ ])

[x] I've read and understood the Contributing Guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.

Hi, is the custom logger passed to the WebClient? I see the pull request has been merged but it doesn't seem to be in the package

@seblaz 👋 Can you try version ^1.4.0? (the latest versions are 1.8.0 or 2.0.0). https://github.com/slackapi/bolt/releases/tag/%40slack%2Fbolt%401.4.0

Hi @seratch, I'm using the latest version (2.0.0). I dig a little and found that this feature (using a custom logger in the WebClient) was removed in commit 1428ec315aeb4570b217fb91386ee4732b3ef2f8. I feel that this has been discused before, but why did you chose to remove it? I would find it useful to use a custom logger in the WebClient.

@seblaz
The main reason was this issue on the @slack/web-api side. https://github.com/slackapi/node-slack-sdk/issues/916 However, I realized that now it's safe to share a customer logger with WebClient as I fixed the issue by https://github.com/slackapi/node-slack-sdk/pull/917. So, it's safe to share a  logger given in App's constructor with underlying WebClients now.
Another minor reason is to have different names among a Bolt app itself and WebClient instances. The reason why "instances" is plural is that Bolt internally has a pool of WebClient instances (per token) for better consideration of rate limiter.
I've changed the behavior before but I'm positive to revisit this. There are two solutions.

Solution 1) Get it back to the previous behavior @seblaz mentioned

This means sharing a single logger among a Bolt app and WebClients (all the logging will be using the default name bolt-app or custom name)

Solution 2) Introduce webClientLogger option

logger option won't be shared with WebClients in any case
If both options are missing, Bolt initializes loggers for Bolt itself and WebClients r respectively

Both look fine to me but I prefer Solution 2) as it enables developers to take control of logging. What do you think? @aoberoi @stevengill

I also prefer Solution 2. I think the name separation is a meaningful advantage. Similarly, I think its a bit odd that the name of the ExpressReceivers logger is also bolt-app since the change mentioned above. @seratch, how would you feel about not passing the logger option to ExpressReceiver, only the logLevel option. If the user wants to control the specific logger used by the receiver, they would have to pass a receiver into the App constructor.

@seratch, how would you feel about not passing the logger option to ExpressReceiver, only the logLevel option. If the user wants to control the specific logger used by the receiver, they would have to pass a receiver into the App constructor.

This sounds nice to me!
@aoberoi
What do you think about the case the ExpressReceiver is initialized in App?
:one: Should the name bolt-app be shared with the receiver? Or :two: should the receiver have a different default name like bolt-default-receiver or bolt-receiver? I prefer :two: if we enhance it this time.

@seratch i prefer a different name. in my opinion the point of the logger is for tracing and understand which parts of the code are run. so putting a name that matches with the filename is actually what i would prefer. for example, i would change bolt-app to @slack/bolt:App and the logger for ExpressReceiver would look like @slack/bolt:ExpressReceiver.
Also, if we provide a new option for specifying the WebClient instances' logger, instead of webClientLogger, i think it would make sense to reuse the clientOptions option by adding clientOptions.logger.

@aoberoi
I like the whole idea except for the prefix @slack/bolt:.
@slack/web-api outputs just WebClient:{instanceId}. What do you think about going with just App and ExpressReceiver? I would like the logging to be consistent among the tools we provide.

why not bolt-app and ExpressReceiver. App seems a little generic on its own

Because bolt-app isn’t a clear reference to the class name or file name
App.
I agree that App on its own feels generic. How about a shorter prefix?
bolt:App:{instanceId}
As for consistency, maybe in the future we could add a prefix (such as
web-api) for the node-slack-sdk packages.
This should also be a little less verbose. @seratch: what do you think?
On Thu, Apr 16, 2020 at 11:43 AM Steve Gill<EMAIL_ADDRESS>wrote:

why not bolt-app and ExpressReceiver. App seems a little generic on its
own
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/slackapi/bolt/pull/278#issuecomment-614829233, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AADYZS4MDIZSQAUPJWUR2QTRM5GTPANCNFSM4I5UTFAQ
.

--
Ankur Oberoi
Developer Relations Manager, Developer Tools Lead |  Slack
@aoberoi (github https://github.com/aoberoi, facebook
https://facebook.com/aoberoi, twitter https://twitter.com/aoberoi)

@aoberoi I like the idea. I've created a task on the node-slack-sdk side: https://github.com/slackapi/node-slack-sdk/issues/995

On the node-slack-sdk side, @stevengill created a fix https://github.com/slackapi/node-slack-sdk/pull/999 for https://github.com/slackapi/node-slack-sdk/issues/995
It looks good to me. Thanks!


Wrong exercise session duration

How is it possible that the exercise session below lasted 16minutes?
User:  (4239) Duration: 16 minutes and 6 seconds

2024-11-28 19:55:12      4      S des             Match_three_L1W_to_three_L2W
2024-11-28 19:55:12      4      S les             Match_three_L1W_to_three_L2W
2024-11-28 19:55:12      4      S pour            Match_three_L1W_to_three_L2W
2024-11-28 19:55:13      2      S comme           Select_L2W_fitting_L2T
2024-11-28 19:55:18      1      S Très            Recognize_L1W_in_L2T
2024-11-28 19:55:28      4      S été             Spell_What_You_Hear
2024-11-28 19:55:33      1      S accord          Recognize_L1W_in_L2T
2024-11-28 19:55:39      2      S depuis          Match_three_L1W_to_three_L2W
2024-11-28 19:55:39      2     WS place           Match_three_L1W_to_three_L2W
2024-11-28 19:55:39      2     WS Après           Match_three_L1W_to_three_L2W
2024-11-28 19:57:26      4      S Premier         Select_L2W_fitting_L2T
2024-11-28 19:57:32      4      S main            Recognize_L1W_in_L2T
2024-11-28 19:58:18     17  HWWWS prochaine       Spell_What_You_Hear
2024-11-28 20:04:03    334 WWWWWWWS les             Select_L2W_fitting_L2T

It is suspicious how the user spent 7 minutes on trying to solve the last exercise. Is it possible that they were taking one minute break between attempts?

Ok, looking into this user's activity, it does look very strange:
| 1841818 |    4239 | 2024-11-28 19:55:22 | TRANSLATE WORDS IN EXERCISE | situations |    2419209 | Spell_What_You_Hear    |              1 |
| 1841820 |    4239 | 2024-11-28 19:57:37 | TRANSLATE WORDS IN EXERCISE | rejoindre  |    2408666 | Spell_What_You_Hear    |              1 |
| 1841821 |    4239 | 2024-11-28 19:57:45 | TRANSLATE WORDS IN EXERCISE | la         |    2408666 | Spell_What_You_Hear    |              1 |
| 1841822 |    4239 | 2024-11-28 19:58:08 | TRANSLATE WORDS IN EXERCISE | matches    |    2408666 | Spell_What_You_Hear    |              1 |
| 1841823 |    4239 | 2024-11-28 19:58:16 | COMPLETED EXERCISES         |            |       NULL | UMR                    |              0 |
| 1841825 |    4239 | 2024-11-28 19:58:16 | AUDIO_DISABLE               | 496446     |       NULL |                        |              0 |
| 1841826 |    4239 | 2024-11-28 19:58:16 | AUDIO_DISABLE               | 496446     |       NULL |                        |              0 |
| 1841827 |    4239 | 2024-11-28 19:58:16 | AUDIO_DISABLE               | 496446     |       NULL |                        |              0 |
| 1841828 |    4239 | 2024-11-28 19:58:16 | AUDIO_DISABLE               | 496446     |       NULL |                        |              0 |
| 1841824 |    4239 | 2024-11-28 19:58:17 | AUDIO_DISABLE               | 496446     |       NULL |                        |              0 |
| 1841830 |    4239 | 2024-11-28 20:13:23 | UD - USER DASHBOARD OPEN    |            |       NULL |                        |              0 |
| 1841831 |    4239 | 2024-11-28 20:14:20 | TRANSLATE WORDS IN EXERCISE | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841838 |    4239 | 2024-11-28 20:14:21 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841837 |    4239 | 2024-11-28 20:14:22 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841836 |    4239 | 2024-11-28 20:14:23 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841832 |    4239 | 2024-11-28 20:14:24 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841833 |    4239 | 2024-11-28 20:14:25 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841834 |    4239 | 2024-11-28 20:14:26 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841835 |    4239 | 2024-11-28 20:14:26 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841839 |    4239 | 2024-11-28 20:14:27 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841840 |    4239 | 2024-11-28 20:14:27 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841843 |    4239 | 2024-11-28 20:14:28 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841842 |    4239 | 2024-11-28 20:14:29 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841844 |    4239 | 2024-11-28 20:14:30 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841845 |    4239 | 2024-11-28 20:14:30 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841846 |    4239 | 2024-11-28 20:14:30 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841841 |    4239 | 2024-11-28 20:14:31 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841847 |    4239 | 2024-11-28 20:14:32 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841848 |    4239 | 2024-11-28 20:14:32 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841849 |    4239 | 2024-11-28 20:14:32 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841850 |    4239 | 2024-11-28 20:14:33 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841851 |    4239 | 2024-11-28 20:14:34 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841855 |    4239 | 2024-11-28 20:14:35 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841856 |    4239 | 2024-11-28 20:14:35 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841852 |    4239 | 2024-11-28 20:14:36 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841853 |    4239 | 2024-11-28 20:14:36 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841854 |    4239 | 2024-11-28 20:14:37 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841857 |    4239 | 2024-11-28 20:14:38 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841858 |    4239 | 2024-11-28 20:14:39 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841859 |    4239 | 2024-11-28 20:14:40 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841860 |    4239 | 2024-11-28 20:14:40 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841861 |    4239 | 2024-11-28 20:14:41 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841862 |    4239 | 2024-11-28 20:14:42 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841863 |    4239 | 2024-11-28 20:14:43 | SPEAK TEXT                  | rappel,    |    2454972 | Select_L2W_fitting_L2T |              1 |
| 1841868 |    4239 | 2024-11-28 20:34:11 | UD - USER DASHBOARD OPEN    |            |       NULL |                        |              0 |

So starting by the ActivityTimer, I had a look at it, and I am trying to understand exactly how the onIdle gets called by the libraries useEffect. What I suspect happens is that the user alt+tabs and I can see there is a throttle (500ms) which maybe means that the event is not picked up on. If the user is then moving the mouse, the active timer will keep going despite the window not being focused. We do have a onFocus and onBlur, but I am not sure if that covers all the interactions. Again, I have seen this quite a few times myself when developing - mostly through alt+tabbing.
I wonder if removing onMouseMove from the events will already improve this since the timer would only restart if the user does a click / scroll, etc.
Regarding the SPEAK TEXT events, it almost seems like the user clicked that word multiple times, not sure why - there shouldn't be a pronounciation sound as we have the pronounciation hard set to disabled.

I found that we weren't checking if the word should be pronounced after the translation has been received: https://github.com/zeeguu/web/pull/642
Maybe the student just found the pronounciation fun for that word?

Happened again even after the changes in https://github.com/zeeguu/web/pull/643
2024-12-14 19:41:14    588     WC échoué          Recognize_L1W_in_L2T
Here's the exercise session, together with whatever info we have in UserActivityData, which is not much. Maybe until we fix this bug we should start sending all the focus/blur/scroll events that happen during the exercise sessions? Maybe we could save them locally in a var, and send them only if the exercise took more than a given constant?
User: (4139) Duration: 15 minutes and 35 seconds
| 1854508 |    4139 | 2024-12-14 19:25:13 | WORDS_REVIEW                |                 |    2668837 | EXTENSION            |              1 |
| 1854509 |    4139 | 2024-12-14 19:25:20 | WORDS REVIEW LOST FOCUS     |                 |    2668837 | EXTENSION            |              1 |
2024-12-14 19:25:38      5      C pour            Match_three_L1W_to_three_L2W
2024-12-14 19:25:39      6      C très            Match_three_L1W_to_three_L2W
2024-12-14 19:26:19      7    WWC avait           Select_L2W_fitting_L2T
2024-12-14 19:26:24      3      C depuis          Recognize_L1W_in_L2T
2024-12-14 19:26:42     17      C déjà            Multiple_Choice_Audio
2024-12-14 19:26:51      8     HC nouveau         Spell_What_You_Hear
2024-12-14 19:27:04      5      C car             Recognize_L1W_in_L2T
2024-12-14 19:27:12      5      C nouvelle        Match_three_L1W_to_three_L2W
2024-12-14 19:27:13      6      C vers            Match_three_L1W_to_three_L2W
| 1854510 |    4139 | 2024-12-14 19:27:44 | COMPLETED EXERCISES         |                 |       NULL | UMR                  |              0 |
2024-12-14 19:27:51      4      C pour            Match_three_L1W_to_three_L2W
2024-12-14 19:27:52      5      C été             Match_three_L1W_to_three_L2W
2024-12-14 19:28:07      2      C Bonne           Select_L2W_fitting_L2T
2024-12-14 19:28:25     17      C trouvé          Recognize_L1W_in_L2T
2024-12-14 19:28:42     13     WC car             Multiple_Choice_Audio
2024-12-14 19:28:47      4      C semaine         Spell_What_You_Hear
2024-12-14 19:29:02     14      C Regardez        Recognize_L1W_in_L2T
2024-12-14 19:29:10      7      C guerre          Match_three_L1W_to_three_L2W
2024-12-14 19:29:11      8      C chemin          Match_three_L1W_to_three_L2W
| 1854511 |    4139 | 2024-12-14 19:29:17 | COMPLETED EXERCISES         |                 |       NULL | UMR                  |              0 |
2024-12-14 19:29:24      3      C depuis          Match_three_L1W_to_three_L2W
2024-12-14 19:29:25      4      C leurs           Match_three_L1W_to_three_L2W
2024-12-14 19:29:36      7    WWC semaine         Select_L2W_fitting_L2T
2024-12-14 19:29:41      4      C guerre          Recognize_L1W_in_L2T
2024-12-14 19:29:51      9      C bois            Multiple_Choice_Audio
2024-12-14 19:30:00      8     HC vieille         Spell_What_You_Hear
2024-12-14 19:30:16     15      C vivant          Recognize_L1W_in_L2T
2024-12-14 19:30:21      5      C savent          Match_three_L1W_to_three_L2W
2024-12-14 19:30:22      6      C bord            Match_three_L1W_to_three_L2W
| 1854512 |    4139 | 2024-12-14 19:30:22 | COMPLETED EXERCISES         |                 |       NULL | UMR                  |              0 |
2024-12-14 19:30:28      3      C nouvelle        Match_three_L1W_to_three_L2W
2024-12-14 19:30:29      4      C avaient         Match_three_L1W_to_three_L2W
2024-12-14 19:30:36      5     WC espèce          Select_L2W_fitting_L2T
2024-12-14 19:31:05     29      C Lors            Recognize_L1W_in_L2T
2024-12-14 19:31:14      7      C pensait         Multiple_Choice_Audio
2024-12-14 19:31:17      3      C Jeudi           Spell_What_You_Hear
| 1854513 |    4139 | 2024-12-14 19:41:12 | TRANSLATE WORDS IN EXERCISE | échoué          |    2469789 | Recognize_L1W_in_L2T |              1 |
2024-12-14 19:41:14    588     WC échoué          Recognize_L1W_in_L2T
2024-12-14 19:41:18      3      C auparavant      Match_three_L1W_to_three_L2W
2024-12-14 19:41:18      4      C seules          Match_three_L1W_to_three_L2W
| 1854514 |    4139 | 2024-12-14 19:41:19 | COMPLETED EXERCISES         |                 |       NULL | UMR                  |              0 |

Also @tfnribeiro, it seems that we're not logging the start of an exercise session, but only the end. We should also log a start, especially, to be able to more easily track whether it's Vocabulary Trainer or Words In Article.

We do log Exercise starts, but only from the Review words screen not from the tab, but we can add a quick user activity log when the user starts the Exercises component.
I can do that quickly. I can see this was triggered from the extension, did you deploy a version containing the changes in https://github.com/zeeguu/web/pull/643 for the extension?

I will add a user_activity_log every time a user goes to the exercises, with the information if there was a notification or not as well. (The little red dot)


Alert display problem

I tried Alert but instead of getting growl like notifications....i am getting full width alert...like this

you can do with css and custom placement option
First: set  qo-placement="top-full"
Then: set css like below
.alert-container.top-full{
    top:0; /*set value you want*/
   max-width:100%;  /*default is 300px;*/
   left:0;
   right:0;
}

.alert-container elements are prepended to  body and they have fixed position. You can change how you want.


Choosing the  five models and not BoxE

Do you have specific cafeteria for choosing the five models for embedding , are there reasons to do not use  for example BoxE model or PairE model ?
Thanks ,

Hey, thanks for your question! The goal of the study was not to find the best overall model (indeed it could be more modern models such as BoxE would have better performance than the models we chose) rather we wanted to study how different factors affected the training of these models. The models we chose were selected based on ones that had been utilised in recent KG+drug discovery papers.

Hey, thanks for your question! The goal of the study was not to find the best overall model (indeed it could be more modern models such as BoxE would have better performance than the models we chose) rather we wanted to study how different factors affected the training of these models. The models we chose were selected based on ones that had been utilised in recent KG+drug discovery papers.

okay , Thanks for clarifications

No worries - thanks again for your question.


Provide a first impl for le, be conversions (u24)

Part of #9.
Declarative macros are pretty annoying.
Right now I really needed u24, so I just finished that. It's really just a writing-marathon now, or a task for some declarative macro genius. Or I'm tired.
Would love to see this merged + released :)

Small note about this:
really only swap_bytes, from_ne_bytes, to_ne_bytes do something, the other stuff just routes stuff, exactly like the std lib.


Provide 24.10 version bumps

Add support for XGBoost UBJSON
Bump package versions in Conda envs
Replace convert_sklearn script to use latest Treelite API
Update generate_example_model.py to use latest XGBoost API

Closes #403

The CI is now all green.

@wphicks Hi, I updated the tests to XFAIL when the shared mem is used.


Endpoints by extension

Build a file with endpoints separated by extension, like grapX does

Now grapX build an output file that must be filtered with cat out.txt | sed '/^$/d' | grep --no-group-separator -B 1 '^http'

Done https://github.com/six2dez/reconftw/commit/9437bbea7c8059e50e1d9b7ebe089b24d4ad2019


Verification of image signatures and SBOM

Description
This PR will introduce a new page in the infrastructure section of the documentation for detailing how to verify the image signature and how to verify and download the associated SBOM.
The page also contains a table with all the artefacts that support this and from which version.
The PR will also add a new static file that is the public certificate needed for the verification process.
Pull Request Type

[x] Documentation content changes
[ ] Bugfix / Missing Redirects
[ ] Docusaurus site code changes

PR Checklist

[ ] The commit message follows our guidelines included in the CONTRIBUTING.md
[ ] All tests of Lint, cspell and check-content pass. (How to launch them?)
[ ] No sensitive content has been committed

Other information
This PR is currently on draft pending a new console release where the first batch of artefacts will be cryptographically signed.

nexus.mia-platform.eu/microlc/micro-lc v2.4.3


Update password Validator.

Is your feature request related to a problem? Please describe.
I am an ssoc contributor and I want to work on this issue.

When I clicked the Password validator, I instantly disliked it as its UI requires a lot of work.
The page does not react well if the the password is valid or invalid.

Describe the solution you'd like
At first I would like to change the UI of the page as well as the way the page reacts when password is valid or invalid.
Steps Followed✅
Check the box with [x] If you followed all the steps.

[x] Is your feature request related to a problem? Please describe.
[x] Describe the solution you'd like
[ ] Describe alternatives you've considered
[ ] Additional context

Code of Conduct✅

[x] I agree to follow this project's Code of Conduct.
[x] I checked the current issues for duplicate problems.
[x] I have gone through project README.

I want to change the UI of this page as well as the how the page reacts when the password is valid or invalid so please assign me this issue.


Potential Bug on Whole Set Processing

I ran whole set processing on a series of images, and the results for image 13 to image 14 were exactly twice the displacement of all the other image pairs (all others were correct). This tells me somewhere that an image was skipped (i.e., it actually processed image 13 to 15 or image 12 to 14). Any thoughts on what could cause this @kp-121 ?

I'm not sure. It could be the frame extractor is creating a double frame image, more likely is a path issue when loading the frames. I'll take a look.

I ran a single image pair test and ran into this issue as well on the newest release. Can we put this as the highest priority issue @kp-121?


Try it out feature

Hi @wingyplus, WDYT of adding the Try it out feature?
There are some JS libraries that implement this. Are you ok with adding one of them?
I've done a quick search and found:

https://github.com/wll8/redoc-try
https://github.com/amorimjj/redoc-try-it-out
https://github.com/edmunds/redoc-tryout

Option 1 being the most recent updated.

That’s sound good. We need to have an option to disable it, maybe it will disable by default.

That makes sense.
I will do some experimentations on the examples that I brought here and then share the results.


dependency crates-index with vendored-openssl feature fails with an SSL error

Steps to reproduce the bug with the above code
cargo semver-checks check-release
Actual Behaviour
Updating index
Error: SSL error: unknown error; class=Ssl (16)
Caused by:
SSL error: unknown error; class=Ssl (16)
Expected Behaviour
It should work.
Generated System Information
Software version
cargo-semver-checks 0.12.1
Operating system
Linux 6.1.1-arch1-1
Command-line
/home/tonowak/.cargo/bin/cargo-semver-checks semver-checks --bugreport

cargo nightly version
> cargo +nightly -V
cargo 1.68.0-nightly (c994a4a63 2022-12-18)

Compile time information

Profile: release
Target triple: x86_64-unknown-linux-gnu
Family: unix
OS: linux
Architecture: x86_64
Pointer width: 64
Endian: little
CPU features: fxsr,llvm14-builtins-abi,sse,sse2
Host: x86_64-unknown-linux-gnu

Additional Context
I've asked people and tried other machines and it seems to not work only on my laptop.
The issues happens exactly here: https://github.com/obi1kenobi/cargo-semver-checks/blob/f6b41f43cd8c70683e7fd901c34c76250baf3ef5/src/baseline.rs#L187
The tool works after removing vendored-openssl from the list of features.
Further inspection of the bug requires going into crates-index code and debugging it there. I'll do that in some free time -- this issue is a tracking issue for the bug.

Should we make vendoring SSL an optional feature instead? Is that even
feasible? I haven't looked into it, just throwing an idea out there.
On Sun, Jan 8, 2023, 12:12 PM Tomasz Nowak @.***> wrote:

Steps to reproduce the bug with the above code
cargo semver-checks check-release
Actual Behaviour
Updating index
Error: SSL error: unknown error; class=Ssl (16)
Caused by:
SSL error: unknown error; class=Ssl (16)
Expected Behaviour
It should work.
Generated System Information Software version
cargo-semver-checks 0.12.1
Operating system
Linux 6.1.1-arch1-1
Command-line
/home/tonowak/.cargo/bin/cargo-semver-checks semver-checks --bugreport
cargo nightly version

cargo +nightly -V
cargo 1.68.0-nightly (c994a4a63 2022-12-18)

Compile time information

Profile: release
Target triple: x86_64-unknown-linux-gnu
Family: unix
OS: linux
Architecture: x86_64
Pointer width: 64
Endian: little
CPU features: fxsr,llvm14-builtins-abi,sse,sse2
Host: x86_64-unknown-linux-gnu

Additional Context
I've asked people and tried other machines and it seems to not work only
on my laptop.
The issues happens exactly here:
https://github.com/obi1kenobi/cargo-semver-checks/blob/f6b41f43cd8c70683e7fd901c34c76250baf3ef5/src/baseline.rs#L187
The tool works after removing vendored-openssl from the list of features.
Further inspection of the bug requires going into crates-index code and
debugging it there. I'll do that in some free time -- this issue is a
tracking issue for the bug.
—
Reply to this email directly, view it on GitHub
https://github.com/obi1kenobi/cargo-semver-checks/issues/272, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAR5MSTMNJE3BHMF3W5332LWRLYOFANCNFSM6AAAAAATUVSZW4
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Oh, that might be a good idea. From what I remember, vendored SSL is used, because there was some problem in the CI and using it was the easiest solution, right?

That won't fix the underlying problem and it won't prevent an user from encountering the same bug, but I'm happy with such a solution.

Agreed. It's a reasonable workaround until we can find the root cause.
Especially if we can catch the error when it happens and suggest disabling
the feature + link to the tracking issue, so the user doesn't have to go
look at the readme to figure out what happened and what to do about it.
On Sun, Jan 8, 2023, 1:18 PM Tomasz Nowak @.***> wrote:

That won't fix the underlying problem and it won't prevent an user from
encountering the same bug, but I'm happy with such a solution.
—
Reply to this email directly, view it on GitHub
https://github.com/obi1kenobi/cargo-semver-checks/issues/272#issuecomment-1374895977,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAR5MSU5OZU3AONDEKNNCFTWRMAFVANCNFSM6AAAAAATUVSZW4
.
You are receiving this because you commented.Message ID:
@.***>

I have also just run into this exact error

Interesting. Probably you haven't changed your local build setup nor the Rust version, so it might be related with the packages in the distribution. Now that there are two of us with this issue, there is a high chance that other users of the tool will also stumble on this bug -- that's bad news.

I'm also having this issue on Arch Linux:
$ uname -r -s
Linux 6.1.7-arch1-1
$ cargo --version
cargo 1.68.0-nightly (a5d47a725 2023-01-16)
$ cargo semver-checks check-release
    Updating index
Error: the server did not provide a certificate; class=Ssl (16)

Caused by:
    the server did not provide a certificate; class=Ssl (16)
$ cargo semver-checks check-release --version
cargo-semver-checks-check-release 0.16.1

@epage have you by any chance seen this sort of error before? Based on the printout, this is happening somewhere in git2 via crates-index and based on @tonowak's tests it seems to be related to whether OpenSSL is vendored in or not. The error message blames the server, but "GitHub's servers have misconfigured SSL" seems like a way too bold a claim with the evidence we have so far. Any advice?

THis is all with the latest git2, right?
If so, then it is likely related to actually checking SSL certificates.  My first lines of investigation would be whether crates-index is fetching using https or ssh and the second is if people running into this issue remapped their remotes to turn crates-index https fetches into ssh fetches.

I have used the following, but it's currently commented out:
$ bat ~/.cargo/config --plain
#[registry]
#crates-io.protocol = "sparse"

Looking at the connection using wireshark, the client is sending a TCP RST after trying to start a TLS session.

cargo-semver-checks 0.16.1 has latest git2. I think remapping remotes to turn https into ssh fetches will fail with a different symptom and error message — we have an open issue for it: #295
@wcampbell0x2a does the client receive the "server hello" part of the TLS handshake, or does it RST before that? If there's a "server hello," can you check what cert is included / whether it's valid?

Last I knew, crates-index did not support the sparse registry protocol.

Fascinating, thanks for sharing it!
If it's no trouble, I'd love to see the contents of the "Change Cipher Spec" and "Application Data" packets going in both directions between the "Server Hello" and the RST. This looks likely to be some sort of incompatibility between the vendored OpenSSL and the GitHub server, and I'd love to give the upstream maintainers as much data as possible in the bug report.
If it's easier for you, feel free to attach the packet dump file corresponding to the screenshot — I don't mind digging into it on my own.
Again, very much appreciate your help in diagnosing this unfortunate issue.

I cannot reproduce this issue anymore -- probably updating the packages in my Arch solved the issue. Nevertheless https://github.com/obi1kenobi/cargo-semver-checks/pull/324 has been merged and released, thus it is now possible to use the openssl installed on the system (instead of the vendored one) through cargo install cargo-semver-checks --locked --no-default-features. @wcampbell0x2a can you still reproduce this issue / does this temporary fix work for you?

Actually, this bug is no longer present since #318 has been merged. It seems that using a newer version of git2 fixed the issue -- I've confirmed this by running the tool on the commit just before #318 has been merged and just after. I'm closing the issue :)

I cannot reproduce this issue anymore -- probably updating the packages in my Arch solved the issue. Nevertheless #324 has been merged and released, thus it is now possible to use the openssl installed on the system (instead of the vendored one) through cargo install cargo-semver-checks --locked --no-default-features. @wcampbell0x2a can you still reproduce this issue / does this temporary fix work for you?

Can confirm this works, thanks for the fix

Thanks for confirming and for your patience while we got to the bottom of this!

Actually, this bug is no longer present since #318 has been merged. It seems that using a newer version of git2 fixed the issue -- I've confirmed this by running the tool on the commit just before #318 has been merged and just after. I'm closing the issue :)

Huh, somehow the issue is still present on my (other) machine. At least now I can also confirm that the feature works.


file doesn't open directory

Issue Type: Bug
after the last update of the VScode when I change the file, that file doesn't show in the directory, i.e., normally it showed where the file was.
VS Code version: Code 1.42.0 (ae08d5460b5a45169385ff3fd44208f431992451, 2020-02-06T10:51:34.058Z)
OS version: Windows_NT x64 10.0.17763
Remote OS version: Linux x64 4.4.0-17763-Microsoft

the solution was to press the refresh


Simplify arrow function parsing

@bnoordhuis do you have any remarks? can I proceed and merge this?


Truncate text on span tag

Is it possible to use truncate class on other tags than  tag. It seems it does not work on span ?

It needs a display:block, which I have now added onto the .truncate class


Globals cant be used in other sub-modules

If you were to use BASE_CAPACITY from list.ark in another sub-module, for example, hashmap.ark... the compiler will moan about use before define.
error: [hashmap:22:14] Use of variable before declaration: BASE_CAPACITY
    cap: uint = BASE_CAPACITY;

Fixed as of 1da46bd


"N unreads" banner on "All messages", but no unreads in home view

Originally reported in chat:
https://chat.zulip.org/#narrow/stream/48-mobile/topic/all.20messages.20and.20unread.20messages/near/779399
Screenshots there show

the app's home tab with "No unread messages", and no counters on PMs or mentions etc.
the "All messages" screen, with a "4 unread messages" banner. None of the messages in view have a green unread-marker.

So there's a mismatch between two different presentations of whether there are unreads.

This is a bit like #3549. There:

the green marker clears (not clear if that's happening or not in this case)
but the "unread messages" banner at the top sticks around
... but in that issue, the message remains in the home view!

In that issue, I wrote:

we have two conflicting ideas of whether each message is read, causing us to show the inconsistencies Rishi described. The Redux store controls the home view and the "1 unread message" banner, and the data inside the webview controls the unread marker. I believe the unread flag in the Redux store only gets cleared when we hear back from the server.

But the inconsistency seen in this issue is between those two things that are controlled by the Redux store.
Some hypotheses on where the bug could be:

There are a couple of different spots in the Redux store that have relevant information -- I think the banner is based on the per-message read flags under state.flags.read, while the home view is based on some summary data structures in state.unread. So if there's a bug where the reducers managing those two subtrees of the state get the data out of sync, that could cause these symptoms.

It could also be that that code is working perfectly fine and that data is staying in sync, and there's an issue elsewhere. For example, maybe the "All messages" view includes some messages that don't appear in the home screen's unreads. Possible hypotheses for that include: muted topics? muted streams? @-mentions? alert words?
Probably we ought to have an invariant that the messages that count for the unreads list in the home view are exactly the same as the messages that show up in "All messages". But I'd have to dig into the code to be confident about whether we do have such an invariant.

Possibly also related to #3509. It's not clear in that issue whether the home tab with its unreads list is in sync with the "N unreads" banner.

This happens to me all the time. I just confirmed that the “All messages” unread counter is counting messages on a muted stream (I have #test here muted), even though the messages aren’t shown in either the home view or the “All messages” view.

In the course of studying some of our code closely for the sake of #4035, I think I've spotted the cause of this bug!
It's in our getUnreadTotal selector, which controls the "N unread messages" counter in the case of the "All messages" view. Here's the comments I just added in f7f2fc6fa:
/** Total number of unreads, with ??? caveats. */
// TODO: This appears to double-count @-mentions.  Why not just use `count`
//   from the `unread_msgs` data structure?
// TODO: This seems to include muted streams, though not muted topics;
//   see `getUnreadStreamTotal`.  Looks like this causes #3589.
export const getUnreadTotal: Selector<number> = createSelector(

A direct fix for this issue would be to fix getUnreadStreamTotal so that it excludes muted streams. We should also drop the use of getUnreadMentionsTotal from getUnreadTotal.
A more thorough fix would be to use the count property of the unread_msgs data structure: we'd add that to the UnreadState type, and adjust our reducers to maintain it as new unreads arrived and as existing ones got read.

This bug still appears on the Android app.


how to pickle INN model and skip repeated conversion cost

I have a pre-trained resnet-50 network and I would like to experiment with different amounts of compression via this discrete -> continuous -> resample process.
What I am noticing is that it takes quite some time to construct the integral wrapper. From there it appears that resizing the model groups can only be done once. After that, any calls to resize groups fail silently and have no impact on the model that is export via get_unparameterized_model().
What this means is that each time I wish to experiment with a different amount of compression, I must reconstruct the IntegralWrapper, which is super time consuming. I've tried to pickle the wrapped model and also deepcopy it so that I can avoid this cost, and neither of them work due to recursion limit issues. Increasing the recursion limit simply crashes the kernel.
So this issue is essentially three fundamental questions:

How can resize() be made to work if called multiple times without reconstructing the wrapped model each time?
Can the wrapped model be pickled or saved such that we can skip the time-consuming process of converting/rearranging/permuting if it has already been done once?
Is there a different or better way to experiment with different compression amounts without reconstructing the wrapped model each time?

Of course unparametrized model will not be changed by another call of group.reisze(new_size). Resize only changes the integral (wrapped) model, so after resize you need to call get_unparametrized_model again. In case when you want to measure only the accuracy of the pruned model it is enough to call group.resize(new_size) and use integral model in eval mode, but if you want to measure speed up and compression of the pruned model you should call get_unparametrized_model after pruning.

discrete_model = resnet50(pretrained=True)
wrapper_1 = IntegralWrapper(init_from_discrete=True)
integral_model = wrapper(discrete_model, example_input)
torch.save(integral_model.state_dict(), 'name.pth')

integral_model_2 = IntegralWrapper(init_from_discrete=False)(discrete_model, example_input)
integral_model_2.load_state_dict(torch.load('name.pth'))

See point 1.


It's works with Angular 1.3 ?

I'm trying to use this component with AngularJS 1.3 and I am unable to make a simple table.
Do you know if it works with this version?

Controller
$scope.getAll = function(){
    		MyService.getAll({}, function(data){
    			$scope.myList = data;
    	    	$scope.config = {
    	    		    itemsPerPage: 5,
    	    		    fillLastPage: true
    	    		  }
    		},function(erro){
    			console.log(error);
    		})
    	}

Do you see any errors?
Also, try to initialize your list with an empty array before you do the async call:
$scope.myList = [];

closing this because of inactivity


Addition kernel

Define a addition kernel class, where two (or more) kernels are given at init.
func, leftgrad, rightgrad, gradgrad, etc for the product kernel can be deduced from argument kernels.

Done.


Keyboard down does not work on select

Describe the bug
I expect keyboard down arrow, to navigate down in select
Reproduction
https://github.com/melt-ui/melt-ui/assets/9967422/0f468291-ef9f-463e-936a-28c6009121c1
(my first time using sveltelab.dev, it seems a bit unstable), but the link is here:
https://www.sveltelab.dev/jwy0u5g3fenls2m?t=melt_ui&files=.%2Fsrc%2Froutes%2F%2Bpage.svelte%2C.%2Fpackage.json%2C.%2Fsrc%2Flib%2FCollapsible.svelte%2C.%2Fsrc%2Flib%2Findex.js%2C.%2Fsrc%2Froutes%2F%2Bpage.server.js
Logs
No response
System Info
System:
    OS: macOS 14.3
    CPU: (10) arm64 Apple M1 Max
    Memory: 4.61 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node
    npm: 10.2.5 - ~/.nvm/versions/node/v18.17.1/bin/npm
    pnpm: 8.12.0 - ~/.nvm/versions/node/v18.17.1/bin/pnpm
  Browsers:
    Chrome: 121.0.6167.139
    Safari: 17.3
  npmPackages:
    @melt-ui/svelte: ^0.71.1 => 0.71.1
    @sveltejs/kit: ^2.4.1 => 2.4.3
    svelte: ^4.2.2 => 4.2.8

Severity
annoyance

This is an issue with your styling. You're using tailwind classes without tailwind installed. The functionality still works. You can use the [data-highlighted] selector to style the highlighted items accordingly.


WAPI is not defined

Description
error: 2024-05-21T12:03:50.660Z WAPI is not defined - Error: WAPI is not defined
Environment

Wppconnect-server version(s): 2.4.4
Browser: Chromium 119.0.6045.159 Alpine Linux
OS: Ubuntu 22 / Docker container
Node version: v20.13.1
WhatsApp version: <IP_ADDRESS>
MultiDevice (BETA): yes
config.json:

import { ServerOptions } from './types/ServerOptions';

export default {
  secretKey: 'THISISMYSECURETOKEN',
  host: 'http://localhost',
  port: '21465',
  deviceName: 'Desktop',
  poweredBy: 'WPPConnect-Server',
  startAllSession: true,
  tokenStoreType: 'file',
  maxListeners: 1000,
  customUserDataDir: './userDataDir/',
  webhook: {
    url: 'http://event_hook***',
    autoDownload: true,
    uploadS3: false,
    readMessage: false,
    allUnreadOnStart: false,
    listenAcks: true,
    onPresenceChanged: false,
    onParticipantsChanged: false,
    onReactionMessage: true,
    onPollResponse: false,
    onRevokedMessage: true,
    onLabelUpdated: false,
    onSelfMessage: true,
    ignore: ['status@broadcast'],
  },
  websocket: {
    autoDownload: false,
    uploadS3: false,
  },
  chatwoot: {
    sendQrCode: true,
    sendStatus: true,
  },
  archive: {
    enable: false,
    waitTime: 10,
    daysToArchive: 45,
  },
  log: {
    level: 'silly', // Before open a issue, change level to silly and retry a action
    logger: ['console', 'file'],
  },
  createOptions: {
    browserArgs: [
      '--disable-web-security',
      '--no-sandbox',
      '--disable-web-security',
      '--aggressive-cache-discard',
      '--disable-cache',
      '--disable-application-cache',
      '--disable-offline-load-stale-cache',
      '--disk-cache-size=0',
      '--disable-background-networking',
      '--disable-default-apps',
      '--disable-extensions',
      '--disable-sync',
      '--disable-translate',
      '--hide-scrollbars',
      '--metrics-recording-only',
      '--mute-audio',
      '--no-first-run',
      '--safebrowsing-disable-auto-update',
      '--ignore-certificate-errors',
      '--ignore-ssl-errors',
      '--ignore-certificate-errors-spki-list',
      '--disable-features=LeakyPeeker',
    ],
    /**
     * Example of configuring the linkPreview generator
     * If you set this to 'null', it will use global servers; however, you have the option to define your own server
     * Clone the repository https://github.com/wppconnect-team/wa-js-api-server and host it on your server with ssl
     *
     * Configure the attribute as follows:
     * linkPreviewApiServers: [ 'https://www.yourserver.com/wa-js-api-server' ]
     */
    linkPreviewApiServers: null,
  },
  mapper: {
    enable: false,
    prefix: 'tagone-',
  },
  db: {
    mongodbDatabase: 'tokens',
    mongodbCollection: '',
    mongodbUser: '',
    mongodbPassword: '',
    mongodbHost: '',
    mongoIsRemote: true,
    mongoURLRemote: '',
    mongodbPort: 27017,
    redisHost: 'localhost',
    redisPort: 6379,
    redisPassword: '',
    redisDb: 0,
    redisPrefix: 'docker',
  },
  aws_s3: {
    region: 'sa-east-1' as any,
    access_key_id: null,
    secret_key: null,
    defaultBucketName: null,
    endpoint: null,
    forcePathStyle: null,
  },
} as unknown as ServerOptions;

Steps to Reproduce

Run the wppconnect-server on VM (GCP)
Start the session
Scan the QR code
QR code is successfully scanned
Connection is initializing, but wppconnect-server logs that WAPI is not found (see the logs) and mobile device does not pairs.

Log Output
info:     [<session_name>:browser] Using browser folder './userDataDir/<session_name>'
info:     [<session_name>:browser] Initializing browser...
http:     [<session_name>:browser] checking headless...
http:     [<session_name>:browser] headless option is active, browser hidden
info:     [<session_name>:client] Initializing...
verbose:  [<session_name>:client] Setting WhatsApp WEB version to 2.2411.x
verbose:  [<session_name>:client] Loading WhatsApp WEB
verbose:  [<session_name>:page] Page loaded
verbose:  [<session_name>:client] Injecting wapi.js
verbose:  [<session_name>:client] WhatsApp WEB loaded
http:     [<session_name>:client] Waiting page load
info:     [<session_name>:session] Session Unpaired
verbose:  [<session_name>:client] wapi.js injected
debug:    [<session_name>:client] Exposing onMessage function
info:     [<session_name>:client] WhatsApp WEB version: 2.2411.2
info:     [<session_name>:client] WA-JS version: 3.2.6
debug:    [<session_name>:client] Exposing onAnyMessage function
debug:    [<session_name>:client] Exposing onAck function
debug:    [<session_name>:client] Exposing onNotificationMessage function
debug:    [<session_name>:client] Exposing onParticipantsChanged function
debug:    [<session_name>:client] Exposing onStateChange function
http:     [<session_name>:client] Checking is logged...
debug:    [<session_name>:client] Exposing onStreamChange function
info:     [<session_name>:client] Auto close configured to 60s
http:     [<session_name>:client] Waiting for QRCode Scan...
info: 2024-05-21T12:03:37.541Z notLogged

debug:    [<session_name>:client] Exposing onIncomingCall function
debug:    [<session_name>:client] Exposing onInterfaceChange function
debug:    [<session_name>:client] Exposing onPresenceChanged function
debug:    [<session_name>:client] Exposing onLiveLocation function
debug:    [<session_name>:client] Exposing onAddedToGroup function
debug:    [<session_name>:client] Exposing onRevokedMessage function
debug:    [<session_name>:client] Exposing onReactionMessage function
debug:    [<session_name>:client] Exposing onPollResponse function
debug:    [<session_name>:client] Exposing onUpdateLabel function
debug:    [<session_name>:client] Exposing onOrderStatusUpdate function
debug:    [<session_name>:client] Emitting onInterfaceChange event (1 registered)
http:     [<session_name>:client] Current state: QR (CONNECTING)
debug:    [<session_name>:client] Emitting onInterfaceChange event (1 registered)
http:     [<session_name>:client] Current state: QR (CONNECTING)
debug:    [<session_name>:client] Emitting onInterfaceChange event (1 registered)
http:     [<session_name>:client] Current state: QR (CONNECTING)
info:     [<session_name>:client] Waiting for QRCode Scan (Attempt 1)...:
<QR_CODE>
http:     [<session_name>:client] Auto close remain: 50s
http:     [<session_name>:client] Checking QRCode status...
http:     [<session_name>:client] Login with success
info: 2024-05-21T12:03:49.391Z qrReadSuccess

info:     [<session_name>:client] Auto close configured to 180s
http:     [<session_name>:client] Checking phone is connected...
verbose:  [<session_name>:page] Page loaded
verbose:  [<session_name>:client] Injecting wapi.js
debug:    [<session_name>:client] Registering onStateChange event
error: 2024-05-21T12:03:50.660Z WAPI is not defined - Error: WAPI is not defined
    at /usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:107:31
    at step (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:49:23)
    at Object.next (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:30:53)
    at fulfilled (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:21:58)
JS Stack: ReferenceError: WAPI is not defined
    at pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:47
    at pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:77
    at new Promise (<anonymous>)
    at anonymous (pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:54:14)
Function: function () { return WAPI.isConnected(); }
debug:    [<session_name>:client] Registering onStateChange event
debug:    [<session_name>:client] Registering onMessage event
debug:    [<session_name>:client] Registering onAnyMessage event
debug:    [<session_name>:client] Registering onIncomingCall event
debug:    [<session_name>:client] Registering onAck event
error: 2024-05-21T12:03:51.216Z WAPI is not defined - Error: WAPI is not defined
    at /usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:107:31
    at step (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:49:23)
    at Object.next (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:30:53)
    at fulfilled (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:21:58)
JS Stack: ReferenceError: WAPI is not defined
    at pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:47
    at pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:77
    at new Promise (<anonymous>)
    at anonymous (pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:54:14)
Function: function () { return WAPI.isConnected(); }
verbose:  [<session_name>:client] wapi.js injected
info:     [<session_name>:client] WhatsApp WEB version: 2.2411.2
info:     [<session_name>:client] WA-JS version: 3.2.6
debug:    [<session_name>:client] Emitting onStateChange event (2 registered)
info: 2024-05-21T12:03:52.109Z State Change UNLAUNCHED: <session_name>
debug:    [<session_name>:client] Emitting onInterfaceChange event (1 registered)
http:     [<session_name>:client] Current state: QR (CONNECTING)
http:     [<session_name>:client] Waiting page load
http:     [<session_name>:client] Checking is logged...
info:     [<session_name>:client] Auto close configured to 60s
http:     [<session_name>:client] Waiting for QRCode Scan...
info: 2024-05-21T12:03:55.272Z notLogged

debug:    [<session_name>:client] Emitting onInterfaceChange event (1 registered)
http:     [<session_name>:client] Current state: QR (CONNECTING)
debug:    [<session_name>:client] Emitting onStateChange event (2 registered)
info: 2024-05-21T12:03:55.469Z State Change OPENING: <session_name>
debug:    [<session_name>:client] Emitting onInterfaceChange event (1 registered)
http:     [<session_name>:client] Current state: QR (CONNECTING)
debug:    [<session_name>:client] Emitting onStateChange event (2 registered)
info: 2024-05-21T12:03:55.846Z State Change PAIRING: <session_name>
debug:    [<session_name>:client] Emitting onInterfaceChange event (1 registered)
http:     [<session_name>:client] Current state: QR (CONNECTING)
debug:    [<session_name>:client] Emitting onStateChange event (2 registered)
info: 2024-05-21T12:03:55.987Z State Change UNPAIRED: <session_name>
info:     [<session_name>:client] Waiting for QRCode Scan (Attempt 1)...:
<QR_CODE>
http:     [<session_name>:client] Auto close remain: 50s
http:     [<session_name>:client] Auto close remain: 40s
http:     [<session_name>:client] Auto close remain: 30s
http:     [<session_name>:client] Auto close remain: 20s
http:     [<session_name>:client] Auto close remain: 10s

Your Code
If relevant, paste all of your challenge code in here

Additional context / Screenshot
Add any other context about the problem here. If applicable, add screenshots to help explain.

I found the problem.. investigating the solution

Please, do:
Clear folder userdatadir
Clear folder tokens
Create a new token to session named test (and not <session_name>)
Connect and read qrcode
Wait 5 minutes with server running
Stop and start again
Post here the result.

Please, do:
Clear folder userdatadir Clear folder tokens Create a new token to session named test (and not <session_name>) Connect and read qrcode Wait 5 minutes with server running Stop and start again
Post here the result.

Hello, thanks for the reply!
Actually the <session_name> is just a placeholder, I've replaced it for the privacy reasons. The real name was like 2 chars followed by 4 digits, like xx1234.
We have tried to clean up the userdatadir & tokens dirs multiple time, but the result is the same, it reports that the wapi js is undefined and this is not the only device foe us - we have several which have the same problem.
In any case, we'll re-tey again based on your instructions & put the logs here.

Please, do:
Clear folder userdatadir Clear folder tokens Create a new token to session named test (and not <session_name>) Connect and read qrcode Wait 5 minutes with server running Stop and start again
Post here the result.

Hello again, back w/ the results as you've suggested:

We've cleared the userdatadir & tokens folder (we've run the fresh container actually w/o prior history on the VM).
We've created the session named test (but as noted, our previous session name was also alphanumeric).
We've connected, read the QR code - resulted in the same error.
Then we've re-started and attempted again - resulted in the same error.

Here are the logs for more information:
yarn run v1.22.19
$ node ./dist/server.js
info: 2024-05-23T07:24:01.658Z Server is running on port: 21465
info: 2024-05-23T07:24:01.663Z  Visit http://localhost:21465/api-docs for Swagger docs
info: 2024-05-23T07:24:01.663Z WPPConnect-Server version: 2.4.4
info:
  _       ______  ____  ______                            __
  | |     / / __ \/ __ \/ ____/___  ____  ____  ___  _____/ /_
  | | /| / / /_/ / /_/ / /   / __ \/ __ \/ __ \/ _ \/ ___/ __/
  | |/ |/ / ____/ ____/ /___/ /_/ / / / / / / /  __/ /__/ /_
  |__/|__/_/   /_/    \____/\____/_/ /_/_/ /_/\___/\___/\__/
info:     Checking for updates
info:     You're up to date
info:     [test:browser] Using browser folder './userDataDir/test'
info:     [test:browser] Initializing browser...
info:     [test:client] Initializing...
info:     [test:session] Session Unpaired
info:     [test:client] WhatsApp WEB version: 2.2411.2
info:     [test:client] WA-JS version: 3.2.4
info:     [test:client] Auto close configured to 60s
info: 2024-05-23T07:25:40.184Z notLogged

info:     [test:client] Waiting for QRCode Scan (Attempt 1)...:
<QR_CODE>
 {"code":"***,1"}
info: 2024-05-23T07:25:48.789Z qrReadSuccess
info:     [test:client] Auto close configured to 180s
error: 2024-05-23T07:25:50.225Z WAPI is not defined - Error: WAPI is not defined
    at /usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:107:31
    at step (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:49:23)
    at Object.next (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:30:53)
    at fulfilled (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:21:58)
JS Stack: ReferenceError: WAPI is not defined
    at pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:47
    at pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:77
    at new Promise (<anonymous>)
    at anonymous (pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:54:14)
Function: function () { return WAPI.isConnected(); }
error: 2024-05-23T07:25:51.216Z WAPI is not defined - Error: WAPI is not defined
    at /usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:107:31
    at step (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:49:23)
    at Object.next (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:30:53)
    at fulfilled (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:21:58)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at process.processImmediate (node:internal/timers:449:9)
JS Stack: ReferenceError: WAPI is not defined
    at pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:47
    at pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:77
    at new Promise (<anonymous>)
    at anonymous (pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:54:14)
Function: function () { return WAPI.isConnected(); }
info:     [test:client] WhatsApp WEB version: 2.2411.2
info:     [test:client] WA-JS version: 3.2.4
info: 2024-05-23T07:25:53.816Z State Change UNLAUNCHED: test
info: 2024-05-23T07:25:54.014Z State Change OPENING: test
info: 2024-05-23T07:25:54.610Z State Change PAIRING: test
info: 2024-05-23T07:25:54.888Z State Change UNPAIRED: test
info:     [test:client] Waiting for QRCode Scan (Attempt 1)...:
<QR_CODE>
 {"code":"***,1"}
info:     [test:client] Auto close configured to 60s
info: 2024-05-23T07:25:55.830Z notLogged
info:     [test:client] Waiting for QRCode Scan (Attempt 2)...:
<QR_CODE>
 {"code":"***,1"}
info:     [test:client] Closing the page
info: 2024-05-23T07:26:55.852Z autocloseCalled
info: 2024-05-23T07:26:55.931Z browserClose
warn:     [test:client] Failed to authenticate
info: 2024-05-23T07:26:56.131Z qrReadError
error:    [test:client] Auto Close Called

--- container restart ---

yarn run v1.22.19
$ node ./dist/server.js
info: 2024-05-23T07:30:25.031Z Server is running on port: 21465
info: 2024-05-23T07:30:25.037Z  Visit http://localhost:21465/api-docs for Swagger docs
info: 2024-05-23T07:30:25.037Z WPPConnect-Server version: 2.4.4
info:
  _       ______  ____  ______                            __
  | |     / / __ \/ __ \/ ____/___  ____  ____  ___  _____/ /_
  | | /| / / /_/ / /_/ / /   / __ \/ __ \/ __ \/ _ \/ ___/ __/
  | |/ |/ / ____/ ____/ /___/ /_/ / / / / / / /  __/ /__/ /_
  |__/|__/_/   /_/    \____/\____/_/ /_/_/ /_/\___/\___/\__/
info:     Checking for updates
info:     You're up to date
info:     [test:browser] Using browser folder './userDataDir/test'
info:     [test:browser] Initializing browser...
info:     [test:client] Initializing...
info:     [test:session] Session Unpaired
info:     [test:client] WhatsApp WEB version: 2.2411.2
info:     [test:client] WA-JS version: 3.2.4
info:     [test:client] Auto close configured to 60s
info: 2024-05-23T07:30:40.052Z notLogged
info:     [test:client] Waiting for QRCode Scan (Attempt 1)...:
<QR_CODE>
 {"code":"***,1"}
info:     [test:client] Closing the page
info: 2024-05-23T07:31:40.176Z browserClose
warn:     [test:client] Failed to authenticate
info: 2024-05-23T07:31:40.383Z qrReadError
error:    [test:client] Auto Close Called
error: 2024-05-23T07:31:40.386Z Auto Close Called
info:     [test:browser] Using browser folder './userDataDir/test'
info:     [test:browser] Initializing browser...
info:     [test:client] Initializing...
info:     [test:session] Session Unpaired
info:     [test:client] WhatsApp WEB version: 2.2411.2
info:     [test:client] WA-JS version: 3.2.4
info:     [test:client] Auto close configured to 60s
info: 2024-05-23T07:32:58.825Z notLogged
info:     [test:client] Waiting for QRCode Scan (Attempt 1)...:
<QR_CODE>
 {"code":"***,1"}
info: 2024-05-23T07:33:08.954Z qrReadSuccess
info:     [test:client] Auto close configured to 180s
error: 2024-05-23T07:33:10.985Z WAPI is not defined - Error: WAPI is not defined
    at /usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:107:31
    at step (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:49:23)
    at Object.next (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:30:53)
    at fulfilled (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:21:58)
JS Stack: ReferenceError: WAPI is not defined
    at pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:47
    at pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:77
    at new Promise (<anonymous>)
    at anonymous (pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:54:14)
Function: function () { return WAPI.isConnected(); }
error: 2024-05-23T07:33:11.078Z WAPI is not defined - Error: WAPI is not defined
    at /usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:107:31
    at step (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:49:23)
    at Object.next (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:30:53)
    at fulfilled (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:21:58)
JS Stack: ReferenceError: WAPI is not defined
    at pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:47
    at pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:77
    at new Promise (<anonymous>)
    at anonymous (pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:54:14)
Function: function () { return WAPI.isConnected(); }
info:     [test:client] WhatsApp WEB version: 2.2411.2
info:     [test:client] WA-JS version: 3.2.4
info: 2024-05-23T07:33:14.179Z State Change UNLAUNCHED: test
info: 2024-05-23T07:33:14.377Z State Change OPENING: test
info: 2024-05-23T07:33:14.978Z State Change PAIRING: test
info: 2024-05-23T07:33:15.255Z State Change UNPAIRED: test
info:     [test:client] Waiting for QRCode Scan (Attempt 1)...:
<QR_CODE>
 {"code":"***,1"}
info:     [test:client] Auto close configured to 60s
info: 2024-05-23T07:33:16.198Z notLogged
info:     [test:client] Waiting for QRCode Scan (Attempt 2)...:
<QR_CODE>
 {"code":"***,1"}
info:     [test:client] Closing the page
info: 2024-05-23T07:34:16.215Z autocloseCalled
info: 2024-05-23T07:34:16.226Z browserClose
warn:     [test:client] Failed to authenticate
info: 2024-05-23T07:34:16.588Z qrReadError
error:    [test:client] Auto Close Called
^C

Ok.  I can't reproduce the error.  I'm checking

I created a new server using ARM Processor, Ubuntu 22.04, NPM, NVM and Chromium (Chrome too and no problem found).  Node 18.18.0.
No problem found.  I created token, read qrcode, stop server, start server.. all works perfectly.
I did all possible tests.  Check if your scenario is like me.
If you have some additional information, please post here, because I can't find any error.

@gitdedc Did you scanned the QR code?

Yes, normal.  Build, run (dev), read qr code -> Connected.
Stoped server, started server and returned as connected.
I understand what you are passing, the problem is simulate to find the error.
I deploy a new server to begin from zero, but all running perfectly (I always use AMD + Chrome, so I builded using ARM + Chromium, to environment change, but no errors found)

No the issue is not close. Thanks @gitdedc for the feedback & tests - I am facing the same issue. FYI @gitdedc @dmchandru we are facing the issue on Indian number. As we've been searching for the possible solutions / alternatives, we found out that other Indian based numbers have also the same problem w/ WA.
So, we are thinking that it is more WA related, rather than implementation itself. So, so far no solution, if something comes up, I'll update.

@jambazishvili FYI: We have an on-premises server, It's working fine for all numbers. In AWS with same server spec. It's throwing the same error as you mentioned. I can also reproduce this issue in windows machine but not in MAC. Weird!

@jambazishvili you are using Linux, aren't?

I do face the same issue.
On my Ubuntu based local environment, it works perfectly.
But trying to connect with the server based in Mumbai, with an indian number, the above issue arises.
@gitdedc @dmchandru @jambazishvili
Thank you all for valuable feedbacks.

I also got same error.
my server - AWS EC2. t3-medium x84 architecture. 2 VCPU, 4GB RAM
verbose:  [adarsh:page] Page loaded
verbose:  [adarsh:client] Injecting wapi.js
debug:    [adarsh:client] Registering onStateChange event
error: 2024-06-09T10:54:15.009Z WAPI is not defined - Error: WAPI is not defined
    at /home/ubuntu/.yarn/berry/cache/@wppconnect-team-wppconnect-npm-1.30.3-1739879365-10c0.zip/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:107:31
    at step (/home/ubuntu/.yarn/berry/cache/@wppconnect-team-wppconnect-npm-1.30.3-1739879365-10c0.zip/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:49:23)
    at Object.next (/home/ubuntu/.yarn/berry/cache/@wppconnect-team-wppconnect-npm-1.30.3-1739879365-10c0.zip/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:30:53)
    at fulfilled (/home/ubuntu/.yarn/berry/cache/@wppconnect-team-wppconnect-npm-1.30.3-1739879365-10c0.zip/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:21:58)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at process.processImmediate (node:internal/timers:449:9)
JS Stack: ReferenceError: WAPI is not defined
    at pptr:evaluate;%2Fhome%2Fubuntu%2F.yarn%2Fberry%2Fcache%2F%40wppconnect-team-wppconnect-npm-1.30.3-1739879365-10c0.zip%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:47
    at pptr:evaluate;%2Fhome%2Fubuntu%2F.yarn%2Fberry%2Fcache%2F%40wppconnect-team-wppconnect-npm-1.30.3-1739879365-10c0.zip%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:77
    at new Promise (<anonymous>)
    at anonymous (pptr:evaluate;%2Fhome%2Fubuntu%2F.yarn%2Fberry%2Fcache%2F%40wppconnect-team-wppconnect-npm-1.30.3-1739879365-10c0.zip%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:54:14)
Function: function () { return WAPI.isConnected(); }

Hello everyone, I made an update to the WAPI in the lib's repository (wppconnect), could you please test by updating?
npm install @wppconnect-team/wppconnect@latest

Hello everyone, I made an update to the WAPI in the lib's repository (wppconnect), could you please test by updating?
npm install @wppconnect-team/wppconnect@latest

Not sure if the same issue or different. After following your instruction,

Debug Info (this is shown when the server starts

Have you still been unable to connect, or was it just on the first attempt?

Fixed by https://github.com/wppconnect-team/wppconnect-server/pull/1901


Libvips does not release memory

I am writing an image processing server libvips and hyper. After processing around 1k requests the memory usage climbs to ~1.2 GB and stays the same after. None of the images are larger than 500Kb. I am using the thumbnail_source_with_opts function. Disabling libvips cache has no effect. Libvips concurrency is set to 2.
Monitoring the process with top, I can see that number of threads drop down to 5-6 after the operation but the memory is not cleared. I have also tried setting the max_blocking_threads to 1 for tokio runtime to no avail.
Is there a way to lower this memory usage?

I have never seen a Rust project segfault so often. Undefined behavior everywhere, it's almost impossible to successfully clone an image. Even creating a new image from the same file will lead to changes happening to both instances. Killing a single instance off an image will lead to other clones breaking as well.
Anyway @ramitmittal you might have some luck with image.set_kill(true) which seems to free the image. The Drop implementation of VipsImage should be doing this but it doesn't.

Perhaps instead of complain and criticise you could submit a PR to fix any issue you're facing @LevitatingBusinessMan
I obviously didn't have time or resources to test every function generated by this bindings...

@augustocdias Yes I might look into the issues later today, maybe I can contribute. It's not just certain functions though. There seems to be a problem in the whole implementation of the VipsApp.

I confirm the presence of a problem, memory is constantly increasing. I’m not quite sure how to catch, on flamegraph I do not see VipsApp memory, only my application. But I'm sure it's not a leak in my application, since it's easy to play through the CLI application.


feat: basic js ast explorer

This is a more basic AST explorer than Babeliser. I am still not 100% about the API, but have already started adding/using it in:
https://github.com/freeCodeCamp/back-end-development-and-apis/blob/64f5270dab04eb80026aed10f91dfdfda4dfda3d/curriculum/locales/english/learn-npm-by-building-an-npm-module.md?plain=1#L1298-L1317

If we have this, do we need https://github.com/freeCodeCamp/curriculum-helpers/pull/146?

If we have this, do we need https://github.com/freeCodeCamp/curriculum-helpers/pull/146?

Yes, because that is a much more customizable API. This is just for the "majority" cases.
Also, we use Babeliser elsewhere already, and I cannot see us re-writing the tests to use Tower, once it is more fledged.

Sure. I wasn't suggesting that Babelizer needs be retired, just checking if we need in it in the helpers.

@ojeytonwilliams That is definitely up for discussion. So, let us put it like this:
This PR should be prioritised over the Babeliser one.


Red triangle showing next to node

Recently updated to latest version. Had Google and AWS Polly set up previously, everything was working fine. Now I see the red triangle error that something is wrong in the config. I deleted the AWS Polly but still no change. I also see several warning messages in the debug pane.

Thanks for the quick reply! The node didn't do it automatically for me (as far as 220), but I manually put it in and then the error went away.

Hi
it dit it internally, if you leaves the field empty.
The nodes aren't allowed to manually insert anything in the HTML interface, but they are allowed to do it in the js code :-)


Support for one-to-one lazy fetch on detachAll. Issue #4032

This adds support for @OneToOne(lazy=FetchType.LAZY) when calling detachAll(object, true).
I would be happy to add info to the manual, but I couldn't find how to contribute to that.

Cool PR, thanks! However this is a new feature and shouldn't go as hotfix (2.0.x) but rather in 2.1 in "develop" branch. Please could you resynch it against "develop" branch and send a PR again? Thanks in advanc.

New one: #4061


Developer Guide

[ ] I added Sequence Diagram for PersonNoteCommand, would really appreciate for some to proofread the sequence diagram as it is rather complicated😃
[ ] I added Effort segment (but I not sure whether this is what effort appendix is intended) so feel free to let me know your thoughts
[ ] Updated Manual Testing Appendix

Codecov Report

Merging #241 (dd23441) into master (851769c) will decrease coverage by 0.57%.
The diff coverage is 2.59%.

@@             Coverage Diff              @@
##             master     #241      +/-   ##
============================================
- Coverage     36.08%   35.51%   -0.58%
- Complexity      499      501       +2
============================================
  Files           182      182
  Lines          3209     3272      +63
  Branches        370      376       +6
============================================
+ Hits           1158     1162       +4
- Misses         1947     2005      +58
- Partials        104      105       +1

Impacted Files
Coverage Δ

src/main/java/seedu/notor/MainApp.java
0.00% <0.00%> (ø)

...a/seedu/notor/logic/commands/ClearNoteCommand.java
9.09% <0.00%> (-3.41%)
:arrow_down:

.../logic/executors/group/GroupClearNoteExecutor.java
0.00% <0.00%> (ø)

...ogic/executors/person/PersonClearNoteExecutor.java
0.00% <0.00%> (ø)

src/main/java/seedu/notor/model/Notor.java
51.61% <0.00%> (-6.22%)
:arrow_down:

src/main/java/seedu/notor/ui/CommandBox.java
0.00% <0.00%> (ø)

...in/java/seedu/notor/ui/note/GeneralNoteWindow.java
0.00% <0.00%> (ø)

...main/java/seedu/notor/ui/note/GroupNoteWindow.java
0.00% <0.00%> (ø)

src/main/java/seedu/notor/ui/note/NoteWindow.java
0.00% <0.00%> (ø)

...ain/java/seedu/notor/ui/note/PersonNoteWindow.java
0.00% <0.00%> (ø)

... and 5 more

Continue to review full report at Codecov.

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


WebAssembly support

❗ Are you interested in using the Rust SDK in Web Assembly? Please comment on this issue with more details about your potential use case! ❗
Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue, please leave a comment

Tell us about your request
The AWS SDK should be usable from a Rust WebAssembly program.
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
I'm building a web application with core logic written in Rust and compiled to Wasm, and I'd like to connect with AWS APIs such as S3 from my Rust program without having to drop down to JavaScript too often (if ever).
Are you currently working around this issue?
Since I'm targeting the web and there's already an extensive AWS SDK for JavaScript, I can delegate all the AWS bits to JavaScript.

Having S3, DynamoDB, and RDS clients available directly in WASM could allow many classes of web application to avoid having a dynamic backend entirely.

+1 for WASM support

We're building a GraphQL API in Rust that we deploy to Cloudflare Workers. Having native support for WASM in the AWS Rust SDK would be great.

We are working on a sports league app and are interested in using communication and streaming services from AWS for a WebAssembly client.

I am trying write a SPA backed by S3, similar to one that I have written in JavaScript using Rust and WASM.

Wouldn't need the full AWS SDK, but being able to generate pre-signed S3 URLs for PUT/GET would probably cover a lot of my use cases (read/write key values from a private bucket for a WASM based edge function).

We are interested in developing a set of basic operations using the AWS SDK (specially CloudFormation and Service Catalog). Those will be imported by the teams that use different programming languages. Therefore we believe that Webassembly is a perfect fit for that situation. Now that we have the Webassembly Component Model, it should be possible to use a tool such as wit-bindgen combined with Smithy itself to generate the bidings for the languages that we want to support. Additionally, the work that has been happing from the WASI sockets front in the context of Tokio should allow basic networking capabilities to the generated clients.

Hello,
We are working with a wasm-based plugin system (with a couple custom runtime hosts and bindings) where we would like to use the SDK to handle with connections to AWS. To be honest our use case is quite close to being fulfilled thanks to the ability to define our own connector_fn that uses our bindings to run the requests. The only issue we have currently is that building for wasm32-unknown-unknown always try to link to wasm-bindgen symbols even if we don't use it, nor want it; that prevents loading any module that uses the SDK in an environment where we do not use wasm-bindgen.
The root cause seems to be this ring issue, which is unconditionally compiled in aws-config crate. I know one solution is to wait for ring to have enough time to release 0.17, and then to have the SDK update to use this version, but it would also be nice to avoid the issue by trying to put as many dependencies behind features as possible I guess: to go back on our use-case, we would have avoided the problem since we do not plan on using SSO credentials in our wasm program.
Cheers,
Gerry

We have a library that makes heavy use of the AWS SDK and we want to package/distribute it for multiple languages. WASM running in something like the Wasmer runtimes seems like our best bet for distributing it in a language agnostic way. We don't really have any need for browser support since we generally expect the library to be running in Lambdas or ECS, so wasm32-wasi working is probably enough for us.

I'm also interested in this. Anyone had any success interacting with RDS through a Wasm backend?

+1
I would really like to see WebAssembly support, especially the ability to move backend code into the web frontend. WASM can improve performance and security, and it can make it easier to develop and deploy web applications. I urge you to consider adding WASM support to your SDK.

Please!

In my experience, it is actually quite difficult to convert and existing library that does not support wasm targets to start supporting wasm targets.  Dependencies that rely on the system (e.g. system clock), anything that requires multiple threads, dependencies written in C, C++ or Assembly will generally not be able to compile to to wasm targets.  So converting the existing AWS SDK to support wasm is likely a very large ask.
The other option we have is to use the AWS Rest APIs directly for the particular AWS service that one is interested in.  It is relatively straightforward to construct arbitrary Http requests using wasm-bindgen and web-sys.  Deserialization of responses is also straightforward using a serde  for XML.
The main difficulty with using the REST APIs is construction the [AWS V4 signature:] (https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html) for use in the Authorization header.
There is at least one existing crate for V4 signatures https://crates.io/crates/aws-sign-v4, however it does not compile to a wasm target.  In particular, ring, chrono, and url, do not compile to wasm.
It does seem that the existing code could be forked with wasm compatible dependencies:
ring could be replaced by Rust Crypto
chrono could be replaced by js-sys::Date
url could be replaced by custom string parsing and encoding.
Such a project would then provide a path for those of us who want to call AWS APIs from the browser to have a path forward, with a reasonable amount of custom code required.

I think we've been bad maintainers by not keeping everyone in the loop here, so here's an update to try and rectify that.
In the last year, people have made significant contributions (shout out to @eduardomourar! ❤) and we've also done some refactors that bring us closer to realizing WASM support. The SDK now compiles against wasm-unknown-unknown, and there is also a WebAssembly example. As others have called out in this thread, certain standard library features don't exist in WASM, and some C dependencies won't compile to it. These all need to be replaced with configurable components. As a step towards that, our next release will include a configurable TimeSource so that the calls to SystemTime::now() can be eliminated.
We're a small team, and we're primarily focused on getting this SDK to 1.0 right now, so this feature hasn't been getting the love it deserves. However, it is in our minds. We opportunistically chip away at it as time permits, and we try not to write any code that will prohibit it in the future.
This is something we would really like to support, and contributions in smithy-rs, the SDK's code generator, are welcome if someone wants to help out. I've created the aws-sdk-rust/next branch with the latest (unreleased) version of the SDK that has a configurable TimeSource if people want to play around with it and see what's still broken.
Also, regarding the lack of serde::Deserialize on our types, @thomas-k-cameron has been doing a lot of great work in smithy-rs to add that support behind a feature gate. This isn't quite ready to play around with, but we're getting there.
Thanks for all the feedback, everyone!

I've gotten it working in https://github.com/awslabs/smithy-rs/pull/2868! Very hopeful that this will be included in our next release.

The August 3rd release should fix most of the major issues with getting the SDK to work in WebAssembly. It should compile against wasm32-wasi and wasm32-unknown-unknown, and as far as I know, everything that needs to be swapped out in a WASM environment should be configurable now. Please let us know how it works for you!

I'm encountering an issue while using bedrock_runtime SDK without default features and target on wasm:
use aws_config::{
    defaults, identity::IdentityCache, retry::RetryConfig, timeout::TimeoutConfig, BehaviorVersion,
};
use aws_sdk_bedrockruntime::{
    config::{Credentials, StalledStreamProtectionConfig},
    primitives::Blob,
    Client,
};

// ...

    let key = env.secret("AWS_ACCESS_KEY_ID").unwrap().to_string();
    let secret = env.secret("AWS_SECRET_ACCESS_KEY").unwrap().to_string();
    let cred = Credentials::new(key, secret, None, None, "default");
    let config = aws_config::defaults(BehaviorVersion::latest())
        .region("us-east-1")
        .credentials_provider(cred)
        .timeout_config(TimeoutConfig::disabled())
        .retry_config(RetryConfig::disabled())
        .stalled_stream_protection(StalledStreamProtectionConfig::disabled())
        .identity_cache(IdentityCache::no_cache())
        .load()
        .await;
    let client = Client::new(&config);

It panics with:
[ERROR] panicked at library/std/src/sys/pal/wasm/../unsupported/time.rs:31:9:

  time not implemented on this platform

@yuchanns you can configure a custom time source with time_source().
For instance, in one case where I wanted the time to be static within the single use of the AWS config I've configured it like this:
let epoch = (js_sys::Date::now() / 1_000.0) as u64;
aws_config::defaults(aws_config::BehaviorVersion::v2023_11_09())
    …
    .time_source(aws_smithy_async::time::StaticTimeSource::from_secs(epoch))

But you can also provide a value of your own type implementing the aws_smithy_async::TimeSource.

I've been trying to get this working, without a lot of luck. Is anybody successfully using this with wasip2? If so, perhaps we could have a "hello world" example using, e.g., cargo-component? :pray:

@jeffparsons there is a WASI 0.2 compliant HTTP connector in the aws-smithy-wasm crate: https://docs.rs/aws-smithy-wasm/0.1.2/aws_smithy_wasm/wasi/index.html
I have used it successfully in both Wasmtime and in Node (with jco's WASI bindings) with cargo-component built components. It looks like you're in the BytecodeAlliance Zulip, so would be happy to chat more about it there to avoid pinging everyone on this issue!


How to pass yt-dlp arguments? Such as "--embed-thumbnail"

Feature details
Like the title says. You can customise the title and advanced format. How to pass more arguments?

Arbitrary arguments are not a provided option. Those could conflict with everything else and would be hard to debug. For example, embedding thumbnails does not work with every format.
You can change the flags by editing the code in the workflow itself, but that isn’t supported and will be overwritten on workflow updates. However, the workflow has been quite stable for quite a while so updates haven’t been necessary.


Add VIDEO_FORMAT header when writing to string/file from ALE adpater

So, the Media Composer seems to be a bit picky about ALE headers and it will complain if we don't set a VIDEO_FORMAT.   This MR looks to do that.
The first thing it does is add a `video_format` kwarg to the adapter signature, allowing you to set the format on output.

If we don't set that variable it will try to preserve the existing header column (if set).
This would likely only be set if the time-line was read in from a previous ALE

When the header column is not found, it searches each clips ALE metadata for an "Image Size" setting to infer a project format.

If none of that is found it defaults to the adapters DEFAULT_VIDEO_FORMAT (1080)

1080p is probably the most popular format being used right now, but I am open to suggestions if anyone has other thoughts on default settings

Codecov Report

Merging #462 into master will increase coverage by 0.13%.
The diff coverage is 96.07%.

@@            Coverage Diff             @@
##           master     #462      +/-   ##
==========================================
+ Coverage   87.21%   87.34%   +0.13%
==========================================
  Files          67       67
  Lines        6819     6868      +49
==========================================
+ Hits         5947     5999      +52
+ Misses        872      869       -3

Impacted Files
Coverage Δ

...elineio_contrib/adapters/tests/test_ale_adapter.py
98.33% <100%> (+0.96%)
:arrow_up:

opentimelineio_contrib/adapters/ale.py
87.71% <93.1%> (+4.38%)
:arrow_up:

Continue to review full report at Codecov.

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