Rasa X model not properly working

Rasa version: 2.2.8
Rasa SDK version :  2.0.0
Rasa X version: 0.0.35
Python version: 3.8
Issue:
Hi,
I deployed Rasa X using Helm Chart following the docs and connected it to the Git repo.  It seems however that the chatbot doesn't work, whether using an uploaded model or training one after activating it.  When I test it in Rasa X, it says that the predicted intent is equal to the message (e.g. if the message is "Hello" then the intent is "Hello" as well, although it doesn't exist as an intent). When querying via /api/projects/default/logs I would get something like this:

{
    "id": 3,
    "time":<PHONE_NUMBER>.5495345592,
    "model": "unavailable",
    "hash": "5d41402abc4b2a76b9719d911017c592",
    "conversation_id": null,
    "event_id": null,
    "user_input": {
        "text": "hello",
        "intent": {
            "name": null,
            "confidence": 0
        },
        "intent_ranking": [],
        "entities": []
    },
    "tags": []
}

I enabled debug mode (debugMode: true in values.yml) and I can see this being outputted frequently when looking at the logs usingkubectl logs -f rasa-x-1612275971-rasa-x-7947479b66-gshln   --namespace rasa
GET http://rasa-x-1612275971-rasa-x.rasa.svc:5002/api/projects/default/models/tags/production?token=MY_TOKEN  404 160
DEBUG:rasax.community.services.model_service:Model discovery not completed.

A similar thing is outputted on rasa-production:
2021-02-02 17:35:48 DEBUG    rasa.core.agent  - Model server could not find a model at the requested endpoint 'http://rasa-x-1612275971-rasa-x.rasa.svc:5002/api/projects/default/models/tags/production'. It's possible that no model has been trained, or that the requested tag hasn't been assigned.
2021-02-02 17:35:48 DEBUG    rasa.core.agent  - No new model found at URL http://rasa-x-1612275971-rasa-x.rasa.svc:5002/api/projects/default/models/tags/production

It seems as though the model is not active, although it clearly shows up in the UI as active.
Using Rasa X locally seems to work just fine with the same config and model. The model also trains fine using Rasa Open Source train command and Rasa X locally. Interestingly, when I train the model on Rasa X on server, the training only goes for a couple of epochs then fails.

Thanks for the issue, @desmarchris will get back to you about it soon!
You may find help in the docs and the forum, too 🤗

hey @aminekechaou , can you post the response for hitting the /projects/default/models endpoint? I'm wondering if the tagging is not working appropriately. Also, what errors are you seeing when training fails?

I trained a model for 1 epoch and then called /projects/default/models Here's the same response before and after activating it. It's also the response I get after uploading a model (and activating it or not):
{
    "version": "0.35.0",
    "status": "failure",
    "message": "Could not save model.\nNo `model` file found.",
    "reason": "ModelSaveError",
    "details": {},
    "help": null,
    "code": 400
}

I then explicitly called http://<address>/api/projects/default/models/<modelname>/tags/production on the model I uploaded as noted here https://github.com/RasaHQ/rasa/issues/5819 and I get this response now when hitting /projects/default/models:
[
    {
        "hash": "d7c3ea58b66131a2a3c692b98230ea32",
        "model": "20210203-215432",
        "path": "/mnt/blob/models/20210203-215432.tar.gz",
        "project": "default",
        "trained_at":<PHONE_NUMBER>.8615899086,
        "version": "2.2.8",
        "tags": [],
        "is_compatible": true
    },
    {
        "hash": "a540808fdd529e7756f038047b63d5c5",
        "model": "nlu-20210128-230311",
        "path": "/mnt/blob/models/nlu-20210128-230311.tar.gz",
        "project": "default",
        "trained_at":<PHONE_NUMBER>.5235300064,
        "version": "2.2.8",
        "tags": [
            "production"
        ],
        "is_compatible": true
    }
]

But it still doesn't work as expected when testing the bot in the UI or calling /logs:
{
    "id": 3,
    "time":<PHONE_NUMBER>.029512167,
    "model": "unavailable",
    "hash": "5d41402abc4b2a76b9719d911017c592",
    "conversation_id": null,
    "event_id": null,
    "user_input": {
        "text": "hello",
        "intent": {
            "name": null,
            "confidence": 0
        },
        "intent_ranking": [],
        "entities": []
    },
    "tags": []
}

Here's what I get when calling  /projects/default/models/tags/production:
{
    "version": "0.35.0",
    "status": "failure",
    "message": "Tag 'production' not found for project 'default'.",
    "reason": "TagNotFound",
    "details": {},
    "help": null,
    "code": 404
}

It looked from the logs that that call was failing:
No new model found at URL http://rasa-x-1612344470-rasa-x.rasa.svc:5002/api/projects/default/models/tags/production
As to the training failing, I noticed that the training actually continues in the background but the UI shows "Training failed" when the computer goes to sleep. It would be helpful to create a placeholder each time training is triggered under the models tab and show a progress bar of the training that would persist even if the session is closed, along with giving the option to cancel it.

thanks for the extra info! I'll get back to you after reviewing

It came to my attention that long complex passwords may cause issues in Rasa X. I changed to the passwords / tokens to only contain 8 characters and it seems to be working fine now.
The issue with the UI saying that training the model failed when the computer goes to sleep still remains however.

Hi, it looks like it wasn't really related to the password's length, at least not directly. I'm having the same issue now with the same short passwords.
Here's a further insight:
curl --location --request GET 'http://rasa-x-1614022462-rasa-x.rasax.svc:5002/api/projects/default/models/tags/production' --header 'Authorization: Bearer RASA_X_TOKEN'

from within the production container returns {"reasons":["Auth required."],"exception":"Unauthorized"}  And the logs are always showing

2021-02-22 19:49:21 DEBUG    rasa.core.agent  - Model server could not find a model at the requested endpoint 'http://rasa-x-1614022462-rasa-x.rasax.svc:5002/api/projects/default/models/tags/production'. It's possible that no model has been trained, or that the requested tag hasn't been assigned.
2021-02-22 19:49:21 DEBUG    rasa.core.agent  - No new model found at URL http://rasa-x-1614022462-rasa-x.rasax.svc:5002/api/projects/default/models/tags/production

@desmarchris is there any update on the issue?

I have been unable to reproduce this problem for now.
What is the GET /api/projects/default/models endpoint returning?
Have you tried using the endpoint you mentioned using an API token? You can get your user's API token by contacting GET /api/user and looking for the api_token key.

GET /api/projects/default/models is returning the correct result
[
    {
        "hash": "774f8f45d0179da4d0e49f7ffa68d22b",
        "model": "20210223-095848",
        "path": "/app/models/20210223-095848.tar.gz",
        "project": "default",
        "trained_at":<PHONE_NUMBER>.0844299793,
        "version": "2.3.0",
        "tags": [],
        "is_compatible": true
    },
    {
        "hash": "5d35f7b241b90634e9bdc0c30b08a502",
        "model": "20210223-095512",
        "path": "/app/models/20210223-095512.tar.gz",
        "project": "default",
        "trained_at":<PHONE_NUMBER>.1912999153,
        "version": "2.3.0",
        "tags": [
            "production"
        ],
        "is_compatible": true
    }
]

GET /api/projects/default/models/tags/production is returning gibberish in this case (as if the response is not correctly encoded). In another case the call is failing.
curl --request GET 'http://rasa-x-1614073869-rasa-x.rasax.svc:5002/api/user' from within the prod container returns {"reasons":["Authorization header not present."],"exception":"Unauthorized"} and curl --request GET 'http://rasa-x-1614073869-rasa-x.rasax.svc:5002/api/user' --header 'Authorization: Bearer RASAX_TOKEN' returns {"reasons":["Auth required."],"exception":"Unauthorized"}

Thanks for the additional information. Unfortunately so far I haven't been able to reproduce the problem.  I am transferring the issue to another team that follows model lifecycles more closely.

Hello. Any update or workaround for this? I am using rasa 1.10.8 and rasa-x 0.31.0. I get the same as @aminekechaou where the API returns the models with the tags from GET /api/projects/default/models but not from GET /api/projects/default/models/tags/production.

I am facing this issue in rasa 2.8.1, rasa-x 0.42.0. It started happening randomly and now I can't get it to work. Nothing has changed from when it worked to now.
When hitting the endpoint api/projects/default/models I get this:
[{"hash":"cdda3350bde594061531191f10f5590a",
"model":"20210817-233608",
"path":"\/app\/models\/20210817-233608.tar.gz",
"project":"default",
"trained_at":1629243368.0236799717,
"version":"2.8.1",
"tags":["production"],
"is_compatible":true}]

but when hitting /api/projects/default/models/tags/production I get:
{"version":"0.42.0",
"status":"failure",
"message":"Tag 'production' not found for project 'default'.",
"reason":"TagNotFound",
"details":{},
"help":null,"code":404}

The logs show the same as comments above:
2021-08-18 00:05:12 DEBUG    rasa.core.agent  - Model server could not find a model at the requested endpoint 'http://k8s-rasa-rasa-x-rasa-x.rasa.svc:5002/api/projects/default/models/tags/production'. It's possible that no model has been trained, or that the requested tag hasn't been assigned.

2021-08-18 00:05:12 DEBUG    rasa.core.agent  - No new model found at URL http://k8s-rasa-rasa-x-rasa-x.rasa.svc:5002/api/projects/default/models/tags/production

I'm experiencing the same issue.  Interesting, when I try to retrieve my model directly via /api/projects/default/models/20210823-181338, I get
{     "version": "0.42.0",     "status": "failure",     "message": "Model 'None' not found for project 'default'.",     "reason": "ModelNotFound",     "details": {},     "help": null,     "code": 404 } even though I see the model there when I do a /api/projects/default/models

I've experienced the same issue on a single-node k8s cluster. Redeploying the rasa-x pod helps temporarily as mentioned by @provwilliamnagy.
I noticed this issue first when the cluster was under some load (running other deployments as well), causing the pods to take more time to start. So maybe that points indeed to a timing issue.
Versions: rasa: 2.8.12 / rasa-x: 0.42.4

Hi,
Is there any update on this? I configured Rasa Core to pull models from Rasa X and this doesn't work as well. It seems Rasa Core doesn't use the token value.
endpoints.yml (from docker-compose installation manual)
 models:    url: ${RASA_MODEL_SERVER}    token: ${RASA_X_TOKEN}    wait_time_between_pulls: ${RASA_MODEL_PULL_INTERVAL}
I checked the code and the headers of the request are not being created.
https://github.com/RasaHQ/rasa/blob/2.8.12/rasa/core/agent.py#L189

