text:
fix: modify result for add-default-resources

Related Issue(s)
https://github.com/kyverno/kyverno/issues/6975

Description
use skip as a result in kyverno-test.yaml as mutation won't occur on nginx-demo2 because it has both memory and cpu fields.

Checklist

[x] I have read the policy contribution guidelines.
[] I have added test manifests and resources covering both positive and negative tests that prove this policy works as intended.
[] I have added the artifacthub-pkg.yml file and have verified it is complete and correct.

I think the test fails because we have a cyclic dependency between this repo and the kyverno repo

Yes, modifications made here require modifications already be made in kyverno/kyverno in main.

May be easier to merge this first, kyverno repo doesn't allow merging PRs if tests fail.

Ok

authors: MariamFahmy98 chipzoller eddycharly


text:
configure additional eggress rules for kyvernoPlugin and UI

Signed-off-by: Frank Jogeleit fj@move-elevator.de

Pull Request Test Coverage Report for Build 1218743468

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.5%) to 92.879%

Totals

Change from base Build 1218582321:
0.5%

Covered Lines:
1513

Relevant Lines:
1629

💛  - Coveralls

source: gharchive/pull-request

authors: coveralls fjogeleit

repo: kyverno/policy-reporter

license: MIT

license_type: permissive

license_source: github-api


text:
Show addresses names and verification status

Resolves L2B-3172
Example:

On mobile:

authors: michalsidzej sdlyy


text:
Github: Add code coverage workflow

We want to add a code coverage workflow to quantify the testing coverage for the codebase.

https://github.com/l3af-project/l3af-arch/pull/112

source: gharchive/issue

authors: DecFox sanfern


text:
Add cors support

PR-Codex overview
Focus of the PR:
This PR focuses on updating the allowed methods in the ApiCorsConfiguration class.
Detailed summary:

Updated the allowedMethods in the addCorsMappings method of the ApiCorsConfiguration class to include "GET", "POST", "PUT", and "PATCH".

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (71f5764) 71.63% compared to head (e5cc7f2) 71.63%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff            @@
##             master     #162   +/-   ##
=========================================
  Coverage     71.63%   71.63%
  Complexity      202      202
=========================================
  Files            90       90
  Lines          1361     1361
  Branches        120      120
=========================================
  Hits            975      975
  Misses          276      276
  Partials        110      110

Impacted Files
Coverage Δ

...a/ru/volpi/qarest/config/ApiCorsConfiguration.java
100.00% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


text:
Turncat does not include SNI header when using TURN/TLS

Description
I am trying to use Stunner (and test it with provided Turncat tool) via a standard ingress controller using a TLS passthrough config.
In particular, I setup a Stunner gateway with a TURN/TLS listener. Then I setup my ingress (I am using contour) on a subdomain to do TLS passthrough. The ingress controller will then examine the SNI header on the TLS Client Hello Package to choose the target service and then forwards all packets there. No termination or decryption is occuring at the ingress controller.
Thus, I am thinking I should be able to use this to establish a turn connection.
However, testing with Turncat (iperf-example from the docs), it does not work, but rather give this EOF error:
 turncat --verbose udp://127.0.0.1:5034 "turn://user:pass@turn.my.domain:443?transport=tls" udp://10.34.207.214:5001
08:41:08.280854 main.go:81: turncat-cli DEBUG: Reading STUNner config from URI "turn://user:pass@turn.my.domain:443?transport=tls"
08:41:12.095143 main.go:88: turncat-cli DEBUG: Generating STUNner authentication client
08:41:12.095182 main.go:95: turncat-cli DEBUG: Generating STUNner URI
08:41:12.095210 main.go:102: turncat-cli DEBUG: Starting turncat with STUNner URI: turns://turn.my.domain:443?transport=tcp
08:41:12.095369 turncat.go:186: turncat INFO: Turncat client listening on udp://127.0.0.1:5034, TURN server: turns://turn.my.domain:443?transport=tcp, peer: udp:10.34.207.214:5001
08:41:12.095385 main.go:118: turncat-cli DEBUG: Entering main loop
08:41:12.096109 turncat.go:227: turncat DEBUG: new connection from client 127.0.0.1:60463
08:41:12.248694 turncat.go:463: turncat WARNING: relay setup failed for client udp:127.0.0.1:60463: cannot allocate TURN/TLS socket for client udp:127.0.0.1:60463: EOF
^C09:01:45.683520 turncat.go:196: turncat INFO: closing Turncat

When I do the same, but instead target directly the public IP of the stunner gateway loadbalancer, it does work as expected.
I then tried to trace the problem by captureing the relevant packetes and it seems to me that turncat fails to include a SNI header in its TLS packets. Therefor the ingresscontroller has no info as to where the packets should be forwarded and just drops the connection resulting in the observed error. Could this be possible?
I appreciate any hints.
Steps to Reproduce

setup a stunnergatway with TURN/TSL listener
setup ingress to do TLS passthrough
Test with Turncat using the subdomain name configured in the ingress controller

Expected behavior: [What you expected to happen]

estalish the connection via turn

Actual behavior: [What actually happened]

connection is dropped and a EOF error is shown

Versions
[Which version of STUNner you are using]
0.18.0
Info
[Please copy-paste the output of the below commands and make sure to remove all sensitive information, like usernames, passwords, IP addresses, etc.]
Gateway API status
[Output of kubectl get gateways,gatewayconfigs,gatewayclasses,udproutes.stunner.l7mp.io --all-namespaces -o yaml]
Operator logs
[Output of kubectl -n stunner-system logs $(kubectl get pods -l control-plane=stunner-gateway-operator-controller-manager --all-namespaces -o jsonpath='{.items[0].metadata.name}')]

We have ended up taking this as a feature request and implemented it right away. You can now use --sni=my-server-name on the turncat command line to set the SNI. This should be useful for testing.
Closing this as fixed now in cleaning up open issues for the imminent release of v1, but I'd like to ask you to answer a quick question before abandoning this issue: are you planning to set the SNI for testing only, or do you actually intend to use turncat in production?

wow thanks will check that out!.
I currently want to test with turncat as the most simple scenario and to see wether routing packets through a standard reverse proxy is feasible.
production workload would be webrtc, and I know this is far from ideal. onlyunfortunately it seems very difficult to open up even a single udp port in our firewalls. with turn/tls I would be able to reuse existing pathways.
I also tested with your fork of the mediasoup-demo. this does not currently support the TLS transport at all as it seems.
would you be able to add the option for tls transport (while SNI would be required as well) to the demo?

I also tested with your fork of the mediasoup-demo. this does not currently support the TLS transport at all as it seems.
would you be able to add the option for tls transport (while SNI would be required as well) to the demo?

Currently no resources, but we're accepting PRs!

Currently no resources, but we're accepting PRs!

fair enough!
would it be as simple as constructing a turns:// url instead of a turn://? I might be able to add that.


text:
Pin cmake dependency used to build wheels

The latest release of cmake 3.29.0 is broken with Python 3.8. Since this is not the first time that a cmake release is broken, we should pin the dependency and manually update when needed.
Contributor (creator of pull-request) checklist

[ ] Tests updated (for new features and bugfixes)?
[ ] Documentation updated (for new features)?
[ ] Issue referenced (for PRs that solve an issue)?

Reviewer checklist

[ ] CHANGELOG updated with public API or any other important changes?

📚 Documentation preview 📚: https://metatensor--559.org.readthedocs.build/en/559/

This has been fixed by the cmake package in 3.29.0.1: https://pypi.org/project/cmake/3.29.0/

repo: lab-cosmo/metatensor


text:
remove bacalhau install from install script

https://github.com/labdao/plex/issues/89

merging this

authors: NiklasTR thetechnocrat-dev

repo: labdao/plex


text:
Unnecessary prefix on Windows

In windows OS, the log will shows file path instead of just route path
GET      D:\my-route
Example app listening on port 3000

Probably because of `path.resolve``` before the log

Same happens on my end, it'll write the folder path and then add whatever the route path is...
expressListRoutes(app, { spacer: 2, prefix: "http://localhost:8080/" }); gives:
GET  F:\GitHub\project\http:\localhost:8080\userTest
GET  F:\GitHub\project\http:\localhost:8080\example\text
GET  F:\GitHub\ptoject\http:\localhost:8080\example\2

expressListRoutes(router); gives:
GET      F:\userTest
GET      F:\example
GET      F:\example\text
GET      F:\example\2

@nartos9090 @ElenaChes I have updated the code (v1.1.5) to use path.normalize which should resolve your issues on windows machines.

authors: ElenaChes labithiotis nartos9090

repo: labithiotis/express-list-routes


text:
CSV Output

Exporting the staking balances to a .csv would be handy...

Added this capability to parser.rb in commit 27ff8ae
Should be straightforward to add to eur_parser and usd_parser as well, will close this once I get around to that


text:
fix:sealos creat xxxx image not known

Signed-off-by: 晓杰 2561589453@qq.com
Fix #1771

Should we modify the document together?

Should we modify the document together?

i think should，i modify it now，change back to the way it was before

authors: cuisongliu xiao-jay

repo: labring/sealos


text:
Stitching output in grey colour.

i want output in same colour as it was in input.
i have tried the cmd as shown:
ashlar "fileseries|/home/kuldeep/Downloads/Inferencing_with_Button/Image_Data/room|pattern=room{series:1}.jpg|overlap=0.2|width=10|height=1" --output-channels 0
but it is giving output in grey colour but i want it as the images was in the input.

Sorry, the output from RGB input is not proper RGB tiff yet but this is on our list of things to do. The R, G, and B channels are actually all there but they are in separate grayscale channels in the tiff. You should be able to write a bit of code to combine them or use a tool like Fiji to do it.

i solve the issue by combining all the three channels.

repo: labsyspharm/ashlar


text:
Incorrect SFileInfoNameHash1 & SFileInfoNameHash2 being returned

