Provided missing internal methods to test duplex calls

Hard to believe I broke some tests with my code. Hmm.


Wrong index method name when generating integration_test

Hello. I'm not sure if this is a bug or if it's due to something on my side, but when I generate an integration_test the example that is generated has a [resource name here]_index_path, which is a non existent method, since and index route is called with [resource name]_path.
I'm don't use Rspec that often, so before making a PR I want to make sure this is a bug and not the expected behaviour.
Cheers

What command did you use? It looks like the behavior you describe happens if you give it a plural name (or one that Rails can't find in the routes). Otherwise it should generate it properly.

That must be why. I usually generate the specs files before creating the routes or anything else, and I might have used the plural name. Something in the lines of $ rails g integration_test expenses.
Feel free to close the issue. Thank you!


Feature: Ability to clear notifications

Use case: I'd like to leave a persistent notification, but have it cleared as soon as a HA state changes.
I think there's a couple of ways this could be accomplished:

Similar to HA mobile notifications: notifications can have a data.tag attribute and then they get cleared if another notification is received with message: 'clear_notification and a data.tag that matches the one in the first notification, or
Add a tag to notifications and use a command to clear them (or maybe cleared by title, but tag might be better if titles are dynamic)

Good idea :) I like the attribute to 'overwrite' previous notifications, that'd be useful for my usecases as well. I'll also add a 'clear all notifications' command.
I'll put it on the list

I'm closing most feature requests from github's issue list. They're not ignored, just moved to the HASS.Agent Issue Tracker (you can find your link in a comment above).
That tracker allows me to organise better through what's pending, being done, being released, etc. - instead of one long list, which is beginning to stress me out :p
I will however post a reply here when I've implemented your request, and feel free to still post here when you have any questions/additions.


policy: Expose L3 selectors within endpoint JSON

Currently, these are omitted from the raw
endpoint JSON due to omitting CachedSelectors
from the L4Filter struct, which can lead to incomplete
information when retrieving the endpoint using:
cilium endpoint get $id -o json.
This patch fixes this issue by exposing CachedSelectors
and registering a custom JSON serializer for its
CachedSelectorSlice type.
Fixes #8506

This change is

Coverage decreased (-0.001%) to 44.239% when pulling 732f83832471847408f5ba9cd85404aca4ff6538 on iffyio:pr-cnp-l4filter-json into 89c1ec3c36fc6cd10f10785b21e031c1ce8cb340 on cilium:master.

test-me-please


Default frontend for Javascript

Currently, joern-cli still builds with the original js2cpg frontend for javascript.
As that frontend is not part of the joern repository anymore, should it be replaced with the new
jssrc2cpg as the default or is that still too much WIP?
Will create a corresponding PR.

As that frontend is not part of the joern repository anymore

Well, it never has been.

or is that still too much WIP?

It kinda is, yes. It creates the same CPGs for plain JS code and understands some TS constructs but
as it does not transpile anything like js2cpg does, things build on-top of JS (frontend stuff e.g., JSX/TSX) are missing.
Also, there is currently no support for TS type annotations at all.

completed by #1563


Cleanup surrounding non-native live support

In favour of #1489.
Problem
I'd like to route https://live-staging.artsy.net/54c7e8fa7261692b5acd0600 to use an internal web browser. However, it gets routed as a profile.
Change
I've changed the switchboard to only route URLs with known Artsy hosts (so an unexpected Artsy subdomain will get routed to an internal web view instead of as a profile, which would remove the custom subdomain and replace it with either staging or production (m)artsy).
Paired with @orta.

        1 Warning

  </th>
 </tr>

:warning:
Detected some Swift building time outliers

Time | Class | Function |
| --- | ----- | ----- |252.1ms | AuctionViewController.swift | @objc dynamic func showRefineTappedAnimated(animated: Bool)
183.7ms | WebSocket.swift | private func processRawMessage(buffer: UnsafePointer, bufferLen: Int)
57.9ms | RefinementOptionsViewController+Private.swift | func stackView() -> ORStackView

  Generated by :no_entry_sign: danger


Add privilege information

to user and group priv forms

This duplicated code really should go into an include file, so the string of gettext() can all be put together in one place.

Closing in favor of #3337

Closing in favor of #3337


Changing the type of an abstract link property errors

EdgeDB Version: 1.2
OS Version: Mac Monterray

Steps to Reproduce:

Change orderVal to decimal
migrate

Schema:
abstract type Entity{}
abstract link orderable {
    property orderVal -> str { delegated constraint exclusive };
 }
    type Topic extending Entity {
      multi link videos extends orderable -> Video;
   }
type Video extends Entity {}