Thank you for raising this issue about Rasa X. We decided to stop supporting the Community Edition (free version) of ‘Rasa X’ (see more info here: https://rasa.com/blog/rasa-x-community-edition-changes/). That’s why we’ve closed your issue. We suggest that Rasa Enterprise customers raise the issue with our customer support team if they haven’t done so already.


confusion regarding additional datasets

I am trying to understand the paper. Just clear out my confusion. I am confused whether the newly added datasets are used for training or not, after the optimal hyperparameters are selected.
For example:
For different hyperparameters, the model is first trained on the CUB dataset, then validated on the CUBv2 dataset. Hyperparameters of the model with the highest localization accuracy are then selected. A new model with the selected hyperparameters is then trained on the CUB training dataset along with the added CUBv2 dataset, and then finally tested on the CUB test dataset. Am I correct or are you doing something different?

No. We only use held-out sets for finding the hyperparameters. They are not used after the hyperparameter search. This is the correct procedure proposed in our paper:

Train a number of models with the train-weaksup split (e.g., original CUB train set).
Find the best model from (1) with the train-fullsup split (e.g., additional CUB V2).
The best model chosen from (2) is tested with the test split (e.g., original CUB test set).

You can find the details in Section 5.2. "Comparison of WSOL methods".

(..) we have randomly searched the optimal hyperparam- eters over the train-fullsup with 30 trials
(..) The checkpoints that achieves the best localization performance on train-fullsup are used for evaluation.

You can also find the details in our code.
https://github.com/clovaai/wsolevaluation/blob/38d4aef1651caf49320abd36fde18540abaf7bfe/main.py#L367-L386


[SR-9013] SourceKit: redundant qualifier for typealias in its own decl context

Previous ID
SR-9013

Radar
rdar://problem/43029130

Original Reporter
@AnthonyLatsis

Type
Bug

Additional Detail from JIRA

Votes
0

Component/s
Source Tooling

Labels
Bug

Assignee
None

Priority
Medium

md5: 1ab119507c19ab3aeacf4916cd89782c

Issue Description:
Example: func intersection(_ other: Set<Set<Element>.Element>) -> Set<Set<Element>.Element>
Documentation
Source

@nkcsgexi Do you recollect any PRs that could have fixed this (for reference)?


Update text on show info button from "?" to "Show info"

TLDR: Changes '?' to "Show info" so it's more obvious to new users.
As a new user to Storybook, I was very confused when I install this plugin and followed instructions but couldn't see the info. I kept thinking I had installed the plugin incorrectly.
Eventually after I used the inline config, I realised it was working and that actually the way to see the source is to click "?" in the top right.
There doesn't seem to be a reason to be so small/unobstructive, so this just makes it a lot clearer for new users what the button does.

I like this change even if breaking. WDYT @mnmtanish and @apexskier?

@mthuret here's a retroactive "approval"


ServiceBus output binding messages not of type 'application/json'

Hi there,
as in the documentation described, i want to send an message to azure service bus with contentType 'application/json'.
Documentation:
"Access the queue or topic by using context.bindings.. You can assign a string, a byte array, or a JavaScript object (deserialized into JSON) to context.binding.."
My Code:
import {app, HttpResponseInit, InvocationContext, output} from "@azure/functions"
import {Timer} from "@azure/functions/types/timer";

const serviceBusOutput = output.serviceBusTopic({
    topicName: 'test-topic',
    connection: 'ConnectionString_ServiceBus',
});

export async function httpTrigger1(myTimer: Timer, context: InvocationContext): Promise<HttpResponseInit> {
    const outputMessages = [];
    outputMessages.push(
        {propName: 'test'}
    );
    outputMessages.push(
        JSON.stringify({propName: 'test'})
    );
    outputMessages.push(
        new Object({propName: 'test'})
    );
    outputMessages.push(
        Object.create({propName: 'test'})
    );
    outputMessages.push(
        ['propName', 'test2']
    );
    outputMessages.push(
        "{\"propName\":\"test\"}"
    );

    context.extraOutputs.set(serviceBusOutput, outputMessages);
    return {body: `Hello, ${'name'}!`};
}

app.timer('test', {
    schedule: '*/10 * * * * *',
    extraOutputs: [serviceBusOutput],
    handler: httpTrigger1
})

My expectation:
In Azure service bus i expect 6 Messages, first 5 in format 'application/json' and the last one, because its a string in 'text/plain'
What i get:
Messages in Azure Service, all have contentType 'text/plain'.

How could i get 'application/json' as contentType?
My Setup:
I use azure functions with typescript as language.
host.json
{
  "version": "2.0",
  "logging": {
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "excludedTypes": "Request"
      }
    }
  },
  "watchDirectories": ["./"],
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[3.*, 4.0.0)"
  }
}

dependencies in package.json:
 "dependencies": {
    "@azure/functions": "^4.0.0-alpha.11"
  },
  "devDependencies": {
    "@types/node": "18.x",
    "typescript": "^5.1.3"
  }

Anything new on this?

Any updates on this?

No updates, although I think this is more of a feature request than a bug. As far as I can tell, we don't support the 'application/json' message type in any scenarios.
Our recommendation would be to use the @azure/service-bus npm package to send messages instead of an output binding. That package will always have more flexibility and configuration options than we do for output bindings, even if we add this feature somehow


PyPI sdist package and conda-forge recipe

Hi @tweedge ,
thanks for this wonderful Python library! I'd like to use it in one of our Python bioinformatics applications (oschwengers/bakta).
As the main distribution channel of this software is Conda, I'd need unishox2-py3 to be available at conda-forge. I'd be happy to write a recipe for it based on your PyPI package.
However, I'd need an sdist package on PyPI in order create a recipe via Conda`s grayskull tool:
$ grayskull pypi unishox2-py3
#### Initializing recipe for unishox2-py3 (pypi) ####

