tests, refactor: remove NewRandomVMWithDataVolumeWithRegistryImport

use libvmi and libdv directly to create VMs/VMIs whose DataVolumes are configured with registry import, and completely remove the NewRandomVMWithDataVolumeWithRegistryImport() function from tests/utils.go.

What this PR does
Before this PR:
After this PR:

Fixes #
Why we need it and why it was done in this way
The following tradeoffs were made:
The following alternatives were considered:
Links to places where the discussion took place:
Special notes for your reviewer

Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

[ ] Design: A design document was considered and is present (link) or not required
[ ] PR: The PR description is expressive enough and will help future contributors
[ ] Code: Write code that humans can understand and Keep it simple
[ ] Refactor: You have left the code cleaner than you found it (Boy Scout Rule)
[ ] Upgrade: Impact of this change on upgrade flows was considered and addressed if required
[ ] Testing: New code requires new unit tests. New features and bug fixes require at least on e2e test
[ ] Documentation: A user-guide update was considered and is present (link) or not required. You want a user-guide update if it's a user facing feature / API change.
[ ] Community: Announcement to kubevirt-dev was considered

Release note

NONE

/sig code-quality

/hold
need to move the VMI-with-DV creation to a util function at the storage package to avoid code duplication.

/hold
need to move the VMI-with-DV creation to a util function at the storage package to avoid code duplication.

Check out https://github.com/kubevirt/kubevirt/pull/11476#issuecomment-2004446098

introducing a new function NewVMWithDataVolumeWithURL(imageUrl string, storageClass string) in the storage package that simplifies the calling contexts where a VM with DV with import URL is required.
/unhold


docs: remove invalid link reference

The link leads to nowhere. I couldn't find any equivalent to the old file that has been removed in the site app.

Yea I can bring this back shortly with the much better examples coming up.


Spectre added

Hopefully this helps

Hi there, I'm really thankful that you took interest in the project, but I don't usually add a whole library just because of one functionality. You could write the css for the buttons in the css/main.css; is that ok? Thank you.


[BUG] Response from OpenAI compatible API with LocalAI not shown

Description
I'm attempting to make an API to interact with a RAG chat bot that I've made.
The API is OpenAI compatible (should be) but I cannot get big-AGI to display the response that the API sends to big-AGI.
I have logging enabled on the API side, and it is receiving the request from big-AGI, and, as far as I can tell, responding correctly. But no response message is shown. When I send a message from big-AGI, it waits until the API responds (and shows the typing animation), but it displays no message content from the response.
Example "messages" key in from request received in API:
[{'role': 'system', 'content': ''}, {'role': 'user', 'content': 'hvilke brønner er i maria feltet'}]

And the response which the API sends back, with status code 200 and mimetype="application/json":
{ 'choices': [ { 'content_filter_results': { 'hate': { 'filtered': False,
                                                       'severity': 'safe'},
                                             'self_harm': { 'filtered': False,
                                                            'severity': 'safe'},
                                             'sexual': { 'filtered': False,
                                                         'severity': 'safe'},
                                             'violence': { 'filtered': False,
                                                           'severity': 'safe'}},
                 'finish_reason': 'stop',
                 'index': 0,
                 'logprobs': None,
                 'message': { 'content': 'SOME MESSAGE',
                              'refusal': None,
                              'role': 'assistant'}}],
  'created':<PHONE_NUMBER>,
  'id': 'chatcmpl-jYloJjizjHXfWIfhwHSjxZTjTvtAZ',
  'model': 'gpt-4o',
  'object': 'chat.completion',
  'prompt_filter_results': [{'content_filter_results': {}, 'prompt_index': 0}],
  'system_fingerprint': 'fp_000eow_rag',
  'usage': {'completion_tokens': 1, 'prompt_tokens': 1, 'total_tokens': 2}}

And here is the code for the API. It is an azure function running locally:
from string import ascii_letters
import os
import sys
import random
import json
import time
import azure.functions as func
import logging
import stackprinter
from query_pipeline import run_query, format_response

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

# Load environment variable and initialize LLM client
app = func.FunctionApp()
function_key = os.environ["FUNCTION_KEY"]

default_response = {
  "id": "chatcmpl-ATocTflkPHoUliboru2hb5h9tk0ox",
  "object": "chat.completion",
  "created":<PHONE_NUMBER>,
  "model": "gpt-4o",
  "system_fingerprint": "fp_000eow_rag",
  "choices": [{
    "index": 0,
    "message": {
      "role": "assistant",
      "content": "PLACEHOLDER",
        "refusal": None,

    },
    "logprobs": None,
    "finish_reason": "stop",
    'content_filter_results': {
        'hate': {'filtered': False, 'severity': 'safe'},
        'self_harm': {'filtered': False, 'severity': 'safe'},
        'sexual': {'filtered': False, 'severity': 'safe'},
        'violence': {'filtered': False, 'severity': 'safe'}}
  }],
  "usage": {
    "prompt_tokens": 1,
    "completion_tokens": 1,
    "total_tokens": 2,
  },
  'prompt_filter_results': [{'prompt_index': 0, 'content_filter_results': {}}]
}

@app.route(route="v1/chat/completions", auth_level=func.AuthLevel.ANONYMOUS)
def chat_completions(req: func.HttpRequest) -> func.HttpResponse:
    js = req.get_json()
    messages = js["messages"]
    print(f"{messages=}")
    default_response["id"] = "chatcmpl-" + ''.join(random.choices(ascii_letters, k=29))
    default_response["created"] = int(time.time())
    default_response["choices"][0]["message"]["content"] = "SOME MESSAGE"
    js = json.dumps(default_response)
    print(f"Returning {js}")
    return func.HttpResponse(js, status_code=200, mimetype="application/json")

@app.route(route="v1/models", auth_level=func.AuthLevel.ANONYMOUS)
def models(req: func.HttpRequest) -> func.HttpResponse:
    # OpenAI API compatible
    token = req.headers.get('Authorization')
    if not token:
        return func.HttpResponse("Unauthorized", status_code=401)
    token = token.replace("Bearer ", "")
    if token != function_key:
        return func.HttpResponse("Incorrect function key", status_code=401)

    models = {
        "object": "list",
        "data": [
            {
                "id": "gpt-4o",
                "object": "model",
                "created":<PHONE_NUMBER>,
                "owned_by": "Bouvet"
            },
        ],
        "object": "list"
    }
    return func.HttpResponse(json.dumps(models), status_code=200)

Device and browser
Chrome
Screenshots and more

Willingness to Contribute

[ ] 🙋♂ Yes, I would like to contribute a fix.

Any messages in the console for big-AGI?

@enricoros There are no messages in console, besides big-AGI pinging the default chat llm (not the LocalAI rag one) in order to make a title for the chat.
This is on the v1-dev branch

@tsoernes could you try the v2-dev branch? Its AI engine was rewritten from scratch and is much more powerful (and will tell you about non-compliances with strict schema parsing). v1-dev is insupported and will fade away soon (doesn't support images, etc.)

I have tried it now.
It says:

When I print from the server it says:
Returning {"id": "chatcmpl-TfZobWLVlSwzcTnAIMuGWFfwQKWrj", "object": "chat.completion", "created":<PHONE_NUMBER>, "model": "gpt-4o", "system_fingerprint": "fp_000eow_rag", "choices": [{"index": 0, "message": {"role": "assistant", "content": "SOME MESSAGE", "refusal": null}, "logprobs": null, "finish_reason": "stop", "content_filter_results": {"hate": {"filtered": false, "severity": "safe"}, "self_harm": {"filtered": false, "severity": "safe"}, "sexual": {"filtered": false, "severity": "safe"}, "violence": {"filtered": false, "severity": "safe"}}}], "usage": {"prompt_tokens": 1, "completion_tokens": 1, "total_tokens": 2}, "prompt_filter_results": [{"prompt_index": 0, "content_filter_results": {}}]}

From the code:
default_response = {
  "id": "chatcmpl-ATocTflkPHoUliboru2hb5h9tk0ox",
  "object": "chat.completion",
  "created":<PHONE_NUMBER>,
  "model": "gpt-4o",
  "system_fingerprint": "fp_000eow_rag",
  "choices": [{
    "index": 0,
    "message": {
      "role": "assistant",
      "content": "PLACEHOLDER",
        "refusal": None,

    },
    "logprobs": None,
    "finish_reason": "stop",
    'content_filter_results': {
        'hate': {'filtered': False, 'severity': 'safe'},
        'self_harm': {'filtered': False, 'severity': 'safe'},
        'sexual': {'filtered': False, 'severity': 'safe'},
        'violence': {'filtered': False, 'severity': 'safe'}}
  }],
  "usage": {
    "prompt_tokens": 1,
    "completion_tokens": 1,
    "total_tokens": 2,
  },
  'prompt_filter_results': [{'prompt_index': 0, 'content_filter_results': {}}]
}

@app.route(route="v1/chat/completions", auth_level=func.AuthLevel.ANONYMOUS)
def chat_completions(req: func.HttpRequest) -> func.HttpResponse:
    js = req.get_json()
    messages = js["messages"]
    print(f"{messages=}")
    default_response["id"] = "chatcmpl-" + ''.join(random.choices(ascii_letters, k=29))
    default_response["created"] = int(time.time())
    default_response["choices"][0]["message"]["content"] = "SOME MESSAGE"
    js = json.dumps(default_response)
    print(f"Returning {js}")
    return func.HttpResponse(js, status_code=200, mimetype="application/json")

For some reason, the API response is shown as the chat title header and nothing is shown as message:

@tsoernes I think this is because it's expecting a Streaming answer (chat.completion.chunk) but getting a chat completion (full completion) object instead.
I think the fix won't be hard, the steaming flag needs to be set to false in the code when performing the AIX call.
2 options: 1. Change the server to reply with a Steaming (sse, chat completion chunk objects), or 2. Change Big AGI to not expect a streaming answer when making a streaming request, or even never make a streaming request for this model.

Closing as support options were provided.


ES6->ES6: IllegalStateException in FlowSensitiveInlineVariables

(Note: this is only reproducible if earlier broken passes are skipped)
$ java -jar build/compiler.jar --language_in=ES6 --language_out=ES6 src/com/google/javascript/jscomp/js/runtime_type_check.js
java.lang.RuntimeException: INTERNAL COMPILER ERROR.
Please report this problem.
null
Node(BLOCK): externs.zip//html5.js:1792:50
DataTransfer.prototype.getData = function(format) { return ''; };
Parent(FUNCTION ): externs.zip//html5.js:1792:33
DataTransfer.prototype.getData = function(format) { return ''; };
at com.google.common.base.Preconditions.checkState(Preconditions.java:158)
at com.google.javascript.jscomp.FlowSensitiveInlineVariables.enterScope(FlowSensitiveInlineVariables.java:138)
at com.google.javascript.jscomp.NodeTraversal.pushScope(NodeTraversal.java:656)
at com.google.javascript.jscomp.NodeTraversal.traverseBlockScope(NodeTraversal.java:629)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:576)
at com.google.javascript.jscomp.NodeTraversal.traverseFunction(NodeTraversal.java:622)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:574)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:582)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:582)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:582)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:582)
at com.google.javascript.jscomp.NodeTraversal.traverseRoots(NodeTraversal.java:318)
at com.google.javascript.jscomp.NodeTraversal.traverseRoots(NodeTraversal.java:299)
at com.google.javascript.jscomp.FlowSensitiveInlineVariables.process(FlowSensitiveInlineVariables.java:176)
at com.google.javascript.jscomp.PhaseOptimizer$NamedPass.process(PhaseOptimizer.java:285)
at com.google.javascript.jscomp.PhaseOptimizer.process(PhaseOptimizer.java:217)
at com.google.javascript.jscomp.Compiler.optimize(Compiler.java:1972)
at com.google.javascript.jscomp.Compiler.compileInternal(Compiler.java:765)
at com.google.javascript.jscomp.Compiler.access$000(Compiler.java:96)
at com.google.javascript.jscomp.Compiler$3.call(Compiler.java:657)
at com.google.javascript.jscomp.Compiler$3.call(Compiler.java:654)
at com.google.javascript.jscomp.Compiler$4.call(Compiler.java:701)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.IllegalStateException
... 26 more

