server

how to use server?

how to use server with curl?

curl -X 'POST' \
  'http://localhost:8000/v1/completions' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "prompt": "Tell me a story",
  "temperature": 1,
  "max_new_tokens": 128,
  "top_k": 50,
  "top_p": 1,
  "stop_words": [
    "string"
  ]
}'

(2) C:\Users\ArabTech\Desktop\2>curl -X POST "http://localhost:8000/v1/completions" -H "accept: application/json" -H "Content-Type: application/json" -d "{"prompt": "Tell me a story", "temperature": 1, "max_new_tokens": 128, "top_k": 50, "top_p": 1, "stop_words": ["string"]}"
{"detail":"'text'"}

not run

win11
anaconda
python 3.11

(2) C:\Users\ArabTech\Desktop\2>curl -X POST "http://localhost:8000/v1/completions" -H "accept: application/json" -H "Content-Type: application/json" -d "{"text": "Tell me a story", "temperature": 1, "max_new_tokens": 128, "top_k": 50, "top_p": 1, "stop_words": ["string"]}"
{"detail":"'text'"}
(2) C:\Users\ArabTech\Desktop\2>curl -X POST "http://localhost:8000/v1/completions" -H "Content-Type: application/json" -d "{"text": "Tell me a story"}"
{"detail":"'text'"}
(2) C:\Users\ArabTech\Desktop\2>

(2) C:\Users\ArabTech\Desktop\2\nexa-sdk>nexa server --host <IP_ADDRESS> --port 8000  Phi-2:q4_0
INFO:     Started server process [5432]
INFO:     Waiting for application startup.
2024-09-09 17:43:43,550 - INFO - Model Path: Phi-2:q4_0
Model Phi-2:q4_0 already exists at C:\Users\ArabTech.cache\nexa\hub\official\Phi-2\q4_0.gguf
2024-09-09 17:43:44,213 - INFO - model loaded as <nexa.gguf.llama.llama.Llama object at 0x0000015396476210>
INFO:     Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
INFO:     <IP_ADDRESS>:57924 - "GET /docs HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:57924 - "GET /openapi.json HTTP/1.1" 200 OK
2024-09-09 17:44:28,514 - ERROR - Error in text generation: 'text'
INFO:     <IP_ADDRESS>:57925 - "POST /v1/completions HTTP/1.1" 500 Internal Server Error
2024-09-09 17:45:18,081 - ERROR - Error in text generation: 'text'
INFO:     <IP_ADDRESS>:57948 - "POST /v1/completions HTTP/1.1" 500 Internal Server Error
2024-09-09 17:45:35,981 - ERROR - Error in chat completions: 'text'
INFO:     <IP_ADDRESS>:57954 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error
{"detail":"'text'"}

response_1725929336990.json

{
"detail": "'text'"
}

posrtman

(2) C:\Users\ArabTech\Desktop\2>nexa server --host <IP_ADDRESS> --port 8000 Phi-2:q4_0
INFO:     Started server process [25424]
INFO:     Waiting for application startup.
2024-09-09 18:13:58,307 - INFO - Model Path: Phi-2:q4_0
Model Phi-2:q4_0 already exists at C:\Users\ArabTech.cache\nexa\hub\official\Phi-2\q4_0.gguf
2024-09-09 18:13:58,945 - INFO - model loaded as <nexa.gguf.llama.llama.Llama object at 0x0000022FB3901A90>
INFO:     Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
INFO:     <IP_ADDRESS>:59196 - "GET /docs HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:59196 - "GET /openapi.json HTTP/1.1" 200 OK
2024-09-09 18:14:24,686 - ERROR - Error in text generation: 'text'
INFO:     <IP_ADDRESS>:59197 - "POST /v1/completions HTTP/1.1" 500 Internal Server Error
2024-09-09 18:20:09,358 - ERROR - Error in text generation: 'text'
INFO:     <IP_ADDRESS>:59270 - "POST /v1/completions HTTP/1.1" 500 Internal Server Error

(2) C:\Users\ArabTech\Desktop\2>nexa run gemma-2b:q2_K
Downloading gemma-2b/q2_K.gguf...
q2_K.gguf:   0%|▏                                                                | 3.53M/1.32G [00:01<10:29, 2.24MiB/s]
An error occurred while downloading or processing the model: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2580)
Failed to pull model gemma-2b:q2_K
Unknown task: UNKNOWN. Skipping inference.
(2) C:\Users\ArabTech\Desktop\2>

(2) C:\Users\ArabTech\Desktop\2>nexa run gemma-2b:q4_K_M
Model gemma-2b:q4_K_M already exists at C:\Users\ArabTech.cache\nexa\hub\official\gemma-2b\q4_K_M.gguf

k
2024-09-09 18:48:02,962 - ERROR - Error during generation: 'text'
Traceback (most recent call last):
File "C:\Users\ArabTech\Desktop\2\nexa-sdk\nexa\gguf\nexa_inference_text.py", line 173, in run
delta = chunk["choices"][0]["text"]

        ~~~~~~~~~~~~~~~~~~~^^^^^^^^

KeyError: 'text'

Send

(2) C:\Users\ArabTech\Desktop\2>nexa server --host <IP_ADDRESS> --port 8000  Meta-Llama-3-8B-Instruct:q2_K
INFO:     Started server process [4512]
INFO:     Waiting for application startup.
2024-09-09 19:11:50,509 - INFO - Model Path: Meta-Llama-3-8B-Instruct:q2_K
Model Meta-Llama-3-8B-Instruct:q2_K already exists at C:\Users\ArabTech.cache\nexa\hub\official\Meta-Llama-3-8B-Instruct\q2_K.gguf
2024-09-09 19:11:50,931 - INFO - model loaded as <nexa.gguf.llama.llama.Llama object at 0x000002158396A450>
INFO:     Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
INFO:     <IP_ADDRESS>:51991 - "GET /docs HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:51991 - "GET /openapi.json HTTP/1.1" 200 OK
2024-09-09 19:12:25,168 - ERROR - Error in text generation: 'text'
INFO:     <IP_ADDRESS>:51992 - "POST /v1/completions HTTP/1.1" 500 Internal Server Error
2024-09-09 19:12:39,967 - ERROR - Error in text generation: 'text'
INFO:     <IP_ADDRESS>:52001 - "POST /v1/completions HTTP/1.1" 500 Internal Server Error
2024-09-09 19:13:04,016 - ERROR - Error in chat completions: 'text'
INFO:     <IP_ADDRESS>:52008 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error

{
"detail": "'text'"
}

(2) C:\Users\ArabTech\Desktop\2> nexa server Meta-Llama-3-8B-Instruct:q2_K
INFO:     Started server process [12260]
INFO:     Waiting for application startup.
2024-09-09 19:18:20,635 - INFO - Model Path: Meta-Llama-3-8B-Instruct:q2_K
Model Meta-Llama-3-8B-Instruct:q2_K already exists at C:\Users\ArabTech.cache\nexa\hub\official\Meta-Llama-3-8B-Instruct\q2_K.gguf
2024-09-09 19:18:21,057 - INFO - model loaded as <nexa.gguf.llama.llama.Llama object at 0x000001C6EBD23950>
INFO:     Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
INFO:     <IP_ADDRESS>:52197 - "GET /docs HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:52197 - "GET /openapi.json HTTP/1.1" 200 OK
2024-09-09 19:19:04,015 - ERROR - Error in text generation: 'text'
INFO:     <IP_ADDRESS>:52198 - "POST /v1/completions HTTP/1.1" 500 Internal Server Error
2024-09-09 19:19:50,832 - ERROR - Error in text generation: 'text'
INFO:     <IP_ADDRESS>:52208 - "POST /v1/completions HTTP/1.1" 500 Internal Server Error
2024-09-09 19:19:59,782 - ERROR - Error in text generation: 'text'
INFO:     <IP_ADDRESS>:52210 - "POST /v1/completions HTTP/1.1" 500 Internal Server Error
2024-09-09 19:20:35,015 - ERROR - Error in chat completions: 'text'
INFO:     <IP_ADDRESS>:52211 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error
2024-09-09 19:21:15,760 - ERROR - Error in text generation: 'text'
INFO:     <IP_ADDRESS>:52297 - "POST /v1/completions HTTP/1.1" 500 Internal Server Error
2024-09-09 19:21:33,361 - ERROR - Error in text generation: 'text'
INFO:     <IP_ADDRESS>:52300 - "POST /v1/completions HTTP/1.1" 500 Internal Server Error
2024-09-09 19:22:24,176 - ERROR - Error in text generation: 'text'
INFO:     <IP_ADDRESS>:52304 - "POST /v1/completions HTTP/1.1" 500 Internal Server Error

I tried on other models and tried on a website
http://<IP_ADDRESS>:8000/docs#/default/chat_completions_v1_chat_completions_post
and a program
postman
and all attempts failed.

tGET/Read RootPOST/v1/completionsGenerate TextParametersCancelNo parametersRequest bodyapplication/jsonServersThese operation-level options override the global server options./ExecuteClearResponsesCurlcurl -X 'POST' \
  'http://<IP_ADDRESS>:8000/v1/completions' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "prompt": "Tell me a story",
  "temperature": 1,
  "max_new_tokens": 128,
  "top_k": 50,
  "top_p": 1,
  "stop_words": [
    "string"
  ]
}'Request URLhttp://<IP_ADDRESS>:8000/v1/completionsServer response
Code | Details
-- | --
500Undocumented | Error: Internal Server ErrorResponse bodyDownload{   "detail": "'text'" }Response headers access-control-allow-credentials: true  access-control-allow-origin: http://<IP_ADDRESS>  content-length: 19  content-type: application/json  date: Tue,10 Sep 2024 02:25:40 GMT  server: uvicorn  vary: Origin