Recovering metadata from pypi...
Traceback (most recent call last):
  File "/home/oliver/tmp/conda-forge-unishox2-py3/conda/bin/grayskull", line 10, in <module>
    sys.exit(main())
  File "/home/oliver/tmp/conda-forge-unishox2-py3/conda/lib/python3.10/site-packages/grayskull/__main__.py", line 193, in main
    generate_recipes_from_list(args.pypi_packages, args)
  File "/home/oliver/tmp/conda-forge-unishox2-py3/conda/lib/python3.10/site-packages/grayskull/__main__.py", line 215, in generate_recipes_from_list
    recipe, config = create_python_recipe(
  File "/home/oliver/tmp/conda-forge-unishox2-py3/conda/lib/python3.10/site-packages/grayskull/__main__.py", line 249, in create_python_recipe
    GrayskullFactory.create_recipe(
  File "/home/oliver/tmp/conda-forge-unishox2-py3/conda/lib/python3.10/site-packages/grayskull/base/factory.py", line 31, in create_recipe
    GrayskullFactory.REGISTERED_STRATEGY[repo_type.lower()].fetch_data(
  File "/home/oliver/tmp/conda-forge-unishox2-py3/conda/lib/python3.10/site-packages/grayskull/strategy/pypi.py", line 60, in fetch_data
    update_recipe(recipe, config, sections or ALL_SECTIONS)
  File "/home/oliver/tmp/conda-forge-unishox2-py3/conda/lib/python3.10/site-packages/grayskull/strategy/pypi.py", line 470, in update_recipe
    metadata = get_metadata(recipe, config)
  File "/home/oliver/tmp/conda-forge-unishox2-py3/conda/lib/python3.10/site-packages/grayskull/strategy/pypi.py", line 343, in get_metadata
    sdist_metadata, pypi_metadata = get_origin_wise_metadata(config)
  File "/home/oliver/tmp/conda-forge-unishox2-py3/conda/lib/python3.10/site-packages/grayskull/strategy/pypi.py", line 227, in get_origin_wise_metadata
    pypi_metadata = get_pypi_metadata(config)
  File "/home/oliver/tmp/conda-forge-unishox2-py3/conda/lib/python3.10/site-packages/grayskull/strategy/pypi.py", line 270, in get_pypi_metadata
    raise AttributeError(f"There is no sdist package on pypi for {config.name}.")
AttributeError: There is no sdist package on pypi for unishox2-py3.

Also, would it be OK to mention you in the Conda package as the maintainer? Any help would be highly appreciated!
Best regards!

Hi! I'll have a look into this :)

So I have added a source distribution, but I'm still getting familiar with Conda. I am happy to be mentioned as a maintainer if you create a Conda package before me!

Sorry, for the late reply!
I just opened a PR to @conda-forge: https://github.com/conda-forge/staged-recipes/pull/20798
The PR template contains a couple of questions regarding statically linked 3rd-party libraries that might be used and contained. I wonder if you could maybe check my statements and amend them where necessary?
Thanksa lot for your support and best regards!

@tweedge Unfortunately, I got stuck in the Windows CI tests. I'm neither a windows user nor do I have much experience with Python/C hybrid projects. Could you maybe have a look at this to figure out what's the issue here? Otherwise, I'd skip the Windows builds, but as a consequence, unishox-py3 would not be available for Windows.

Howdy, the answers given in this PR looks pretty good! I think we might be able to check off "Package does not vendor other packages. (If a package uses the source of another package, they should be separate packages or the licenses of all packages need to be packaged)." as both projects use the same Apache 2.0 license, which is bundled.
Unfortunately I am also not a Windows user, so it might be best for us to accept the gap at this time :(

OK, I skipped the builds for Win and arm64 systems and requested a review. Let's see what we get.

Hi @tweedge , sorry fore the very late reply. There were a comment regarding different licenses: https://github.com/conda-forge/staged-recipes/pull/20798#discussion_r1038661167
Essentially, they ask if you could add the original Unishox2 license into your repo, because they differ due to different license holders (which is the case, see https://github.com/siara-cc/Unishox2/blob/72313797a9b305a3b36b697fc658b29490194de4/LICENSE at the very end: Copyright 2019 Siara Logics (cc)
If you would be willed to include the original license file as well, we might go ahead with https://github.com/conda-forge/staged-recipes/pull/20798


Datadog Adapter

This pull request includes changes to add a DataDog adapter.   This allows the WF agent to accept 2 new request formats:

HTTP request with JSON formatted body coming from the DataDog agent
UDP DogStatsD format coming from scripts written using the SDK

I refactored a bit more than I would have liked to have, but it seemed necessary to support the UDP input.  As a result of the number of changes, please carefully review and let me know what I can change to make it better.
[NOTE: I will be adding another update to this pull request to add some automated tests that I'm still working on.  I am assuming it will take some time to review this request so I wanted to get the code in here sooner rather than later]
See the documentation added in the docs/ folder (DataDogAdapter.md) and also more details on the internal wiki.

High-level comments:

See existing Jetty/Jersey implementation for handling HTTP requests
Use IngesterFormatter for parsing things (Graphite and OpenTSDB formats go through that route)
Add tests for datadog formats (with real data)

At this point I am going to close the PR (since there seems to me that it would have a lot of changes).

Oh and please do a rebase at the very end of your commits, thanks.


Status text is no longer visible after a server restart

Describe the bug
If you set a status text that all users can see in the startup message, it will disappear as soon as the server is restartet.
To Reproduce
Steps to reproduce the behavior:

Add a status text to the Open Roberta Lab and set the expiration date to some day in the distant future
Restart the server
See, that status message is not shown when you open the ORLab

Expected behavior

The status text should be shown for as long as it was defined in the expiration date, or until it gets removed manually

Screenshots

will be solved with #828


Debugging CESM driver

@apcraig and @bartnijssen -
I've gotten started debugging the CESM driver.  For the most part, things are moving along although I've run into a few issues that I'll discuss here:

FIXED: Fortran string, Fortran character arrays, and C character arrays are not all the same.  My original (naive) implementation was causing all sorts of problems when we were passing strings into C. Here's what I learned / did to fix the problems: we now have a few simple Fortran functions to convert between fortran strings and character arrays (see Copy_s2a() and Copy_a2s() below) and a C function to trim trailing white/null space (see trim() below).
FIXED: Passing derived types (such as vic_clock or case_metadata) from Fortran to C can (should) be done by reference. This we don't have to create a pointer to the objects in Fortran, we can just accept the object as a pointer in C.  See vic_cesm_init for an example.
BROKEN - We are having issues accessing and using global memory defined at the C level.  I first noticed this when debugging mpi_map_decomp_domain.  Although mpi_size, which is defined as a extern int is set as 64 in the mpi init step, when accessing the same value in mpi_map_decomp_domain, the value was undefined (mpi_size ==<PHONE_NUMBER>, yikes!).  I'm also finding that we're having similar issues when accessing the global_param, options, and parameters structures (values are scrambled, even after initialization).  All are defined in the header of vic_cesm_interface_c.c.  So, we (I) need to work on figuring this out...

interestingly enough, after moving to Lightning and adding a few compiler flags, I'm not having memory problems any more. So I'm back on the debugging trail.


More spinners

I guess this is obvious for such a young project, but: TOO FEW SPINNERS! Bashed through them (on PC) in very little time.
Besides simply adding more spinners it might be worth the thought whether to increase the intervals between unlocking the existing ones.
If welcome, I might also be interested in contributing one or two spinner design propositions myself.

Also, I find the default spinner a bit disconcerting, mostly the + and - as the ball-bearings

+1 prs welcome!


Check docs changes

Changes
implements documentation verification https://github.com/improbable-eng/thanos/issues/438
Verification
Should work as a separate step make check-docs. CI will run it and fail in case documentation have any discrepancies with sets of flag
$ make check-docs
>> building binaries
 >   thanos
Docs have discrepancies, do 'make docs' and commit changes:

@@ -91,7 +91,7 @@
       --prometheus.url=http://localhost:9090
                                  URL at which to reach Prometheus's API.
       --tsdb.path="./data"       Data directory of TSDB.
-      --gcs.bucket=<bucket>      Google Cloud Storage bucket name for stored
+      --gcs.bucket=<bucket>      + Google Cloud Storage bucket name for stored
                                  blocks. If empty, sidecar won't store any block
                                  inside Google Cloud Storage.
       --s3.bucket=<bucket>       S3-Compatible API bucket name for stored
make: *** [test-docs] Error 2

Probably, it's better to call make test-docs outside the make test, but in this case we have to update CircleCI build plan to add this step @Bplotka

works as expected https://circleci.com/gh/improbable-eng/thanos/792


target: fix flash, ram size and identifier for KW41Z512xxx4

The size of the Flash and RAM is wrong for target MKW41Z512xxx4,
fix that and use kw41z512xxx4 identifier for this target.

@MaureenHelm FYI

CC @mmahadevan108

It's true the flash and RAM sizes are wrong. Looks like they were copied from KW40 and not updated.
Why do you want to change the target name to 'kw41z512xxx4'? This would be unlike all the other targets in pyOCD.

Why do you want to change the target name to 'kw41z512xxx4'? This would be unlike all the other targets in pyOCD.

Regarding the Flash and RAM configuration, there are two variants of the SoC, one with 256KB Flash / 64KB RAM and 512KB Flash / 128KB RAM. Probably kw41z512 is also clear enough.

We tend to directly support only the maximally-sized device variant, rather than attempting to include configurations for each. The target will work for all variants with smaller memory sizes, which is why the target name doesn't specify the memory size. This lets us support more devices with fewer targets.
When we eventually switch to CMSIS-Pack based configurations, we will be able to support all device variants directly.

ok, will rework and change the name back to 'kw41z4'

Closing this PR because the fixes have been incorporated into #336.


Extractor overwrites existing translations

When running cargo i18n, the keys are properly extracted and the YAML file is generated as expected, but if I then translate some of the lines and run the extractor again, it overwrites the translations. This means I can pretty much only use the extractor once, and then if I add strings later in the project I have to add them to the YAML file manually.

Okay, wasn't clear that the extractor would always output to the TODO.yml file, which obviously means it overwrites changes made in it. It could be nice to dumb-proof it by adding a # warning: auto-generated comment at the top of it.


POL-913 Google Idle IP Address Recommender Revamp

Description
This is a revamp of the Google Idle IP Address Recommender policy. The most notable change is that the policy will now convert the savings reported by Google to the Flexera org's currency when appropriate.
From the CHANGELOG:

Policy now requires a Flexera credential
Policy now converts savings to local currency when appropriate
Several parameters altered to be more descriptive and human-readable
Removed deprecated "Log to CM Audit Entries" parameter
Added ability to only report recommendations that meet a minimum savings threshold
Added ability to filter resources by project and by region via an allow list or a deny list
Added ability to filter resources by multiple label key:value pairs
Added additional context to incident description
Normalized incident export to be consistent with other policies
Added additional fields to incident export to facilitate scraping for dashboards
Policy no longer raises new escalations if savings data changed but nothing else has
Streamlined code for better readability and faster execution

Link to Example Applied Policy
While we do have a test environment for GCP, recommendations can take some time to actually be generated. I have tested this policy in a client environment and verified it works as expected and can provide the incident it produced upon request.
An example of the policy running in a test environment without error, but not raising an incident, can be found here:
https://app.flexera.com/orgs/6/automation/applied-policies/projects/7954?policyId=65147699656c530001e18a4e
(I have also tested the CWF by modifying the policy temporarily to report on IP addresses that have no recommendations. The delete action works as expected)
Contribution Check List

[X] New functionality includes testing.
[X] New functionality has been documented in the README if applicable
[X] New functionality has been documented in CHANGELOG.MD

Work is done but marking as DO NOT MERGE since I expect to make further changes for meta policy stuff.


Add a 'transform' prop in order to manipulate data before render

Hi Rati,
Sorry for the delay.
I've tried it with my project. Please take a look and let know if there is anything to change, code style etc. Also, I could update the documentation if it is accepted.
Cheers!

Thanks @noru. Unfortunately, I thought you weren't comfortable with it, so I've finished it during the weekend for vuetable-2 and will probably port back to vuetable as well within this week. Here's the way I do it.

Hi @ratiw , it's great to know that you've chosen to implement it yourself :). Looking forward to vue-table2 as well. It was national holiday in China and I wasn't around at that time, so...
However, your 'transform' doesn't solve my problem. In my project, I'd like to do as such:
transform: (body) =>{
  console.log(body.pagination) // undefined
  let pagination = { /* construct a legal structure for vue-table myself  */ }
  body.pagination = pagination
}

so you see, my problem, particularly, is not about the table data but the pagination. I think your 'dataPath' is sufficient for most cases if not all (does any api serve data as an object instead of an array? that may need more overall of a 'transform')
Some off-topic thinking:

A 'transform' in my mind, if not an overall manipulation upon data, would be a row -> row function, and be used like rows.map(transform). Sort of more functional :)

I chose props in the end because it is more declarative. And accessing parent namespace, would that be a little intrusive? (I'm new to Vue and still figuring out how to work with it properly)

I know vue-table is created based on vue-resource, but, do you plan to support feed table with data instead of Api?

Can I inject data other than just 'rowData' for '__component' field? like event handler and so on.

Looking forward to your reply. And if you found any items worth considering, I can create issues for tracking.
Regards

@noru Sorry for late reply. Extremely busy with other stuffs at the moment.
Does that mean the api you're using does not have the pagination information? Is it possible for you to show me the sample of the data you're getting from the API your code consumed?
I myself do not use a lot of outside API and when I wrote vuetable I try to make it as flexible as I can think of and based most of the work on Laravel and JSON API (jsonapi.org)
In my mind, the transform was meant for data only, but it would be interesting to find and discuss a use case for pagination as well.
About your question regarding the api serving the data as object instead of an array. I don't know if any api has implemented it as such, but I would think it is not the correct way to represent the data. It should be an array, not an object. But, of course, it could be embeded inside an object.
For the off-topic discussion.

The data transformation is just an option so that vuetable is useful to others who have no control over the api they're using. It should not be a main feature. The manipulation of data like you mention should be done on the server side in my opinion. vuetable is just a presentation component for the data.
vuetable also only deals with a small set of data at any given time but does expect the data to be of the same structure, so transform it only once at the beginning would be much more efficient. The row operation for presenting the data (not transfoming it) is already covered by field callback and component field.

At that time, I was looking for a simple way to provide the additional functionality and extensibility and accessing the parent instance seem to be the answer for me. With careful use and knowing what you're doing, it should be pretty safe for that. Passing a function seems pretty nice though.

vuetable was created specificly for working with data from the API. Based on my experience, this is the most appropriate way.
Feeding the data directly into vuetable or any Vue component will not scale well and cause more problems.
But I do have another similar component called vueitems that provide almost the same functionality to vuetable but using an array as the data instead of feeding them from the API. It is much more simple though and aiming for a small list of table in a business form like Quotation, Purchase Order, etc.

Nope, you cannot. But I'm curious to know how you would use it.

Hi @ratiw, take your time, don't worry :)
About main issue: my API is from AWS cloudsearch. Here's a sample from official document:
{
    "status": {
        "rid": "z67+3L0oHgo6swY=",
        "time-ms": 7
    },
    "hits": {
        "found": 1649,
        "start": 0,
        "cursor": "Vb-HSS4YQW9JSVFKeFpvQ2wwZERBek16SXpOems9Aw",
        "hit": [
            {
                "id": "tt0397892"
            }
            ...
        ]
    }
}

Despite all that, what essentially need for a pagination component is: skip, top, total (corresponding to the example: start, hit.length, found) and all other numbers are only derivatives. That being said, a server may not return all numbers that vue-table needs (like, current page, last page)

Others,
1, yeah, I started to realize that may not be a good idea given the nature of front-end development
2, 3, heard and learned
4, my reason is simple, my '__component' field, as a child component of vue-table, have a natural need to communicate with its parents, as normal vue components. Since '__component' is 'injected' by vue-table, this chain is broken here.  Although I can fire events as usual but I don't want to abuse the usage.
Cheers!

@noru I see your point now. But in this case, you will also need to appropriate query back to the API for the next batch of data as well. Do you see the use of append-params sufficient for your use case?

@ratiw yes, append-params is enough for me.


registry API and Search website reporting different versions of AVM modules

Thank you for reporting an issue.
API reports v0.3.0 is the latest version of avm-res-cognitiveservices-account and that is expected:
$ curl https://registry.opentofu.org/v1/modules/azure/avm-res-cognitiveservices-account/azurerm/versions
{
  "modules": [
    {
      "versions": [
        {
          "version": "0.3.0"
        },
        {
          "version": "0.2.1"
        },
        {
          "version": "0.2.0"
        },
        {
          "version": "0.1.1"
        },
        {
          "version": "0.1.0"
        }
      ]
    }
  ]
}

However, the Search website is stuck on the previous version:

Why is the Search website not in sync with the API?
Another module with a similar issue is avm-res-operationalinsights-workspace.
OpenTofu Version
OpenTofu v1.8.2
on linux_amd64

OpenTofu Configuration Files
module "avm_res_cognitiveservices_account" {
  source                = "Azure/avm-res-cognitiveservices-account/azurerm"
  version               = "0.3.0"
  location              = var.openai_deployment_location
  resource_group_name   = data.azurerm_resource_group.rg_mgmt.name
  name                  = local.aoai_service_name
...

Hi, We are currently only updating modules and providers sporadically during the beta period. I'll enable updating this module soon.


:refactor: validate => registerForm.

Description of the enhancement
Minimising Registeration.js
Screenshots
Screenshots of the proposed changes compared with the current version of the project

Perform this after the complete form is ready


GET /evidence/graph/{id} = 500

https://api.monarchinitiative.org/api/evidence/graph/cfef92b7-bfa3-44c2-a537-579078d2de37
(id provided in the API doc)
response

500 Internal Server Error
Internal Server Error
The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.

I just tried it again https://api.monarchinitiative.org/api/evidence/graph/cfef92b7-bfa3-44c2-a537-579078d2de37
With same result.  Maybe fix not pushed to production yet?


[BUG] Old escape menu bug

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[X] I have thoroughly looked through the available Wiki articles and could not find a solution to my problem.
[X] I am using the latest version of Bloxstrap.
[X] I did not answer truthfully to all the above checkboxes.

What problem did you encounter?
Whenether you use an older version of an escape menu, the options never appear for Home, People, Settings, Captures, Report and Help. It would just be blank, and if you try leaving the game, you simply just can't, as the options for reseting your character or leaving the game do not function, and will just leave in a blank space with the menu open. If you tried Alt + F4, the same thing would occur, while also most of the UI dissapearing. Only way you can exit a game is through using the Task Manager.

Bloxstrap Log
N/A

Add this FFlag:
{
"FFlagFixReportButtonCutOff": "False"
}
If it doesn't work, use the 2023 (V4) menu.

It worked. Tysm for the help.

wowie thank you

i cant even close from task manager

send help

i restarted my computer then the menu reset to normal roblox menu without the graphic levls and the fps unlocker

im pretty sure blox strap isnt running when i open roblox. it says opening blox strap but when i join theres no eidence of it being opened

im pretty sure blox strap isnt running when i open roblox. it says opening blox strap but when i join theres no evidence of it being opened

Check out the wiki

ok

do u know where the wiki is

nvm


[ko] remove extra line from pod-priority-preemption.md

Fixes
Closes #37740
Changes proposed
Removed the line the scheduler always tries the "nominated Node" before iterating over any other nodes

/assign @seokho-son

Thanks @Pradumnasaraf
/lgtm

/approve


Implement 7XX RFC

https://github.com/joho/7XX-rfc
:)

haha. I think I'll wait until the IETF approves this ;)


SauceLabs build ID

Codecov Report

Merging #23 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #23   +/-   ##
=======================================
  Coverage   95.12%   95.12%
=======================================
  Files          13       13
  Lines         656      656
  Branches      140      140
=======================================
  Hits          624      624
  Misses         12       12
  Partials       20       20

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 e556c47...40e1e93. Read the comment docs.


Error: Big integer literals are not available in the configured target environment

When compiling my front end application with Vite I'm running into the following error:
✘ [ERROR] Big integer literals are not available in the configured target environment ("chrome87", "edge88", "es2019", "firefox78", "safari13.1")

    node_modules/v-money3/dist/v-money3.es.js:137:34:
      137 │     __publicField(this, "number", 0n);
          ╵                                   ~~

✘ [ERROR] Big integer literals are not available in the configured target environment ("chrome87", "edge88", "es2019", "firefox78", "safari13.1")

    node_modules/v-money3/dist/v-money3.es.js:223:41:
      223 │       thatNum = thatNumber.getNumber() * 10n ** BigInt(diff);
          ╵                                          ~~~

✘ [ERROR] Big integer literals are not available in the configured target environment ("chrome87", "edge88", "es2019", "firefox78", "safari13.1")

    node_modules/v-money3/dist/v-money3.es.js:225:35:
      225 │       thisNum = this.getNumber() * 10n ** BigInt(diff * -1);
          ╵                                    ~~~

Found a solution here:  https://github.com/vitejs/vite/issues/6985#issuecomment-1044375490

You don't need to use esnext, es2020 should be fine!


Permit overriding the projection matrix passed to shaders without affecting culling logic.

Implements the functionality godotengine/godot-proposals#4932 but takes a slightly different approach.
This provides the option to provide a Projection matrix which will be used only for graphics operations, while keeping existing frustum/perspective/orthogonal modes for CPU-side camera logic such as culling.
When this PR is used with the frustum camera projection mode, we were able to build a functional screen-space mirror which efficiently culls geometry (on the CPU) outside of the visible view frustum of the mirror. You can see our addon here https://github.com/V-Sekai/avatar_vr_demo/tree/master/addons/V-Sekai.xr-mirror and clone this repository to try the demo for yourself. Currently, the demo requires XR due to the XR apis for accessing the camera projection being easier to use than traditional viewport APIs (we weren't able to figure out how to access the non-XR viewport reliably from script, but it does work if configured manually)
Status quo (without this PR) strictly using set_frustum projection mode without override_projection. Notice the aliasing artifacts that are caused by rendering from the frustum perspective and then transforming the mirror to screen coordinates. Notice the aliasing artifacts on the back wall due to sampling. These are more noticeable as the player walks around.

With this PR, using a screenspace oblique frustum traditionally used for planar reflections in override_projection, while using the aforementioned set_frustum projection on the Camera node itself. Everything in the reflection looks pixel-perfect.

When I find time, I can attempt to summarize the differences in implementation into a counter-proposal, as well as why I think this is a preferable implementation.
The main difference between this and that proposal 4932 is that this implementation provides the ability to have fine-grained control over geometry culling. For example, as you can see in the attached screenshot, if I extend the mirror mesh (shown with noise dithering outside of the pink mirror border), all geometry instances outside of the frustum are not rendered, despite the matrix set as the override_projection having a full-screen frustum (as this is a screenspace mirror)

I walked slightly to the right in this screenshot such that the lamp and right hand were no longer visible in the reflection. Now, you can see here only the left hand is visible in the reflection, and the right hand, lamp, doors, windows and shelves are being frustum-culled. This is exactly what we want.

See also:

https://github.com/godotengine/godot/pull/84454

@aaronfranke You make be interested in mirrors in The Mirror.

Appreciate this PR, I was able to adapt your set_oblique_near_plane function with the camera.set_override_projection function to make properly occluded portals for my game:
https://github.com/majikayogames/portal_demo
However I'm wondering if we need the projection override matrix displayed in the inspector? It may confuse new users.

I think this PR more likely to make it in 4.3 if we could have some function only on the RenderingServer to override a camera's projection matrix, hidden from view unless you need it.

Tested locally (rebased on top of master https://github.com/godotengine/godot/commit/fa48a51183567934984b381ad8ec281cb24d66ba), it works as expected.
However, there's no easy way to switch to a custom projection while keeping the existing perspective/orthogonal/frustum mode as a base. This makes configuring it in the editor significantly harder compared to https://github.com/godotengine/godot/pull/84454.
Also, the projection override takes up a lot of space in the inspector when you don't need to override it. Therefore, I prefer the inspector design found in https://github.com/godotengine/godot/pull/84454.
It has the same rendering issues as https://github.com/godotengine/godot/pull/84454 which shows that the issue is with the rendering code, as opposed to the custom projection code. You can use the project I linked in https://github.com/godotengine/godot/pull/84454#issuecomment-1915171937 for testing purposes.

The reason I preferred this approach is because I wanted to provide a different culling frustum compared to the visual frustum.

The main difference between this and that proposal 4932 is that this implementation provides the ability to have fine-grained control over geometry culling. For example, as you can see in the attached screenshot, if I extend the mirror mesh (shown with noise dithering outside of the pink mirror border), all geometry instances outside of the frustum are not rendered, despite the matrix set as the override_projection having a full-screen frustum (as this is a screenspace mirror)

While you could argue that the above is only an optimization for a specific usecase, it did make it easier for me to verify the correctness of my planar reflection.
I see your point that if culling uses the correct frustum calculated from the projection matrix, there is no advantage to restricting the majority of the graphics code to a specific matrix. If I understand the advantages of #84454, it is that users may want to set a custom projection matrix and not explicitly calculate the frustum bounds that match the projection.
Here is my worry: Unity also has an API to allow an arbitrary projection matrix similar to #84454, though Unity's culling code is not robust and is known to break in some cases when the projection matrix is explicitly set. In fact, in the built-in pipeline at least, using a custom projection is explicitly incompatible with deferred rendering.
And it's not just Unity. Even Unreal 5 only has perspective and orthographic modes, and if you want to override the projection matrix, it looks a lot like this PR: it doesn't affect culling and is only visual. The difference is Unreal does not have a "Frustum" mode which means the only way to implement planar portals is to set a near clip plane explicitly.
So my question is: is opening up the API to allow arbitrary culling projection matrices going to work correctly in all cases? Is there no special case needed in Godot's renderer for ortho / perspective / frustum in occlusion culling, for example?

If this is still being considered it will need an update to take into account the Z buffer being reversed since 4.3. Breaks compatibility renderer completely right now and everything renders depth sorted backwards without this line:
https://github.com/majikayogames/godot/commit/2f61a2482800c0548260797a2432d5f4e1975da0


Have problem to export project to macos

Godot version
3.3.2.stable.mono
System information
macOS Big Sur 11.4
Issue description
I use mono version to export project to macos. When I run the export file (project.app), it crash immediately.
I can run project in Godot IDE(Click "Play"). I also can export project to android/windows and run it without crash.
Only macos export project will cause crash.
Steps to reproduce

Create launch.tscn.
Attach launch.cs.
Config main scene as launch.tscn.
Export to Mac OSX. (Choose "Export Project" to create .dmg)
Open dmg file and run app.
Crash.

Notice: If I don't create .cs file. The export app will not crash.
Here are crash report. Hope it help.
Mono: Log file is: '/Users/denny/Library/Application Support/Godot/app_userdata/mono-crash/mono/mono_logs/2021-07-12_01.41.55_99563.log'
handle_crash: Program crashed with signal 11
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] 1   libsystem_platform.dylib            0x00007fff205afd7d _sigtramp + 29
[2] 2   ???                                 0x0000000000000000 0x0 + 0
[3] 3   mono-crash                          0x0000000106d3a39c mono-crash + 988060
[4] 4   mono-crash                          0x0000000106cf5507 mono-crash + 705799
[5] 5   mono-crash                          0x0000000106d3345a mono-crash + 959578
[6] 6   mono-crash                          0x0000000106c9512e mono-crash + 311598
[7] Object* ClassDB::creator<_GodotSharp>()
[8] Object* ClassDB::creator<MobileVRInterface>()
[9] Object* ClassDB::creator<Expression>()
[10] DirAccess* DirAccess::_create_builtin<DirAccessOSX>()
[11] DirAccess* DirAccess::_create_builtin<DirAccessOSX>()
[12] DirAccess* DirAccess::_create_builtin<DirAccessOSX>()
[13] 13  libdyld.dylib                       0x00007fff20585f5d start + 1
-- END OF BACKTRACE --
[1]    99563 abort      /Volumes/mono-crash/mono-crash.app/Contents/MacOS/mono-crash
Saving session...completed.

Minimal reproduction project
https://github.com/cdfq152313/mono-crash

Are you using an x86-based Mac or an ARM-based Mac?

When I run the export file (project.app), it crash immediately.
I can run project in Godot IDE(Click "Play").

Do you have "JIT", "Unsigned executable memory" and "DYLD environment variables entitlements" selected in the export dialog?

@bruvzg Thank you!!! I can run it now.
BTW, Is there any document mention it? I would check if I miss other thing 😭.

BTW, Is there any document mention it? I would check if I miss other thing 😭.

It's not documented. In the 4.x and 3.4 these entitlements are automatically enabled.

It's not documented. In the 4.x and 3.4 these entitlements are automatically enabled.
I see. Anyway, thank you so much. You save me a lot of time.

This should be fixed by #50317 (required entitlements are always enabled on in the Mono builds).


Bug:Define MyCustomFormatter to serialize byte[] problem.

Serialize the type (byte[])  from a CustomFormatter .The result is not what i wanted.
The code like this:
Internal class MyCustomFormatter:IFormatter<T>
{
        IFormatter<byte[]> bytesFormat;

         public void Serialize(ref byte[] buffer, ref int offse,T obj)
        {
                bytesFormat.Serialize(ref buffer, ref offset, obj.bytesFormat);
         }
}

var config = new SerializeConfig();
config.ConfigType<int>().CustomFormatter = new  MyCustomFormatter();
var ceras = new CerasSerializer(config);
var testObj  = new TestObj()
{
     Data =  System.Text.Encoding.UTF8.GetBytes(DateTimeOffset.Now.ToString());
 };

The results :
new CerasSerializer().Serialize(testObj)
Such as = 32 30 31 39 2f 31 30 2f 31 34 20 31 38 3a 35 38 3a 34 36 20 2b 30 38 3a 30 30
ceras.Serialize(testobj)   = 32 30 31 39 2f 31 30 2f 31 34 20 31 38 3a 35 38 3a 34 36 20 2b 30 38 3a 30 30  00 00 00 00 00 00 00 00 00 00 00  ……
This wasn't what a wanted to be.
How about to wirte the  MyCustomFormatter?(I must write like that because i need to config with AotMod )
Or how to Serialize  " byte[]"  in  IFormatter<byte[]> ?

If this is about the zero bytes at the end, then take a look at this method instead:
https://github.com/rikimaru0345/Ceras/blob/master/src/Ceras/CerasSerializer.cs#L384
It's much more efficient to serialize into a large buffer and then return the length.
The method I linked returns an array that has been cut to the right size though.
Feel free to reopen if needed :)


more structured quick start

I've been trying to get django-select2 to work in my setup, but there's something missing and I don't quite understand what it is.  in an attempt to understand things more clearly, I've written a less quick quick start, which was very much 'kort door de bocht' (that's Dutch, but the English "blunt" doesn't quite give the impression).
first of all, I've put back the missing sphinx Makefile.
I've added an Assumptions section before the Installation instructions.
next, I've given three examples, the first one works fine, the second almost, the third I've not completed.  I think that the three of them are useful, for they exemplify three different situations.
I've removed the alternative style, defining fields directly in the class: I have not managed to get this to work at all.
I will open an issue about "the second almost" works.

Codecov Report

Merging #542 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #542   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           2      2
  Lines           8      8
=====================================
  Hits            8      8

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 2bb6f3a...d77d0b3. Read the comment docs.

Codecov Report

Merging #542 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #542   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           2      2
  Lines           8      8
=====================================
  Hits            8      8

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 2bb6f3a...d77d0b3. Read the comment docs.


Use agile REST API

The current URL doesn't allow to access boards and sprints; the Jira Agile Server REST API uses the path /rest/agile/latest.
This patch update the REST API path to the one in the documentation.

@expobrain wanted to give you a heads up I just published 0.2.2 with these changes included


Update: Athena AI Chat - Frontend & Backend, LLM Integration.

Description

Core Chat Interface:

Implemented responsive chat layout with message bubbles
Added user address display with HoverCard hover functionality
Integrated AI/User avatars with Robohash generation
Added typing animation for AI responses using TypingAnimation component
Added highlight (🏆) for winning messages
Added top loader for API request feedback

Wallet & Blockchain Integration:

Implemented ConnectWalletBtn with Shimmer effect
Added wallet connection state management
Integrated prize pool display with NumberTicker animation
Smart contract interaction for buy-in (0.01 ETH per attempt)
Transaction state handling (pending/loading/success)
Real-time balance updates using wagmi hooks

Sidebar & Information Display:

Responsive sidebar with prize pool, about, rules sections
Live prize pool updates using blockchain data
Dynamic token symbol and decimal handling
Proper formatting for cryptocurrency values

State & Data Management:

Message synchronization with MongoDB
Win state persistence and detection
User session handling with wallet connection
Real-time prize pool updates
Message history retrieval and display

API & LLM Integration:

POST/GET endpoints for message handling
LLM response processing with decision making
Message persistence in MongoDB
Error handling and loading states
Proper typing animation during AI response

UI Components & Styling:

Custom Button component with loading states
Responsive Card layouts
Custom ScrollArea for chat history
Toast notifications for actions
AddressCardHover for wallet display
Input component with proper states

Security & Error Handling:

Message hashing before blockchain submission
Proper error boundaries and fallbacks
Loading states and user feedback
Input validation and sanitization

Environment & Configuration:

Smart contract addresses
API endpoints
Database configuration
Wallet provider setup
Network configurations

Animations & User Feedback:

Typing animation for AI responses
Loading spinners for transactions
Smooth scroll behavior
Hover effects and transitions
Toast notifications

Optimization & Performance:

Efficient database queries
Proper component mounting/unmounting
Optimistic UI updates
Responsive design across devices
Proper error handling

The system creates a seamless experience where users can:

Connect their wallet
View current prize pool
Send messages with ETH buy-in
Receive AI responses
Track their win status
Copy wallet addresses
View transaction status
See chat history

All components work together to provide a smooth, interactive experience while handling complex blockchain transactions, AI responses, and data persistence.
Reference issue

#297

Category

Rise of the machines

I have updated the buidl and source code links . Thank you!
Source code : https://github.com/Lou1sVuong/athena-ai
Buidl on Dorahack : https://dorahacks.io/buidl/20628

Approved for 1900 KAIA with 50% penalty = 950 KAIA
get active on X to claim the 50% penalty

closing


sample configs of img2img

Below is my code, the output is not good, I wander if the prompt is suitable. Could you give me some sample configs?
from diffusers import AltDiffusionPipeline, EulerDiscreteScheduler
from PIL import Image
from diffusers import AltDiffusionImg2ImgPipeline

if __name__ == '__main__':
    text2img = AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion-m9")
    img2img = AltDiffusionImg2ImgPipeline(**text2img.components)
    img2img = img2img.to("cuda")

    img = Image.open('input/高圆圆.jpeg')
    out_imgs = img2img(prompt="((masterpiece)), (((best quality))), ((ultra-detailed)), ((illustration)), girl, genshin impact,vision",\
                       init_image=img, strength=0.7,\
                       guidance_scale=30,\
                       negative_prompt='nsfw, longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality').images[0]
    out_imgs.save(f'output.png')

We are now trying to provide some good cases

@BAAI-OpenPlatform Thanks, waiting onling.

I try to greed search the parameters as follows,
for i in range(80,100):
    for j in range(15,31):
        out_imgs = img2img(prompt="((masterpiece)), (((beszt quality))), ((ultra-detailed)), ((illustration)), girl, genshin impact,vision",\
                        init_image=img, strength=i*0.01,
                        guidance_scale=j,
                        seed = 82738472,
                        negative_prompt='nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry').images[0]
        out_imgs.save(f'gyy/output_'+str(i)+'_'+str(j)+'.png')

The initial image is

And some good cases：

@marscrazy 666, looks good, at least the output is a face :)


webhooks/teamcity: Update docs and ignore non-generic payloads.

@timabbott: FYI :)

@rishig can you review the first/docs commit?  You have a lot more recent practice with styling for that.

@timabbott: Updated! :)

Left two optional comments, but could also be merged as is. Thanks @eeshangarg!

@rishig: Thanks for the review! I just updated this after addressing your feedback.
@timabbott: FYI :)

