Update decline to 2.1.0

Updates com.monovore:decline from 1.4.0 to 2.1.0.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.monovore", artifactId = "decline" } ]

labels: library-update, semver-major

Superseded by #415.


Fail gracefully from the new in-browser Mocha test strategy

Goes with https://github.com/learn-co/learn-test/pull/42/commits/a0fb3a882e2c09b957fe10df84f4f8975923586c in https://github.com/learn-co/learn-test/pull/42.

@joshrowley without rescue-ing Interrupt, students will see a double-whammy stack trace like this:

First half is from the learn-co gem and second half is from learn-test.

@joshrowley closing this for now — will bump version in a separate PR, and we can figure out the Interrupt stuff later.


[VR] Scrolling to index is incorrectly align for first effect in dynamic mode

Describe the bug
When calling scrolling to index in initial render the item is not correctly align,
React.useEffect(() => {
  virtualizer.scrollToIndex(500)
}, [virtualizer])

it happens because in dynamic mode position of item can change while elements are mounted. To fix this, we are checking in next tick if the position changed. Overall this should be only enabled for dynamic case, via isDynamicMode condition https://github.com/TanStack/virtual/blob/beta/packages/virtual-core/src/index.ts#L826 and there we only check if we have rendered elements.
This was working as side effect of rendering rows even when we should not, noticed after #603.
Your minimal, reproducible example
https://codesandbox.io/p/sandbox/recursing-kowalevski-dfl62x
Steps to reproduce
No action required.
Expected behavior
Item is correctly align.
How often does this bug happen?
Every time
Screenshots or Videos
.
Platform
macOS, Chrome
tanstack-virtual version
v3.0.0-beta.68
TypeScript version
No response
Additional context
Current workaround wound be to wrap the scrollToIndex with setTimeout
React.useEffect(() => {
  setTimeout(() => {
    virtualizer.scrollToIndex(500)
  }, 0)
}, [virtualizer])

Terms & Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

Hi, is there any estimate on when the issue will be resolved?


Added bundle open alias

bo - alias for bundler plugin to open gem in EDITOR,

@artemk Seems I can't auto-merge this want to re-submit and I'll get it merged in?

this change i pretty straightforward, it will be great if you can add this one line to proper file. thx.


JIl Deserialize issue

When i convert my object Deserialize, it throwing error.
Error: e.MessageObject reference not set to an instance of an object.e.InnerException.
Sample Object:     varObject = JSON.Deserializet<List>((string)HttpContext.Current.Session["Z"]);

Maybe you should do
 JSON.Deserialize<List<string>>((string)HttpContext.Current.Session["Z"]));
instead of
JSON.Deserializet<List>((string)HttpContext.Current.Session["Z"]);

Thanks, But this is not working.
Sample Object: varObject = JSON.Deserializet<List>((string)HttpContext.Current.Session["Z"]);

Thanks.
But this also not working.
Sample Object: varObject = JSON.Deserializet<List>((string)HttpContext.Current.Session["Z"]);

Thansk. but this is also not working.
Sample Object: varObject = JSON.Deserializet<List>((string)HttpContext.Current.Session["Z"]);

Thanks,
My object same as above, what you said.
,

I'm sorry, but this issue doesn't contain enough information to determine what is going wrong. Could you provide the following information?

What is the value of HttpContext.Current.Session["Z"]?
You can view the value in the debugger when the it breaks on the Exception.
What does the type x look like?

The value of HttpContext.Current.Session["Z"] is a list. The List contains list of  objects(type is dashboard). Yes, I can view the value. X is a class name of dashboard.
From: Jan<EMAIL_ADDRESS>Sent: 05 March 2018 20:40
To: kevin-montrose/Jil<EMAIL_ADDRESS>Cc: Durga Prasad Gavara<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [kevin-montrose/Jil] JIl Deserialize issue (#295)
I'm sorry, but this issue doesn't contain enough information to determine what is going wrong. Could you provide the following information?

What is the value of HttpContext.Current.Session["Z"]?
You can view the value in the debugger when the it breaks on the Exception.
What does the type x look like?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/kevin-montrose/Jil/issues/295#issuecomment-370449483, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Acx0Wt-U8Sqv4O7PBLppzDQhxam802qpks5tbVVagaJpZM4SGnxp.


docs: create publish_multiple_os_images_scripted_inputs runbook

PR with documentation for publishing multiple different os images for scripted inputs tests purpose.

:tada: This PR is included in version 4.16.6 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Look into node streams2

Node v0.10 will have a new streams API. We should look into why, and maybe adopt it or parts of it.

A New Streaming API for Node v0.10

Related: #146.

Closed via https://github.com/reactphp/react/issues/146#issuecomment-337250342


SymbolView sync breaks if only one pane is present.

https://user-images.githubusercontent.com/10556585/182612040-73544705-bb81-48a2-94a6-bf91e9efbb22.mov

Closing in favor of: #3326


Change upstream e2e branch

Description: Changed the branch that the upstream e2es are run from, so that they are run from release branches instead of checking out tags. Note that the logic for determining which branch to run works slightly differently for AKS add-on vs the osm-arc PR gate. OSM-Arc cannot use a hardcoded UI variable for the release branch, because PRs that update the chart to different versions (ex from v0.8.4 to v0.9.0) will need to run on a different branch than all the other PRs currently in progress with v0.8.4.

Affected area:

New Functionality      [ ]
Documentation          [ ]
Install                [ ]
Networking             [ ]
Metrics                [ ]
Security               [ ]
Tests                  [ ]
CI System              [X]
Performance            [ ]
Other                  [ ]

Please answer the following questions with yes/no.

Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?

/azp run aks-addon-nightly


adds .less files to static files list

sadly, I found that rule useful.

Thanks, this has been merged.


Swift 4

When will swift 4 be supported?
I'm making an app that need pusher, but its in Swift 4. I get many build errors when is use pusher..

nvm


Implement force close modal warning

When a user force closes a channel, they should first be prompted to verify, as their funds will be time locked.
Use the existing warning modal within the code base that we use for deleting wallets, but just changed copy.
Design can be found here: https://app.zeplin.io/project/5bacdbad33af886d419f1b34/screen/5c3c88e822be21beb3e8c99e

Closed via #1576


set encoding to utf-8 when no encoding is specified when reading/writing to s3

Feature or Bugfix

Bugfix

Detail

set encoding to utf-8 when no encoding is specified when reading/writing to s3
on Windows, using athena.read_sql_query with ctas_approach=False and column names containing special characters fails with an UnicodeDecodeError. When setting the encoding to utf-8 the error is gone.
surfacing pandas_kwargs (or just an encoding argument) all the way up to read_sql_query may not be the best course of action given how utf-8 is widespread nowadays and Athena-own support of other encodings may be lacking and not working as intended. On the other hand, utf-8 can largely be considered the default and this change is unlikely to cause side-effects. I'm happy to discuss this decision though!

Relates

#1156

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-pDO66x4b9gEu
Commit ID: 81350535bd209ad7075c2a0712cc3b1fe42cd322
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-pDO66x4b9gEu
Commit ID: af76f24743fd970e7b8330f9fa3392cd51f713c9
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Missing fail() and fail(msg) for behaviour-based testing

As as well as ok() and equal() on the Qunit API, it would be great to have a fail() and fail(msg) function to immediately fail the test. Most mature test frameworks have such a method (see below for examples). They are useful for asserting based on behaviour (i.e., function should not have been called) rather than based on state (object.xyz must = x).
eventBus.bind("searchFailed", function (results) {
    fail("this should not have been called!");
});

They can also be useful for marking tests that have not been written yet.
test('It should render the search results dialog', function () {
    fail("not implemented yet");
});

Examples in other test frameworks:

NUnit's Assert.Fail(message) - http://www.nunit.org/index.php?p=utilityAsserts&r=2.2.7
JUnit's Assert.fail(message) - : http://www.junit.org/apidocs/org/junit/Assert.html#fail(java.lang.String)
Boost Test's BOOST_FAIL - http://www.boost.org/doc/libs/1_34_1/libs/test/doc/components/test_tools/reference/BOOST_FAIL.html

QUnit's method are mostly aligned with the CommonJS testing module, which doesn't have such a method: http://wiki.commonjs.org/wiki/Unit_Testing/1.0
Personally I don't see the value. For the rare case where testing negative conditions is useful, ok(false, msg); does the trick.

It's syntactical sugar, sure. In the same way ok(value) is syntactic sugar for equal(value, true, msg).
In my opinion the goal of unit testing library authors is not to boil the API down to the absolute most spartan, minimal API possible - it's to make it as easy as possible for users to test their code, i.e. requiring them to call as little code as possible. That's why most other testing frameworks are actually full of convenient methods and overloads. QUnit and CommonJS currently differ in this regard.

@rdingwall QUnit and CommonJS are meant to be used as the basis on which to build your favorite assertion library. See the example under Custom Assert Modules in the linked wiki page.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_d15cd3bf-6468-44ad-a5b6-9b646003ac81/pull/1 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-target_d15cd3bf-6468-44ad-a5b6-9b646003ac81.git

Docs Build status updates of commit bba3fa0:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-RuningBuildFailed] Some unexpected errors happened when running build, please open a ticket in https://aka.ms/SiteHelp and include the error report for our team to troubleshoot

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Add documentation for nuxt-windicss support 🍃

thanks for this PR @ryntab !! - I would keep your eye on https://github.com/fumeapp/tailvue as well - all new development/changes/docs will be going here,


LPC5528 support