[t](http://<IP_ADDRESS>:8000/docs#/default)
GET
/
Read Root
POST
/v1/completions
Generate Text
Parameters
Cancel
No parameters
Request body
application/json
{
"prompt": "Tell me a story",
"temperature": 1,
"max_new_tokens": 128,
"top_k": 50,
"top_p": 1,
"stop_words": [
"string"
]
}
Servers
These operation-level options override the global server options.
/
Execute
Clear
Responses
Curl
curl -X 'POST'
'http://<IP_ADDRESS>:8000/v1/completions'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{
"prompt": "Tell me a story",
"temperature": 1,
"max_new_tokens": 128,
"top_k": 50,
"top_p": 1,
"stop_words": [
"string"
]
}'
Request URL
http://<IP_ADDRESS>:8000/v1/completions
Server response
Code	Details
500
Undocumented
Error: Internal Server Error
Response body
Download
{
"detail": "'text'"
}
Response headers
access-control-allow-credentials: true
access-control-allow-origin: http://<IP_ADDRESS>
content-length: 19
content-type: application/json
date: Tue,10 Sep 2024 02:25:40 GMT
server: uvicorn
vary: Origin
Responses
Code	Description

it is run
itis work
(2) C:\Users\ArabTech\Desktop\2\nexa-sdk>nexa server gemma
INFO:     Started server process [16584]
INFO:     Waiting for application startup.
2024-09-10 10:42:17,166 - INFO - Model Path: gemma
Downloading gemma-1.1-2b-instruct/q4_0.gguf...
q4_0.gguf: 100%|█████████████████████████████████████████████████████████████████| 1.44G/1.44G [07:24<00:00, 3.49MiB/s]
Successfully downloaded gemma-1.1-2b-instruct/q4_0.gguf to C:\Users\ArabTech.cache\nexa\hub\official\gemma-1.1-2b-instruct\q4_0.gguf
Successfully pulled model gemma-1.1-2b-instruct:q4_0 to C:\Users\ArabTech.cache\nexa\hub\official\gemma-1.1-2b-instruct\q4_0.gguf, run_type: NLP
2024-09-10 10:49:46,544 - INFO - model loaded as <nexa.gguf.llama.llama.Llama object at 0x000001B772B23210>
INFO:     Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
INFO:     <IP_ADDRESS>:53721 - "POST /v1/completions HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:53806 - "POST /v1/completions HTTP/1.1" 200 OK
postman
post      http://<IP_ADDRESS>:8000/v1/completions
body row json
{
"prompt": "Tell me a story",
"temperature": 1,
"max_new_tokens": 128,
"top_k": 50,
"top_p": 1,
"stop_words": ["string"]
}
send
prety
{
"result": "In a hidden valley nestled between towering mountains, there lived a brave princess named Anya. Her kingdom was under a cruel spell, and the once-vibrant land was now shrouded in an eerie gloom.\n\nOne fateful night, Anya heard a haunting melody carried on the wind. Curious, she followed the sound to a secluded grove. There, she found an ancient oak tree that whispered secrets in a language unknown to human ears.\n\nAs Anya listened intently, she discovered a tale of a forgotten curse and a magical artifact that could break the spell. Guided by the tree's wisdom, Anya embarked on a perilous quest through treacherous forests and sparkling"
}

thank you

thank to https://github.com/user-attachments/assets/9b24c8f3-5049-4549-888b-46adf3345477

<EMAIL_ADDRESS>
NexaAI/nexa-sdk

thank you

{
"prompt": "Tell me a story",
"temperature": 1,
"max_new_tokens": 128,
"top_k": 50,
"top_p": 1,
"stop_words": [
"string"
]
}

http://<IP_ADDRESS>:8000/v1/completions
{
"prompt": "Tell me a story",
"temperature": 1,
"max_new_tokens": 128,
"top_k": 50,
"top_p": 1,
"stop_words": [
"string"
]
}
{
"result": "The wind whispered secrets through the ancient oak tree, rustling its leaves and sending shivers down its wrinkled bark. Beneath its watchful gaze, a young girl sat nestled in a woven mat, her eyes closed, her mind lost in a world of her own creation.\n\nHer story began with a tear, a silent spill on the fabric of her world. The world she built was a canvas of vibrant colors, filled with talking animals, sparkling rivers, and towering mountains. With each breath, her story grew, expanding beyond the boundaries of the mat.\n\nThe wind became her pen, guiding her words across the page. She spun tales of courage"
}
thank you
but how run
curl -X 'POST'
'http://localhost:8000/v1/completions'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{
"prompt": "Tell me a story",
"temperature": 1,
"max_new_tokens": 128,
"top_k": 50,
"top_p": 1,
"stop_words": [
"string"
]
}'
on cmd win11

on postman
http://<IP_ADDRESS>:8000/v1/completions
{
"prompt": "Tell me a story",
"temperature": 1,
"max_new_tokens": 128,
"top_k": 50,
"top_p": 1,
"stop_words": [
"string"
]
}
{
"result": "The wind whispered secrets through the ancient oak tree, rustling its leaves and sending shivers down its wrinkled bark. Beneath its watchful gaze, a young girl sat nestled in a woven mat, her eyes closed, her mind lost in a world of her own creation.\n\nHer story began with a tear, a silent spill on the fabric of her world. The world she built was a canvas of vibrant colors, filled with talking animals, sparkling rivers, and towering mountains. With each breath, her story grew, expanding beyond the boundaries of the mat.\n\nThe wind became her pen, guiding her words across the page. She spun tales of courage"
}

Hi @ayttop, Here is how to execute curl command on Windows:
Step 1. Open Command Prompt:

Press Win + R, type cmd, and press Enter.
Alternatively, you can press Win + X and select Command Prompt or Windows Terminal.

Step 2. Run the curl command: Copy and paste the following command into the Command Prompt. For Windows, ensure that the JSON data in the -d flag is properly formatted:
curl -X POST "http://localhost:8000/v1/completions" ^
  -H "accept: application/json" ^
  -H "Content-Type: application/json" ^
  -d "{ \"prompt\": \"Tell me a story\", \"temperature\": 1, \"max_new_tokens\": 128, \"top_k\": 50, \"top_p\": 1, \"stop_words\": [ \"string\" ] }"

The caret ^ is used for multi-line commands in Windows
Alternatively, you can put everything on one line:

curl -X POST "http://localhost:8000/v1/completions" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"prompt\": \"Tell me a story\", \"temperature\": 1, \"max_new_tokens\": 128, \"top_k\": 50, \"top_p\": 1, \"stop_words\": [ \"string\" ] }"


The toast is not shown if the application was previously hidden by the lock screen

With biometric lock or PIN lock enabled:

Launch the application, in which toasts should be displayed.
We are waiting for the device screen to lock in time or press the lock button.
Press the side button to unlock the device.
The application is displayed.
We initiate the appearance of a toast.
Nothing happens.
We are trying to call the desktop of the device, we press the central button.
The dialog for unlocking by fingerprint or entering a pin code is shown. Let's unlock the phone.
We initiate a toast.
We see his appearance on the screen.

Similar behavior when disabling screen off in developer settings in debug mode.
There are no errors in the console.
Tested on ZTE Blade 20 Smart, Android 9

I will close this.
Apparently, it will be correct to set this flag so that the application is not displayed when the screen is locked.
android:showWhenLocked="false"


Support for five different download mode of patches , additional code…

… and APKBUILD

In order to rebuild software in a clean directory , the following files must be handled by SBOM
It is implemented now, but with limited testing.

Internal download
code
patches
APKBUILD
External download
code ( compressed tarballs )
patches


DataPrep Component | Qdrant | ingest_documents(doc_path: DocPath)

The following should support passing "http://path-to-pdf" to test the service; By default the function looks for file name in the local container.
curl -X POST -H "Content-Type: application/json" -d '{"path":"/path/to/document"}' http://localhost:6000/v1/dataprep
[[
ingest_documents(doc_path: DocPath)
docment_loader(doc_path)
fitz.open(file_path)
]]

@sachop0974
Yes, you are right.
Thank you for your feedback.
It supports to pass remote link file to test the service.
Please refer to  https://github.com/xiguiw/GenAIExamples/blob/doc-update/ChatQnA/docker/gaudi/README.md

Hi  we close the issue. please feel free to reopen it if any problem


swift-module-differ: refactor node definition to a separate file. NFC

The original implementation file contains both nodes definition and detection
logics. This patch splits the two parts.

@swift-ci please smoke test

Hi @nkcsgexi, our nightly master branch build on s390x started failing with the following error after this refactoring:
/root/swift-master/swift/tools/swift-api-digester/ModuleAnalyzerNodes.cpp:1163: error: undefined reference to 'swift::ide::api::operator<<(llvm::raw_ostream&, swift::ide::api::SDKNodeKind)'

Any suggestions on how to fix this?  Thanks!

hmm, this operator is defined in APIDigesterData.h, which should be included in ModuleAnalyzerNodes.cpp. Could you try to move the operator declaration around and see if it could fix the error?

Thanks @nkcsgexi.  We tried moving the definition of SwiftDeclCollector::printTopLevelNames from ModuleAnalyzerNodes.cpp to ModuleAnalyzerNodes.h and the build could continue.  Is it possible to make this change?

Hey @vivkong , I have an upcoming patch that may resolve the build failure you observed. I'll push it soon and ping you there.

Thanks @nkcsgexi!  I will try your new changes when it's available.
I actually tried building on Ubuntu 18.04 and I didn't hit the compile error so I think it was clang.  I then updated my clang to a newer version on Ubuntu 16.04 and didn't see any compile error anymore.


enhance build

if test starts running but process dies, the tests fail
if tests timeout and result file can't be found tests fail

:+1:


What's the difference between ‘one2one’ mode and 'one2many' mode in data preprocessing?

Hi, memray. As mentioned above, and why you do this? Thank you!

Hello. During teacher forcing, given an input document (e.g., paper abstract in kp20k), the model output is one key phrase; during test or policy gradient training (at each time step, the decoder takes the previously generated token as input, instead of the ground truth token), the output of model is a bunch of key phrases, generated by beam search. So basically, one2one is for negative log likelihood type of training, and one2many is used in evaluation and policy gradient types of training.

Are the one2one and one2many  specified,  are similar to the diagram in the title "Forward and backward propagation on each time-step" in the link
https://leonardoaraujosantos.gitbooks.io/artificial-inteligence/content/recurrent_neural_networks.html.
Is it so .. ?

@rajeshkumargp If I understood correctly, it's not. I think it's just notions of data format.

@zhhengcs as explained by Eric.
@rajeshkumargp one2many just means one source text (long text) corresponds to multiple target texts (keyphrases), not the structure of RNN. Our model is a seq2seq RNN, so it is same to the structure Many to many(RNN) (Translation) as mentioned in the referred article.

＠memray　Thank you for your help, I still have a question that how to extract multi-word phrase using baseline methods such as tf-idf and textrank ? It seems it just rank the weight of one word,how to combine them to phrase?

@memray 　Thank you for your help, I still have a question that how to extract multi-word phrase using baseline methods such as tf-idf and textrank ? It seems it just rank the weight of one word,how to combine them to phrase?

If I remember it correctly, all baseline methods compute the score of phrase by averaging the scores of its words. Please check this paper for more details.

@memray Thank you very much,this tool  is good to use! I saw you implement RL training strategy in your code,do you know some paper in this direction?  I have read some paper about  summarization with RL of socher et al .ACL'17. But one sentence summarization and multi-keyphrase may have difference. Do you follow some paper or just plan to do some pioneering work?

@zhhengcs  If you want to go with REINFORCE, then it all depends on how you choose your reward functions. For example in this work, we tried to generate questions given documents and answers using QA datasets. For question generation, we want the questions to be 1) syntactically fluent, 2) can be answered by QA models. We used a pretrained language model as metric of fluency, and use a pretrained QA model as the metric for the 2nd criterion. So here in keyphrase generation, we can try a lot of things like, to boost up the diversity of generated keyphrases, so I tried to have a reward to penalize similar/same KPs (didn't help much, might because my implementation was bad). On the other hand, it's natural to use the metric you use to evaluate keyphrase quality (like f score here) as reward, to massage your network to get slightly better f score, although personally I think this is less interesting.


Features/Milestones for trpc-nuxt

Hey! I just have some questions about if there is a plan to integrate this as an official adapter package for nuxt since I don't see any other similar open source projects that do the same thing. It's definitely very difficult to maintain these amazing projects, so I just wanted to set my expectations right since I'm only really just using it and trying things out and not working on it myself. I completely understand if there's no plans for anything at all.
Anyways, TLDR: wanted to try and build a chat app for fun and found some lacking things/wishlist of some of the things/issues I was wondering if it would be implemented (again, I don't know how difficult these things would be, so it's just a daydream of mines if you can forgive me for saying):

Integration for using with dbs/Prisma? Trying this right now, though it doesn't seem to work, maybe I'm just dumb or I think this might require something from the plugin?
Subscriptions/Websockets support? Definitely something on my wishlist if I'm planning on doing real-time things
Which leads to needing things like integrating packages like superjson for Dates etc from Prisma

I can add more if I find any, but these were some of the things I found were a bit more important since I want to continue using trpc-nuxt, thanks for listening to my blabber tho!

Leaving this here for now https://github.com/trpc/trpc/issues/2084

Hi! I am waiting for this PR to get merged for my next update.


ensures clause on function with named unit return value

This fails with a panic:
proof fn test() -> (u: ())
    ensures u == ()
{ }

[Verus all-hands]
This produces:
thread 'rustc' panicked at 'internal error: missing mode', vir/src/modes.rs:142:27
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


Example using authentication in GRANDstack??

I am trying to set up Authentication in my GrandStack starter. I have scoured the docs and graphql-auth-directives readme but I still can not set up authentication correctly. Is there a FULL working example using authentication in grandstack anywhere?? This would be SOOOO helpful. In the docs there are several different solutions mentioned but I have no idea how to set any of them up correctly. Any example of a fully working using authentication (signup/login) would go a long way.

https://grandstack.io/docs/neo4j-graphql-js-middleware-authorization.html

i appreciate you response but I have already scoured the docs and tried their way but couldn't get it working. That is why I asked for a working example. Just something I could use as reference.

Take a look at this fork i did.
https://github.com/BrenoMazieiro/grand-stack-starter/blob/master/api/src/interfaces/http/server.js

Take a look at this fork i did.
https://github.com/BrenoMazieiro/grand-stack-starter/blob/master/api/src/interfaces/http/server.js

Thank you @BrenoMazieiro !!!

@thelovesmith  I have updated the fork a bit, with subscriptions and upload file.
packages aswell.
Enjoy! =)