@timabbott: Just rebased this, this has been ready for review for a while now! Thanks! :)

Looks great, merged, thanks @eeshangarg!


Jk fix logger 🚑 😜

Description
make logger not log if logger steps is 0
Checklist

[ ] Is this PR focused on a single feature without the possibility of being divided into smaller PRs?
[ ] Are all variables set with logical defaults that are backward compatible?
[ ] I attached link to neptune if it was necessary
[ ] Have you successfully executed the linter and tests?
[ ] Are all functions concise and don't require splitting?
[ ] Is there documentation for arguments and complex logic?
[ ] Are there no temporary solutions in the code? Should a task be added to Trello to refine the code?
[ ] Are all functions placed in appropriate files?
[ ] Is the PR name meaningful and descriptive?
[ ] Is PR description provided, or unnecessary?

Other questions:

[ ] If I made changes to the requirements or anything related to the Singularity image I did generate new image and upload a new image to the clusters
[ ] If this change is significant enough I notified all individuals working with this repository (@channel in slack channel)
[ ] If there is a need for a second reviewer I requested additional review

Reviewer's checklist:

[ ] Does the Neptune link work and does it actually compare the situation before and after the PR?
[ ] Do I understand the code?
[ ] Do I think another reviewer is not needed or I commented that this PR need another reviewer?