I'm going to be getting a Razer viper 8k from a generous donation from Dekanova, and so we can work on support for it, it uses the LPC5528 MCU

Feel free to open a PR adding it to the README.

only reason i didn't at the time was because i was on mobile


workflow error fix

A secret key is required for the GitHub Actions workflow to succeed.
Please add one named API_KEY  like: API_KEY: CHASECK_xxxxxxxxxxxxxxxx

Hi @Yinebeb-01
I think it is better to mention that API_KEY is required in README.

Yes, the API_KEY is required to be configured on config.yaml.
But for the pipeline, if you create a secret on this repository, all pull request will use that, for example on my forked repo, I have create and the pipeline is succeeded.


Add set_motion method to entities

motion <targets> (set|add) value <x> <y> <z>
motion <targets> (set|add) from entity <target> [path] [scale]
motion <targets> (set|add) from storage <target> [path] [scale]
motion <targets> (set|add) from block <x> <y> <z> <path> [scale]
motion <targets> magnitude (set|add) from ...
...
motion <targets> magnitude (set|add|multiply) value <value>
motion <targets> toward block <x> <y> <z> (add|set) none <strength>
motion <targets> toward block <x> <y> <z> (add|set) <scaling> <nearStrength> <farStrength> <nearRadius> <farRadius>
motion <targets> toward entity <targets> add ...
motion <targets> toward entity <target> set ...
...
data modify ... set motion <target> (vector|magnitude|rotation)
data modify ... set motion <player> input (vector|magnitude|rotation)

from will either accept a [float, float, float] or a float, and when applicable, defaults to the Motion key
motion applied to players is simply an influence similar to tnt explosions & knockback. We are not asking for arcane changes to the server-client protocol, it is understood that additional handling (ie. tp corrections) is occasionally needed

(specific mechanics are defined here, credit @ajaxgb)
This command is effectively what the datapack community needs to establish effective control over entity motion, so a parallel to this in Luafy would be excellent.

partially complete ; set/add/multiply methods exist.
will continue to create a "towards block" version

done!


Pangea apply to DAO not working

Steps:
User applies to a new DAO
Expected: User shows in list of applicants
Actual: User does not show in list of applicants.

sample become member transaction

I think it's fixed


SDL2 headers are filled with null bytes since d072761

Describe the bug
Commit https://github.com/NixOS/nixpkgs/commit/d07276113a2a98680777d456dcdc9b24305bb6cf makes some headers in ${pkgs.SDL2.dev}/include/SDL2/ be filled with null bytes and therefore unusable for development.
To Reproduce
Steps to reproduce the behavior:

nix repl
:l https://github.com/nixos/nixpkgs/archive/d07276113a2a98680777d456dcdc9b24305bb6cf.tar.gz
:b SDL2
cat /nix/store/7b02xlaj5wfd2msmlaz6ykgvmlp24cfg-SDL2-2.0.14-dev/include/SDL2/SDL.h

Expected behavior
Every header contains the C code of the SDL API.
Notify maintainers

@cpages
Metadata

system: "x86_64-linux"
host os: Linux 5.10.45, NixOS, 21.05.1268.21b696caf39 (Okapi)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.3.12
channels(kpg): ""
channels(root): "nixos-21.05.1268.21b696caf39"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

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

after checking on a different machine, seems like a disk issue ! closing


Using shins in AWS lambda