I just saw!! Thank so much @BrenoMazieirom Such a great resource!

@thelovesmith I have updated the fork a bit, with subscriptions and upload file.
packages aswell.
Enjoy! =)

This fork is head-over-shoulders the most important educational-kit for this stack on the web.
This is the only instance of an complete server-side api flow for authentication AND authorization that I've found that doesn't skip the server-side logic for an auth0 snippet. The exact part that's missing from all the apollo/neo4j-graphql-js/grandstack/ documentation
Thanks so much, after scrapping off a flow this complex (below) the rest of my-first-api-project should be a piece of cake! If there was a comment box where I could insist this fork (or a more developed version of it) surface to the top of the ecosystem documentation list, I'm leaving that comment


Missing TZ in timestamp

Add module:
pip3 install python-dateutil
Simply added/modified the following to plantgw.py:
Added import:
from dateutil.tz import tzlocal
Modified now() to include tzlocal():
MQTTAttributes.TIMESTAMP.value:    datetime.now(tzlocal()).isoformat(),
data['timestamp'] = datetime.now(tzlocal()).strftime(self.config.mqtt_timestamp_format)

Thanks for this. The 2021.12 update officially broke all of my timestamp entities that didn't have a timezone, including Plant Gateway's. This helped me resolve manually. Would be nice to see something like this change enter the source.


Removal of class AgentBasedStandaloneConsoleProxyManager

The AgentBasedStandaloneConsoleProxyManager class is neither manually
instatiated anywhere in the code nor via Spring. Further checking in the
interface which the class implements, shows that the use for classes
implementing the EventBus interface relies on instances generated by the
Spring framework, which discards the possibility of the class being
created by EJB. Being the class useless, it was discarded.

Hi @alexandrelimassantana,
I checked and also could not find any references for that class. That is nice that you are removing some code that was left behind.
It seems that something happened whit Jenkins while processing your PR. Could you just force push to run Jenkins analysis again?

@alexandrelimassantana,  Could you squash your commits ?

LGTM (only code review), but we need to test it and verify console proxy functionality

@bhaisaab, we definitely should test that. Since there were none references of that class, we suggested removing it. ACS uses spring, and since there is neither XML configuration nor annotation in the class to instantiate an object, we believe it is not used. Moreover, we did not find any docs describing its difference from the other ConsoleProxy class that is configured as a Spring bean. We also did not find any tutorial describing how to use it.

@rafaelweingartner @alexandrelimassantana Did you test whether the console proxy is still in there?
@anshul1886 Do you or any of your colleagues have the oportunity to test this in a hyperv environment?

This file could be used while fixing some time taking bugs in Console Proxy code. It can be used in similar way as described on https://cwiki.apache.org/confluence/display/CLOUDSTACK/QuickCloud

@anshul1886, we really tried to look up some doc about the use of that class, unfortunately nothing came up on our google searches. After reading the link you sent, I understand its use. Having said that, the removal of that class cannot be executed. However, this kind of problem can be easily avoided if we used proper java doc in classes.
What if we start doing that?
What do you think of that Java doc I committed?
A proper Java doc can help to avoid classes that grow almost without control, since the purpose of the class is displayed to everyone, developers would have information to rely on when extending a class functionality or when writing new ones and looking for a place to put them.

Based on code review I can live with this, though I am not happy with wiki-links in javadoc. wiki links may change independant of versions of the code.

@DaanHoogland, I just used the link there because before the link that was presented by @anshul1886, we have not being able to find that page.
I agree with you that links in code may get broken, but I did not have any other ideas on how to facilitate the search for that information. I can remove the link if you prefer.

@anshul1886 I trust you are alright with this change in comment, are you?

LGTM. I am ok with this change.

LGTM based on these tests:
nosetests --with-marvin --marvin-config=${marvinCfg} -s -a tags=advanced,required_hardware=true \
component/test_vpc_redundant.py \
component/test_routers_iptables_default_policy.py \
component/test_routers_network_ops.py \
component/test_vpc_router_nics.py \
smoke/test_loadbalance.py \
smoke/test_internal_lb.py \
smoke/test_ssvm.py \
smoke/test_network.py

Result:
Test iptables default INPUT/FORWARD policies on VPC router ... === TestName: test_01_single_VPC_iptables_policies | Status : SUCCESS ===
ok
Test redundant router internals ... === TestName: test_01_isolate_network_FW_PF_default_routes_egress_true | Status : SUCCESS ===
ok
Test redundant router internals ... === TestName: test_02_isolate_network_FW_PF_default_routes_egress_false | Status : SUCCESS ===
ok
Test redundant router internals ... === TestName: test_01_RVR_Network_FW_PF_SSH_default_routes_egress_true | Status : SUCCESS ===
ok
Test redundant router internals ... === TestName: test_02_RVR_Network_FW_PF_SSH_default_routes_egress_false | Status : SUCCESS ===
ok
Create a VPC with two networks with one VM in each network and test nics after destroy ... === TestName: test_01_VPC_nics_after_destroy | Status : SUCCESS ===
ok
Create a VPC with two networks with one VM in each network and test default routes ... === TestName: test_02_VPC_default_routes | Status : SUCCESS ===
ok
Check the password file in the Router VM ... === TestName: test_isolate_network_password_server | Status : SUCCESS ===
ok
Check that the /etc/dhcphosts.txt doesn't contain duplicate IPs ... === TestName: test_router_dhcphosts | Status : SUCCESS ===
ok
Test to create Load balancing rule with source NAT ... === TestName: test_01_create_lb_rule_src_nat | Status : SUCCESS ===
ok
Test to create Load balancing rule with non source NAT ... === TestName: test_02_create_lb_rule_non_nat | Status : SUCCESS ===
ok
Test for assign & removing load balancing rule ... === TestName: test_assign_and_removal_lb | Status : SUCCESS ===
ok
Test to verify access to loadbalancer haproxy admin stats page ... === TestName: test02_internallb_haproxy_stats_on_all_interfaces | Status : SUCCESS ===
ok
Test create, assign, remove of an Internal LB with roundrobin http traffic to 3 vm's ... === TestName: test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80 | Status : SUCCESS ===
ok
Test SSVM Internals ... === TestName: test_03_ssvm_internals | Status : SUCCESS ===
ok
Test CPVM Internals ... === TestName: test_04_cpvm_internals | Status : SUCCESS ===
ok
Test stop SSVM ... === TestName: test_05_stop_ssvm | Status : SUCCESS ===
ok
Test stop CPVM ... === TestName: test_06_stop_cpvm | Status : SUCCESS ===
ok
Test reboot SSVM ... === TestName: test_07_reboot_ssvm | Status : SUCCESS ===
ok
Test reboot CPVM ... === TestName: test_08_reboot_cpvm | Status : SUCCESS ===
ok
Test destroy SSVM ... === TestName: test_09_destroy_ssvm | Status : SUCCESS ===
ok
Test destroy CPVM ... === TestName: test_10_destroy_cpvm | Status : SUCCESS ===
ok
Test Remote Access VPN in VPC ... === TestName: test_vpc_remote_access_vpn | Status : SUCCESS ===
ok
Test VPN in VPC ... === TestName: test_vpc_site2site_vpn | Status : SUCCESS ===
ok
Test for port forwarding on source NAT ... === TestName: test_01_port_fwd_on_src_nat | Status : SUCCESS ===
ok
Test for port forwarding on non source NAT ... === TestName: test_02_port_fwd_on_non_src_nat | Status : SUCCESS ===
ok
Test for reboot router ... === TestName: test_reboot_router | Status : SUCCESS ===
ok
Test for Router rules for network rules on acquired public IP ... === TestName: test_network_rules_acquired_public_ip_1_static_nat_rule | Status : SUCCESS ===
ok
Test for Router rules for network rules on acquired public IP ... === TestName: test_network_rules_acquired_public_ip_2_nat_rule | Status : SUCCESS ===
ok
Test for Router rules for network rules on acquired public IP ... === TestName: test_network_rules_acquired_public_ip_3_Load_Balancer_Rule | Status : SUCCESS ===
ok

----------------------------------------------------------------------
Ran 33 tests in 17592.484s

OK

And:
nosetests --with-marvin --marvin-config=${marvinCfg} -s -a tags=advanced,required_hardware=false \
smoke/test_routers.py \
smoke/test_network_acl.py \
smoke/test_privategw_acl.py \
smoke/test_reset_vm_on_reboot.py \
smoke/test_vm_life_cycle.py \
smoke/test_vpc_vpn.py \
smoke/test_service_offerings.py \
component/test_vpc_offerings.py \
component/test_vpc_routers.py

