How do you execute SQL queries using parameters in data explorer

I'm using the Data Explore in the Azure Portal to run and execute queries.  However, it's not clear how parameters can be set and used using the portal editor.

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

ID: 65ef452c-ff25-a2ec-feba-5dafa56cb918
Version Independent ID: 733a3a55-e899-5c1d-9bcc-34c2d7e17d27
Content: Getting started with SQL queries in Azure Cosmos DB
Content Source: articles/cosmos-db/sql/sql-query-getting-started.md
Service: cosmos-db
Sub-service: cosmosdb-sql
GitHub Login: @timsander1
Microsoft Alias: tisande

@robertwood62
Our SME will review this issue and get back soon.

@robertwood62 Thanks for your query. Are you trying to use parameterized queries through Data Explorer?

Yes.  This is exactly what I'd like to do.
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: AnuragSharma-MSFT @.>
Sent: Sunday, December 19, 2021 11:21:30 PM
To: MicrosoftDocs/azure-docs @.>
Cc: Robert Wood @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] How do you execute SQL queries using parameters in data explorer (Issue #85497)
@robertwood62https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frobertwood62&data=04|01||3dbe57d5e6fa446b1a0608d9c370330f|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637755708924542978|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=N7dED9OSfJu6mTgEoI9Soo1lXs%2BeOv5djerdGutFm8c%3D&reserved=0 Thanks for your query. Are you trying to use parameterized queries through Data Explorer?
—
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F85497%23issuecomment-997583166&data=04|01||3dbe57d5e6fa446b1a0608d9c370330f|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637755708924542978|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=i0PxQ4uZOr0Ihy0%2BnovX4k%2B628oCKFMYs0Cncci1gYI%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACYKMNJRLVLBQAXWMLP7L3TUR2VMVANCNFSM5KMBCRVQ&data=04|01||3dbe57d5e6fa446b1a0608d9c370330f|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637755708924542978|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=RGUwx3g5FJMGAAcaMrLs8U9n0JWLUWqOhW9Wzd9ZtpE%3D&reserved=0.
Triage notifications on the go with GitHub Mobile for iOShttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04|01||3dbe57d5e6fa446b1a0608d9c370330f|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637755708924542978|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=TNSxYjg6UdfSPTiUS%2B5r8f8JTRgZRuwQs3IpAeNB0hI%3D&reserved=0 or Androidhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04|01||3dbe57d5e6fa446b1a0608d9c370330f|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637755708924542978|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=c9VCcC1KbTo1kbvFlHW%2BquBTu85CXNju%2Bv1kZZwQmSk%3D&reserved=0.
You are receiving this because you were mentioned.Message ID: @.***>

@robertwood62 Thanks for your patience. Through Data Explorer it would not be possible to pass through parameters or use variables. We need to use any of the SDK to use them as mentioned in below article:
Parameterized queries in Azure Cosmos DB

Thanks.
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: AnuragSharma-MSFT @.>
Sent: Tuesday, December 21, 2021 10:45:42 PM
To: MicrosoftDocs/azure-docs @.>
Cc: Robert Wood @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] How do you execute SQL queries using parameters in data explorer (Issue #85497)
@robertwood62https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frobertwood62&data=04|01||dd7aecf991da4200476408d9c4fd877a|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637757415442098135|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=47uOl7hMItwCdnc%2FPJE4jc1U1xJbAF%2BcOoxn2ObUZOI%3D&reserved=0 Thanks for your patience. Through Data Explorer it would not be possible to pass through parameters or use variables. We need to use any of the SDK to use them as mentioned in below article:
Parameterized queries in Azure Cosmos DBhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fcosmos-db%2Fsql%2Fsql-query-parameterized-queries&data=04|01||dd7aecf991da4200476408d9c4fd877a|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637757415442254366|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=WsYg9Eis5v6M089QraOGRxM0JjwhjmJuLGad2po8qRg%3D&reserved=0
—
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F85497%23issuecomment-999263023&data=04|01||dd7aecf991da4200476408d9c4fd877a|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637757415442254366|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=f%2F%2FqfhVIjysIjS0MBc%2F1oTqSGIIgYpsaKeZ9zBKY32Q%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACYKMNPTECJWPEOYNHURTL3USFCWNANCNFSM5KMBCRVQ&data=04|01||dd7aecf991da4200476408d9c4fd877a|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637757415442254366|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=u1IZ5S4APwrP5ePc0%2BydsqmY5Bk%2B0Mfh%2FZKWoQRFZI0%3D&reserved=0.
Triage notifications on the go with GitHub Mobile for iOShttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04|01||dd7aecf991da4200476408d9c4fd877a|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637757415442254366|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=GX0bOXEPW2Jhf7TkCtvGN545ov8bctjYBTiXHs5AKb4%3D&reserved=0 or Androidhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04|01||dd7aecf991da4200476408d9c4fd877a|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637757415442254366|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=wU0lz4az6SDQlPKsgJcLQ8OyFSoid0k7foB1dg9qidY%3D&reserved=0.
You are receiving this because you were mentioned.Message ID: @.***>

We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.


cudnn v9.4.0

Checklist

[X] Used a personal fork of the feedstock to propose changes
[] Bumped the build number (if the version is unchanged)
[X] Reset the build number to 0 (if the version changed)
[X] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[X] Ensured the license file is being packaged.

Xref: https://github.com/conda-forge/cudnn-feedstock/issues/88

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.


mysql generator panics when update contains no where

In situations like joins, update statements won't include where clauses.
However, sqlc currently assumes they are always present, and throws a nil pointer panic at line 281:
whereParams, err := paramsInWhereExpr(node.Where.Expr, s, tableAliasMap, defaultTable, settings)

because node.Where will be nil.
An example query that will cause this error:
update books set author_id = 1;

Another:
update subscription_cancellations cancels left join subscription_creations creates on cancels.subscription_id = creates.subscription_id set cancels.creation_id = creates.id;

The new mysql:beta engine compiles these types of queries correctly.
create table people(name text);

/* name: UpdateName :exec */
update people set name = 'foo';

// Code generated by sqlc. DO NOT EDIT.
// source: query.sql

package querytest

import (
	"context"
)

const updateName = `-- name: UpdateName :exec
update people set name = 'foo'
`

func (q *Queries) UpdateName(ctx context.Context) error {
	_, err := q.db.ExecContext(ctx, updateName)
	return err
}


Improve getting started documentation

Some feedback on our current documentation: https://hail.zulipchat.com/#narrow/stream/123000-general/topic/Using.20Hail.20to.20download.20gnomAD.20data

We assume the use of Dataproc. We could also provide an example for running locally with the GCS Connector.

we could add this to our gnomad email canned response (lumping this question in with an explanation of Hail Tables being directories and not single files)


[XP Tracker] Configuring Tooltip Label doesn't work

Type
Incorrect behavior
Operating System
Windows
OS Version
Windows 11
Bug description
One of the options for the XP Tracker plugin is "Tooltip Label", which is supposed to change what is displayed on the tooltip when hovering over the progress bar.
This option doesn't work, as it seems like the functionality of the tooltip was changed. The tooltip now always shows "Actions done", "Actions/hr", and "x till goal lvl" regardless of what the tooltip is set to show.
While this change makes sense with the default info label settings, it means that if you change the info box labels then you're both losing and doubling up information.
For example, If I was to change Bottom-right from "Actions Left" to "Time To Level", there's now no way to view Actions Left and Time To Level is duplicated in both the tooltip and the info box.
In my opinion, the ideal solution would be for the tooltip to show any options not selected as one of the four info box corner options, and for the "Tooltip label" option to be removed.
Screenshots or videos

RuneLite version
RuneLite version: <IP_ADDRESS>
Launcher version: 1.6.0
Logs
No response

It looks like you have agility paused; the tooltip is only rebuilt when the xp panel is rebuilt. If you unpause it and gain experience it should use whichever config format was selected.


HHH-9474 Fixing perfomance issue with ElementCollection

Suggested fix for perfomance issue with ElementCollection.
See HHH-9474

Hi, this looks great, sorry for not noticing sooner! Did you sign the contributor agreement at cla.jboss.org for the Hibernate project?

Hi Sanne!
Signed CA today.

I've changed to formatting style to match the project, then merged your fix in both branches 5.0 and master.
Thanks a lot @sergeyastakhov !


Compilation error during install

I have the following in my vim config
parser_configs.norg = {
  install_info = {
    url = "https://github.com/vhyrro/tree-sitter-norg",
    files = { "src/parser.c", "src/scanner.cc" },
    branch = "main",
  },
}

When I run :TSUpdate, I get this error:
nvim-treesitter[norg]: Error during compilation
src/scanner.cc:352:208: error: wrong number of arguments specified for ‘nodiscard’ attribute
  352 |      TokenType check_detached(TSLexer* lexer, const std::vector<TokenType>& results, const std::array<unsigned char, Size>& expected, std::pair<char, std::vector<TokenType>> terminate_at = { 0, NONE | NONE })
      |                                                                                ^

From :checkhealth nvim_treesitter
## Installation
  - WARNING: `tree-sitter` executable not found (parser generator, only needed for :TSInstallFromGrammar, not required for :TSInstall)
  - OK: `node` found v16.4.2 (only needed for :TSInstallFromGrammar)
  - OK: `git` executable found.
  - OK: `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl" }
  - OK: Neovim was compiled with tree-sitter runtime ABI version 13 (required >=13). Parsers must be compatible with runtime ABI.

And cc --version
cc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Hey! I think I may have fixed this now. Could you try again and tell me if any extra errors occur? Thx :)

Works now, thanks!


CI: remove the disk-space job

Overview
After having migrated to use uv, I think it's likely that we don't need the clean-disk-space job and can save several more minutes of CI time. This PR reverts #3331 , dropping that job.
Most test jobs are now much faster: in the region of 5-9 minutes, which is almost halved compared to the previous pip workflow. The tests on windows remain the clear bottleneck.
Discussion
We never got to the bottom of what caused the disk space issue, but I think it's likely due to the face that pip will sometimes download many different wheels for the same package to determine which are compatible. uv does not have this flaw, so I think it's likely we will not encounter the disk space issue.
That said, after merging this PR we should keep an eye out for CI failures due to disk space, and if issue #3330 occurs again we can always re-instate the fix.

seems reasonable, lgtm thanks

A most excellent choice of LGTM gif today!


Decision: allow pet test fixtures

This codifies the trend Emblem has been following + previous conversations around this topic.
Googlers: this fixes b/233379931

This seems like a proposal to codify our implicit decisions, but I find the cattle/pet terminology doesn't match my perspective so I think we need more discussion before this can move forward.
The Cattle/Pet metaphor as I understand it is about automation & ephemerality vs. hand-managed and urgently protected.
I see our reuse of projects as primarily a concession to security policies, user convenience, and limitations of terraform, but I don't think of them as pets.
I consider it a team maintenance bug (as opposed to an Emblem project bug) that we don't have something in place to guide the project creation process more clearly, and provide some kind of consistent configuration oversight.

TODO we need to document:

our team structure (main decisions directory README - separately)
how this flows from that (this PR)


Frontend Project "Mahatma Gandhi Biography": Add a Scroll to up button

Describe the Feature you want to end
I would like to add a scroll to top button for this project with the following concept:

Expected behavior

Screenshots (optional)

Additional context (optional )

@MohitGupta121  can you kindly assign me this issue


Custom styles

Is it possible to customize the font family, text & background colors, etc?
Thanks for the awesome library!

Hi, it is currently not possible to customize the font family, text & background colors with the default toast views. You could make your own ToastView. Contributions are always welcome.


Arrays of arrays doesn't work

Hi, models that have List<List<string>> or Dictionary<string, List<string>> properties get generated incorrectly
For example, if i have a function like this
public class Foo
{
	public List<List<string>> Items { get; set; }
}

public class TestFunction
{
	[FunctionName("Test")]
	[OpenApiOperation(operationId: "Test")]
	[OpenApiResponseWithBody(HttpStatusCode.OK, "application/json", typeof(Foo))]
	public IActionResult GetTest(
		[HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "test")] HttpRequest req)
	{
		return new OkResult();
	}
}

Then the Items property will become an string array, and not an array of arrays.

The same happens if i have a Dictionary<string, List<string>> .
Then the property will become Dictionary<string, string>

@Assassinbeast Thanks for the issue! I can repro the issue on my end. Let me check.

@Assassinbeast It's been released to NuGet. Please have a look and let us know.

@Assassinbeast It's been released to NuGet. Please have a look and let us know.

Amazing! Seems to be working.
Thanks :-)


New versioning scheme for plan9port breaks u

Describe the bug
The new 0.pre+date=... scheme introduced in 9199162 confuses the u script.
Steps To Reproduce

install latest plan9port from unstable as of writing
attempt to use u from within an environment spawned by 9

Expected behavior
$PLAN9 gets moved from the front of $PATH to the back
Typescripts
Here is a session using unmodified p9p:
ylh@m1p ~ $ echo $PATH
/Users/ylh/bin:/Users/ylh/.nix-profile/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin
ylh@m1p ~ $ 9 zsh
ylh@m1p ~ $ echo $PATH
/nix/store/d4iwcgqwgk8whxjxgmhh20ykni7flkb2-plan9port-0.pre+date=2021-10-19/plan9/bin:/Users/ylh/bin:/Users/ylh/.nix-profile/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin
ylh@m1p ~ $ u zsh
ylh@m1p ~ $ echo $PATH
/nix/store/d4iwcgqwgk8whxjxgmhh20ykni7flkb2-plan9port-0.pre+date=2021-10-19/plan9/bin:/Users/ylh/bin:/Users/ylh/.nix-profile/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin

After applying the following overlay:
self: { lib, plan9port, ... }: let
  lastby = sep: x: lib.last (lib.splitString sep x);
in {
  plan9port = plan9port.overrideAttrs (old@{ pname, ... }: {
    version = lastby "=" (lastby "+" old.version);
    name = "${pname}-${version}";
  });
}

the desired result is achieved:
ylh@m1p ~ $ echo $PATH
/Users/ylh/bin:/Users/ylh/.nix-profile/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin
ylh@m1p ~ $ 9 zsh
ylh@m1p ~ $ echo $PATH
/nix/store/zh1iaayjg7baqvgh1g645k4wzxjrmfzx-plan9port-2021-10-19/plan9/bin:/Users/ylh/bin:/Users/ylh/.nix-profile/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin
ylh@m1p ~ $ u zsh
ylh@m1p ~ $ echo $PATH
/Users/ylh/bin:/Users/ylh/.nix-profile/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin:/nix/store/zh1iaayjg7baqvgh1g645k4wzxjrmfzx-plan9port-2021-10-19/plan9/bin

Amusingly, u.rc is left unaffected; the u tool calls out to sed, which, in a 9 environment (why else would you be calling u), is p9p sed, which interprets + as a metacharacter without the need for -E.
In any case, RFC 0107 clearly needs work, and this should hopefully demonstrate why enacting it (self-merging, no less) pre-approval is somewhat irresponsible.
Notify maintainers
@AndersonTorres
Metadata

system: "aarch64-darwin"
host os: Darwin 21.1.0, macOS 12.0.1
multi-user?: yes
sandbox: no
version: nix-env (Nix) 2.3.16
channels(root): "nixpkgs-21.11pre329302.d14ae62671f"
channels(ylh): "darwin"
nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

This obsession with arbitrary versioning formatting standards is getting annoying.


[network] Fix flaky test peer_send_message

I recently introduced a small race into the peer_send_message test where the server sends several messages, then the peer_handle drops and the server closes the connection before the client is able to fully read all of the messages.
Instead, the client shuts down the connection only after it has read all 30 messages.

/land

:broken_heart: Test Failed - Build images and run cluster test

/land


Visual Studio Code override for package broken on MacOS

Describe the bug
TL;DR: The commit 3a3543edd4b83489f11bff872a3b5ed0618d3b67 changed a command to use executableName instead of a hardcoded code. If you set isInsiders = true the executableName ends up being code-insiders but the source directory we download as an archive only includes a code executable on Darwin, regardless of whether you're installing insiders or not. Therefore the command that tries to operate on executableName fails. Reverting the commit restores the build and installation.
Only applies on MacOS, on NixOS everything works.
Ever since 3a3543edd4b83489f11bff872a3b5ed0618d3b67 I can no longer set the  package option of the VSCode derivation to a custom package. I am currently on 3bc8e5cd23b84b2e149e7aaad57117da16a19e6f which is the latest commit on nixpkgs-unstable at the time of writing. If I run from a local nixpkgs checkout:
NIXPKGS_ALLOW_UNFREE=1 nix-env -i -E '{ ... }: let pkgs = import ./default.nix {}; in let foo = pkgs.vscode.override { isInsiders = true; }; in (pkgs.vscode-with-extensions.override { vscode = foo; }).overrideAttrs (old: { inherit (foo) pname version; })'

I get
installing 'vscode-with-extensions-1.56.2'
this derivation will be built:
  /nix/store/5ih2wxrznzh9qjjfk6wb2i0j1q22v0b1-vscode-with-extensions-1.56.2.drv
building '/nix/store/5ih2wxrznzh9qjjfk6wb2i0j1q22v0b1-vscode-with-extensions-1.56.2.drv'...

Builder called die: Cannot wrap '/nix/store/xjr0qjgxpv8l125sdh20iypqmdpa1ix5-vscode-1.56.2/bin/code-insiders' because it is not an executable file
Builder called die: Cannot wrap '/nix/store/xjr0qjgxpv8l125sdh20iypqmdpa1ix5-vscode-1.56.2/bin/code-insiders' because it is not an executable file
Backtrace:
Backtrace:
7 assertExecutable /nix/store/zj4aacsc6gjzchgcnipwgisfmb4bh4wf-hook/nix-support/setup-hook
7 assertExecutable /nix/store/zj4aacsc6gjzchgcnipwgisfmb4bh4wf-hook/nix-support/setup-hook
36 makeWrapper /nix/store/zj4aacsc6gjzchgcnipwgisfmb4bh4wf-hook/nix-support/setup-hook
36 makeWrapper /nix/store/zj4aacsc6gjzchgcnipwgisfmb4bh4wf-hook/nix-support/setup-hook
8 source /private/tmp/nix-build-vscode-with-extensions-1.56.2.drv-0/.attr-0
8 source /private/tmp/nix-build-vscode-with-extensions-1.56.2.drv-0/.attr-0
1281 genericBuild /nix/store/vnazyva3nawmvmhsxl8d2698wqg3743l-stdenv-darwin/setup
1281 genericBuild /nix/store/vnazyva3nawmvmhsxl8d2698wqg3743l-stdenv-darwin/setup
2 main /nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh
2 main /nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh

builder for '/nix/store/5ih2wxrznzh9qjjfk6wb2i0j1q22v0b1-vscode-with-extensions-1.56.2.drv' failed with exit code 1
error: build of '/nix/store/5ih2wxrznzh9qjjfk6wb2i0j1q22v0b1-vscode-with-extensions-1.56.2.drv' failed

if I git revert 3a3543edd4b83489f11bff872a3b5ed0618d3b67 the above command works just fine.
Furthermore, if I add ls "$out/Applications/${longName}.app/Contents/Resources/app/bin/" right before the ln -s call I only see a code executable, whereas ${executableName} ends up being code-insiders for me. In other words, the commit I need to revert makes sense actually, so the actual bug seems to be that there's only a code file. But at this point I need to sleep. I don't know if it's us in Nixpkgs that decide the code name or if this comes from the source repo.
@jonringer
@thirstman
UPDATE: I opened the source that was mentioned in the builders log
~/nixpkgs on nixpkgs-unstable •
❯ NIXPKGS_ALLOW_UNFREE=1 nix-env -i -E '{ ... }: let pkgs = import ./default.nix {}; in let foo = pkgs.vscode.override { isInsiders = true; }; in (pkgs.vscode-with-extensions.override { vscode = foo; }).overrideAttrs (old: { inherit (foo) pname version; })'
replacing old 'vscode-with-extensions-1.56.2'
installing 'vscode-with-extensions-1.56.2'
querying info about '/nix/store/85ajdxm5g85d4yqcnfilq55lx0fx57hn-vscode-with-extensions-1.56.2' on 'https://cache.nixos.org'...
downloading 'https://cache.nixos.org/85ajdxm5g85d4yqcnfilq55lx0fx57hn.narinfo'...
querying info about '/nix/store/bdjh10a26rlg4fs4wbgi7apqa77qzi77-vscode-1.56.2' on 'https://cache.nixos.org'...
downloading 'https://cache.nixos.org/bdjh10a26rlg4fs4wbgi7apqa77qzi77.narinfo'...
these 2 derivations will be built:
  /nix/store/d1wia3yqjkxmzdicvgk96zr902ic216r-vscode-1.56.2.drv
  /nix/store/l473r91dqfas73kk8lb5bks2jsvixdgy-vscode-with-extensions-1.56.2.drv
building '/nix/store/d1wia3yqjkxmzdicvgk96zr902ic216r-vscode-1.56.2.drv'...
unpacking sources
unpacking sources
unpacking source archive /nix/store/67sf2p7y6lshj2bprvia3z3pzsjkd810-VSCode_1.56.2_darwin.zip <-- THIS FILE
unpacking source archive /nix/store/67sf2p7y6lshj2bprvia3z3pzsjkd810-VSCode_1.56.2_darwin.zip
source root is Visual Studio Code.app
source root is Visual Studio Code.app

and indeed
~/Downloads/Visual Studio Code.app/Contents
$ ls Resources/app/bin/
code

Only code, no code-insiders. If I go to https://code.visualstudio.com/insiders/ and download the "Universal" installer (?) and peek inside the .app I also just see code. If I download the insiders installer for Linux as .tar.gz it does contain a code-insiders executable!
I don't really understand how this commit worked for the author though since they intentionally modified the Darwin code path so I assume this worked for them? 🤔 But since I'm doing all of this with the linked Nix expression from a local checkout it shouldn't really matter what is installed on my system.

seems like we need more than just executableName to describe the desired command in output, but something more like originalName and installedName.
That way we can have code, codium, code-insiders, and codium-insiders.

But what is the purpose of replacing code with a variable when code is not in fact variable? The archive appears to always just include a file called code.

VSCodium Insiders doesn't exist VSCodium/vscodium#148

as https://github.com/VSCodium/vscodium/issues/148 has been resolved since, will support for vscodium-insiders be provided now? many thanks.


Fatal error: Uncaught [Directory Error] Directory / not found

Hello,
I use your nice Libary for deletin' some files on a remote FTP Server.
But I become this Error:
Fatal error: Uncaught [Directory Error] Directory / not found  thrown in ~/vendor/touki/ftp/lib/Touki/FTP/Manager/FTPFilesystemManager.php on line 78
My PHP version: 5.6

Try setting passive to true in the constructor.


Standardizing menu names and brand

This is a minor design update after a conversation with @colliand. It changes a few things:

Updates our logo and color so that it matches the Fira Sans + grey logo we've been using.
Updates the language of our top-level sections so that each follows the same two-word structure.
Updates our favicon so that it works again and so that is just a mini version of our logo
Removes some old versions of the logo

I like the changes! The tab names are more visually balanced. The inclusion of "our" in two places evokes the importance of 2i2c's community. The logo looks better in Fira sans and is consistent with the way things look on the documentation site.
A new small peeve for me is that the 2i2c logo looks differs from the way the 2i2c looks in text in the rest of the site. This is not a blocker though so I will merge.


Added control flow keyword support

Lets you specify a different color for control flow keywords (if, while, try, return, throw, etc...) like VSCode does!

Sorry don't pull this yet...have to fix up a couple issues.


Fix podspec

Fixes for issue #134. Thanks to @orta for the pointer on how to. Also, while I was here, I took out the AFNetworking dependency from the Podspec since we've taken that out everywhere else.

Awesome! Scheduling...

:tada: Thanks to you too, you've unblocked me.

w00t! :)

This was merged, closing


[containerapp] fix CVE issues in java test code

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

General Guidelines

[x] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
[x] Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
[ ] My extension version conforms to the Extension version schema

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

Thank you for your contribution! We will review the pull request and get back to you soon.

Hi @yilims, Please write the description of changes which can be perceived by customers into HISTORY.rst. If you want to release a new extension version, please update the version in setup.py as well.

Fix CVE issues in test code, no feature change.

Recommend title:
{Containerapp} Fix CVE issues in jave test code


Mldb 408 task cancellation

added the code to cancel a task using a PUT on a run with the cancellation payload
adapted Bucketize to allow cancellation
simplified the data members of the BackgroundTask.  It now comprises one bool and the state of the task.
adapted some of the dataset iteration code to forward cancellation to callers

The changes of the bucketize procedure will have to be applied to all procedures.  I am planning to do this in a separate PR.

Ouch. We will need to update all functions? The same thing we did when progress was added? Is there no other way?

I added some comments, mostly minor.  +1 once they're addressed.


Related to my feature request from issue #5

I've updated the script and it worked on my machine. Should we put this information into the readme.md file instead? I've no problem to use this script in my Vim-installation-setup. I tried out the nerd-filetype-glyphs-fonts-patcher but had problems running python and don't know what this repo is for. I'm using it to get the Droid font so far.
Waiting for feedback.

Should we put this information into the readme.md file instead?

Yes.
I suggest something like this for the README:
1. Pick a font from
   https://github.com/ryanoasis/nerd-filetype-glyphs-fonts-patcher/tree/master/patched-fonts
   (find the link to the "raw" file).
2. Download and install it

On Unix systems this can be usually done by putting it into `~/.fonts`:

    % cd ~/.fonts
    % wget $URL_TO_RAW_FONT

e.g.

    [example for the "recommended" font]

I would be fine with this, what do you think @ryanoasis?

nerd-filetype-glyphs-fonts-patcher but had problems running python and don't know what this repo is for. I'm using it to get the Droid font so far.

nerd-filetype-glyphs-fonts-patcher repo has the python script for patching any other fonts not currently included on the repo and provides some already patched fonts.
@wikimatze, that example from @blueyed looks pretty good. Are you wanting to forgo adding your install script and use a wiki update instead?
The current section on font configuration is pretty poor wow I didn't really realize until I looked at it again (https://github.com/ryanoasis/vim-webdevicons#font-configuration)
I say readme addition is the way to go unless you really want to add the font install script (I wont turn away any contributions)

@ryanoasis I will make a Pull request for the README addition. Thanks @blueyed for your feedback in this issue, glad ryan I could "hit-your-head" with the documentation remarks.


Update retry algorithm to be more robust

That being said, retry algorithms (at least robust ones) for internet protocols are normally written with an exponential escalation of wait time (such as 1, 2, 4, 8, 16, 32, .. seconds). In that case, a user may want to specify at which point to give up and log a failure, for example --max-retries and/or --max-wait.

Originally posted by @hlapp in https://github.com/Imageomics/cautious-robot/pull/1#discussion_r1626575092

reply: It's waiting after a failed attempt if the response is any of the following: 429, 500, 502, 503, 504. It doesn't have a wait between successful downloads. It has a max number of times to retry on the designated responses, but otherwise just logs the response in the error log (along with the index, filename, and url).

Setting a maximum wait time on a request would probably be a good idea as well. urllib3.request seems to handle much of this when also passed a Retry object. @thompsonmj  had also suggested HTTPAdapter as an option that also uses Retry.

Seems reasonable to use HTTPAdapter, since it's already using requests. Must also consider streaming interruption, as noted here.

The request HTTPAdapter with the urllib3 Retry strategy looks good for some of the retry needs. The streaming interruption will still need to be handled separately though.

Sometimes when downloading files we end up reaching a threshold where our IP address gets blocked for a while by a remote server. In that case you typically have to wait for a few hours. I wouldn't expect or want the command to wait in this scenario. For that scenario can we re-run the cautious-robot command and have it skip already downloaded images?

Sometimes when downloading files we end up reaching a threshold where our IP address gets blocked for a while by a remote server. In that case you typically have to wait for a few hours. I wouldn't expect or want the command to wait in this scenario. For that scenario can we re-run the cautious-robot command and have it skip already downloaded images?

Right now I believe it relies on adjusting the start index to avoid re-downloading the image. However, I could add a line here checking for the image:
if os.path.exists(image_dir_path/image_name):
    continue


Terminal not loading

Tick the appropriate box by adding an x in between the [] to ID the status-->

[ ] I have reset Atom to defaults prior to submitting report.
[X] I have not reset Atom to defaults prior to submitting report.

Description
I had this problem at my job last week on win10 after updating the package and got fix shortly after. Yesterday, I got on my Linux computer and had the same problem, but now it's the latest version and is not fixed
Steps to reproduce

(+) New Terminal (open up a new terminal)

**Expected behavior: My terminal emulator should load
**Actual behavior: Nothing, blank terminal. (terminal seems not to be loading in)
**Reproduces how often: 100%
Versions
Atom    : 1.34.0
Electron: 2.0.16
Chrome  : 61.0.3163.100
Node    : 8.9.3
apm  2.1.3
npm  6.2.0
node 8.9.3 x64
atom 1.34.0
python 2.7.15+
git 2.17.1
OS name and version: Ubuntu 18.04.3 LTS
Platformio-ide-terminal version: 2.9.4

Going back to 2.9.3 fixed my problem, if that help in debugging !

@jessypouliot98
2.9.4 is compatible with electron 3.x, 4.x and 5.x
Your Atom version 1.34.0 is electron 2.x so if you want Atom 1.34.0 thats what you have to stick with platformio-ide-terminal 2.9.3.
There is nothing to debug really, but I do apprecciate you filling in the template with the necessary information for me to be able to explain these details.
So to sum up, to have platformio-ide-terminal 2.9.4 is to upgrade Atom to 1.40.1 <- or newer Atom version.
Ill be closing this as wontfix and outdated-versions as there is nothing else I can do here given these facts, We expect our users to Work with latest production Atom releases to our latest production releases.
Thanks you for understanding.


When using RA-GRS Storage (with or without HNS), enable accessing the read only secondary

Is your feature request related to a problem? Please describe.
When using RA-GRS Storage (with or without HNS), enable accessing the read only secondary
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

I agree that this feature should not be available for GRS and other type of accounts, but definitely RA-GRS and RA-GZRS, as this is as we market it, see here: https://docs.microsoft.com/en-us/azure/storage/common/storage-redundancy#summary-of-redundancy-options.
I've seen this was an ask in the past but the item was closed @MRayermannMSFT

The one I closed was closed as a duplicate (I believe). Here's the issue we're using to track this feature request: https://github.com/microsoft/AzureStorageExplorer/issues/421


Use parameterized names in dynamic query

Builds on https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/331 - added wrapping of constants as soon as they're parsed to avoid cases where they can slip through the cracks.

@JonathanMagnan any updates on this? Would love to see this merged (or rejected, if that's the right answer).

Hello @ascott18 ,
Sorry for the delay,
I'm currently looking at it.
There is currently some weird stuff such as why a double constant require an Expression.Convert to be of type Nullable<double> while an int doesn't require such Convert. We already know where this is happening but we need to look deeper if such code is really required as you normally try to avoid Convert when not needed.
I'm not sure either if this line https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/399/files#diff-e02763e459f8622732aa03abaf297810R740 should really exists in the ParsePrimary or not.
I will continue to look at it and keep you updated later this week.

Hello @ascott18 ,
Your pull has been merged in the v1.2.1
Thank a lot for your help and your follow-up ;)
Best Regards,
Jon


Set up a GitHub Action for Docker Hub

Set up a GitHub Action to automatically build and push Docker images to Docker Hub

this is all set basically! we'll have to add some extra lines for the apache container when we've got it, but it's up and working (and faster than ever!) in test.yml in the workflows tab. should we merge it soon?


BIO_xxx() functions can have namespace collision with openssl

...so we will rename them all to um_BIO_xxx()

closed by commit 13ce9fb5b791306c35e173883de87d191917c7e8


[travis] support triggers and conditions

travis supports defining conditional pipeline execution logic directly in the yaml:
# blocklist
branches:
  except:
  - legacy
  - experimental

# safelist
branches:
  only:
  - master
  - stable

this is also supported by drone, circle, azure, gitlab, github and more.  we should treat this as a major product gap.

Further reading:

https://docs.travis-ci.com/user/conditional-builds-stages-jobs/
https://docs.travis-ci.com/user/conditions-v1


Added support for Rindle (rindle.com)

This pull request adds support for Rindle.
Currently you can start a timer for toggl from within a card view, here is a screenshot of the location:

@tplaner  I would need to get access to Rindle to test the integration before I can include it into Toggl Button.

Hey @IndrekV,
We are currently in private beta, I can give you access I just need your email address. If you don't want to post it here please send me an email<EMAIL_ADDRESS>and I'll get you access ASAP.
Thank you!

@IndrekV please let me know if you would like me to resubmit this to resolve the merge conflict.


Added SSR and OG image tags to visualised machines

Saving the machine breaks the local development:
https://www.loom.com/share/ddc8416ca0b24dd6bbf100de0701d0f3

@Andarist I thought I'd fixed this here in App.tsx, see the long comment inside redirectToNewUrlFromLegacyUrl

Could you check what your process.env.NODE_ENV is set to?

@Andarist Fixed in latest version


Do not reinitialize the instance again

This was some leftover from refactoring reported in #3063
When getting the connection in getConnectionWithExtraTypeMappings() we were re-initializing the instance, thing that is not needed, because we only call this function with an already initialized instance.

A new inspection was created.


Add batch operation support for adding, deleting and completing orders.

Noted. Can you explain to us your parser when you are free. Thanks!


srcOnly: make the -source suffix optional

Description of changes

srcOnly has a use as a trivial builder - cases when you just want to apply a patch to some derivation for example. However, it does not give the user full control of its name, since it adds a -source to whatever name the user provides. This PR addresses that by adding a noSuffix argument to srcOnly. The argument is only read when provided directly and not drvAttrs (should that be changed? Let me know).
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

I don't quite get the use case, what advantage does it have to change the suffix to something else? Aesthetics?

One use case is having a derivation of form ${pname}-${version} without the -source suffix. Maybe it is also the only one? Now that I think of it, it might be better to make the argument a boolean instead.

Okay but what do you do with the source code afterwards. Do you not put pass it on to a different derivation to perform some other build?

Okay but what do you do with the source code afterwards. Do you not put pass it on to a different derivation to perform some other build?

Sometimes I don't. I can't remember any exact details but I think I had a case when I just needed to patch something without copying everything in the installPhase manually.

This is an oddly shaped derivation helper prior to this PR.

attrset name presence or absence determines semantics
attrset names not used are dropped on the floor
drvAttrs if specified are overridden by the function
installPhase does not run hooks
xor behavior with name and pname/version

I'm on mobile reviewing this, so I haven't searched through nixpkgs, but I'm really struggling to see the use case for which this helper was created.

Yeah, I found it weird as well, although it does solve my issues. As I see it, it tries to do two different things:

Extract the source of a certain derivation
Trivially build a source by fetching, unpacking and applying patches, but not actually building anything

The first one is the reason of the drvAttrs magic, not running install hooks (the original hooks are not fit for the new installPhase) and dropping most attrs.
Should I do a heavier refactoring?


Determine high level approach for ES, Platform Services, CP to collaborate in Azure

Describe the issue
Enterprise Services (ES) has already done one round of engagement with the Microsoft Team, to set up the BC government Azure Tenancy, with focus on enabling ES services (Exchange, Teams, SharePoint, O365). Second engagement with Microsoft, under a Statement of Work that we helped to shape, started on September 18, 2020.
Need to determine how best to accommodate Cloud Pathfinder requirements (as well as those of Platform Services for Azure Redhat OpenShift).
Which Sprint Priority is this issue related to?
The 'Milestone' should clearly list Sprint Priorities - which one is this issue related to?
Additional context
Add any other context, attachments or screenshots
Definition of done

Research Azure Tenancy, Subscription and Resource Group constructs to determine which will best enable Cloud Pathfinder mission;
Meet with ES and Platform Services teams to discuss;
Bring forward recommended approach to CP Leadership Team.

Julian and Stu met with ES team (David Ell, Dennis Murch) and Platform Services (Justin Hewitt) 2020-09-21.
Key points discussed:

Azure Tenancy is linked to Azure AD instance, so we'd need to manage an additional Azure AD if we decide to use an additional tenancy. No benefits are apparent at this stage, and there is a significant cost.
Azure Subscriptions each require their own networking, and this adds complexity whenever one subscription needs to connect with another. Microsoft does billing per Subscription, which had led to thinking that we might want to establish our own Subscription, and potentially provide Subscriptions per ministry, to enable direct billing.
Resource Groups within a subscription can share networking, with configurable isolation and inter-connectivity - this makes for much reduced complexity vs separate Subscriptions. Separation and transparency of billing can be enabled via tagging of Resources within Resource Groups.
We also learned that ES has very similar objectives to ours, in terms of "everything as code", including recoverable Landing Zone code, and automated (IaC) provisioning. It seems likely that benefits of working together in a shared subscription will outweigh any inconveniences.
ES agreed to give us admin rights at the subscription level.

Conclusion: It is our recommendation that we work with ES in their Azure Tenancy, and start in a shared Subscription. We'll continue to collaborate openly, and reserve the option to revisit this decision at any point in time.


Improve Talpa-views error handling

Description
Return not found and bad request responses separately.
Context
PV-613
How Has This Been Tested?
Through added unit tests.

Codecov Report

Merging #388 (cbd2bdd) into develop (b870da8) will increase coverage by 0.05%.
The diff coverage is 67.12%.

@@             Coverage Diff             @@
##           develop     #388      +/-   ##
===========================================
+ Coverage    79.80%   79.85%   +0.05%
===========================================
  Files          148      148
  Lines         8575     8609      +34
===========================================
+ Hits          6843     6875      +32
- Misses        1732     1734       +2

Files
Coverage Δ

parking_permits/tests/test_views.py
100.00% <100.00%> (ø)

parking_permits/views.py
76.60% <51.02%> (+0.43%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


[SCP-2891] Fix pristine flag behaviour on inputs

Fixes https://input-output.atlassian.net/browse/SCP-2791

Pre-submit checklist:

Branch

[ ] Tests are provided (if possible)
[x] Commit sequence broadly makes sense
[x] Key commits have useful messages
[x] Relevant tickets are mentioned in commit messages
[x] Formatting, materialized Nix files, PNG optimization, etc. are updated

PR

[x] Self-reviewed the diff
[x] Useful pull request description
[x] Reviewer requested

LGTM in theory. I haven't had a chance to test it, but I assume you have. smile

I have 😄


Support for flash MX25L25635F/MX25L25645G

meta-rte version

v.1.1.0
Affected component(s) or functionality

Flashing 32MB BIOS ROM
Brief summary

The chip that is being recognised as MX25L25635F/MX25L25645G for ch341a is not as such recognised when flashing with the RTE. Instead, the devices finds:
Generic flash chip "unknown SPI chip (RDID)" (0 kB, SPI) on linux_spi.
How reproducible

100% reproducible
How to reproduce
Steps to reproduce the behavior:

Follow the flash guide: https://docs.dasharo.com/transparent-validation/rte/v1.1.0/flashing-guide/ including the preparation steps.
Try to flash the NovaCustom NS5-ADL Dasharo full image.

Expected behavior

Log recognises MX25L25635F/MX25L25645G and flash works
Actual behavior

Log recignises ``Generic flash chip "unknown SPI chip (RDID)" (0 kB, SPI) on linux_spi` and flash is not working
Screenshots

Additional context

I believe the RTE device is made to flash as many chips as possible. Or is it limited to a certain amount of chips?
Solutions you've tried

I bought a second RTE device and it works as it should, so the problem has been solved now.


Hyundai USA - Failed Setup will retry

Please check Services, Known Bug / Issues and Troubleshooting over here first: https://github.com/fuatakgun/kia_uvo/blob/master/README.md
Region and Brand of car
USA Hyundai
Version of the integration
2.26.6
Describe the bug
A clear and concise description of what the bug is.
I put in the configuration.yaml and went to system > logs. Not sure if those are the proper steps but my integration stopped working yesterday. I did upgrade to the latest HA but was not sure it was related so filing a bug. Surprise others aren't seeing it.
Debug logs if an error occurred
This error originated from a custom integration.
Logger: custom_components.kia_uvo.coordinator
Source: custom_components/kia_uvo/coordinator.py:135
integration: Hyundai / Kia Connect (documentation, issues)
First occurred: 4:06:36 PM (3 occurrences)
Last logged: 4:07:05 PM
Cached update failed: Traceback (most recent call last): File "/config/custom_components/kia_uvo/coordinator.py", line 126, in _async_update_data await self.hass.async_add_executor_job( File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 115, in check_and_force_update_vehicles self.update_vehicle_with_cached_state(vehicle_id) File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 90, in update_vehicle_with_cached_state self.api.update_vehicle_with_cached_state(self.token, vehicle) File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py", line 474, in update_vehicle_with_cached_state state["vehicleStatus"] = self._get_vehicle_status(token, vehicle, False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py", line 169, in _get_vehicle_status status = dict(response["vehicleStatus"]) ~~~~~~~~^^^^^^^^^^^^^^^^^ KeyError: 'vehicleStatus' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/config/custom_components/kia_uvo/coordinator.py", line 135, in _async_update_data await self.hass.async_add_executor_job( File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 85, in update_all_vehicles_with_cached_state self.update_vehicle_with_cached_state(vehicle_id) File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 90, in update_vehicle_with_cached_state self.api.update_vehicle_with_cached_state(self.token, vehicle) File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py", line 474, in update_vehicle_with_cached_state state["vehicleStatus"] = self._get_vehicle_status(token, vehicle, False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py", line 169, in _get_vehicle_status status = dict(response["vehicleStatus"]) ~~~~~~~~^^^^^^^^^^^^^^^^^ KeyError: 'vehicleStatus'
Traceback (most recent call last):
File "/config/custom_components/kia_uvo/coordinator.py", line 126, in _async_update_data
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 115, in check_and_force_update_vehicles
self.update_vehicle_with_cached_state(vehicle_id)
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 90, in update_vehicle_with_cached_state
self.api.update_vehicle_with_cached_state(self.token, vehicle)
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py", line 474, in update_vehicle_with_cached_state
state["vehicleStatus"] = self._get_vehicle_status(token, vehicle, False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py", line 169, in _get_vehicle_status
status = dict(response["vehicleStatus"])
~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'vehicleStatus'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/kia_uvo/coordinator.py", line 135, in _async_update_data
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 85, in update_all_vehicles_with_cached_state
self.update_vehicle_with_cached_state(vehicle_id)
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 90, in update_vehicle_with_cached_state
self.api.update_vehicle_with_cached_state(self.token, vehicle)
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py", line 474, in update_vehicle_with_cached_state
state["vehicleStatus"] = self._get_vehicle_status(token, vehicle, False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py", line 169, in _get_vehicle_status
status = dict(response["vehicleStatus"])
~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'vehicleStatus'
Outlined here: https://github.com/fuatakgun/kia_uvo/blob/master/README.md
To Reproduce
Reload integration

Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
I'm a dummy so if I have not provided the correct logs please provide the steps. I have added the debug aspect in my configuration.yaml and restarted HA. I went to system > logs and pasted those logs.....

I can't remember the button but at the bottom of the log section a button exists to load full logs.  Will need some of that.

Do you have tried to delete the integration, reload it an start new setup?
I always get at the setup the configuration asking for the Bluelink name, pw AND at 3. row the 4 digits pin for canada/US.
I set it at my setup too, despite I am located at Europe.
Doesn't hurt anything, but might be your problem not setting it beingvlocated in the US, isn't it ?

Ok I worked this out. I was scrubbing the logs and noticed the 502 message on my old vehicle. I recently got a new vehicle from Hyundai and returned the old one on lease. I had previously, 2 days after I got the new vehicle tried to remove the old vehicle from owners.hyundaiusa.com but kept getting an error. Granted I was not seeing an error and could see both vehicles in the integration. Well I went in today to owners.hyundaiusa.com after seeing the 502 error and "removed" the vehicle from there. I reloaded the integration and voila it is now working. So in the end, if you get rid of a vehicle. Give it 3 to 4 days for them to get it out of the system or when bluelink shows it has no subscription ( this is what I noticed this morning ) and then delete the vehicle from the owners website. Reload your integration and you should be good.

Good find. Yes if native app isn't working for any vehicle listed neither will the integration.

Lesson learned for sure and thanks for confirming.


100% geolocator code coverage

Currently at 67%

@sjuntiff  and @cam111 and @cpsilvia please help with this

What percentage is this currently at? If it is above 90%, you can close this issue.

It is at 77%


Docs: Convert "getting started - zen of wagtail" from RST to MD

Partially replaces #6834
Diff locally with
git diff master:./docs/getting_started/the_zen_of_wagtail.rst ./docs/getting_started/the_zen_of_wagtail.md

Thanks!


➖ remove b-image component

PR Type

[x] Refactoring

Context

[x] Related with #5852

Before submitting pull request, please make sure:

[x] My contribution builds clean without any errors or warnings
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've tried to respect high code quality standards
[x] I've didn't break any original functionality

Screenshot 📸

Copilot Summary

🤖 Generated by Copilot at 6f1458f
This pull request refactors several components that use images to improve performance, TypeScript support, and code quality. It replaces the b-image component from Buefy with native img elements, and applies some Vue style guide and Buefy conventions to the code. It also removes an empty line from the graphqlResponseTypes.ts file.

🤖 Generated by Copilot at 6f1458f

Oh we're the crew of the Vue ship, and we sail the web so fast
We don't need no b-image, we use img to make it last
We refactor and we tidy, we follow style and guide
And we heave away together, on the count of one, two, three!

I prefer to add neo-image component to replace b-image, because there is some useful code that could be reused, like 'src-fallback'.
Or if we could reuse this component in libs/ui libs/ui/src/components/MediaItem/type/ImageMedia.vue

meh.. I don't find any advantage to push this code in libs/ui, I'm listening if you have a case where this could be useful

2. There is still a `b-image` usage in the codebase as far as I know.

I prefer to add neo-image component to replace b-image, because there is some useful code that could be reused, like 'src-fallback'.
Or if we could reuse this component in libs/ui libs/ui/src/components/MediaItem/type/ImageMedia.vue

meh.. I don't find any advantage to push this code in libs/ui, I'm listening if you have a case where this could be useful

For example, I would like to add a placeholder image for every image display once the load failed. If we use pure<img /> tag, we have to add an error event listener to every tag. I would like to see a common image component that contains the fallback logic.
<img :src="src" @error="onError" />

const onError = (e: Event) => {
  const target = e.target as HTMLImageElement
  if (target) {
    consola.log('[KODADOT::IMAGE] unable to load', e)
    target.src = props.placeholder
  }
}

We do not have to push the code into libs/ui. Creating a new common component <CommonImage /> could also help us to reuse code.

Yes, it's already there on the BasicImage component. I mean we could replace <img /> with <BasicImage /> to enable these functionality.

Yes! Done for the one that was using <b-image />

The BasicImage naming is also ok to me. Could we replace <img /> with <BasicImage /> for most of the image elements? In this way, we could easily introduce some common logic for images. It could be another issue for sure.

For now I don't think it's a good idea to replace all <img /> occurence with <BasicImage /> since it could introduce some strange behavior.
Last <img /> tag standing are mainly icons (.svg) that can imported in component.
Let me know if you see a case where we should use BasicImage with skeleton.

The BasicImage naming is also ok to me. Could we replace <img /> with <BasicImage /> for most of the image elements? In this way, we could easily introduce some common logic for images. It could be another issue for sure.

For now I don't think it's a good idea to replace all <img /> occurence with <BasicImage /> since it could introduce some strange behavior. Last <img /> tag standing are mainly icons (.svg) that can imported in component.

Yes, we do not need to replace all img tag.

Let me know if you see a case where we should use BasicImage with skeleton.

Here is the BasicImage on TopCollection

@kodadot/qa-guild

Not sure if there's a problem with the deployed version, but collection images are not loading

Fixed

⚠ sorry but I merged #5397 on this branch

@roiLeo
it loads now but images are stretched
Beta:

Deploy:

gallery looking good but wallet icons are now huge:

Soo what's the status of this one ? 👀 @roiLeo @prury ?

Soo what's the status of this one ?

looks good on my side

Soo what's the status of this one ? 👀 @roiLeo @prury ?

will check again and if everything works properly will change the label

Found some problems:
Collections still not loading:
https://github.com/kodadot/nft-gallery/assets/36627808/c0d54c03-92fa-461d-89a1-af5c0aac2cad
Collection image not showing under created collections:

Found some problems:
Collections still not loading:

Idk what happened but I lost some code from https://github.com/kodadot/nft-gallery/pull/5854/commits

Merge?

@prury can I ask you for one more check pls?
Also @Jarsen136 && @preschian for review

I would double check everywhere and slow roll with this update as we are using it a lot places and seen there was various bugs :)

@prury can I ask you for one more check pls?
Also @Jarsen136 && @preschian for review

will do on my afternoon today

Tested on Firefox/Chrome for Desktop
Firefox/Chrome Mobile
Working fine!

Found some problems:
Collections still not loading:

Idk what happened but I lost some code from https://github.com/kodadot/nft-gallery/pull/5854/commits

this problem is still happening tho


Blake2b test code from Olaf

@denalimarsh @philipstanislaus added you to this for review for context and specifically @philipstanislaus to sanity check if the code which does 12 rounds of hashing fits the same hashing we'd need for our Parachain header.

Thanks for double checking - yeh in that case we can assume the cost will be even higher than for the above code and so agreed hold off for now


Bump to 2.42.0

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.
Here's what I've got...
For recipe:

If python is a host requirement, it should be a run requirement.

See https://github.com/conda-forge/pygobject-feedstock/pull/29 to build the ppc64le package of pygobject.

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.
Here's what I've got...
For recipe:

Selectors are suggested to take a <two spaces>#<one space>[<expression>] form. See lines [62]
If python is a host requirement, it should be a run requirement.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Many thanks!!


Next steps for ICFP 2016

We have a little under two months before the ICFP deadline.
Back in November and December I felt like it wasn't clear what exactly we were trying to do, so maybe this time we can try to come up with more concrete goals.
So how about this:

[x] Meet (this week?) to discuss paper.

[x] Write a new abstract.

[x] Start issues for major engineering tasks.

Sounds good to me.  I just sent a meeting invite.

Here's what we have for an abstract in the paper now:

Existing DSLs for GPU programming have successfully focused on
generating efficient kernels and minimizing the number of traversals
over data, but they have relatively unsophisticated runtime systems.
In this paper we provide an in-depth analysis of how well the
Accelerate DSL can overlap communication and computation and manage
concurrent kernels across multiple devices. We show how to extend
Accelerate's runtime to support multiple GPUs and CPUs simultaneously, and
we evaluate the tradeoffs between (1) slicing programs into device-specific
fragments early, versus (2) just-in-time division of kernel iteration spaces.
We explore global device-specific optimizations as well as individual-kernel
optimizations, and we show that this broader class of optimization can
have an impact: with a small amount of auto-tuning
the early slicing of programs is more effective for XYZ.


Unable to find types with Typescript Vue project

I'm getting the following error when doing import Tree from "vue3-treeview":
Could not find a declaration file for module 'vue3-treeview'. '/home/josh/treeviewbug/node_modules/vue3-treeview/dist/vue3-treeview.umd.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/vue3-treeview` if it exists or add a new declaration (.d.ts) file containing `declare module 'vue3-treeview';`ts(7016)

Reproduction steps:
npm init vite@latest treeviewbug -- --template vue-ts
cd treeviewbug
npm install
npm install vue3-treeview

Then change the App.vue file to the following content:
<script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
import { reactive } from "vue";
import Tree from "vue3-treeview";
import "vue3-treeview/dist/style.css";

const treeNodes = reactive({
  id1: {
    text: "text1",
    children: ["id11", "id12"],
  },
  id11: {
    text: "text11",
    children: ["id112"],
  },
  id12: {
    text: "text12",
    children: ["id111"],
  },
  id111: {
    text: "text111",
  },
  id112: {
    text: "text111",
  },
});

const treeConfig = {
  roots: ["id1"],
};
</script>

<template>
  <img alt="Vue logo" src="./assets/logo.png" />
  <tree :config="treeConfig" :nodes="treeNodes"> </tree>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>

Then build with npm run build:
npm run build                                                                                11:31:31

><EMAIL_ADDRESS>build
> vue-tsc --noEmit && vite build

src/App.vue:5:18 - error TS7016: Could not find a declaration file for module 'vue3-treeview'. '/home/josh/treeviewbug/node_modules/vue3-treeview/dist/vue3-treeview.umd.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/vue3-treeview` if it exists or add a new declaration (.d.ts) file containing `declare module 'vue3-treeview';`

5 import Tree from "vue3-treeview";
                   ~~~~~~~~~~~~~~~

Found 1 error.

I've included a repository with the code as well as a sandbox to view the error with:
https://codesandbox.io/s/rough-cache-kg9iw?file=/src/App.vue
https://github.com/TechSupportJosh/vue3-treeview-bug

Maybe just declare module in your d.ts file ?
like "declare module 'vue3-treeview';" ?

This works, but means there are no types available for the project, which
is unfortunate
On Wed, 22 Dec 2021, 18:57 N00ts, @.***> wrote:

Maybe just declare module in your d.ts file ?
like "declare module 'vue3-treeview';" ?
—
Reply to this email directly, view it on GitHub
https://github.com/N00ts/vue3-treeview/issues/10#issuecomment-999795843,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABHTJODZOTIXG7YUUIOD3Q3USINSNANCNFSM5KNPAXHQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>

It should, the project is exported with all types, go check dist folder

I can see the .d.ts. files are there, however they aren't correctly exposed (not exactly sure why). For example, the index.d.ts file attempts to import from the /src/components directory, which does not exist in the dist folder:
import Tree from './components/Tree.vue';
export default Tree;

It should work with this in your declaration file:
declare module "vue3-treeview" {
    type Tree = object;
    export = Tree
}


Support per-host-subnet on windows environment

related to https://github.com/rancher/rancher/issues/10442
Support per-host-subnet network model on windows.

refer to https://kubernetes.io/docs/getting-started-guides/windows/ , use two NICs. One is for NAT and the other is for routing traffic between containers.
NAT and port mapping are supported by windows RRAS NAT service.
Routing is supported by windows RRAS routing service.

Merged into Cattle.
Closing as testing will be for overall windows experience and new issues will be filed.


naive question

I am impressed with the work you have done so far.  To me, it seems you are very close to a new concept web framework (stand-alone web applets).
That being said...
I couldn't quite pick this up from my cursory reading of your code.  Is there support for child-apps? And/or routing to said child-apps (e.g. on same port, but different path).

Hello @jefmud !
What you need to do exactly?
Using the same port you can point to a single specific application, but however the same application can have multiple views. Such views are not separate App processes, but can be considered different context to the user point of view.
Using web technology (and specifically iframe tag) we can teorically embed one application into another. I never tested it, but however should be feasible.
What you need to do? Maybe I can suggest you the right solution

Thanks for indulging my question-- I think I am understanding your intent.  I was thinking about something just a little different, along the lines of Bottle or Flask framework.
I see some interesting possibilities in using this for mobile apps.
Here's what I was thinking about:

assume: the main method encapsulated in MyApp services the top-level route.
is it possible to design another entirely different view as a method on MyApp or to register another class-based view or maybe even an api that pushes/pulls data into the app? (e.g. view2, view3, api etc.)

localhost:8081/    (e.g. primary main view)
localhost:8081/view2
localhost:8081/view3
localhost:8081/api (e.g. POST/GET, etc. data exchange api)
Thanks again for indulging these speculative questions.

It's a pleasure to discuss about software :D
Here is an example about API: https://github.com/dddomodossola/remi/blob/master/examples/webAPI_app.py
Widgets methods are accessible by GET POST and WEBSOCKET "calls". Each widget is identified by its instance id. The example shows the possibility to "override" that id, setting up a fixed identifier, making it possible to address a specific widget method directly.

Thanks! Keep up the good work!

;-) have a good development

Sorry for necromancing this thread - but I was wondering if the routing can be done within the app (as opposed to the api call in webAPI_app.py).
So for example in root_widget_change_app.py, I'd like http://<IP_ADDRESS>:42411/page1 and http://<IP_ADDRESS>:42411/page2 to be available, and route to that page accordingly, instead of being purely GUI-point-and-click-based. Is this available already or would it be hard to implement on the user side?
thanks for the great framework btw!

Hello @husnoo ,
It should be feasible by a simple App class overloading. Of course it is out of the standard operating logic, but just for fun I will try to make you an example about this.
I will write you in about 1 day ;-)

Thank you so much! No hurry at all, happy to hack if you provide hints too! I tried it with the webApp example - instead of returning ok,  I returned a wid=gui.VBox(), but that didn't go too well.
So ideally I'm looking for  http://<IP_ADDRESS>:42411/ ----> main page,  http://<IP_ADDRESS>:42411/page2?key=value&otherkey=somevalue, so I can use that information in the same way you do it in the webAPI example:
    def api_set_text(self, value1, value2):
        self.set_text('parameters: %s - %s' % (value1, value2))

This seems relevant: https://github.com/rawpython/remi/issues/461 (where you basically say don't do it :P)
But I think that view would be throwing away a really useful part of the web, which is deep-linking into an app's views.

I think a clean approach from the remi-using-developer perspective would be if the  def main(self): could give the url as a string, for example, and then I'd choose to show one root widget or another?

In remi "urls" are function calls composed by [object id]/[function name]. Changing this logic could be a problem.

This is both cool and horrific! I can imagine one way of misusing it - calling the url sets a flag and then redirects to the main page, which looks at the flag and shows the right "page".

@husnoo
Here is an example for you, maybe not the most elegant solution, but an interesting hacking :-D
import remi.gui as gui
from remi import start, App

class PageManager(gui.Tag):
    app_instance = None
    page1_widget = None
    page2_widget = None

    def __init__(self, app_instance, **kwargs):
        super(PageManager, self).__init__(**kwargs)
        self.app_instance = app_instance

    def set_page1_widget(self, w):
        self.page1_widget = w

    def set_page2_widget(self, w):
        self.page2_widget = w

    # api function
    def page1(self):
        self.app_instance.set_root_widget(self.page1_widget)
        headers = {'Content-type': 'text/html'}
        #this is to redirect to the main URL
        return ['''<meta http-equiv="Refresh" content="0; URL=http://<IP_ADDRESS>:8082" />''', headers]

    def page2(self):
        self.app_instance.set_root_widget(self.page2_widget)
        headers = {'Content-type': 'text/html'}
        #this is to redirect to the main URL
        return ['''<meta http-equiv="Refresh" content="0; URL=http://<IP_ADDRESS>:8082" />''', headers]

class MyApp(App):
    def __init__(self, *args):
        super(MyApp, self).__init__(*args)

    def main(self):
        wid = gui.VBox()

        # the 'id' param allows to have an alias in the url to refer to the widget that will manage the call
        self.page_manager = PageManager(self, attributes={'id': 'page_manager'})
        self.page_manager.set_page1_widget(gui.Label('This is the PAGE1 type url "http://<IP_ADDRESS>:8082/page_manager/page2"'))
        self.page_manager.set_page2_widget(gui.Label("This is the PAGE2"))

        self.lbl = gui.Label('type url "http://<IP_ADDRESS>:8082/page_manager/page1" !')
        self.lbl.style['margin'] = 'auto'

        # appending a widget to another, the first argument is a string key
        wid.append(self.lbl)

        # returning the root widget
        return wid

if __name__ == "__main__":
    # starts the webserver
    # optional parameters
    # start(MyApp,address='<IP_ADDRESS>', port=8081, multiple_instance=False,enable_file_cache=True, update_interval=0.1,
    # start_browser=True)
    start(MyApp, debug=True, address='<IP_ADDRESS>', port=8082)

That's really cool! Thanks! It does do what I had in mind. A bit ugly in
terms of the url going back to the root, but much better than no url!
thanks again!
On Tue, 19 Dec 2023 at 23:12, Davide Rosa @.***> wrote:

@husnoo https://github.com/husnoo
Here is an example for you, maybe not the most elegant solution, but an
interesting hacking :-D
import remi.gui as guifrom remi import start, App
class PageManager(gui.Tag):
app_instance = None
page1_widget = None
page2_widget = None
def __init__(self, app_instance, **kwargs):
    super(PageManager, self).__init__(**kwargs)
    self.app_instance = app_instance

def set_page1_widget(self, w):
    self.page1_widget = w

def set_page2_widget(self, w):
    self.page2_widget = w

# api function
def page1(self):
    self.app_instance.set_root_widget(self.page1_widget)
    headers = {'Content-type': 'text/html'}
    #this is to redirect to the main URL
    return ['''<meta http-equiv="Refresh" content="0; URL=http://<IP_ADDRESS>:8082" />''', headers]

def page2(self):
    self.app_instance.set_root_widget(self.page2_widget)
    headers = {'Content-type': 'text/html'}
    #this is to redirect to the main URL
    return ['''<meta http-equiv="Refresh" content="0; URL=http://<IP_ADDRESS>:8082" />''', headers]

class MyApp(App):
def init(self, *args):
super(MyApp, self).init(*args)
def main(self):
    wid = gui.VBox()

    # the 'id' param allows to have an alias in the url to refer to the widget that will manage the call
    self.page_manager = PageManager(self, attributes={'id': 'page_manager'})
    self.page_manager.set_page1_widget(gui.Label('This is the PAGE1 type url "http://<IP_ADDRESS>:8082/page_manager/page2"'))
    self.page_manager.set_page2_widget(gui.Label("This is the PAGE2"))

    self.lbl = gui.Label('type url "http://<IP_ADDRESS>:8082/page_manager/page1" !')
    self.lbl.style['margin'] = 'auto'

    # appending a widget to another, the first argument is a string key
    wid.append(self.lbl)

    # returning the root widget
    return wid

if name == "main":
# starts the webserver
# optional parameters
# start(MyApp,address='<IP_ADDRESS>', port=8081, multiple_instance=False,enable_file_cache=True, update_interval=0.1,
# start_browser=True)
start(MyApp, debug=True, address='<IP_ADDRESS>', port=8082)
—
Reply to this email directly, view it on GitHub
https://github.com/rawpython/remi/issues/246#issuecomment-1863599469,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAWJWSWTQ4ZFURYAJBJDL6TYKINOBAVCNFSM4F2M3IU2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBWGM2TSOJUGY4Q
.
You are receiving this because you were mentioned.Message ID:
@.***>

I even got the url parameters to work using the webAPI.py example:
def page2(self,value1, value2):
self.app_instance.set_root_widget(self.page2_widget)
print('value1, value2:', value1, value2)
http://<IP_ADDRESS>:8082/page_manager/page2?value1=hello&value2=world
On Tue, 19 Dec 2023 at 23:46, Nawal Husnoo @.***> wrote:

That's really cool! Thanks! It does do what I had in mind. A bit ugly in
terms of the url going back to the root, but much better than no url!
thanks again!
On Tue, 19 Dec 2023 at 23:12, Davide Rosa @.***>
wrote:

@husnoo https://github.com/husnoo
Here is an example for you, maybe not the most elegant solution, but an
interesting hacking :-D
import remi.gui as guifrom remi import start, App
class PageManager(gui.Tag):
app_instance = None
page1_widget = None
page2_widget = None
def __init__(self, app_instance, **kwargs):
    super(PageManager, self).__init__(**kwargs)
    self.app_instance = app_instance

def set_page1_widget(self, w):
    self.page1_widget = w

def set_page2_widget(self, w):
    self.page2_widget = w

# api function
def page1(self):
    self.app_instance.set_root_widget(self.page1_widget)
    headers = {'Content-type': 'text/html'}
    #this is to redirect to the main URL
    return ['''<meta http-equiv="Refresh" content="0; URL=http://<IP_ADDRESS>:8082" />''', headers]

def page2(self):
    self.app_instance.set_root_widget(self.page2_widget)
    headers = {'Content-type': 'text/html'}
    #this is to redirect to the main URL
    return ['''<meta http-equiv="Refresh" content="0; URL=http://<IP_ADDRESS>:8082" />''', headers]

class MyApp(App):
def init(self, *args):
super(MyApp, self).init(*args)
def main(self):
    wid = gui.VBox()

    # the 'id' param allows to have an alias in the url to refer to the widget that will manage the call
    self.page_manager = PageManager(self, attributes={'id': 'page_manager'})
    self.page_manager.set_page1_widget(gui.Label('This is the PAGE1 type url "http://<IP_ADDRESS>:8082/page_manager/page2"'))
    self.page_manager.set_page2_widget(gui.Label("This is the PAGE2"))

    self.lbl = gui.Label('type url "http://<IP_ADDRESS>:8082/page_manager/page1" !')
    self.lbl.style['margin'] = 'auto'

    # appending a widget to another, the first argument is a string key
    wid.append(self.lbl)

    # returning the root widget
    return wid

if name == "main":
# starts the webserver
# optional parameters
# start(MyApp,address='<IP_ADDRESS>', port=8081, multiple_instance=False,enable_file_cache=True, update_interval=0.1,
# start_browser=True)
start(MyApp, debug=True, address='<IP_ADDRESS>', port=8082)
—
Reply to this email directly, view it on GitHub
https://github.com/rawpython/remi/issues/246#issuecomment-1863599469,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAWJWSWTQ4ZFURYAJBJDL6TYKINOBAVCNFSM4F2M3IU2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBWGM2TSOJUGY4Q
.
You are receiving this because you were mentioned.Message ID:
@.***>

Yes, that's normal, because we haven't affected the Remi url use. ;-)


tfm: Use relative path to the runners.yaml hex file and move tfm_merged

Move tfm_merged.hex from <build>/tfm_merged.hex to <build>/zephyr/tfm_merged.hex.
Use relative path to the runners.yaml hex file.
This makes it possible to move the build folder.
Example would be to copy out the runners.yaml and tfm_merged.hex file and still be able to call west flash --skip-rebuild.

Build failure is unrelated: https://github.com/zephyrproject-rtos/zephyr/pull/56078


Update documentation on how to retrieve instance from DOM element

flatpickr("#myInput", {}); // invocation without saving to a var
// ...

const fp = document.querySelector("#myInput")._flatpickr;

Does not work, but   const fp = document.querySelector("#myInput").flatpickr(); does

Fixed in v3


Remove Readcube link

PR checklist

[ ] This comment contains a description of changes (with reason).
[ ] If you've fixed a bug or added code that should be tested, add tests!
[ ] If you've added a new tool - have you followed the pipeline conventions in the contribution docs
[ ] If necessary, also make a PR on the nf-core/rnaseq branch on the nf-core/test-datasets repository.
[ ] Make sure your code lints (nf-core lint .).
[ ] Ensure the test suite passes (nextflow run . -profile test,docker).
[ ] Usage Documentation in docs/usage.md is updated.
[ ] Output Documentation in docs/output.md is updated.
[ ] CHANGELOG.md is updated.
[ ] README.md is updated (including new tool citations and authors/contributors).

I was copying some code over to update sarek ;-)
You did an amazing job