it's a strong what is going on here from me.

code does not reflect description

@kuba-krj should I mark it as stale or something?


Hotspot text is forced

In tour hotspots, if "text" attribute is not used, no tooltip text should be displayed.
Instead, empty background graphics are displayed.

Thanks for reporting this. I just fixed it.


Converts the edit function into separate pieces

In Danger Swift, in order to use the edit function I must edit the Xcodeproject to add the runtime library  to the project.
To do this: I need to separate out the work of "setup the xcodeproj" and "start the watcher"
In doing so, I separated the generation of an xcodeproj from deriving the path of the project ( and offered it as an ignorable return value from the setup of an edit project )

OK, this is going in - I need to change all the access controls so Danger can use marathon core. I'd rather that be a separate PR.


[Samples] Updated the exception handling middleware sample to handle multiple output binding case

Updated the exception handling middleware sample to handle multiple output binding case.

/check-enforcer evaluate


Adding indicators and listgroup atoms

Adding a first model of the indicators and listgroup atoms

Remove package log usen yarn instead


How to retrieve list of primary keys after batch insert?

Hello! Thanks for all the work you have put into moor, I am really enjoying it.
I have an association between some entities in my tables that are many-to-one. When I insert something from the "one" side of that table relationship, the model I bring into my use case also contains a list of entities that correspond to the "many" table.
I have been using a batch insert like so for the "many" insert:
Future<Either<Failure, Null>> insertWorkouts(
      {List<WorkoutEntity> workoutEntities, int regimenId}) async {
    final companions = workoutEntities
        .map((workout) => WorkoutsCompanion(
              regimenId: Value(regimenId),
              dayNumber: Value(workout.ordinalDayOfWeekNumber),
              weekNumber: Value(workout.ordinalWeekNumber),
              description: Value(workout.description),
              startTime: Value(workout.time),
              completionStatus: Value(workout.completionStatus),
            ))
        .toList();
    await batch((batch) {
      batch.insertAll(workouts, companions);
    }).asEither();
  }