Related to #311
Protected map Lusin2Rpg1.28.w3x
There are many fake files, I exclude them by doing a try/catch around my extraction logic & checking for a 0-byte file after extraction.
There are many pseudo filenames for real files that return the same hash values (which are also wrong).
These are real valid files that can be extracted & opened.
One Example:
File00024483.blp
SFileInfoHashIndex = 18
SFileInfoNameHash1 = 1023973189
SFileInfoNameHash2 = 2390187238
File00005745.mp3
SFileInfoHashIndex = 20
SFileInfoNameHash1 = 1023973189
SFileInfoNameHash2 = 2390187238
The correct listfile names for these are:
File00024483.blp = ReplaceableTextures\CommandButtons\BTNHaboss79.blp
File00005745.mp3 = war3mapImported\KoruneF.mp3
If I calculate the hash for these file names, I believe they should be:
ReplaceableTextures\CommandButtons\BTNHaboss79.blp
SFileInfoNameHash1 = 2346095258
SFileInfoNameHash2 = 4250210971
war3mapImported\KoruneF.mp3
SFileInfoNameHash1 = 556665874
SFileInfoNameHash2 = 476359262
Notes:
SFileOpenFileEx, SFileExtractFile, & SFileHasFile all work fine on both the psuedo file name & real listfile name
When I use the real listfile name, the hashIndex changes. Even though the hashindex changes, the actual file contents are the same regardless of extraction with PseudoFileName or real list file name.
ReplaceableTextures\CommandButtons\BTNHaboss79.blp
SFileInfoHashIndex = 8446
war3mapImported\KoruneF.mp3
SFileInfoHashIndex = 2762

I think this is due to a bunch of fake & duplicated hash table values, making it hard to know which hash table records are real.
Some of the fake entries can be resolved using an external list files, and will successfully extract, but the binary data is garbage.
For example:
(PC)WorldEditMenu.html
I'm researching this more to see if I can fix it on my end with some Deep File Verification. Maybe not StormLib's job to handle this scenario.

What you see is a fundamental problem of opening file by pseudo-name.
Unlike classic file open (FileName --> NameHash+HashTableIndex --> BlockIndex --> FileData), opening by pseudo-name goes directly into BlockIndex. Yes. The number in the name ("File00024483.blp" --> 24483) is the decimal block index. The extension is provided only when StormLib is able to determine it by file content, but it's generally ignored by SFileOpenFileEx.
Now we opened a file by block index, where to take that damn hash index?
When a file is opened by pseudo-name, StormLib tries to determine the hash index by searching which hash entry points to block table entry whose index is given in the pseudo name. This generally works well, except the case when MPQ has cross-linked files (multiple files names pointing to the same file data).
Cross-linked files may be legal (why could a file data have multiple names, right?) or malformed (MPQ protectors slowing down MPQ opens).
Now I guess that the best (or "least-worst", if you want) way to fix it is to not return any hash entry when those two conditions are met:

A file is open by pseudo-name
Multiple hash table entries pointing to that block entry.

Thanks for the explanation. I don't think this is a bug in StormLib, nor should StormLib handle it any better/differently, so I'm closing it.
I've been able to work around the issue by coding my own custom filename & hash verification methods. It's pretty complicated & WC3 specific. I'm basically regex scanning all extracted file contents for filenames & checking against SFileHasFile.
In my case if there are 2 hash entries pointing to 1 block I'd prefer to get ALL the possible hashes for a fileIndex, rather than 1st or none. But, there's no reason to make a breaking change to the StormLib API based on my specific use case & corrupted map. I can workaround the problem.
Thanks for the help!

I made the fix described above in this PR: https://github.com/ladislav-zezula/StormLib/pull/316
Callers of SFileGetFileInfo(hFile, SFileInfoNameHash1, ...) must test the result of the call.

authors: ladislav-zezula speige

repo: ladislav-zezula/StormLib

license: mit

license_source: bigquery


text:
🛑 Lake桑的存档馆（WordPress.com） is down