Hello!
I have case where we have lot's of different API products, all having their own slate-doc file.
Because all those API's / slate-docs have different maintainers, we are currently experimenting in storing those slate-docs to Contentful, and then generating slate-html when requested. (and obviously caching the result for next requests)
I tried to use AWS Lambda and shins for that, but it failed somewhat miserably because shins tries to modify files under node_modules/shins/* , which is read-only filesystem on lambda.
Some options to fix this came to my mind:

Could shins be modified so it could create it's files to /tmp instead of node_modules/shins dir ?
Could we generate those files during npm install (of our app), and then shins would not try to regenerate files because they exist already ? Or do those files change for every slate-doc ?

I undestand that this may not be very common usecase, but would either of those solutions be acceptable for Shins ? Or perhaps there is a better solution ?
I would of course be willing to create PR for this.
*) It tried to write to atleast /var/task/node_modules/shins/pub/js/shins.js

I think an option to override the default output directory would be useful. It might be time to move to a proper arguments parsing library like 'yargs'. Very happy to work with you on a PR for this.
One other thing worth looking at might be 'shinola' - if you cache everything else (css and js) all that needs to change for each API is the html file.

So I investigated this a bit more, and it seems that inlining CSS, JS and images could be the best solution.  I created PR to show case that.
This way there is no need create new files, and output html will be self containing.
Fonts are still loaded externally, and I don't think that will be easy to change.
But atleast for my use case, fonts are not problematic as we will override lot of CSS anyway..


Uchiwa responsive design

[x] Rebase using the previous prototype
[x] Adapt the sidebar popovers
[x] Adapt the modal windows
[ ] Apply to all views

Prototype:


First passive NPC mechanics

Resolve #58
Features:

NPCs for each room of the game

NPCs random movement

NPC moves are broadcasted only on its room

Only players switching rooms receive the list of NPCs on the new room (unicast)

No collision or interaction yet

Most advanced artificial intelligence I've ever seen


Support for escape sequence in keys at EnvironmentController. Fixes gh-1595

Fix for YAML: Spring Boot Escape sequence not working https://github.com/spring-cloud/spring-cloud-config/issues/1595

Can you please check the build, it is failing

closing due to lack of time to continue work on that


Autofix on TypeScript mapped types with -readonly cause syntax error

Bug Report
I have the following code:
export type Writable<T> = {
  -readonly [K in keyof T]: T[K];
};

ESLint reports "functional/prefer-readonly-type" rule and an option to "--fix" it.
Expected behavior
Autofix should remove -:
export type Writable<T> = {
  readonly [K in keyof T]: T[K];
};

Actual behavior
Autofix creates a syntax error:
export type Writable<T> = { readonly
  -readonly [K in keyof T]: T[K];
};

Steps to reproduce
ESLint config:
{
  // ...
  plugins: [
    // ...
    'functional',
    // ...
  ],
  extends: [
    // ...
    "plugin:functional/external-recommended",
    "plugin:functional/recommended",
    "plugin:functional/no-object-orientation",
    "plugin:functional/no-statements",
    "plugin:functional/no-exceptions",
    "plugin:functional/currying",
    "plugin:functional/stylistic",
    // ...
  ],
// ...
}

Proposed changes
Either disable autofix for -readonly, or hande it properly.
See https://github.com/microsoft/TypeScript/pull/21919

I believe the correct behavior should be for it to not try and auto fix this at all.


When I remove a custom repro the component still in the store

Version of HACS
0.1.0

Describe the bug
When I add a custom integration repro the component is added to the store but when I remove it the component still in the store.

Good idea, I will implement this in the next version.

This has been resolved in https://github.com/custom-components/hacs/releases/tag/0.4.0


Rust 1.81.0 causes SIGABRT in test environment

What version are you using?
v21.6.0
What did you do?
Run the test_auth crate's tests that are in this repo.
What did you expect to see?
Passing tests as occurs on Rust 1.80.0.
What did you see instead?
thread caused non-unwinding panic. aborting.
Caused by:
  process didn't exit successfully: `/Users/leighmcculloch/Code/rs-soroban-sdk/target/debug/deps/soroban_sdk-a1f019b2dff9103a` (signal: 6, SIGABRT: process abort signal)

Fix is at:

https://github.com/stellar/rs-soroban-sdk/pull/1333


--crate-name and #[crate_name] are required to match, but rust_sqlite != sqlite3

Problem:
rust-sqlite wants to be called sqlite3 internally and to find that out we have to parse the Cargo.toml only, see this crates.io index: ru/st/rust-sqlite
{"name":"rust-sqlite","vers":"0.3.0","deps":[{"name":"bitflags","req":"^0.1.0","features":[],"optional":false,"default_features":true,"target":null,"kind":"normal"},{"name":"libc","req":"^0.2.5","features":[],"optional":false,"default_features":true,"target":null,"kind":"normal"},{"name":"enum_primitive","req":"^0.1.0","features":[],"optional":false,"default_features":true,"target":null,"kind":"normal"},{"name":"time","req":"^0.1.5","features":[],"optional":false,"default_features":true,"target":null,"kind":"normal"}],"cksum":"b7bfffcb0c817390ec867e7ee898c13767322ca1f63af7a916c6fc5cb51885d3","features":{},"yanked":false}

rust-sqlite
building
rust-sqlite -  --extern time=/nix/store/1nzxnhzlr7646hq8ijshr657rbqw7872-time/libtime.rlib --extern enum_primitive=/nix/store/404mx6ijxqcmlnxkm5acl1qxkj2mjw5d-enum_primitive/libenum_primitive.rlib --extern libc=/nix/store/jzaw6m5yzmq9nv7sn7iw72p9pyds3nwc-libc/liblibc.rlib --extern bitflags=/nix/store/8ifmqhx605fcg22icq7bl0dijfc4603s-bitflags/libbitflags.rlib
namefix rust_sqlite
4.0K    ./.travis.yml
4.0K    ./src/access/flags.rs
4.0K    ./src/access/mod.rs
12K     ./src/access
28K     ./src/core.rs
16K     ./src/lib.rs
76K     ./src/ffi.rs
8.0K    ./src/types.rs
144K    ./src
4.0K    ./.gitignore
4.0K    ./Cargo.toml
4.0K    ./tests/ex.rs
4.0K    ./tests/typical.rs
4.0K    ./tests/opening.rs
16K     ./tests
4.0K    ./mylibs/liblibc.rlib
4.0K    ./mylibs/libnum_integer.rlib
4.0K    ./mylibs/libenum_primitive.rlib
4.0K    ./mylibs/libnum_traits.rlib
0       ./mylibs/libnum.rlib
4.0K    ./mylibs/libbitflags.rlib
4.0K    ./mylibs/libtime.rlib
4.0K    ./mylibs/libnum_iter.rlib
32K     ./mylibs
4.0K    ./README.md
4.0K    ./LICENSE
216K    .
name rust-sqlite
About to use rustc to compile some lib - rust-sqlite
src/lib.rs:82:1: 82:27 error: --crate-name and #[crate_name] are required to match, but `rust_sqlite` != `sqlite3`
src/lib.rs:82 #![crate_name = "sqlite3"]
              ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/access/mod.rs:18:5: 18:29 error: struct `OpenFlags` is private
src/access/mod.rs:18 use access::flags::OpenFlags;
                         ^~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to 2 previous errors
note: keeping build directory ‘/tmp/nix-build-rust-sqlite.drv-1’
builder for ‘/nix/store/086v04xbkgbs8g7bbnhdxff8h8ax1s43-rust-sqlite.drv’ failed with exit code 101

Should cargo should check for this somehow and not write to crates.io-index if they don't match.

please do this:

rename the directory in the archive
rename this lib to sqlite3
rename all the deps to sqlite3 (these are not many in crates.io)

basically don't use name=sqlite in the Cargo.toml and instead just use the name which is also used in the rust repository

@sjmackenzie hm it looks like you're not invoking Cargo here? Is this a Cargo bug or an internal bug for you?
(note that if Cargo's not being called I'd highly recommend chatting with me in #cargo to figure out how we can do so)

@alexcrichton your observation is correct. we don't use cargo but rather parse the crates.io index directly and derive the dependencies from there.
that said, sqlite3 is the only library which requires the actual toml file being parsed for the name attribute. it would be more consistent if the name of the whole library was adapted instead of wrapping it with this method.
do you think that would be an option?

This is also an issue with xml-rs != xml i suspect `Cargo.toml will
need to be parsed for that too.

The index does not contain enough information to compile crates, so if that's the only input then I'd again highly recommend being able to use Cargo and/or reach out to me on IRC. IIRC there are quite a few crates with different package names and crate names.

hey alex, we're already compiling quite a lot of crates. I'll implement same kind of regression test and do explicit mapping when the crates fail due to this reason.  I'll hop on #cargo shortly, still got a helluva lot of work to complete!

@alexcrichton
have a look at https://github.com/nixcloud/nixcrates which is quite useable already! also thanks for your help!

Ok, well it sounds like this isn't a bug in cargo itself, so I'm going to close, but feel free to reach out to me on IRC!

Thanks Alex! Much appreciated!


A bit of unification in .catalog.category.updateCategory

When we call a product update, we pass the identifier as the first argument, and the data as the second. (this happens in most cases, because the identifier is part of the URL).
When we update the category, we pass one argument that already contains the identifier (readonly in the API).

For more info see https://github.com/kzhang-dsg/bigcommerce-api-client/pull/11


FastAPI support

Using the following application code:
from mangum.platforms.aws.adapter import AWSLambdaAdapter
from fastapi import FastAPI

app = FastAPI()

@app.get("/")
def read_root():
    return {"hello": "world"}

handler = AWSLambdaAdapter(app)

I ran into this error after deploying to AWS:
[ERROR] AttributeError: module 'typing' has no attribute '_ClassVar'
Traceback (most recent call last):
  File "/var/lang/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/var/lang/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/var/task/asgi.py", line 19, in <module>
    from fastapi import FastAPI
  File "/var/task/fastapi/__init__.py", line 5, in <module>
    from .applications import FastAPI
  File "/var/task/fastapi/applications.py", line 3, in <module>
    from fastapi import routing
  File "/var/task/fastapi/routing.py", line 6, in <module>
    from fastapi import params
  File "/var/task/fastapi/params.py", line 4, in <module>
    from pydantic import Schema
  File "/var/task/pydantic/__init__.py", line 2, in <module>
    from .class_validators import validator
  File "/var/task/pydantic/class_validators.py", line 19, in <module>
    @dataclass
  File "/var/task/dataclasses.py", line 958, in dataclass
    return wrap(_cls)
  File "/var/task/dataclasses.py", line 950, in wrap
    return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen)
  File "/var/task/dataclasses.py", line 801, in _process_class
    for name, type in cls_annotations.items()]
  File "/var/task/dataclasses.py", line 801, in <listcomp>
    for name, type in cls_annotations.items()]
  File "/var/task/dataclasses.py", line 659, in _get_field
    if (_is_classvar(a_type, typing)
  File "/var/task/dataclasses.py", line 550, in _is_classvar
    return type(a_type) is typing._ClassVar

Thanks for your work on this @erm ! Sorry for the delay, I had this issue/email in the backlog as I wanted it as a reminder to document mangum inside of FastAPI :smile:
I haven't been able to yet, but hopefully I'll do it soon.

@tiangolo that's great to hear, thanks!
I haven't had a lot of time lately to do much application testing, so it will be really helpful to see some example usage that I can experiment with to refine the adapter implementation and hopefully work out some generic configuration examples to document here as well.

I'm interested in deploying FastAPI inside AWS Lambda.
This issue is the only mention I've found online of from mangum.platforms.aws.adapter import AWSLambdaAdapter.
Where can I find documentation about this adapter?
I found magnum on pypi but that description sounds unrelated to this, and I can't find AWSLambdaAdapter mentioned anywhere in the source code.
Issue #1233 mentions this repo, which appears to no longer exist.
is the magnum project no longer supported?


Fans 100% e não consigo desinstalar

Boa tarde!
Usei o comando pra desisntalar e não funcionou, minhas fans estão em 100%.
Como faço pra remover o comando, usei o indicado aqui mas não deu certo

Hello!
The log you attached it means that simply the script is not installed anymore and nothing is left.
Did you patch autofan following the instructions in the past?
If not, then 10000000% the script is uninstalled and nothing is affecting your fans, except settings that you might have set in HiveOs.
If you patched in the past autofan module with the instructions in the README, then during uninstallation, the autofan module is reverted back to the original version, so it should be ok.

Can you tell me more about your fans running at 100%?
Do you have autofan enabled?
If yes, can you show your settings and temperatures?
What's the HiveOS version you are running?

Segue o resultado do comando indicado:

Hello!
This confirms that you are on the latest release of autofan and that my script is completely removed from your system.
If fans stay 100%, try to increase your target and mem temperatures, as they might be too low and HiveOS tries to keep the temperatures as low as possible by setting the fans to 100%!


Use system property to detect if root is running the program

Motivation:
We forked a new process to detect if the program is run by root. We should better just use user.name system property
Modifications:

Change PlatformDependent.isRoot0() to read the user.name system property to detect if root runs the program
Directly init IS_ROOT in the static block

Result:
Less heavy way to detect if the program is run by root.

Cherry-picked into 4.1 (9ade81ab5b56fcd0574688dd899dc7c07685caf7) and 4.0 (242c040)


Build & deploy manylinux binary distributions

fix #8

@MRoci did you try the new wheel building code?

The only untested is the semantic for docker on travis

Good to merge?

yup

Can this be merged please?


amax fails with negative numbers

xt::amax fails when given negative numbers. Here's a failing test (using xtensor-0.20.4:)
        xt::xarray<double> a{ -10.0 };
        xt::xarray<double> res = xt::amax(a);
        Assert::AreEqual(-10.0, res[0]);

The assert fails with this message:
Message: Assert failed. Expected:<-10> Actual:<2.22507e-308>

Hi
I took some time to look into this issue and was able to reproduce the error. I looked a little deeper into the code and found the cause which exists in amax function in xmath.hpp:
XTENSOR_REDUCER_FUNCTION(amax, math::maximum, typename std::decay_t<E>::value_type,
                         std::numeric_limits<xvalue_type_t<std::decay_t<E>>>::min())

The problem is the std::numeric_limits min() function which resolves to different values in the limits.h file. In particular, for non-floating point types (int, short, long ect.) the value is the minimum value for the type. However, for floating point types (double, float ect) the min() function returns the minimum positive value rather than the minimum value.
The solution to this problem is straightforward. Change the min function to lowest which will return the expected value for all types:
XTENSOR_REDUCER_FUNCTION(amax, math::maximum, typename std::decay_t<E>::value_type,
                         std::numeric_limits<xvalue_type_t<std::decay_t<E>>>::lowest())

Thanks. One of my colleagues arrived at the same conclusion.

Nice!  Thank you @gsh50 for posting and @ts273 for looking into the root cause and fix.

I looked to see if the same mistake may have been made else where in xtensor. I found some code that looks suspicious in xmath.hpp in minmax().
    auto init_func = []() {
        return result_type{std::numeric_limits<value_type>::max(), std::numeric_limits<value_type>::min()};
    };

I am wondering if the min() here should also be lowest()?
I don't have a test case to prove it's wrong, but I though it could be quickly looked at.

@gsh50 @ts273 @SoundDev
Thanks for reporting and identifying! #1533 should fix it.


Terminal WINNAME

Please describe the bug
Not sure if it's a bug or it is like this by design, but using Xephyr terminals WINNAME is reporting the shell name, instead of application name.
Tested with Kitty and Alacritty, but it always shows ¨fish /path/"
Screenshots

How are you launching the fish terminal? Is it your default as set or a ~/.bashrc launch?
Generally, the window name should be what the window reports to Xorg as its' name.

(kitty)

XCBProps.cpp@L65
std::string getWindowName(uint64_t window) {
    PROP(name_cookie, HYPRATOMS["_NET_WM_NAME"], 128);

    if (!name_cookiereply)
        return "Error";

    const int len = xcb_get_property_value_length(name_cookiereply);
    char* name = strndup((const char*)xcb_get_property_value(name_cookiereply), len);
    std::string stringname(name);
    free(name);

    free(name_cookiereply);

    return stringname;
}

not using bash, but fish as main shell.
❯ echo $SHELL
/usr/bin/fish

Terminals are executed with bindings
# keybinds
bind=SUPER,K,exec,kitty
bind=SUPER,RETURN,exec,alacritty

But at this point I guess this is the expected behavior, because the WINNAME changes in   when I execute for example htop or anything else keeping the terminal busy.
I was expecing to see the name of the terminal, but instead it looks like it is mean for the name of the process running inside the terminal. If nothing is running, that´s the shell. In my case fish.

I was expecing to see the name of the terminal, but instead it looks like it is meant for the name of the process running inside the terminal. If nothing is running, that´s the shell. In my case fish.

It all relies on the terminal code. What it reports to Xorg, I can use. What it doesn't, I can't really. I use zsh and cannot reproduce this with zsh.

Interesting, switching to bash I get this

Probably zsh and bash update the title regularly and fish doesn't. You can blame that on fish, I guess.
Report back if you find anything to fix this on fish so that others who come across this can fix this, maybe there is a config option or something.

According to your code and checking with xprop this seems to be the default _NET_VM_NAME value running fish
_NET_WM_NAME(UTF8_STRING) = "fish /home/david"
WM_NAME(STRING) = "fish /home/david"

I guess I was expecting to see the VM_CLASS value in the bar
WM_CLASS(STRING) = "Alacritty", "Alacritty"

I could make it use WM_CLASS, but then the titles wouldn't update with the content.
e.g.:
Firefox right now shows the tab title.
With the WM_CLASS, it would show

"Firefox"

Yeah I understand your point :)
An additional VM_CLASS might come handy anyway

I can add a percent token for the winclass, I already have a method to get that, sure.

I don´t remember which other VM (qtile or awesome) uses that class to define applications that are always in floating mode.
Anyway I will end this here, it is clearly not a bug :)


How to use rc.conf in rnvimr?

Hi everyone. I am using rnvimr in neovim on macOS. I have change my ranger keymapping in .config/ranger/rc.conf, but in rnvimr, all the modified keys become invalid. So I want to know how I can config to use the configuration in  .config/ranger/rc.conf, I have add let g:rnvimr_urc_path = '$XDG_CONFIG_HOME/ranger in nvim/init.vim, but it doesn't work.

install ranger via pip3. try minimal configuration will work.

Yes, it works. Really thanks for your reply :)


Configure the merge queue via a ruleset

Rebased and resolved conflicts.

Will self-merge as this was approved and didn't have any changes, just resolving conflicts.


Use an existing Terraform Cloud configuration

Description

Users using TFC already have credentials stored in the credentials.tfrc.json file

We should read the credential file ~/.terraform.d/credentials.tfrc.json from the tfcloud backend reader, if the opts.TFCloudToken is empty. Do not use terraform internals but instead read the file manually.
❯  cat ~/.terraform.d/credentials.tfrc.json
{
  "credentials": {
    "app.terraform.io": {
      "token": "lalala.atlasv1.abcdefgh"
    }
  }
}

I remember we discussed about this while introducing tfcloud support months ago https://github.com/cloudskiff/driftctl/pull/458#issuecomment-827572582

Note for @sjourdan, this one need to be tested on windows too

LGTM!
without any environment variable:
❯  LOG_LEVEL=error CLOUDSDK_CORE_PROJECT=driftctl-sj-tests GOOGLE_APPLICATION_CREDENTIALS=keys/driftctl.json driftctl-0.15-pre scan --from tfstate+tfcloud://ws-UPffzkPM25B449NH --to gcp+tf --tf-provider-version 3.82.0 --output console:// --output html://report2.html --deep
Found resources not covered by IaC:
  google_storage_bucket:
    -<PHONE_NUMBER>64683
    - driftctl-b13bskw4rxwiqgyw
    - driftctl-qa-bucket-manual-1
    - manual_bucket_in_europe
Found changed resources:
  From tfstate+tfcloud://ws-UPffzkPM25B449NH
    - driftctl-pw77ai3raxkupa9s (google_storage_bucket.simple):
        + labels: <nil> => {
  kevin: "true"
}
Found 5 resource(s)
 - 20% coverage
 - 1 resource(s) managed by terraform
     - 1/1 resource(s) out of sync with Terraform state
 - 4 resource(s) not managed by Terraform
 - 0 resource(s) found in a Terraform state but missing on the cloud provider
Scan duration: 2s
Provider version used to scan: 3.82.0. Use --tf-provider-version to use another version.

Hint: use gen-driftignore command to generate a .driftignore file based on your drifts

Sounds good in the HTML report too with a drift in deep mode:

With a deliberately not available credentials file, the error message is ok:
❯  ls -al ~/.terraform.d/credentials.tfrc.json
----------. 1 sjourdan sjourdan 166 May  7 14:26 /home/sjourdan/.terraform.d/credentials.tfrc.json

~/.../20210903-0.15.0/tfcloud-780
❯  LOG_LEVEL=error CLOUDSDK_CORE_PROJECT=driftctl-sj-tests GOOGLE_APPLICATION_CREDENTIALS=keys/driftctl.json driftctl-0.15-pre scan --from tfstate+tfcloud://ws-UPffzkPM25B449NH --to gcp+tf --tf-provider-version 3.82.0 --output console:// --output html://report2.html --deep
Failed to read state file: The state file could not be read: open /home/sjourdan/.terraform.d/credentials.tfrc.json: permission denied

Also testing again with a bad key, it works well too:
Failed to read state file: The state file could not be read: error requesting terraform cloud backend state: status code: 401

Let me confirm Windows compliance later.

windows compliance confirmed. LGTM


Player does not work properly in chrome

The little radio icon shows up in the top corner like it should, however it disappears promptly after.
The radio station player works fine for the most part, but when trying to play individual songs, all songs tested worked in:

Edge
Firefox Aurora
Safari on iOS 10

And are:
128 Kbps MP3 files
No other file types were tested with this.

radio.js:56 Stream Suspended
radio.js:62 Error: Media URL could not be loaded. - Check media URL is valid.

This is an issue with Chrome 53 Closing because 54 and newer do not exhibit this problem. I'll go bug the Vivaldi people


Convert ManualMainFilesProvider and BSMDelegate to be actors

issue: https://github.com/apple/sourcekit-lsp/issues/868

Convert ManualMainFilesProvider to be an actor
Remove an unused queue from BSMDelegate

@swift-ci Please test


When trying to instantiate AHRS class in latest update, compilation fails

When compiling code using the latest release of the library, compilation fails. Here is the error log:
https://pastebin.com/raw/2tCRsZAr
In the FRC Discord, @calcmogul and I were talking and it seems that the const-ness of those function is incorrect.
'> They got the constness of those functions wrong so it didn't override the pure virtual functions. Using override would have caught this and thrown a compiler error during library build.
@calcmogul#3301 '

Thanks for catching this; the diagnosis re: constness was exactly correct - the override keyword was added to the overridden Gyro interface methods in AHRS.h to help the compiler catch it.  It's resolved in v. 3.1.409.  Update your vendordeps if using online installation, or download and run the latest installer to get that.


Removes the need to put Wait 1 Frame commands in a number of cases
More verbose logging in cases where a block cannot be called as it is already running, which seemed to cause the initial confusion in the linked thread.

To test this out, I opened the Enter Name example, selected the End Edit block and changed the Call command to use Stop the Call mode. The command executes ok, but it seems to trigger the 'ReadText cannot be called/executed, it is already running.' warning, which doesn't sound correct?

I should have been clearer, it doesn't Stop the called block from running, it stops the caller from 'running' before making call.
In cases where we have block A and B, where A is going to call B,
The existing Stop method puts the Caller into a state where the next time it is ticked it will move into the idle, not running, state. This behaves like we would expect from a call stack, kinda. We get something akin to;
A Calls B
  B Runs all non waiting commands
A StopsParentBlock, putting its index to max int

//next tick
A Completes, returns to idle

The new StopThenCall method finalises and puts the Caller into the idle, not running, state before B is called. This behaves vaguely like a tail call optimisation (a bit of a stretch, I know). We get something akin to;
A StopsParentBlock and Completes, returns to idle
A Calls B
  B Runs all non waiting commands

In the case of Enter Name, if you click the OK button (rather than hitting enter), both the block with the Button hooked up as its event and the block with the End Edit hooked up fire. A block cannot be executed while it is already running, previously this was silently eaten, now there is a log to help assist in cases where the call is desired and known to be hit but not behaving as desired.

Ok, looks good


[WiP] UP-4830: Decompose sources in uportal-war into Gradle-based submodules

https://issues.jasig.org/browse/UP-4830

Checklist

[x] the individual contributor license agreement is signed
[x] commit message follows commit guidelines

Description of change

See plan for uP5

Coverage increased (+0.006%) to 23.255% when pulling 5875941da75bbd9b726f034316f1cce6018ba379 on drewwills:UP-4830 into 144db56f021fdbb40b736a4fbb9f7225375f55fc on Jasig:master.

Coverage decreased (-0.3%) to 22.948% when pulling b4b34ab4be56125d90c643908d95aad86d31fea5 on drewwills:UP-4830 into 144db56f021fdbb40b736a4fbb9f7225375f55fc on Jasig:master.

Coverage decreased (-0.4%) to 22.865% when pulling 5f0ee7e48957ffc6565463d9d5e02508f09581e3 on drewwills:UP-4830 into 144db56f021fdbb40b736a4fbb9f7225375f55fc on Jasig:master.

Coverage decreased (-0.4%) to 22.865% when pulling 8dbdd92f15da42562459c253f5332efb1392e954 on drewwills:UP-4830 into 31a68413d0d99518050982f9944c2695cf43e348 on Jasig:master.

This work has been ready for a while, but is starting to pick up merge conflicts as it sits here.
I'm going to merge this much of it, even though there's more of it coming.


Make POSTHUMAN $PHMN Verified

Description
Make POSTHUMAN $PHMN Verified
See checklist in another PR
closes https://github.com/osmosis-labs/assetlists/pull/1588

Thank you. Btw I add required info into juno as well https://github.com/cosmos/chain-registry/pull/4715

Hahaha, missed that this was you as well :)

Yep, by now PHMN is verified on Osmosis Zone


Enable Canister Backtraces

See discussion https://forum.dfinity.org/t/canister-backtraces/35298/8
Flag to enable is canister_backtrace. See https://github.com/dfinity/ic/blob/01ad1fef9d8a9e4a7fe3652b83ba63c77f5b01ad/rs/config/src/embedders.rs#L112

Nothing to do, ic-starter enables it per default.
https://forum.dfinity.org/t/canister-backtraces/35298/19?u=peterparker


support for accessing non-zig files

Hi,
I'm experimenting with gyro for my zig-sqlite package.
Users of the package have two options for the C sqlite library:

use the system library
use the bundled C source file

With submodules the user can simply use the bundled file like this:
const sqlite = b.addStaticLibrary("sqlite", null);
sqlite.addCSourceFile("third_party/zig-sqlite/sqlite3.c", &[_][]const u8{"-std=c99"});
sqlite.linkLibC();

exe.linkLibC();
exe.linkLibrary(sqlite);
exe.addPackage(.{ .name = "sqlite", .path = "third_party/zig-sqlite/sqlite.zig" });

but with gyro accessing that C file is not that simple, I managed to make it work by doing this:
const pkgs = @import("gyro").pkgs;

const sqlite_source_file = blk: {
    const dir = std.fs.path.dirname(pkgs.sqlite.path).?;
    break :blk dir ++ "/sqlite3.c";
};

pub fn build(b: *Builder) void {
    const sqlite = b.addStaticLibrary("sqlite", null);
    sqlite.addCSourceFile(sqlite_source_file, &[_][]const u8{"-std=c99"});
    sqlite.linkLibC();
    sqlite.setTarget(target);
    sqlite.setBuildMode(mode);

    exe.linkLibC();
    exe.linkLibrary(sqlite);
}

it's not that bad but it would be cool if there was a way to easily access files from the package directory.

My plan for C libraries is to implement all the tooling we need in user space wrt the package manager. So a project using sqlite would have your bindings as a dependency, and some sqlite_builder package as a build dependency. This builder would give the user some nice interface for building, fetch source if needed, and run whatever build tool is required.

My plan for C libraries is to implement all the tooling we need in user space wrt the package manager. So a project using sqlite would have your bindings as a dependency, and some sqlite_builder package as a build dependency. This builder would give the user some nice interface for building, fetch source if needed, and run whatever build tool is required.

Ok, good to know. Looking forward to trying it out when it's ready.

Ok, good to know. Looking forward to trying it out when it's ready.


Clicking Bug

OS
macOS 15.0 (Build 24A335)
LinearMouse
v0.10.0
Describe the bug
On outlook.com, it's treating my left click as if I'm holding it down.
To reproduce
No response
Expected behavior
It should register as a simple left click.
Anything else?
No response

I cannot confirm this issue. Left-clicking works as expected in Microsoft Outlook (ARM-native).


First pull request as translator

See commit messages.

I don't understand what's wrong with my commits. I don't get the error that is being shown by the CI

Now, I don't get why it worked. But I should be happy it did, right ?

Oh and I signed the CLA, so my pull request is good to be merged !

Hello, @Kavignon! Thank you for contributing. Could you open a pull request with only the changes to the French file? Because you did some changes that you are also committing.

@Imperadeiro98 How can I do that ? How can I excluded elements that were already commited ?

You can create a new branch from master and apply only the changes you want to it.


npm version out of date

Hi,
The current npm version is 4.15.35. I'm attempting to avoid adding bower as a dependency exclusively for the datepicker.
Thanks for your hard work!

+1

+1

+1

👍

👍
Please publish new tag 4.17.37 on npm!
Thanks

👍

+1

Temporary fix, just add to your package.json:
"dependencies": {
    ....
    "eonasdan-bootstrap-datetimepicker": "git://github.com/Eonasdan/bootstrap-datetimepicker.git#4.17.37",
    ....
}

Then, npm install

It's ok, but I do not like the workaround! 😄

Still not updated as of current.

@Eonasdan Pretty Please bump the NPM version to 4.17.37! Thanks 😺

This can be closed.


Click handler for x grid lines

Is there any way to add a click handler for either x or y grid lines? Trying to display some information when user clicks on a grid line. Any pointers?
thanks!

@pchaganti, is not perfect solution, but you can set additional event handler for optional grid elements.
// if c3 is geneated with grid options as below
grid: {
        x: { lines: [ ... ] },
        y: { lines: [ ... ] }
}

// then you can set additional event handler for grids
d3.select(".c3-grid-lines")
	.on("click", function() {
		var event = d3.event;
		var el = event.target;

		if(el.tagName === "line") {
			// do something here
			console.log("clicked a grid line");
		}
	});

Isn't perfect, because in some area the grid element and user clicked element can have interferences.
Just only take above example to start your needs.

@netil That works very well. Thx!


[Checkbox] WIP Allow intuitive detection of checkbox checked state

Hi,
Related to https://github.com/mui-org/material-ui/issues/12507 and https://github.com/facebook/react/issues/7051.
To sum it up flawed DOM API makes it impossible to write correct e2e and unit tests for checkbox clicking. The input of type checkbox provides absolutely no mean to tell whether it is checked or not.
Using checked attribute might prove a bad idea, but what about aria-checked? According to the best practices of role checkbox from Mozilla:
"The developer is required to change the value of the aria-checked attribute dynamically when the checkbox is activated."
I provide only a failing test (did not even run it at this point) showing the idea. Happy to add implementation if the idea is accepted.

[ ] I have followed (at least) the PR section of the contributing guide.

Tried that but it did not seem to pass in my Cypress test. I am not 100% sure what happens, but basically I can't find a way to have it to wait for the prop to change.
The checkbox seems to be checked before the prop itself is changed.
With React Testing Library, as far as I understand you are not supposed to test React props.
Your answer seems to use chai-react. It sounds like an anti-pattern to me when testing pure UI, you should not need to test props to validate a visual feature.

Also isn't supporting aria state as much possible a good practice?

With React Testing Library, as far as I understand you are not supposed to test React props.

to.have.property is used on the actual HTMLInputElement not a react component. This test would work with any UI framework.


Feature/add classes

In this Milestone

The person.rb, student.rb, and teacher.rb files were added to the project.
The person, student, and teacher classes were added to the files above.
Student and Teacher classes inherited the base class Person.
Class instance and constructor were added to each class.
Methods that can be accessed publicly were added to each class.
Private method was added to the person class.

Thank you @Reem-lab


Translate executable with separate monoid

Interestingly enough, the example below doesn't work if I run a compiled binary:
 $ ./dist/build/translate/translate examples/celement-concept-concat.hs
.model out
Segmentation fault (core dumped)

The same happens with the simulate executable. This must have something to do with hint.
This very reason keeps me from being able to reuse all the concept loading code between the two executables. If that code is not in the file given to runghc, it crashes. Haven't found a way around it yet.
 $ runghc translate/Main.hs examples/celement-concept-concat.hs
.model out
.outputs A B C
.graph
A0 A+
A+ A1
A1 A-
A- A0
B0 B+
B+ B1
B1 B-
B- B0
C0 C+
C+ C1
C1 C-
C- C0
A1 C+
C+ A1
A0 C-
C- A0
B1 C+
C+ B1
B0 C-
C- B0
C1 A-
A- C1
C0 A+
A+ C0
C1 B-
B- C1
C0 B+
B+ C0
.marking {A0 B0 C0}
.end

@snowleopard feel free to propose a better file structure or module naming for all of this. I just went with the first thing that came to mind.

@mvdan Thanks, this is a good start.
I'd like to have a Haskell datatype corresponding to an STG, something like:
-- An STG transition comprising the signal a, the direction, and the occurrence number
data StgTransition a = StgTransition a Bool Int

-- Here a and b stand for the types of singnals and places
data Stg a b = Stg
    { stgName :: String -- corresponds to .model field in .g files
    , stgInputs :: [a]
    , stgOutputs :: [a]
    , stgInternal :: [a]
    , stgPlaces :: [b] -- there is no such field in .g files, but I think it's good to have it
    , stgProducingArcs :: [(StgTransition a, b)] -- arcs t -> p
    , stgConsumingArcs :: [(StgTransition a, b)] -- arcs t <- p
    , stgReadArcs :: [(StgTransition a, b)] -- arcs t <-> p
    , stgInitialMarking :: [b] }

And then it would be great to have a pure function toStg which does the conversion:
-- Our current translation uses places of type (a, Bool)
toStg :: CircuitConcept a -> String -> STG a (a, Bool)
toStg concept modelName = ...

Actual printing of an STG should be done separately:
printDotG :: (Show a, Show b) => Stg a b -> String
printDotG = ...

I think this makes the API clean and reusable. Is this possible?

I just had a chat with @danilovesky and he suggested a lot of improvements to the above datatype. Briefly, it is better to model STGs as extensions of Petri Nets with specially labelled transitions. This could be done either by having data Stg a b = Stg { stgPetriNet :: PetriNet a b, ... } so it is possible to reuse the definition of PetriNet's, or via type classes class PetriNet a b => Stg a b where ... in which case it is also possible to apply functions operating on Petri Nets to STGs.
Hopefully, @danilovesky will provide a draft idea for how to structure the datatypes and/or classes :-)

I was thinking about something like this (excuse errors as Haskell is not my first language):
data Petri p t = Petri
    { name :: String
    , places :: [p]
    , transitions :: [t]
    , producingArcs :: [(t, p)]
    , consumingArcs :: [(p, t)]
    , readArcs :: [(p, t)]
    , initialMarking :: [p] }

data Stg p t a = Stg
    { petri :: Petri p t
    , inputs :: [a]
    , outputs :: [a]
    , internal :: [a],
    , label :: t -> (a, Bool) }

Thanks @danilovesky! I agree, this is better. Let me do another revision.
-- I dropped the name field, as it feels a bit awkward in this nice mathematical definition
data PetriNet p t = PetriNet
    { places        :: [(p, Int)] -- To support unsafe nets & avoid incorrect initialMarking
    , transitions   :: [t]
    , producingArcs :: [(p, t)] -- I flipped p and t, I think it is likely to simplify coding
    , consumingArcs :: [(p, t)]
    , readArcs      :: [(p, t)] }

-- In general STGs may have t+, t- and t~ transitions
data SignalChange = Rise | Fall | Flip

-- STG signal types
data SignalType = Input | Output | Internal

-- Here s stands for signals
data Stg p t s = Stg
    { petriNet  :: PetriNet p t
    , label     :: t -> Maybe (s, SignalChange) -- We need Maybe to support dummy transitions
    , interface :: s -> SignalType }

We could also define the following intermediate datatype, which is a well-known mathematical object:
-- Here a stands for alphabet (of labels)
data LabelledPetriNet p t a = LabelledPetriNet
    { petriNet :: PetriNet p t
    , label    :: t -> a }

-- Then we could define STGs via LabelledPetriNet:
data Stg p t s = Stg
    { labelledPetriNet :: LabelledPetriNet p t (Maybe (s, SignalChange))
    , interface        :: s -> SignalType }

With Stg p t s datatype, @mvdan's algorithm should essentially correspond to:
-- Places are (s, Bool): signal and it's value
-- Transitions are also (s, Bool): signals and directions (True ~ Rise, False ~ Fall)
toStg :: CircuitConcept s -> Stg (s, Bool) (s, Bool) s
toStg concept = ...

A couple of questions off the top of my head:

What is the Int here for, exactly? If it's for the initial markings, I assume you want to use this instead of Bool for some particular reason?

    { places        :: [(p, Int)] -- To support unsafe nets & avoid incorrect initialMarking

Why do we have transitions in the petri net and only classify them as Dummy/Rise/Fall/Flip at the STG level? Is this because petri nets have no such thing?

As for the work itself, I can either continue working on it and pushing commits here or do it in a separate MR if you'd prefer this merged first. Either way, the work will be on commits on top of the existing ones since otherwise it would be a lot of new code in a single commit.

Also, the way that arcs are defined at the moment allows for duplicates. Is that OK in petri nets? If not, perhaps we would want to forbid it somehow, with something like a map or function? For example, we do forbid duplicate signal types with interface :: s -> SignalType instead of something like interface :: [(s, SignalType)].

What is the Int here for, exactly? If it's for the initial markings, I assume you want to use this instead of Bool for some particular reason?

Yes, and the reason is that PNs and STGs can have more than 1 token in a place. PNs/STGs with at most 1 token per place at any time are called safe.

Why do we have transitions in the petri net and only classify them as Dummy/Rise/Fall/Flip at the STG level? Is this because petri nets have no such thing?

So here is the hierarchy:

PNs have no labels associated with transitions. They only have unique names and that's it.
Labelled PNs have labels associated with transitions. These labels vary depending on particular applications, e.g. STGs have labels corresponding to signal changes.
STGs have the notion of signals and signal types, and have labels corresponding to changes of these signals, as well as dummy labels, which have no observable effect on signals.

Note, the .g format supports all these features of STGs, so if we do export STGs to .g files we better support the general case, not the special kind of STGs that your algorithm produces.

Also, the way that arcs are defined at the moment allows for duplicates. Is that OK in petri nets?

I think it would be better to disallow duplicate arcs. However, your question revealed a missing bit in the above datatype: arcs can have weight in PNs. Normal arcs (the ones we typically use) have weight 1. An arc of weight 2 consumes/reads/produces two tokens from/to the place. So, we'll need to add some Ints.
Note also that the current definition allows duplicate places and transitions in the lists [(p, Int)] and [t]. So, we could in principle use Map p Int and Set t instead. It makes it a bit less convenient to operate with these datatypes (Haskell's syntax is optimised for lists), but it gives us more useful invariants. Let's go for Map and Set.

As for the work itself, I can either continue working on it and pushing commits here or do it in a separate MR if you'd prefer this merged first. Either way, the work will be on commits on top of the existing ones since otherwise it would be a lot of new code in a single commit.

Agreed, let's push this one and use these notes to build right reusable datatypes for PNs, LPNs & STGs.


Mass edit fix for blanks, numbers and booleans

This fix is for #1631 and #180

I'm going to make a cleaner PR - so closing this one


[BEAM-9456] Upgrade Gradle to 6.6.1 (smaller version of #12568)

Upgrade to Gradle 6.6.1
With upgrades to some packages in build system.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[X] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

@galuszkak I've created this PR to fix the upgrade with the spotless check: https://github.com/apache/beam/pull/12777

Thanks @runningcode, I've incorporated this.

run java precommit

(that one, https://ci-beam.apache.org/job/beam_PreCommit_Java_Commit/13427/, looked like a flake)

Run Portable_Python PreCommit

@robinyqiu is encountering some issues surrounding signing of the BOM after this upgrade. Pinging here so anyone who was involved in the upgrade who could possibly help can check the thread on dev@beam.

There is also a JIRA https://issues.apache.org/jira/browse/BEAM-11068


[Settings] Adding warning info box to Shortcut edit dialog

Summary of the Pull Request
Showing a warning info bar in case the user selects a shortcut containing Alt+Ctrl.
The implemented logic: Warning is visible if the shortcut contains Alt AND contains Ctrl AND NOT contains Win AND contains an additional key, (Shift may be absent/present, warning is not shown while only the modifier keys are pressed). The info bar contains a longer description as a tooltip for more precise explanation.

PR Checklist

[x] Closes: #19062
[ ] Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
[ ] Tests: Added/updated and all pass
[ ] Localization: All end user facing strings can be localized
[ ] Dev docs: Added/updated
[ ] New binaries: Added on the required places

[ ] JSON for signing for new binaries
[ ] WXS for installer for new binaries and localization folder
[ ] YML for CI pipeline for new test projects
[ ] YML for signed pipeline

[ ] Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed
tested locally

Screenshot? 😄

Yeah, it does need more info to explain, for those who don't know. Could be a tooltip, or a link to online?
Also: does this apply to all Ctrl and Alt buttons or does it look for left and right versions? And does the logic also show when it isn't really valid, like when there's no keyboard layout that uses AltGr?

Yeah, it does need more info to explain, for those who don't know. Could be a tooltip, or a link to online? Also: does this apply to all Ctrl and Alt buttons or does it look for left and right versions? And does the logic also show when it isn't really valid, like when there's no keyboard layout that uses AltGr?

Hi @Jay-o-Way , it applies to all Ctrl and Alt buttons, for shortcuts there is no distinction for left or right modifiers. The shortcut control doesn't have any information about the keyboard type or layouts, so the warning will be shown for any keyboard. If you have a proposal for better explanation in tooltip, I am open to update the tooltip (or replace it by a link to a website or something)
Thanks!


Make a formal release

So this can be used by mod-reporting

Done at https://github.com/indexdata/foliogo/releases/tag/v0.0.1


No incident channel on Slack

Describe the bug
When I create an incident I don't get a slack channel. When I run a slash command on any channel or in private message I get: "I see you tried to run /dispatch-incidents in an non-incident conversation. Incident-specifc commands can only be run in incident conversations"
Is this normal? Am I missing something?
When I check logs:
$ docker logs dispatch_core_1
INFO:     Started server process [1]
INFO:uvicorn.error:Started server process [1]
INFO:     Waiting for application startup.
INFO:uvicorn.error:Waiting for application startup.
INFO:     Application startup complete.
INFO:uvicorn.error:Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
INFO:uvicorn.error:Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)

$ docker logs dispatch_slack_1
Slack websocket process started...

$ docker logs dispatch_scheduler_1
Starting scheduler...

WARNING:dispatch.task.scheduled:Skipping task sync no task plugin enabled. ProjectId: 1
WARNING:dispatch.task.scheduled:Skipping task sync no task plugin enabled. ProjectId: 1
WARNING:dispatch.workflow.scheduled:No workflow plugin is enabled. ProjectId: 1
WARNING:dispatch.workflow.scheduled:No workflow plugin is enabled. ProjectId: 1
WARNING:dispatch.monitor.scheduled:No monitor plugin is enabled. ProjectId: 1
WARNING:dispatch.monitor.scheduled:No monitor plugin is enabled. ProjectId: 1
WARNING:dispatch.task.scheduled:Skipping task sync no task plugin enabled. ProjectId: 1
WARNING:dispatch.task.scheduled:Skipping task sync no task plugin enabled. ProjectId: 1

Are you getting error Slack related errors when creating the incident? Perhaps it gets created but you're not being added for another reason? Slash commands exposed by the Slack app can only be run in incident channels with the exception of /dispatch-list-incidents and /dispatch-report-incident (see here).

When I create an incident through the UI I don't get Slack errors, but when I run /dispatch-report-incident as well as /dispatch-list-incidents  I get
The server responded with: {'ok': False, 'error': 'user_not_found'}
So that's clear. The question is, how does it try to find the user? I have the Slack contact resolver enabled with the same secrets and bot token etc as the Slack conversation.

We hit users.conversations to get a list of public and private channels the Slack app/ bot is a member of so we can compare it with the channel where the command was run by the user. If the channel where the command was run is not in the list of public or private channels the bot is a member of, then is when we give you the "I see you tried to run /dispatch-incidents in an non-incident conversation. Incident-specifc commands can only be run in incident conversations" message. Did you specify the app user id in the App User Slug field in the plugin config? App user id != app id. You can user this api endpoint tester to get it: https://api.slack.com/methods/bots.info/test
Also, does a user with the email address you're using to auth against Dispatch and submit the report exist in your Slack workspace?

Actually, https://api.slack.com/methods/auth.test/test is the one you want to use. Provide your bot token (e.g. xoxb-*) and use the user_id from the response.


Collection of layout issues for Getting Started

Testing #111554.

[x] Slow down animation when expanding/collapsing items on sublists
[ ] Since I have the scroll-in-from-the-right animation when opening sublists, I also expect that for other editors such as the playground.
[x] Icon should be top aligned with text

[x] Should we top align the content of half-filled tiles?

[x] Remove the icon. It's already there in the editor tab and on Windows in the custom menu bar

[x] Center align the content until there are enough tiles to fill the screen

[x] Give sub lists more margin on the left

[x] Give equal padding to the content of sub list tiles and increase the spacing between the icon and the text

[x] Scale tile reasonably when editor is narrow, consider horizontal scrolling

[x] Scale title when editor is small or consider scrolling

Got a good chunk of these done (thanks @misolori!), moving rest out to December.

Broke the Interactive Playground task out into a separate issue, scrolling tracked by #111702, rest should be good.

These are done for the most part, I created a bunch of getting started related issues while testing this as I hadn't touched it yet.

These are done for the most part, I created a bunch of getting started related issues while testing this as I hadn't touched it yet.


Check failed: std::getenv("DISPLAY") != nullptr DISPLAY not detected

❓ Questions and Help
I tried to run
python examples/shortest_path_follower_example.py

but got this error
2019-11-15 22:08:59,608 Initializing dataset PointNav-v1
2019-11-15 22:08:59,853 initializing sim Sim-v0
WARNING: Logging before InitGoogleLogging() is written to STDERR
F1115 22:08:59.854769  6454 WindowlessContext.cpp:235] Check failed: std::getenv("DISPLAY") != nullptr DISPLAY not detected. For headless systems, compile with --headless for EGL support
*** Check failure stack trace: ***
Aborted (core dumped)

Any help would be appreciated!

Is this a system with an attached display?  Or are you on a remote server?

Hi @erikwijmans, thanks for your reply!
By "an attached display?" do you mean a physical monitor? I am afraid not.
I was running the code on a remote server:
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.3 LTS

But I have not installed X server yet.

Yeah, generally you need an attached physical monitor to have a window server (which is what non-headless mode requires).  If the system has an Nvidia GPU, you can build habitat-sim in headless mode with by adding --headless to the install command.
If not, you can try to get Xvfb to work, but Xvfb has been flakey in my experience.

Thanks @erikwijmans . I rebuilt habitat-sim by --headless according to https://github.com/facebookresearch/habitat-sim. Now I can run the example code in habitat-api.


⚠ Samsung has degraded performance

In c6d56de, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2855 ms

Resolved: Samsung performance has improved in 4dedbe3.


Fix broken static build configurations on macOS

Fixes #738
Removed the ability to append ZIP files to the end of archives files for all supported OS platforms. Specifically the clang linker no longer tolerates linking archive files with arbitrary data appended to the end.
Signed-off-by: The MathWorks, Inc<EMAIL_ADDRESS>

Codecov Report

Merging #774 (62b4d8c) into development (196dec7) will decrease coverage by 2.91%.
The diff coverage is n/a.

Additional details and impacted files

@@               Coverage Diff               @@
##           development     #774      +/-   ##
===============================================
- Coverage        89.44%   86.53%   -2.92%
===============================================
  Files              221      122      -99
  Lines            13251     8056    -5195
===============================================
- Hits             11852     6971    -4881
+ Misses            1399     1085     -314

Impacted Files
Coverage Δ

...rk/include/cppmicroservices/detail/WaitCondition.h
71.42% <0.00%> (-21.91%)
:arrow_down:

...mework/include/cppmicroservices/GetBundleContext.h
80.00% <0.00%> (-20.00%)
:arrow_down:

framework/src/bundle/BundleRegistry.cpp
80.63% <0.00%> (-11.49%)
:arrow_down:

util/src/BundleObjFile.cpp
60.00% <0.00%> (-11.43%)
:arrow_down:

framework/src/util/FrameworkPrivate.cpp
67.52% <0.00%> (-10.10%)
:arrow_down:

...mework/src/service/ServiceReferenceBasePrivate.cpp
82.84% <0.00%> (-8.59%)
:arrow_down:

framework/src/service/ServiceListeners.cpp
93.52% <0.00%> (-5.86%)
:arrow_down:

.../cppmicroservices/detail/BundleAbstractTracked.tpp
79.13% <0.00%> (-4.44%)
:arrow_down:

framework/src/util/LDAPExpr.cpp
87.58% <0.00%> (-4.12%)
:arrow_down:

framework/src/service/ServiceRegistrationBase.cpp
74.41% <0.00%> (-3.88%)
:arrow_down:

... and 212 more

I missed use cases involving the doc tutorial tests. I will fix these.


allow dialogs within deferred menus

What are you trying to accomplish?

There are instances when one wants to render dialog contents deferred through the ActionMenu. Currently this doesn't work; it's buggy. The current behaviour is that the dialog flashes open, then hides because the ActionMenu itself closes. Re-opening the menu causes the Dialog to appear.
This is of course not ideal. We should enable this pattern to be expressed bug free.
/cc @jdennes
Screenshots

Here's the broken behaviour:
A video demonstrating broken behaviour
Here it is fixed:
A video demonstrating fixed behaviour
Integration

No
List the issues that this change affects.

An issue hasn't been filed. This was from Slack.
Risk Assessment

[x] Low risk the change is small, highly observable, and easily rolled back.
[ ] Medium risk changes that are isolated, reduced in scope or could impact few users. The change will not impact library availability.
[ ] High risk changes are those that could impact customers and SLOs, low or no test coverage, low observability, or slow to rollback.

What approach did you choose and why?

Anything you want to highlight for special attention from reviewers?

Accessibility

No new axe scan violation - This change does not introduce any new axe scan violations.

Merge checklist

[ ] Added/updated tests
[ ] Added/updated documentation
[x] Added/updated previews (Lookbook)
[x] Tested in Chrome
[x] Tested in Firefox
[ ] Tested in Safari
[ ] Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

@camertron added a system test!


chore(release): update calculation of image repo for MCR

Fixes #
Description
Noticed the released helm chart was missing a /controller within its image reference making it fail to pull. Fixing.
How was this change tested?
Nothing additional
*
Does this change impact docs?

[ ] Yes, PR includes docs updates
[ ] Yes, issue opened: #
[x] No

Release Note

NONE

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.005%) to 97.731%

Files with Coverage Reduction
New Missed Lines
%

pkg/operator/options/options_validation.go
2
95.92%

Totals

Change from base Build<PHONE_NUMBER>:
-0.005%

Covered Lines:
35660

Relevant Lines:
36488

💛  - Coveralls


Strided access with array views

I noticed that all the interpolation classes make copies of the x-, y-, and z-arrays (when applicable). This is of course a safe and pragmatic design choice, after-all memory is cheap today.
For large applications, one might not be able to afford the copies. In this case it might be preferable to have a network_view class, which only stores a reference to the data:
real, pointer :: x(:) => null(), y(:) => null()

What I've realized today is that such a class could access the coordinates in their natural storage layout:
subroutine create_mesh_2d( this, x, y )
    class(network_view_2d), intent(inout)  :: this
    real, intent(in), target          :: x(:)
    real, intent(in), target          :: y(:)

This would mean an application could support both Fortran- and C-like layouts,i.e.
    real, target :: x(4), y(4)

    x = [ 0.0, 0.0, 1.0, 1.0]
    y = [ 0.0, 1.0, 0.0, 1.0]

    call network%create_mesh( x, y )

or
    real, target :: xy(2,4)

    xy(1,:) = [ 0.0, 0.0, 1.0, 1.0]
    xy(2,:) = [ 0.0, 1.0, 0.0, 1.0]

    call network%create_mesh( xy(1,:), xy(2,:) )

I think the strided array access is a very cool Fortran feature. I haven't looked deeper into the original routines from Renka. Presumably those expect (contiguous) assumed-size arrays. Those would need to be modified to take assumed-shape arrays for the above to work
Note I have no urgent need for this, but the idea seemed worth documenting at least.

Definitely worth thinking about. The Renka code uses the classic assumed-size feature (the spag utility does ot take care of that), so that a copy would be made in case of non-contiguous arrays, Modifying the routines to take advantage of the assumed-shape feature is trivial. This would be a next step in modernising the code.

Note on spag: it leaves the routines as independent, globally visible routines, not included in modules. This is one of the manual changes I did make.

I learned later that what I proposed above,
subroutine create_mesh_2d( this, x, y )
    class(network_view_2d), intent(inout)  :: this
    real, intent(in), target          :: x(:)
    real, intent(in), target          :: y(:)

is not safe in general. The pointer attribute has to be used here instead:
subroutine create_mesh_2d( this, x, y )
    class(network_view_2d), intent(inout)  :: this
    real, intent(in), pointer  :: x(:), y(:)

(Note the intent only applies to the pointer target, the user would still be allowed to change the data, which may break internal data structures, meaning that they would have to be recomputed.)

Indeed, any solution that does not copy the data is unsafe. For efficiency,
an alternative interface could be provided with all those caveats.
Op do 22 aug 2024 om 10:55 schreef Ivan Pribec @.***>:

I learned later that what I proposed above,
subroutine create_mesh_2d( this, x, y )
class(network_view_2d), intent(inout)  :: this
real, intent(in), target          :: x(:)
real, intent(in), target          :: y(:)
is not safe in general. The pointer attribute has to be used here instead:
subroutine create_mesh_2d( this, x, y )
class(network_view_2d), intent(inout)  :: this
real, intent(in), pointer  :: x(:), y(:)
(Note the intent only applies to the pointer target, the user would still
be allowed to change the data, which may break internal data structures,
meaning that they would have to be recomputed.)
—
Reply to this email directly, view it on GitHub
https://github.com/arjenmarkus/interpolation2d3d/issues/1#issuecomment-2304133492,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAN6YR5DYLQAKFTKVJ626ETZSWRP5AVCNFSM6AAAAABM5VL55SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBUGEZTGNBZGI
.
You are receiving this because you commented.Message ID:
@.***>


[Feature Request] New sphere functions

Is it possible to add serv.houses (r) and serv.ships (r) functions like serv.guilds? also for serv.guilds it can be developed as serv.guild.0.name/uid (w/r) and there can be another feature like serv.house.0.name/uid (w/r).
same as serv.accounts, serv.account..name.
so we can get rid of the heavy burden of controlling the whole world with foritems or entering id under forinstances one by one.

There is already the player function houses and ships

Check here.
https://github.com/Sphereserver/Scripts-X/blob/5c7524f2d9a0bc6fee2f09d3e3e5f46d442db16c/core/dialogs/admin/d_admin_main.scp#L594
And few line down for ship.  Its what you need?

this is for the server, not the one for the player.  When we need to perform an action on all the houses on the server, we need to check all the players first and then the houses on the players, which will increase the processing load.

Implementation is here: https://github.com/Sphereserver/Source-X/commit/7de9bb49594f0a8274469012e625e687317c1cc6


Basically nothing is working anymore

Describe the bug
A clear and concise description of what the bug is.
What on earth has happened with this integration? After having zero updates for a few week I decided to reinstall it and now I am only left with 10 entities? This integration seems totally broken.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Logfile
How to enable audiconnect debugging?
Settings > Integrations > Audi Connect > Enable Debug Logging
Run service refresh_cloud_data
Disable Debug Logging
Your Vehicle Details
Model:
Year:
Type (Gas/Hybrid/Electric):
Region (EU/US/CA/CN):

Please complete the template without detail we can't help.

@menloperk we're doing our best to keep this functioning as best we can, but note none of us are paid to do this, we have full time jobs, families, and personal lives. We also rely on users raising issues for us to understand what is working or what is broken.
As @cdnninja has suggested, please provide more details about what you have available, what is missing, your vehicle details, and region. A log file during a refresh cloud data service call would also be helpful.
The Audi API changes several times a year and we do our best to keep up with it.

I lost all my entities to "unknown" today, too.
But also I have some little errors in the Audi App.
So maybe there's a generel problem with the Audi API?
How about the others here?

503 makes me think there is an Audi Server issue.
Checking here  I see there is an uptick in issues for the EU.

503 makes me think there is an Audi Server issue. Checking here  I see there is an uptick in issues for the EU.

Also:
Logger: custom_components.audiconnect.audi_connect_account
Quelle: custom_components/audiconnect/audi_connect_account.py:660
Integration: Audi Connect (Dokumentation, Probleme)
Erstmals aufgetreten: 17:02:18 (1 Vorkommnisse)
Zuletzt protokolliert: 17:02:18
POSITION: ClientResponseError with status 502 for VIN: *************9780. Disabling vehicle position support.

502 bad gateway means there is an upstream issue. This could be local, or with audi servers. Again, I believe this is related to the uptick in issues with Audi Servers in the EU.

502 bad gateway means there is an upstream issue. This could be local, as in your local router, ISP, DNS etc, or with audi servers. Again, I believe this is related to the uptick in issues with Audi Servers in the EU.

Thx! I'll checkt later and keep you updated.

note, 502 error currently disables the specific service (position in your case) until the next HA reboot or Audiconnect integration restart.
This will be fixed in the next release.

Adding to this, US Region Service Calls aren't working at the moment either.

Everything seems back to normal again. Same for my VW integration. I guess this all had to do with a service unavailable at VW / Audi. Thanks all!


Can it do variable height?

If you get a chance, would love an example with variable-height images, as in hearsay.me or react.rocks. Basic markup, with Bootstrap:

Thanks!

@winkler1 I'm not sure if you're still looking for an answer...
I have a similar situation where I'm trying to integrate the react-grid-layout into my project with a variable number of widgets. Each widget loads with a spinner and then fetches data from different endpoints that result in variable size content. The result is that the nested child in GridItem either overlaps other widgets or doesn't take up enough space to "fill" the GridItem.
I'll disclaim that I'm new to React, so I'm not sure if this is the best pattern...
I have a React component that renders the ReactGridLayout. It stores the layout array in the state. A callback is passed into the child ("widget") component via props. Once it renders, the callback is called with this.getDOMNode().offsetHeight/offsetWidth as a parameters. The callback then computes the dimensions in grid units (similar to GridItem.calcWH(..)) and updates the state. The grid re-renders and the spacing looks correct.

That sounds like a good way to do it. You're going to have to reach into
the DOM, there's no other way to know how large the item will render in
the DOM until you render it. There could be images, variable length
text, variable widths, etc. This is one of those cases where if you want
a perfect server render, you're going to have to either use something
else or render in PhantomJS.
On 5/6/15 5:26 PM, phchang wrote:

@winkler1 https://github.com/winkler1 I'm not sure if you're still
looking for an answer...
I have a similar situation where I'm trying to integrate the
react-grid-layout into my project with a variable number of widgets.
Each widget loads with a spinner and then fetches data from different
endpoints that result in variable size content. The result is that the
nested child in |GridItem| either overlaps other widgets or doesn't
take up enough space to "fill" the |GridItem|.
I'll disclaim that I'm new to React, so I'm not sure if this is the
best pattern...
I have a React component that renders the |ReactGridLayout|. It stores
the |layout| array in the |state|. A callback is passed into the child
("widget") component via |props|. Once it renders, the callback is
called with |this.getDOMNode().offsetHeight/offsetWidth| as a
parameters. The callback then computes the dimensions in grid units
(similar to |GridItem.calcWH(..)|) and updates the |state|. The grid
re-renders and the spacing looks correct.
—
Reply to this email directly or view it on GitHub
https://github.com/STRML/react-grid-layout/issues/2#issuecomment-99629697.

@STRML How does the calculation work with the rowHeight and the GridItem h? Even if I set the rowHeight to 1 the calculations are always way off. I've also tried changing the padding and margin to [1,1]

@phchang Would you mind sharing your solution for dynamic resizing?  I have the same issue--this widget is perfect for my needs but the heights are dynamic--if I could fix the layout to match then I would be in good shape.

@winkler1 I'm not sure if you're still looking for an answer...
I have a similar situation where I'm trying to integrate the react-grid-layout into my project with a variable number of widgets. Each widget loads with a spinner and then fetches data from different endpoints that result in variable size content. The result is that the nested child in GridItem either overlaps other widgets or doesn't take up enough space to "fill" the GridItem.
I'll disclaim that I'm new to React, so I'm not sure if this is the best pattern...
I have a React component that renders the ReactGridLayout. It stores the layout array in the state. A callback is passed into the child ("widget") component via props. Once it renders, the callback is called with this.getDOMNode().offsetHeight/offsetWidth as parameters. The callback then computes the dimensions in grid units (similar to GridItem.calcWH(..)) and updates the state. The grid re-renders and the spacing looks correct.

useEffect to help this lag go away. I am also doing similar thing in my PWA. Get a base dimensions for the widgets with ids and layouts also using the same ids as index. in useEffect === onLoad I simply set h = clientHeight/150. works flawlessly.

@aphougat, I am dealing with the same issue in my project. Would you mind sharing you solution here?