I would like to return a list of primary keys (int, preferably in insertion order) from this method, but I can't figure out how to do so. Can someone please advise?

Was looking for this as well the other day.

You could perform the bulk insert in a transaction and use SELECT last_insert_rowid() to figure out the rowids.
If your primary key is AUTOINCREMENT so that rowids aren't re-used, you could do List.generate(companions.length, (i) => lastInsertId-i).
Otherwise you could do something like SELECT rowid FROM workouts WHERE rowid > (SELECT last_insert_rowid() - ${companions.length}).

You could perform the bulk insert in a transaction and use SELECT last_insert_rowid() to figure out the rowids.
If your primary key is AUTOINCREMENT so that rowids aren't re-used, you could do List.generate(companions.length, (i) => lastInsertId-i).
Otherwise you could do something like SELECT rowid FROM workouts WHERE rowid > (SELECT last_insert_rowid() - ${companions.length}).

Thanks, this is quite helpful.

@kuhnroyal and others, I decided to create a small example here in this issue for posterity, and to help future searchers:
Future<List<int>> bulkInsertAndReturnIds(List<EntitiesCompanion> companions) async {
    final lastRowId = await transaction(() async {
        await batch((batch) {
          batch.insertAll(entities, companions);
        });
        return (await customSelect(
          "SELECT last_insert_rowid()",
          readsFrom: {entities},
        ).getSingle())
        .data // QueryRow map, only key-value pair is {last_insert_rowid: {rowId}}
        .values // [rowId]
        .first as int; // rowId
	});
    return List.generate(companions.length, (i) => lastRowId - i);
}

Thanks for the script, I faced the same problem.
I want to mention that the generated list needs to be reversed to respect the same order as the original companions' list. Or the generate method could just be
(i) => lastRowId - companions.length + i

This will be added to the docs and potentially the Manager API

I think it could also be an interesting addition to the general batch API, although it would require some level of indirection because we can't run these queries synchronously. To spitball some ideas here:
late InsertGroup myInsert:
final batchResult = await batch((b) {
  myInsert = b.insertAll(entiries, companions);
});

final idRange = batchResult.insertIds(myInsert);

For the manager API, we could have bulkCreate return List<int>? instead of null
It would return null if we have no way of getting the PKs.


Clear buffers to remove garbage

This fixes leftover garbage in the audio buffer before runtime initialization

Hey @pauliusuza sorry about the delay on this one. I've just made the suggested changes and pushed the fix in f09f136c31a84332082c88ee2fb919d332a4e368, so I'm going to go ahead and close this. Thank you!


{Core} Finish the development of query-examples

Description

This is the second and the final part of the development of query-examples. az command will read config file, and add query-examples parameter to commands that in the allow-list.  Commands that end with list and show are in the allow-list by default. You can turn off this feature by setting allow-list to empty using az config set query.allow_list="".
Other features:

Recommend query examples based on your positional arguments.
Recommend commonly used JMESPath syntax.
Config the number of examples via az config or the config file.

Testing Guide

Test the JSON TreeBuilder. More tests will be commited later.
History Notes

{Core} Add allow-list to control the scope of query-example.

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

query-examples

Please use more meaningful title instead of "{Core} Finish the development of query-examples".
Also, let's add some manual test guides with input and output.


[Feature] Generating IDs enum

What about using enum dropdown in ZenjectBinding component for Identifier field?
To create new ID user will open IDs inspector (something like Tag or Layer inspector in Unity). After adding (removing/editing) ID Zenject will regenerate enum file with name somethig like "ZenIDs.cs" with all IDs in that list.
And then it will be much easy and less error prone to use ZenjectBinding Identifier field (without "magic strings").
[Inject(Id = ZenIDs.SomeId)]
private Foo _foo;

You can actually use your own enums with identifiers.  I do this sometimes so that I can do a similar thing in the inject attribute (eg. [Inject(Id = ZenIDs.SomeId)]).   This is because identifiers can be any type and not just strings.
For ZenjectBinding however, I think we have to use strings.  I don't know how we could allow other types there.
Also, automatically generating a master enum for all identifiers would be restrictive of a design.  Better to make zenject less intrusive with its design choices


How to serialise custom types?

Hi there!
I am new to scylladb, and was trying to use it to make a web app. I had a custom type AccessLevel that was just an enum that i wanted to store as an i32 in the db. I can just .into() it to an i32 (since i implemented Into for this enum), but, i was potentially going to store it many times, i did not want to ,into() to i32 every time, so I decided to impl Value for it, but for some reason, despite it writing 4 bytes to the buffer, it errors with "truncated frame: expected 2 bytes, length is 1". I suspect this is because the values im working with are very small (as of right now, only 1-3 items in the enum).
How can i serialise it so it works properly? The code i tried:
impl scylla::frame::value::Value for AccessLevel {
    fn serialize(&self, buf: &mut Vec<u8>) -> Result<(), ValueTooBig> {
        // TODO: Fix access level to scylla cql value serialization
        log!("Buffer size at start: {}", buf.len());
        let as_i32: i32 = (*self).into();
        for byte in as_i32.to_be_bytes() {
            buf.push(byte);
            log!("Buffer size after pushing {:x}: {}", byte, buf.len());
        }
        Ok(())
    }
}

The output:
LOG:   Buffer size at start: 134
LOG:   Buffer size after pushing 0: 135
LOG:   Buffer size after pushing 0: 136
LOG:   Buffer size after pushing 0: 137
LOG:   Buffer size after pushing 1: 138
thread 'actix-server worker 0' panicked at 'called `Result::unwrap()` on an `Err` value: DbError(ProtocolError, "truncated frame: expected 2 bytes, length is 1")', src\entities\users\user.rs:54:115

Does it require me to push the size or something at the very start too? Me pushing a byte with value 4 before pushing my bytes didnt work either (with a different error truncated frame: expected 67108864 bytes, length is 3)
EDIT:
I tried pushing the length of (4u8) after the for loop of all the bytes, and got the error Exception while binding column access_level: marshaling error: Validation failed for type org.apache.cassandra.db.marshal.Int32Type: got 1 bytes. Though looks like no matter what value for what im assuming as length that i push, it seems like its the same result, so i guess all im doing is fulfilling the truncated frame problem without actually addressing the problem??
Sorry about asking such questions in the issues tab. I would've loved to join the slack and ask there, but I am a student and have none of the email domains that are allowed into the slack

This looks like a Rust driver issue. Shall I move the issue to that repo perhaps?

If you want to serialize your enum exactly as you would serialize an i32, you can just use the impl Value for i32:
// Didn't try to compile it, but if it doesn't compile then at least should present the idea
impl scylla::frame::value::Value for AccessLevel {
    fn serialize(&self, buf: &mut Vec<u8>) -> Result<(), ValueTooBig> {
        let as_i32: i32 = (*self).into();
        as_i32.serialize(buf)
    }
}

Does it require me to push the size or something at the very start too?

The Value trait requires the pushed data to be a [value], according to the CQL protocol format. It needs to be prepended with a big-endian i32 indicating the length of the data that follows it. In your case, you should prepend it with [0u8, 0u8, 0u8, 4u8] - but you don't need to care for such low-level details if you can delegate to an existing implementation.

As you can see in the definition of Value, it requires you to serialize your value to the buffer as [bytes]. In the CQL specification https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v4.spec you can see that [bytes] is:

[bytes] is: A [int] n, followed by n bytes if n >= 0. If n < 0, no byte should follow and the value represented is null.
[int] is: A 4 bytes integer
In the section 6: As with the rest of the native protocol, all encodings are big-endian.

So you first need to push 4-byte length of the buffer, in big endian, and then the contents.
We are currently working on serialization refactor, next version of the driver will  include it. With the new traits it will be very hard / impossible to make such mistake because provided builders will take care of serializing length.