In 319006e, Lake桑的存档馆（WordPress.com） (https://lakejason0.wordpress.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Lake桑的存档馆（WordPress.com） is back up in 214d6cb.


text:
gin_browse_aliases name is different between documentation and code

Hi @lambdalisue. Thank you for the great plugin.
I try to use :GinBrowse in self hosted service. But, g:gin_browse_aliases doesn't work.
In doc, the name is g:gin_browse_aliases, but in code, the name is g:git_browse_aliases.

Thanks. That's a bug

authors: kitagry lambdalisue


text:
Upgrade to latest scigraph model

python -m pyscigraph.main --doi 10.1038/171737a0
INFO:rdflib:RDFLib Version: 4.2.2
Not found

fixed with v0.5

repo: lambdamusic/pyscigraph


text:
Feature Suggestions

Dear all
I would like to have more features to automatically install apps from the Play Store and open it, controlling the install command from FCM? Please help me have a solution to this problem please

You can only open the application page in google play:
startApp.set({ /* params */
	"action": "ACTION_VIEW",
	"uri": "market://details?id=com.lampa.startapp"
}).start();


text:
FFT example

Reviving the branch originally developed by Raphael and updated by Joshua.
This is not really mergeable on this state as the CMSIS libs are added as a submodule to this repo and it changes the float-abi compiler flag to hard (we need to check if we can compile the CMSIS DSP code with float-abit=softfp).
Maybe it's worth considering moving this as a "CODAL library" that can also be used as a MakeCode extension, as the MicroBitAudioProcessor class is a fairly self-contained DataSink.
I'm not sure if I've wired the right DataSource to MicroBitAudioProcessor as a I get a lot high frequency values in a relatively quiet room (do we have a DataSource that has filtered out noise?) and the calculated frequencies are twice as expected.
https://github.com/lancaster-university/codal-microbit-v2/blob/e3319f469168b1f3a8ac929de9eba3d413d9501a/samples/fft_example.cpp#L18-L37
Also, it looks like CMSIS needs CMake 3.13 min, and that's a newer version than the Yotta docker image, so the MakeCode builds will fail.

Next steps for this work:

It's possible I haven't wired things correctly as the calculated frequencies are twice the expected value, so we need to figure out the issue there
The additional resources used by this feature are too large, 100KBs is a huge chunk of flash, we need to look into how to reduce this
I believe the FFT calculation time was measure by Joshua at around 10-11 ms, which is not bad, but if we want this to be constantly running in the background we might need it to yield a few times to ensure other things have a chance to run

Talk: https://www.youtube.com/watch?v=LzkN4j2DB_w
One of the reasons this might be constantly running in the background is the possibility to create an "event block" for MakeCode, so that things can happen when a specific frequency is detected


text:
docs: improve style and introduction to Python API docs

I found the signatures difficult to read and the parameter section not very space efficient.

Signatures
This is what separate_signature: true does:
Before

After

Paramaters
This is what docstring_section_style: list does
Before

After

repo: lancedb/lancedb


text:
🛑 Kelsi is down

In 502eb27, Kelsi (https://kelsilesowski.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Kelsi is back up in 0b8b95b.


text:
🛑 vipgifts.net is down

In 85a805c, vipgifts.net (https://vipgifts.net) was down:

HTTP code: 567
Response time: 360 ms

Resolved: vipgifts.net is back up in 09021eb after 19 minutes.

repo: lanen/bs-site


text:
🛑 rexingsports.cn is down

In 53e340b, rexingsports.cn (https://www.rexingsports.cn) was down:

HTTP code: 567
Response time: 1106 ms

Resolved: rexingsports.cn is back up in 6907689.


text:
🛑 trixmall.com is down

In 7a8e1dd, trixmall.com (https://www.trixmall.com/) was down:

HTTP code: 567
Response time: 539 ms

Resolved: trixmall.com is back up in 4bf85ba after 612 days, 11 hours, 3 minutes.


text:
🛑 vipgifts.net is down

In 14f5009, vipgifts.net (https://vipgifts.net) was down:

HTTP code: 567
Response time: 711 ms

Resolved: vipgifts.net is back up in 488a481 after 18 minutes.


text:
🛑 vipgifts.net is down

In c04bd24, vipgifts.net (https://vipgifts.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: vipgifts.net is back up in 3cf6a76.


text:
🛑 rexingsports.cn is down

In fdef669, rexingsports.cn (https://www.rexingsports.cn) was down:

HTTP code: 567
Response time: 845 ms

Resolved: rexingsports.cn is back up in 2808c7a after 23 minutes.


text:
🛑 rexingsports.cn is down

In ea64c93, rexingsports.cn (https://www.rexingsports.cn) was down:

HTTP code: 567
Response time: 812 ms

Resolved: rexingsports.cn is back up in ac2e053 after 32 minutes.


text:
🛑 rexingsports.cn is down

In ccc52d5, rexingsports.cn (https://www.rexingsports.cn) was down:

HTTP code: 567
Response time: 764 ms

Resolved: rexingsports.cn is back up in bb7d177 after 19 minutes.


text:
Reset implementation

Ability to rest the level back to start

Could probably just reload the scene entirely since its small enough. SignalBus.LoadScene.emit(Global.game_data.get_current_level().scene) or better yet add a new signal in SignalBus to reset level. SignalBus.Reset.emit() and have the level loader handle the Global.game_data.get_current_level().scene
More of the work will be from adding an indicator like a little wheel or bar that fills while holding "R" to reset the level (also ensure it empties and disappears)

authors: langandrews lmjustic


text:
🛑 Riaza is down

In 9b225aa, Riaza (http://mriaza.ddns.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Riaza is back up in deb0386.

repo: langasg/upptime


text:
🛑 Riaza is down

In 8642d6b, Riaza (http://mriaza.ddns.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Riaza is back up in 7d0de7e.


text:
Use this with local model

How can I use this with local model?

Can't without making some changes, we're using: https://python.langchain.com/docs/modules/model_io/chat/structured_output
Should be possible as we add support for local models.
Until then your best bet is a parsing approach, so you'd need to re-write some of the code in the service to use a parsing approach.

Thanks, I asked question about this function, I could probably copy it from the partner folder.

I could also create a PR if this is something you want.

@amztc34283 Were you able to set it up with a local model? I wanna test mistral model through ollama, any idea on this implementation?

repo: langchain-ai/langchain-extract


text:
🚨 OpenAIAssistantRunnable with AgentExecutor not working with latest OpenAI Assistants API

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
from langchain.agents.openai_assistant import OpenAIAssistantRunnable
from langchain.agents import AgentExecutor

openai_assistant = OpenAIAssistantRunnable.create_assistant(
    name="test langchain assistant",
    instructions="You are responsible to update the langchain docs.",
    tools=[],
    model="gpt-4-0125-preview",
    as_agent=True
)

agent_executor = AgentExecutor(agent=openai_assistant, tools=tools, return_intermediate_steps=True)

executor_ouput = agent_executor.invoke({"content": "Are the Langchain Docs up to date?"})
print(executor_ouput)

Error Message and Stack Trace (if applicable)

AttributeError                            Traceback (most recent call last)
Cell In[51], line 1
----> 1 openai_assistant.invoke({"content": "hi"})
File ~/magic/llm_apps/test_openaiassistantrunnable/.venv/lib/python3.10/site-packages/langchain/agents/openai_assistant/base.py:299, in OpenAIAssistantRunnable.invoke(self, input, config)
297 except BaseException as e:
298     run_manager.on_chain_error(e, metadata=run.dict())
--> 299     raise e
300 else:
301     run_manager.on_chain_end(response)
File ~/magic/llm_apps/test_openaiassistantrunnable/.venv/lib/python3.10/site-packages/langchain/agents/openai_assistant/base.py:296, in OpenAIAssistantRunnable.invoke(self, input, config)
294     raise e
295 try:
--> 296     response = self._get_response(run)
297 except BaseException as e:
298     run_manager.on_chain_error(e, metadata=run.dict())
File ~/magic/llm_apps/test_openaiassistantrunnable/.venv/lib/python3.10/site-packages/langchain/agents/openai_assistant/base.py:490, in OpenAIAssistantRunnable._get_response(self, run)
486     return new_messages
487 answer: Any = [
488     msg_content for msg in new_messages for msg_content in msg.content
489 ]
--> 490 if all(
...
(...)
503     thread_id=run.thread_id,
504 )
AttributeError: module 'openai.types.beta.threads' has no attribute 'MessageContentText'
Description
Problem
I'm trying to use the latest langchain libs in order to use the OpenAI Assistants API via the OpenAIAssistantRunnable and an AgentExecutor.
It fails with the above stack trace.
Solution
What needs to be changed are these two lines of code:

https://github.com/ccurme/langchain/blob/96f521513e349713f2d2b25d9c37df0ac1447fd3/libs/langchain/langchain/agents/openai_assistant/base.py#L642

https://github.com/langchain-ai/langchain/blob/e6952b04d54c360fb65406dc7b269efa15071164/libs/langchain/langchain/agents/openai_assistant/base.py#L644

Replace in both cases isinstance(content, openai.types.beta.threads.MessageContentText) with isinstance(content, openai.types.beta.threads.TextContentBlock), i.e. MessageContentText with TextContentBlock.
I changed this locally and then the code above works as expected.
System Info
langchain==0.1.13
langchain-community==0.0.29
langchain-core==0.1.33
langchain-text-splitters==0.0.1
Python 3.10.12 AND Python 3.12.2 same behavior.

Let me see.

authors: dentro-innovation liugddx

repo: langchain-ai/langchain


text:
[Core] Unify function schema parsing

Use pydantic to infer nested schemas and all that fun.
Include bagatur's convenient docstring parser
Include annotation support
Previously we didn't adequately support many typehints in the bind_tools() method on raw functions (like optionals/unions, nested types, etc.)

I'm down to not parse docstrings by default / separate in another pr

Git rebase 🤦


text:
ValueError: Error performing search in AstraDBVectorStore: 'content'

Bug Description
Hello,
When trying to setup the RAG template with AstraDB, we get the following:
ValueError: Error performing search in AstraDBVectorStore: 'content'
It looks like it's trying to get a key that doesn't exist.
Traceback (most recent call last):
                               File "<frozen runpy>", line 198, in _run_module_as_main
                               File "<frozen runpy>", line 88, in _run_code

                               File "C:\Python311\Scripts\langflow.exe\__main__.py", line 7, in <module>

                               File "C:\Python311\Lib\site-packages\langflow\__main__.py", line 528, in main
                                 app()
                                 -> <typer.main.Typer object at 0x000002684A448DD0>
                               File "C:\Python311\Lib\site-packages\typer\main.py", line 321, in __call__
                                 return get_command(self)(*args, **kwargs)
                                        |           |      |       -> {}
                                        |           |      -> ()
                                        |           -> <typer.main.Typer object at 0x000002684A448DD0>
                                        -> <function get_command at 0x000002682A6B8680>
                               File "C:\Python311\Lib\site-packages\click\core.py", line 1157, in __call__
                                 return self.main(*args, **kwargs)
                                        |    |     |       -> {}
                                        |    |     -> ()
                                        |    -> <function TyperGroup.main at 0x000002682A69E480>
                                        -> <TyperGroup >
                               File "C:\Python311\Lib\site-packages\typer\core.py", line 728, in main
                                 return _main(
                                        -> <function _main at 0x000002682A69D620>
                               File "C:\Python311\Lib\site-packages\typer\core.py", line 197, in _main
                                 rv = self.invoke(ctx)
                                      |    |      -> <click.core.Context object at 0x000002684A408F90>
                                      |    -> <function MultiCommand.invoke at 0x00000268270756C0>
                                      -> <TyperGroup >
                               File "C:\Python311\Lib\site-packages\click\core.py", line 1688, in invoke
                                 return _process_result(sub_ctx.command.invoke(sub_ctx))
                                        |               |       |       |      -> <click.core.Context object
                             at 0x000002684A965F50>
                                        |               |       |       -> <function Command.invoke at
                             0x0000026827075080>
                                        |               |       -> <TyperCommand run>
                                        |               -> <click.core.Context object at 0x000002684A965F50>
                                        -> <function MultiCommand.invoke.<locals>._process_result at
                             0x000002684ABD6160>
                               File "C:\Python311\Lib\site-packages\click\core.py", line 1434, in invoke
                                 return ctx.invoke(self.callback, **ctx.params)
                                        |   |      |    |           |   -> {'host': '127.0.0.1', 'workers':
                             1, 'timeout': 300, 'port': 7860, 'components_path':
                             WindowsPath('C:/Python311/Lib/site-packa...
                                        |   |      |    |           -> <click.core.Context object at
                             0x000002684A965F50>
                                        |   |      |    -> <function run at 0x000002684ABD5E40>
                                        |   |      -> <TyperCommand run>
                                        |   -> <function Context.invoke at 0x00000268270679C0>
                                        -> <click.core.Context object at 0x000002684A965F50>
                               File "C:\Python311\Lib\site-packages\click\core.py", line 783, in invoke
                                 return __callback(*args, **kwargs)
                                                    |       -> {'host': '127.0.0.1', 'workers': 1,
                             'timeout': 300, 'port': 7860, 'components_path':
                             WindowsPath('C:/Python311/Lib/site-packa...
                                                    -> ()
                               File "C:\Python311\Lib\site-packages\typer\main.py", line 703, in wrapper
                                 return callback(**use_params)
                                        |          -> {'host': '127.0.0.1', 'workers': 1, 'timeout': 300,
                             'port': 7860, 'components_path': WindowsPath('C:/Python311/Lib/site-packa...
                                        -> <function run at 0x000002684ABD5300>
                               File "C:\Python311\Lib\site-packages\langflow\__main__.py", line 189, in run
                                 process = run_on_windows(host, port, log_level, options, app)
                                           |              |     |     |          |        ->
                             <fastapi.applications.FastAPI object at 0x000002682A45CF90>
                                           |              |     |     |          -> {'bind':
                             '127.0.0.1:7860', 'workers': 1, 'timeout': 300}
                                           |              |     |     -> 'debug'
                                           |              |     -> 7860
                                           |              -> '127.0.0.1'
                                           -> <function run_on_windows at 0x000002684ABD5440>
                               File "C:\Python311\Lib\site-packages\langflow\__main__.py", line 232, in
                             run_on_windows
                                 run_langflow(host, port, log_level, options, app)
                                 |            |     |     |          |        ->
                             <fastapi.applications.FastAPI object at 0x000002682A45CF90>
                                 |            |     |     |          -> {'bind': '127.0.0.1:7860',
                             'workers': 1, 'timeout': 300}
                                 |            |     |     -> 'debug'
                                 |            |     -> 7860
                                 |            -> '127.0.0.1'
                                 -> <function run_langflow at 0x000002684ABD5940>
                               File "C:\Python311\Lib\site-packages\langflow\__main__.py", line 354, in
                             run_langflow
                                 uvicorn.run(
                                 |       -> <function run at 0x000002684B677420>
                                 -> <module 'uvicorn' from
                             'C:\\Python311\\Lib\\site-packages\\uvicorn\\__init__.py'>
                               File "C:\Python311\Lib\site-packages\uvicorn\main.py", line 577, in run
                                 server.run()
                                 |      -> <function Server.run at 0x000002684B6777E0>
                                 -> <uvicorn.server.Server object at 0x000002684B5B7290>
                               File "C:\Python311\Lib\site-packages\uvicorn\server.py", line 65, in run
                                 return asyncio.run(self.serve(sockets=sockets))
                                        |       |   |    |             -> None
                                        |       |   |    -> <function Server.serve at 0x000002684B677880>
                                        |       |   -> <uvicorn.server.Server object at 0x000002684B5B7290>
                                        |       -> <function _patch_asyncio.<locals>.run at
                             0x000002684C6E7560>
                                        -> <module 'asyncio' from
                             'C:\\Python311\\Lib\\asyncio\\__init__.py'>
                               File "C:\Python311\Lib\asyncio\runners.py", line 190, in run
                                 return runner.run(main)
                                        |      |   -> <coroutine object Server.serve at 0x000002684AB79B70>
                                        |      -> <function Runner.run at 0x000002682949AA20>
                                        -> <asyncio.runners.Runner object at 0x000002684AC14410>
                               File "C:\Python311\Lib\asyncio\runners.py", line 118, in run
                                 return self._loop.run_until_complete(task)
                                        |    |     |                  -> <Task pending name='Task-1'
                             coro=<Server.serve() running at
                             C:\Python311\Lib\site-packages\uvicorn\server.py:69> wait_for=<Fu...
                                        |    |     -> <function _patch_loop.<locals>.run_until_complete at
                             0x000002684C6E7920>
                                        |    -> <ProactorEventLoop running=True closed=False debug=False>
                                        -> <asyncio.runners.Runner object at 0x000002684AC14410>
                               File "C:\Python311\Lib\asyncio\base_events.py", line 637, in
                             run_until_complete
                                 self.run_forever()
                                 |    -> <function _patch_loop.<locals>.run_forever at 0x000002684C6E7880>
                                 -> <ProactorEventLoop running=True closed=False debug=False>
                               File "C:\Python311\Lib\asyncio\windows_events.py", line 321, in run_forever
                                 super().run_forever()
                               File "C:\Python311\Lib\asyncio\base_events.py", line 604, in run_forever
                                 self._run_once()
                                 |    -> <function _patch_loop.<locals>._run_once at 0x000002684C6E79C0>
                                 -> <ProactorEventLoop running=True closed=False debug=False>
                               File "C:\Python311\Lib\site-packages\nest_asyncio.py", line 133, in _run_once
                                 handle._run()
                                 |      -> <function Handle._run at 0x000002682940B7E0>
                                 -> <Handle Task.__wakeup(<Future finis...026801F806D0>>)>
                               File "C:\Python311\Lib\asyncio\events.py", line 80, in _run
                                 self._context.run(self._callback, *self._args)
                                 |    |            |    |           |    -> <member '_args' of 'Handle'
                             objects>
                                 |    |            |    |           -> <Handle Task.__wakeup(<Future
                             finis...026801F806D0>>)>
                                 |    |            |    -> <member '_callback' of 'Handle' objects>
                                 |    |            -> <Handle Task.__wakeup(<Future finis...026801F806D0>>)>
                                 |    -> <member '_context' of 'Handle' objects>
                                 -> <Handle Task.__wakeup(<Future finis...026801F806D0>>)>
                               File "C:\Python311\Lib\asyncio\tasks.py", line 350, in __wakeup
                                 self.__step()
                                 -> <Task pending name='Task-937' coro=<build_flow.<locals>._build_vertex()
                             running at C:\Python311\Lib\site-packages\langflow\ap...
                               File "C:\Python311\Lib\asyncio\tasks.py", line 267, in __step
                                 result = coro.send(None)
                                          |    -> <method 'send' of 'coroutine' objects>
                                          -> <coroutine object build_flow.<locals>._build_vertex at
                             0x0000026861F390A0>
                               File "C:\Python311\Lib\site-packages\langflow\api\v1\chat.py", line 219, in
                             _build_vertex
                                 vertex_build_result = await graph.build_vertex(
                                                             |     -> <function Graph.build_vertex at
                             0x000002684A39C680>
                                                             -> Graph Representation:
                                                                ----------------------
                                                                Vertices (11):
                                                                  ChatInput-3HVe5,
                             AstraVectorStoreComponent-ySu3U, ParseData-rYl...
                               File "C:\Python311\Lib\site-packages\langflow\graph\graph\base.py", line
                             1332, in build_vertex
                                 await vertex.build(
                                       |      -> <function Vertex.build at 0x000002684A38FE20>
                                       -> Vertex(display_name=Astra DB, id=AstraVectorStoreComponent-ySu3U,
                             data={'description': 'Implementation of Vector Store using ...
                               File "C:\Python311\Lib\site-packages\langflow\graph\vertex\base.py", line
                             797, in build
                                 await step(user_id=user_id, event_manager=event_manager, **kwargs)
                                       |            |                      |                ->
                             {'fallback_to_env_vars': False}
                                       |            |                      ->
                             <langflow.events.event_manager.EventManager object at 0x0000026860C44910>
                                       |            -> UUID('145754d6-7d55-480c-bac8-5a5e233c06ca')
                                       -> <bound method Vertex._build of Vertex(display_name=Astra DB,
                             id=AstraVectorStoreComponent-ySu3U, data={'description': 'Implem...
                               File "C:\Python311\Lib\site-packages\langflow\graph\vertex\base.py", line
                             475, in _build
                                 await self._build_results(
                                       |    -> <function Vertex._build_results at 0x000002684A38FA60>
                                       -> Vertex(display_name=Astra DB, id=AstraVectorStoreComponent-ySu3U,
                             data={'description': 'Implementation of Vector Store using ...
                             > File "C:\Python311\Lib\site-packages\langflow\graph\vertex\base.py", line
                             694, in _build_results
                                 result = await initialize.loading.get_instance_results(
                                                |          |       -> <function get_instance_results at
                             0x0000026848918F40>
                                                |          -> <module
                             'langflow.interface.initialize.loading' from
                             'C:\\Python311\\Lib\\site-packages\\langflow\\interface\\initialize\\loa...
                                                -> <module 'langflow.interface.initialize' from
                             'C:\\Python311\\Lib\\site-packages\\langflow\\interface\\initialize\\__init__.p
                             y'>
                               File
                             "C:\Python311\Lib\site-packages\langflow\interface\initialize\loading.py", line
                             64, in get_instance_results
                                 return await build_component(params=custom_params,
                             custom_component=custom_component)
                                              |                      |                               ->
                             <langflow.utils.validate.AstraVectorStoreComponent object at
                             0x0000026864CC6510>
                                              |                      -> {'embedding':
                             OllamaEmbeddings(base_url='http://localhost:11434',
                             model='jina/jina-embeddings-v2-base-en', embed_instruction=...
                                              -> <function build_component at 0x000002684A38DE40>
                               File
                             "C:\Python311\Lib\site-packages\langflow\interface\initialize\loading.py", line
                             151, in build_component
                                 build_results, artifacts = await custom_component.build_results()
                                                                  |                -> <function
                             Component.build_results at 0x000002684A38D760>
                                                                  ->
                             <langflow.utils.validate.AstraVectorStoreComponent object at
                             0x0000026864CC6510>
                               File
                             "C:\Python311\Lib\site-packages\langflow\custom\custom_component\component.py",
                             line 617, in build_results
                                 return await self._build_with_tracing()
                                              |    -> <function Component._build_with_tracing at
                             0x000002684A38D620>
                                              -> <langflow.utils.validate.AstraVectorStoreComponent object
                             at 0x0000026864CC6510>
                               File "C:\Python311\Lib\contextlib.py", line 222, in __aexit__
                                 await self.gen.athrow(typ, value, traceback)
                                       |    |   |      |    |      -> <traceback object at
                             0x00000268011631C0>
                                       |    |   |      |    -> ValueError("Error performing search in
                             AstraDBVectorStore: 'content'")
                                       |    |   |      -> <class 'ValueError'>
                                       |    |   -> <method 'athrow' of 'async_generator' objects>
                                       |    -> <async_generator object TracingService.trace_context at
                             0x0000026864918A40>
                                       -> <contextlib._AsyncGeneratorContextManager object at
                             0x0000026801363F50>
                               File "C:\Python311\Lib\site-packages\langflow\services\tracing\service.py",
                             line 229, in trace_context
                                 raise e
                               File "C:\Python311\Lib\site-packages\langflow\services\tracing\service.py",
                             line 226, in trace_context
                                 yield self
                                       -> <langflow.services.tracing.service.TracingService object at
                             0x0000026864D6ED50>
                               File
                             "C:\Python311\Lib\site-packages\langflow\custom\custom_component\component.py",
                             line 605, in _build_with_tracing
                                 _results, _artifacts = await self._build_results()
                                                              |    -> <function Component._build_results at
                             0x000002684A38D800>
                                                              ->
                             <langflow.utils.validate.AstraVectorStoreComponent object at
                             0x0000026864CC6510>
                               File
                             "C:\Python311\Lib\site-packages\langflow\custom\custom_component\component.py",
                             line 640, in _build_results
                                 result = method()
                                          -> <bound method AstraVectorStoreComponent.search_documents of
                             <langflow.utils.validate.AstraVectorStoreComponent object at 0x00...
                               File "<string>", line 279, in search_documents

                             ValueError: Error performing search in AstraDBVectorStore: 'content'

                             ╭───────────────────── Traceback (most recent call last) ─────────────────────╮
                             │ in search_documents:277                                                     │
                             │                                                                             │
                             │ C:\Python311\Lib\site-packages\langchain_core\vectorstores\base.py:337 in   │
                             │ search                                                                      │
                             │                                                                             │
                             │    334 │   │   │   │   "mmr", or "similarity_score_threshold".              │
                             │    335 │   │   """                                                          │
                             │    336 │   │   if search_type == "similarity":                              │
                             │ ❱  337 │   │   │   return self.similarity_search(query, **kwargs)           │
                             │    338 │   │   elif search_type == "similarity_score_threshold":            │
                             │    339 │   │   │   docs_and_similarities = self.similarity_search_with_rele │
                             │    340 │   │   │   │   query, **kwargs                                      │
                             │                                                                             │
                             │ C:\Python311\Lib\site-packages\langchain_astradb\vectorstores.py:967 in     │
                             │ similarity_search                                                           │
                             │                                                                             │
                             │    964 │   │   """                                                          │
                             │    965 │   │   return [                                                     │
                             │    966 │   │   │   doc                                                      │
                             │ ❱  967 │   │   │   for (doc, _, _) in self.similarity_search_with_score_id( │
                             │    968 │   │   │   │   query=query,                                         │
                             │    969 │   │   │   │   k=k,                                                 │
                             │    970 │   │   │   │   filter=filter,                                       │
                             │                                                                             │
                             │ C:\Python311\Lib\site-packages\langchain_astradb\vectorstores.py:1025 in    │
                             │ similarity_search_with_score_id                                             │
                             │                                                                             │
                             │   1022 │   │   │   )                                                        │
                             │   1023 │   │                                                                │
                             │   1024 │   │   embedding_vector = self._get_safe_embedding().embed_query(qu │
                             │ ❱ 1025 │   │   return self.similarity_search_with_score_id_by_vector(       │
                             │   1026 │   │   │   embedding=embedding_vector,                              │
                             │   1027 │   │   │   k=k,                                                     │
                             │   1028 │   │   │   filter=filter,                                           │
                             │                                                                             │
                             │ C:\Python311\Lib\site-packages\langchain_astradb\vectorstores.py:1107 in    │
                             │ similarity_search_with_score_id_by_vector                                   │
                             │                                                                             │
                             │   1104 │   │   │   )                                                        │
                             │   1105 │   │   │   raise ValueError(msg)                                    │
                             │   1106 │   │   sort = {"$vector": embedding}                                │
                             │ ❱ 1107 │   │   return self._similarity_search_with_score_id_by_sort(        │
                             │   1108 │   │   │   sort=sort,                                               │
                             │   1109 │   │   │   k=k,                                                     │
                             │   1110 │   │   │   filter=filter,                                           │
                             │                                                                             │
                             │ C:\Python311\Lib\site-packages\langchain_astradb\vectorstores.py:1129 in    │
                             │ _similarity_search_with_score_id_by_sort                                    │
                             │                                                                             │
                             │   1126 │   │   │   include_similarity=True,                                 │
                             │   1127 │   │   │   sort=sort,                                               │
                             │   1128 │   │   )                                                            │
                             │ ❱ 1129 │   │   return [                                                     │
                             │   1130 │   │   │   (                                                        │
                             │   1131 │   │   │   │   self.document_encoder.decode(hit),                   │
                             │   1132 │   │   │   │   hit["$similarity"],                                  │
                             │                                                                             │
                             │ C:\Python311\Lib\site-packages\langchain_astradb\vectorstores.py:1131 in    │
                             │ <listcomp>                                                                  │
                             │                                                                             │
                             │   1128 │   │   )                                                            │
                             │   1129 │   │   return [                                                     │
                             │   1130 │   │   │   (                                                        │
                             │ ❱ 1131 │   │   │   │   self.document_encoder.decode(hit),                   │
                             │   1132 │   │   │   │   hit["$similarity"],                                  │
                             │   1133 │   │   │   │   hit["_id"],                                          │
                             │   1134 │   │   │   )                                                        │
                             │                                                                             │
                             │ C:\Python311\Lib\site-packages\langchain_astradb\utils\encoders.py:144 in   │
                             │ decode                                                                      │
                             │                                                                             │
                             │   141 │   @override                                                         │
                             │   142 │   def decode(self, astra_document: dict[str, Any]) -> Document:     │
                             │   143 │   │   return Document(                                              │
                             │ ❱ 144 │   │   │   page_content=astra_document["content"],                   │
                             │   145 │   │   │   metadata=astra_document["metadata"],                      │
                             │   146 │   │   )                                                             │
                             │   147                                                                       │
                             ╰─────────────────────────────────────────────────────────────────────────────╯
                             KeyError: 'content'

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

                             ╭───────────────────── Traceback (most recent call last) ─────────────────────╮
                             │ C:\Python311\Lib\site-packages\langflow\graph\vertex\base.py:694 in         │
                             │ _build_results                                                              │
                             │                                                                             │
                             │   691 │                                                                     │
                             │   692 │   async def _build_results(self, custom_component, custom_params,   │
                             │       fallback_to_env_vars=False):                                          │
                             │   693 │   │   try:                                                          │
                             │ ❱ 694 │   │   │   result = await initialize.loading.get_instance_results(   │
                             │   695 │   │   │   │   custom_component=custom_component,                    │
                             │   696 │   │   │   │   custom_params=custom_params,                          │
                             │   697 │   │   │   │   vertex=self,                                          │
                             │                                                                             │
                             │ C:\Python311\Lib\site-packages\langflow\interface\initialize\loading.py:64  │
                             │ in get_instance_results                                                     │
                             │                                                                             │
                             │    61 │   │   if base_type == "custom_components":                          │
                             │    62 │   │   │   return await build_custom_component(params=custom_params, │
                             │       custom_component=custom_component)                                    │
                             │    63 │   │   elif base_type == "component":                                │
                             │ ❱  64 │   │   │   return await build_component(params=custom_params,        │
                             │       custom_component=custom_component)                                    │
                             │    65 │   │   else:                                                         │
                             │    66 │   │   │   raise ValueError(f"Base type {base_type} not found.")     │
                             │    67                                                                       │
                             │                                                                             │
                             │ C:\Python311\Lib\site-packages\langflow\interface\initialize\loading.py:151 │
                             │ in build_component                                                          │
                             │                                                                             │
                             │   148 ):                                                                    │
                             │   149 │   # Now set the params as attributes of the custom_component        │
                             │   150 │   custom_component.set_attributes(params)                           │
                             │ ❱ 151 │   build_results, artifacts = await custom_component.build_results() │
                             │   152 │                                                                     │
                             │   153 │   return custom_component, build_results, artifacts                 │
                             │   154                                                                       │
                             │                                                                             │
                             │ C:\Python311\Lib\site-packages\langflow\custom\custom_component\component.p │
                             │ y:617 in build_results                                                      │
                             │                                                                             │
                             │   614 │   │   self,                                                         │
                             │   615 │   ):                                                                │
                             │   616 │   │   if self._tracing_service:                                     │
                             │ ❱ 617 │   │   │   return await self._build_with_tracing()                   │
                             │   618 │   │   return await self._build_without_tracing()                    │
                             │   619 │                                                                     │
                             │   620 │   async def _build_results(self):                                   │
                             │                                                                             │
                             │ C:\Python311\Lib\contextlib.py:222 in __aexit__                             │
                             │                                                                             │
                             │   219 │   │   │   │   # tell if we get the same exception back              │
                             │   220 │   │   │   │   value = typ()                                         │
                             │   221 │   │   │   try:                                                      │
                             │ ❱ 222 │   │   │   │   await self.gen.athrow(typ, value, traceback)          │
                             │   223 │   │   │   except StopAsyncIteration as exc:                         │
                             │   224 │   │   │   │   # Suppress StopIteration *unless* it's the same excep │
                             │   225 │   │   │   │   # was passed to throw().  This prevents a StopIterati │
                             │                                                                             │
                             │ C:\Python311\Lib\site-packages\langflow\services\tracing\service.py:229 in  │
                             │ trace_context                                                               │
                             │                                                                             │
                             │   226 │   │   │   yield self                                                │
                             │   227 │   │   except Exception as e:                                        │
                             │   228 │   │   │   self._end_traces(trace_id, trace_name, e)                 │
                             │ ❱ 229 │   │   │   raise e                                                   │
                             │   230 │   │   finally:                                                      │
                             │   231 │   │   │   asyncio.create_task(await asyncio.to_thread(self._end_and │
                             │       trace_name, None))                                                    │
                             │   232                                                                       │
                             │                                                                             │
                             │ C:\Python311\Lib\site-packages\langflow\services\tracing\service.py:226 in  │
                             │ trace_context                                                               │
                             │                                                                             │
                             │   223 │   │   │   component._vertex,                                        │
                             │   224 │   │   )                                                             │
                             │   225 │   │   try:                                                          │
                             │ ❱ 226 │   │   │   yield self                                                │
                             │   227 │   │   except Exception as e:                                        │
                             │   228 │   │   │   self._end_traces(trace_id, trace_name, e)                 │
                             │   229 │   │   │   raise e                                                   │
                             │                                                                             │
                             │ C:\Python311\Lib\site-packages\langflow\custom\custom_component\component.p │
                             │ y:605 in _build_with_tracing                                                │
                             │                                                                             │
                             │   602 │   │   inputs = self.get_trace_as_inputs()                           │
                             │   603 │   │   metadata = self.get_trace_as_metadata()                       │
                             │   604 │   │   async with self._tracing_service.trace_context(self, self.tra │
                             │       metadata):                                                            │
                             │ ❱ 605 │   │   │   _results, _artifacts = await self._build_results()        │
                             │   606 │   │   │   self._tracing_service.set_outputs(self.trace_name, _resul │
                             │   607 │   │                                                                 │
                             │   608 │   │   return _results, _artifacts                                   │
                             │                                                                             │
                             │ C:\Python311\Lib\site-packages\langflow\custom\custom_component\component.p │
                             │ y:640 in _build_results                                                     │
                             │                                                                             │
                             │   637 │   │   │   │   │   │   _results[output.name] = output.value          │
                             │   638 │   │   │   │   │   │   result = output.value                         │
                             │   639 │   │   │   │   │   else:                                             │
                             │ ❱ 640 │   │   │   │   │   │   result = method()                             │
                             │   641 │   │   │   │   │   │   # If the method is asynchronous, we need to a │
                             │   642 │   │   │   │   │   │   if inspect.iscoroutinefunction(method):       │
                             │   643 │   │   │   │   │   │   │   result = await result                     │
                             │ in search_documents:279                                                     │
                             ╰─────────────────────────────────────────────────────────────────────────────╯
                             ValueError: Error performing search in AstraDBVectorStore: 'content'

Reproduction

Setup a database collection of type vector with Jina integration (model: jina-embeddings-v2-base-en).
Load data into the collection.
Create a langflow RAG AstraDB template project with OLlama Embeddings (same model as (1)).
The AstraDB step crashes.

Expected behavior
Data should be returned from AstraDB.
Who can help?
No response
Operating System
Windows
Langflow Version
Latest
Python Version
3.11
Screenshot
No response
Flow File
No response

Hi @sabatale,
Thank you for your feedback! It would be great if you could share the Flow.json file for debugging.
Regarding the issue, I tested with Ollama using JINA embeddings and AstraDB VectorStore, and it works as expected. Could you please provide more details about your data ingestion pipeline? Is the data ingested through Langflow?
For reference, I have attached a screenshot of the working flow.
Vector Store RAG Ollama.json

Also, if the ingestion is not done through Langflow, please ensure that the Vector DB has the required fields. A sample data point from AstraDB ingested using Langflow will have the following structure:
Top-Level Keys:

_id: A string representing the unique identifier.
content: A string containing textual content.
$vector: An array of numerical values.
metadata: An object containing additional information.

Keys within metadata:

source: A string indicating the source URL.
title: A string representing the title.
language: A string specifying the language code.

Overall JSON Structure:
{
  "_id": "string",
  "content": "string",
  "$vector": [number, number, ...],
  "metadata": {
    "source": "string",
    "title": "string",
    "language": "string"
  }
}

Please ensure your data matches this structure so that it can be processed correctly. Let me know if you have any questions or need further assistance.

Could this information about the required DataStax schema for LangFlow please be added to the documentation?

This situation can be managed if the ingest pipeline utilizes the Langflow AstraDB component. I will create a separate issue to add this to the documentation. @cystema Thank you for the feedback.

@edwinjosechittilappilly Thanks for the template! It differs from the one we get when loading data outside of Langflow, which causes the error:
"_id": ""
"type": "CompositeElement"
"text": ""
"$vector": ""

repo: langflow-ai/langflow


text:
docs: update README.md

recomend -> recommend

thanks 🤗 merged!

authors: eltociear rogeriochaves

repo: langwatch/langevals


text:
Add a tiny_skia rendering backend

This adds a tiny_skia rendering backend which is used if vger fails to initialize or if wgpu uses a CPU backend.
It doesn't support blur radios and Z-indexing. Masking is currently quite expensive as tiny_skia doesn't support masking by rectangles.

Wow thanks so much! That's blazing fast for you to add this feature.

repo: lapce/floem


text:
log syntax for ignore

can't use !... to ignore more than one pattern

use something like -*mongo* (follow as in tj/debug)

repo: lapwinglabs/docker-compose-watch


text:
Allow overwrite forms for views

I wanted to be able to overwrite the form for each view (create, edit, view). The documentation does not contain information about this. I found the simplest solution that may not be correct. And I decided to share it. Now I can implement a method in each view that will overwrite the default form. For example:
class ViewCustomer extends ViewRecord
{
    protected static string $resource = CustomerResource::class;

    public static function customForm(Form $form): Form
    {
        return $form
            ->schema([]);
    }
}

Hey, I wasn't able to edit this PR for some reason so I opened a new one - #1002.
I've made some changes - I've cleaned up the code by using this method to fetch the resource table by default. It's been renamed to form(), and made not-static so that you can customize the form easier based on the current Livewire component / record.

authors: danharrin lolen

repo: laravel-filament/filament


text:
how to create a report from resources

For example
I have a loan resource and I need to create a report on them
Is it possible to implement it through a non-eloquent resource?
#start dat: '2023-01-01'
#end date: '2023-09-31'
#first line;
select count(*), sum(value) from loans where started_at <= '2023-01-01' and (closed_at is null or closed_at > '2023-01-01');
#for each period
select count(), sum(value) from loans where started_at >= 'start-of-period' and started_at < ('end-of-period'); #count and value of STARTED loans
select count(), sum(value) from loans where closed_at >= 'start-of-period' and closed_at < ('end-of-period'); #count and value of CLOSED loans
#last line
select count(*), sum(value) from loans where started_at <= '2023-09-31' and (closed_at is null or closed_at > '2023-09-31');

Hey! This non-Eloquent library is completely unoppionated about what you use it for - it just provides a way to "wire in" to the Laravel JSON:API implementation.
So yes, you could use it with the query builder to return whatever data you want. The only thing you'd need to consider is the encoder uses the class of the object it is encoding to the JSON:API format to work out how to encode it. So you wouldn't be able to just return rows from the database - you'd need to map them to a class that represents this data.
Hope that makes sense? Please close this issue if you don't have any follow-up questions.

Thanks for the answer
Can you help create a similar request?
{   "startData": {     "count": 125,     "value": 1001056.84   },   "endData": {     "count": 163,     "value": 1886604.11   },   lines: [     {       "period": "2023-01",       "loansStarted": 44,       "loansStartedValue": 228201.97,       "loansClosed": 31,       "loansClosedValue": 179153.48,       "interestFees": 10700.18,       "storageFees": 1370.60       "executionFees": 2500.20     },     ...   ]   "linesSum": {       "loansStarted": 432,       "loansStartedValue": 4603472.51,       "loansClosed": 394,       "loansClosedValue": 3730925.24,       "interestFees": 299315.25,       "storageFees": 51509.27       "executionFees": 60000.00   } }

So you'd need to take a look at the non-Eloquent docs and determine how to use it for your use case.
Having done the initial setup:
https://laraveljsonapi.io/docs/3.0/digging-deeper/non-eloquent.html#concept-initial-setup
For example, you'd need to decide whether that data is going to be returned by a query-all endpoint:
https://laraveljsonapi.io/docs/3.0/digging-deeper/non-eloquent.html#query-all-capability
Or a query-one:
https://laraveljsonapi.io/docs/3.0/digging-deeper/non-eloquent.html#read-capability
It's difficult for me to help out any further, because the whole concept of the non-Eloquent package is it allows you to do whatever you need to do, for your use case. Which is something I can't really determine!

Closing as information was provided.

authors: Yeleup lindyhopchris

repo: laravel-json-api/non-eloquent


text:
Maintenance

Hi @iWader
Are you still interested in maintaining this package?
If so, could we add support for laravel 5.5+ and 6.0?
Thanks!

cc @iWader

Hi,
This package was never published/reviewed when the laravel-notification-channels was setup. Feel free to take the package over. Not sure who is running the org now but I don't have admin permissions to give you access to the repo.

No worries, thanks for the update!

authors: atymic iWader

repo: laravel-notification-channels/pubnub


text:
Check if subscribed to any plan

If there are multiple price plans available on a product, it seems the only way to check if a user is subscribed to a product is by using subscribedToPlan and passing in every price id. Is there any reason we can't check based on product? In most cases, we just need to check if a user is subscribed to a certain product, it doesn't matter what pricing plan they are on. If we added a new pricing tier (ex: "quarterly"), we'd need to redeploy our app to check for that.
In theory the solution is to just check based on the name field, by using subscribed(), but that doesn't work in the case that we have multiple products or addons in a single subscription (i.e. I wouldn't be able to check if they have the "live-chat" add-on).

Hey @liran-co. Define "add-on" please. I think you're just looking for a simple query with scopes?
// Check if the user has at least one active subscription
$user->subscriptions()->active()->count();

// Check if the user has at least one subscription (any state).
$user->subscriptions()->count();

"Add-on" doesn't really mean much in this context, it's just a way to think about the use case. In our case a user can subscribe to "live-chat" separately or as part of another subscription.
For example, if we had a Pro and Enterprise plan plus a "live-chat" add-on where the user could either purchase "live-chat" separately or with a Pro / Enterprise plan. In that case, if we wanted to check in our app whether or not they are subscribed to the "live-chat" add-on, we need to check three cases:

Check if the user is subscribed('live-chat')
Check if the user is subscribedToPlan('live-chat', 'pro)
Check if the user is subscribedToPlan('live-chat', 'enterprise)

Plus on top of this, if "live-chat" had a monthly or yearly option, we'd need to check for both pricing plans.
There's actually three issues here that are related:

If we offer Pro/Enterprise, should those be the name of the subscription? Or should that still be something like default?
In the latter case for #1, we need to pass every pricing id to check if they are subscribed to a product
Depending on the answer to 1 & 2, if a product can be subscribed to independently and part of another subscription, checking for it becomes quite difficult.

I think you've just modelled your subscription flow not really optimal. I'd tackle the add on with a subscription item instead. This might be a better question to ask on a support channel so I'm kindly directing you to one of these channels as this tracker is only for feature requests or bugs:

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC
Thanks.

Sure...but either which way you model it doesn't solve the problem. Seems like this is the key to make this work: https://github.com/laravel/cashier/issues/956.

It's not since that only will rename a bunch of internal variables and methods. No structural changes will be applied for that issue.

Ideally we'd store the product id though, not just the plan id that way we can check if they are subscribed to a specific product, regardless of plan.

But that's stored for you? That's the stripe_id that you need on a subscription I think.

That's the Stripe subscription id, not the product id though. Ideally we'd store a product_id in addition to the stripe_plan. Plans live under Products so doing so would provide us a way to check the existence of a subscription to a product without caring what pricing plan they are on.

Gotcha. I haven't had time to really dive deeply into Stripe products yet. It's only recently been released. I also don't think I'll get around to this soon tbh.

authors: driesvints liran-co

repo: laravel/cashier


text:
Returned XSRF-TOKEN value could not be decoded

I'm trying to use XSRF-TOKEN with a RESTful client application. The initial GET request returns a cookie as following:
XSRF-TOKEN=eyJpdiI6IlhOQUlkUEN2cUh6MjJoYlAxWXRod3c9PSIsInZhbHVlIjoiS2l2Y3ZFXC9XZEp3T0o5SjhMNTdJVVhEMTdWRkx6YVo5b1JTemZBQW9HdDRHS3BxdzBXbHVqeFdXNVhuelRlWW43T01RdlkzWkhvWlpFamhuSm1ocTZ3PT0iLCJtYWMiOiI2MzIwZjQ2YmQ2ZjM3NzU4ZjE5ZjQ2Y2EzMDcxZmI4NjU5OTlmN2EyZTRkMjY0YmRkYzgzOWU3NzQ1ZjQzMjAwIn0%3D; expires=Wed, 18-Nov-2015 12:01:39 GMT; Max-Age=7200; path=/

Then I make a post request with the X-XSRF-TOKEN as following:
X-XSRF-TOKEN=eyJpdiI6IlhOQUlkUEN2cUh6MjJoYlAxWXRod3c9PSIsInZhbHVlIjoiS2l2Y3ZFXC9XZEp3T0o5SjhMNTdJVVhEMTdWRkx6YVo5b1JTemZBQW9HdDRHS3BxdzBXbHVqeFdXNVhuelRlWW43T01RdlkzWkhvWlpFamhuSm1ocTZ3PT0iLCJtYWMiOiI2MzIwZjQ2YmQ2ZjM3NzU4ZjE5ZjQ2Y2EzMDcxZmI4NjU5OTlmN2EyZTRkMjY0YmRkYzgzOWU3NzQ1ZjQzMjAwIn0%3D

Laravel framework (5.1.24) throws a DecryptException (DecryptException in BaseEncrypter.php: The payload is invalid).

Actually I got a lot of invalid XSRF-TOKEN like that:
eyJpdiI6IlVJM2x1XC9nSzlpZ1VacW9rK2NcL2podz09IiwidmFsdWUiOiJQaTFXRWJjSGJGOUpzWElrQ0lad0o0UFArYTFHdmVJc20wWXA2Wnk3WktUazYzQzRQeXVzdWM3VEZ5QlZiZnpEbmxrMWM0Y1ZzSXpcL2NzeEdxelwvTUV3PT0iLCJtYWMiOiJlYjg0OTU1ZWEzYmNhYzY3YTQwZmFiZjE5ZjVkMzUyYTAzYWNlMzdhY2Y4YmZmZTA5ZGY5ZTllZmY2OTY2YmEyIn0%3D

eyJpdiI6IlJlZURXKzBJRWdnSzVEWU01RTBuWHc9PSIsInZhbHVlIjoiaDA4NlVlSEJkZkpqNVpObGxabzJPTTJlSytsXC9xWTlKU3FLUDFtNzBKRDJJTTR1NWp4NFVOakVXT3ZzclpqY3VTMjlvVTNhVWtCazNwZUpWQXNVRUtnPT0iLCJtYWMiOiJhODE3ODY0NDNmNDU1NzM2M2Y2YTYyOThhMTRkODFjMWQzOTI1YWRjN2NmZGZhYmIzM2I4Yzg4ZTRkNmEzZDkxIn0%3D

eyJpdiI6Ik5pMkd6aEQ3a0dtcTFONk1xVzNQWkE9PSIsInZhbHVlIjoiSFdERHRjSTRHVllpcm1cL0RBaEQ2VUlnY2M2QWdYWmVXWVQwYTB4eEl0SU1zelFoakRSYmQ0azEzMk1zem1CU25ZRnFDbnRYSHJzRGU4VDM0Q0oyWFBnPT0iLCJtYWMiOiI5NTk2NDYyNzZkOWJjNjkwNmY5NTA2NzE4ZGMxZGUyZTQ1ZWIyMmVhNmNhNDNmYzI0ZGMwZWEwODIyYmZkNTczIn0%3D

eyJpdiI6IjM0M1dVQWZxZzVwMzFYWGM1Q0YySUE9PSIsInZhbHVlIjoiN1p3K1I5TExOQ0Z2SWFJMk5iZnVZNGMwTFN4QXNsZVcxb3lsUERycHg2RVQzOG9VM2tLV0FqQ2xLTmt2T0M3dW93UnIyRndZWnZJckVOaVRtVnVhNHc9PSIsIm1hYyI6IjNjNTM4OGU3MmE2NjBkNTRhYmU3MzRlYzRlZjBkNTg1ZDMzOTE0ZWE2ZTdiNjkxYzYzOGVkN2M1NjdkNzIzMjUifQ%3D%3D

All of them end with '%3D'

In order to fix this bug, add this line:
$payload = urldecode($payload);

at the top of the method:
Illuminate\Encryption\BaseEncrypter#getJsonPayload($payload)

A pull request with some tests would help push this through faster if you already have a fix.

repo: laravel/framework


text:
issue on generating events

When i am going to create an event using artisan command, after generate the event class, it will generate an <?php before the output message. for example :
php artisan generate:event UserRegistered
i will get an output like this :
<?phpEvent created successfully.

what's your laravel version ? as i remember laravel 5.1,5.2 don't have any generate namespace commands .. do you use a package ?

its on laravel 5.3 dev branch.

it seems there is a global problem with generating outputs. it may be an CLI output or returning a collection. when i try to return user notifications i get an output like this :
<?php[{"id":"987e82e8-fbcd-45e5-a27d-0104f11a7d35","type":"App\\Notifications\\WelcomeMessage","notifiable_id":4,"notifiable_type":"App\\User","data":{"name":"mehran"},"created_at":"2016-08-18 06:25:45","updated_at":"2016-08-18 06:25:45","read_at":"2016-08-18 10:55:45"},{"id":"12f25641-3a6c-4c52-ac04-552e4b44db57","type":"App\\Notifications\\WelcomeMessage","notifiable_id":4,"notifiable_type":"App\\User","data":{"name":"mehran"},"created_at":"2016-08-18 06:25:16","updated_at":"2016-08-18 06:25:16","read_at":"2016-08-18 10:55:16"}]

I just cloned laravel/laravel and I'm on the develop branch (which uses 5.3) and I don't have any commands starting with generate.
Other commands like php artisan make:event TestEvent work as expected.

Sounds like an issue with a 3rd party package.

authors: DuckThom GrahamCampbell ahmedash95 mehranhadidi


text:
Query Builder REPLACE INTO

Laravel Version: 5.2/5.3
PHP Version: 7.0.1
Database Driver & Version: 5.6.27

Description:
Are there any plans adding REPLACE INTO as a query builder method? we have insert, update, delete and it'll be nice to have replace into as well.
I understand it's not an actual valid SQL statement but i think the benefit of having it overcomes the fact that it's not.
Steps To Reproduce:

Sorry, but we only process bug reports here.

@GrahamCampbell where would be the suitable place to request a feature? slack/twitter?

@VinceG Guessing https://github.com/laravel/internals

@sisve thanks.

authors: GrahamCampbell VinceG sisve


text:
None of my relationships are working in 5.4

Laravel Version: 5.4 Release
PHP Version: 7.0.8
Database Driver & Version: MYSQL 5.7.13

Description:
BadMethodCallException
Error: Call to undefined method Illuminate\Database\Query\Builder::save()
As for the associate method and manually updating my model attributes, these are silent and appear to work as normal however they are not inserted into the database.
Steps To Reproduce:
Setup any one-to-many relationship and attempt to save.

Nevermind, i'm an idiot. Using the save() on the wrong Model. Geezus


text:
Unnecessary query when eager loading

Laravel Version: 5.5.14
PHP Version: 7.1.3
Database Driver & Version:

Description:
When eager loading a relation, a query is still made if the values in IN are all empty. I feel an optimisation could be made to check to see if all the values in the IN will be empty and avoid the query.
Steps To Reproduce:
$widget = Widget::findOrFail(1);
$widget->parent_id = null;
$widget->save();

$widget->load('parent');

Results in the query SELECT * FROM widget_parents WHERE widget_parents.id IN (''). Unless I'm missing some edge cases that I can't think of, this will always return an empty result.

There may be domain logic that forbids widget_parents.id == '', but it is valid on a database level. You can have strings as primary keys.

My point is that a relationship will never join on a field with an empty value. Will it?

My point is that a relationship will never join on a field with an empty value. Will it?

Of course they can, if the field is the appropriate type. Example (postgres):
CREATE TABLE foo (
  id VARCHAR(1) PRIMARY KEY
);
CREATE TABLE bar (
  id     BIGSERIAL,
  foo_id VARCHAR(1) CONSTRAINT bar_foo_id_fkey REFERENCES foo
);

INSERT INTO foo (id) VALUES ('');
INSERT INTO bar (id, foo_id) VALUES (123, '');

SELECT *
FROM bar
  JOIN foo ON bar.foo_id = foo.id;
-- => will show the result correctly

Maybe you're mixing it up with WHERE … IN (NULL) which can never match?

For suggestions and feature requests please use the https://github.com/laravel/internals repo.

authors: mfn sisve themsaid votemike


text:
Can't use camelCase naming with new Eloquent attribute syntax

Laravel Version: 9.5.1
PHP Version: 8.1.3
Database Driver & Version: MySQL 8.0.28-1debian10

Description:
I cannot use camelCase attribute names with the new Eloquent attribute syntax.
Steps To Reproduce:

The following code results in Call to undefined method App\Models\MyModel::getTestFooAttribute(). Modifying the $appends to use 'test_foo' correctly calls the custom attribute.
Camel case attributes are supported using the get...Attribute() and set...Attribute() syntax which is why I believe this to be an error.
class MyModel extends Model
{
  protected $appends = ['testFoo'];

  protected function testFoo(): Attribute
  {
    return Attribute::make(
      get: fn () => 'test'
    );
  }
}

$appends needs to be test_foo

I respect that's how it works right now I just thought this may be a bug since you can use camel case attributes with the older get...Attribute() and set...Attribute() syntax.

authors: driesvints timhoeppner


text:
Method $kernel->terminate() is not being called

Hello, I just created a new Laravel 5 a minute ago
And I notice the $kernel->terminate at the end of the index.php file is not being called.
Therefore the Session is not being saved() and CRSF securitity doesn't work etc.

Anybody who ran into this issue recently? I am currently using 6.2 and suddenly my project is having very high latency.


text:
[5.3] Collection - New apis for where()

Four new API’s for less-than-or-equal, less-than, greater-than-or-equal and greater-than.
$collection->whereLte()
$collection->whereLt()
$collection->whereGte()
$collection->whereGt()

Surely this should go to 5.2?

Prefer to just let people use the operators directly.


text:
Update whoops to fix issues with PHP7

Whoops 1.* doesn't work well with PHP7. Update to current latest whoops to fix.

Sorry, Laravel 4.2 does not support PHP 7, and is not supported.

Only critical security fixes will reach L4.2.

authors: GrahamCampbell xwiz


text:
[5.4] Support for calling artisan in different queues

// Support for calling artisan in different queues. For example
Artisan::queue('test', ['id' => $id], "queue-2");
Artisan::queue('test', ['id' => $id], "queue-1");

@GrahamCampbell Thank you. I changed the style.

What if you want to change the connection too? Needs to be thought out more in that regards.

authors: taylorotwell yekexuan


text:
[5.6] Added 'rules' method to SendsPasswordResetEmails class

Implemented a rules() method that returns an array of rules for the email validation.
Utilized the new rules() method in the validateEmail() method.
The intention is to simplify rules extension in this trait, by simply overriding the rules() method in the controller, while maintaining the current funcionality stable.

Thinking the docblock comment is ok as-is.

@devcircus Should I take the change in the comment?

I'd just leave and see what Taylor says

You can just override the method entirely and specify your rules.

@taylorotwell Ok, it's just that a really close trait (ResetsPasswords) works with the rules() method.
IMO, having two different ways to extend such close traits it's counter-intuitive. I had already overriden the rules() method in ResetsPasswords, when I tried to do the same with SendsPasswordResetEmails I was shocked it didn't worked, since most things in Laravel follow a pattern.

authors: PedroFTW devcircus taylorotwell


text:
[5.2] Fix count() usage

This PR updates Eloquent/Builder andQuery/Builder to run Laravel 5.2 in PHP version 7.2.
It was necessary to do this due to the update of the native count () function of PHP, where in version 7.2 it stopped accepting null parameter, and accepting only Array or Countable
Reference: http://php.net/manual/en/migration72.incompatible.php#migration72.incompatible.warn-on-non-countable-types

@laurencei
I thank you! It's a pleasure to be able to help the Laravel community.

Only make the related changes.

authors: jeanjar taylorotwell


text:
[6.x] Fixed case where app.key is not base64 encoded

Several places in the code check for base64: in app key:

https://github.com/laravel/framework/blob/62d8a0772553f3dff2d52a3ab062182c5efd75a2/src/Illuminate/Encryption/EncryptionServiceProvider.php#L61
https://github.com/laravel/framework/blob/0b12ef19623c40e22eff91a4b48cb13b3b415b25/src/Illuminate/Auth/Passwords/PasswordBrokerManager.php#L87
https://github.com/laravel/framework/blob/0b12ef19623c40e22eff91a4b48cb13b3b415b25/src/Illuminate/Queue/QueueServiceProvider.php#L259

I like to think this case should handle it too.

I've patched this by just asking the encrypter for the key.

Perfect thanks - ref; https://github.com/laravel/framework/commit/84765753ee164e7b0978021c4d42711011aed340

authors: bytestream taylorotwell


text:
[7.x] Fix PHPDoc return type on Collection's unique()

The unique method on the \Illuminate\Database\Eloquent\Collection class always returns a new static instance and never an instance of \Illuminate\Support\Collection.
This PR corrects the PHPDoc.

Please send this fix to the 6.x branch.

authors: Daanra GrahamCampbell


text:
[9.x] Add orderByField query builder method

This PR add a orderByField query builder method that is only supporter by MySQL grammar.

Please send this to 10.x, thanks.

authors: driesvints mikaelpopowicz


text:
[11.x]  Added notifiable connection property to specify database connection for notifications

Description:
This pull request addresses the issue where Laravel's notification system does not behave as expected when dealing with models stored in secondary or legacy databases (from issue #50564). Currently, notifications attempt to store themselves using the database connection of the notifiable model, even if it's not the primary Laravel connection.
To solve this problem, this pull request introduces a new $notifiableConnection property to the Illuminate\Notifications\Notifiable trait. This property allows developers to specify the database connection to be used for notifications, overriding the connection specified in the notifiable model as new feature for 11.x
Usage:
class Teacher extends Model
{
    use Notifiable;

    protected $connection = 'secondary-connection';

    protected $notifiableConnection = 'primary-connection';
}

Testing:

Integration tests have been conducted to verify the behavior of notifications across different database connections.

Any feedback or suggestions for improvement are welcome.

Please send this to 10.x

Please send this to 10.x

Thought, it could be a feature for 11.x
Am, sending this to 10.x

Sorry I thought this was a bug fix. Happy to re-open this for 11.x

Sorry I thought this was a bug fix. Happy to re-open this for 11.x

Thank you, am not making PR for 10.x then.
Or, Should it be available for both 10.x and 11.x?

@yourchocomate You should fix the 'StyleCI' issue in your code: https://github.styleci.io/analyses/MPRQ7v

@yourchocomate You should fix the 'StyleCI' issue in your code: https://github.styleci.io/analyses/MPRQ7v

Thanks, I'm updating it.

This is a tough nut to crack. I think the only way to do this is to introduce a new config setting somewhere where the default database connection of the DatabaseNotification can be defined.

Should I do that?

@yourchocomate want to see what @taylorotwell has to say first.

This is a tough nut to crack. I think the only way to do this is to introduce a new config setting somewhere where the default database connection of the DatabaseNotification can be defined.

Is it understood why it doesn't default to default (which could be changed by introducing a publishable config for it)? It's not clear to me the behavior of the connection resolver... leeching the notifiable model's $connection, I might presume, has to do with the trait setup?

This is a tough nut to crack. I think the only way to do this is to introduce a new config setting somewhere where the default database connection of the DatabaseNotification can be defined.

Is it understood why it doesn't default to default (which could be changed by introducing a publishable config for it)? It's not clear to me the behavior of the connection resolver... leeching the notifiable model's $connection, I might presume, has to do with the trait setup?

EDIT
if I just add this to Illuminate\Notifications\DatabaseNotification, I'm able to both generate notifications on the notifiable, and retrieve them as expected:
public function __construct()
{
    $this->connection = config('database.notifications') ?: config('database.default');
}

Thought of that fix but made my mind think if this approach is not standard approach of explicitly accessing config like that.
Waiting for the suggestion for right approach from @taylorotwell

Atm I do not immediately see how DatabaseNotification takes over the connection of its parent model.

if I just add this to Illuminate\Notifications\DatabaseNotification

You shouldn't overwrite a model's constructor as that's not supported and can lead to a variety of bugs.

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.

authors: driesvints emjayess me-shaon taylorotwell yourchocomate


text:
Add methods to the HTTP kernel to append middleware relative to other middleware

This PR allows for the programmatic insertion of middleware into the priority, relative to existing prioritised middleware.
Reasoning
My thought behind this is that third-party package developers can now register the priority of their middleware without requiring the user to mess with it themselves. I am currently developing a package where the priority of middleware will depend on several factors, so mostly, I need this. XD
Methods
Kernel::addToMiddlewarePriorityRelative()
This method adds middleware to the Kernel::$middlewarePriority property relative to other middleware. This method is protected and exists for the other two methods.
Kernel::addToMiddlewarePriorityAfter()
This method adds middleware to the Kernel::$middlewarePriority property after existing middleware.
$kernel->addToMiddlewarePriorityAfter(
    \Illuminate\Routing\Middleware\ValidateSignature::class,
    [
        \Illuminate\Cookie\Middleware\EncryptCookies::class,
        \Illuminate\Contracts\Auth\Middleware\AuthenticatesRequests::class,
    ],
);

The above adds the ValidateSignature middleware to the priority list after the two provided pieces of middleware, ensuring that it will run after them.
This method also accepts a string and not just an array, so you can insert after a single piece of middleware.
Kernel::addToMiddlewarePriorityBefore()
This method adds middleware to the Kernel::$middlewarePriority property before existing middleware.
$kernel->addToMiddlewarePriorityBefore(
    \Illuminate\Routing\Middleware\ValidateSignature::class,
    [
        \Illuminate\Cookie\Middleware\EncryptCookies::class,
        \Illuminate\Contracts\Auth\Middleware\AuthenticatesRequests::class,
    ],
);

The above adds the ValidateSignature middleware to the priority list before the two provided pieces of middleware, ensuring that it will run before them.
This method also accepts a string and not just an array, so you can insert before a single piece of middleware.

Just adding a +1 here that I'd definitely find these methods useful!

Thanks for this! This is a great replacement for some similar manual hacking that I did within my application to achieve such a thing.
Just curious: is there any intention of adding this to the Middleware configurator class as well? If not then I'll probably take that up at some point, as this MR was the last bit that I needed to replace my custom Kernel implementation with using just the configurators, so would gladly then update the configurator so I can bundle everything there.

Thanks for this! This is a great replacement for some similar manual hacking that I did within my application to achieve such a thing.
Just curious: is there any intention of adding this to the Middleware configurator class as well? If not then I'll probably take that up at some point, as this MR was the last bit that I needed to replace my custom Kernel implementation with using just the configurators, so would gladly then update the configurator so I can bundle everything there.

Thanks 😊
I did actually plan to do that, but I've been super busy until quite recently. If I start it before you ill link it to this PR so you should get notified!

Thanks for this! This is a great replacement for some similar manual hacking that I did within my application to achieve such a thing.
Just curious: is there any intention of adding this to the Middleware configurator class as well? If not then I'll probably take that up at some point, as this MR was the last bit that I needed to replace my custom Kernel implementation with using just the configurators, so would gladly then update the configurator so I can bundle everything there.

I've created a PR for this here: #53326

authors: jnoordsij leewillis77 ollieread


text:
Pulse installation with Livewire v2

Pulse Version
1.0.0-beta-5
Laravel Version
10.4.1
PHP Version
8.2
Livewire Version
2.11
Database Driver & Version
No response
Description

Steps To Reproduce
Laravel pulse installation with livewire v2

Pulse requires Livewire 3.2 as a minimum.

authors: jbrooksuk shafiramaki

repo: laravel/pulse