Error
 InternalServerError: invalid PathId: <Link 6594eb62-b4ec-11ec-bd14-f709fa69babe at 0x0x113d8dfc0> is not concrete
  Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md
  Server traceback:
      Traceback (most recent call last):
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler_pool/worker.py", line 309, in worker
          res = meth(*args)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler_pool/worker.py", line 202, in compile_in_tx
          units, cstate = COMPILER.compile_in_tx(cstate, *args, **kwargs)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler/compiler.py", line 2148, in compile_in_tx
          return self._compile(ctx=ctx, source=source), ctx.state
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler/compiler.py", line 1669, in _compile
          return self._try_compile(ctx=ctx, source=source)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler/compiler.py", line 1722, in _try_compile
          comp, capabilities = self._compile_dispatch_ql(
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler/compiler.py", line 1605, in _compile_dispatch_ql
          query = self._compile_ql_migration(ctx, ql)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler/compiler.py", line 944, in _compile_ql_migration
          query = self._compile_and_apply_ddl_stmt(ctx, ql)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler/compiler.py", line 861, in _compile_and_apply_ddl_stmt
          block, new_types = self._process_delta(ctx, delta)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler/compiler.py", line 342, in _process_delta
          schema = pgdelta.apply(schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 5963, in apply
          schema = super().apply(schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 1519, in apply
          schema = self.apply_subcommands(schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 143, in apply_subcommands
          schema = super().apply_subcommands(schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 1546, in apply_subcommands
          schema = objop.apply(schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 2977, in apply
          schema = self._create_innards(schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 2945, in _create_innards
          return self.apply_subcommands(schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 143, in apply_subcommands
          schema = super().apply_subcommands(schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 946, in apply_subcommands
          schema = op.apply(schema, context=context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 3445, in apply
          schema = self._alter_innards(schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 4410, in _alter_innards
          schema = super()._alter_innards(schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 3074, in _alter_innards
          return self.apply_subcommands(schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 143, in apply_subcommands
          schema = super().apply_subcommands(schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 946, in apply_subcommands
          schema = op.apply(schema, context=context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 3445, in apply
          schema = self._alter_innards(schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 4826, in _alter_innards
          schema = super()._alter_innards(schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 3074, in _alter_innards
          return self.apply_subcommands(schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 143, in apply_subcommands
          schema = super().apply_subcommands(schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 946, in apply_subcommands
          schema = op.apply(schema, context=context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 3127, in apply
          schema = self._alter_begin(schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 4739, in _alter_begin
          self._alter_pointer_type(self.scls, schema, orig_schema, context)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 3683, in _alter_pointer_type
          self._compile_conversion_expr(
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 3959, in _compile_conversion_expr
          tgt_path_id = irpathid.PathId.from_pointer(
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/ir/pathid.py", line 201, in from_pointer
          prefix = cls.from_pointer(schema, source, namespace=namespace)
        File "/Users/abdellah/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/ir/pathid.py", line 197, in from_pointer
          raise ValueError(f'invalid PathId: {pointer} is not concrete')
      ValueError: invalid PathId: <Link 6594eb62-b4ec-11ec-bd14-f709fa69babe at 0x0x113d8dfc0> is not concrete

I get the same error trying to add a new value to an enum that is used in abstract link:
Original schema:
  scalar type EmployeeRole extending enum<ADMIN, STAFF, CAREGIVER>;

  abstract link Employee {
    property employee_role -> EmployeeRole;
    property title -> str;

    property created_at -> datetime {
      default := datetime_current();
      readonly := true;
    }
  }

Added a value to the EmployeeRole enum:
  scalar type EmployeeRole extending enum<OWNER, ADMIN, STAFF, CAREGIVER>;

Got this error on migration:
edgedb error: InternalServerError: invalid PathId: <Link 86344994-b6ea-11ec-8601-3f72ebb9ef36 at 0x0x10f65df40> is not concrete
  Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md
  Server traceback:
      Traceback (most recent call last):
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler_pool/worker.py", line 309, in worker
          res = meth(*args)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler_pool/worker.py", line 202, in compile_in_tx
          units, cstate = COMPILER.compile_in_tx(cstate, *args, **kwargs)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler/compiler.py", line 2148, in compile_in_x
          return self._compile(ctx=ctx, source=source), ctx.state
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler/compiler.py", line 1669, in _compile
          return self._try_compile(ctx=ctx, source=source)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler/compiler.py", line 1722, in _try_compile
          comp, capabilities = self._compile_dispatch_ql(
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler/compiler.py", line 1605, in _compile_dispatch_ql
          query = self._compile_ql_migration(ctx, ql)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler/compiler.py", line 944, in _compile_ql_migration
          query = self._compile_and_apply_ddl_stmt(ctx, ql)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler/compiler.py", line 861, in _compile_and_apply_ddl_stmt
          block, new_types = self._process_delta(ctx, delta)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/server/compiler/compiler.py", line 342, in _process_delta
          schema = pgdelta.apply(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 5963, in apply
          schema = super().apply(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 1519, in apply
          schema = self.apply_subcommands(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 143, in apply_subcommands
          schema = super().apply_subcommands(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 1546, in apply_subcommands
          schema = objop.apply(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 2977, in apply
          schema = self._create_innards(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 2945, in _create_innards
          return self.apply_subcommands(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 143, in apply_subcommands
          schema = super().apply_subcommands(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 946, in apply_subcommands
          schema = op.apply(schema, context=context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 3444, in apply
          schema = self._alter_begin(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 2401, in _alter_begin
          schema = self._undo_everything(schema, context, objs, props)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 2288, in _undo_everything
          schema = acmd.apply(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 1139, in apply
          schema = self.apply_subcommands(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 143, in apply_subcommands
          schema = super().apply_subcommands(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 946, in apply_subcommands
          schema = op.apply(schema, context=context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 3445, in apply
          schema = self._alter_innards(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 4410, in _alter_innards
          schema = super()._alter_innards(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 3074, in _alter_innards
          return self.apply_subcommands(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 143, in apply_subcommands
          schema = super().apply_subcommands(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 946, in apply_subcommands
          schema = op.apply(schema, context=context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 3445, in apply
          schema = self._alter_innards(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 4826, in _alter_innards
          schema = super()._alter_innards(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 3074, in _alter_innards
          return self.apply_subcommands(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 143, in apply_subcommands
          schema = super().apply_subcommands(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 946, in apply_subcommands
          schema = op.apply(schema, context=context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/schema/delta.py", line 3127, in apply
          schema = self._alter_begin(schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 4739, in _alter_begin
          self._alter_pointer_type(self.scls, schema, orig_schema, context)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 3683, in _alter_pointer_type
          self._compile_conversion_expr(
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/pgsql/delta.py", line 3959, in _compile_conversion_expr
          tgt_path_id = irpathid.PathId.from_pointer(
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/ir/pathid.py", line 201, in from_pointer
          prefix = cls.from_pointer(schema, source, namespace=namespace)
        File "/Users/edgedb/Library/Application Support/edgedb/portable/1.2/lib/python3.10/site-packages/edb/ir/pathid.py", line 197, in from_pointer
          raise ValueError(f'invalid PathId: {pointer} is not concrete')
      ValueError: invalid PathId: <Link 86344994-b6ea-11ec-8601-3f72ebb9ef36 at 0x0x10f65df40> is not concrete


Exam mode: Programming submission shows Build Succeeded on faulty submission

Describe the bug
In a Programming exercise, I submitted something that definitely should have caused a build failure. I wrote some code that can't compile and even deleted one of the exercise files from the repository. However, after submitting the exercise, it showed "Build succeeded" (no tests executed).
I would have expected a "Build failed" message instead.
To Reproduce

Participate in an exam with a Programming Exercise
Open the Programming Exercise in an IDE (online IDE works too)
Write some code that doesn't compile or delete a relevant file
Submit/Push your solution
Wait for "Building and testing" to finish

Expected behavior
Since a missing file or obviously malformed code shouldn't be able to compile, I would expect an error like "Build failed", not "Build succeeded".
Screenshots
No response
Which version of Artemis are you seeing the problem on?
7.3.1
What browsers are you seeing the problem on?
Safari

Is this a general issue or specific to a certain exercise? Did this occur during an exercise on the live-system or during testing?

I investigated it a little bit, I was able to reproduce it for VHDL exercises in exams (seems to be the default exercise type for programming exercises right now).
It occurred on staging -> LocalCI Cluster
I adjusted the issue description accordingly

I verified that it works for Java exercises


Fixed Wording

Q
A

Is bugfix?
no

New feature?
no

Breaks BC?
no

Tests pass?
N/A

Fixed issues
N/A

Thank you!


Mosquitto, missing ssl certs

I would like to configure mosquitto as bridge,
actually I can do that adding my configuration via the samba addon as stated in the configuration.
If the other mosquitto instance is running with ssl I am unable to connect to it because in the configuration file must be present the bridge_cafile configuration option.
Inspecting the addon I cannot find the /ssl/certs/ca-certificates.crt needed for this configuration.
My first attempt was

ln -s /etc/ssl/certs /resin-data/ssl/

in the hassio root but this is not optimal because it requires access to the underlying os.
Am I missing something about the ssl connection?
There is other routes?
I never tryed to work with the hassio addons, if it can be an interesting advance in the configuration I can try to help if someone can point me in the right direction.
Thank you
Andrea

ca-certificates should be inside container and can used like on a normal system. Otherwise you can make a PR and add this packages into add-on 👍

Hi pvizeli,
thank you for your reply.
I am sorry, I found out that I mispelled the file name. Actually the cert data is in the correct place inside the container.
I have the bridge up and running right now.
For future reference,
address mosquitto_hostname.com:port
clientid client_name
username the_username
password the_difficult_password
topic homeassistant/# out
bridge_cafile /etc/ssl/certs/ca-certificates.crt

allow me to connect to the remote mosquitto server.
username and password are the one setup on the remote server.


Exported int var gets broken when set via randi()

Operating system or device - Godot version:
Windows 10 64, Godot 2.1.3
Issue description:
I'm setting a new exported variable on a node via:
export(int) var id
On creation in editor, I'm setting it to a random value with:
randomize()
node.id = randi()
Later, at runtime, the id is sometimes different than when viewing in the editor, and generally behaves erratically. Crashes with 'shit? No such file or directory', when the filed is interacted with the value jumps in editor etc.

Where are you doing this node.id = randi()?
If you do that in _ready(), it will obviously set to a different value everytime, no matter what you do in editor.
You should also check that your assignment isn't set a second time in editor due to another call to _ready() for example.

The randi() is set once, though it seems it sets the exported var to a value bigger that it can handle, and then it starts misbehaving:

Note that randi() returns a value between 0 and 2^32. But due to GDScript values being variants, it will be stored as a signed integer, which handles values between -2^31 and 2^31 (Values above 2^32 will be negative).

Seems also that breaking a single export var can break other export vars in file or object. The scene I'm working on crashed with 'shit? No such file or directory, Server disconnected', then I manually set other export int vars to the same value they displayed, and the scene started working again..

I have a custom node type added via an addon (A). Node A on _ready in editor (after being added to the scene) adds a new node next to it (B), that has an exported var called id. Node A then set's the id of node B to randi(). Then node A removed itself (so the id is set only once).
My assumption is that it sometimes sets id too high, and that somehow makes the exported var broken. It also breaks other, unrelated export int vars.

And the fact that export vars, especially ones unrelated to the problem, can get corrupted that easily, is very disconcerting - one can store important data in them, like the totality of the in-game dialogues for example..

Or I'm doing something wrong. Exceeding the export var value like on the above gif feels a bit buggy though.

I was experimenting with this for a moment but was not able to reproduce the crash problem. @PLyczkowski I think you really should create minimal reproduction project.

Or provide a detailed list of steps that are needed to reproduce.

Also in the process you might find out more directly where the problem lies, feel encouraged to close this issue and start freshly with more direct one.

Alright, I'll try to pinpoint the problem more precisely, and start a new issue when I do.


External link does not work with Zabbix macros

Describe the bug
Query type: Problems
Visualisations: Zabbix Problems
External Link button with macros in Zabbix URL field doesn't work as expected.
Link looks like : https://grafanadnsname/{$TRIGGER.URL}
Expected behavior
The macro gets its value correctly and the External Link button opens the correct page.
Screenshots

Software versions

Grafana
Zabbix
Grafana-Zabbix Plugin

10.0.3
6.4.3
4.4.1

+1.
Still happens on Grafana 11.0.0, Zabbix 7.0.0 and Grafana-Zabbix Plugin 4.5.1.


Updates fake element to use visually hidden styles

This request changes styles given to the fake element that is used to copy text. These changes follow [the technique used by HTML5 Boilerplate](https://github.com/h5bp/html5-boilerplate/blob/v5.0.0/src/css/main.css#L
126-L140) which has been battle tested to protect against the most common element styles that might otherwise cause painting to the screen or expanding of the scrollable area when the textarea is added to the page (if and when it even takes so long as to possibly do these things).
Other benefits include:

Freedom from reading the document scroll position (even with its clever IE8 fallback).
The appropriate (and nifty use) of style.cssText rather than individual property assignments.
The opportunity to work with you again.

Just started reviewing :) :octocat: Sent from GH.

Nice! I must admit that I was not 100% happy with that part.
But it seems that we'll need to read the scroll position on Firefox Here's this PR being applied to the site.

It's always great to work with you @jonathantneal ;)

So, that’s why you do it! Let me look into this a bit more. Thanks.

Closing this one for now. Feel free to open a new pull request Jon ;)


Should admiral provide a framework, e.g., for grouping deriviations?

Should admiral provide a framework or grouping functionality to avoid that admiral function calls are copied from script to script, datacut to datacut, study to study, ...?

@bundfussr I'd be interested to hear more on this idea when you get back after holiday. I think you're talking about some kind of inheritance where you could define admiral calls at a higher level than reporting event, such as company or molecule level. If so I think that is more a company-specific discussion rather than something for the admiral package.

Closing as out of scope of admiral.


Play Pause Feature in TTS Python SDK

Is your feature request related to a problem? Please describe.
Hi, Play/Pause feature is supported in other languages eg,
https://stackoverflow.com/questions/62523344/how-to-stop-microsoft-cognitive-tts-audio-playing
var player = new SpeechSDK.SpeakerAudioDestination();
var audioConfig  = SpeechSDK.AudioConfig.fromSpeakerOutput(player);
var synthesizer = new SpeechSDK.SpeechSynthesizer(speechConfig, audioConfig);
synthesizer.speakTextAsync(
...
);

But I cannot find SpeakerAudioDestination class in python
Describe the solution you'd like
An appropriate class or function for the same.

@prakhs123 It is correct that pause/resume functionality is not currently available in Python SDK. We will consider adding the support in future releases.
Created internal workitem ref: 4939447


SILGen: Allow static stored properties in fully-concrete extensions of generic types.

There's no need for per-instantiation storage in this case, so we can relax the implementation limitation for them.

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please smoke test


[releaes-v1.7] Fix invalid config

Signed-off-by: Matthias Wessendorf<EMAIL_ADDRESS>backport of https://github.com/knative-sandbox/eventing-kafka-broker/pull/2853

/assign @aliok
the backport

https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift-knative_eventing-kafka-broker/563/pull-ci-openshift-knative-eventing-kafka-broker-release-v1.7-411-test-reconciler-aws-ocp-411/1617536790988591104
    steps.go:47: sources.knative.dev/v1beta1, Resource=kafkasources did not become ready, timed out waiting for the condition
    --- FAIL: TestKafkaSourceDeletedFromContractConfigMaps/KafkaSources/Assert/[Stable/MUST]kafkasource_x-kafka-source-39_is_ready (120.26s)
FAIL test/e2e_new.TestKafkaSourceDeletedFromContractConfigMaps/KafkaSources/Assert/[Stable/MUST]kafkasource_x-kafka-source-39_is_ready (120.26s)

/retest


[WavPack] Incorrect duration

Sample: history.wv.zip
MediaInfo 24.03 on Windows 7 x64 reports 5s 333 ms, but it's actually 16 s 780 ms.
$ mediainfo history.wv

General
Complete name                            : history.wv
Format                                   : WavPack
File size                                : 206 KiB
Duration                                 : 5 s 333 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 316 kb/s

Audio
Format                                   : WavPack
Format profile                           : 4.16
Format settings                          : Lossless
Duration                                 : 5 s 333 ms
Bit rate mode                            : Variable
Bit rate                                 : 316 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 11.025 kHz
Bit depth                                : 16 bits
Compression ratio                        : 0.559
Stream size                              : 206 KiB (100%)
Encoding settings                        : -x3 -m

$ wvunpack -s history.wv

 WVUNPACK  Hybrid Lossless Audio Decompressor  Win64 Version 5.7.0
 Copyright (c) 1998 - 2024 David Bryant.  All Rights Reserved.

file name:         history.wv
file size:         210462 bytes
source:            16-bit ints at 11025 Hz
channels:          1 (mono)
duration:          0:00:16.78
modalities:        lossless, extra-3
compression:       43.12%
ave bitrate:       100 kbps
encoder version:   5
original md5:      9bf02d28ae8742ab43f11e217a47a5d5

there's no obvious pattern to the files that fail.

There is a similar problem with *.dsf.wv, which has not been solved for 4 years, 8 months and 10 days.

There is a https://github.com/MediaArea/MediaInfoLib/issues/2008 with *.dsf.wv

Not same, it is due to lack of support of WavPack DSD.

4 years, 8 months and 10 days

Sarcasm does help here. It is mainly because sponsors already complain about delays, we avoid to spend too much time on non sponsored requests when we are already late on the sponsored ones.

Dear @JeromeMartinez, look at this, please.
MediaInfo 24.04 on Windows 7 x64 reports… nothing, but it's actually something.
Source: 8khz.wv.gz

$ mediainfo small.wv

General
Complete name                            : 8khz.wv
File size                                : 232 Bytes

$ wvunpack -s small.wv

 WVUNPACK  Hybrid Lossless Audio Decompressor  Win64 Version 5.7.0
 Copyright (c) 1998 - 2024 David Bryant.  All Rights Reserved.

file name:         8khz.wv
file size:         232 bytes
source:            32-bit floats at 8000 Hz
channels:          1 (mono)
duration:          0:00:01.25
modalities:        lossless, extra-3
compression:       99.42%
ave bitrate:       1 kbps
encoder version:   5
original md5:      a44a9078ff25106c881df02417002355

Here comes another example of missing duration. Time to re-open the issue, huh?
Source: bladerunner.wv.zip
$ mediainfo bladerunner.wv

General
Complete name                            : out.wv
Format                                   : WavPack
File size                                : 2.13 MiB
Overall bit rate mode                    : Variable

Audio
Format                                   : WavPack
Format profile                           : 4.16
Bit rate mode                            : Variable
Channel(s)                               : 2 channels
Bit depth                                : 16 bits
Compression mode                         : Lossless
Stream size                              : 2.13 MiB (100%)
Encoding settings                        : -x6 -m

$ wvunpack -s bladerunner.wv

 WVUNPACK  Hybrid Lossless Audio Decompressor  Win64 Version 5.7.0
 Copyright (c) 1998 - 2024 David Bryant.  All Rights Reserved.

file name:         out.wv
file size:         2230182 bytes
source:            16-bit ints at 384000 Hz
channels:          2 (stereo)
duration:          0:00:04.77
modalities:        lossless, extra-6
compression:       69.54%
ave bitrate:       3743 kbps
encoder version:   5
original md5:      a94cfb9f31587609e89944b3b4c62fee

@JeromeMartinez, I see MediaInfo v24.04.20240425 within dev snapshots.
It can process bladerunner.wv, but cannot process small.wv reported earlier.

but cannot process https://github.com/MediaArea/MediaInfoLib/issues/2005#issuecomment-2070821552 reported earlier.

Fixed, available in snapshots.


Fix breakage from removing WordSplitter.

Caught by the AllenNLP Hub build: http://build.allennlp.org/viewLog.html?buildId=21901&buildTypeId=AllenNLPHub_Master&tab=buildLog
Breakage was introduced in https://github.com/allenai/allennlp/pull/3361. I've jotted this down in the 1.0 release notes.

Do you need to update the AllenNLP commit?

Indeed I do. Thanks! Fixed. I'll bump the version in allennlp-hub too once both of the builds are up and running.


Restore .glyphicon-door and .glyphicon-key in Bootstrap

@mdo, @cvrebert
The .glyphicon-door and .glyphicon-key symbols were temporary disabled in Bootstrap due to their Unicode code points falling outside the BMP (see https://github.com/twbs/bootstrap/issues/15419). Since then both symbols have been reassigned to a BMP in the latest (1.9.2 as of this post) Glyphicons font: to UTF+E207 and UTF+E208 respectively (see http://glyphicons.com/). Can these icons be restored for use in bootstrap now please?

Closing as dupe of #19836.


be able to autofill thread channel id and only delete messages in that thread

checks whether the current channel is a thread or not
if it's a thread then searches using the parent channel id and filters out messages not in the thread when deleting
if it's not a thread then uses the id in the url and deletes like normal

example (ignore debug logs)
https://github.com/victornpb/undiscord/assets/66320961/739507fc-7b13-4d2a-9f4f-7d3c125269fe


Add per-policy metrics to the RBAC filter

Title: Add per-policy metrics to the RBAC filter
Description:
The RBAC filter exposes the effective policy ID through dynamic metadata which can then be logged with access logging, however we would like to expose this as a metric to get per-policy granularity since we sample access logs. The idea would be to add a new set of metrics which get incremented per-policy for both enforced and shadow-enforced rules.
The filter uses http.<stat_prefix>.rbac as its metric namespace already so we'd be adding a new set of metrics, example below:
http.<stat_prefix>.rbac.policy.<policy name>.allowed: 0
http.<stat_prefix>.rbac.policy.<policy name>.denied: 0
http.<stat_prefix>.rbac.<optional shadow_stat_prefix>.policy.<shadow policy name>.shadow_allowed: 0
http.<stat_prefix>.rbac.<optional shadow_stat_prefix>.policy.<shadow policy name>.shadow_denied: 0

I can prepare a patch for this if it sounds reasonable.

cc @yangminzhu @yanavlasov

@alyssawilk could you add no stalebot to this issue? Implementation is ongoing in https://github.com/envoyproxy/envoy/pull/32313


[markdown] make list tokenizer more CommonMark compliant

Basically a rewrite of list tokenization (mostly) to make more (but still not fully) CommonMark compliant. Further improvements in the future (see todos).
improvements

better nested/un-nested list parsing
correctly recognizes numbered-lists' base indentation
should work better with tabs (though no one should use tabs with markdown anyway)

todos (future)

recognize line continuation when there's single EOL and next line is not block markdown
recognize setext header inside lists

notes

removed forceBlankLine hack coz both https://github.com/codemirror/CodeMirror/issues/2813 and https://github.com/codemirror/CodeMirror/commit/4ef6a904c6312a8ca3d7ba1d81c88a78bbcba076 should work out of the box now (+ current algo didn't work well if we didn't cancel tokenization of blank lines)
kept the true/null/false behavior for lists

rebased to latest master and amended

force pushed once again to align with project's styleguide

Thanks for working on this. Merged as 0f8d7593


Bug: Issue with query when asking for address using isDefaultXXX

What are you trying to achieve?
When using CustomerDetails asking for the isDefaultBillingAddress or isDefaultShippingAddress does not properly return a value.
Works with addresses added to the query,
for example: run query CustomerDetails > add isDefaultBillingAddress or isDefaultShippingAddressline > it works.
Errors happens only when querying the address by ID.
Steps to reproduce the problem

Query for the addresses:

query CustomerDetails{
  user(id: "VXNlcjo5Nzg="){
    id
    addresses{
      id
      isDefaultBillingAddress
      isDefaultBillingAddress
    }
  }
}

Response:
{
  "data": {
    "user": {
      "id": "VXNlcjo5Nzg=",
      "addresses": [
        {
          "id": "QWRkcmVzczo2ODIw",
          "isDefaultBillingAddress": true
        },
        {
          "id": "QWRkcmVzczoxMjQxMw==",
          "isDefaultBillingAddress": false
        },
        {
          "id": "QWRkcmVzczoxMjQxNA==",
          "isDefaultBillingAddress": false
        }
      ]
    }
  },
  "extensions": {
    "cost": {
      "requestedQueryCost": 1,
      "maximumAvailable": 50000
    }
  }
}

When trying to get the details of the address:
query UsrAddrs{
  address(id: "QWRkcmVzczo2ODIw"){
    id
    firstName
    lastName
    isDefaultBillingAddress
    isDefaultShippingAddress

  }
}

Null is returned:
{
  "data": {
    "address": null
  },
  "extensions": {
    "cost": {
      "requestedQueryCost": 1,
      "maximumAvailable": 50000
    }
  }
}

What did you expect to happen?
When query asking for address using only address ID, we get the correct address in payload (without having to add isDefaultBillingAddressorisDefaultShippingAddress` lines to the query).
Logs
No response
Environment
Saleor version: core 3.14
LUSH production

I'm having same issue


PERF-#5557: Don't trigger axes computation in pivot_table

Signed-off-by: Anatoly Myachev<EMAIL_ADDRESS>
What do these changes do?

[x] first commit message and PR title follow format outlined here

NOTE:  If you edit the PR title to match this format, you need to add another commit (even if it's empty) or amend your last commit for the CI job that checks the PR title to pick up the new PR title.

[x] passes flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
[x] passes black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
[x] signed commit with git commit -s
[x] Resolves #5557
[x] tests added and passing
[x] module layout described at docs/development/architecture.rst is up-to-date

LGTM but I still want to see some numbers.

Will do.

LGTM but I still want to see some numbers.

@YarShev
Ray - 8 cores. Note: reset_index currently materializes the axes.

Op
master
PR

pivot_table
2.389
0.014

reset_index
0.007
2.344

sequence
2.397
2.359

 Benchmark
from time import time

#import pandas as pd
import modin.pandas as pd
import numpy as np

np.random.seed(1234)
num_rows = 1000000

strings = [f"col{x}" for x in range(100)]
col_A = np.random.choice(strings, num_rows)
col_B = np.random.choice(strings, num_rows)
col_C = np.random.choice(strings, num_rows)
col_D = np.random.randint(10000, size=num_rows)
col_E = np.random.randint(10000, size=num_rows)

df = pd.DataFrame({"A": col_A, "B": col_B, "C": col_C, "D": col_D, "E": col_E})

sequence_start = time()
start = time()
table = pd.pivot_table(df, values='D', index=['A', 'B'],
                    columns=['C'], aggfunc=np.mean)
print(f"pivot_table time: {time()-start}")

start = time()
table.reset_index()
print(f"reset_index time: {time()-start}")
print(f"sequence time: {time()-sequence_start}")


crypto/sha256: improve performance on ppc64le for sha256.block

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
tip
What operating system and processor architecture are you using (go env)?
Ubuntu 16.04
We have an asm version of sha256.block for ppc64le to improve performance.

The assembly implementation was submitted here:
https://go-review.googlesource.com/32318


Use on

That is it, I just replaced lambdas with on combinator

Sorry, I'll close this as I find the lambda more readable 🙂


The value 'GetAll' is not valid.

why get requet error?

curl -i http://localhost:4000/Users/GetAll

{
  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
  "title": "One or more validation errors occurred.",
  "status": 400,
  "traceId": "00-bd9b321b79d117647464826073614c28-a535c7d1c6ce4eb0-00",
  "errors": {
    "id": [
      "The value 'GetAll' is not valid."
    ]
  }
}

You are able to populate your database through the use of Postman, Insomnia, Swagger (whatever tool you'd like) through the use of the http://localhost:4000/Users POST route. Jason provides an example of his thought process in his linked article on his site, take a look.


NDRS-1172: relax minor and patch protocol version validity check

This PR removes the strict expectation that minor and patch versions must always increase by 1, per @Fraser999
https://casperlabs.atlassian.net/browse/NDRS-1172

bors r+


[HOT FIX] Fix broken link to userimpersonation.html

What is this PR for?
https://github.com/apache/zeppelin/pull/1554 added a processenduser.md, but the navigation menu different name on it's link userimpersonation.html
This PR changes filename from processenduser.md to userimpersonation.md.
What type of PR is it?
Hot Fix
Todos

[x] - Change file name

What is the Jira issue?
https://github.com/apache/zeppelin/pull/1554
How should this be tested?
build docs and navigate "Interpreter -> Interpreter User Impersonation"
Screenshots (if appropriate)
Questions:

Does the licenses files need update? no
Is there breaking changes for older versions? no
Does this needs documentation? no

Merge to master as a hotfix.


updating testing files

Pull Request Test Coverage Report for Build 32

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 52.146%

Totals

Change from base Build 31:
0.0%

Covered Lines:
296

Relevant Lines:
481

💛  - Coveralls


Need v prefix?

github.com/elastic/go-elasticsearch/v7 7.16 -> github.com/elastic/go-elasticsearch/v7 v7.16?

@Anaethelion Thanks for the info


Respond with 400 instead of 500 for PreconditionFailed errors

Considering PreconditionFailed is generated by bad input 400 Bad request seems like a good response code
The body is the Exception message

Found this by change so haven't looked into it that much, PreconditionFailed doesn't seem to be raised on policies and exchanges (after a quick search).
Merge this now and if others arise fix them then?


Credentials issue with destination

Hi Jhodel,
i was just externalizing my
package.json
{
  "cds": {
    "requires": {
        "API_SALES_ORDER_SRV": {
                "kind": "odata",
                "model": "srv\\external\\API_SALES_ORDER_SRV",
                "credentials": {
                    "destination": "udina_commerce_shop",
                    "path": "/sap/opu/odata/sap/API_SALES_ORDER_SRV",
                    "requestTimeout": 30000
                }
            }
        }
    }
}

while using a default-env.json to externalize the credentials
default-env.json
{
    "VCAP_SERVICES": {},
    "destinations": [
        {
            "name": "udina_commerce_shop",
            "url": "http://xxx.sap.de:1234",
            "username": "xxx",
            "password": "yyy"
        }
    ]
}

if i am using your
const cdseSrv = await cdse.connect.to('API_SALES_ORDER_SRV');
i got errors
[ERROR] VError: No service matches destination
    at Object.getServices (C:\VSC\@udina\udina.trial\cap\node_modules\sap-cf-destconn\node_modules\@sap\xsenv\lib\xsservices.js:50:15)
    at getService (C:\VSC\@udina\udina.trial\cap\node_modules\sap-cf-destconn\dist\destination.js:120:35)
    at C:\VSC\@udina\udina.trial\cap\node_modules\sap-cf-destconn\dist\destination.js:28:48
    at Generator.next (<anonymous>)
    at C:\VSC\@udina\udina.trial\cap\node_modules\sap-cf-destconn\dist\destination.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (C:\VSC\@udina\udina.trial\cap\node_modules\sap-cf-destconn\dist\destination.js:4:12)
    at readDestination (C:\VSC\@udina\udina.trial\cap\node_modules\sap-cf-destconn\dist\destination.js:27:12)
    at C:\VSC\@udina\udina.trial\cap\node_modules\cdse\index.js:17:4
    at new Promise (<anonymous>)

I think, you currently do not take care of the env destination settings.
Running with inline credentials and commenting "_destination" service is working, but i want to use it the sames way like the productive szenario.
Would be great, if you would support local destinations inside env for local testing.
Also this way is more secure, because default-env.json is ignored by git.
BTW: Very nice implementation for CAP! ;-)
Best Regards
Holger

Hi Holger @hschaefer123
Thanks for raising this issue and providing your findings!
I will look into it and see what I can do to add support for default-env.json.
Cheers,
Jhodel

Hi Holger @hschaefer123
Thanks for raising this issue and providing your findings!
I will look into it and see what I can do to add support for default-env.json.
Cheers,
Jhodel

Hi Holger @hschaefer123
I looked into this today, tested it locally while connecting to SCP Destination. See my answer to the below question:
https://answers.sap.com/questions/13219399/cdse-is-not-working-cdseconnecttonorthwind.html?childToView=13222574#answer-13222574
My guess is that your use case is slightly different -- am I right?
You want to avoid putting the credentials on the CDS configuration (in package.json), is my assumption correct?

Hi Holger @hschaefer123
I looked into this today, tested it locally while connecting to SCP Destination. See my answer to the below question:
https://answers.sap.com/questions/13219399/cdse-is-not-working-cdseconnecttonorthwind.html?childToView=13222574#answer-13222574
My guess is that your use case is slightly different -- am I right?
You want to avoid putting the credentials on the CDS configuration (in package.json), is my assumption correct?

Hi Jhodel,
yes you are right!
I think remotely in CF, everything will work as expected.
Locally, i am trying to figure out some pros/cons for different solutsion!
With the above setup,
cds
const soSrv = await cds.connect.to('API_SALES_ORDER_SRV');

will take care of default-env.json (and maybe also .env) to use local destination configuration (merging cds and env)

cdse
const cdseSrv = await cdse.connect.to('API_SALES_ORDER_SRV');

runs into the above error
i am using cdse, because i need to POST data with X-CRSF-TOKEN (the reason for your package ;-)
i have your code side-by-side to the cds version, so i recognized the different behavior.
would be great, if you can handle it similar to cds.connect

cloud sdk using vdm
const SalesOrder = require('@sap/cloud-sdk-vdm-sales-order-service').SalesOrder
const destination = { destinationName: 'udina_commerce_shop' }
const result = await SalesOrder.requestBuilder().execute(destination)

also works fine without any changes, supporting default-env.json

cap using cloud sdk generic rest client
const { executeHttpRequest } = require('@sap-cloud-sdk/core')
const destination = { destinationName: 'udina_commerce_shop' }
const result = await executeHttpRequest(destination, { method: 'get', url: url, params: params });

also works fine without any changes, supporting default-env.json

BTW: did you also thaught about utilizing the executeHttpRequest?
https://sap.github.io/cloud-sdk/docs/js/features/connectivity/generic-http-client/
Even if this is used for the OData client, in case of native calls, it does not support ETAG and CRSF.
Please let me know, if you need more input.
Best Regards
Holger

Hi Jhodel,
yes you are right!
I think remotely in CF, everything will work as expected.
Locally, i am trying to figure out some pros/cons for different solutsion!
With the above setup,
cds
const soSrv = await cds.connect.to('API_SALES_ORDER_SRV');

will take care of default-env.json (and maybe also .env) to use local destination configuration (merging cds and env)

cdse
const cdseSrv = await cdse.connect.to('API_SALES_ORDER_SRV');

runs into the above error
i am using cdse, because i need to POST data with X-CRSF-TOKEN (the reason for your package ;-)
i have your code side-by-side to the cds version, so i recognized the different behavior.
would be great, if you can handle it similar to cds.connect

cloud sdk using vdm
const SalesOrder = require('@sap/cloud-sdk-vdm-sales-order-service').SalesOrder
const destination = { destinationName: 'udina_commerce_shop' }
const result = await SalesOrder.requestBuilder().execute(destination)

also works fine without any changes, supporting default-env.json

cap using cloud sdk generic rest client
const { executeHttpRequest } = require('@sap-cloud-sdk/core')
const destination = { destinationName: 'udina_commerce_shop' }
const result = await executeHttpRequest(destination, { method: 'get', url: url, params: params });

also works fine without any changes, supporting default-env.json

BTW: did you also thaught about utilizing the executeHttpRequest?
https://sap.github.io/cloud-sdk/docs/js/features/connectivity/generic-http-client/
Even if this is used for the OData client, in case of native calls, it does not support ETAG and CRSF.
Please let me know, if you need more input.
Best Regards
Holger

Hi Holger @hschaefer123
I tried cloud sdk before but there stuff there that I didn't find in sync with CAP -- like:

the means of using cds config in package.json
different way of using the module
Also there are some issue or short comings as well

So your suggestion is to configure the credetials in default-env.json like below:
{
    "VCAP_SERVICES": {},
    "destinations": [
        {
            "name": "udina_commerce_shop",
            "url": "http://xxx.sap.de:1234",
            "username": "xxx",
            "password": "yyy"
        }
    ]
}

I suggest to keep the default-env.json to SAP and use .env file for CDSE instead.
Sample config on package.json:
{
  "cds": {
    "requires": {
        "API_SALES_ORDER_SRV": {
                "kind": "odata",
                "model": "srv\\external\\API_SALES_ORDER_SRV",
                "credentials": {
                    "url": "http://xxx.sap.de:1234",
                    "username": "{{API_USERNAME}}",
                    "password": "{{API_PASSWORD}}"
                }
            }
        }
    }
}

There values in here will get replaced by the one configured on .env file:
                    "username": "{{API_USERNAME}}",
                    "password": "{{API_PASSWORD}}"

Your thoughts?

Hi Holger @hschaefer123
I tried cloud sdk before but there stuff there that I didn't find in sync with CAP -- like:

the means of using cds config in package.json
different way of using the module
Also there are some issue or short comings as well

So your suggestion is to configure the credetials in default-env.json like below:
{
    "VCAP_SERVICES": {},
    "destinations": [
        {
            "name": "udina_commerce_shop",
            "url": "http://xxx.sap.de:1234",
            "username": "xxx",
            "password": "yyy"
        }
    ]
}

I suggest to keep the default-env.json to SAP and use .env file for CDSE instead.
Sample config on package.json:
{
  "cds": {
    "requires": {
        "API_SALES_ORDER_SRV": {
                "kind": "odata",
                "model": "srv\\external\\API_SALES_ORDER_SRV",
                "credentials": {
                    "url": "http://xxx.sap.de:1234",
                    "username": "{{API_USERNAME}}",
                    "password": "{{API_PASSWORD}}"
                }
            }
        }
    }
}

There values in here will get replaced by the one configured on .env file:
                    "username": "{{API_USERNAME}}",
                    "password": "{{API_PASSWORD}}"

Your thoughts?

Hi Jhodel,
that does not help in my case!
I will explain it a little bit more.
The original package/cds contains
packages.json | .cdsrc.json
{
  "cds": {
    "requires": {
        "API_SALES_ORDER_SRV": {
                "kind": "odata",
                "model": "srv\\external\\API_SALES_ORDER_SRV",
                "credentials": {
                    "destination": "udina_commerce_shop",
                    "path": "/sap/opu/odata/sap/API_SALES_ORDER_SRV",
                    "requestTimeout": 30000
                }
            }
        }
    }
}

This will be the productive setting, that will be deployed to CF.
Also the path is relevant, if you want to use the sames destination for SAPCloudSDK and CAP external service.
Inside the credentials will be at least the destination name, and if the destination names is not used, CAP will use
the property name "API_SALES_ORDER_SRV" instead.
Local Testing
I think you formerly also commented it out like "_destination" for local testing, but using it the productive way, you do not have to touch the packages.json for local development.
For local testing, only the node env setting is relevant.
You have two option:

.env (where you have to use a string for the destination
default-env.json (where you can use an json object for the env settings)
injecting env by cmd line

All this kinds are supported by CAP.
I am prefering default-env.json, because the settings can be easily declared as an object.
Also if you will use tremotely destinations, you would copy the VCAP_SERVICES sections directly from CF and then getting the destination services into account (which is not working for onPremise scenarios, so i always have to tunnel it locally using VPN).
default-env.json
{
    "VCAP_SERVICES": {},
    "destinations": [
        {
            "name": "udina_commerce_shop",
            "url": "http://xxx.sap.de:1234",
            "username": "xxx",
            "password": "yyy"
        }
    ]
}

.env
destinations=[{"name":"udina_commerce_shop", "url":"...", ...}]

This is the same behavior, like the @sap/approuter is working

Note: * In case destination with the same name is defined both in environment destination and destination service, the destination configuration will load from the environment. * Destination service available only in Cloud Foundry. * Destinations on destination service instance level are supported.

CAP is just accessing process.env.destinations and merging multiple sources into it.
Would be great, if you would use the same logic chain, like CAP/Destination service:

if (process.env.destinations) is available and target destination is part of it -> directly use it
else try the default chain using destination service (if available) and fetch destination

Anyhow which env injection you prefer, all of them should/can be supported, because you will have them availabe inside process.env.destinations. I think you just need to check if process.env.destinations[targetDestinationName] is defnied and the use it. If not, apply your current logic.
Also default-*.json and .env are part of .gitignore so credentials are safe from beeing committed.
I do not like the recommendation inside CAP docu, because it is not quit clear!
What do you mean?
Best Regards
Holger

Hi Jhodel,
that does not help in my case!
I will explain it a little bit more.
The original package/cds contains
packages.json | .cdsrc.json
{
  "cds": {
    "requires": {
        "API_SALES_ORDER_SRV": {
                "kind": "odata",
                "model": "srv\\external\\API_SALES_ORDER_SRV",
                "credentials": {
                    "destination": "udina_commerce_shop",
                    "path": "/sap/opu/odata/sap/API_SALES_ORDER_SRV",
                    "requestTimeout": 30000
                }
            }
        }
    }
}

This will be the productive setting, that will be deployed to CF.
Also the path is relevant, if you want to use the sames destination for SAPCloudSDK and CAP external service.
Inside the credentials will be at least the destination name, and if the destination names is not used, CAP will use
the property name "API_SALES_ORDER_SRV" instead.
Local Testing
I think you formerly also commented it out like "_destination" for local testing, but using it the productive way, you do not have to touch the packages.json for local development.
For local testing, only the node env setting is relevant.
You have two option:

.env (where you have to use a string for the destination
default-env.json (where you can use an json object for the env settings)
injecting env by cmd line

All this kinds are supported by CAP.
I am prefering default-env.json, because the settings can be easily declared as an object.
Also if you will use tremotely destinations, you would copy the VCAP_SERVICES sections directly from CF and then getting the destination services into account (which is not working for onPremise scenarios, so i always have to tunnel it locally using VPN).
default-env.json
{
    "VCAP_SERVICES": {},
    "destinations": [
        {
            "name": "udina_commerce_shop",
            "url": "http://xxx.sap.de:1234",
            "username": "xxx",
            "password": "yyy"
        }
    ]
}

.env
destinations=[{"name":"udina_commerce_shop", "url":"...", ...}]

This is the same behavior, like the @sap/approuter is working

Note: * In case destination with the same name is defined both in environment destination and destination service, the destination configuration will load from the environment. * Destination service available only in Cloud Foundry. * Destinations on destination service instance level are supported.

CAP is just accessing process.env.destinations and merging multiple sources into it.
Would be great, if you would use the same logic chain, like CAP/Destination service:

if (process.env.destinations) is available and target destination is part of it -> directly use it
else try the default chain using destination service (if available) and fetch destination

Anyhow which env injection you prefer, all of them should/can be supported, because you will have them availabe inside process.env.destinations. I think you just need to check if process.env.destinations[targetDestinationName] is defnied and the use it. If not, apply your current logic.
Also default-*.json and .env are part of .gitignore so credentials are safe from beeing committed.
I do not like the recommendation inside CAP docu, because it is not quit clear!
What do you mean?
Best Regards
Holger

Hi Holger @hschaefer123
I think I get what you mean. However, I don't see from your approach that you attempted to use CAP's concept of configuration profiles. Configuration profiles keeps your local settings separate from your productive setting.
See example below:

If you use this approach then there shouldn't be any problem with using .env file. I'm trying to steer clear from using default-env.json because that approach is trying to mixin with the CF concepts wherein the introduced property destinations is practically a foreign entity.

Hi Holger @hschaefer123
I think I get what you mean. However, I don't see from your approach that you attempted to use CAP's concept of configuration profiles. Configuration profiles keeps your local settings separate from your productive setting.
See example below:

If you use this approach then there shouldn't be any problem with using .env file. I'm trying to steer clear from using default-env.json because that approach is trying to mixin with the CF concepts wherein the introduced property destinations is practically a foreign entity.

Hi,
yes you are right, if your need to handle config different for prd/test, this is the prefered way, but having a look into cap internals
cds-runtime/lib/rest/service.js
const _checkProduction = destination => {
  if (!destination && process.env.NODE_ENV === 'production') {
    throw new Error('In production mode it is required to set `options.destination`')
  }
}

also handles this and later on
if (!this.destination) this.destination = getDestination(this.model, this.datasource, this.options)

I do not do something specific, because this is supported out-of-the-box by cap.
I was just replacing cds.connect with cdse.connect because i think this was the intention from you to use it the same way like in cap, but supporting CSRF tokens. I like this approach very much and it would be great, if you would follow the same getDestination chain like cap.
Generally i am trying using as much as possible from the core, but in this special situation, i see the need for your little nice CDSE project ;-)
The other way around would be the need to extend the orinal CAP to support CSRF for POST like you did.
In my scenario, i do not need to differ between production and local, because cap supports it directly. I just need to hav a different local env to overcome destination and use locally defined one.
But what would be the difference in your upper config?
Just to have the same config, but one config without the destination settings? I still do not want to have my local credential settings inside my packages.json file!
Also i am using the same approach in approuter, see
https://blogs.sap.com/2019/10/24/test-your-cap-nodejs-applications-with-authentication-locally/
and special section running locally.

We have to define this destination for our local environment.
create a default-env.json file in the approuter folder.

{
	"destinations": [
		{
			"name": "srv_api",
			"url": "http://localhost:4004",
			"forwardAuthToken": true,
			"strictSSL": false
		}
	]
}

The reccomendations here are
https://gregorwolf.github.io/SAP-NPM-API-collection/apis/approuter/#configurations

Configurations from the environment - these configurations are either read from the application router's environment (when deployed on Cloud Foundry or XS Advanced OnPremise Runtime) or from the default-env.json file (when running locally). Refer to the documentation of the @sap/xsenv package for more details.

Or the @sap/xsenv see section local usage
https://gregorwolf.github.io/SAP-NPM-API-collection/apis/xsenv/#local-usage

You can provide default configurations on two levels: * For bound services via getServices() and default-services.json * For any environment variable via loadEnv() and default-env.json

But it depends on you, if you will add this compability to sap cap cds.connect.to.
Finally i choosed default-env.json, because it is used most common among libraries (one file fits all ;-)
Best Regards
Holger

Hi,
yes you are right, if your need to handle config different for prd/test, this is the prefered way, but having a look into cap internals
cds-runtime/lib/rest/service.js
const _checkProduction = destination => {
  if (!destination && process.env.NODE_ENV === 'production') {
    throw new Error('In production mode it is required to set `options.destination`')
  }
}

also handles this and later on
if (!this.destination) this.destination = getDestination(this.model, this.datasource, this.options)

I do not do something specific, because this is supported out-of-the-box by cap.
I was just replacing cds.connect with cdse.connect because i think this was the intention from you to use it the same way like in cap, but supporting CSRF tokens. I like this approach very much and it would be great, if you would follow the same getDestination chain like cap.
Generally i am trying using as much as possible from the core, but in this special situation, i see the need for your little nice CDSE project ;-)
The other way around would be the need to extend the orinal CAP to support CSRF for POST like you did.
In my scenario, i do not need to differ between production and local, because cap supports it directly. I just need to hav a different local env to overcome destination and use locally defined one.
But what would be the difference in your upper config?
Just to have the same config, but one config without the destination settings? I still do not want to have my local credential settings inside my packages.json file!
Also i am using the same approach in approuter, see
https://blogs.sap.com/2019/10/24/test-your-cap-nodejs-applications-with-authentication-locally/
and special section running locally.

We have to define this destination for our local environment.
create a default-env.json file in the approuter folder.

{
	"destinations": [
		{
			"name": "srv_api",
			"url": "http://localhost:4004",
			"forwardAuthToken": true,
			"strictSSL": false
		}
	]
}

The reccomendations here are
https://gregorwolf.github.io/SAP-NPM-API-collection/apis/approuter/#configurations

Configurations from the environment - these configurations are either read from the application router's environment (when deployed on Cloud Foundry or XS Advanced OnPremise Runtime) or from the default-env.json file (when running locally). Refer to the documentation of the @sap/xsenv package for more details.

Or the @sap/xsenv see section local usage
https://gregorwolf.github.io/SAP-NPM-API-collection/apis/xsenv/#local-usage

You can provide default configurations on two levels: * For bound services via getServices() and default-services.json * For any environment variable via loadEnv() and default-env.json

But it depends on you, if you will add this compability to sap cap cds.connect.to.
Finally i choosed default-env.json, because it is used most common among libraries (one file fits all ;-)
Best Regards
Holger


Error: Login authentication failed

Hi everyone
i have installed remote-ftp on fedora 25 but in any ftp host i try to connect i get this error. I also get errors if i use any other ftp atom package which makes me think i might be missing a dependency? Filezilla connections work fine. This is a demo config
{
"protocol": "ftp",
"host": "ftp.xxxxxxxxxxxx.eu",
"port": 21,
"user": "xxxxxxxxxxx",
"pass": "xxxxxxxxxxxxxxx",
"promptForPass": false,
"remote": "/",
"local": "",
"secure": false,
"secureOptions": { "rejectUnauthorized": false},
"connTimeout": 10000,
"pasvTimeout": 10000,
"keepalive": 10000,
"watch": [],
"watchTimeout": 500
}
Is there any settings for passive connections like Filezilla is connecting? Username and passwords are tested correct
Any help is appreciated
Thanks
Tolis

Try change pasvTimeout.


Add Ubuntu Jammy CI

🎉 New feature
Part of https://github.com/ignition-tooling/release-tools/issues/566
Summary
Enable CI for Ubuntu 22.04 (Jammy)
Test it
Watch result of new Github Actions Workflow for Jammy
Checklist

[X] Signed all commits for DCO
[ ] Added tests
[ ] Added example and/or tutorial
[ ] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[X] codecheck passed (See contributing)
[X] All tests passed (See test coverage)
[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

This pull request has been mentioned on Gazebo Community. There might be relevant details there:
https://community.gazebosim.org/t/new-ignition-releases-2022-04-13-fortress-edifice/1367/1


improve build procedure

don't need to execute "sh build_version.sh" and "make proto" by yourself
build.sh will exit immediately whenever any error occurs

挂啦~


use coverage from gitlab, fix #525

Very good. I will merge because just Reame.md has been changed.

Just for me to understand: now, when a PR is made on Pinocchio, it is automatically run on gepgitlab to compute the coverage. Is that correct?

Not really. It costs a lot to run coverage on Travis.
So, with @nim65s, we decided to put this part on gitlab from LAAS.
Normally, gitlab is run much often than travis. And the idea should be to run it only for release. Or pre-release should be better.

The coverage badge gives the coverage of the master branch, but on each push to gitlab we can look at the coverage in the CI logs.
I think that if we used gitlab's merge request system instead of github's pull request system, it would show if a MR changes the coverage or not. We will probably check this in other projects soon.


fucntion error

hi there!
I am attempting to add this plugin to my map in Angular, but i keep getting the error "L.Control.FullScreen is not a function"! Any ideas why?
Thank you!

Without a direct access to your page, no.

No answer, closing for now, feel free to comment if you have a link or debug infos to share in order to help you :)


Challenge times outs and crashes my computer, max out 8gb of memory

Describe your problem and how to reproduce it:
problems was solving the while loop, i can't finish typing the answer, the screen will change to a "AWW Snap there was a problem with this page" and at other times it will completely use up all the memory i have, freezing my computer to the point where i have to do a hard reset, restarting the computer.
Add a Link to the page with the problem:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-while-loops
Tell us about your browser and operating system:

Browser Name: google chrome
Browser Version: Google Chrome is up to date
Version 79.0.3945.88 (Official Build) (64-bit)
Operating System: Windows 7 Professional SP1

If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box):
i was able to keep the page on longer by bringing up chrome dev tools this is the picture i was able to snip.

this is just a pic of the "AWW snap" page that pops up.

Please use our forum for debugging the code of your projects.  If the forum members determine there is nothing wrong with your code, you can request this issue to be reopened.  GitHub issues are meant for reporting bugs and not troubleshooting the code in your projects.
Thank you for understanding.


Utilize Karney optimized variant of the Vicenty GPS algorithm

Vincenty is even more precise than Haversine but it has a performance penalty as a trade-off. Howerver Karney proposed an optimized Vincenty version:

https://arxiv.org/pdf/1102.1215
https://stackoverflow.com/questions/38248046/is-the-haversine-formula-or-the-vincentys-formula-better-for-calculating-distan

Gemini Advanced could not give me a Dart implementation, it referred the scientific publication above and the GeographicLib which is mentioned in the publication itself by the author.

The C++ implementation is somewhere here https://github.com/geographiclib/geographiclib
There a Python library as well, it'd be good to find the source code https://geographiclib.sourceforge.io/html/python/

Another scientific publication from Karney: Algorithms for geodesics in Journal of Geodesy

Some more documentation: https://geographiclib.sourceforge.io/doc/triaxial.html#trigeod
And finally here is the Python source code, although I haven't located the interesting parts per se: https://github.com/geographiclib/geographiclib-python

The track are so small that the Earth curvature is not in play. Therefore we use 2D trigonometry to calculate GPS points on the track. The only point when the GPS algorithms (Haversine or Vincenty) come into play when a new TrackDescriptor is established. In that case we need to calculate how much 1 meter means in latitudinal and longitudinal direction. Even in that case the difference will be negligible between the Vincenty and the Karney optimized Vincenty algorithm (and even between Vincenty and the Haversine, as tests prove).
I still tried to simply convert the Python implementation to Dart with GitHub CoPilot, which is free now. I had to wrestle with it to understand it has to migrate the code. Finally when it understood and implemented it, it redacted it before the final display saying it violated some policy because it contains public code. I don't really understand, because the https://github.com/geographiclib/geographiclib-python has MIT license, and my application is open source as well.
So I officially give up on this and won't spend more time without potential gain.
We'll pursue Schwinn x70 related PRs instead.


terminal is not working

Type: Performance Issue
Hi
im unable to run code in  terminal
when i trying to run code terminal is shutting down on itself.
im facing this issue since a month.
VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info

Item
Value

CPUs
11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 x 2419)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabledwebnn: disabled_off

Load (avg)
undefined

Memory (System)
15.77GB (3.54GB free)

Process Argv
--crash-reporter-id 7a2d17da-473d-42f1-acfd-0ab31298bf7a

Screen Reader
no

VM
0%

Process Info
CPU %	Mem MB	   PID	Process
    0	   117	 11168	code main
    0	    90	   444	ptyHost
    2	   103	  3476	window [2] (Issue Reporter)
    0	    88	  3708	fileWatcher [1]
    0	    27	 12236	   crashpad-handler
    0	   181	 21828	   gpu-process
    0	   199	 22588	window [1] (● Untitled-2.py - Untitled (Workspace) - Visual Studio Code)
    0	   112	 23644	shared-process
    0	    42	 24756	   utility-network-service
    0	   182	 25928	extensionHost [1]
    0	     7	  4956	     "c:\Users\Ram chary\.vscode\extensions\ms-python.python-2024.12.3-win32-x64\python-env-tools\bin\pet.exe" server
    0	    11	  9012	       C:\WINDOWS\system32\conhost.exe 0x4
    0	    85	 13028	     "C:\Users\Ram chary\AppData\Local\Programs\Microsoft VS Code\Code.exe" "c:\Users\Ram chary\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=25928
    0	   163	 23064	     electron-nodejs (bundle.js )

Workspace Info
|  Window (● Untitled-2.py - Untitled (Workspace) - Visual Studio Code)
|    Folder (sql vscode): 0 files
|      File types:
|      Conf files:;

Extensions (15)

Extension
Author (truncated)
Version

code-runner
for
0.12.2

gc-excelviewer
Gra
4.2.62

rainbow-csv
mec
3.12.0

debugpy
ms-
2024.11.2024082901

python
ms-
2024.12.3

vscode-pylance
ms-
2024.8.2

jupyter
ms-
2024.7.0

jupyter-keymap
ms-
1.1.2

jupyter-renderers
ms-
1.0.19

vscode-jupyter-cell-tags
ms-
0.1.9

vscode-jupyter-slideshow
ms-
0.1.6

live-server
ms-
0.4.14

remote-explorer
ms-
0.4.3

remote-server
ms-
1.5.2

json
Zai
2.0.2

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
da93g388:31013173
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
newcmakeconfigv2:31071590
impr_priority:31102340
refactort:31108082
pythonrstrctxt:31112756
flightc:31119335
wkspc-onlycs-t:31111718
wkspc-ranged-t:31125599
fje88620:31121564
aajjf12562cf:31125794

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

It looks like your report is missing some important information, See this wiki page for more info on how to report actionable terminal issues.


Fix namespace and logic errrors in statesp.freqresp + unit tests

As pointed out in PR #192, there were some namespace errors in the statesp
module related to checking whether the frequency range as valid for discrete
time systems.  I added a unit test that covered this code (and exposed the
error) and fixed up the namespace problems (as in PR #192).  There was also
a logic error in the way that frequencies were checked and the warning message
referred to the wrong function.

Coverage increased (+0.4%) to 78.328% when pulling 057c5ca322308f4e0918d4767a58955edb9359a9 on murrayrm:fix_ss_fresp_dtime into 601b58152080d89575cc677474ec7714e1a34ee2 on python-control:master.

Coverage increased (+0.4%) to 78.328% when pulling 057c5ca322308f4e0918d4767a58955edb9359a9 on murrayrm:fix_ss_fresp_dtime into 601b58152080d89575cc677474ec7714e1a34ee2 on python-control:master.


Include Important note from Uninstall Azure Arc VM management on 22H2 here.

Article "Uninstall Azure Arc VM management (preview)" for 22H2 is gone from documentation.
This article had an important note which said:
"Back up any running VMs before you uninstall Arc VM management. Uninstallation also removes these VMs."
Although this is not the case for 23H2, make note for 22H2 can avoid confusion and severe impact of data loss to users that are still in process to uninstall Azure Arc VM management on 22H2.

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

ID: 9bc3a83f-58e7-b968-b205-e4bb7c1ff0a4
Version Independent ID: b5b32e37-2d3d-654f-8b36-76192f5a3c68
Content: Azure Arc VM management FAQ
Content Source: azure-stack/hci/manage/azure-arc-vms-faq.yml
Service: azure-stack
Sub-service: azure-stack-hci
GitHub Login: @alkohli
Microsoft Alias: alkohli

@RodriCoto
Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

#please-close


Handle team/triage in lint-teamassignment

What does this PR do?

Handle team/triage label in lint-teamassignment.
Motivation

It is not a real team assignment label, it would cause errors when assigning cards during the release process.
Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided. Except if the qa/skip-qa label, with required either qa/done or qa/no-code-change labels, are applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

/merge


Incompatibility with Optifine

Describe the bug
There is a crash incompatibility with Optifine in the beta.
Note: This bug has not been reconfirmed for a couple months.
To Reproduce [Optional]
Install optifine and the crossroads beta. Open any world.
Additional context [Optional]
Relevant section of crash log:
at net.minecraft.client.renderer.FluidBlockRenderer.func_178268_a(FluidBlockRenderer.java:41) 	at net.minecraft.client.renderer.BlockRendererDispatcher.func_195410_a(BlockRendererDispatcher.java:154) 	at net.minecraft.resources.IResourceManagerReloadListener.lambda$reload$0(IResourceManagerReloadListener.java:16) 	at net.minecraft.resources.IResourceManagerReloadListener$$Lambda$2732/1231160694.run(Unknown Source) 	at java.util.concurrent.CompletableFuture.uniRun(CompletableFuture.java:705) 	at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:687) 	at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442) 	at net.minecraft.resources.AsyncReloader.func_219557_a(SourceFile:71) 	at net.minecraft.resources.AsyncReloader$$Lambda$2856/569731617.run(Unknown Source) 	at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(ThreadTaskExecutor.java:170) 	at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) 	at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(ThreadTaskExecutor.java:135)

Noting that this bug has not been reconfirmed for the MC1.15+ version, which overhauled the rendering.
If someone with a valid forge/optifine instance could test this, this issue could be updated.


The flutter doctor command which auto ran after updating crashed itself

Steps to Reproduce
I haven't used Flutter for a while and I upgraded my Flutter with VSCode extension commands. However I got this:
Now it happens every single time I run flutter doctor. I updated today, 27/05/2022
By the way I have the Visual Studio 2022 Preview version.
Logs

Logs

Flutter 3.0.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision fb57da5f94 (8 days ago) • 2022-05-19 15:50:29 -0700
Engine • revision caaafc5604
Tools • Dart 2.17.1 • DevTools 2.12.2

Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.0.1, on Microsoft Windows [Version 10.0.22621.1], locale tr-TR)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[☠] Visual Studio - develop for Windows (the doctor check crashed)
    X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    X Exception: Bad UTF-8 encoding (U+FFFD; REPLACEMENT CHARACTER) found while decoding string: [
        {
          "instanceId": "108f2885",
          "installDate": "2021-04-03T07:47:45Z",
          "installationName": "VisualStudio/16.11.13+32413.511",
          "installationPath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools",
          "installationVersion": "16.11.32413.511",
          "productId": "Microsoft.VisualStudio.Product.BuildTools",
          "productPath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\Common7\\Tools\\LaunchDevCmd.bat",
          "state":<PHONE_NUMBER>,
          "isComplete": true,
          "isLaunchable": true,
          "isPrerelease": false,
          "isRebootRequired": false,
          "displayName": "Visual Studio Derleme Ara�lar� 2019",
          "description": "Visual Studio Derleme Ara�lar�, MSBuild tabanl� yerel ve y�netilen uygulamalar� Visual Studio IDE kullanman�z gerekmeden derlemenizi sa�lar. Visual C++ derleyicileri ile kitapl�klar�, MFC, ATL ve C++/CLI deste�ini y�kleyebilirsiniz.",
          "channelId": "VisualStudio.16.Release",
          "channelUri": "https://aka.ms/vs/16/release/channel",
          "enginePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\resources\\app\\ServiceHub\\Services\\Microsoft.VisualStudio.Setup.Service",
          "installedChannelUri": "https://aka.ms/vs/16/release/channel",
          "releaseNotes": "https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes-v16.11#16.11.13",
          "thirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=660909",
          "updateDate": "2022-04-22T19:30:16.1088026Z",
          "catalog": {
            "buildBranch": "d16.11",
            "buildVersion": "16.11.32413.511",
            "id": "VisualStudio/16.11.13+32413.511",
            "localBuild": "build-lab",
            "manifestName": "VisualStudio",
            "manifestType": "installer",
            "productDisplayVersion": "16.11.13",
            "productLine": "Dev16",
            "productLineVersion": "2019",
            "productMilestone": "RTW",
            "productMilestoneIsPreRelease": "False",
            "productName": "Visual Studio",
            "productPatchVersion": "13",
            "productPreReleaseMilestoneSuffix": "1.0",
            "productSemanticVersion": "16.11.13+32413.511",
            "requiredEngineVersion": "<IP_ADDRESS>063"
          },
          "properties": {
            "campaignId": "",
            "canceled": "0",
            "channelManifestId": "VisualStudio.16.Release/16.11.13+32413.511",
            "nickname": "2",
            "setupEngineFilePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\setup.exe"
          }
        }
      ]
      .  Doctor found issues in 1 category.

Closing as duplicate of https://github.com/flutter/flutter/issues/102451. For workaround, see https://github.com/flutter/flutter/issues/102451#issuecomment-1136423118


[Tests] ping ipv6 address

Title of this pull request?
Small Description?
Pull Request Checklist:

[ ] Please make sure all jobs pass before requesting a review.
[ ] Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).
[ ] Have you lint your code locally before submission?
[ ] Did you write tests where appropiate?

Related Issue?
Screenshots (if appropriate):

https://github.com/actions/runner-images/issues/668


Use window package

Split the reusable createWindow function out into a separate reusable module. Depend on this but also recommend it's usage over browser-env where possible.

Coverage remained the same at 100.0% when pulling 4275696e22f377e4f236f3726b7be46cb7f32af8 on window into 8e685672ff362801ec8a03933db44e9538aa7f58 on master.

Coverage remained the same at 100.0% when pulling 4275696e22f377e4f236f3726b7be46cb7f32af8 on window into 8e685672ff362801ec8a03933db44e9538aa7f58 on master.

Coverage remained the same at 100.0% when pulling 4275696e22f377e4f236f3726b7be46cb7f32af8 on window into 8e685672ff362801ec8a03933db44e9538aa7f58 on master.

Coverage remained the same at 100.0% when pulling 7b970a2887eacd26e21d80838002eb2d4bd7d5ea on window into 61bade1b37dd6e970cbc8770db8b4d00cf046420 on master.

Coverage remained the same at 100.0% when pulling 198502e58f90a9c9cd12769819f0b493cba5c0c5 on window into 79fbffea896f1420dd46a895cdf48fa314b13ec3 on master.

Coverage remained the same at 100.0% when pulling 01a13de054dfc1d9e5bbd791ea7597109cb341ea on window into 70505e27f873ddeab7e303f7bfdd48427f7a0122 on master.


UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f916' in position 17: character maps to

On Windows, it seems telemetry is causing issues when users try to run rasa init. This has been confirmed on Python 3.7/3.8 as well as Windows 2019 and Windows 2022.
> python -m rasa init --no-prompt

2021-12-23 11:03:06 ERROR    rasa.telemetry  - Failed to initialize telemetry reporting: 'charmap' codec can't encode characters in position 0-81: character maps to <undefined>.Telemetry reporting will be disabled.
Traceback (most recent call last):
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\rasa\telemetry.py", line 155, in _is_telemetry_enabled_in_configuration
    stored_config = rasa_utils.read_global_config_value(
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\rasa\utils\common.py", line 289, in read_global_config_value
    return not_found()
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\rasa\utils\common.py", line 282, in not_found
    raise ValueError(f"Configuration '{name}' key not found.")
ValueError: Configuration 'metrics' key not found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\rasa\telemetry.py", line 199, in initialize_telemetry
    is_enabled_in_configuration = _is_telemetry_enabled_in_configuration()
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\rasa\telemetry.py", line 164, in _is_telemetry_enabled_in_configuration
    success = _write_default_telemetry_configuration()
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\rasa\telemetry.py", line 141, in _write_default_telemetry_configuration
    print_telemetry_reporting_info()
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\rasa\telemetry.py", line 118, in print_telemetry_reporting_info
    print(table.table)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-81: character maps to <undefined>
Traceback (most recent call last):
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\rasa\__main__.py", line 139, in <module>
    main()
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\rasa\__main__.py", line 121, in main
    cmdline_arguments.func(cmdline_arguments)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\rasa\cli\scaffold.py", line 188, in run
    print_success("Welcome to Rasa! \U0001f916\n")
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\rasa\shared\utils\cli.py", line 21, in print_success
    print_color(*args, color=rasa.shared.utils.io.bcolors.OKGREEN)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\rasa\shared\utils\cli.py", line 15, in print_color
    print(output, file=stream)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\colorama\ansitowin32.py", line 41, in write
    self.__convertor.write(text)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\colorama\ansitowin32.py", line 162, in write
    self.write_and_convert(text)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\colorama\ansitowin32.py", line 187, in write_and_convert
    self.write_plain_text(text, cursor, start)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\colorama\ansitowin32.py", line 195, in write_plain_text
    self.wrapped.write(text[start:end])
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f916' in position 17: character maps to <undefined>

You can confirm this issue from the Github Action logs here. In particular it seems part of the issue is caused by \U0001f916 which is the 🤖 robot emoji.

The cronjob has since moved to the core Rasa repository. More recent logs can be found here.


bug: Two call nodes for the same function must have matching resources

Because of the way FuncDefns are handled in extension inference, they have extension sets which will try to be matched with the extensions at their call sites. Meaning that if there are two calls of the same function, the FuncDefn's extensions will be solved to match one of the call nodes, and the other will probably throw an error.
The branch call-bug adds a test case demonstrating the erroneous behaviour.

So I think one possible/suggested solution was to split EdgeKind::Static into EdgeKind::Function (ignored during inference) and EdgeKind::Const (generating Equals constraints), not sure how easy/workable that is tho

Note that a very similar situation exists if I have a Const and two LoadConstants - the two must have the same extensions. However - unlike the case with Call - in the Const case we can work around the problem by adding a Lift node after the LoadConstant (on the Value out-edge, not the Static in-edge).

....but the best way to look at that may be - if we have a good solution for Call then perhaps we can generalize to handle LoadConstant (which is a lot like a 0-args Call) the same way, potentially avoiding the need for Lift nodes after LoadConstant

I believe this was fixed by #1142


Windows installation tests

Changes

Reason for changes

Related tickets

Tests

run pytorch pre-commit tests

Can one of the admins verify this patch?


add unpackbits_window function for memory-constrained microcontrollers #2

This pull request adds a new function, unpackbits_window, which is an alternative to the existing unpackbits function. This new function is designed specifically for microcontrollers with severe memory (RAM) constraints. It allows decompression of only a specified window of output bytes, which can help to minimize memory usage in embedded systems.
The unpackbits_window function takes an additional parameter, destStartByte, which, together with the existing destLimit, forms a window over the output bytes. The function only writes decoded bytes that lie within this window to the destination array. This can be useful in scenarios where only a subset of the decoded data is needed, and the full decompression process would consume too much memory.
The implementation has been designed to minimize memory usage and avoid potential buffer overflows.
Please review the changes and let me know if any modifications are needed.
Secondary change: #include <stdint.h> has been moved to the .h file so my LSP (clangd) is happy.
Both the .h file and stdint.h have include guards so this should be fine.
And thank you for creating this library, it's very, very useful and easy to understand!

Nice catch on simplifying the copyCount math! thanks for the suggestions, I've implemented them, I hope it is acceptable now.

Great, many thanks for contributing this.


Support for arrays of embeddables

In MongoDB, it's common to store an array of objects on a record for one-to-many relationships where the many side is not referenced by any other records. I see that nested embeddables were recently added, but I can't find anything in the docs related to storing an array of embeddables.
Is this possible or a feature that is already planned? If not, what are some ways to handle this with existing features?

Already supported in master, see #1369 and #1496
https://mikro-orm.io/docs/next/embeddables#array-of-embeddables