Unless I'm missing sth, this is not an issue by itself.
It's part of the larger feature request to support ES6 in optimization passes, which will happen, but not for a while. Or are you thinking of sth else that I'm missing?

Talk to Tyler: this blocks any es6-out mode. No it won't be fixed for a
while but I have a workaround in-progress.
This issue is just to track remaining work.
On Wed, Jan 28, 2015, 1:28 PM Dimitris Vardoulakis<EMAIL_ADDRESS>wrote:

Unless I'm missing sth, this is not an issue by itself.
It's part of the larger feature request to support ES6 in optimization
passes, which will happen, but not for a while. Or are you thinking of sth
else that I'm missing?
—
Reply to this email directly or view it on GitHub
https://github.com/google/closure-compiler/issues/801#issuecomment-71919755
.

it shouldn't block any es6-out mode that we're currently interested in:

when es6-to-es6 for whitespace only, optimizations shouldn't run
when your pass is run, lang-in should be es5 and your pass runs after the optimizations, so they don't see es6

Anyway, since there has been no work to support es6 in optimizations, I think we should only have one issue for that, rather than one issue for every optimization pass.
(Note that if you don't see a crash with es6 in an optimization currently, it doesn't mean that the optimization is doing the right thing. It's probably doing some wrong transformation, but just doesn't crash.)

Note that I filed three bugs in addition to the original that Si filed, so you've only closed 1/4 that probably should all be treated the same.
Even with the Es6TypeDeclarations pass removed, this bug and the other three still prevent --language_out=es6 for any use case, including mine. (Even when my pass is on, it only attaches a property to Node's which no other code knows to read, so it's not a likely culprit.)
Perhaps there should be no es6 constructs in the inputs and therefore these passes ought to work with es6-out, but they currently don't.


On iOS, the indent button (->|) moves the current item up instead of indenting it

To reproduce on iOS (tried on iPhone 15 Pro Max, iOS 17.3):

Create a new outline item or tap an existing item.
Tap the indent button (->|).

Expected result: the item is indented.
Actual result: the item moves up.

Are you sure you aren't accidentally hitting the move up button? The buttons are a little tight on the iPhone and the move right icon looks heavier on the right hand side.
As an experiment, try using your opposite hand to tap the move right (indent) button.

Since where the hit area is rather confusing, I am going to change the icons to ones that better represent where you should tap. This will make it look like Move Up (Indent) button has moved away from the Move Up button.

Thank you, I may have accidentally hit the other button, but separating them a little bit more should help.


Subtitles in HLS source doesn't appear.

As in title written, the subtitles doesn't appear when using hls as source video.

@joneug This issue should be fixed in version 7. I just pushed a bugfix for this. I think we will release version 7 soon.


emit error from google speech

When Google Speech return an error, it's not emitted by sonus and we didn't know what append. This PR fix that

Thanks @jaumard! Good idea :)

No problem :) I think there some other problem around error management, I have no result/feedback when I have slow network :/

That may be an issue with grpc, not Sonus. See #34

Hum in fact if I understand correctly the #34 that's what I fix with this PR, now sonus emit an error event with the error object given by the google speech module. But still have a problem in slow network maybe because it doesn't stop after a timeout and keep trying. So a configurable timeout should fix the problem but it must force quit the current connexion


Matheus

[Enter feedback here]

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

ID: 1404ec79-6a71-2f91-934a-1dc58e32a6ba
Version Independent ID: 1404ec79-6a71-2f91-934a-1dc58e32a6ba
Content: Browse more safely with Microsoft Edge
Content Source: edgeenterprise/microsoft-edge-security-browse-safer.md
Product: microsoft-edge
GitHub Login: @dan-wesley
Microsoft Alias: pchiquini

@Teco10 Hello - If you would like to report a Microsoft Edge Enterprise documentation issue to the team please open a new issue and include relevant information/repro steps in the Comment section.
If you have general questions regarding Microsoft Edge please reach out on the Microsoft Edge Tech Community or for Enterprise specific questions please visit the Enterprise section of the Tech Community. Thanks!


Encode enough to make URI happy.

Closes https://github.com/square/okhttp/issues/1872

LGTM

Tests run: 226, Failures: 0, Errors: 1, Skipped: 8, Time elapsed: 15.475 sec <<< FAILURE! - in com.squareup.okhttp.URLConnectionTest
invalidHost(com.squareup.okhttp.URLConnectionTest)  Time elapsed: 0.012 sec  <<< ERROR!
java.net.UnknownHostException: 1<IP_ADDRESS>: Name or service not known
	at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
	at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
	at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1295)
	at java.net.InetAddress.getAllByName0(InetAddress.java:1248)
	at java.net.InetAddress.getAllByName(InetAddress.java:1164)
	at java.net.InetAddress.getAllByName(InetAddress.java:1098)
	at com.squareup.okhttp.internal.Network$1.resolveInetAddresses(Network.java:29)
	at com.squareup.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:187)
	at com.squareup.okhttp.internal.http.RouteSelector.nextProxy(RouteSelector.java:156)
	at com.squareup.okhttp.internal.http.RouteSelector.next(RouteSelector.java:98)
	at com.squareup.okhttp.internal.http.HttpEngine.createNextConnection(HttpEngine.java:345)
	at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:328)
	at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:246)
	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:446)
	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:118)
	at com.squareup.okhttp.URLConnectionTest.invalidHost(URLConnectionTest.java:396)

The UnknownHostException exception is surprising. Looks like a bug in the test. Fixed.


Not able to upgrade OSM control plane

Bug description:
Affected area (please mark with X where applicable):

Install                    [ ]
SMI Traffic Access Policy  [ ]
SMI Traffic Specs Policy   [ ]
SMI Traffic Split Policy   [ ]
Permissive Traffic Policy  [ ]
Ingress                    [ ]
Egress                     [ ]
Envoy Control Plane        [X]
CLI Tool                   [ ]
Metrics                    [ ]
Certificate Management     [ ]
Sidecar Injection          [ ]
Logging                    [ ]
Debugging                  [ ]
Tests                      [ ]
Demo                       [ ]
CI System                  [ ]

Expected behavior: The osm mesh upgrade command should run successfully
Steps to reproduce the bug (as precisely as possible): Launch AKS with Kubernetes version 1.22.11
How was OSM installed?: Using the command, az aks enable-addons --resource-group myResourceGroup --name myAKSCluster --addons open-service-mesh
Anything else we need to know?:
Bug report archive:

Environment:

OSM version (use osm version): v1.0.0
Kubernetes version (use kubectl version): 1.22.11
Size of cluster (number of worker nodes in the cluster): 5
Others:

Hey @vishalpant, it seems like you are experiencing an issue with the OSM AKS addon. The OSM AKS addon is managed by Microsoft. Could you kindly open a support ticket against Microsoft if the issue you are experiencing pertains to the usage the OSM AKS addon in Azure.
Further, it seems like you are attempting to manually upgrade the service mesh that was installed as an AKS addon using the osm mesh upgrade CLI. From my experience using the AKS addon, this will not work. While using the AKS addon, upgrades will be managed by AKS itself, and using the CLI to upgrade is not permitted. The CLI can only be used to upgrade when the install was done using CLI or Helm.


fix(core): identify correct default port for http and https urls

Ensure the correct default port is parsed from http and https URLs.
Before this change, URLs used to identify remote API servers might be parsed as using port 0. swa-cli would then attempt to make a TCP connection to port 0 and would eventually timeout.
With this change, ports for remote API servers are now correctly identified and connections are made to the server without the timeout occuring.
Relates to #523

@sgollapudi77 Can you please review the PR?


https://fonts.bunny.net/css?family=figtree:300,400,500,600

Laravel Version
11
PHP Version
8.3.0
Database Driver & Version
No response
Description
https://fonts.bunny.net/css?family=figtree:300,400,500,600
this url in first page of laravel and also in telescope and horizon panels load statiicly in html
It seems this site blocked Iran ips or some of internet providers ip ranges in iran. and page load will take a lot of time until status change to (failed)net::ERR_TIMED_OUT
Steps To Reproduce
not needed

Thanks. Would appreciate a PR that could resolve this.


How to add popup modal to every table header

I need to add this popup to every table header. Like this:

When click every vertical ellipsis button beside the header title, the popup should appear under the button.

@pedro-eira We do not have this feature in react-bootstrap-table. May be you could make a feature request in react-bootstrap-table2.
Thanks.


DOC: add see also for to_zarr

[x] Closes #5159
[ ] Tests added
[ ] Passes pre-commit run --all-files
[ ] User visible changes (including notable bug fixes) are documented in whats-new.rst
[ ] New functions/methods are listed in api.rst

Great! Thanks as ever @raybellwaves

sorry for not answering sooner. The issue with the link is that we have multiple versions on RTD, so with a explicit link we're linking from a docstring in latest to stable. To fix that I think we should change that to
:doc:`io.zarr`