Result:
Test router internal advanced zone ... === TestName: test_02_router_internal_adv | Status : SUCCESS ===
ok
Test restart network ... === TestName: test_03_restart_network_cleanup | Status : SUCCESS ===
ok
Test router basic setup ... === TestName: test_05_router_basic | Status : SUCCESS ===
ok
Test router advanced setup ... === TestName: test_06_router_advanced | Status : SUCCESS ===
ok
Test stop router ... === TestName: test_07_stop_router | Status : SUCCESS ===
ok
Test start router ... === TestName: test_08_start_router | Status : SUCCESS ===
ok
Test reboot router ... === TestName: test_09_reboot_router | Status : SUCCESS ===
ok
test_privategw_acl (integration.smoke.test_privategw_acl.TestPrivateGwACL) ... === TestName: test_privategw_acl | Status : SUCCESS ===
ok
Test reset virtual machine on reboot ... === TestName: test_01_reset_vm_on_reboot | Status : SUCCESS ===
ok
Test advanced zone virtual router ... === TestName: test_advZoneVirtualRouter | Status : SUCCESS ===
ok
Test Deploy Virtual Machine ... === TestName: test_deploy_vm | Status : SUCCESS ===
ok
Test Multiple Deploy Virtual Machine ... === TestName: test_deploy_vm_multiple | Status : SUCCESS ===
ok
Test Stop Virtual Machine ... === TestName: test_01_stop_vm | Status : SUCCESS ===
ok
Test Start Virtual Machine ... === TestName: test_02_start_vm | Status : SUCCESS ===
ok
Test Reboot Virtual Machine ... === TestName: test_03_reboot_vm | Status : SUCCESS ===
ok
Test destroy Virtual Machine ... === TestName: test_06_destroy_vm | Status : SUCCESS ===
ok
Test recover Virtual Machine ... === TestName: test_07_restore_vm | Status : SUCCESS ===
ok
Test migrate VM ... === TestName: test_08_migrate_vm | Status : SUCCESS ===
ok
Test destroy(expunge) Virtual Machine ... === TestName: test_09_expunge_vm | Status : SUCCESS ===
ok
Test to create service offering ... === TestName: test_01_create_service_offering | Status : SUCCESS ===
ok
Test to update existing service offering ... === TestName: test_02_edit_service_offering | Status : SUCCESS ===
ok
Test to delete service offering ... === TestName: test_03_delete_service_offering | Status : SUCCESS ===
ok
Test for delete account ... === TestName: test_delete_account | Status : SUCCESS ===
ok
Test for Associate/Disassociate public IP address for admin account ... === TestName: test_public_ip_admin_account | Status : SUCCESS ===
ok
Test for Associate/Disassociate public IP address for user account ... === TestName: test_public_ip_user_account | Status : SUCCESS ===
ok
Test for release public IP address ... === TestName: test_releaseIP | Status : SUCCESS ===
ok
Test create VPC offering ... === TestName: test_01_create_vpc_offering | Status : SUCCESS ===
ok
Test VPC offering without load balancing service ... === TestName: test_03_vpc_off_without_lb | Status : SUCCESS ===
ok
Test VPC offering without static NAT service ... === TestName: test_04_vpc_off_without_static_nat | Status : SUCCESS ===
ok
Test VPC offering without port forwarding service ... === TestName: test_05_vpc_off_without_pf | Status : SUCCESS ===
ok
Test VPC offering with invalid services ... === TestName: test_06_vpc_off_invalid_services | Status : SUCCESS ===
ok
Test update VPC offering ... === TestName: test_07_update_vpc_off | Status : SUCCESS ===
ok
Test list VPC offering ... === TestName: test_08_list_vpc_off | Status : SUCCESS ===
test_09_create_redundant_vpc_offering (integration.component.test_vpc_offerings.TestVPCOffering) ... === TestName: test_09_create_redundant_vpc_offering | Status : SUCCESS ===
ok
Test start/stop of router after addition of one guest network ... === TestName: test_01_start_stop_router_after_addition_of_one_guest_network | Status : SUCCESS ===
ok
Test reboot of router after addition of one guest network ... === TestName: test_02_reboot_router_after_addition_of_one_guest_network | Status : SUCCESS ===
ok
Test to change service offering of router after addition of one guest network ... === TestName: test_04_chg_srv_off_router_after_addition_of_one_guest_network | Status : SUCCESS ===
ok
Test destroy of router after addition of one guest network ... === TestName: test_05_destroy_router_after_addition_of_one_guest_network | Status : SUCCESS ===
ok
Test to stop and start router after creation of VPC ... === TestName: test_01_stop_start_router_after_creating_vpc | Status : SUCCESS ===
ok
Test to reboot the router after creating a VPC ... === TestName: test_02_reboot_router_after_creating_vpc | Status : SUCCESS ===
ok
Tests to change service offering of the Router after ... === TestName: test_04_change_service_offerring_vpc | Status : SUCCESS ===
ok
Test to destroy the router after creating a VPC ... === TestName: test_05_destroy_router_after_creating_vpc | Status : SUCCESS ===
ok

----------------------------------------------------------------------
Ran 42 tests in 8650.925s

OK

Haven't tested the actual functionality, this just shows you didn't break anything else.

Merging based on comments and 2LGTMs


Rancher-project scoped AlertmanagerConfig is NOT loaded as a config in alertmanager pod

Cluster Setup

Kubernetes version:
Type of Cluster : EKS
Installation :

rancher-monitoring version: 100.1.2+up19.0.3  ==> prometheus-operator version v0.50.0
prometheus-federator version v0.1.0

Describe the bug
As a project owner, i create a 'Project Monitors' inside my project 'my-project'. Every thing seems to work perfectly. Prometheus, Alertmanager and Grafana instances are deployed in 'cattle-my-project-id-monitoring' namespace (only Cluster Admins have access to this namespace).
When creating an AlertmanagerConfigs object (routes  and receivers), config is not loaded in alertmanager pod !
As a project owner i can't do anything, since the stack is deployed in a namespace that I don't have access to !!!
As cluster Admin i'm able to force Alertmanager object config to load this config in a secret but i' don't think that's the good way !!

@Labidi-github thanks for filing this issue.
FYI, re:

As cluster Admin i'm able to force Alertmanager object config to load this config in a secret but i' don't think that's the good way !!

Based on the RBAC permissions assigned in: https://github.com/rancher/prometheus-federator/blob/132d866b5282d2a9240216fb34ab9d9b2d111e71/charts/rancher-project-monitoring/0.1.0/templates/dashboard-roles.yaml#L89
If you have edit permissions in the registration namespace (which should be provided to all Project Members), once the secret is created you do have the ability to modify it without cluster admin permissions. You just can't necessarily easily create it on the Rancher UI.

The config not being loaded into the Alertmanager pod is a weird bug. @ronhorton did we test this use case on release?

@Labidi-github, I looked into this with @ronhorton and was able to observe that the creation of an AlertmanagerConfig in a project namespace (e.g. default) did result in a modification of the Alertmanager configuration (which is found in the Status page of the Alertmanager UI) in a normal RKE cluster. We did not check whether this is an issue isolated to an EKS cluster, although I believe it is unlikely that that is the case.
Important: Could you provide more steps to reproduce your setup? Also, could you copy and paste the YAML for the Alertmanager CR created in your release namespace (cattle-project-<id>-monitoring) as well as the configuration found on the Status page of the Alertmanager UI?

Possible issues / gotchas:

If you tested whether the configuration "worked" by testing if an alert is sent, it should be noted that routes / receivers configured with an AlertmanagerConfig will only send alerts if the PromQL query used to construct the alert value has a namespace label whose value matches the namespace the AlertmanagerConfig is created within. So for example, an AlertmanagerConfig will not send the alert if the PrometheusRule defined to send the alert was vector(1) unless you added the namespace as an additional label that needs to be sent. ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#alertmanagerconfigspec
The AlertmanagerConfig will only be picked up by a Project Alertmanager if it resides within a Project Namespace since the Alertmanager CR per project is only defined to pick up namespaces that have the project label attached to them: https://github.com/rancher/prometheus-federator/blob/cccd595419fafae464b0d1041d4f6e5ff55d127e/charts/rancher-project-monitoring/0.1.0/templates/alertmanager/alertmanager.yaml#L59. This means that to set up the alerting, you will need to create a PrometheusRules in a project namespace (not cattle-monitoring-system, so that the alerting rule is picked up by your Project Prometheus, not your Cluster Prometheus) that has the label namespace in the outputted series as well as an AlertmanagerConfig in a project namespace (so that the alerting configuration is picked up by your Project Alertmanager, not your Cluster Alertmanager) to ensure that everything works as expected.

Since the reporter hasn't added more info. I am closing this as stale. It can be reopened if needed.


x/gamm product constant invariant

closes: #287

Codecov Report

Merging #302 (bd5df74) into main (3269b2b) will decrease coverage by 0.01%.
The diff coverage is 46.25%.

@@            Coverage Diff             @@
##             main     #302      +/-   ##
==========================================
- Coverage   18.01%   18.00%   -0.02%
==========================================
  Files         134      135       +1
  Lines       21796    21833      +37
==========================================
+ Hits         3927     3930       +3
- Misses      17221    17253      +32
- Partials      648      650       +2

Impacted Files
Coverage Δ

x/gamm/types/pool_asset.go
68.51% <0.00%> (ø)

x/gamm/keeper/invariants.go
23.52% <17.14%> (-6.78%)
:arrow_down:

x/gamm/types/math.go
69.04% <69.04%> (ø)

x/gamm/keeper/math.go
100.00% <100.00%> (+7.40%)
:arrow_up:

Continue to review full report at Codecov.

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

LGTM pending moving math functions back, and adding comments

All applied!


Beta testing

Hello i Want to Test the skill but the alexa App says My Account have no peremmision

Hi
I habe updated the instructions. View readme Beta Tester Section


Remove call to _actor.UpdateState on taking a snapshot and update exa…

…mple app

we shouldn't be calling _actor.UpdateState(new PersistedSnapshot(snapshot, index)) after taking a snapshot, as there is nothing to update

I updated the example app to write to the console after taking a snapshot to preserve existing behaviour

👍

the PersistedSnapshot message can be used to aknowledge that the snapshot passed. Why can't it be there?

Well it doesn't really make sense with the UpdateState function. You're saying "save the current state of the actor" followed by "now update the state of the actor with the same state we just saved" ... but it hasn't changed - it's the same state, so there's nothing to update, hence why call the function? If you need acknowledgement that the operation succeeded you can always wrap await _persistence.PersistSnapshotAsync in a try-catch, or use a continuation, as if it fails the provider should throw an exception.
The code inside of UpdateState should be only concerned with updating the state of the actor - it should never have other side effects.

Yes u are right


Enhance datavalidator for template fields

Also https://github.com/OpenSlides/OpenSlides/pull/6052: please check if the two errors in the linked issue can no longer occur.

No, these issues belong to the models validator which I didn't change

Ahh ok, my bad


provide a mechanism to set celestia fees and gas

We are using a constant celestia fee of 100_000 when submitting blobs. It's not clear what unit this is, nor how this value is obtained.
We should allow making this configurable in a first step, but better provide a mechanism to dynamically set it.

#590 migrated to using celestia-node fee estimation instead of fixed pricing.


generate-access-logs get more accurate time range

Before opening, please confirm:

[X] I have checked to see if my question is addressed in the FAQ.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

App Id
No response
Region
No response
Amplify Hosting feature
Logging
Describe the bug
When I use cli to get access logs using the following command
aws amplify generate-access-logs --domain-name <name> --app-id <id> --start-time 2022-09-29T14:00:00Z --end-time 2022-09-29T14:30:00Z