I was copying some code over to update sarek ;-)
You did an amazing job


[Enhancement]: Allow users to update the background and text color in progress bars

Is there an existing issue for this?

[X] I have searched the existing issues

Summary
Add style properties for progress bar background and text color.
Why should this be worked on?
Allow for more customisation with the style controls for the progress bar.

Please prioritize the same to integrate progress bar widget with custom theme of an application. Allow to change the color of remaining progress and not only the fill color.


Migrate Python loggers to C++

Migrates the current (fairly minimal) logger implementations (ConsoleLogger and SeverityFilter) over to C++ so we can leave the GIL out of messaging.
It is a fairly literal port that takes the path of least resistance to get us going, and we have #546 to address some of the more questionable aspects of the current implementation.

@feltech Also spotted a discrepancy between default arg values in C++ and Python, fixed here with tests.


test: improve e2e verdaccio configuration

Pre-flight checklist

[x] I have read the Contributing Guidelines on pull requests.
[ ] If this is a code change: I have written unit tests and/or added dogfooding pages to fully verify the new behavior.
[ ] If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

Motivation
I've notice master fails with E503 one of the uplinks is down, refuse to publish, this happens because on publish first check on internet if the version of this package exist, for E2E this should not be required. I'm trying to improve the master branch builds.
By adding a new block for @docusaurus/* avoid check any uplink and also the property allow_offline avoid any check with internet on publish (this is handy if the connection is dropped so avoid network issues)

I had to add an additional block for @docusaurus/react-loadable because this package is not part of this monorepo, while the order in the packages section matters, should be on the top of @docusaurus/*.

The CI build: https://github.com/facebook/docusaurus/runs/7881520546?check_suite_focus=true
lerna notice total files:   64
775
lerna notice
776
lerna ERR! E503 one of the uplinks is down, refuse to publish
777
error Command failed with exit code 1.
778
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
779
Error: Process completed with exit code 1.

Test Plan

E2E are green

Test links

Deploy preview: https://deploy-preview-_____--docusaurus-2.netlify.app/
Related issues/PRs

Great, thank you so much 🙏

Thanks @juanpicado :) looks great 👍


Enhance Atom's Mac Services support to include text services (editor not NSText)

Atom's Service support includes non text services. However, as the Atom text editor is a custom component not identified as text, the text services aren't show.
Thank you for your help. Don't hesitate to ask for further details if necessary.
Issue raised from conversation at https://github.com/atom/atom/issues/3204#issuecomment-167715168

+1.

:+1:

+1

:pray:

To interoperate with OS X System Services, objects in the responder chain need to implement three methods:

The system calls -validRequestorForSendType:returnType: to check whether services of a certain type (services that receive sendType and return returnType) are applicable in the current state of the application.

When a service (that receives data) is activated, the system calls -writeSelectionToPasteboard:types: to let the application write input data to the service.

When a service (that returns data) is finished, the system calls -readSelectionFromPasteboard: to let the application read result data from the service.

Chromium
The chromium infrastructure code implements all of these methods in the classes RenderWidgetHostViewCocoa and BridgedContentView:

For validRequestorForSendType:returnType:, both return self if:

Both types are be either text or null. This filters services that produce or consume non-textual data.
If the services consumes text, the view must have a selection:

RenderWidgetHostViewCocoa checks !renderWidgetHostView_->selected_text().empty()
BridgedContentView checks [self selectedRange].length > 0

If the services produces text, the view must be textual:

RenderWidgetHostViewCocoa checks renderWidgetHostView_->text_input_type_ != ui::TEXT_INPUT_TYPE_NONE
BridgedContentView checks textInputClient_

For -writeSelectionToPasteboard:types:, both write the current selection:

RenderWidgetHostViewCocoa uses renderWidgetHostView_->selected_text()
BridgedContentView uses textInputClient_->GetTextFromRange(selectionRange, &text)

For -readSelectionFromPasteboard:, both insert the read text using -insertText:.

Atom
Cursory inspection (using F-Script) reveals that the root view of Atom is a RenderWidgetHostViewCocoa which contains everything except the titlebar, so let's focus on that.
In order for Atom text editors to interoperate with system services, we need to inform that view of our editor's selection. The appropriate method to call for this seems to be RenderWidgetHostViewMac::SelectionChanged, which updates the selection stored in the contained renderWidgetHostView_ property.
It seems that we'll need a way to call this method from Atom, but not having grasped how all the parts of Atom/Electron fit together I'm not sure where to start making this connection.
Electron already includes calls to the render widget host view in electron/atom/browser/api/atom_api_web_contents.cc, although I'm not sure whether that's relevant here.
Multiple Selections
As an additional issue, Atom text editors may contain multiple selections. The system services architecture does not seem to accommodate this: The methods for exchanging data with services are called by the operating system and allow transmitting a single piece of data (per distinct pasteboard key).
There is a way to invoke services programmatically using NSPerformService, but calling this function requires the name of the service, which none of the other methods reveal, so repeating a given service invocation for each selection seems not to be possible.
It seems that this leaves us with the choice of

either only ever invoking services on the first selections
or disabling services altogether when there are multiple selections.

@mkhl, in response to this:

It seems that this leaves us with the choice of

either only ever invoking services on the first selections
or disabling services altogether when there are multiple selections.

... I would vote for the former (and I think most people would agree given the choice).
Most OS X Services users are okay with modifying only one text selection at at time.
If we could just do that, all would be well.

The lack of this means text services that all OS X users expect, like the built-in dictionary's Look Up "x", the built-in text-to-speech's Start Speaking/Stop Speaking, and various other things like Add to Notes, are unavailable.

This issue is still current in Atom 1.25.1 on a Mac OSX 10.13.3
Steps to reproduce:
0. Create a new file

Type text
Select text
Select "Services" in the Atom menu

When doing this you will see that the services for text are not available.

This issue is still current in Atom 1.36.0 on a macOS 10.14.4.
please reopen

Thanks very much.
From what we've seen other than Services, most macOS tools that manipulate text within a program, such as TextExpander, interoperate with Atom's TextEditor without problems. Because of these workarounds, adding support for macOS Services is not something that the Atom team is going to take on.
We would be willing to review a very professionally written pull request. But because of the complexity of integrating with Atom at such a low level, it would need to be very detailed in its design, implementation, and testing, so that we can verify it would not be disruptive to the experience of other users. Please keep that in mind if anyone decides to tackle this task.
I'm going to close this issue and mark it with the help-wanted label so that others may find it if they're interested.

Just a comment from a mere end-user of Slack who's been watching this issue for about a year, after asking for macOS Services (and just read-only text services would be sufficient) to be enabled from Slack. It's kind of sad that a near-unicorn software company like Slack (IPO coming soon!) just delegates what is a piece of expected platform functionality to an open-source project whose priorities are quite different. Really, I don't care about Slack's dependencies, I just want to work more efficiently on my computer.


Improve exception handling

The only thing that can be improved is the --verbose option during testing... there might be a better way to automatically set this to true or maybe monkeypatch the exception handler during tests. But we can solve this later. I want the exceptions now :D

closes #75


additional annotations are shown twice in Zipkin GUI

Following the advice in the 3.4 release notes, I subclass the span collector in order to decorate the collect method. The annotation added picks a value from MDC, but I guess that is irrelevant.
@Override
public void collect(Span span) {
   span.addToBinary_annotations(new BinaryAnnotation("correlationId", MDC.get("MDC-correlationId")));
   super.collect(span);
}

However, the annotation is listed twice in the GUI.

the weird part is that the existing scribe code did this inside collect (basically the same code as you have)! You aren't adding to defaultAnnotations anymore, right?
        if (!defaultAnnotations.isEmpty()) {
            for (final BinaryAnnotation ba : defaultAnnotations) {
                span.addToBinary_annotations(ba);
            }
        }

No, I don't. A breakpoint in that section never triggers, so defaultAnnotation is indeed empty

cool thx for verifying

What does the JSON API response look like? Is the problem at zipkin-query or in the frontend UI?

root issue was that the client and server were both logging the same binary annotation. Binary annotations look like a dict String->String, but there's actually no unique constraint. I recommended adding the correlationId only on the server span (ie. looking for "sr" annotation and doing it then).

I recommended adding the correlationId only on the server span (ie. looking for "sr" annotation and doing it then).

+1. Alternatively, live with the fact/problem that it's duplicated in the UI :wink:
@yurishkuro had a patch that adds the service name to every annotation in the UI, to disambiguate - at least, that's what I think you meant? Though that work was stalled by all my refactoring that probably ruined the patch...

well, in this case neither binary annotation had a host/endpoint attached :P but yeah get what you mean.


Populating a component on load

I'm trying to render the component only after the action is finished. But with sagas, my action is lost.
How do I return the saga a promise?
import { injectReducer } from '../../store/reducers'

export default (store) => ({
  path: 'example/:id',
  getComponent (nextState, cb) {
    require.ensure([], (require) => {

      const MainContainer = require('./containers/Main').default

      const actions = require('./modules').actions
      const reducer = require('./modules').reducers

      injectReducer(store, { key: 'example', reducer })

      // Uncaught TypeError: store.dispatch(...).then is not a function
      store
        .dispatch(actions.fetch(nextState.params.exampleId)) // set global spinner
        .then(() => cb(null, MainContainer)) // success, data loaded, render component
        .catch(cb) // return error to router (or render NotFoundComponent)
    })
  }
})

// Sagas

function* getExampleById(action) {
  const response = call(api.get) // ...
  yield put(exampleActions.success(response))
}

function* watchFetchExampleById() {
  yield takeEvery(EXAMPLE_FETCH.REQUEST, getExampleById)
}

export default function* root() {
  fork(watchFetchExampleById)
}

I really aint sure what is yoru exact problem. Could you be more elaborate?
What is your expected behaviour?

Without completely understanding your issue (and guessing based on your title), I'd say the simplest way to defer rendering a component until a saga completes is to wrap the component in a {someProp && <MyChildComponent /> } from the parent component.
Example (assuming use of redux, but the idea is the same):
// ParentComponent.js
const ParentComponent = ({ myData }) => (
  { myData && <MyChildComponent /> /* this component will only render if myData is not undefined */ }
)
export default connect(state => ({ myData: state.myData }))(ParentComponent)

// sagas.js
function* getData() {
  var data = yield call(api.getData);
  yield put({type: 'GET_DATA_SUCCESS', data}));
}

export watchGetData() {
  yield takeEvery('GET_DATA', getData);
}

// reducers.js
function dataReducer(state, action) {
  //...
  case: 'GET_DATA_SUCCESS':
    return {
      ...state,
      myData: action.data
    };
  //...
}

This really flawed, I have just two sagas so far which need to execute in sequence, but the component renders before either of them complete and fires an action before takeLatest has been hooked up.
This seems like a really common problem but the solution of yet another wrapper and manual prop checks to see if the saga is finished seems to take any of the benefits away of pure actions for me.