or something similar (I didn't check whether that label was defined) in a follow-up PR, with the disadvantage that this is not really useful when viewing with pydoc / help / IPython's ? operator.

Currently renders like this, which I don't think is intended.

numpydoc See Also section is really intended for references to code; it is taking http as the identifier (and linking to Python std lib's http package).

Thanks @keewis & @zmoon , mea culpa.
@raybellwaves would you like to swap for @keewis 's suggestion? I'm happy to otherwise.


AP-4069: Create partner's financial assessment intro page

What
Link to story
Add partner about_financial_means page

add page
update flow
add specs and cucumber feature tests

Checklist
Before you ask people to review this PR:

Tests and rubocop should be passing: bundle exec rake
Github should not be reporting conflicts; you should have recently run git rebase main.
There should be no unnecessary whitespace changes. These make diffs harder to read and conflicts more likely.
The PR description should say what you changed and why, with a link to the JIRA story.
You should have looked at the diff against main and ensured that nothing unexpected is included in your changes.
You should have checked that the commit messages say why the change was made.

Code wise this looks okay but... The position in the flow (while matching the ticket) seems a bit odd. The housing benefit page is still for the client, so we interrupt client questions for the partner, then return to the client's Housing Benefits? Or does that page get updated with a "your client or their partner" version? 🤔 We should get the partner figma and confirm :)

Confirmed that this is how it is structured in the figma file


Update copy for "Airdrop" transaction

Is your feature request related to a problem? Please describe.
Users are unclear what this transaction summary means.

Describe the solution you'd like
Update copy to:
"Authorize DAO Treasury to mint new tokens"

@neokry i might be recalling wrongly but did we ship this in one of the recent PRs?


Class names have changed

No idea if this is correct, or how to test.
I can't find docs about what's changed where exactly, but I think the change of python class class name from "class" to "py class" happened with sphinx 3.

I tested this manually/offline on a local build of datashader's website.

Thanks!


Drop multijson dependency

This PR adds a Grape::Entity::Json class that will use multijson if already loaded instead of the default json.
A spec has been added to make sure to_json still works and moved require 'spec_helper' in .rspec file

@LeFnord If you want to take a look :)


add Liked page and Toast component

This PR will add code for the Liked page (Design and Functionality) and I have also added the Toast component
In this PR, 476 additions and 52 deletions lines of code

if you don't like you can avoid reviewing Backend related files
some files contain only 5 to 6 lines of code

Please review this PR and give your feedback

to Log In, use the following credentials
email<EMAIL_ADDRESS>password: johnDoe123

Live URL

Thank you for reviewing,


Docs cleanup for networking features added in 1.10

Signed-off-by: Madhu Venugopal<EMAIL_ADDRESS>

ping @thaJeztah @moxiegirl @vdemeester

@MHBauer @jamtur01 if y'all could assist on this if you have time. Ty.

I want to raise this issue in general so I know what our standard is. Usually when I see optional repetitive input in the docs it looks like IP_ADDRESS [IP_ADDRESS...] with the brackets.  I'm not sure if this is different or the same.

@thaJeztah @MHBauer @vdemeester addressed most of the comments. PTAL.

Thanks @mavenugo, found some minor nits, otherwise think it should be good to go for now

LGTM, thanks @mavenugo!

ping @vdemeester ptal

LGTM 🐌


Merging should not fail if file doesn't exist

Changed merging behavior: merges the result of the current test coverage with the specified file only if the file exists.

As discussed on #203
This tiny change should enable the use of a single "dotnet test" command to generate coverage for multiple test projects, aggregate all the results in one file, available in other formats (if requested).
Using VSTS/Azure Devops, this would be the way to have it work properly:
dotnet test **/*[Tt]ests/*.csproj
/p:CollectCoverage=true
/p:MergeWith=myfolder/coverage.json
/p:CoverletOutput=myfolder/
/p:CoverletOutputFormat=json,opencover,cobertura
Caveats:

When requesting multiple formats in addition to JSON, those other files are generated and overwritten multiples times, for no good reason (other than the execution context not "knowing" which merge is the last one).

In my scenario, my build definition depends on coverlet's default naming convention (coverage.json)

Correct me if I'm wrong in my analysis. I'll check to see if I can figure out how to test this, but I probably won't have enough time. If I'm right, this should be a way to really enhance coverlet's usage from a user's standpoint.

Nope. I tested it and although it does create a new file if not exists, it creates a new file in each run without merging...
What i run:
rletOutputFormat=opencover /p:CoverletOutput=/results/coverage /p:MergeWith='/results/coverage.json'```

For my example in #203

 @tonerdo

Nope. I tested it and although it does create a new file if not exists, it creates a new file in each run without merging...
What i run:
dotnet test .\ProjectName.sln -l trx -r /results /p:CollectCoverage=true /p:Cove
rletOutputFormat=opencover /p:CoverletOutput=/results/coverage /p:MergeWith='/results/coverage.json'

For my example in #203
@tonerdo  @vlef

It should work, if you request both json and your other formats (those you actually want), separated by a coma.
/p:CoverletOutputFormat=json,opencover,cobertura
It's gonna merge with the json file, and also generate/overwrite the other formats in the same folder as the json. You really have to target a folder as the ouput though, can't pick a specific file or it's not gonna work either.

@vlef ah good point! Haven't thought about adding both output types as param.
Will try it next time next week. Hope it works.
Thanks!

@vlef couldn't resist and I just tested it. Works! :D
In my case i had to add the %2c as to be interpreted as a comma, as stated in the project's wiki
dotnet test .\ProjectName.sln -l trx -r /results /p:CollectCoverage=true /p:CoverletOutputFormat='json%2copencover' /p:CoverletOutput=/results/coverage /p:MergeWith='/results/coverage.json'

And I got the file nicely merged in both formats :D
@tonerdo hope after this merge comes some testing on your side followed by a release!
As we are quite a few asking for this.
Cheers!


funnel webpage does not show any tasks

Hi,
The main page of the GUI does not show any tasks, in any state. This is a new behavior, the same setup was working few days back. Since then there has not been any change in the networking/infrastructure AFAIK.
I have tried  funnel 0.9.0 as well as the version mentioned in #608.
The backend database is a mongodb (v 4.0.6) which has the table tasks populated and jobs are executed using AWS batch.
When I submit new jobs to the server they do get in the tasks list, and they are executed. They are also counted in the Service Info tab.
I have tried to use different browsers (Safari, Chrome, Firefox) and different computers, either local or AWS instances, with the same outcome.
Looking in the logs of funnel (captured in debug mode), when I refresh the page I can see messages like the below, which - at least to me - appear to indicate that the information is received from the database.
{"level":"debug","msg":"received: /tes.TaskService/GetTask","ns":"server","request":{"id":"bj2t68q6qkdg00fnmhp0","view":1},"time":"2019-04-30T23:56:27Z"}
{"level":"debug","msg":"received: /tes.TaskService/GetTask","ns":"server","request":{"id":"bj2t68q6qkdg00fnmhog","view":1},"time":"2019-04-30T23:56:27Z"}
{"err":null,"level":"debug","msg":"responding: /tes.TaskService/GetTask","ns":"server","resp":{"id":"bj2t68q6qkdg00fnmhp0","state":5,"name":"root.mergeFastq2","inputs":[{"name":"220619831_N_S24_L007_R2_001.fastq.gz","url":"s3://s3.us-east-1.amazonaws.com/databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L007_R2_001.fastq.gz","path":"/databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L007_R2_001.fastq.gz"},{"name":"220619831_N_S24_L006_R2_001.fastq.gz","url":"s3://s3.us-east-1.amazonaws.com/databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L006_R2_001.fastq.gz","path":"/databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L006_R2_001.fastq.gz"},{"name":"220619831_N_S24_L008_R2_001.fastq.gz","url":"s3://s3.us-east-1.amazonaws.com/databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L008_R2_001.fastq.gz","path":"/databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L008_R2_001.fastq.gz"},{"name":"220619831_N_S24_L005_R2_001.fastq.gz","url":"s3://s3.us-east-1.amazonaws.com/databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L005_R2_001.fastq.gz","path":"/databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L005_R2_001.fastq.gz"}],"outputs":[{"name":"mergeFastq2","url":"s3://s3.us-east-1.amazonaws.com/databucket/funnel_1/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq2","path":"/opt/funnel/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq2","type":1}],"resources":{"cpu_cores":8},"executors":[{"image":"064965165932.dkr.ecr.us-east-1.amazonaws.com/ngs/systemtools:latest","command":["/bin/sh","-c","zcat  /databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L005_R2_001.fastq.gz /databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L006_R2_001.fastq.gz /databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L007_R2_001.fastq.gz /databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L008_R2_001.fastq.gz  | pigz -p 8 -   \u003e 0351003.1_R2.fq.gz"],"workdir":"/opt/funnel/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq2","stderr":"/opt/funnel/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq2/job.err.log","env":{"HOME":"/opt/funnel/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq2","TMPDIR":"/opt/funnel/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq2"}}],"tags":{"job_id":"f0ab0e70-445d-3f6b-9dec-8d85e03e298b","tool_name":"root.mergeFastq2","workflow_id":"7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e"},"logs":[{"logs":[{"start_time":"2019-04-28T16:39:44.716122195Z","end_time":"2019-04-28T16:45:51.687693188Z"}],"metadata":{"awsbatch_id":"f4471840-6474-4e5b-b6d9-d884361e1bb3","hostname":"ip-10-112-30-182"},"start_time":"2019-04-28T16:34:06.122681765Z","end_time":"2019-04-28T16:46:32.673737247Z","outputs":[{"url":"s3://s3.us-east-1.amazonaws.com/databucket/funnel_1/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq2/0351003.1_R2.fq.gz","path":"/opt/funnel/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq2/0351003.1_R2.fq.gz","size_bytes":2721648331},{"url":"s3://s3.us-east-1.amazonaws.com/databucket/funnel_1/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq2/job.err.log","path":"/opt/funnel/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq2/job.err.log"}]}],"creation_time":"2019-04-28T16:21:55.159400363Z"},"time":"2019-04-30T23:56:27Z"}
{"err":null,"level":"debug","msg":"responding: /tes.TaskService/GetTask","ns":"server","resp":{"id":"bj2t68q6qkdg00fnmhog","state":5,"name":"root.mergeFastq1","inputs":[{"name":"220619831_N_S24_L006_R1_001.fastq.gz","url":"s3://s3.us-east-1.amazonaws.com/databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L006_R1_001.fastq.gz","path":"/databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L006_R1_001.fastq.gz"},{"name":"220619831_N_S24_L005_R1_001.fastq.gz","url":"s3://s3.us-east-1.amazonaws.com/databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L005_R1_001.fastq.gz","path":"/databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L005_R1_001.fastq.gz"},{"name":"220619831_N_S24_L008_R1_001.fastq.gz","url":"s3://s3.us-east-1.amazonaws.com/databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L008_R1_001.fastq.gz","path":"/databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L008_R1_001.fastq.gz"},{"name":"220619831_N_S24_L007_R1_001.fastq.gz","url":"s3://s3.us-east-1.amazonaws.com/databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L007_R1_001.fastq.gz","path":"/databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L007_R1_001.fastq.gz"}],"outputs":[{"name":"mergeFastq1","url":"s3://s3.us-east-1.amazonaws.com/databucket/funnel_1/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq1","path":"/opt/funnel/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq1","type":1}],"resources":{"cpu_cores":8},"executors":[{"image":"064965165932.dkr.ecr.us-east-1.amazonaws.com/ngs/systemtools:latest","command":["/bin/sh","-c","zcat  /databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L005_R1_001.fastq.gz /databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L006_R1_001.fastq.gz /databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L007_R1_001.fastq.gz /databucket/RNA-Seq/Raw/pilot/fastq.20190418/220619831_N_S24_L008_R1_001.fastq.gz  | pigz -p 8 -   \u003e 0351003.1_R1.fq.gz"],"workdir":"/opt/funnel/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq1","stderr":"/opt/funnel/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq1/job.err.log","env":{"HOME":"/opt/funnel/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq1","TMPDIR":"/opt/funnel/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq1"}}],"tags":{"job_id":"5e8dba05-ed7b-37e2-9138-86ffecb44b3a","tool_name":"root.mergeFastq1","workflow_id":"7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e"},"logs":[{"logs":[{"start_time":"2019-04-28T16:28:23.524548165Z","end_time":"2019-04-28T16:34:08.730394611Z"}],"metadata":{"awsbatch_id":"d05dfa97-0981-4af4-a9a1-81112a2174c0","hostname":"ip-10-112-31-48"},"start_time":"2019-04-28T16:23:26.883289327Z","end_time":"2019-04-28T16:34:42.957780927Z","outputs":[{"url":"s3://s3.us-east-1.amazonaws.com/databucket/funnel_1/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq1/0351003.1_R1.fq.gz","path":"/opt/funnel/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq1/0351003.1_R1.fq.gz","size_bytes":2457631383},{"url":"s3://s3.us-east-1.amazonaws.com/databucket/funnel_1/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq1/job.err.log","path":"/opt/funnel/7b7afab9-551c-4eb2-a1b1-7e8343fb3d2e/root/mergeFastq1/job.err.log"}]}],"creation_time":"2019-04-28T16:21:55.067238808Z"},"time":"2019-04-30T23:56:27Z"}

I have tried to restart the server, the instance it is running on and the mongodb without any change.
Any advise on how to address or further debug this issue?
Thanks in advance for your help

If you open up the developer tools in Chrome / Firefox do you see any errors in the javascript console?

Hi, I tried the Chrome Devtools and I could not see any obvious error.
The Chrome profiler indicates that initially time spent in Parsing the HTML for tasks and setting up the page but then it stays idle until the page is shown.
After trying several times today I finally got the list of tasks but it still takes long to load (>30s in some cases). This is consistent in both version of funnel that I am using.

Hi sorry for the delay.  Can you try the branch react-webdash? I've been working on the side to update the web dashboard.

Thanks, I like the new look of it on the front page. The details of a task are shown the JSON  contents directly, is this intentional?

It was originally a shortcut to get a prototype of dashboard up and running. I don't mind it personally, but I'd welcome any feedback.  I am not much of a frontend guy so this has all been new to me.

my 5c:
I think that new skin looks nice, and the page buttons are great. The way the content was organized in the task page in the previous version is more easily digestible by an end user (dealing with nested {} may be too much an ask for an average user)


No python 3.11 distribution in PyPI

There doesn't seem to be any distributions for any version of rustsim for Python 3.11 on PyPI. Looks like it's expected to be supported for Python >= 3.7. PyPI shows built distributions for 3.7-3.10: https://pypi.org/project/rustsim/#files.
Here's the message I see when I manually try to install rustsim in a Python 3.11 environment:
pip install rustsim
ERROR: Could not find a version that satisfies the requirement rustsim (from versions: 0.1.9)
ERROR: No matching distribution found for rustsim

For background: For NCATS Biomedical Data Translator, we're using the biolink modeling toolkit, which depends on oaklib, which depends on rustsim. Please let me know if any other info may be needed.

Thanks @CaseyTa - we'll add a Python 3.11 build.

OK, rustsim wheel for 3.11 is now on Pypi.

Thank you, @caufieldjh! Confirmed that my pipelines are working as expected now. Very much appreciate the quick resolution! Also, excellent presentation today :)

Thanks!


Draft: Test CI using an empty change

DO NOT MERGE.
Signed-off-by: Breezewish<EMAIL_ADDRESS>

Compatibility Test also failed, looks like some help from others is needed.

Compatibility Test also failed, looks like some help from others is needed.

It is expected that compatibility test sometimes does not pass. It won't pass until we update the client in other repos.


a request

I'm so happy that author write the A guide to submit results to KITTI test. This is the 3d method. Now I want to get the method of 2d results submit to the kitti . Can you help me?

You can use the same format and pad the 3d field with zeros. Something like:
3D result
0 0 Car -1 -1 -10 0.0 206. 355. 374. 1.4491 1.6202 3.8693 -3.70 1.833 6.21 -4.7342 9.97671813719746
2D result
0 0 Car -1 -1 -10 0.0 206. 355. 374. 0 0 0 0 0 0 0 0


Add yili logo

@zhuxt2015 You should also add some content to
https://github.com/apache/dolphinscheduler-website/blob/c9c0511b7b1a5c6513d6b58eb94eec7e74f3b0df/site_config/home.jsx#L544

Done

I approval the tests run


core.matrix support

I would find it extremely useful and interesting if there was some core.matrix support in gorilla-repl
In particular the following features would be great:

Viewing a subset of a large matrix (some can be very big and don't print nicely in a regular REPL so you really need to be able to view a restricted window)
Visualising a matrix as a bitmap (especially useful for sparse / non-zero values)
Charting a N-dimensional array (as multiple lines, bars etc.)

Looking back at this with hindsight of having added rendering support for a number of libraries, I think the right way to go on this is a separate rendering library (see https://github.com/JonyEpsilon/loom-gorilla for an example). That works pretty nicely, and keeps separate things separate. I think the implementation notes above are still relevant.
Going to close the issue here as I don't think this is a Gorilla issue as such.


AvaloniaProperty.RegisterAttached doesn't work when THost is an interface

SetValue throws "Property 'MyProperty not registered on 'MyControl".

Yeah, this is the case with WPF as well I think. I would like to make AvaloniaProperty registration work on interfaces but it's not been a priority so far, and it makes resolving properties more difficult: every interface implemented by a class needs to be searched instead of just the class and its base classes.

I think the check could be as simple as a Type.IsAssignableFrom() call, but I may be wrong.

While interfaces are not supported, we should throw during registration.


React-Native example don't write file in directory

RN version 0.60
while working, create new workbook, new sheet, convert to binary and using fs to write ascii in DocumentDirectoryPath xlsx file, but nothing is happen
trying official example https://github.com/SheetJS/js-xlsx/blob/master/demos/react/react-native.js, it says that file succ created, but it's not true

Thanks for reporting!  Likely you're seeing an issue with react-native-fs .  Can you confirm whether their write example works?  If so, how are you testing (device or simulator, android or IOS)?

Oh, writing example writing that successful but no files on directory still
Testing on real device connected via usb
install react-native-fs  via link and adding some strings in build.grandle and settings.grandle


Update tracing README sample

Up and running...otput as expected
Calling start() on a started span.
Calling start() on a started span.
Span(name="/mycontainer", context=SpanContext(trace_id=0x0e8fc47c6ba12003e2a5cdd08bbe9e49, span_id=0x6c43454898522146, trace_state={}), kind=SpanKind.CLIENT, parent=Span(name="BlobServiceClient.create_container", context=SpanContext(trace_id=0x0e8fc47c6ba12003e2a5cdd08bbe9e49, span_id=0x6fdf46f65f578bfb, trace_state={})), start_time=2020-03-19T21:34:22.012116Z, end_time=2020-03-19T21:34:22.973970Z)Span(name="BlobServiceClient.create_container", context=SpanContext(trace_id=0x0e8fc47c6ba12003e2a5cdd08bbe9e49, span_id=0x6fdf46f65f578bfb, trace_state={}), kind=SpanKind.INTERNAL, parent=Span(name="MyApplication", context=SpanContext(trace_id=0x0e8fc47c6ba12003e2a5cdd08bbe9e49, span_id=0x4b5089facaaba871, trace_state={})), start_time=2020-03-19T21:34:22.007130Z, end_time=2020-03-19T21:34:22.977961Z)Span(name="MyApplication", context=SpanContext(trace_id=0x0e8fc47c6ba12003e2a5cdd08bbe9e49, span_id=0x4b5089facaaba871, trace_state={}), kind=SpanKind.INTERNAL, parent=None, start_time=2020-03-19T21:34:22.007130Z, end_time=2020-03-19T21:34:22.977961Z)(trace)

Can one of the admins verify this patch?


CodeCommit is deprecated, and install script relies on codecommit

install.sh uses CodeCommit. However, CodeCommit has been deprecated, and no new repos can be added. Hence the script will fail.

Thank you for your great interest.
Yes, you're right, it was a sudden deprecation.
We've been trying to solve it.
Before that, If you have any account which already use the CodeCommit, you can do this refs in that account.

Thank you, this is fixed.


Getting the initial operations.qs going it silly in complexity

The Operation.qs required for the sample code in the initial sample code, requires the following:

Figure out which file to download, clone from Github
GitHub cloning or copy
Determine how to use samples.sln component with operation.qs
Run the code.
question here is: Why didn't the sample code shown for the initial "Addition of two qubits" simply be copied and pasted into the initial code presented when opening the Q# for the first time.  It doesn't.
This is an immediate to advanced idea, but assuming that everyone will jump through loops like in the past with Visual Studio, etc. isn't really conductive to getting new people into quantum computing.
Simplify, simplify, simplify, at least the intital start up component.

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

ID: 3892837a-0ca3-f757-ef04-669927592f46
Version Independent ID: 29764b5f-e30a-f5ab-f37f-7e724374ff37
Content: Get started with the Quantum Development Kit (QDK) - Microsoft Quantum
Content Source: articles/welcome.md
Product: quantum
GitHub Login: @natke
Microsoft Alias: nakersha

Thank you for your feedback. We generally understand the issue and will improve the experience for the QDK users. We need a bit more help from you here as the page this issue links to is the Welcome page to the QDK, which does not contain the sample code mentioned. Would you mind providing the link to the sample you are referring to? Thank you.

Closing due to inactivity. Please reopen if necessary. Thanks!


Fix for UnicodeEncodeError in CSV2DB

Many thanks @AntonioJBT !

Hi @AntonioJBT
cc @Acribbs
We are having a problem with this change, and the csv2db.py script is not working properly with the following code:
cat example.txt | cgat csv2db --retry --database-backend=sqlite --database-name=csvdb --table=gene_info

where example.txt is:
gene_id	exon_version	gene_biotype	gene_name	gene_source	gene_version	havana_gene	havana_gene_version	havana_transcript	havana_transcript_version	tag	transcript_biotype	transcript_source	transcript_support_level	transcript_version
ENSG00000223972		transcribed_unprocessed_pseudogene	DDX11L1	havana	5	OTTHUMG00000000961	2	OTTHUMT00000362751	1	basic	processed_transcript	havana	1	2
ENSG00000223972	1	transcribed_unprocessed_pseudogene	DDX11L1	havana	5	OTTHUMG00000000961	2	OTTHUMT00000362751	1	basic	processed_transcript	havana	1	2

With the code change on this pull request we get an empty csvdb table as output. If I revert the change to the previous version, csv2db.py works again and the csvdb table is populated as expected.
Before reverting this on the master branch, could you please give us an example where the original code was not working for you?
Best regards,
Sebastian

Hi Sebastian and @Acribbs,
Apologies. I pulled the trigger without testing properly. I get the error when executing from a pipeline:
.. block:
UnicodeEncodeError: 'utf-8' codec can't encode character '\udce2' in position 0: surrogates not allowed

I haven't had a chance to test properly but the pipeline_quickstart.py template calls this and might reproduce it.
The fix I sent however also gives an empty database. It looks like we could use a test for this?
I'll try to test later or tomorrow though for the error above.
I suggest you revert in the meantime...
Sorry...!
Best,
Antonio

Thanks @AntonioJBT
Reverting change and adding test in https://github.com/CGATOxford/cgat/pull/360
Regarding your error, I suggest you try the --utf8 option of csv2db.py and if that doesn't work, please try prefixing the script with LANG=en_GB.UTF-8; i.e. LANG=en_GB.UTF-8 cgat csv2db <your-arguments-here> (we found a similar issue with some Python 3 code on our environment that was solved with this last option)
Please let us know whether that works for you.
Best regards,
Sebastian


Added Pokeball by DarkXamper

Description
It's a Pokeball used to store not a Giraffe , not an Elephant , not a fridge but a Pokemon😉
Fixes #190
Screenshot

Checklist:

[x] My code follows the guidelines of this project
[x] I have tested my code and it works properly
[x] I have added just one folder that includes my Art files (jsx and css)
[x] I have not edited App.js file
[ ] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[x] This is my original code and I have NOT copied the code from anywhere else.

Good job @DarkXamper 👌


The option 'best' is missing

Steps to reproduce this issue

Expected result
Actual result
Notes and screenshots

This is a reasonable request. The problem is that the top bar is already at maximum capacity for text on a single row. If you have a name longer than ~14 characters it creates a second row that the extension doesn't really account for visually. There are multiple ways to solve it, but someone needs to put a little time into the top bar to make this request work best.

I realized this is a dupe of #90, I will close this one.


bind:files not updating on submit

Describe the bug
using  <input type="file" bind:files/> and use:enhance does not update the state on form submission
Reproduction
recreation of the bug in sveltelab
when looking in the console there is no update when you press submit
Logs
No response
System Info
System:
    OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (4) x64 Intel(R) Xeon(R) CPU E3-1225 v3 @ 3.20GHz
    Memory: 20.58 GB / 23.38 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.5.1 - /usr/bin/node
    npm: 10.2.4 - /usr/bin/npm
  npmPackages:
    @sveltejs/adapter-auto: ^3.1.1 => 3.1.1
    @sveltejs/adapter-node: ^2.1.2 => 2.1.2
    @sveltejs/kit: ^2.5.2 => 2.5.2
    @sveltejs/vite-plugin-svelte: ^3.0.2 => 3.0.2
    svelte: ^4.2.12 => 4.2.12
    vite: ^5.1.5 => 5.1.5

Severity
annoyance
Additional Information
No response

The same is true for any input.
enhance does a form reset, which does not trigger any change events that would update bindings.

https://github.com/sveltejs/svelte/pull/10617 would tackle this


Module for Cluster + Service?

Is your request related to a problem? Please describe.

The following docs seem to indicate that this repo offers a single module that provisions both a cluster and a service, however, I am not seeing that in the existing modules.  Am I missing something?
https://github.com/terraform-aws-modules/terraform-aws-ecs/blob/master/README.md?plain=1#L11
https://github.com/terraform-aws-modules/terraform-aws-ecs/blob/master/modules/cluster/README.md?plain=1#L10
Describe the solution you'd like.

Describe alternatives you've considered.

Additional context

Correct - the root module supports both the cluster creation and n-number of services that will be provisioned on that same cluster https://github.com/terraform-aws-modules/terraform-aws-ecs/blob/2604124d05974c2ee47ff7194d62d55ac425a3cb/examples/complete/main.tf#L28-L48
Or you can define the cluster separate from the service definitions:

Cluster only example https://github.com/terraform-aws-modules/terraform-aws-ecs/blob/2604124d05974c2ee47ff7194d62d55ac425a3cb/examples/ec2-autoscaling/main.tf#L28
Service only example https://github.com/terraform-aws-modules/terraform-aws-ecs/blob/2604124d05974c2ee47ff7194d62d55ac425a3cb/examples/ec2-autoscaling/main.tf#L78

Awesome, thanks @bryantbiggs!


fix: show spotify url on pre-save drop after the release

Why

show spotify url on pre-save drop after the release

How
Show the Play button only after the release date of the song.

Test Plan

Tiny change, so merging! 🙏


Default deserializer performance

The line here is a very performance heavy operation:
https://github.com/subframe7536/kysely-sqlite-tools/blob/master/packages/plugin-serialize/src/serializer.ts#L31
This seems far too aggressive for default behavior. Could I suggest that date parsing is opt-in? Let alone recursive date regex/parsing that runs on every string.
Also, wouldn't doing something like this to check for objects be more intuitive? JSON.parse is an expensive operation, and shouldn't be getting executed for every arbitrary string value.
if (parameter.startsWith('{') && parameter.endsWith('}')) {
          return JSON.parse(parameter)
}

Yeah, default serializer/deserializer is "just ok to run" and have much room to optimize for performance. Thanks for you suggestion and I will try to improve it.
you can write your own serializer/deserializer currently

maybe https://github.com/unjs/destr is a better choice

complete in V5.7


Request for R Language Support

Validations

[X] I believe this is a way to improve. I'll try to join the Continue Discord for questions
[X] I'm not able to find an open issue that requests the same enhancement

Problem
When using the @code function, it seems continue cannot identify R functions. I hope continue can support R language for the @code function in the future.
Solution
No response

Hi @Jiayou-Chao , appreciate the feedback here!
This is something we'd like to/plan to get around to eventually, but in the meantime, if anyone is interested in picking this work up it is actually quite straightforward. You would just need to create a new tree-sitter parser for R here: https://github.com/continuedev/continue/tree/main/core/tag-qry


⚠ TiendaEnLinea has degraded performance

In 3e85eea, TiendaEnLinea (https://www.fahorro.com/) experienced degraded performance:

HTTP code: 200
Response time: 6912 ms

Resolved: TiendaEnLinea performance has improved in aef4360.


[Mod]: Resurfaced - Stockalike PBR Part Shaders

Mod Name
Resurfaced
Author(s)
Al2Me6, Beale, Zorg, Roger
License
GPL
Homepage link
https://github.com/Tantares/Resurfaced
Download link
https://github.com/Tantares/Resurfaced/releases/

This depends on a yet-to-be-released version of Shabby to be uploaded here:

https://github.com/KSPModdingLibs/Shabby/releases

Submitted Tantares/Resurfaced#1.


NPM Token doesn't list created tokens

Describe the bug
This feature doesn't work as documented when you create a token
To Reproduce
enable tokens
experiments:
  # support for npm token command
  token: true

npm token create --registry http://localhost:4873/
returns this error
npm ERR! code E500
npm ERR! 500 Internal Server Error - POST http://localhost:4873/-/npm/v1/tokens - [saveToken] method not implemented

but if you look at the logs it did create one, but now you cannot list it
npm token --registry http://localhost:4873/
Error
npm ERR! code E500
npm ERR! 500 Internal Server Error - GET http://localhost:4873/-/npm/v1/tokens - [readTokens] method not implemented

Expected behavior
Should list created tokens according to https://github.com/verdaccio/verdaccio/pull/1427
Configuration File (cat ~/.config/verdaccio/config.yaml)
experiments:
  # support for npm token command
  token: true

Additional context

Well, message is quite clear.  Your storage does not handle tokens. I don't see many details in the ticket, so I think the error is on your side.
npm ERR! 500 Internal Server Error - POST http://localhost:4873/-/npm/v1/tokens - [saveToken] method not implemented


Handle temp security group not available

LGTM. The retry should also be applied to the brkt diag command - looks like it should be trivial to do. I'll do that myself in another PR


Localize formatted dates in TenantUI

As a TenantUI user, if I change the i18n language I want to see the dates formatted and translated.
AC:

when the locale is changed, any dates that are passed through the formatters update to the appropriate format

See in frontend\src\helpers\index.ts the date formatters use date-fns as the library. So I think that has support for a supplied locale https://date-fns.org/docs/Locale


New cluster tasks

Reguarding my new cluster here are my quick notes...
Cilium w/ kube-router
k3s 1.19 w/ embedded etcd
Flux2
rook-ceph
external-dns with k3s embedded etcd
home-assistant chart w/ embedded postgres and influx
use newest charts for radarr, sonarr jackett etc.
use k8sathome docker images for apps that are supported
back up data
rename this repo to k8s-cluster
rename deployments folder to cluster
upgrade NUC bios https://github.com/onedr0p/k3s-gitops/issues/44
set bios to standard config https://photos.app.goo.gl/r5pk2wqpugLCyQxM8
use ubuntu-autoinstall usb drives

Data migration from longhorn to rook-ceph
apt install pigz
mount -t nfs -o "tcp,intr,rw,noatime,nodiratime,hard" <IP_ADDRESS>:/volume1/Data /mnt/Data
tar --use-compress-program=pigz -C /mnt/tmp/ -cvf /radarr.tar.gz ./


Remove rayon::split, leaving only rayon::iter::split

The split function creates a ParallelIterator, which better
justifies its place in rayon::iter.  It's not really used enough to
justify its place in the crate root.
Fixes #432.

bors r+


enhance: cache store check key exist before prefetch

random read will cause repeat prefetch same blocks，which will case bandwidth amplification
https://github.com/juicedata/juicefs/issues/5134

@sjp00556 You also need to manually pick PR #4947 to get rid of duplicate prefetch.

I suppose those are two different duplications - #4947 fixes duplication between prefetches, #5135 is for duplication between prefetch and readahead.

This PR has nothing to do with the readahead, and #5134 has already been fixed by #4947.

This PR has nothing to do with the readahead, and #5134 has already been fixed by #4947.

yes, #4947 fixed this issue


Seeking help: using standard github pages syntax highlighting

Hi,
First off, great theme and I'm trying to use it for my blog hosted on github pages (https://oliviervaillancourt.com).  So far, pretty good success.  My first blog post has javascript fenced code blocks and it works great as far as syntax highlighting goes.
However, my second blog post (currently in the works) as c# fenced block.  I would prefer to be able to apply the standard Rouge syntax highlighting.
I've tried the following so far without success.  Note that I am running these tests locally and not as a github pages deployment

comment out the #highlightjs_theme: "monokai-sublime"  from _config.yml
add highlighter: rouge in _config.yml
remove the <link> tag that is is pulling down the monokay-sublime css

I'm always getting no highlighting at all
Any help would be greatly appreciated
Thanks, Olivier

I did the same thing but i also added the below to  _includes/head.html which works
  <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.8/styles/default.min.css">
  <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.8/highlight.min.js"></script>
  <script>hljs.initHighlightingOnLoad();</script>


In in-repo-engines: Support access to parent project components

I tried to use in-repo-engines for lightweight modularization of my growing ember app. The problem I encountered was, that my in-repo-engines don't see components from the main app. Unfortunately, the "dependencies" mechanism in the in-repo-engine's package.json doesn't work properly.
Would it be possible to optionally have an in-repo-engine inherit all components from the main app, including transitively included components (from other addons)? My in-repo-engines are heavily coupled to the main project anyway.

You'll need to separate components that you wish to share into an addon and then make that addon a dependency of both your application and engine. The shared addon and the engine could both be in-repo.


Deployment on AWS EC2

We will deploy an MVP on EC2 rather than Lambda, as much easier to get started with. We can then evaluate a shift to a lambda based model.

I saw on #4 you were concerned with secrets, AWS has a few different products to manage that, including a secret store that we can setup so that AWS Lambda can read from it (or an EC2 host can fetch it). How compute intensive is this?

Its not very compute hungry.
It will be much more efficient as a lambda, but will require some fiddly re-architecting to get it to work.  I propose (and discussed with others) that we could just deploy on a cheap EC2 instance (e.g t4g medium $12/mo) for an MVP and work towards a lambda in the future.
What do you think?

Done


Align npm scripts across all track 2 packages

The npm scripts (e.g. build, test, pack) should be aligned across all track 2 packages.  Currently, there is significant variation across packages for a given script.  For example, some packages may always run build before pack, while others assume it is the developers responsibility to run build before pack.
I believe we should use the principle that each npm script does the minimum necessary to complete its objective, and requires developers to manually run any prerequisite steps.  This allows developers to work as efficiently as possible without redundant commands.

@KarishmaGhiya, I believe we have now come to some kind of consistency around the use of npm scripts across the track 2 packages. Can you do a quick review and close this issue if no further action is needed?

The scripts across packages are aligned. We can close this issue.


Crashes with white screen. 【OLD3DS JP】

Hello.
I am looking to run kartminer7 using a Japanese OLD3DS.
Unfortunately, after pressing OK the Mario Kart race starts.
I get a white screen and it says "The software was forcibly terminated due to an error. We will restart." message appears and I am unable to proceed.
I have tried repeating the same action about 20 times and it crashes the same way.
I searched YouTube to see if there were others in the same boat and found a comment that JPOLD3DS could not do it.
I hope you can fix the program.
I am always impressed by your work.

I've got the same issue with the old jpn 3DS. On the japanese version there is not an option to change the language so there is no way of passing the race start screen.

The last hope for issues like this rests in this one issue: https://github.com/zoogie/Kartminer7/issues/16
The reason is: I cannot debug your issues because they do not occur on my <insert region/model 3ds here> and thus I completely rely on people, with cfw, that already that have your exact problem and can give me crash dumps.
Given that people have nothing to gain personally after they get their cfw, there isn't much hope in them replying to that thread.


feat: add gofumpt

Add gofumpt for a stricter goformatting.

:D. I kind of wanted the formatting part of it so that things was automatically formatted

:D. I kind of wanted the formatting part of it so that things was automatically formatted

Alright, that part is already included in golangci-lint (using gofumpt no less)

Previous PR and discussion: #102

Hmm I thought I search for a PR before making this


Clarification on Project Scope and Vision

Hi @CurtisGreen,
I hope you're doing well. I'm interested in contributing new features to OpenSidewalkMap and would like to understand the project's scope and long-term vision better. So far, I've contributed some documentation updates and opened a PR to address viewing sidewalks marked as features of the road.
I'm considering the following improvements:

UX refinements for desktop and mobile (updating the layout to support additional details and user activities)
Features for sidewalk data collection (uploads data for OSM)
Features for statistical breakdown of Active Transportation Infrastructure assets for compliance and inventory
Deployment as a progressive web app or app store app for mobile users

I may only have time to design these features for now but would like to eventually deliver a working version of them. If these features don't align with OpenSidewalkMap's vision, I might consider developing them as a standalone project.
Could you please clarify if these align with your vision and scope for OpenSidewalkMap?
Thanks for your time and for maintaining this project. I look forward to your response.
Best,
David

UX refinements for desktop and mobile (updating the layout to support additional details and user activities)
I'd need more specifics but probably fine

Features for sidewalk data collection (uploads data for OSM)
I think as long as it's focused to sidewalks this could be good

Features for statistical breakdown of Active Transportation Infrastructure assets for compliance and inventory
Things like length of sidewalk within the area would be doable with the current data, open parking map does that for parking area and I think it's cool. I just hadn't implemented it yet

Deployment as a progressive web app or app store app for mobile users
I generally prefer making the website as responsive as possible for mobile but I understand some people enjoy apps. If it doesn't drastically change/add code then I think this would be fine, otherwise maybe should be separate and can just be updated whenever the site updates

UX refinements:

I'm producing some wireframes that illuminate at least part of that.

Data Collection:

imagine https://github.com/OPENER-next/OpenStop, but data collection scope includes curbs, sidewalks, crossings
this information is expected to support prioritization of accessibility improvements and alignment of key active transportation routes in my region

Statistics:

data collection progress, ex:

Overpass detects 741 tagged and potential curbs in the area (ex: https://overpass-turbo.eu/s/1O5l )
110 curbs have been tagged, users can help us document the other 631 with rich data

breakdown of curbs and compliance -- information useful for planners, advocates, and decision makers
breakdown of sidewalks, crossings, and their compliance

Deployment:

We might get pretty far with a PWA and responsive design before the need to ship through the app store

I can ping you with some more complete details. I'd like to get your feedback and ideas before doing any higher-fidelity prototyping. There is a bit of a backlog (story map) forming. I can share that with you as well.

I'd be okay with it as long as the features are different enough from OpenStop or any other known application.
Currently I'd say the main features of open sidewalk map are:

It's simple
It's up to date by dynamically grabbing the latest data


Add install_dir option to StanfordOpenIE class

I have strict disk usage quota in my home folder (~/), so cannot afford to save the coreNLP package there. I figured others may be in a similar situation.

@rubencart thank you!


adding license, owner file, security file, owner squad

https://app.zenhub.com/workspaces/applifecycle-issue-tracker-5e480a1f17e47394a67447b9/issues/open-cluster-management/backlog/8247

/approve

/approve


Research market and create design docs for new project

I am starting a new project called Ogre Drive which is going to function as an open source GUN/Sia-based alternative to Google Drive/OneDrive/etc.
This is going to be the first project to use Griffin in production. It has two objectives: challenge and compete with centralized, proprietary solutions to cloud storage, and provide real-world testing for Griffin's use cases. I expect this to help Griffin develop further than brainstorming and unit tests alone will.
This task is specifically for me. What I need to do is:

Research similar applications
Create UX/features documentation
Plan out project tasks in Basecamp
Create UI designs in Figma

Did you fix this issue? Go claim the $163 bounty on Bountysource.

I have created the template for the project here: https://github.com/OgreApps/drive
The UX/features documentation was done very thoroughly, I have a very good idea of what to do and how to implement it now.
For project tasks, I decided I'd rather use Github issues than Basecamp or Trello as I tend not to need kanban that much and it's more convenient to keep everything in the same place. Maybe will use Trello in the future but don't feel I need it now. In early development I prefer to just wing it.
For UI designs, I have so much reference material for what I want and such a detailed description in the plan documents that I feel I don't need Figma to formalize that; I can just formalize it with CSS. Might use Figma when designing the home page but app designs tend to be too simplistic to be worth the time and I'm good at formalizing things within my head.
Also I spent a lot of time on the Gulp setup, learning more about Scala, learning more about PWAs, etc, so I am a bit worn out from the setup phase and would like to move on.
So, I consider this task complete. Competitors have been thoroughly researched and UX docs have been created.
Going to get started with development now!

I have created the template for the project here: https://github.com/OgreApps/drive
The UX/features documentation was done very thoroughly, I have a very good idea of what to do and how to implement it now.
For project tasks, I decided I'd rather use Github issues than Basecamp or Trello as I tend not to need kanban that much and it's more convenient to keep everything in the same place. Maybe will use Trello in the future but don't feel I need it now. In early development I prefer to just wing it.
For UI designs, I have so much reference material for what I want and such a detailed description in the plan documents that I feel I don't need Figma to formalize that; I can just formalize it with CSS. Might use Figma when designing the home page but app designs tend to be too simplistic to be worth the time and I'm good at formalizing things within my head.
Also I spent a lot of time on the Gulp setup, learning more about Scala, learning more about PWAs, etc, so I am a bit worn out from the setup phase and would like to move on.
So, I consider this task complete. Competitors have been thoroughly researched and UX docs have been created.
Going to get started with development now!

UI I created with CSS

UI I created with CSS

Neat!
Regarding the kanban, have you seen/used the GitHub project boards?
Some interesting tidbit(s) you've learned about the competitors?

Neat!
Regarding the kanban, have you seen/used the GitHub project boards?
Some interesting tidbit(s) you've learned about the competitors?

Ah yeah I have seen the kanban boards I guess I just need to explore Github more.
Something interesting I noticed was they all placed a major focus on integrations. They also place limitations on storage and have inflexible pricing. Google Drive doesn't let you store more than 2TB I think. I also noticed Dropbox is very sucky lol, it has barely any features not sure why it's so popular.
I think open source projects can definitely beat proprietary ones when it comes to integrations and Sia has practically unlimited storage with very flexible pricing. I plan to only officially integrate with OS projects, so Taiga instead of Trello, Zulip instead of Slack, Mastodon instead of Twitter, etc. If I don't find something that meets my standards I might make it another Ogre app, for example I also plan on eventually creating alternatives to docs/sheets/slides.

Ah yeah I have seen the kanban boards I guess I just need to explore Github more.
Something interesting I noticed was they all placed a major focus on integrations. They also place limitations on storage and have inflexible pricing. Google Drive doesn't let you store more than 2TB I think. I also noticed Dropbox is very sucky lol, it has barely any features not sure why it's so popular.
I think open source projects can definitely beat proprietary ones when it comes to integrations and Sia has practically unlimited storage with very flexible pricing. I plan to only officially integrate with OS projects, so Taiga instead of Trello, Zulip instead of Slack, Mastodon instead of Twitter, etc. If I don't find something that meets my standards I might make it another Ogre app, for example I also plan on eventually creating alternatives to docs/sheets/slides.


Updating meta of proto object wrongly

When we have a mutable value on proto object and update the same to save on self. It is updating the metadata value on proto object as well.
I do understand that I should clone the value before updating but still when we get values from proto ( not self) it should be cloned and passed to avoid accidental fail.  I could have done thsi but this was @angular/ compiler code that was causing an issue.
I have froked the repo here https://github.com/arpit-agarwal/reflect-metadata and added a test-case which fails on your repo and works after my fix for cloning. If desired i may create a pull request.
MutableKeyValueDefinedOnPrototype
    it("MutableKeyValueDefinedOnPrototype", () => {
        let prototype = {};
        let obj = Object.create(prototype);
        Reflect.defineMetadata("key", ["value_proto"], prototype, undefined);
        let result = Reflect.getMetadata("key", obj, undefined);
        assert.equal(result[0], "value_proto");
        result.push("value_self");
        Reflect.defineMetadata("key", result , obj, undefined);
        let result_proto = Reflect.getMetadata("key", prototype, undefined);
        let result_self = Reflect.getMetadata("key", obj, undefined);
        assert.equal(result_proto.length, 1);
        assert.equal(result_self.length, 2);

    });

Hey @arpit-agarwal , your fork works wonderfully. And here I was getting frustrated, thinking my decorator functions were faulty. This is exactly the solution I needed for my decorator based object validator. I personally vote for merging this into the main repo.

I don't see this as a bug. Nothing about this API explicitly calls for immutability or cloning. You have the same issue if you do the following in JavaScript today:
class C {
  constructor() {
    this.array.push("value_self");
  }
}
C.prototype.array = ["value_proto"];

console.log(C.prototype.array); // ["value_proto"]
console.log(new C().array); // ["value_proto", "value_self"]
console.log(C.prototype.array); // ["value_proto", "value_self"]

Instead, its better to be more defensive when mutating any metadata entry:
// decorator
function example(target: any) {
  setExample(target, "value_proto");
}

// gets value of decorator on object
function getExample(target: any) {
  const array = Reflect.getMetadata("key", target);
  return array && array.slice(); // defensive get, creates a copy
}

// sets value of decorator on object
function setExample(target: any, value: string) {
  const data = [value];
  const previous = Reflect.getMetadata("key", target);
  const result = previous ? previous.concat(data) : data; // create a copy
  Reflect.defineMetadata("key", result, target); // defensive set
}

@example
class C {
  constructor() {
    setExample(this, "value_self");
  }
}

console.log(getExample(C.prototype)); // ["value_proto"]
console.log(getExample(new C()); // ["value_proto", "value_self"]
console.log(getExample(C.prototype)); // ["value_proto"]

@arpit-agarwal, if this is an issue in Angular, I would recommend you open an issue in github.com/angular/angular/ referencing this.

@rbuckton, let's assume I have (using typescript) multiple classes inheriting from one superclass, each having some properties decorated (e.g. for validation purposes), like so:
'use strict';
require('reflect-metadata');

const METADATAKEY: string = "key";

function applyDecorator(target: any, propertyName: string, type: string, value?: any) {
  let meta: any[] = Reflect.getMetadata(METADATAKEY, target);
  if (!meta) {
    meta = [];
  }
  meta.push({
    type: type,
    property: propertyName,
    value: value
  });
  Reflect.defineMetadata(METADATAKEY, meta, target);
}

// some decorators in the style of:
function ofType(value: any) {
  return function(target: any, propertyName: string) {
    applyDecorator(target, propertyName, 'ofType', value);
  }
}

function isDefined() {
  return function(target: any, propertyName: string) {
    applyDecorator(target, propertyName, 'defined');
  }
}

function deep() {
  return function(target: any, propertyName: string) {
    applyDecorator(target, propertyName, 'deep');
  }
}

class Utility {
  @isDefined()
  public id;
  public validate() {
    // validate current instance of this class, return potential errors
  }
  public save() {
    // save current instance to a database, returning success state
  }
  public serialize() {
    // return serialized form of current instance
  }
}

class Engine extends Utility {
  @ofType(Number)
  public horsepower;
  @ofType(Number)
  public displacement;
  public start() {
    // engine starts
  }
  // some more methods or properties
}

class Car extends Utility {
  @ofType(Engine)
  @deep()
  public engine: Engine;
  public start() {
    // car starts
  }
  public accelerate(rate: number) {
    // car accelerates
  }
  // some more methods or properties
}

console.log(Reflect.getMetadata(METADATAKEY, new Utility()));

Now, the decorators of each inheriting class apply to Utility; expecting to get:
[ { type: 'defined', property: 'id', value: undefined } ]

Actually getting:
[ { type: 'defined', property: 'id', value: undefined },
  { type: 'ofType',
    property: 'horsepower',
    value: [Function: Number] },
  { type: 'ofType',
    property: 'displacement',
    value: [Function: Number] },
  { type: 'deep', property: 'engine', value: undefined },
  { type: 'ofType', property: 'engine', value: [Function: Engine] } ]

Is that working as intended and I am using Reflect.defineMetadata(key, target) in the wrong way?

As I mentioned above, don't use push but instead use concat to create a fresh copy of the array.


added neovim, VSCodium, Fedora Linux.

added neovim, VSCodium, Fedora Linux.

Thank you for contributing!


Example of rightActions/leftActions

What type of node should we use in the rightActions array prop for ListItems? Maybe we should put an example for this prop in the docs?

As far as I know, you can use any type of node, I just tried a bunch of components (FontIcon, Button, IconButton, Avatar, List with ListItems, etc, and they worked...

Ok cool, I was just wondering if perhaps there was a node we should use. My use case was creating a menu using a the more-vert icon

The buttons look ugly (no right/left padding). copy paste this on the playground.
class ListTest extends React.Component {
  state = {
    checkbox: false
  };

  handleCheckboxChange = () => {
    this.setState({checkbox: !this.state.checkbox});
  };

  render () {
    return (
      <List selectable ripple>
        <ListSubHeader caption='Explore characters' />
        <ListItem
          avatar='https://dl.dropboxusercontent.com/u/2247264/assets/m.jpg'
          caption='Dr. Manhattan'
          legend="Jonathan 'Jon' Osterman"
          rightIcon='star'
        />
        <ListItem
          avatar='https://dl.dropboxusercontent.com/u/2247264/assets/o.jpg'
          caption='Ozymandias'
          legend='Adrian Veidt'
          rightIcon='star'
        />
        <ListItem
          avatar='https://dl.dropboxusercontent.com/u/2247264/assets/r.jpg'
          caption='Rorschach'
          legend='Walter Joseph Kovacs'
          rightIcon='star'
        />
        <ListSubHeader caption='Configuration' />
        <ListCheckbox
          caption='Notify new comics'
          checked={this.state.checkbox}
          legend='You will receive a notification when a new one is published'
          onChange={this.handleCheckboxChange}
        />
        <ListDivider />
        <ListItem caption='Contact the publisher' leftIcon='send' rightActions={[<Button primary raised icon='mail' label='Write E-mail'/>]} />
        <ListItem caption='Remove this publication' leftIcon='delete' />
      </List>
    );
  }

}

return <ListTest />;

Look at the "Contact the publisher" below, the "Write E-Mail" button has no padding and looks ugly.

@jacargentina Just a note that if you have less text in the button on the list item, the padding works (see below).


pull request for e2e test at 02/01/2017 05:56:12

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


List the members of the batch (read OnbardingBatch contract)

Show the current members of your batch in the app.

Show it on the main page or create a page (/builders) listing all the builders registered in the BatchRegistry contract
Each builder should link to their personal profile

do we have to show the builders who have checked in, or all the builders in the allowlist?

We can create a subgraph to read the CheckedIn event and create a list component with a member component pointing to his profile (eth address) page.

Isn't this issue closed with the @ryanviana merge? Or there is something that I'm missing?

We can create a subgraph to read the CheckedIn event

100%, but we have nice utility hook in SE-2 useScaffoldEvenHistory which does the same obviously subgraph is  the best solution but since the list of events won't be too large I think for our small use case useScaffoldEvenHistory works great 🙌

Isn't this issue closed with the @ryanviana merge? Or there is something that I'm missing?

Ohh yup, closing this as completed in #23


Heap buffer overflow when export GHOST=123 | env | grep GHOST

solved by changing while condition to check till pipe, redirection or NULL.


Mechanism to output array as comma-separated list? Or simplified output?

I'm new to the gitlab CLI tool. Is there a way to suppress the +-------+------- output so that the only output is a comma-separated list? This would be easier for downstream tools to parse as far as I can tell.
Or, is there a way to simplify the output from commands like "GitLab.users" so that only the name field is displayed? Or only display field #2 in a list, one field per line?
My goal is to be able to have a tool which dumps the list of users which are in a group on GitLab Server A and then add those same users to a differently named group on Server B.

You can filter output by supplying --only or --except flags:
gitlab user --only=id,email,name

gitlab users --except=id,email,name

Nice. My output looks like this below. How do I avoid the +------- ???
+----+------------------+
| Gitlab.users --only=id,name |
+----+------------------+
| id | name             |
+----+------------------+
| 77 | Jimmy Lo         |
+----+------------------+

Use --json for JSON output.

Oh yes, that's much better. I figured out how to avoid the paginated results also. Thanks.


webpackCompilationPlugins doesn't seem to work

Library Affected:
<EMAIL_ADDRESS>Browser & Platform:
all browsers
Issue or Feature Request Description:
webpackCompilationPlugins doesn't apply webpack.DefinePlugin and webpack.EnvironmentPlugin to the output bundle.
The following does not replace __REVISION__ in sw.js:
new InjectManifest({
  swSrc: './src/sw/index.js',
  swDest: 'sw.js',
  webpackCompilationPlugins: [
    new webpack.DefinePlugin({
      __REVISION__: JSON.stringify(process.env.COMMIT_SHA1)
    })
  ]
})

Thanks for reporting; I'll take a look.

Sorry that there's no progress to report; based on some local debugging, I can see that DefinePlugin does get added to the childCompilation that workbox-webpack-plugin creates, and I can see it being called during that compilation, but it doesn't appear to have the intended effect.
https://github.com/webpack/webpack/issues/2978 and https://github.com/webpack/webpack/issues/9240 seem related.


test: Replace jest + puppeteer for testing with playwright and add interactive tests

Playwright is a more modern alternative to jest and friends. It provides a more user-friendly test-writing ecosystem, and makes debugging tests much easier.
Note that this PR substantially reduces the amount of test boilerplate we have, while expanding functionality.
Other benefits:

Supports ESM out of the box (no need to opt into experimental jest features that have been "experimental" for many years with no movement.
Has great docs (see link above)
Microsoft-maintained (and actively maintained, unlike jest and friends.
Allows (easily) launching multiple dev servers prior to running tests, allowing us to remove our start-server-and-test pattern (and dev dependency).
Supports screenshot-based visual regression testing for UI validation.

For later - would require setting up Docker infra to ensure consistent visual output across environments.

Other notes:

item-counter-spe does not currently have runnable tests. odsp-client doesn't have a "local" mode, so this app was never set up with a usable test flow. It contained a test module (copied from item-counter), but those tests were never runnable. This PR removes the unused test dependencies and infra in that package, but does not set up playwright. That can be added in the future when odsp-client supports a "local" mode, and the app is configured to leverage it.

Test results continue to be published as before:


Get stuck in conda install pytorch==1.13.0 torchvision==0.14.0 torchaudio==0.13.0 pytorch-cuda=11.6 -c pytorch -c nvidia

conda install pytorch==1.13.0 torchvision==0.14.0 torchaudio==0.13.0 pytorch-cuda=11.6 -c pytorch -c nvidia
Collecting package metadata (current_repodata.json): - WARNING conda.models.version:get_matcher(535): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.7.1.*, but conda is ignoring the .* and treating it as 1.7.1
done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): | WARNING conda.models.version:get_matcher(535): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.9.0.*, but conda is ignoring the .* and treating it as 1.9.0
WARNING conda.models.version:get_matcher(535): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.8.0.*, but conda is ignoring the .* and treating it as 1.8.0
WARNING conda.models.version:get_matcher(535): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.6.0.*, but conda is ignoring the .* and treating it as 1.6.0
done
Solving environment: -

I wonder if you ever got stuck here before, thanks!

So far worker with "conda install pytorch==1.13.0 torchvision==0.14.0 torchaudio==0.13.0 -c pytorch -c nvidia"

cool with "python -u app.py --load "ImageOCRRecognition_cuda:0,Text2Image_cuda:0,SegmentAnything_cuda:0,ActionRecognition_cuda:0,VideoCaption_cuda:0,DenseCaption_cuda:0,ReplaceMaskedAnything_cuda:0,LDMInpainting_cuda:0,SegText2Image_cuda:0,ScribbleText2Image_cuda:0,Image2Scribble_cuda:0,Image2Canny_cuda:0,CannyText2Image_cuda:0,StyleGAN_cuda:0,Anything2Image_cuda:0,HuskyVQA_cuda:0" -e -p 3456 --https
"

I just found this issue. Have you solved the problem?

I just found this issue. Have you solved the problem?

Thanks for the reply! Yes, I solved it with "conda install pytorch==1.13.0 torchvision==0.14.0 torchaudio==0.13.0 -c pytorch -c nvidia"


Restore strongly typed accept-options / connect-options

This should give XSD validation.

Coverage decreased (-0.0%) to 46.39% when pulling 4c21de9d439bcd0b77291ad604edd3c691903523 on krismcqueen:develop into abe4139512fb92cd876a3b9eb3a908ff62124944 on kaazing:develop.

@jitsni Any feedback you can provide would be appreciated.


Remove SBO-specific detail from polymorphic

Allow CMake tests to be made manual-only (SBO tests fail).

@Ukilele I think this clears up some of the SBO-mess I made on the plane.


Weekly & Monthly Scheduled Triggers not firing when scheduled for morning time.

Use Case : Created a trigger and added it to scheduled job today for 4 am for next day and the consecutive day. e,g i created schedule
on monday to fire it weekly at 4 AM on tuesday and wednesday. The schedule job is added using UTC DATE format with following code
and expression
Note : Same works fine if we schedule it after noon time.
// triggername is unique
//startdate - it could be today or before that
//enddate - it would be few months later
//cronexpression - 0 30 22 ? * TUE,WED
TriggerBuilder.Create()
.WithIdentity(triggerName, null)
.StartAt(DateTime.SpecifyKind(scheduleInfo.StartDate, DateTimeKind.Utc))
.EndAt(DateTime.SpecifyKind(endDate, DateTimeKind.Utc))
.WithCronSchedule(cronexpression, action => action
.InTimeZone(TimeZoneInfo.Utc)
.WithMisfireHandlingInstructionDoNothing()
.Build())
.ForJob(jobName)
.Build();

Hi ,
I need urgent help on this. I have observed that with the code above , if i schedule trigger for tomorrow morning e.g for FRI 01:00 AM but we are passing cronexpression with UTC Time .
The Quartz Scheduler is firing the same on SAT 01:00 AM instead of FRI 01:00 AM.  I have specified that timezone to use is UTC.
So if i am providing time too in UTC , so it should automatically adjust the time back to the server TimeZone and fire the trigger on FRI instead of SAT.
Please help me immediately as this issue has raise serious concerns to the business.

@bhatrohit85  Maybe I could supply some help.  Has this problem been solved now ?

@bhatrohit85 Maybe I could supply some help. Has this problem been solved now ?

Hi , Surely. I have sent the date into the IST format right now as a workaround.Setting time to UTC  is not working for this. Any help would be highly appreciated.

@bhatrohit85   is the machine/jvm it is running on set to IST as its default timezone?

No word, can't reproduce.


remove Ron from all articles

Part II of my retirement 🎁
I'm basically just pulling his user from all articles. My next PR should cover new assignments via docfx.json.

Related: I made dotnet/csharplang#2915 to address the two suggestions on those articles.

@mairaw, I think the way you automated these changes was searching for both, author and ms.author. I believe there might be some occurrences where ms.author can exist and author not or vice-versa.

I did search for them separate too @Youssef1313 and with/without quotes. Warnings are gone from the build so I think I got most of them right, if not all.


Add new fields for SiteItem and clean up

Went through all the site-related operations to fill in missing gaps and to clean up. Also addressing #379 #380 #381.

Added fields:

CacheWarmupEnabled
CommentingEnabled
ExtractEncryptionMode
FlowsEnabled
GuestAccessEnabled
TierCreatorCapacity
TierExplorerCapacity
TierViewerCapacity
NumCreators (usage)
NumExplorers (usage)
NumViewers (usage)

Deleted StatusReason field, because this field never existed in any of our XSDs.
Changed SiteItem parsing logic to avoid having a laundry list parameter of fields
Added support for '?includeUsage=True' URL param option to get usage information
Added a new property decorator to represent positive numbers (userQuota for example)

Closing because I've implemented this pattern in 'large' models. We can redo this for sites in the future by reopening this or making a new one


Phone numbers could use an input mask

No idea how to do that for international phone numbers but I bet it is a solved problem.

For now an input mask for us phone numbers would be sufficient

I've got this one


Route should override dispatcher middlewares

I think we should remove using dispatcher middlewares here and allow route override dispatcher middlewares.

I think it could be done after release if requested.


Student ID Card: UI mockup

UI mockup for Student ID Card

Ready for implementation, closing

Completed on branch student-id-card, closing

This work has been completed, closing.


ffmpeg is installed, but stempeg/cmds.py is saying it isn't

Howdy!  I'm having trouble using stempeg on a fresh Ubuntu machine.  I installed and built ffmpeg using script that was linked to in the README, and ffmpeg sits in /usr/bin and works...
$ which ffmpeg
/usr/bin/ffmpeg
$ ffmpeg --help
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
  configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-nonfree
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
...etc

Same as on my old machine where everything's fine.
But when I run the python code on my new machine, I get...
  File "/mnt/sfs/shawley.../data.py", line 2, in <module>
    import stempeg
  File "/home/shawley/envs/myenv/lib/python3.10/site-packages/stempeg/__init__.py", line 16, in <module>
    from .read import read_stems
  File "/home/shawley/envs/myenv/lib/python3.10/site-packages/stempeg/read.py", line 7, in <module>
    from stempeg.write import FilesWriter
  File "/home/shawley/envs/myenv/lib/python3.10/site-packages/stempeg/write.py", line 23, in <module>
    from .cmds import FFMPEG_PATH, mp4box_exists, get_aac_codec, find_cmd
  File "/home/shawley/envs/myenv/lib/python3.10/site-packages/stempeg/cmds.py", line 43, in <module>
    raise RuntimeError(
RuntimeError: ffmpeg or ffprobe could not be found! Please install them before using stempeg. See: https://github.com/faroit/stempeg

Setting export FFMPEG_PATH=/usr/bin or even export FFMPEG_PATH=/usr/bin/ffmpeg  doesn't help.
What needs to happen here?
Thanks!

Ok, so the docs are totally obvious that ffprobe is needed, and the install script link to doensn't build it. Or at least didn't for me.  Or maybe it does build it but then doesn't move it to /usr/bin.
In any case, just running sudo apt install ffmpeg fixed everything.
So... ready to close this anytime.

Hey Scott, that sounds unpleasant. Maybe it would help to raise specific errors for ffprobe alone?

Yea, that sounds like a good idea.


Wrong amount issued in generic_currency

eosioc push action multi.token issue '{"to":"multi.token","quantity":"100.00000000 TKA"}' --permission multi.token@active

MacBook-Pro:eos $ eosioc get currency stats multi.token TKA
{
  "supply": "10.95455752 TKA"
}

Related: https://github.com/EOSIO/eos/issues/1536
https://github.com/EOSIO/eos/pull/1526
cc: @arhag @bytemaster

PR #1597 should have fixed this issue. Thanks for the bug report.


Module 'MIDI' not found error when stoping script

When I'm trying to stop the script I'm getting the following error.
.\emu2midi.lua:446: module 'MIDI' not found:
no field package.preload['MIDI']
no file '.\MIDI.lua'
no file 'C:\VBA\lua\MIDI.lua'
no file 'C:\VBA\lua\MIDI\init.lua'
no file 'C:\VBA\MIDI.lua'
no file 'C:\VBA\MIDI\init.lua'
no file '.\MIDI.dll'
no file '.\MIDI51.dll'
no file 'C:\VBA\MIDI.dll'
no file 'C:\VBA\MIDI51.dll'
no file 'C:\VBA\clibs\MIDI.dll'
no file 'C:\VBA\clibs\MIDI51.dll'
no file 'C:\VBA\loadall.dll'
no file 'C:\VBA\clibs\loadall.dll'
I'm using VBA-RR v23.6 svn480-LRC4.

It seems that the MIDI.lua file of the MIDI module is missing. https://luarocks.org/modules/peterbillam/midi
Placing the MIDI.lua in the same directory as the other lua files from this repository seems to be enough to fix the problem.
Would be nice if you would include this into this repository.

For those who don't want to install luarocks:

download  https://luarocks.org/manifests/peterbillam/midi-6.8-0.src.rock
extract it using 7-zip or something similar
open the MIDI-{version}.tar-gz (where version represents the version of the archive you've downloaded)
the midi.lua is in there


UnboundLocalError in parse_brend_textfile.py

when calling data_parse_brenda_textfile.py I get an error due to missing variable declaration in submodules/parse_brenda_textfile.py :

  File "autopacmen/autopacmen/submodules/parse_brenda_textfile.py", line 170, in parse_brenda_textfile
    word = word.replace("\t", "")
UnboundLocalError: local variable 'word' referenced before assignment
  File "autopacmen/autopacmen/submodules/parse_brenda_textfile.py", line 170, in parse_brenda_textfile
    word = word.replace("\t", "")
UnboundLocalError: local variable 'word' referenced before assignment

Thank you very much for finding and resolving this bug! I wonder how the BRENDA file parser was able to work correctly beforehand xD


test: Add Rafiki Controller Tests

closes #686

Changes
We Added some Tests for Rafiki controller, we tried to make it very similar to old tests we found on the project, so if there is something wrong we will be able to change it and make it more close to the projects structure.
@aosccode

He @Tymmmy, can you check it out  and say something ?

ALso please check Prettier errors, and Lint errors

Yes, I am checking it.

@Tymmmy I Make the suggested changes, can you check it out again ?

Still have some prettier check errors looks like

Still have some prettier check errors looks like

I can't see it in the CodeSpace, can you help us solving it ?

Still have some prettier check errors looks like

Solved.

Still have some prettier check errors looks like

Solved

Thank you @trupakufi , We will merge this into master after the summit. We don't want to have any issues with the production and master right now. So we are having a code freeze. This will count to the hacktober stories, so don't worry.
Please follow announcements for the swag and any other hacktober details here: https://community.interledger.org/devcer/hacktoberfest-with-interledger-join-the-open-payments-movement-3bkd

Thank you @trupakufi , We will merge this into master after the summit. We don't want to have any issues with the production and master right now. So we are having a code freeze. This will count to the hacktober stories, so don't worry. Please follow announcements for the swag and any other hacktober details here: https://community.interledger.org/devcer/hacktoberfest-with-interledger-join-the-open-payments-movement-3bkd

Thanks @Tymmmy I think we will  keep contribuiting to the project, it's amazing.

Thank you for Contributing to Interledger during Hacktoberfest. If you have any accepted PRs, You can claim your Swag here. Last date to fill up the form is December 10th, 2023. @jocaetano1