It always returns me the log of the entire hour, instead of the 30 minutes.
Expected behavior
I'd like to have a more accurate logs so that I can find the issue easier.
Reproduction steps

use cli to get the access logs

aws amplify generate-access-logs --domain-name <name> --app-id <id> --start-time 2022-09-29T14:00:00Z --end-time 2022-09-29T14:30:00Z

see the time range of the logs, it's the entire hour

Build Settings
No response
Additional information
No response

Hey @0618, Thank you for reaching. I would suggest opening a issue on the https://github.com/aws/aws-cli repository for better assistance as Amplify cli does not maintain the commands provides by aws-cli.


Return 500 and a body when the application crashes

Hello!
Currently when the web handler crashes the connection is closed. I think we would want to instead return 500 and a body, perhaps Internal server error.
We would also want to ensure that the error is logged using the Erlang logger.

Wrapped the call to the HTTP handler in a gleam/erlang.{rescue} 🎉
Also added a super small wrapper around the logger:error method.  Works in the interim, until we decide on anything more robust!

Brill, thank you


Upload file component has no visual target area when dragging and dropping a file

This issue is from May 2023 external accessibility audit report.
Usability issue
Issue ID:
DAC_Usability_Upload_File_01
URLs:
https://govuk-frontend-pr-3503.herokuapp.com/full-page-examples/upload-your-photo-success
Screen shots

There is no indication provided for users to know that they can drag and drop files onto the page, as well as when doing so, any indication of where they can drop the file, possibly resulting in the file being dropped in an incorrect location and not being successfully added for uploading.
Current code ref(s)
#photo
Cognitive user comments

“Drag and drop works for photo upload. However, there is no text information or box that appears to tell me where to drop it while I am in the process of dragging a photo on the page. I would normally expect that, as this is what usually tells me that a photo can be uploaded in this way. Without it, this functionality would go overlooked by myself and other users unless it had something to tell me this functionality was present”

Solution
Some users rely on visual indication to convey functionality of components to aid them in understanding what is available to them presently on the page. Consider providing some kind of indication on the page that the drag and drop feature is available, and when doing so that there is also an indication of where to drop the file.

This is the user agent's native form control. Pretty much all UA's support dragging and dropping of files into inputs, though I'm not aware of any that provide a visual affordance when doing so.
We could try rolling our own version of a file upload, but that's not a small ask as we'd likely want to reproduce a fair amount of the native functionality—a visual button, drag and drop, showing the name of the selected file, the option to select multiple files simultaneously, and potentially the accept and capture attributes.
We would be investing time and resources into producing something that will, optimistically, equal the functionality of what already exists, and has the potential to be worse. Although I've made a very basic spike to provide a visual affordance on top of the native input, I don't think there's that much value in changing the current component.

Comment from @davidc-gds on Slack, copied here for posterity:

I feel like this one is more of a “add evidence to our backlog item on file upload, and consider making a better file uploader in the future”?

It doesn't seem like there's much appetite for us to do anything here at this time. As such, I'm going to close this issue.
The usability issue raised has already been noted in the backlog issue. Discussions about drag and drop functionality, as well as multiple examples of them in use, can be found there: https://github.com/alphagov/govuk-design-system-backlog/issues/49


Update cert-manager in staging bundle

Issue #, if available:
Description of changes:
Update cert-manager in staging bundle
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve

/lgtm
/approve


Fix e2e-latest-rancher workflow for aks-operator

Fix e2e-latest-rancher workflow
https://github.com/rancher/aks-operator/actions/workflows/e2e-latest-rancher.yaml

finally green


Submit and show MCQ Answer

Features

MCQs can be selected
Selection will cause an update using the already defined API call submitAnswer
Selecting MCQ in the GradingWorkspace does not cause anything to happen

Pull Request Test Coverage Report for Build 404

2 of 11 (18.18%)  changed or added relevant lines in 4 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.04%) to 25.508%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/components/academy/grading/GradingWorkspace.tsx
0
1
0.0%

src/components/assessment/AssessmentWorkspace.tsx
1
2
50.0%

src/components/workspace/index.tsx
1
2
50.0%

src/components/workspace/MCQChooser.tsx
0
6
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/components/academy/grading/GradingWorkspace.tsx
1
11.76%

Totals

Change from base Build 400:
0.04%

Covered Lines:
755

Relevant Lines:
2519

💛  - Coveralls

I use equality to check if a button should be "pressed" (Is there a better way around this?). As such, all the checks returned false due to the http request returning answer as a string. I've opened up an issue here, and added a workaround (and TODO) in the saga


Support for IE 10

Wondering if testing against & subsequently supporting modern IE versions would ever be in the cards.

We've decided that we can't really commit to supporting IE so until something changes we are currently going to stick to recent versions of Firefox and Chrome.


numpy error!

ValueError: numpy.ndarray size changed, may indicate binary incompatibility.
Expected 96 from C header, got 88 from PyObject!

This is a common error and happens when your NumPy isn't either up to date or compatible with the rest of the packages. My recommendation is to update your NumPy package or reinstall it.


🐛 BUG: Cannot deploy my angular app

What version of Wrangler are you using?
2.1.13
What operating system are you using?
Linux
Describe the Bug
I used to be able to deploy my angular app without any problem. After moving to new machine and fresh installation of wrangler I cannot do that:
 wrangler publish
 ⛅ wrangler 2.1.13
--------------------
▲ [WARNING] Processing wrangler.toml configuration:

    - 😶 Ignored: "type":
      Most common features now work out of the box with wrangler, including modules, jsx,
  typescript, etc. If you need anything more, use a custom build.
    - Because you've defined a [site] configuration, we're defaulting to "workers-site" for the
  deprecated `site.entry-point`field.
      Add the top level `main` field to your configuration file:
      ```
      main = "workers-site/index.js"
      ```

✘ [ERROR] The entry-point file at "workers-site/index.js" was not found.

I would expect that the upgrade between wrangler 2.0.x and 2.1.x would be smooth and migration to be done automatically.

Hi,
This issue can be closed, I'm sick and I didn't notice the error that wrangler slapped in my face.
BR,
Dariusz


Fix expansions

Synchronizing handleStateNormal() may end up blocking gossip on bootstrapping nodes as the gossip thread will block on acquiring a lock on the StorageService instance (seen on clusters with 9+ nodes), which then can prevent the node from contacting any seeds successfully and crashing.

@schlosna fysa


Scrollbar.limit.y calculated wrong

Checks

[X] Not a duplicate.

Version
8.7.4
Description
** When scrolling down to the bottom of the page, the container seems to be longer, as it really is. When scrolling down again, the limit updates, but breaks other plugins functions. Page is using Barba for dynamic Content loading.**
Steps to Reproduce

Scroll down to the bottom - container is longer then it should
Scroll down again and the container height gets updated.

Online Demo
No response

Not familiar with the library you are using, but I think manually call scrollbar.update() after contents changed would solve this issue.

actually, this happens without switching the pages. Just found out this happens on both, top of the scroll-container and the bottom. I could provide a link to the stage if you would like to have a look.

no, its simple scrolling. feel free to take a look:
https://schmidt.pttn.li/
user: stage
pw: st4ge!

Thanks for the demo!
It is the lazyload animation/transition that causes the problem. Images are transformed by translateY(100%) before loading and translateY(0%) after loaded, thus affecting thescrollHeight. The easiest way to fix this issue is to "clip" those content via:
main {
  overflow: hidden;
}

FYI: this issue also occurs on native scrollbars as we are using the same mechanism to calculate dimensions
https://user-images.githubusercontent.com/6022672/156504800-3bd74c5d-be08-406d-bc2c-40ae9dfd4390.mp4

that worked like a charm. thanks !


Analyse uploaded data

Predecessors:

[ ] #6

Tasks:

[x] Research about XPath in PHP
[ ] Research about XQuery in PHP
[ ] Handle automatic analysis after files uploaded
[ ] translate incoming pattern to XQuery
[ ] Cache results in database

xquery wahrscheinlich sinnvoller für komplexere querys


istioctl analyze IST0137 ignoring namespaces?

Bug description
Is istioctl analyze's logic for IST0137 checks ignoring namespaces incorrectly?
When I run istioctl analyze --all-namespaces on my cluster/mesh, I get warnings like this:
Warning [IST0137] (Deployment redacted-service.ns1) This deployment redacted-service is associated with multiple services [ns1/redacted-service ns2/redacted-service] using targetPort "api" but different ports: [8082 8085].
Warning [IST0137] (Deployment redacted-service.ns2) This deployment redacted-service is associated with multiple services [ns2/redacted-service ns1/redacted-service] using targetPort "api" but different ports: [8085 8082].

I do have two services with identical Deployment names, identical Deployment labels, identical Service names, and identical  Service selectors. However, they are in separate K8s namespaces, and don't seem to be interfering with each other.
K8s label selectors are scoped to the namespace of the referring object (at least for Service), right? (I can't find any clear specification of that in K8s docs, but they do seem to confirm that.)
Assuming so, it seems that istioctl analyze's logic for IST0137 checks doesn't "know" that a Service's label selector is scoped to the referring object's namespace.
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[x] User Experience
[ ] Developer Infrastructure
[ ] Upgrade
Expected behavior
That istio analyze wouldn't "think" that labels matched across namespace and that the above case was something to warn about.
Steps to reproduce the bug
Create working Deployments and Services consistent with description above.
Version (include the output of istioctl version --remote and kubectl version --short and helm version --short if you used Helm)
client version: 1.10.3
control plane version: 1.9.7
data plane version: 1.9.7 (89 proxies), 1.8.3 (1 proxies)

How was Istio installed?
Via istioctl manifest generate and then applying generated K8s manifests via Argo CD.
Environment where the bug was observed (cloud vendor, OS, etc)
In EKS cluster.

@hanxiaop
@istio-policy-bot
@dsbos
Hi
I am facing
Warning [IST0137] (Deployment sample-bookinfo/sample-bookinfo-argocd-server) This deployment sample-bookinfo-argocd-server is associated with multiple services [sample-bookinfo/sample-bookinfo-argocd-server sample-bookinfo/sample-bookinfo-argocd-server] using targetPort "8080" but different ports: [80 443].
Warning [IST0137] (Deployment sample-petclinic/sample-petclinic-argocd-server) This deployment sample-petclinic-argocd-server is associated with multiple services [sample-petclinic/sample-petclinic-argocd-server sample-petclinic/sample-petclinic-argocd-server] using targetPort "8080" but different ports: [80 443].
This waring is caused by the ports on the argocd server
It is possible to remove this warning according to the doc, but argo-cd is installed via Helm and deployment/service (argo-cd server deployment and service) cannot be controlled.
istioctl version: 1.20.0
version: 1.18.5
These warnings disappear in version 1.20.0, but I want to fix it without waiting for the upgrade.


Fixed bug in common.inc.php line 1168

Good morning. There was a bug in your common.inc.php file.
Let me explain the situation. Original common.inc.php had this file path:
./language//text.php
I removed the extra slash so that path became:
./language/text.php
There are no custom languages in this repo yet, but that might have caused a bit of an issue.
I hope this helps. :)

I'm looking at the default HESK 2.6.0 beta 1's common.inc.php file, and the code block is
require(HESK_PATH . 'language/' . $hesk_settings['languages'][$hesk_settings['language']]['folder'] . '/text.php');