Hi,
Yes thank you for your response. I just tested adding 3 more bytes of 0s to the length before the 4, looks like it worked. My code:
impl scylla::frame::value::Value for AccessLevel {
    fn serialize(&self, buf: &mut Vec<u8>) -> Result<(), ValueTooBig> {
        // TODO: Fix access level to scylla cql value serialization=

        log!("Buffer size at start: {}", buf.len());
        let as_i32: i32 = (*self).into();
        buf.push(0u8);
        buf.push(0u8);
        buf.push(0u8);
        buf.push(4u8);
        for byte in as_i32.to_be_bytes() {
            buf.push(byte);
            log!("Buffer size after pushing {:x}: {}", byte, buf.len());
        }
}

(The code above was just for testing purposes)

It works perfectly! Thank you very much


heart beat

HikariCP version: 2.7.9
JDK version     : 1.8.0_111
Database        : DB2
Driver version  : db2jcc4:4.19.26
Hi my app is a Springboot 2 app and i am using HikariCP. Some how my app is running validation query (SELECT 1 FROM SYSIBM.SYSDUMMY1). Though i don't have this validation query in my application's setting for HikariCP but still every after 2 or 3 sec its executing. Is there way to just disable this test or heart beat check query or change the duration of this query so like we execute this query after 5 mins???

Thanks

I believe that's the default validation query for db2. I believe you can change that with the following configuration. As far as I know I don't think you can really control the frequency of this execution. My suggestion would be to drop the # of connections. I would like my thinking validated as well but I believe if your connection pool size is too large, the connections are basically just sitting there validating themselves. So, do
spring.datasource.hikari.maxLifetime=less_than_the_max_connection_time_on_db
spring.datasource.hikari.minimumIdle=0
spring.datasource.hikari.maximumPoolSize=much_smaller_than_you_currently_have
If you still want to explicitly set the query you can use the following but as described below. It is definitely not recommended.
🔠connectionTestQuery
If your driver supports JDBC4 we strongly recommend not setting this property. This is for "legacy" drivers that do not support the JDBC4 Connection.isValid() API. This is the query that will be executed just before a connection is given to you from the pool to validate that the connection to the database is still alive. Again, try running the pool without this property, HikariCP will log an error if your driver is not JDBC4 compliant to let you know. Default: none


Error on checking out backend environment

Amplify version : 4.44.0
amplify env checkout staging
✔ Initialized provider successfully.
✖ There was an error initializing your environment.
Cannot read property 'join' of undefined
TypeError: Cannot read property 'join' of undefined
at getCognitoConfig (/home/ec2-user/.nvm/versions/node/v10.20.1/lib/node_modules/@aws-amplify/cli/node_modules/amplify-frontend-javascript/lib/frontend-config-creator.js:257:48)
at Object.keys.forEach.service (/home/ec2-user/.nvm/versions/node/v10.20.1/lib/node_modules/@aws-amplify/cli/node_modules/amplify-frontend-javascript/lib/frontend-config-creator.js:115:37)
at Array.forEach ()
at getAWSExportsObject (/home/ec2-user/.nvm/versions/node/v10.20.1/lib/node_modules/@aws-amplify/cli/node_modules/amplify-frontend-javascript/lib/frontend-config-creator.js:112:39)
at createAWSExports (/home/ec2-user/.nvm/versions/node/v10.20.1/lib/node_modules/@aws-amplify/cli/node_modules/amplify-frontend-javascript/lib/frontend-config-creator.js:79:25)
at Object.createFrontendConfigs (/home/ec2-user/.nvm/versions/node/v10.20.1/lib/node_modules/@aws-amplify/cli/node_modules/amplify-frontend-javascript/index.js:32:16)
at AmplifyToolkit.onCategoryOutputsChange [as _onCategoryOutputsChange] (/home/ec2-user/.nvm/versions/node/v10.20.1/lib/node_modules/@aws-amplify/cli/src/extensions/amplify-helpers/on-category-outputs-change.ts:20:33)
at Object.initializeEnv (/home/ec2-user/.nvm/versions/node/v10.20.1/lib/node_modules/@aws-amplify/cli/src/initialize-env.ts:100:27)
at process._tickCallback (internal/process/next_tick.js:68:7)

@kadiyala9999
Could you provide a few more details that lead up to this event?

Including the resources you have created in your project
If possible can you include any relevant log output under ~/.amplify/logs/amplify-cli-<issue-date>.log

I modified the oAuthMetadata in parameters.json under auth category which was pointing the logout and redirect URLS to master when I was on test environment and did "amplify push". From there I am getting an error while checking out the environment. I was able to do "amplify push" locally and "amplify status" shows correct environment even after the error. But when we try to build on amplify console, it fails with the error below.
Starting phase: build
                             # Executing command: amplifyPush --simple

2021-02-22T17:39:30.008Z [INFO]: Amplify AppID found: d25ut3u9pcq9sv. Amplify App name is: vcms-clips
2021-02-22T17:39:30.066Z [INFO]: Backend environment staging found in Amplify Console app: vcms-clips
2021-02-22T17:39:31.673Z [INFO]: Failed to pull the backend.
2021-02-22T17:39:31.675Z [INFO]: Cannot read property 'join' of undefined
2021-02-22T17:39:31.677Z [INFO]: TypeError: Cannot read property 'join' of undefined
    at getCognitoConfig (/root/.nvm/versions/node/v12.19.0/lib/node_modules/@aws-amplify/cli/node_modules/amplify-frontend-javascript/lib/frontend-config-creator.js:257:48)
    at /root/.nvm/versions/node/v12.19.0/lib/node_modules/@aws-amplify/cli/node_modules/amplify-frontend-javascript/lib/frontend-config-creator.js:115:37
    at Array.forEach ()
    at getAWSExportsObject (/root/.nvm/versions/node/v12.19.0/lib/node_modules/@aws-amplify/cli/node_modules/amplify-frontend-javascript/lib/frontend-config-creator.js:112:39)
    at createAWSExports (/root/.nvm/versions/node/v12.19.0/lib/node_modules/@aws-amplify/cli/node_modules/amplify-frontend-javascript/lib/frontend-config-creator.js:79:25)
    at Object.createFrontendConfigs (/root/.nvm/versions/node/v12.19.0/lib/node_modules/@aws-amplify/cli/node_modules/amplify-frontend-javascript/index.js:32:16)
    at AmplifyToolkit.onCategoryOutputsChange [as _onCategoryOutputsChange] (/root/.nvm/versions/node/v12.19.0/lib/node_modules/@aws-amplify/cli/src/extensions/amplify-helpers/on-category-outputs-change.ts:20:33)
    at Object.generateFiles (/root/.nvm/versions/node/v12.19.0/lib/node_modules/@aws-amplify/cli/src/attach-backend-steps/a40-generateFiles.ts:44:25)
    at Object.attachBackend (/root/.nvm/versions/node/v12.19.0/lib/node_modules/@aws-amplify/cli/src/attach-backend.ts:30:5)
    at Object.run (/root/.nvm/versions/node/v12.19.0/lib/node_modules/@aws-amplify/cli/src/commands/pull.ts:57:5)
2021-02-22T17:39:31.694Z [ERROR]: !!! Build failed
2021-02-22T17:39:31.694Z [ERROR]: !!! Non-Zero Exit Code detected
2021-02-22T17:39:31.694Z [INFO]: # Starting environment caching...
2021-02-22T17:39:31.695Z [INFO]: # Uploading environment cache artifact...
2021-02-22T17:39:31.790Z [INFO]: # Environment caching completed
Terminating logging...
{
"identityPoolName": "vcmsclips",
"allowUnauthenticatedIdentities": false,
"resourceNameTruncated": "vcmsclxxxx",
"userPoolName": "vcmsclips",
"autoVerifiedAttributes": [
"email"
],
"mfaConfiguration": "OFF",
"mfaTypes": [
"SMS Text Message"
],
"smsAuthenticationMessage": "Your authentication code is {####}",
"smsVerificationMessage": "Your verification code is {####}",
"emailVerificationSubject": "Your verification code",
"emailVerificationMessage": "Your verification code is {####}",
"defaultPasswordPolicy": false,
"passwordPolicyMinLength": 8,
"passwordPolicyCharacters": [],
"requiredAttributes": [],
"userpoolClientGenerateSecret": true,
"userpoolClientRefreshTokenValidity": 30,
"userpoolClientWriteAttributes": [
"email"
],
"userpoolClientReadAttributes": [
"email"
],
"userpoolClientLambdaRole": "vcmsclxxxxxx_userpoolclient_lambda_role",
"userpoolClientSetAttributes": false,
"useDefault": "manual",
"authSelections": "identityPoolAndUserPool",
"resourceName": "vcmsclips",
"thirdPartyAuth": false,
"usernameAttributes": [
"email"
],
"userPoolGroups": false,
"adminQueries": false,
"triggers": "{}",
"hostedUI": true,
"userPoolGroupList": [],
"authRoleArn": {
"Fn::GetAtt": [
"AuthRole",
"Arn"
]
},
"unauthRoleArn": {
"Fn::GetAtt": [
"UnauthRole",
"Arn"
]
},
"parentStack": {
"Ref": "AWS::StackId"
},
"permissions": [],
"dependsOn": [],
"hostedUIDomainName": "clips-xxxx",
"authProvidersUserPool": [],
"hostedUIProviderMeta": "[]",
"oAuthMetadata": "{"AllowedOAuthFlows":["code"],"AllowedOAuthScopes":["phone","email","openid","profile","aws.cognito.signin.user.admin"],"CallbackURLs":["https://clips.xxxxx.com/\"],\"LogoutURLs\":[\"https://auth.clips.xxxxx.com/login?response_type=code&client_id=xxxxxxxxxxxxxxxxx&redirect_uri=https://clips.xxxxxxx.com/\"]}"
}

It looks like your amplify-meta.json file has gotten out of sync with the changes you made. Make sure that the following is present in that file as well (note that the key in this file is "OAuthMetadata" whereas the key in the parameters.json file is "oAuthMetadata"
{
  "auth": {
    "<auth resource name>": {
      "output": {
        "OAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://clips.xxxxx.com/\"],\"LogoutURLs\":[\"https://auth.clips.xxxxx.com/login?response_type=code&client_id=xxxxxxxxxxxxxxxxx&redirect_uri=https://clips.xxxxxxx.com/\"]}"
      }
    }
  }
}

Did you manually modify the files or was there a CLI flow that led to the files being in this state?

@edwardfoyle Yes. It looks like the file was out of sync. I was on "test" environment and the parameters.json and amplify-meta.json has oAuthMetaData pointing to production logout and redirect URL's. I am not sure how it went to this state but when I observed it's pointing to wrong URL's, I did change to correct one and from there I am seeing this issue.

@kadiyala9999 Just to confirm, you are still seeing this issue after updating both the amplify-meta.json file and parameters.json file in the auth category?

@edwardfoyle Yes. I am still seeing the same error.

@kadiyala9999 In that case it seems like it's probably an issue when the amplify-meta.json file in your #current-cloud-backend folder. After running amplify env checkout staging can you send a zip file of the following files to<EMAIL_ADDRESS>#current-cloud-backend
  amplify-meta.json
  auth
    <auth resource name>
      parameters.json
backend
  amplify-meta.json
  auth
    <auth resource name>
      parameters.json

@edwardfoyle Sent.

@edwardfoyle Any update on this.

Hi @kadiyala9999 sorry for the delay. I took a look at the files you sent and it looks like the issue is you do not have any "LogoutURLs" defined in the OAuthMetadata. You can add them by running amplify update auth, select Walkthrough all the auth configuration then when you get to Do you want to use an OAuth flow select Yes and you can enter sign-in and sign-out redirect URLs

@edwardfoyle It's working now. Appreciate your help!


--metadata-from-title not working as it should

I'm trying to create an semi-automated download/tagging script using Youtube-dl, and almost everyhing is working fine, expect the tagging.
I mean, with m4a and mp3 files the script works fine, but with opus/ogg the "--metadata-from-title" doesn't work as it should, only tag the title but not the artist.
This is my script

youtube-dl -f "formatnumber" "youtubevideolink" -x --add-metadata --metadata-from-title "%%(artist)s - %%(title)s" -o "%%(title)s.%%(ext)s" -q

an example using --verbose output:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-f', u'171', u'https://www.youtube.com/watch?v=ouDFGE-P_iQ', u'-x', u'--add-metadata', u'--metadata-from-title', u'%(artist)s - %(title)s', u'-o', u'%(title)s.%(ext)s', u'-q', u'--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2<IP_ADDRESS>
[debug] Python version 2.7.8 - Windows-8-6.2.9200
[debug] exe versions: avconv v12_dev0-1719-g9469370, avprobe v12_dev0-1719-g9469370
[debug] Proxy map: {}
[debug] Invoking downloader on 'https://r3---sn-b8u-bg0l.googlevideo.com/videoplayback?id=a2e0c5184f8ffe24&itag=171&source=youtube&requiressl=yes&mm=31&mn=sn-b8u-bg0l&pl=20&mv=m&ms=au&ratebypass=yes&mime=audio/webm&gir=yes&clen=5152208&lmt=1400369658397240&dur=338.011&key=dg_yt0&mt=1439781942&upn=p2_kzRODKCY&signature=533CEA15D3950636AFB6F328F96463F232603AC4.7CEFF83EC84FD7E3DDB235F87E17B95DB427C7CA&sver=3&fexp=9406125,9408490,9408623,9408710,9409069,9415172,9415365,9415485,9415868,9416023,9416126,9417487,9417707,9418059,9418153,9418203,9418505,9419243&ip=<IP_ADDRESS>&ipbits=0&expire=1439803591&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,mn,pl,mv,ms,ratebypass,mime,gir,clen,lmt,dur'

As you can see, the script runs without showing any issues, but the file is not properly tagged.
I'm using the latest libav and youtube-dl binaries on Windows 10. I already tried switch to ffmpeg but is not working either.
The issue #2368 is the same as mine, I suppose.
And as I mentioned, for m4a and mp3 the files are properly tagged, the problem occours only with Vorbis files.

ffmpeg/avconv doesn't look capable embedding webm metadata. Moreover looks like official webm metadata tags are not defined at all. You can embed tags into matroska container by forcing output template extension to mkv:
youtube-dl -f 171 https://www.youtube.com/watch?v=ouDFGE-P_iQ -x --add-metadata --metadata-from-title "%(artist)s - %(title)s" -o "%(title)s.mkv"

Closing since not a youtube-dl issue.

But avconv is capable of embed metadata on opus and ogg files.
Try this for example:

avconv -i 1.opus -metadata title="test title" -metadata author="test artist" -metadata album="test album" -metadata track="12" -c copy 2.opus

You will see


Support relations via array type columns

Currently AR supports scalar to array relations:
$this->hasMany(Item::class, ['id' => 'item_ids'])
where id is integer column
and item_ids is integer array column
But AR does not support array to scalar relations
$this->hasMany(Promotion::class, ['item_ids' => 'id'])
The reason is in preparing the query condition. Currently it is only IN condition
https://github.com/yiisoft/active-record/blob/b000730e35c7dad0b6796bf0459c5fae017699d8/src/ActiveRelationTrait.php#L636
Which will generate condition like id IN (1, 2, 3)
But for array column this should be arrays overlap condition like item_ids && ARRAY[1, 2, 3] (Postgres)
To solve the issue it requires:

Realize ArrayOverlapCondition and JsonOverlapCondition (for json arrays) in db packages
Add AR::columnType($columnName) method to get type of the column
Prepare condition according to the column type:

match ($columnType) {
    'array' => $this->andWhere(new ArrayOverlapCondition($attributes, $values)),
    'json' => $this->andWhere(new JsonOverlapCondition($attributes, $values)),
    default => $this->andWhere(['in', $attributes, $values]),
};

What's the support in other DBs?

What's the support in other DBs?

Pgsql, Mssql, Oracle support arrays but db package has realization only for Pgsql;
Mysql, Pgsql, Sqlite, Mssql, Oracle support json but db package has realization only for Mysql, Pgsql, Sqlite.
But it may not be possible to implement JsonOverlapCondition for all DBMSs. At least for Mysql and Pgsql it is easy to implement.

If it's MySQL and PostgreSQL then it is worth doing.

Done with #375


Update getting-started-guides to to replace kubecfg commands with kubectl equivalents

Getting started docs should direct users to run kubectl commands since kubecfg is being deprecated #2144.

@MikeJeffrey By the end of today, kubectl will have all the necessary functionality to fully replace kubecfg. Certainly the syntax is settled. I'd like to move forward with updating all the docs.


WIP | Bump the minimum stack size to at least 1MiB

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report
Attention: Patch coverage is 55.55556% with 4 lines in your changes missing coverage. Please review.

Project coverage is 83.40%. Comparing base (852f8ce) to head (f1b80a9).

Files
Patch %
Lines

source/posix/thread.c
55.55%
4 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1139      +/-   ##
==========================================
- Coverage   83.44%   83.40%   -0.05%
==========================================
  Files          57       57
  Lines        5985     5994       +9
==========================================
+ Hits         4994     4999       +5
- Misses        991      995       +4

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


[Bug]: find the root cause of missing find command object in mongo query

Is there an existing issue for this?

[X] I have searched the existing issues

Description
"pageId": "62441f626a181d076233373c",
            "actionConfiguration": {
                "timeoutInMillisecond": 10000,
                "paginationType": "NONE",
                "encodeParamsToggle": true,
                "formData": {
                    "count": {
                        "query": {
                            "data": ""
                        }
                    },
                    "collection": {
                        "data": "user_exercises",
                        "viewType": "component",
                        "componentData": "user_exercises"
                    },
                    "command": {
                        "data": "COUNT",
                        "viewType": "component",
                        "componentData": "COUNT"
                    },
                    "smartSubstitution": {
                        "data": false,
                        "viewType": "component",
                        "componentData": false
                    },
                    "misc": {

                    }
                }
            },
            "executeOnLoad": false,
            "dynamicBindingPathList": [
                {
                    "key": "formData.distinct.query.data"
                },
                {
                    "key": "formData.count.query.data"
                }
            ],

Mongo query has entered a state like above, where  formData.distinct.query.data is present in dynamicBindingPathList and the path is missing in formData.
Ref to the main issue: https://github.com/appsmithorg/appsmith/issues/13228
Steps To Reproduce
Not able to reproduce.
Public Sample App
No response
Version
Cloud

Another app having this issue. (missing formData.list.prefix.data)
https://release.app.appsmith.com/applications/61c46440cb706b2cef15a9f4/pages/61c46440cb706b2cef15a9f9/edit

Another user faced this issue. (fixed by making an edit on the query)
https://discord.com/channels/725602949748752515/969001542621466684/973465159949496331

Observation: This issue is not peculiar to Mongo Query. Scenarios have occurred in S3 Query too.


Improves UX of CDB Yemen Sandcastle

This PR adds a couple of small UX improvements to the CDB Yemen Sandcastle:

hides the terrain metadata overlay when the mouse is over the buildings metadata info box
improves the visual look of the table used in the buildings metadata info box

Thanks for the pull request @sanjeetsuhag!

:heavy_check_mark: Signed CLA found.
:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

:grey_question: Unit tests were not updated.

Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.


Implementing Job Queue

Hey there,
I'm trying to understand how to implement a job queue using this awesome library.
I thought about this flow:

New tasks are pushed to a pending tasks queue.
Tasks taken for execution will be be popped from pending queue and pushed to in progress tasks queue.
After X time inside progress queue, the task will be considered as expired and will be moved to a delay queue with a given delay (each task will have a different expiration time).
After X time in the delay queue, the task will be moved back to the pending queue.
If the task was executed properly, the task will be moved to a processed tasks queue, which will be consumed for further calculations.

For the in progress tasks i thought about using priority queue / scored set.
For the delay queue i thought about using, well, the delayed queue.

Problem is I struggle about the durability of it all, I'm afraid the server will crash the second i pop something (before i get to add it to some other data structure) and I will lose tasks data.
There is a feature for this library that I'm not aware of and could come in handy?
I would really like to stick with Java and not move to python's celery or something like that, but haven't found something to ease the process yet.
If this question is not for this place I'd be happy to hear where should I post it.
Thanks and have a nice day :)

Redisson does provide Executor and Scheduled Executor out of the box for job executions. However it does not give you the durability out of the box. You may have to use another queue to track the durability manually.
Alternatively, you can take a look at the new Streams feature which provides much better guarantees. It is coming to Redis 5, @mrniko has provided a preliminary support in Redisson already.


image captioning

Is it possible to use Lamini with an image-to-text model for image captioning?

Hello, we do not currently support images.


Fix last written tag not being checked

The last rfid tag written was not properly detected as authorized, typical off by one error.

Fixes #403

Your patch reverts  #346 .. there must be more fixed to address all issues of the "example".


[GHSA-78hx-gp6g-7mj6] Memory leaks in code encrypting and verifying RSA payloads

Updates

Affected products

Comments
Remove invalid package with an overlapping range

Hi there @gdams! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository.
This change will be reviewed by our Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory


SIP enable

Can I re-enable SIP with the command "csrutil enable without ..." and what have I to write instead of ...
(I feel a littel bit unsafe with disabled SIP)

You can re-enable SIP with the following command csrutil enable then you can check SIP status typing csrutil status.
Though I would not recommend re-enabling SIP because the MBPMid2010 patch has to be apply each time you mac performs a system update and it's often... So you would have to disable SIP each time...

I know but can i enabel SIP partially with "csrutil enabel without ...(your Programm)"?

No I'm sorry that's not possible.


Make it easier for teams to create simple prototypes

What
Make it easier for teams to download and install the Kit and then create a simple prototype, without needing training or technical support from the team.
Why
The prototyping discovery in Q3 identified ways we can help more people use the kit. Doing this work will also reduce the support burden on the Design System team.
Done when
Must

[ ] Scope the Prototype Kit documentation work
[ ] Consider information architecture across all products and make any necessary changes

Should

[ ] Start by prioritising gaps and fixes
[ ] Look at findings from “docathlon” and implement at least quick wins
[ ] Identify team members to work on this
[ ] Plan how we’ll test these improvements have worked (user research and analytics)
[ ] Content equivalent to training online

Could

[ ] Test these improvements have been worked (user research & analytics)
[ ] Have a conversation about big changes which could impact this work eg put docs in Design System
[ ] Split docs out of Prototype Kit codebase
[ ] Recommend courses or books on learning HTML/CSS/JavaScript if you have no experience
[ ] Make it easier to do branching in the Prototype Kit

Apologies if this has already been considered - but I often think the biggest barrier to using the kit is the installation and using terminal. Is there a proper app like installer that could be made to make this simpler?

@christaylor-hod Agreed, and that's definitely an option we'd like to consider