Additionally, looking at the `$hesk_settings['language']` array in `hesk_settings.inc.php`, the default / English language is added as follows

````php
$hesk_settings['languages']=array(
'English' => array('folder'=>'en','hr'=>'------ Reply above this line ------'),
);

If we take the english array, and update the `common.inc.php` file with this information, we get:
````php
require(HESK_PATH . 'language/en/text.php');

Since `$hesk_settings['language']` is `English`, and `$hesk_settings['languages']['English']['folder']` is 'en', with no leading or trailing slashes.

So, the code is correct as-is (otherwise the language file would be failing for everyone right now).  Are you having an issue with a non-English language that required you to make this change?

Ah, got it. I was thinking about creating a Finnish language file, tested the software and could not get it working. Index.php gave a white screen after cloning the repo. Had to investigate it a bit and I thought this was actually a bug.

Gotcha. I'll close out this PR then.

Ok, cheers. :)


Can't open web editor with /lp editor

Hi i seem to be getting an error when i try to open the web editor, this the error i get:
[13:00:35] [Server thread/INFO]: Oran1_ issued server command: /lp editor
[13:00:35] [pool-9-thread-1/WARN]: java.lang.RuntimeException: Request was unsuccessful: 403 - Forbidden
[13:00:35] [pool-9-thread-1/WARN]: at me.lucko.luckperms.common.web.AbstractHttpClient.makeHttpRequest(AbstractHttpClient.java:49)
[13:00:35] [pool-9-thread-1/WARN]: at me.lucko.luckperms.common.web.BytebinClient.makeHttpRequest(BytebinClient.java:69)
[13:00:35] [pool-9-thread-1/WARN]: at me.lucko.luckperms.common.web.BytebinClient.postContent(BytebinClient.java:94)
[13:00:35] [pool-9-thread-1/WARN]: at me.lucko.luckperms.common.web.WebEditor.post(WebEditor.java:138)
[13:00:35] [pool-9-thread-1/WARN]: at me.lucko.luckperms.common.commands.misc.EditorCommand.execute(EditorCommand.java:132)
[13:00:35] [pool-9-thread-1/WARN]: at me.lucko.luckperms.common.command.abstraction.SingleCommand.execute(SingleCommand.java:50)
[13:00:35] [pool-9-thread-1/WARN]: at me.lucko.luckperms.common.command.abstraction.SingleCommand.execute(SingleCommand.java:42)
[13:00:35] [pool-9-thread-1/WARN]: at me.lucko.luckperms.common.command.CommandManager.execute(CommandManager.java:210)
[13:00:35] [pool-9-thread-1/WARN]: at me.lucko.luckperms.common.command.CommandManager.lambda$onCommand$0(CommandManager.java:145)
[13:00:35] [pool-9-thread-1/WARN]: at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
[13:00:35] [pool-9-thread-1/WARN]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[13:00:35] [pool-9-thread-1/WARN]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[13:00:35] [pool-9-thread-1/WARN]: at java.lang.Thread.run(Thread.java:745)
-And once i log off the game i get this error:
[13:05:35] [OkHttp ConnectionPool/WARN]: [me.lucko.luckperms.lib.okhttp3.OkHttpClient] A connection to https://bytebin.lucko.me/ was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);

Are you behind a proxy by any chance?
Also what LP version?

no i am not using any proxy and its the newest version LuckPerms-Bukkit-5.0.50

On your server, does your Firewall block (outgoing) HTTP? ports: (80 & 443)
Are you running any software like nginx? (reverse proxy)

no it allows https like urls, i have a plugin that has links on signs and that works fine so not sure but this only happened recently and it was working two or three days ago

"links on signs" is irrelevant if you mean that people open them in their clients, your issue is that the connection to the bytebin is blocked somewhere, either down to something on your end or something with the web-servers setup (Which is why "how" are you hosting the server is somewhat important to know)

No idea how the server is hosted as i just paid for the server host lol and again it wouldn't make much sense that it was working two or three days ago but now isn't...  i did also try going back a version and still nothing so not sure.

i aslo have a error 403 - Forbidden . was working the other week now its not

Ok for some unknown reason it now works fine again... o_O  i didn't do anything lol

Most likely Cloudflare blocking your requests. Not much I can do about that though..


Fix lambda parsing issue.

The colon token was missing  when we looked at the lambda terminator. Fixed that by using the same code we have other place.

fixes #4338.

@aneeshdk @tcare @MSLaguana please have a look.


[Misc] Remove cache stream and cache events

This PR removes cache_stream and cache_events. Previously, these objects were introduced for fine-grained overlapping between swapping and model execution. However, the overlapping has been disabled since vLLM introduced CUDA graphs. Therefore, we don't need a separate CUDA stream and CUDA events for swapping.
This PR removes such unused objects by launching the swapping ops in the default CUDA stream (same stream used in model execution).

@cadedaniel @zhuohan123 Added the test.


Replace map_or_else with unwrap_or and add a test for get_value_u32

Replace map_or_else with unwrap_or and add a test for get_value_u32

Codecov Report
Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (dbf4917) 15.95% compared to head (991a45b) 15.88%.

Files
Patch %
Lines

src/lib.rs
0.00%
2 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #212      +/-   ##
==========================================
- Coverage   15.95%   15.88%   -0.07%
==========================================
  Files          49       49
  Lines        2871     2864       -7
==========================================
- Hits          458      455       -3
+ Misses       2413     2409       -4

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


b2ChainShape::CreateLoop causes odd behavior when first and last vertice are the same

What steps will reproduce the problem?
1. Make a static body with chain fixture box built with CreateChain starting at
top left and going clockwise (should require 5 verts)
2. Try changing the fixture to use CreateLoop with the same verts
3. Put a dynamic body on top of the body

What is the expected output? What do you see instead?

Objects fall into the inside of the chain shape / have unpredictable collision
with the object.

Please provide any additional information below.

This is happening because b2ChainShape::CreateLoop is trying to add the last
vertex itself, and in doing so is actually causing the same vertex to be
repeated twice which invalidates the b2_linearSlop assert which I am sure is
there for good reason.

My suggested fix would be to only add the new vertex if...

b2DistanceSquared(vertices[0], vertices[count-1]) > b2_linearSlop *
b2_linearSlop

...so that the same vert list would be compatible with both CreateLoop and
CreateChain without change. In the case where the first and last vertex are the
same, or very close, the function should operate the same as CreateChain while
also setting up prevVertex/nextVertex appropriately.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 29 Oct 2014 at 6:50

There is an assertion here:
https://github.com/erincatto/box2d/blob/1025f9a10949b963d6311995910bdd04f72dae6c/src/collision/b2_chain_shape.cpp#L57


TreeError [SettingsTree] Tree element not found: [object Object]

Error: TreeError [SettingsTree] Tree element not found: [object Object]
at ai.o in src/vs/base/browser/ui/tree/objectTreeModel.ts:318:10
at ai.rerender in src/vs/base/browser/ui/tree/objectTreeModel.ts:186:25
at fi.rerender in src/vs/base/browser/ui/tree/objectTree.ts:65:14
at $e.bd in src/vs/workbench/contrib/preferences/browser/settingsEditor2.ts:1533:22
at $e.$c in src/vs/workbench/contrib/preferences/browser/settingsEditor2.ts:1515:10
at <anonymous> in src/vs/workbench/contrib/preferences/browser/settingsEditor2.ts:1457:29
at Set.forEach (<anonymous>)
at $e.Yc in src/vs/workbench/contrib/preferences/browser/settingsEditor2.ts:1457:9
at u.value in src/vs/workbench/contrib/preferences/browser/settingsEditor2.ts:299:10
at o.B in src/vs/base/common/event.ts:1230:13
at o.fire in src/vs/base/common/event.ts:1261:9
at V.zb in src/vs/workbench/services/configuration/browser/configurationService.ts:889:40
at V.Cb in src/vs/workbench/services/configuration/browser/configurationService.ts:931:8
at async Promise.all (index 0)
at async Object.te [as settled] in src/vs/base/common/async.ts:1644:18
at async V.updateValue in src/vs/workbench/services/configuration/browser/configurationService.ts:360:3

Go to Errors Site

Closing in favour of https://github.com/microsoft/vscode/issues/227426


Pin pyOpenSSL to <= 21.0.0

pyOpenSSL 22.0.0 requires cryptography>=35.0 causing dependancy conflicts https://app.circleci.com/pipelines/github/StackStorm/st2/2631/workflows/9226c6bb-50c4-46fc-a71e-f707d7ce01bf/jobs/14228

More context for the history:
[package: st2] [12:05:10]      The conflict is caused by:
[package: st2] [12:05:10]          The user requested cryptography==3.4.7
[package: st2] [12:05:10]          paramiko 2.7.2 depends on cryptography>=2.5
[package: st2] [12:05:10]          requests[security] 2.25.1 depends on cryptography>=1.3.4; extra == "security"
[package: st2] [12:05:10]          pyopenssl 22.0.0 depends on cryptography>=35.0


Hovering over cell line shows data that is hard to see further

So I'm playing with the site and noticed the following on the experiments page, e.g.:
http://www.ebi.ac.uk/gxa/experiments/E-MTAB-2706?_specific=on&queryFactorType=CELL_LINE&queryFactorValues=&geneQuery=ASPM&exactMatch=true&serializedFilterFactors=
Hovering over the cell line element produces a table with details. The table is rather long so it doesn't fit on a laptop screen. In my browser (new Chrome) there isn't anything keeping the table on the screen after I hover off the element, so I can't scroll down and actually see the data inside it.
Perhaps clicking on the row could set the table element to "visible" until a click event or so.

We’re aware of the issue and we’re looking at some alternatives. Currently we use jQuery-UI to show our tooltips but we’ll probably use Bootstrap’s popovers which will allow to dismiss the tooltip manually. This will also be an improvement for touch screen interfaces. We’ll keep the issue open until the tooltips are reimplemented.

Dear Atlas developer,
Thank you for your feedback and your hard work in this problem. I’m closing the issue now for reasons you’re well aware of.


Opens new tab on clicking github and slack buttons on contribute page

Fixes #
Opens new tab on clicking github and slack buttons
Describe the changes you have made in this PR -
Opens new tab onclicking github and slack button on contribute page as its annoying for user to view get back to website  and user wants to see it in both tabs

@nitin10s @tachyons @aayush-05 please review it

Coverage remained the same at 84.266% when pulling ed25166af95aaa126699306715c3ec064ee57f56 on darkshredder:patch-17 into 4872e6f5d4355054c383207a8ed9e10b6ff1db7e on CircuitVerse:master.

@nitin10s It works on firefox i have tried it now

@tachyons please review it

Looks good to me

Working good. I am not sure if this is the correct way to solve the problem.

This is definitely not the way to solve the problem. All links (barring exceptions) should always be done with anchor tag. Otherwise search engines cannot crawl them correctly and web browsers may not render some things correctly as it doesn't know its a URL.  See the link below.
https://stackoverflow.com/questions/17711146/how-to-open-link-in-new-tab-on-html

@darkshredder are you still working on this, please make the required changes

@tachyons @nitin10s can be closed. Already fixed


Azure Virtual Desktop UK URL's

Hi Microsoft,
I logged a Q&A with Microsoft which you can find here: [https://docs.microsoft.com/en-us/answers/questions/757720/azure-virtual-desktop-uk-url39s.html?childToView=757759#comment-757759]
The answer suggests that the WVDAgentUrlTool.exe only works for USA URL's and does not work for all global URL's, your article does not mention this and so my feedback would be that if you could make this clear.
Thanks
Chris

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

ID: 406f8b6d-6471-c983-c102-9d60a57964cd
Version Independent ID: 98fa8587-36e1-690c-12c5-b865955ada0b
Content: Azure Virtual Desktop required URL list - Azure
Content Source: articles/virtual-desktop/safe-url-list.md
Service: virtual-desktop
GitHub Login: @Heidilohr
Microsoft Alias: helohr

@Christopher-P-Green Thank you for your feedback . We will investigate and update the thread.

@Christopher-P-Green
Thanks for the feedback! I have assigned the issue to content author to check and update the document as appropriate.

@Heidilohr
Can you please check and add your comments on this doc update request as applicable.

#please-close


Method name consistency

I noticed that the Treiber stack pop method is returning an Option.  For consistency reasons it would be preferable for that to be named try_pop.
The downside here is that it would be a breaking change, but since it's still a WIP, it seems like a reasonable change (likely with some kind of temporary deprecation warning).

I'd be happy to do a PR if that makes sense.

Yep, this was just an oversight, and I'd be happy to take a PR.

Here we go: https://github.com/aturon/crossbeam/pull/69


Attribute cors_allowed_host_names added for cloudfront resource.

Attribute cors_allowed_host_names added for cloudfront resource.

Task linked: DUPLO-4333 Add CORS allowed host support in cloudfront distribution.


Can't edit the identity of a column in SQL Server

System information:

Operating system (distribution) and version
Ubuntu 18.0.4
DBeaver version
5.3.5
Java version
1.8.0_201
Additional extensions

Connection specification:

Database name and version
SQL Server 2014
Driver name
MS SQL Server / SQL Server
Do you use tunnels or proxies (SSH, SOCKS, etc)?
No

Describe the problem you're observing:
I can't modify the identity of a column using SQL Server
Steps to reproduce, if exist:
Try to edit a column. The Identity field text is not editable.

Hello @marcgise,
Sorry for really late response 😄
Unfortunately, you cannot "remove" identity from column in SQL Server.


Newman's gallery - can't add more than two photos into gallery items

There is a bug in newman's gallery. You can't add more than two photos into gallery items.

Can I know current status of this bug? Is blocking us to move closer to 3.x.

@jezradek Please test


How to auto generate a 433MHz code?

I want a random 433MHz RF code to control my devices. But I don't have enough controller to learn, and I don't want to buy that much.
How can I generate this code?

Try achieving this in the official broadlink app with the "Scan RF" method first to see if you can get it to work. If so then the Scan RF button in this plugin will also work. If not then there's nothing I can do sorry.
I've not actually seen any successful attempts at learning the random codes. Usually they are garage door openers which require encryption.


Additional default PushBackPolicy

In org.osgi.util.pushstream.PushbackPolicyOption we have a couple of usefull default policies. Aver the last years, we found another one that became our default and I suggest adding it to the exsisting List:
	/**
	 * This {@link PushbackPolicy} increases linear after the queue breaches a given threshold.
	 * If the threshold is e.g. 100 the 101st element would cause a backpressure of one and the 110th element a pushback of 10.
	 */
	LINEAR_AFTER_THRESHOLD {
		@Override
		public <T, U extends BlockingQueue<PushEvent<? extends T>>> PushbackPolicy<T, U> getPolicy(long value) {
			return q -> Math.max(0, q.size() - value);
		}
	};

Call: Agreed this is a good addition. We may also consider some other policies while we are updating the spec version.

Spec version bump. Also need TCK test.


Prepare for ember-cli-fastboot 1.0 build format

Hi there, ember-cli-fastboot 1.0 will have backwards incompatible changes. Please see doc here https://gist.github.com/kratiahuja/d22de0fb1660cf0ef58f07a6bcbf1a1c. The motivation for this change is documented here ember-fastboot/ember-cli-fastboot#387
The environment variable EMBER_CLI_FASTBOOTdoesn't exists any more in ember-cli-fastboot 1.0 build. I made the changes here, however 2  tests for this repo are already failing without my change.  I fixed one by upgrade ember-cli-htmlbars. I don't have enough context. Could you please verify on your side with proper use cases?

@tsubomii does this mean anyone using fastboot pre 1.0 will need to upgrade when they use the next version of ember-aupac-typeahead?  If so I will document it in the README.


Open page with cache

Is your feature request related to a problem? Please describe.
Just imagine that we will test site with very poor performance (some js race conditions that will fail when images will not load before js etc).
To avoid most of issues, we just need to run page with cache.
Describe the solution you'd like
It would be nice to have some kind of parameter for "open", that will load page with cache eg. cache=true (false as default and not mandatory).
Describe alternatives you've considered
Right now we can use "open", then after page loading use "open" once more. It's kind of workaround, but i feel that we should have dedicated way to deal with that kind of situations.

Currently, there is no support for cache, so this may require modifications across whole stack


camera.dirty flag is always true inside Phaser.Tilemaps.TilemapLayer.cullCallback

Version

Phaser Version: v3.55.2

Operating system: Windows 10 / WSL2

Browser: Not browser specific, tested on: Chrome, Firefox

Description

Hello! I am playing with adding my custom cullCallback for TilemapLayers, like here:
cullCallback
I want to make use of camera.dirty flag but it is always true, even if nothing is happening on the screen, no camera movement etc
I figured out this is due to the camera's scrollX and scrollY fields being overwritten every frame in preRender method here (and setting camera.dirty to true in setters).
Example Test Code
Custom CullTiles callback
Uncomment console.log inside customCullTiles method to see camera.dirty state.

Additional Information
Adding simple checks if values aren't the same seems to do the work.

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.


EKS cluster upgrade to 1.31 - compatibility question

Hello,
According to the compatibility matrix the kubernetes cluster version 1.31 is only compatible with karpenter >= 1.0.5 but in our case we have seen 0.36 works fine with 1.30 but as per the matrix it shouldn’t! So what are the feature of karpenter 0.36 that might not work with cluster version 1.31?
There was a similar issue raised for 1.29 by another user but that is marked as closed so I am opening a new one for 1.31.
Thanks!

There may not be any specific issue that will block any older version of Karpenter from working a newer version of k8s, however the team does not support making older version Karpenter work on a newer version of EKS clusters. The compatibility matrix just outline which Kubernetes versions are fully supported at each karpenter version

@engedaam Thanks for the clarification! Really appreciate it.


Wallet transactions

This PR brings in the transactions list section of the wallet.

Any chance you can send me some testnet coins @rmisio? 1PGhFabkipk6uHF1Y3m7bWaaM8kPREuwrn
I'm going to try sending some in too.

Hey @morebrownies do you think it might be good to have a little icon or something to indicate this button takes you out of the app to your browser?

Something similar to this after the words View Details?

Or is that too much?

Yeah @hoffmabc I typically like displaying that icon on links/button when leaving the app. good catch

Looking good overall @rmisio I'm waiting for some transactions to confirm, but otherwise looks good! nice work 👍

Just curious, how frequently does the transaction data update within the client? I notice on one transaction I have (0 confirmations) within the client, but when I click "View details" and view the transaction details on the web via  https://testnet.blockexplorer.com, I see 2 confirmation.

Any chance you can send me some testnet coins @rmisio?

@morebrownies Just sent some.

Just curious, how frequently does the transaction data update within the client?

The client updates based on info coming from the server. With regard to confirmations, there is a walletUpdate socket that comes in every 15 seconds. I don't know how often the server checks to get that data... so you'll have to check in with @cpacia on that.
The litmus test if it's a client or server issue is if you refresh the app and the confirmations have gone up, unless a new block happened to come in at that precise moment, it's probably a client issue that I need to look into. Otherwise, it's the server not having the most up to date data.

Yeah @hoffmabc I typically like displaying that icon on links/button when leaving the app. good catch

@morebrownies is that an ionic icon (i'm not seeing it there)? If not, could you provide it?

Thank you. I did a hard refresh on the app and confirmations are still stuck at 0.

https://testnet.blockexplorer.com/tx/792814ad0b37fe9c13a1e93173439df500d138b750b3418c1a1ec8476820ef70 shows 4 now

@morebrownies is that an ionic icon (i'm not seeing it there)? If not, could you provide it?

Sure, try: ion-android-open @rmisio

Thank you. I did a hard refresh on the app and confirmations are still stuck at 0.

Yeah... you could ask Chris than what the issue is... although you might get the standard 'testnet is messed up' response ;)

paging @cpacia any idea why confirmations are not displaying correctly within the client?

When I send funds it goes right to 0.0

When I send funds it goes right to 0.0

Did you send all your funds? If so, that's what it's designed to do. On the creation of an outgoing payment, the funds are immediately deducted from your confirmed balance.

No I had $120 and I sent $.70

Update: I'm up to 6 confirmations now (according to blockexplorer), client displays 0 confirmations and the funds are not usable. It seems my funds are completely locked up. Is testnet really this unstable? If so, that really sucks!

No I had $120 and I sent $.70

Hmmm... that's not right. The balance is mostly based off a walletUpdate socket that comes every 15 seconds. Check on yours and if it's indeed coming in with zero for the confirmed amount, then you'll want to ping Chris and see what the issue could be:

Is testnet really this unstable? If so, that really sucks!

I don't know. It hasn't been perfect for me, but it's been useable... not what you're experiencing.

Thanks for adding the icon @rmisio looks good

One request I would make is to make the txid copy to clipboard on click. The view details button tries to load firefox for me (not my default browser) and it grinds away and is very slow. I'd really just copy and use chrome.

One request I would make is to make the txid copy to clipboard on click. The view details button tries to load firefox for me (not my default browser) and it grinds away and is very slow. I'd really just copy and use chrome.

@cpacia Are you sure that Chrome is set-up as your default browser? We're using the method that the Electron docs suggest to open an external url and the docs claim it will open the URL in the user's default browser.

@morebrownies once you've approved your review, we can merge this.

The issue I was seeing with the wallet is not occurring with a fresh db @rmisio @jjeffryes

@jjeffryes interface wise everything is looking good. I haven't been able to get inbound payments to confirm on my end, which means I also haven't been able to test outbound payments. It might have something to do with my local setup. If you guys have those parts working on your end, then I think we should be good.


docs: first set of eCHO video links added

This PR adds the first set of eCHO episodes video links added
Please ensure your pull request adheres to the following guidelines:

[ ] For first time contributors, read Submitting a pull request
[ ] All code is covered by unit and/or runtime tests where feasible.
[ ] All commits contain a well written commit description including a title,
description and a Fixes: #XXX line if the commit addresses a particular
GitHub issue.
[ ] All commits are signed off. See the section Developer’s Certificate of Origin
[ ] Provide a title or release-note blurb suitable for the release notes.
[ ] Thanks for contributing!

Fixes: #issue-number
<!-- Enter the release note text here if needed or remove this section! -->

One suggestion
We have set up Netlify previews now, so with a bit of luck, if you commit this change we'll be able to see a preview. With that preview it will be easier to just double check that all the links are correct before we commit this
It would be great if we can have the videos open in a different tab but I don't think that needs to block this change

The netlify preview is still failing.

I think the Netlify preview should now work if you rebase your changes on the current master.

I have added the admonitions and squash "edits" commits. Please check it out and let me know what you think.

Feedback from Liz has been addressed, there's reviews from Tam and myself. We can skip the other reviews. Documentation tests have passed, this is ready to merge.


Transitions in styles overwrite existing transitions

If a transition is specified in a style, when that style gets applied it overwrites existing transitions. Failing unit test:
        [Fact]
        public void Style_Adds_Transitions_To_Existing_Transition()
        {
            using (UnitTestApplication.Start(TestServices.StyledWindow))
            {
                var xaml = @"
<Window xmlns='https://github.com/avaloniaui'
             xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>
    <Window.Styles>
        <Style Selector='Border.foo'>
            <Setter Property='Transitions'>
                <Transitions>
                    <DoubleTransition Property='Height' Duration='0:0:1'/>
                </Transitions>
            </Setter>
        </Style>
    </Window.Styles>
    <Border>
        <Border.Transitions>
            <DoubleTransition Property='Width' Duration='0:0:1'/>
        </Border.Transitions>
    </Border>
</Window>";
                var loader = new AvaloniaXamlLoader();
                var window = (Window)loader.Load(xaml);
                var border = (Border)window.Content;

                Assert.Equal(1, border.Transitions.Count);
                Assert.Equal(Border.WidthProperty, border.Transitions[0].Property);

                border.Classes.Add("foo");

                Assert.Equal(2, border.Transitions.Count);
                Assert.Equal(Border.WidthProperty, border.Transitions[0].Property);
                Assert.Equal(Border.HeightProperty, border.Transitions[1].Property);
            }
        }

This is because the setter applies the new <Transitions> collection to the Transitions collection, instead of adding the transitions to the existing ones.
We need to special-case setters that set collections to add/remove items instead of overwriting.

This behavior is consistent with HTML/CSS

Interesting. Note that in avalonia, after e.g. .foo is removed, the original transitions don't get restored, so we will need to fix that at least.

Closing this issue, will open a new one.


Allow collectors to have their individual config files

Now each collector will have it's own config file that will live in a
config directory. This means each collector will have to be instantiated
and it's config file read into memory. If one collector's config is
corrupt, ONLY that collector will be skipped and other non corrupt
ones will start

also, I think it is probably worth modifying debian packaing to create new directories we expect to exist for storing those collector specific config files.

modifying debian package is not the way to do it, since the directory for the config is configurable

Ah okay. no worries there then.

:shipit:

lgtm!

+1

+1


fix(cve83): ensure API access control is properly enforced

Using the canReadAPI in AbstractResource is not sufficient
to guarantee that access control is properly enforced.
The revision adds a canManageAPI method to circumvent CVE83 in
an isolated manner and avoid breaking other parts of the application as
a side effect.
We should check other usages of canReadAPI and ensure that access
control meets our expectations.
see https://github.com/gravitee-io/issues/issues/6650

🚀 CI was able to deploy the build of this PR, so you can now try it directly here
Notes: The deployed app is linked to the management API of the Element Zero team's environment.

With local username user and local username api1 (both list and single entity access)

Group member of API
User role in group
Shows up in portal
Shows up in console

:x:

:x:
:x:

:white_check_mark:

:x:
:x:

:white_check_mark:
USER
:white_check_mark:
:x:

:white_check_mark:
REVIEWER
:white_check_mark:
:white_check_mark:

:white_check_mark:
OWNER
:white_check_mark:
:white_check_mark:

With local username admin (both list and single entity access)

Group member of API
User role in group
Shows up in portal
Shows up in console

:x:

:x:
:white_check_mark:

:white_check_mark:

:x:
:white_check_mark:

:white_check_mark:
USER
:white_check_mark:
:white_check_mark:

:white_check_mark:
REVIEWER
:white_check_mark:
:white_check_mark:

:white_check_mark:
OWNER
:white_check_mark:
:white_check_mark:


Fix dynamic JS import and add missing scripts for colormaps

This PR addresses several issues related to dynamic JavaScript packages imports and the not displayed colormap.

JavaScript package loading order
The script loading mechanism in index.tsx has been modified to ensure that JavaScript packages are imported sequentially. This should fix the issues with the vanishing overlay and feature groups caused by dependencies not being loaded in the correct order.

Colormap display
The d3 package, required for displaying the colormap, has been manually included. The previous dynamic JS and CSS dependency detection in __init__.py did not work for branca.colormap.ColorMap objects, leading to the colormap not being displayed.

With these changes, the dynamic package loading and colormap display issues should be resolved.

The new commit adds the view change detection section to the index.tsx file, which was unintentionally omitted in the previous commit. The overall functionalities, including multiple feature groups loading and customized colormap legend displaying have been (momentarily) tested!

@blackary The way I hear these issues people are having, it sounds like a race condition to me. For a common dependency like d3, I wonder if we should just add it to the JS component side of the house. Though, I'm not exactly certain the browser behavior if you have a dependency specified, then specify it again dynamically like this package now does

@Navxihziq Currently the tests are failing from some small type-hint and formatting issues, you please use pre-commit to fix the linting issues, or fix them manually, or allow admins to commit to your branch?

Will fix the issues later today!


Why big-endian?

Since most arch's this will run in will be little endian, is there a reason this is big endian. Could the speed be faster if it was in little endian since you would not need to be swapping bytes?

Intuitively it should be faster to use a little endian order because x86 and most commercial ARM processors use it (probably for ease of porting from x86!). I think I tried this and it didn't make much of a difference on my host, but I also didn't save the results or maintain a branch so I don't have much to share.
The reasons for this choice were partially aesthetic: it makes sense for the remainder in the prefix coded byte to contain the high bits of the value. In a scheme where any remaining bytes are little endian you end up needing to mask/shift/or to combine the values instead of bswap/(maybe shift)/mask.


SP5: Line plot type

I'm about to merge #2901 which provides methods like Add.Line() to place a line on the plot, but the way it does it is by creating a scatter plot with only two points. This gets the job done for now, but a special Line plot type just for straight lines seems like a better option. A primitive that represents a single line would also be useful to have.

I gave this a shot and created both a Line primitive and a Line plot type, along with some cookbook recipes for testing. What I created allows the user to define a line using endpoints and styling. I think it would be quite easy to do something similar for an Arrow plot type.


[FEATURE]: Create the Chip component for the Storybook

Is your feature request related to a problem?
This component is part of a reusable design system for Fonoster's dashboard. It helps achieve consistency and reduces repetitive implementation work.

Describe the solution you'd like
The Chip should follow the design in the Figma file and be implemented as a standalone React component with the following props: onRemove, enabled.

It should use MUI styles for styling
The component must have basic tests using

Describe alternatives you've considered
NA
Additional context
Before working on this item, please check the CONTRIBUTING document. Details about the Chip component can be found here.
Acceptance Criteria:

[ ] Matches Figma design
[ ] Storybook story with documentation
[ ] Works in light/dark themes
[ ] Includes basic unit tests

I will work on this.

@parz3val assigned to you 🙌

@psanders I am guessing you missed the label string in the prop? I've added label as well in the props, and have opened a pr: #665


Set type maps on collection level

Q
A

Type
improvement

BC Break
no

Fixed issues

Summary
This PR improves the experience for users that create their own MongoDB\Client instance for the document manager. Instead of having to set the appropriate type map, ODM will now apply the type map on the collection level when calling getDocumentCollection. The end result is the same, as the type map gets applied to every operation (unless the operation has is own type map).

@malarzm I went for the next minor version since it's a behavioural change. No rush on this one 😊


Webhook

Can you add a discord webhook When someone votes the server?

Can you add a discord webhook When someone votes the server?

discord plugin

how?

yea wait

yea wait

Oke

https://poggit.pmmp.io/p/MCPEToDiscord/
voting message
`
key: ""
autoclaim: true
vote_announcement: "{username} has voted and received 1 diamond"
message_not_voted: "§cYou haven't voted today"
message_voted: "§aYou have already voted today"
commands:

"give {username} diamond"
"Say @Player has voted!)
...
`

Okay thanks 👌

lookj again . re edit

Okay thanks 👌

look again . re edit

How do I setup McpeToDiscord for votes?

Okay thanks 👌

look again . re edit

How do I setup McpeToDiscord for votes?

wait

---

language: 'english' # english, spanish, german, traditional_chinese, simplified_chinese

debug: false

discord: true

pureperms: false
factions: false

banned_list:
- '@here'
- '@everyone'

webhook_url: "webhook on discord look my image(Edit this)"
webhook_name: "Name BOT webhook(edit this too"
webhook_playerChat?: true
webhook_playerJoin?: true
webhook_playerLeave?: true
webhook_playerDeath?: true

webhook_playerChatFormat: "[ {player} | {time} ] : {msg}"
webhook_playerJoinFormat: "{player} Joined the server !"
webhook_playerLeaveFormat: "{player} Left the server !"
webhook_playerDeathFormat: "{player} Died !"

other_pluginEnabled?: true
other_pluginDisabled?: true
other_pluginEnabledFormat: "Plugin Enabled !"
other_pluginDisabledFormat: "Plugin Disabled !"
...

the plugin cannot communicate with discord. the plugin only send chat to discord chat

the plugin cannot communicate with discord. the plugin only send chat to discord chat

I know, but thanks for the information you provided

the plugin cannot communicate with discord. the plugin only send chat to discord chat

I know, but thanks for the information you provided

ok


No documentation for listings latex package

I would like to have documentation for the latex listings. Unfortunately, texdoc always fails:
$ texdoc listings
Sorry, no documentation found for listings.

I installed texlive with
texlive = texlive.combine {
  inherit (texlive) scheme-full;
};

You first need to read the documentation for our texlive packaging ;-) https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/typesetting/tex/texlive-new/default.nix#L9-L18

I already read it (several times :-)) and I thought it was inaccurate because texdoc koma-script worked and I didn't know koma-script was more core than listings. I also already tried the following and variants without success:
texlive = texlive.combine {
  inherit (texlive) scheme-full;
  pkgFilter = pkg: true;
};

Does it not include path /nix/store/2xy5im1j892qk2al1hwpwymzjba5dlx0-texlive-listings.doc-1.5e? I am getting that installed into the TeX env when using just
{
texlive.combine {
    inherit (texlive) scheme-basic listings;
    pkgFilter = pkg: pkg.pname == "listings" || pkg.tlType != "doc";
  };
}

However, I've got no idea how texdoc works.

Does it not include path /nix/store/2xy5im1j892qk2al1hwpwymzjba5dlx0-texlive-listings.doc-1.5e?

I didn't have this path but now I have it with:
texlive = texlive.combine {
  inherit (texlive) scheme-full;
  pkgFilter = pkg: pkg.pname == "listings" || (pkg.tlType != "doc" && pkg.tlType != "source");
};

Thanks

:-)