Make dependency resolution available for EditContext form validation so that custom validators can access services.

Is your feature request related to a problem? Please describe.
Microsoft.AspNetCore.Components.Forms.EditContextDataAnnotationsExtensions.ValidateModel(EditContext, ValidationMessageStore) does not provide IServiceProvider as a constructor argument.  When we need more complex validation that requires additional dependencies in a custom validator the resolved dependency will be null.
Describe the solution you'd like
Ideally ValidationContext would be instantiated with an IServiceProvider so that when writing a custom validator we'd have access services in custom validators.
Describe alternatives you've considered
Still under investigation.
Additional context
EditContextDataAnnotationsExtensions.cs
public static EditContext AddDataAnnotationsValidation(this EditContext editContext)
{
    if (editContext == null)
    {
        throw new ArgumentNullException(nameof(editContext));
    }

    var messages = new ValidationMessageStore(editContext);

    // Perform object-level validation on request
    editContext.OnValidationRequested +=
        (sender, eventArgs) => ValidateModel((EditContext)sender, messages);

    // Perform per-field validation on each field edit
    editContext.OnFieldChanged +=
        (sender, eventArgs) => ValidateField(editContext, messages, eventArgs.FieldIdentifier);

    return editContext;
}

private static void ValidateModel(EditContext editContext, ValidationMessageStore messages)
{
    var validationContext = new ValidationContext(editContext.Model); //<-- constructor chain will set IServiceProvider to null
    var validationResults = new List<ValidationResult>();
    Validator.TryValidateObject(editContext.Model, validationContext, validationResults, true);

    // Transfer results to the ValidationMessageStore
    messages.Clear();
    foreach (var validationResult in validationResults)
    {
        foreach (var memberName in validationResult.MemberNames)
        {
            messages.Add(editContext.Field(memberName), validationResult.ErrorMessage);
        }
    }

    editContext.NotifyValidationStateChanged();
}

Thanks for contacting us, @pdeveau.
@SteveSandersonMS is there any other mechanism which can provide access to the IServiceProvider already, or should we treat this as a new feature ask?

We can consider this in the future.
In the meantime, I'd recommend considering defining your custom validator either as:

A component, like <DataAnnotationsValidator />, so it can get injected services directly
Or an extension method on the EditContext that also takes an IServiceProvider from the caller.

... or both, like we've done in the framework for DataAnnotations.

Thanks @SteveSandersonMS, I didn't really think about the first option.  I was already planning on using the second option.


inline: the wiki says compiler optimization wouldn't inline a function containing panic's

What version of Go are you using (go version)?

$ go version
go version go1.16.3 darwin/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/zhangjie/Library/Caches/go-build"
GOENV="/Users/zhangjie/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/zhangjie/go/pkg/mod"
GONOPROXY="git.code.oa.com/*"
GONOSUMDB="git.code.oa.com/*"
GOOS="darwin"
GOPATH="/Users/zhangjie/go"
GOPRIVATE="git.code.oa.com/*"
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/local/go"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16.3"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/0j/mvtnlhyj5j9cyqqq1b27bgg40000gn/T/go-build2792125826=/tmp/go-build -gno-record-gcc-switches -fno-common"
GOROOT/bin/go version: go version go1.16.3 darwin/amd64
GOROOT/bin/go tool compile -V: compile version go1.16.3
uname -v: Darwin Kernel Version 19.6.0: Mon Apr 12 20:57:45 PDT 2021; root:xnu-6<IP_ADDRESS>~1/RELEASE_X86_64
ProductName:	Mac OS X
ProductVersion:	10.15.7
BuildVersion:	19H1030
lldb --version: lldb-1<IP_ADDRESS>
Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1<IP_ADDRESS>)
gdb --version: GNU gdb (GDB) 10.1

What did you do?

I write a simple go code to validate inlining logic:
file: main.go
package main

import "fmt"

func main() {
	n := []float32{120.4, -46.7, 32.50, 34.65, -67.45}
	fmt.Printf("The total is %.02f\n", sum(n))
}

func sum(s []float32) float32 {
	var t float32
	for _, v := range s {
		if t < 0 {
			t = add(t, v)
		} else {
			t = sub(t, v)
		}
	}

	return t
}

func add(a, b float32) float32 {
	panic("hello")
	return 1.0
}

func sub(a, b float32) float32 {
	return a - b
}

then run `go run -gcflags='-m -m' main.go
What did you expect to see?
The wiki says the function containing panic's wouldn't be inlined. I want to see the function add not inlined.
What did you see instead?
I see the function add is inlined, the output is:
./main.go:23:6: can inline add with cost 5 as: func(float32, float32) float32 { panic("hello"); return 1 }
./main.go:28:6: can inline sub with cost 4 as: func(float32, float32) float32 { return a - b }
...

The wiki maybe not updated, if so, please update it.

The wiki is open for everyone to edit, no need to file issues about it

You’re welcome to edit the wiki.

OK, thank you.

The wiki is open for everyone to edit, no need to file issues about it

OK, thank you.


Optional use of IRQ pin in XPT2046 indev.

My XPT2046 doesn't work properly, I can't get the IRQ to go low when I touch the screen, so I can't use it with the current read function implementation.
While searching other XPT2046 library codes I saw one that determines if the user is pressing the display by using reading the Z coordinate (amount of pressure) on the display.
Do you think it's useful to make the usage of the IRQ optional, if not enabled use the Z coordinate instead?

Not dead


Please ignore. This is for automation testing.

@bazel-io cherry-pick
commits: a2b775467c1b36b, 79a0dc276cc81717a, 98d5d5f6980
reviewers: iancha1992
teams: team-ExternalDeps

Cherry-picked in https://github.com/bazelbuild/bazel/pull/19395, which includes the following commit(s): https://github.com/iancha1992/bazel/commit/a2b775467c1b36b, https://github.com/iancha1992/bazel/commit/79a0dc276cc81717a. There was(were) also 1 failed commit(s): https://github.com/iancha1992/bazel/commit/98d5d5f6980 (Cherry-pick was attempted, but there may be merge conflict(s). Please resolve manually.)The failed commit(s) are NOT included in the PR.


Count different kinds of alt reads in M2 isActive

Currently we lump together all variant reads and add up the total alt evidence.  This classifies too many regions as active.  We should tally reads supporting SNVs (of each possible substitution), deletions, and insertions separately.

Issue moved to broadinstitute/gatk #3012 via ZenHub


VSL-167: Add/Remove Owner + Change Threshold Single Action

Description

Updates FE to use the AddOwnerUpdateThreshold and RemoveOwnerUpdateThreshold treasury actions
Updates UI to match FIGMA designs

Add Owner Modal
Remove Owner Modal
Edit Threshold Modal
Review Updates Modal

Demo / Test Result
FE:
Add Owner - Empty

Add Owner - Valid Input

Add Owner - Invalid Input

Update Threshold

Add Owner - Review Updates

Confirmed Owner has been added (after signing & executing)

Remove Owner

Remove Owner - Update Threshold

Remove Owner - Review Updates

Edit Threshold ONLY - Review Updates

this is still a WIP

Looks good! Edit Threshold has two small bugs: it's possible to proceed to the next step without changing the threshold, and back button does nothing on the review step of the edit threshold modal.


feat: equally reward dag blocks with at least one unique transaction

#2134
https://github.com/Taraxa-project/taraxa-evm/pull/107 should be reviewed and merged first

prnet cleaned-up successfully


Fix About Test - CLI binary now available again

Summary

Basically a revert of https://github.com/rancher/dashboard/pull/11941

Checklist

[x] The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
[x] The PR has a Milestone
[x] The PR template has been filled out
[x] The PR has been self reviewed
[x] The PR has a reviewer assigned
[x] The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
[x] The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes

Fixed via https://github.com/rancher/dashboard/pull/11997


Webpack2 UglifyJsPlugin not working.

webpack.config.js
var path = require('path');
var webpack = require('webpack');
var autoprefixer = require('autoprefixer');
var HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {

    entry: {
        vendor: ["pixi", 'pixi-particles'],
        app: ['./scss/main.scss', './js/main.js']
    },
    output: {
        path: path.resolve(__dirname, './dist'),
        publicPath: '/dist/',
        filename: 'app.js'
    },
    module: {
        rules: [
            {
                test: /\.vue$/,
                loader: 'vue-loader'
            },
            {
                test: /\.js$/,
                loader: 'babel-loader',
                options: {
                    "presets": [
                        "es2015"
                    ]
                },
                include: [
                    "./js"
                ]
            },
            {
                test: /\.css$/,
                use: [
                    "style-loader", "css-loader"
                ]
            },
            {
                test: /\.(png|jpg|gif|svg|ttf)$/,
                loader: 'file-loader',
                options: {
                    name: '[name].[ext]?[hash]'
                }
            },
            {
                test: /\.scss$/,
                use: [
                    "style-loader", "css-loader", 'postcss-loader', "sass-loader"
                ]
            }
        ]
    },
    resolve: {
        alias: {
            'pixi': 'pixi.js/dist/pixi.min.js',
            'pixi-particles': 'pixi-particles/dist/pixi-particles.min.js'
        }
    },
    devtool: 'cheap-module-eval-source-map',
    plugins: [
        new webpack.optimize.CommonsChunkPlugin({
            name: "vendor",
            filename: "vendor.js",
            minChunks: Infinity
        }),
        new webpack.optimize.OccurrenceOrderPlugin(),
        new HtmlWebpackPlugin({
            template: 'index.html',
            inject: 'head'
        })
    ]
};

if (process.env.NODE_ENV === 'prod') {

    module.exports.devtool = false;
    module.exports.plugins = (module.exports.plugins || []).concat([
        new webpack.optimize.UglifyJsPlugin({
            compress: {
                warnings: false,
                pure_funcs: ['console.log', 'window.console.log.apply']
            },
        }),
    ])
}

package.json
"build": "cross-env NODE_ENV=prod webpack --progress -p"
And after I run command npm run build.

Codes didnt compressed.

Which version of webpack 2 are you using? Can you provide a standalone project to test? Thanks.

Hey,I am using the newest version of webpack2, And Also I found the reason why caused this is because of the two dependencies in my project which are pixi.min.js & pixi-particles.min.js.And the pixi.min.js has AMD support which will export a PIXI object,but "pixi-particles" file just an IFFE,which after it executed it will add a property "particles" in PIXI object.
And if I put these two files in CommonsChunk it will not compress the code but works fine in the browser but if I dont do it like this way,for example only output one file app.js but not to separate them into vendor.js and app.js,it will throw me an error
"Uncaught TypeError: __WEBPACK_IMPORTED_MODULE_0_pixi__.particles.Emitter is not a constructor"

So how can I handle the situation like this?

Hi,I changed some files like this
webpack.config.js
 entry: {
        // vendor: ["pixi", 'pixi-particles'],
        app: ['./scss/main.scss', './js/main.js']
    },

  new webpack.ProvidePlugin({
            PIXI: 'pixi',
        }),
        // new webpack.optimize.CommonsChunkPlugin({
        //     name: "vendor",
        //     filename: "vendor.js",
        //     minChunks: Infinity
        // }),

main.js
import * as p from 'pixi-particles';
import {loader, Texture, Container, particles} from "pixi";

And finally it also works fine through webpack-dev-server,but when I try to build with UglifyJsPlugin,it will throw me an error like this:
ERROR in app.js from UglifyJs
SyntaxError: Unexpected token: name (emitter) [app.js:17446,4]

also the file is super big 4.1MB,so how can I do it in the right way?

Does the issue also happen if you change devtool: 'cheap-module-eval-source-map' to devtool: false?

@SpaceK33z 4.1MB runs well by webpack-dev-server in the browser,but after added this configuration parameters
    module.exports.devtool = false;
    module.exports.plugins = (module.exports.plugins || []).concat([
        new webpack.optimize.UglifyJsPlugin({
            compress: {
                warnings: false,
                pure_funcs: ['console.log', 'window.console.log.apply']
            },
        }),
    ])

the file size will reduce to 1.7MB but it will throw an error and not working anymore.
ERROR in app.js from UglifyJs
SyntaxError: Unexpected token: name (emitter) [app.js:17446,4]

I think its UglifyJsPlugin caused this or may there is another way to process this situation but I dont know how,I searched stackoverflow for several hours this afternoon but still cant work it out.

I can't reproduce this, so you'll need to provide a demo repo. Note that this is probably not webpack's fault.

Please see app.js line 17446. There is probably some ES2015 stuff that's not supported by uglifyjs.

@sokra its not, emitter is represented "let emitter =  new PIXI.particles.Emitter" from "pixi-particles.js" file.
pixi.js file export PIXI object(with amd support)
pixi-particles.js file is an IFFE add particles property to the PIXI object(without amd support)
please read whole dialogue carefully...its the question about how to use webpack load a amd supported file and a file without amd supported but is a "plugin" of previous one.When I try to using these two files in the way I paste above,webpack-dev-server runs it fine,but UglifyJsPlugin cannot handle it.

@SpaceK33z  https://github.com/huyaxiong/test2
after installed dependencies, open like http://localhost:8080/dist/

webpack -p also dosn't work.
i got this
ERROR in bundle.js from UglifyJs
SyntaxError: Unexpected token: name (courseList) [./app/main.js:1,0]

main.js
import courseList from './modules/course/course-list';

courseList.js
class CourseList {
	constructor() {
		console.log('Hello');
	}
}
var courseList = new CourseList();
export default courseList;

any news?

Alright,I solved it single-handedly.Because I missed one .babelrc file,so babel-loader didnt work.
{
  "presets": ["es2015"],
  "plugins": ["transform-runtime"],
  "comments": false
}

It seems<EMAIL_ADDRESS>doesn't read
   options: {
       "presets": ["es2015"],
   },

Appending presets param directly works fine:
{
        test: /\.(js|jsx)$/,
        use: 'babel-loader?presets[]=es2015',
        exclude: /(node_modules|bower_components)/,
      },

https://github.com/joeeames/WebpackFundamentalsCourse/issues/3#issuecomment-268825328

#3556

You should install uglifyjs-webpack-plugin, https://webpack.js.org/plugins/uglifyjs-webpack-plugin/


Consumer build fails when stubsMode=CLASSPATH and stubsPerConsumer=true

I have an issue with the combination of stubsMode=CLASSPATH and stubsPerConsumer=true.
from build.gradle:
dependencies {
	compile("org.springframework.boot:spring-boot-starter-web")
	testCompile("org.springframework.cloud:spring-cloud-starter-contract-stub-runner")
	testCompile("com.example:donna-cloud-contract:0.4.0-SNAPSHOT:stubs") {
		transitive = false
	}
}

This works:
@AutoConfigureStubRunner(stubsMode = StubRunnerProperties.StubsMode.REMOTE, ids = "com.example:donna-cloud-contract", repositoryRoot
      = "http://nshoppsrv32:8081/nexus/service/local/repositories/nl.donna.build.snapshots/content", stubsPerConsumer = true, consumerName = "beer-api-consumer")

This also works:
@AutoConfigureStubRunner(stubsMode = StubRunnerProperties.StubsMode.CLASSPATH, ids = "com.example:donna-cloud-contract", stubsPerConsumer = false,
      consumerName = "beer-api-consumer")

This does not work:
@AutoConfigureStubRunner(stubsMode = StubRunnerProperties.StubsMode.CLASSPATH, ids = "com.example:donna-cloud-contract", stubsPerConsumer = true,
      consumerName = "beer-api-consumer")

Log:
15:28:06.453 [DEBUG] [TestEventLogger]         Caused by:
15:28:06.453 [DEBUG] [TestEventLogger]         org.springframework.web.client.ResourceAccessException: I/O error on POST request for "http://localhost:0/check": connect: Address is invalid on local machine, or port is not valid on remote machine; nested exception is java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine

Source code:
https://github.com/kwikmick/donna-cloud-contract
https://github.com/kwikmick/donna-cloud-third-consumer

I can't build the project
zsh: command not found: gradlew
➜  donna-cloud-contract git:(master) ✗ ./gradlew clean build -x generateContractTests

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'donna-cloud-contract'.
> Could not resolve all files for configuration ':classpath'.
   > Cannot resolve external dependency io.spring.gradle:dependency-management-plugin:1.0.5.RELEASE because no repositories are defined.
     Required by:
         project :
   > Cannot resolve external dependency org.springframework.cloud:spring-cloud-contract-gradle-plugin:2.0.0.RC1 because no repositories are defined.
     Required by:
         project :
   > Cannot resolve external dependency nl.donna.gradle:donna-release-plugin:1.7.0 because no repositories are defined.
     Required by:
         project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s

Hmm, the codebase is a bit dependent on our infrastructure.

gradlew is used to build on windows machines.
donna-release-plugin is our own custom plugin used to create releases. You can remove that.
you can add MavenCentral repository to build.gradle so other dependencies can be resolved. Here we automatically connect to our internal Nexus repo.

Can you print the folder structure of the JAR with stubs that is added to the classpath?

Ok, one more thing. Can you set the logs to debug for sc-contract and upload them?

build.log

From what I see the build is successful. What's the expected outcome?
Also, I don't see the logs from the execution of a test that is not working the way it should.

I misunderstood, thought you wanted the log for the contracts module. Here are log files for the consumer, one in REMOTE mode and one in CLASSPATH mode. I expect both to succeed but only the REMOTE does.
build-stubsmode-remote.log
build-stubsmode-classpath.log

This looks strange
13:44:51.999 [DEBUG] [TestEventLogger]     2018-08-09 13:44:51.999 DEBUG 31532 --- [    Test worker] o.s.c.c.s.ClasspathStubProvider          : For paths [http://nshoppsrv32:8081/nexus/content/repositories/public] found following resources [URL [http://nshoppsrv32:8081/nexus/content/repositories/public]]
13:44:52.002 [DEBUG] [TestEventLogger]     2018-08-09 13:44:52.001  WARN 31532 --- [    Test worker] o.s.w.c.s.GenericWebApplicationContext   : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stubFlowRegistrar' defined in class path resource [org/springframework/cloud/contract/stubrunner/messaging/integration/StubRunnerIntegrationConfiguration.class]: Unsatisfied dependency expressed through method 'stubFlowRegistrar' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'batchStubRunner' defined in class path resource [org/springframework/cloud/contract/stubrunner/spring/StubRunnerConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.contract.stubrunner.BatchStubRunner]: Factory method 'batchStubRunner' threw exception; nested exception is java.lang.IllegalArgumentException: Illegal uri [http://nshoppsrv32:8081/

Why is there a URI ? If you're using CLASSPATH there should be no URI, or we treat the URI as paths inside your application. By providing the path you can override the default paths.

you're right, I had moved the nexus URI to a global properties file. I removed that and now I can reproduce what went wrong before. Now I have CLASSPATH mode with stubsPerConsumer=false that builds succesful and CLASSPATH mode with stubsPerConsumer=true that fails.
build-stubsmode-classpath-stubsperconsumer-false.log
build-stubsmode-classpath-stubsperconsumer-true.log

Ok, can you switch to 2.0.2.BUILD-SNAPSHOT, still have debug mode on, and try again and upload the logs? I've added additional logging - we should now know more. I'm pretty sure it's related to paths and Windows. The logic related to stubs per consumer is not dependant on the mean of retrieving stubs (remote, classpath, etc.)

dependency "org.springframework.cloud:spring-cloud-starter-contract-stub-runner:2.0.2.BUILD-SNAPSHOT"
build-stubsmode-classpath-stubsperconsumer-false.log
build-stubsmode-classpath-stubsperconsumer-true.log

It looks like the unpacking of files is wrong
the downloaded entry is [com.example:donna-cloud-contract:+:stubs=D:\temp\1533818302673-0]
14:38:22.711 [DEBUG] [TestEventLogger]     2018-08-09 14:38:22.710 DEBUG 34064 --- [    Test worker] o.s.c.c.stubrunner.StubRepository        : Absolute path [D:\temp\1533818302673-0\com.example\donna-cloud-contract\hasAnEvenAge.json] contains [\beer-api-consumer\] in its path [false]
14:38:22.711 [DEBUG] [TestEventLogger]     2018-08-09 14:38:22.711 DEBUG 34064 --- [    Test worker] o.s.c.c.stubrunner.StubRepository        : Absolute path [D:\temp\1533818302673-0\com.example\donna-cloud-contract\hasAnOddAge.json] contains [\beer-api-consumer\] in its path [false]
14:38:22.711 [DEBUG] [TestEventLogger]     2018-08-09 14:38:22.711 DEBUG 34064 --- [    Test worker] o.s.c.c.stubrunner.StubRepository        : Absolute path [D:\temp\1533818302673-0\com.example\donna-cloud-contract\shouldGrantABeerIfOldEnough.json] contains [\beer-api-consumer\] in its path [false]
14:38:22.711 [DEBUG] [TestEventLogger]     2018-08-09 14:38:22.711 DEBUG 34064 --- [    Test worker] o.s.c.c.stubrunner.StubRepository        : Absolute path [D:\temp\1533818302673-0\com.example\donna-cloud-contract\shouldRejectABeerIfTooYoung.json] contains [\beer-api-consumer\] in its path [false]
14:38:22.714 [DEBUG] [TestEventLogger]     2018-08-09 14:38:22.713 DEBUG 34064 --- [    Test worker] o.s.c.c.stubrunner.StubRepository        : Absolute path [D:\temp\1533818302673-0\com.example\donna-cloud-contract\hasAnEvenAge.groovy] contains [\beer-api-consumer\] in its path [false]
14:38:22.714 [DEBUG] [TestEventLogger]     2018-08-09 14:38:22.713 DEBUG 34064 --- [    Test worker] o.s.c.c.stubrunner.StubRepository        : Absolute path [D:\temp\1533818302673-0\com.example\donna-cloud-contract\hasAnEvenAge.json] contains [\beer-api-consumer\] in its path [false]
14:38:22.714 [DEBUG] [TestEventLogger]     2018-08-09 14:38:22.713 DEBUG 34064 --- [    Test worker] o.s.c.c.stubrunner.StubRepository        : Absolute path [D:\temp\1533818302673-0\com.example\donna-cloud-contract\hasAnOddAge.groovy] contains [\beer-api-consumer\] in its path [false]
14:38:22.714 [DEBUG] [TestEventLogger]     2018-08-09 14:38:22.713 DEBUG 34064 --- [    Test worker] o.s.c.c.stubrunner.StubRepository        : Absolute path [D:\temp\1533818302673-0\com.example\donna-cloud-contract\hasAnOddAge.json] contains [\beer-api-consumer\] in its path [false]
14:38:22.714 [DEBUG] [TestEventLogger]     2018-08-09 14:38:22.714 DEBUG 34064 --- [    Test worker] o.s.c.c.stubrunner.StubRepository        : Absolute path [D:\temp\1533818302673-0\com.example\donna-cloud-contract\shouldGrantABeerIfOldEnough.groovy] contains [\beer-api-consumer\] in its path [false]
14:38:22.714 [DEBUG] [TestEventLogger]     2018-08-09 14:38:22.714 DEBUG 34064 --- [    Test worker] o.s.c.c.stubrunner.StubRepository        : Absolute path [D:\temp\1533818302673-0\com.example\donna-cloud-contract\shouldGrantABeerIfOldEnough.json] contains [\beer-api-consumer\] in its path [false]
14:38:22.714 [DEBUG] [TestEventLogger]     2018-08-09 14:38:22.714 DEBUG 34064 --- [    Test worker] o.s.c.c.stubrunner.StubRepository        : Absolute path [D:\temp\1533818302673-0\com.example\donna-cloud-contract\shouldRejectABeerIfTooYoung.groovy] contains [\beer-api-consumer\] in its path [false]
14:38:22.714 [DEBUG] [TestEventLogger]     2018-08-09 14:38:22.714 DEBUG 34064 --- [    Test worker] o.s.c.c.stubrunner.StubRepository        : Absolute path [D:\temp\1533818302673-0\com.example\donna-cloud-contract\shouldRejectABeerIfTooYoung.json] contains [\beer-api-consumer\] in its path [false]

The original structure is not maintained. So that's a bug...

Correct. I just checked the temp folder. Part of the original folder structure including the contract name is missing.

I can't replicate it :| The tests I'm running, and that are supposed to fail, pass. I've added some more debugging. Can you try again with latest snapshots?

Is it not "org.springframework.cloud:spring-cloud-starter-contract-stub-runner:2.0.2.BUILD-SNAPSHOT" ?

It is but I've uploaded a fresh copy. Build it with ./mvnw clean install -U or ./gradlew clean build --refresh-dependencies to ensure that the latest version is grabbed.

build-stubsmode-classpath-stubsperconsumer-true.log

We're getting close!
15:33:03.654 [DEBUG] [TestEventLogger]     2018-08-09 15:33:03.654 DEBUG 34040 --- [    Test worker] o.s.c.c.s.ClasspathStubProvider          : Relative path for resource is [com.example/donna-cloud-contract\/0.22.0-SNAPSHOT/mappings/com/example/donna-cloud-producer/2.0.0/beer-api-consumer/rest/shouldRejectABeerIfTooYoung.json]
15:33:03.654 [DEBUG] [TestEventLogger]     2018-08-09 15:33:03.654 DEBUG 34040 --- [    Test worker] o.s.c.c.s.ClasspathStubProvider          : Relative path without file name is [com.example/donna-cloud-contract]

this looks suspicious com.example/donna-cloud-contract\/.

I have a hunch that if you test it now, it will work :)

Actually wait a sec...

It's working now 👍

I've added one more thing... Can you actually refresh the deps again and check now?

Still good.

Great! Issue closed :)


EPIC: Migrate to using developer portal by default (DRAFT)

Why?
Since we now have a proper URL you can use to link to dataplane documentation - we should migrate away from using github pages (github.io) and use the new URL instead.
DEV: https://grafana-dev.com/developers/dataplane/
PROD: https://grafana.com/developers/dataplane/
What to consider and how do we do this?

Start by adjusting the inbound links to https://grafana.com/developers/dataplane/
Stop publishing to github.io
Redirect from github.io (if you want to)
Adjust the build scripts and remove the parent / landing page
Remove github.io publishing workflows
At some point in the future disable github pages

Nice to have

Add "Tools & Examples" sections and page to the side navigation to not loose this links once we get rid of the dataplane specific landing page.

### Tasks
- [ ] Adjust inbound links to https://grafana.com/developers/dataplane/
- [ ] Adjust the build scripts and remove the parent / landing page (similar to https://github.com/grafana/plugin-tools/pull/359)

### Nice To Have
- [ ] Add "Tools & Examples" sections and page to the side navigation to not loose this links once we get rid of the dataplane specific landing page.

@yesoreyeram I can help out with this if you want - let me know.


Missing license

I'd like to make use of this library but I'm not sure whether that will be possible until the project is granted a license. For my purposes it would need to be a commercial-use-friendly license such as Apache 2.0/MIT, as with your other libraries, but of course I will leave that up to you. Otherwise we will have to write our own client from scratch. Thanks for your consideration.

Thank you for reporting this @lucjross-favor.
Yes this library is available under an MIT license. It just looks like we missed adding the license file to the Java SDK repo. I have added the MIT license here. Please reach out if you have any other questions.


Bypass accessor on increment/decrement

When incrementing/decrementing database values using increment()/decrement() it isn't desirable to execute an accessor that may exist on the column, as it's not really being "accessed".
The intention with this PR is to bypass any accessors to avoid unintended side effects.
https://github.com/laravel/framework/discussions/52694
(replaces previous PR #52697)

I am closing this pull request because it lacks sufficient explanation, tests, or both. It is difficult for us to merge pull requests without these things because the change may introduce breaking changes to the framework.
Feel free to re-submit your change with a thorough explanation of the feature and tests - integration tests are preferred over unit tests. Please include it's benefit to end users; the reasons it does not break any existing features; how it makes building web applications easier, etc.
Thanks!


Repackage (each) Service: Bitcoin, Bitcoin Proxy, LND, C-Lightening, RTL, Spark Wallet, BTCPay, BitWarden, BAR, Cups, File Browser, Mastodon, Sphinx

usurped by issues in respective wrapper repositories.


Closing chat window after leaving a room

Describe the bug
the chat window is kept visible even when the user leaves the room.
I choose to use only the compact display mode (either the rooms list or the messages).
In the demo example, I found that to go back to the list of rooms you empty and refill the list again (by calling fetchRooms() after deleteRoom()), but in the case of the last room, the list remains empty, as a consequence the display stays in messages.
Expected behavior
return to the rooms list after leaving the room in any case
Screenshots

Fixed in https://github.com/antoine92190/vue-advanced-chat/commit/ac9226317eb1d906fafc4bd302cba7294bf5c9f0

Actually to go back to rooms in any case, I need to do:
if (
	!newVal[0] ||
	!newVal.find(room => room.roomId === this.room.roomId)
) {
	this.showRoomsList = true
}

But it throws an error with the demo code, so I will implement a better fix soon

Fixed in https://github.com/antoine92190/vue-advanced-chat/commit/ea10cbd6d99c75f700dace9042bb3ad8c2f25e12


Introduce rasterization functions to DevUtils

These are:

RasterizePreviousInputOutputAndExportToMarkdown
RasterizePreviousOutputAndExportToMarkdown
RasterizeExpressionAndExportToMarkdown

They have a variety of options (including the max width of image after
which to line break, the magnification, and details about compression).
The rasterization workflow is documented in CONTRIBUTING.md.
Here's an example of RasterizePreviousInputOutputAndExportToMarkdown being used (with the DryRun option given to make the example easier to see):
/Users/taliesinb/Library/Application Support/PixelSnap/media/PixelSnap 2020-11-30 at<EMAIL_ADDRESS>This shows the behavior when the input cannot be stringified:

/Users/taliesinb/Library/Application Support/PixelSnap/media/PixelSnap 2020-11-30 at<EMAIL_ADDRESS>This shows the behavior of RasterizePreviousOutputAndExportToMarkdown:
/Users/taliesinb/Library/Application Support/PixelSnap/media/PixelSnap 2020-11-30 at<EMAIL_ADDRESS>This shows the behavior of RasterizeExpressionAndExportToMarkdown:
/Users/taliesinb/Library/Application Support/PixelSnap/media/PixelSnap 2020-11-30 at<EMAIL_ADDRESS>

This change is

@daneelsan that worked because I was manually attaching the cell label myself. But I couldn't do that accurately enough (e.g. the baselines for Out[] was wrong in general). I thought that Rasterize[Notebook[..]] would just do all of that stuff for me, but apparently it doesn't work on Linux. I'll try add that code back to support Linux as soon as I can.


Navigation more menu

Hi'
I don't understand how can I configure the navigation menu to have the three dots menu '...' like in your demo site.
If I enter 12 menu items they're all displayed on the same line.
Do I miss something ?
Best Regards
PS great theme thank you very much !

Hey @f0x2501, the theme looks for a menu item with three dots ... in its URL and chooses the item as a toggle. Then the menu items after this will be added to the sub-menu automatically. Here is how it's configured in the theme's demo.

Thank you so much for this so useful answer.


No such module 'Google Maps'

I have followed the section "In case of problems" provided in your description though I cannot build my project since a No such module 'Google Maps' error shows up all the time!

Hi @filangel, sorry for the late reply.
This kind of problem is a mess to solve, because of the mixing of old Objective-C APIs and newer Swift frameworks.
I don't have enough time right now to investigate your issue so I'll keep it open, but still I'll try to give you one or two hints:

From which project does your "Linked Frameworks and Libraries" screenshot comes from? Is it from your own project, or the Pods project?
Anyway, here's how the Sample project works (the PXGoogleDirectionsSample project, not the Pods one):

As you can see, there are more than only two items. Also, the PXGoogleDirections.framework is not directly referenced. Instead, the Pods framework bundles everything that is needed.
This might be the first explanation for your problem.

The "Pods" project layout from your last screenshot is also different from mine. Did you alter something after running Cocoapods updates? Here's how mine looks like (again, taken from the Sample project):

As you can see, I don't have any "GoogleMaps.framework" or "GoogleMaps.bundle" files inside the "Frameworks" folder of my Pods project.
I don't see why this would really harm, but you could still try removing these two references and see how it goes...
Please tell me if you managed to work it out.
Regards

Hi @poulpix,
I did not managed to sort it out, the pods seem to be totally messed up.
I started a new project from scratch and I managed to integrate your framework successfully.
Thank you for your time!

Hi @filangel, glad you were able to sort t out!
Would you mind sharing how you did it from scratch so I can fix the pod if needed?
Thanks!

Hi @poulpix,
the usual way; create a new Xcode project, initialize a pod file, install PXGoogleDirections first and then any framework needed.
Regards!

m


Shift/CTRL click secondary options

Adding a option so when you press shift or controll the second option in a menu will become the leftclick option. for example going up or down stairs.

This could be op is some cases probably, its better to simply request specific swaps you want instead of generic swapping for everything when holding shift, and as we already have issue for stairs, closing


Screenshots

Hello @jvzaniolo , as this seems to be happening only with the spaceship theme on vscode, I'm afraid if we change the color by default it might cause problems for others. It should probably be better to apply the color change manually for now.
You can open the settings.json in your vscode and add it to it:
"workbench.colorCustomizations": {
  "terminal.ansiBrightMagenta": "#a277ff"
}

I'm closing this issue for now, but feel free to reopen it if you feel the need.


PR: Fix plugin dependencies solver

Description of Changes
This PR fixes several problems with our new plugin dependencies solver.
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: @ccordoba12

Hello @ccordoba12! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file setup.py:

Line 293:80: E501 line too long (82 > 79 characters)


[Findable] Integrate logout

Integrate existing logout component (packages/data-explorer-ui/src/components/Layout/components/Header/components/ProfileComponent/components/AuthenticationMenu/authenticationMenu.tsx) into AnVIL DX's header (https://github.com/clevercanary/data-explorer/blob/main/packages/data-explorer-ui/src/components/Layout/components/Header/components/ProfileComponent/profileComponent.tsx#L20).
See mocks here and here.
Please also add the actual logout functionality. For now, remove all filters and hard refresh (and navigate) to /explore

complete


Add Cisco as a user + Add TLSv1.3 docs

Add Cisco as a Keda User
Add documentation on how to set the Minimum TLS version for improved security (https://github.com/kedacore/keda/pull/2851)

Checklist

[X] Commits are signed with Developer Certificate of Origin (DCO)

@dgibbard-cisco We are looking for KEDA end-users who want to be interviewed by CNCF for our CNCF Graduation proposal.
Are you willing to share about your experiences on using KEDA? This can be anonymously if need be.
If so, feel free to fill in https://forms.gle/91dD4RVxifWsS2hc7


chore(package): update stylelint dependency

Update stylelint to version 6.2.1 which includes great improvements
especially when linting sass files.

Hello and thanks for taking your time to do this MR.
Technically this change isn't necessary because a dependency on ^6.0.3 basically means 6.x.x, thus people installing it automatically get stylelint version 6.2.1.
I don't mind merging it, but could you change the title of your commit to:

chore(package): update stylelint dependency

Thanks!

Sorry. Seems as if I confused the version operators again. I thought this was causing my linting problems with some of my sass files. Nontheless, thank you for your feedback.

Ouch. In fact, the commit title hasn't changed 😅. Well, no biggie.


feat: support toolchain export

close #322
Support fuelup toolchain export

@sdankel Hi sir, looking forward for your review again😀

Question about the exporting format in the images. It looks to be Json-ish.
Here is an example of a toolchain file and they look to be formatted differently.
Am I overlooking something or are the formats different when exported?

Exporting format is standard toml format as well, you can check it here: https://www.toml-lint.com/ .

@Braqzen @sdankel Hi sir, is there anything that needs to be added for this pr?

Running toolchain export without any args / options I see the following

I would move the message asking for input onto a new line instead of having a single long line. The default is not automatically exported, it prompts for input.
The invalid channel message comes from a break in backwards compatibility. I haven't followed the changes to know how we manage new toolchains etc. so I'm unsure if this x86 channel is valid but I have updated fuelup and installed beta-4 so I assume that it's still valid. All that to say, we are forcing a new format, have we considered the current / old format and whether we ought to support that?
Running toolchain export with beta-4 I get a file containing the toolchain and components however when I run latest-YYYY-MM-DD I get the following error

We ought to handle the difference between a valid channel that the user can type in ex. the beta-X vs the example formats which include a date (as seen above).
According to the possible argument values I should be able to use latest however when I do that it tells me that it's an invalid channel.

Overriding an existing toolchain uses the incorrect toolchain. It ignores my input and uses the default now? When I check the content of the file it has beta-4 so it only prints the incorrect toolchain.

I think this should be discussed with @sdankel first. According to the confusion listed above, it seems that you have mixed up the toolchain name and toolchain channel.
Such as

Running toolchain export without any args / options shows the promotions that ask for a valid channel.

Reference to the comments by @sdankel
This is caused by the default toolchain name you have(latest-x86_64_unknown...) is not a valid channel but a valid toolchain name. When there is no --channel provided, we will use the default toolchain name as the channel, and then check the validation of channel

I would also split the tests a bit further to group them in order to reduce the cognitive load and make it easier to read.
I would opt for either putting all the success cases at the top and panics at the bottom or consider putting the success cases in a mod success and the panics in a mod panic.
After the tests are split I'll look over test coverage because I haven't exactly checked if all cases are covered

Addressed!

This produces a file that looks like this:
toolchain = { channel = "beta-3" }
components = { forc = "0.46.1", forc-explore = "0.28.1", forc-tx = "0.46.1", forc-deploy = "0.46.1", forc-wallet = "0.3.0", fuel-core = "0.20.5", forc-run = "0.46.1" }

But we want it formatted like this:
[toolchain]
channel = "beta-3"

[components]
forc-wallet = "0.3.0",
forc-deploy = "0.46.1",
forc-run = "0.46.1",
forc-explore = "0.28.1",
forc-tx = "0.46.1",
forc = "0.46.1",
fuel-core = "0.20.5"

I fixed the formatting issue and added tests for it. However I noticed it still pulls the wrong name for the channel by default. When I'm on beta-3, it pulls the full toolchain name rather than the shortened dist name for the channel.
This test should pass:
    #[test]
    #[serial]
    fn test_export_beta3_full() {
        create_settings_file();
        create_toolchain_info();

        export(
            ExportCommand {
                name: None,
                channel: Some("beta-3-x86_64-apple-darwin".to_string()),
                force: true,
            },
            &INPUT_NO[..],
        )
        .expect("should succeed");
        assert_toolchain_info(BETA_3_FILE_CONTENTS);
    }

This test should pass:
            ExportCommand {
                name: None,
                channel: Some("beta-3-x86_64-apple-darwin".to_string()),
                force: true,
            },
            &INPUT_NO[..],
        )

One of the valid channel should be <latest-YYYY-MM-DD|nightly-YYYY-MM-DD|beta-1|beta-2|beta-3|beta-4>, not sure if this("beta-3-x86_64-apple-darwin" is not a valid channel) is the reason why this test shouldn't pass?

What I'm saying is if I'm on beta-3, the toolchain name is beta-3-x86_64-apple-darwin. If I just run fuelup toolchain export, I expect it to work. Currently it gives me the error that beta-3-x86_64-apple-darwin is not a valid channel. I think this is because of https://github.com/FuelLabs/fuelup/issues/545

I'm sorry, but this is expected IMO. As we discussed before,

if no toolchain name is provided(run only fuelup toolchain export), we will use the default toolchain name, in your local env, that's beta-3-x86_64-apple-darwin.
Also, as there is no --channel provided, we will try to use the toolchain name as channel first.
Then check the channel name, it will prompt user "beta-3-x86_64-apple-darwin is not a valid channel, please input a valid one"
If user input beta-3, then this will success as beta-3 is a valid channel, otherwise, abort the process as input channel is invalid

if no toolchain name is provided(run only fuelup toolchain export), we will use the default toolchain name, in your local env, that's beta-3-x86_64-apple-darwin.

Yes, and we should parse out beta-3 from the toolchain name using DistToolchainDescription::from_str once https://github.com/FuelLabs/fuelup/pull/566 lands.


can generate malformed data by creating a duplicate Counter

I accidentally generated malformed data by creating two Counters on the same Registry that had the same name, help text.
Example code:
import prometheus_client

reg = prometheus_client.CollectorRegistry()
c1 = prometheus_client.Counter("foo", "bar", labelnames=["baz", "stuff"], registry=reg)
c1.labels({"baz": 1, "stuff": 2}).inc(1)
c2 = prometheus_client.Counter("foo", "bar", labelnames=["baz", "stuff"], registry=reg)
c2.labels({"baz": 3, "stuff": 4}).inc(2)
prometheus_client.push_to_gateway('localhost:8000', job='example', registry=reg)

Data sent in request to push gateway:
# HELP foo bar
# TYPE foo counter
foo{baz="1",stuff="2"} 1.0
# HELP foo bar
# TYPE foo counter
foo{baz="3",stuff="4"} 2.0

Response sent from the push gateway:
text format parsing error in line 4: second HELP line for metric name "foo"

I'd prefer either getting an error from prometheus_client telling me that I can't add two identical metrics.  Alternatively, I'd like for prometheus_client to merge the two metrics and not send two identical HELP lines.

At least client_golang and client_ruby do check for metric uniqueness during registration.

I think a small merge-request would be appreciated here - any takers?

This is more complicated than it might seem at a first glance.

It wasn't an attempt to sound glib, I do not know the architecture, and am unable to guess at the complexity involved. This was more of an attempt to encourage the reporter to maybe contribute a patch for the specific issue experienced.

can you do something to merge it in the generate_latest function maybe?

It is an error state, it should be handled at registration time.


'npx deploy' no longer shows URL after deploying

Describe the bug
npx deploy no longer seems to be showing a URL to visit after deploying, eg: per the docs https://arc.codes/reference/arc-deploy I'd expect:
    Success! Deployed 1 Lambdas in 2.042s
    -------------------------------------
    src/html/get-index ... testapp1-production-get-index ... 0.15 mb
    https://yds7hyimua.execute-api.us-east-1.amazonaws.com/production

However recent npx deploys don't have a URL after Success. create will show a URL, but deploy won't - this is easily replicable using the testapp from https://arc.codes/quickstart/install
    ~\OneDrive\Documents\myapp\testapp $ npx deploy
            app ~ testapp
        region ~ us-west-2
        profile ~ xxx

    √ Success! Deployed 1 Lambdas in 19.729s

    src\http\get-index ... testapp-production-get-index ... 0.19 mb
    ~\OneDrive\Documents\myapp\testapp $

To Reproduce
npx deploy on arc 4.4.5 seems to trigger the issue. But also: Is there a seperate command to see the production / staging locations?
Expected behavior
See the URL
Desktop (please complete the following information):

Windows 10, arc 4.4.5

Is this still an issue? I tried to reproduce and wasn't able to. (Results below.)
Please try testing with both @domain specified and not, if possible.
Right now there isn't a separate command to get production/staging URLs, but here's the code that handles that: https://github.com/arc-repos/architect/blob/master/src/deploy/helpers/get-url.js#L12-L42
Thanks!

With @domain specified:
[15:00:59] (╯ಠ益ಠ)╯︵~/test npx deploy
        app ⌁ ryanblock
     region ⌁ us-west-1
    profile ⌁ personal
    version ⌁ 4.4.9

✓ Success! Deployed 3 Lambdas in 44.606s

src/http/get-index ........ ryanblock-staging-get-index ........ 0.54 mb
src/http/get-robots_txt ... ryanblock-staging-get-robots_txt ... 0.54 mb
src/http/get-000page ...... ryanblock-staging-get-000page ...... 0.54 mb

https://staging.ryanblock.com

No @domain specified:
[15:01:46] (╯ಠ益ಠ)╯︵~/test npx deploy src/http/get-index/
        app ⌁ ryanblock
     region ⌁ us-west-1
    profile ⌁ personal
    version ⌁ 4.4.9

src/http/get-index/ ... ryanblock-staging-get-index ... 0.54 mb

https://xxx.execute-api.us-west-1.amazonaws.com/staging

I'm using 4.4.11 and also cannot reproduce.

Sorry about the wait here, I was away over Christmas. I can't reproduce on 4.4.12, everything now good here. 👍

Huh looks like I spoke too soon. Brand new project:
~\Documents\new-test-app $ npx deploy
        app ~ testapp
     region ~ us-east-1
    profile ~ default
    version ~ 4.4.12

 √ Success! Deployed 1 Lambdas in 10.789s

src\http\get-index ... testapp-staging-get-index ... 0.19 mb

Same thing - continually finishes on the line above. I'm on Windows if
that's relevant, I can test on a Linux VM tomorrow though.
On Wed, 2 Jan 2019 at 10:29 pm, Ryan Block<EMAIL_ADDRESS>wrote:

Re. the above paste: this is a brand new test app that had not previously
been created nor deployed? What happens on subsequent runs of npx deploy?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/arc-repos/architect/issues/235#issuecomment-451005469,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKiMlyg3nLB1BeUo92xj4iBoYaF0HBfks5u_TLfgaJpZM4ZRjlB
.

Hmm, I think perhaps it may be. Here's my first deploy with a new app that didn't exist:

Hmm, I think perhaps it may be. Here's my first deploy with a new app that didn't exist:
(╯ಠ益ಠ)╯︵~/git/arc-test-projects/index-only npx deploy
        app ⌁ testapp
     region ⌁ us-west-1
    profile ⌁ personal
    version ⌁ 4.4.12

src/http/get-index ... testapp-staging-get-index ... Creating

✓ AWS resources created
https://foo.execute-api.us-west-1.amazonaws.com/staging
https://bar.execute-api.us-west-1.amazonaws.com/production

Then a subsequent deploy:
(╯ಠ益ಠ)╯︵~/git/arc-test-projects/index-only npx deploy
        app ⌁ testapp
     region ⌁ us-west-1
    profile ⌁ personal
    version ⌁ 4.4.12

✓ Success! Deployed 1 Lambdas in 13.341s

src/http/get-index ... testapp-staging-get-index ... 0.19 mb

https://foo.execute-api.us-west-1.amazonaws.com/staging

Weird, but glad it isn’t reproducing.
Ps ‘npx inventory --nuke’


RedisClient.connect(RedisURI) fails for unix socket based URIs

Observed Version: 4.1.FINAL

See RedisClient.java Line 788

Still visible in Master: Yes

See RedisClient.java Line 789

Expected:
All connect implementations properly handle unix-socket based URIs
Actual:
The following code fails due to an assertion that is invalid for unix-socket connections:
RedisClient.create().connect(RedisURI.create("redis-socket:///redis/redis.sock"))

The invalid assertion, quoted below, asserts that host is not empty which is always false for unix-socket URIs
private void checkValidRedisURI(RedisURI redisURI) {
    checkArgument(redisURI != null && isNotEmpty(redisURI.getHost()), "A valid RedisURI with a host is needed");
}

Workaround:
Using the codec, uri connect method instead bypasses this invalid assertion
RedisClient.create().connect(new Utf8StringCodec(), RedisURI.create("redis-socket:///redis/redis.sock"))

Note:
The fact that the workaround works is itself most likely a bug

Thanks for this amazing bug report.

Fixed for all versions (3.x, 3.4.x, master [4.x] and 4.1.x).


Yo dawg, I heard you like bots 🤖

This PR is an attempt to reduce the manual overhead of reviewing weekly dependabot PRs.
Dependabot has an automerged_updates feature which allows you to specify dependencies or patterns which will be automatically merged if the CI build passes. In general, this is quite a useful feature, and I'd like to use it to auto-merge some testing/linting dependencies, but unfortunately we can't use it out-of-the-box due to our branch protection rules.
So, following the advice in https://github.com/dependabot/feedback/issues/86 and based on the code in https://github.com/hmarr/auto-approve-action I have made a little Github Action: https://github.com/chris48s/approve-bot/blob/master/index.js If this action finds a PR which:

Was opened by dependabot
Contains the text "If all status checks pass Dependabot will automatically merge this pull request" in the PR body (this text is added by dependabot if the dependency matches a rule defined in automerged_updates )

the action will:

Approve the PR
Add the label "squash when passing" (which will then invite repo ranger to do its thing and start updating the branch/merge it).

That will mean we can keep our branch protection rules but allow bots auto-merge a subset of dependencies and hopefully reduce manual review overhead, allowing us to focus on dependencies where a human intervention adds value.
The downside of this is that if we mark a bunch of dependencies as "squash when passing" all at the same time, repo ranger really crunches through build minutes (this is a problem for both heroku and netlify). Doing this is might make that problem worse rather than better, particularly if we get a week with a lot of matching updates :grimacing:

Wouldn't be the simple-icons package also a good candidate to auto merge?


Documentation - monaco 2.0

Make sure all new features are well documented and covered by enough examples.

@kristofre we can consider to include the examples you mentioned today with this ticket?

Overriding complex values could not be done partially.
e.g. this kind of override will remove .complexThreshold.unit from the complexThreshold object:
parameters:
  threshold: 15
  complexThreshold:
    type: value
    value:
      amount: 15
      unit: sec

groupOverrides:
  - group: development
    override:
      parameters:
        complexThreshold:
          type: value
          value:
            amount: 20

For this we should define something like an overrideStrategy flag which defines
what to do with the values. Otherwise it will always merge the values.
The other question is, if it might make sense to split the value parameters into
multiple parameter types such as scalar, list, map. Because some merge
strategies only make sense on some of those types.

Regarding type: references
You can reference to any type of properties, but it case you are referring to type: value it's not possible to reference subvalues. e.g.
...
    parameters:
      someMultiValues:
        type: value
        value:
          mike: lupus
          john: fabula

It is not allowed to map to the values of someMultiValues

    parameters:
      depParam:
        type: reference
        project: infrastructure
        api: alerting-profile
        config: some-config
        property: someMultiValues.mike

When is V2 of monaco going GA? We need settings 2.0 API to describe log metrics based on log queries.

Hi not sure this is the right place, but I would like to see how we can lookup a cluster-->cloud application prior to creating a dashboard against it. The dashboard example we have needs the cloudapplication entityId.

Hi not sure this is the right place, but I would like to see how we can lookup a cluster-->cloud application prior to creating a dashboard against it. The dashboard example we have needs the cloudapplication entityId.

Hi @kbocock-krg, not quite the right place - would have been fine to open a new discussion for this question I'd say :)
In general, there is currently no way to look-up and reference the IDs of existing entities that are not configured by monaco. This is planned as an upcoming feature though.
If the entity is configured via monaco you can reference its ID (https://dynatrace-oss.github.io/dynatrace-monitoring-as-code/configuration/yaml_config#referencing-other-configurations)
IIRC cloud applications are auto-discovered though, not configured right?
In that case your only option for now is sadly to manually get the entity ID of the application (it is e.g. part of the URL when viewing an entity's UI page).


Issue #968: document methods corresponding to file test operators

Issue #968: document methods corresponding to file test operators in IO::Path.

Hi,
Thanks for the contribution. Unfortunately, it looks like this PR was missed and someone else documented these methods in another commit.
In the future, feel free to ping us if you get no response (by commenting on the PR or bugging us on irc


Join query results in sub object

I have relationship between user and post and when I run:
 knex.from('posts').innerJoin('users', 'users.id', 'posts.user_id').then(res => {
    console.log(res);
  })

I am getting flat object with all the keys like this:
{
    "id": 1,
    "title": "Modi error facere est voluptatum rerum.",
    "content": "aliquam qui nihil",
    "user_id": 1,
    "name": "Judah",
    "email"<EMAIL_ADDRESS> }

There is a way to divide the user to be in its own object like this?
{
    "id": 1,
    "title": "Modi error facere est voluptatum rerum.",
    "content": "aliquam qui nihil",
    "user_id": 1
    "user": {
      "name": "Judah",
      "email"<EMAIL_ADDRESS>    }
  }

No, not with knex... You'd need a higher level orm abstraction like bookshelf or knex-orm or something.
You could also explicitly specify the columns instead of doing select * and use a package like treeize to achieve that result as well.

Thanks!


Alexa triggers itself (herself) when playing audio

So this thing ...
My thoughts / observations:

Sometimes it happens for an obvious reason like when she's talking about herself.
Sometimes it happens even when she doesn't say her name.
Snowboy might be more accurate and could solve (2).

Do some sort of sound cancellation - oh man, this wouldn't be easy. This would depend on each specific device - we would probably need some calibration. And how exactly would we get the output audio? Syncing with the played file doesn't sound easy. Should playback_handlers provide interface for this? People have various operating systems and sound backends - this would be a nightmare to support all. PulseAudio has output monitors that could probably be used for this, I don't know.

Your ideas?

This is really tough to solve.
My initial thought is that you would need a predictable hardware envelope and some DSP to cancel out the speaker.  This might be how the Echo works, since they know where their speaker is in relation to their microphone.
But I start to doubt that when I realize the Dot is designed to use a separate speaker.  I don't have an actual echo of any sort, so I'm not sure whether the Dot hears its own trigger word or not.
(At one point I thought it would be funny to say "Alexa, Simon says Alexa Simon says Alexa" to see if she could double-trigger herself, but the trigger response wasn't fast enough yet.)
(Also, I've had a heckuva time this last few months listening to anything news-y because the word "election" would trigger my box and interrupt whatever I was listening to.)

election :smile: That's hilarious :smiley:
But back to the topic - I just got a very silly idea. It would be non-ideal, would eat resources, but is something that is theoretically doable. We could set up a spare hot-word detector and tap into the output of AlexaPi. If it detected the hot-word, it would disable the voice trigger for like a second and then enable it back. We would have to solve some delays - either playback or the trigger so it would catch the false positive in time.
But yeah, however (and if) we decided to do this, it is a thing of a somewhat distant future as we have many many things to take care of first.

It's crazy, but I like it!
It would add some processor load--and effectiveness would probably depend on the platform (Zero Vs. Pi 3, etc.).  But it's probably a more feasible hack than constantly trying to noise-cancel.

Snowboy supports multiple hotword detection.

I thought triggering (listening for hotword) is disabled when she is speaking the standard response. It only works on streams like music or flash briefing.
I also changed my trigger word to "jarvis" (iron man) which seems to detect better and doesn't come up as much.

I think noise cancelling would be ideal! (though hard to implement). Currently, when I am listening to music, the Alexa-Pi doesn't recognize the wake up at all. I tried it with the Amazon's Sample app, and it is the same thing. While playing music, it practically never hears the wake word.

Alexa Triggering Herself is driving me crazy! :(    I created an app that plays various radio traffic from various agencies - Every time I encounter a situation where alexa triggers herself and sometimes stops playing the audio stream.
Does anyone have a solution for this?

Headphones.  :)
Realistically it would take some consideration to develop something that would disable that.  Perhaps two instances of the voice recognition running simultaneously, with one on the audio stream and one on the microphone stream, and not engaging when the audio stream is triggered.  Not likely to be added unless someone has time and motivation to do it though.
Beyond that, you could change the trigger word and try to find something more obscure.
I know that iheartradio channels are playing commercials for themselves where they say "Alexa, play KBCO on iheartradio" and stuff like that.  Drives me crazy!


connection "paxos_join_group" not available

I'm receiving the following error trying to setup pg_paxos on postgres 9.5.5. This is on a second node I'm trying to add to the group. Looks like this was filed before (#13) but that issue was closed without comment.
postgres=# select paxos_join_group('group0', 'host=<IP_ADDRESS>', 'host=<IP_ADDRESS>');
ERROR:  connection "paxos_join_group" not available
CONTEXT:  SQL statement "SELECT dblink_disconnect('paxos_join_group')"
PL/pgSQL function paxos_join_group(text,text,text) line 92 at PERFORM

This was caused by configuration issue. Needed to set listen_addresses and setup allowed connections in pg_hba.conf. It seems like the initial connection must have failed, but the error was masked and only saw the error for dblink_disconnect.


Added missing tests, corrected tests

This is an update of this pull request: https://github.com/MarketSquare/robotframework-browser/pull/274
Some corrections in click with options are made.
I've added some tests, which pass.

Superceded by #280


lots of error if open file in readonly mode

nvim --version:

NVIM v0.6.0-dev+12-gf515baedc
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

Operating system/version:

ArchLinux latest

or

Ubuntu 21.04 (Hirsute Hippo)

Describe the bug
nvim -M the-file-to-open
Rg keyword
result in error if move up and down between quickfix list item:
E5108: Error executing lua ...vim/site/pack/packer/start/nvim-bqf/lua/bqf/floatwin.lua:90: Buffer is not 'modifiable'
Error detected while processing CursorMoved Autocommands for "<buffer=11>":
E5108: Error executing lua ...vim/site/pack/packer/start/nvim-bqf/lua/bqf/floatwin.lua:90: Buffer is not 'modifiable'
E5108: Error executing lua ...vim/site/pack/packer/start/nvim-bqf/lua/bqf/floatwin.lua:90: Buffer is not 'modifiable'
E5108: Error executing lua ...vim/site/pack/packer/start/nvim-bqf/lua/bqf/floatwin.lua:90: Buffer is not 'modifiable'

To Reproduce using nvim -u /tmp/mini_bqf.lua
cat /tmp/mini_bqf.lua
--
-- this mini config is desired for demonstrate kevinhwang91/nvim-bqf issue
--

local execute = vim.api.nvim_command
local fn = vim.fn

local install_path = "/tmp/site/pack/packer/opt/packer.nvim"

if fn.empty(fn.glob(install_path)) > 0 then
    execute("!git clone https://github.com/wbthomason/packer.nvim " .. install_path)
end

execute "packadd packer.nvim"

vim.cmd [[packadd packer.nvim]]
vim.cmd [[autocmd BufWritePost mini_bqf.lua PackerCompile]]
vim.cmd [[autocmd BufWritePost mini_bqf.lua PackerInstall]]

-- basic ui config
vim.wo.number = true

local use = require("packer").use
require("packer").startup {
    function()
        use "jremmen/vim-ripgrep"
        use "kevinhwang91/nvim-bqf"
    end,
    config = { package_root = "/tmp/site/pack" },
}

Steps to reproduce the behavior:

nvim -i NONE -u /tmp/mini_bqf.lua
nvim -i NONE -u /tmp/mini_bqf.lua -c "PackerInstall"
nvim -i NONE -u /tmp/mini_bqf.lua -c "PackerCompile"
cd /tmp && git clone https://github.com/kevinhwang91/nvim-bqf
cd nvim-bqf && nvim -i NONE -u /tmp/mini_bqf.lua -M ./lua/bqf.lua
:Rg api

E5108: Error executing lua ...vim/site/pack/packer/start/nvim-bqf/lua/bqf/floatwin.lua:90: Buffer is not 'modifiable'
Error detected while processing CursorMoved Autocommands for "<buffer=11>":
E5108: Error executing lua ...vim/site/pack/packer/start/nvim-bqf/lua/bqf/floatwin.lua:90: Buffer is not 'modifiable'
E5108: Error executing lua ...vim/site/pack/packer/start/nvim-bqf/lua/bqf/floatwin.lua:90: Buffer is not 'modifiable'
E5108: Error executing lua ...vim/site/pack/packer/start/nvim-bqf/lua/bqf/floatwin.lua:90: Buffer is not 'modifiable'

Expected behavior
no error happened
Screenshots

Additional context
without -M (readonly) limit, this plugin works very well. (and -m also works well)

Would you tell me why you run nvim with -M .

Would you tell me why you run nvim with -M .

sometimes I use view to open a file only for read, and it ensure me not touch the file content.
❯ file /usr/bin/view
/usr/bin/view: symbolic link to /etc/alternatives/view

so I'll have a view.sh like this:
#!/usr/bin/env bash

/usr/local/bin/nvim -M "$@"

and link it to /etc/alternatives/view

Make sense. This use case what I learn today. Thanks.

Make sense. This use case I have learned today. Thanks.

@kevinhwang91
👍 thanks for the "quick fix" for quickfix, this plugin is really awesome!


two minor logging changes

Make the logging in HealthCheckUpdate more concise by leveraging the previously added TabletIdent string representation and adding an analogous function for concisely identifying a shard Target.
Along the way I happened to notice that the warning log added in #3084 didn't reference all the arguments in the format string, so I reworked the string so all the arguments are properly included.

LGTM
@sougou please merge when convenient


Dapr upgrade from 1.10.2 to 1.11.1 issues using helm chart

HI,
We are using helm charts to upgrade dapr version from 1.10.2 to 1.11.1 on kubernetes host and following issues are observed.

Post upgrade, dapr-operator status is in crashloopbackoff
dapr-dashboard component pod not found.

For the first query, we noticed that the solution is mentioned in issue #6645.
But could you please let us know why dapr-dashboard is missing in 1.11.1? Is there a way to install it?

The dashboard is now installed separately: https://github.com/dapr/dashboard#installation

In the next releases also, Do we need to install the dashboard component seperately? or will it come along with the helm package?

In the next releases also, Do we need to install the dashboard component seperately? or will it come along with the helm package?

The dashboard has been removed permanently from the main Dapr Helm chart


Bug 1254907 - Items of project explorer are not refreshed automatically

Few goals here.

Fix the bug
Making the code more unit testable
Splitting the responsibilities in BaseViewPresenter to smaller units. The logic for what gets shown and when we update is getting out of hand. I hope the changes help more than confuse.

This PR depends on a guvnor PR and a PR in kie-wb-distributions depends on this.

This was needed for the release so merged in.
https://github.com/droolsjbpm/kie-wb-common/commit/a85573710b986444dd14f2ada4b3efce377b737b


[WIP] training_data field

supersedes https://github.com/bioimage-io/bioimage.io/pull/244

👷 Deploy request for bioimage pending review. Visit the deploys page to approve it
🔨 Explore the source changes: 73ec3fc

I don't seem to have sufficient rights to approve pr test deployment...


docs: Transaction consensus rules: Coinbase rules

Motivation
We want to make sure all coinbase transaction rules are implemented and quoted in the format we want in the codebase.
If merged this will close https://github.com/ZcashFoundation/zebra/issues/3427
Solution
Make the needed changes, almost all was just adjusting to the new format as rules docs were already there.
Review
Anyone can review.
Reviewer Checklist

[ ] Consensus rule docs are in a good spot.
[ ] All the rules in the ticket were added or modified in this PR.
[ ] No piece of doc comment that i want to keep was deleted.

Follow Up Work
The other 2 sections of the transaction consensus rules which are in the following issues:

https://github.com/ZcashFoundation/zebra/issues/3428

A coinbase transaction for a block at block height greater than 0 MUST have a script that, as its first item, encodes the block height height as follows. For height in the range {1..16}, the encoding is a single byte of value 0x50 height. Otherwise, let heightBytes be the signed little-endian representation of height, using the minimum nonzero number of bytes such that the most significant byte is < 0x80. The length of heightBytes MUST be in the range {1..5}. Then the encoding is the length of heightBytes encoded as one byte, followed by heightBytes itself. This matches the encoding used by Bitcoin in the implementation of [BIP-34] (but the description here is to be considered normative).
I was not able to find the above rule, i am pretty sure we did this(or part of it) but can't remember where.

I was not able to find the above rule, i am pretty sure we did this(or part of it) but can't remember where.

Sounds like:
https://github.com/ZcashFoundation/zebra/blob/fa071562fd0b891f29143e4cc8d17b34b4b1cf10/zebra-chain/src/transparent/serialize.rs#L68


services/horizon: Move integration tests away from stellar/quickstart.

PR Checklist
PR Structure

[x] This PR has reasonably narrow scope (if not, break it down into smaller PRs).
[x] This PR avoids mixing refactoring changes with feature changes (split into two PRs
otherwise).
[x] This PR's title starts with name of package that is most changed in the PR, ex.
services/friendbot, or all or doc if the changes are broad or impact many
packages.

Thoroughness

[x] This PR adds tests for the most critical parts of the new functionality or fixes.
[ ] I've updated any docs (developer docs, .md
files, etc... affected by this change). Take a look in the docs folder for a given service,
like this one.

Release planning

[x] I've updated the relevant CHANGELOG (here for Horizon) if
needed with deprecations, added features, breaking changes, and DB schema changes.
[x] I've decided if this PR requires a new major/minor version according to
semver, or if it's mainly a patch change. The PR is targeted at the next
release branch if it's not a patch change.

What
This moves the integration test infrastructure away from creating a stellar/quickstart:testing instance for each test, preferring instead to use the modular Docker Compose method.
Why
We want more flexibility with our integration tests; see #3037 for more discussion.
This closes #3031 and closes #3121.
Known limitations
A couple of kinks:

Ctrl+C is unreliable as far as cleanup goes, but per discussion below we may want to address this in a later PR, since it it that failing tests are properly handled on the next run.

@Shaptic could you please make sure that the captive-core integration tests (which are currently disabled until #3144 ) are also ported?

I've only tested on Linux so far (for obvious reasons) which has some quirks relative to other platforms, purely judging from the start.sh script we have.

Ctrl+C reaaaally does not work well, and I haven't looked at what happens when tests fail, either.

It's still TBD whether or not we want to run the horizon-postgres container: from a "just let me run the tests" perspective, it might be better/cleaner to keep the DBs as self-contained as possible.

Is this resolved?

I've only tested on Linux so far (for obvious reasons) which has some quirks relative to other platforms, purely judging from the start.sh script we have.

I've removed the platform specific quirks so it should work on all operating systems which can run docker-compose. I've run the tests locally on my macbook and on linux via circleci.

It's still TBD whether or not we want to run the horizon-postgres container: from a "just let me run the tests" perspective, it might be better/cleaner to keep the DBs as self-contained as possible.

Let's not run the horizon-postgres container for now.

Ctrl+C reaaaally does not work well, and I haven't looked at what happens when tests fail, either.

When the tests fail, the cleanup hook will destroy all the docker containers created by the integration tests.
Ctrl+C seems to abort instantly for me. However, when I Ctrl+C the docker containers from the integration tests are still running.

I refactored a small bit regarding how we find the docker-compose file in the latest changes 4ede3af69a8e0c79040748def271013b1e912fef.
Unrelated to the above (fails w/ and w/o the changes), but on my local it looks like a single test will fail intermittently with a "still ingesting" error. I've tried but can't track down the cause; it appears to only happen on either TestProtocol14StateVerifier or TestProtocol15Basics. Not when run individually, mind you, but if all of the tests are run.
I can definitely see our introduction of concurrency to testing (incl. the captive core stuff) causing hard-to-track-down and Heisenbug-esque test failures. I'm not sure if this is just something mucked up with my environment, but are we ready to merge this?

@Shaptic I thought I fixed the "still ingesting" error earlier in https://github.com/stellar/go/pull/3143/commits/016c91e9da8922aa314f662f24813be09da710ca . But then I saw your comment and was able to reproduce the error in CircleCI. I finally figured out the cause and it's because the root endpoint determines the sequence numbers from a global ledger.State variable. This global variable is mutable and persists between test runs. Horizon periodically calls ledger.SetState() to update the variable. However, it's possible that the check in https://github.com/stellar/go/pull/3143/commits/016c91e9da8922aa314f662f24813be09da710ca is executed before ledger.SetState() is called for the first time by the new Horizon instance.
In https://github.com/stellar/go/pull/3143/commits/027a48c5191625ef43c7d73de4fb11f411bf0c64 , I make sure to clear the ledger state after every test run. This will ensure that waitForHorizon() will make sure to wait until Horizon ingestion is ready.
I have run the integration tests on CircleCI 5 times with this latest fix and so far there haven't been any failures.

Wow, ridiculously subtle, thanks for noticing that! I ran the suite a few times locally, as well: only seeing green :tada:. I think we can push back resolving the Ctrl+C inconsistencies to another PR to get this in and running.
@stellar/horizon-committers anything we're missing?


502: Bad Gateway on Start-up

Hi,
got the add-on installed, but getting an 502: Bad Gateway when trying to run the add-on.
Home Assistant 0.116 on RBpi4 in docker.
Got 8099 allowed in the ufw rules.
8099 ssl:default [Connection refused] though
What am i doing wrong?

Can you post your config? Why are you not just using ingress? Did you setup your new_api property? Usually the built-in frontend takes up to 5 minutes to start from the time the add-on started. Also this is influenced on the number of automations or if you have other stuff like Zigbee2mqttAssistant

Hi,
Not too much automation running yet and no other stuff installed. Even going through ingress i am getting the same error.
I'm fairly new to MQTT so i might be missing something. Installed Mosquitto broker.
Adding the new-api: experimental code for example the config-check fails.

Can you post your z2m config? Did you wait for 5 minutes?

data_path: /share/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: false
mqtt:
base_topic: zigbee2mqtt
server: 'mqtt://core-mosquitto'
user: my_user
password: my_password
serial:
port: /dev/ttyACM0
advanced:
log_level: info
pan_id: 6754
channel: 11
network_key:
- 1
- 3
- 5
- 7
- 9
- 11
- 13
- 15
- 0
- 2
- 4
- 6
- 8
- 10
- 12
- 13
availability_blocklist: []
availability_passlist: []
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
port: 8099
experimental:
new_api: true
socat:
enabled: false
master: 'pty,raw,echo=0,link=/dev/ttyZ2M,mode=777'
slave: 'tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5'
restartdelay: 1
initialdelay: 1
options: '-d -d'
log: false
And yes, waited 30 minutes;)

Where do you see 8099 ssl:default [Connection refused] ?

If you boot the add-on and go directly to the tab in the side bar, you will see this error. Can you get debug logs from the add-on?

}Debug information end
./run.sh: line 24: [Info] Configuration backup found in /share/zigbee2mqtt/.configuration.yaml.bk. Skipping config backup.: No such file or directory
[Info] Socat is DISABLED and not started
2020-10-12T16:23:34: PM2 log: Launching in no daemon mode
2020-10-12T16:23:35: PM2 log: App [npm:0] starting in -fork mode-
2020-10-12T16:23:35: PM2 log: App [npm:0] online

<EMAIL_ADDRESS>start /app
node index.js
Zigbee2MQTT:info  2020-10-12 16:23:39: Logging to console and directory: '/share/zigbee2mqtt/log/2020-10-12.16-23-38' filename: log.txt
Zigbee2MQTT:info  2020-10-12 16:23:40: Starting Zigbee2MQTT version 1.15.0-dev (commit #ebdf4bb)
Zigbee2MQTT:info  2020-10-12 16:23:40: Starting zigbee-herdsman...
Zigbee2MQTT:error 2020-10-12 16:23:40: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2020-10-12 16:23:40: Failed to start zigbee
Zigbee2MQTT:error 2020-10-12 16:23:40: Exiting...
Zigbee2MQTT:error 2020-10-12 16:23:40: Error: Error while opening serialport 'Error: Error: Resource busy, cannot open /dev/ttyACM0'
at Znp. (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:136:32)
at Generator.next ()
at /app/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:27:71
at new Promise ()
at __awaiter (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:23:12)
at SerialPort. (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:134:49)
at SerialPort._error (/app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
at /app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12

Your add-on is crashing, as your serial port setup is incorrect: "Error: Error while opening serialport 'Error: Error: Resource busy, cannot open /dev/ttyACM0'. Make sure you don't have any other add-on using the serial port and that the serial port is the correct one.
You can use the documentation to find out the serial port: https://github.com/danielwelch/hassio-zigbee2mqtt/blob/master/zigbee2mqtt/DOCS.md#notes

I have deconz running that is look at a conbee II stick? Might that be the issue?

I had this problem too and solved it by reinstalling zigbee2mqtt if it helps anything

If you have deconz with conbee stick you should still use the documentation to find out the serial port, however you need an extra setting:
serial:
  port: /dev/ttyACM0
  adapter: deconz

This is part of the documentation here: https://www.zigbee2mqtt.io/information/supported_adapters.html#conbee-ii

Okay, slowly getting there, still bad gate-way but also:
Zigbee2MQTT:error 2020-10-13 16:46:39: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)

Make sure you also have firmware updated with the proper one.

Conbee is in the latest firmware. System just fully rebooted and deconz is stopped. Still same error:(
Port is correct:
13 16:00 usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2213029-if00 -> ../../ttyACM0

Did you update the config with the adapter setting?

Still same error on the config. and still   Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)

The config goes in your add-on config, not in your home assistant config.

Feels stupid.....
So now we're at:
Zigbee2MQTT:info  2020-10-13 19:08:06: Logging to console and directory: '/share/zigbee2mqtt/log/2020-10-13.19-08-05' filename: log.txt
Zigbee2MQTT:info  2020-10-13 19:08:06: Starting Zigbee2MQTT version 1.15.0-dev (commit #24188a3)
Zigbee2MQTT:info  2020-10-13 19:08:06: Starting zigbee-herdsman...
CREATED DECONZ ADAPTER
Zigbee2MQTT:error 2020-10-13 19:08:18: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2020-10-13 19:08:18: Failed to start zigbee
Zigbee2MQTT:error 2020-10-13 19:08:18: Exiting...
Zigbee2MQTT:error 2020-10-13 19:08:18: undefined

Can you add to the zigbee2mqtt add-on the option:
zigbee_herdsman_debug: true

And send what you get ?

I think we did it! Thank you very very much!

The config goes in your zigbee2mqtt add-on config, not in your home assistant config.

How do you edit the yaml of the addon, and not the config of HA?  I am using HA/OS on a VM in Virtualbox on a windows 10 machine.

You just use the add-on config in the Supervisor, no need to edit yaml file on disk.

You need both like I said in #446 (comment)
serial:
  port: /dev/ttyACM0
  adapter: deconz

thanks buddy... you save me. lucky i found an answer for it...! it works.

Hi, i add these commands
serial:   port: /dev/ttyACM0   adapter: deconz
But appear the same error

The config gets overwitten every time Zigbee2mqtt starts, and I read elsewhere I'm supposed to edit that using the GUI. But the GUI won't start until I change it. Catch 22....

Hi everyone, i am completly new to Homeassistant but already have a first problem. I hope someone here can help me.
I have the same issue: When starting zigbee2mqtt i see only "Bad gateway"
This is my configuration:
data_path: /config/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: true
mqtt:
base_topic: zigbee2mqtt
user: xxxx
passsword: xxxxxx
serial:
port: /dev/ttyACM0
adapter: deconz
advanced:
log_level: warn
pan_id: 6754
channel: 11
network_key:
- x
- x
- x
- x
- x
- x
- x
- x
- x
- x
- x
- x
- x
- x
- x
- x
availability_blocklist: []
availability_passlist: []
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
port: 8099
experimental: {}
availability: false
socat:
enabled: false
master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
options: '-d -d'
log: false
zigbee_herdsman_debug: true
An this is the log:
Zigbee2MQTT:error 2022-01-19 19:13:32: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-01-19 19:13:32: Failed to start zigbee
Zigbee2MQTT:error 2022-01-19 19:13:32: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-01-19 19:13:32: Exiting...
Zigbee2MQTT:error 2022-01-19 19:13:32: undefined
[19:13:32] INFO: Zigbee Herdsman debug logging enabled
[19:13:32] INFO: Handing over control to Zigbee2mqtt Core ...

<EMAIL_ADDRESS>start
node index.js
2022-01-19T18:13:39.067Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT'
2022-01-19T18:13:39.075Z zigbee-herdsman:deconz:driver Set delay to 0
CREATED DECONZ ADAPTER
2022-01-19T18:13:39.079Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[XXXXXXXXXXXXXXXXXXXXXXXX],"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"path":"/dev/ttyACM0","adapter":"deconz"},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}'
2022-01-19T18:13:39.080Z zigbee-herdsman:deconz:driver Opening with /dev/ttyACM0
2022-01-19T18:13:39.093Z zigbee-herdsman:deconz:driver Serialport opened
2022-01-19T18:13:39.095Z zigbee-herdsman:controller:log Started with result 'resumed'
2022-01-19T18:13:39.095Z zigbee-herdsman:controller:log Injected database: true, adapter: true
2022-01-19T18:13:39.103Z zigbee-herdsman:deconz:driver send read parameter request from queue. seqNr: 1 paramId: 1


ScrollToPosition doesn't work as expected with  as a functional component

I have gone through these following points

[x] Check latest documentation: https://docs.nativebase.io/
[x] Check for existing open/closed issues for a possible duplicate before creating a new issue: https://github.com/GeekyAnts/NativeBase/issues
[x] Use the latest NativeBase release: https://github.com/GeekyAnts/NativeBase/releases
[x] Check examples from NativeBase KitchenSink https://github.com/GeekyAnts/NativeBase-KitchenSink

Issue Description

node, npm, react-native, react and native-base version, expo version if used, xcode version
react-native - 0.61.2
native-base - 2.13.8
xcode - 11.2.1
Expected behaviour
Expect the ScrollView / Content component to scroll to position when screen mounts
Actual behaviour
Component does not scroll to position UNLESS a timer is set or if the developer does a "Fast Refresh"
Steps to reproduce
import React, { useEffect, useRef } from 'react'
import { Text, View, StyleSheet } from 'react-native';
import { Container, Content } from 'native-base'

const App = () => {

  const ListItem = ({ text }) => (
    <View style={styles.listItemStyle}>
      <Text>
        {text}
      </Text>
    </View>
  )

  const list = ['crosstek', 'outback', 'forester', 'element', 'fit', 'civic', 'words', 'chrysler', 'cats', 'ipsum', 'config', 'mousepads', 'ben', 'its all in my head']

  const contentRef = useRef();

  const indexToScrollTo = 5

  const scrollIt = () => {
    const itemHeight = 50;
    const yValue = itemHeight * indexToScrollTo;
    contentRef.current._root.scrollToPosition(0, yValue)
  }

  useEffect(() => {
    scrollIt()
  },[])

  // useEffect(() => {
  //   setTimeout(() => {
  //     scrollIt()
  //   }, 500)
  // })

return (
  <Container style={styles.container}>
    <View style={styles.topView} />
    <Content ref={contentRef}>
      {list.map(item => <ListItem text={item} />)  }
    </Content>

  </Container>
  )
}

export default App

Is the bug present in both iOS and Android or in any one of them?
both
Any other additional info which would help us debug the issue quicker.
###Important
https://snack.expo.io/HkjbPNNSI

When the screen first mounts, it does not scroll.
Make any changes to the code to force a fast refresh, and then it scrolls.
Un-comment the useEffect with the timer in it and comment the other one out and it ends up working

I am face same now. I have update react native version nativebase v2 not working


Couldn't download IntelliCode model. Please check your network connectivity or firewall settings. Error Message: EROFS: read-only file system, open 'models.json', (Error)

Hello Guys need your help.
Thanks in advance
I just try to download extension and got an error.
Disclaimer I this is my home computer so I do not use any proxy and I checked permission I have read and write permissions
Log:
Language server is set to "Default". Pylance is used as current language server.
Acquiring model
vs-intellicode-python was passed a model: {}.
Cannot find bundled model file: java_intellisense-members, skip
Cannot find bundled model file: javascript_intellisense-members, skip
Cannot find bundled model file: python_intellisense-members, skip
Cannot find bundled model file: python_intellisense-members-lstm, skip
Cannot find bundled model file: python_intellisense-members-lstm-pylance, skip
Cannot find bundled model file: sql_intellisense-members, skip
Acquiring model 'intellisense-members-lstm-pylance' for python
Querying IntelliCode service for available models.
Downloading model.
Starting download of https://intellicodeprodstorage.blob.core.windows.net/models-prod-output/Output_E61945A9A512ED5E1A3EE3F1A2365B88F8FE_E4E9EADA96734F01970E616FAB2FAC19?skoid=579c8bfb-cc1e-48b6-8b69-047c16887b6b&sktid=975f013f-7f24-47e8-a7d3-abc4752bf346&skt=2024-02-01T02%3A58%3A35Z&ske=2024-02-02T02%3A58%3A35Z&sks=b&skv=2020-02-10&sv=2020-02-10&se=2024-02-01T09%3A24%3A25Z&sr=b&sp=r&sig=2SuWH0j3cca48UL1zTu%2Bg4JwicZl33fen4GyP3a3s9Q%3D
Download complete.
Could not reach the IntelliCode service. Checking the local model cache.
None of the cached models match.
Couldn't download IntelliCode model. Please check your network connectivity or firewall settings. Error Message: EROFS: read-only file system, open 'models.json', (Error)
No model v2 available for Python, trying v1.
vs-intellicode-python was passed a model: {}.
Cannot find bundled model file: java_intellisense-members, skip
Cannot find bundled model file: javascript_intellisense-members, skip
Cannot find bundled model file: python_intellisense-members, skip
Cannot find bundled model file: python_intellisense-members-lstm, skip
Cannot find bundled model file: python_intellisense-members-lstm-pylance, skip
Cannot find bundled model file: sql_intellisense-members, skip
Acquiring model 'intellisense-members-lstm' for python
Querying IntelliCode service for available models.
Downloading model.
Starting download of https://intellicodeprodstorage.blob.core.windows.net/models-prod-output/Output_15708AE89896CA5DF1690433B7A8D93D28B7_215F8B4FAB1F4663ABD624559FD205B9?skoid=579c8bfb-cc1e-48b6-8b69-047c16887b6b&sktid=975f013f-7f24-47e8-a7d3-abc4752bf346&skt=2024-02-01T02%3A57%3A39Z&ske=2024-02-02T02%3A57%3A39Z&sks=b&skv=2020-02-10&sv=2020-02-10&se=2024-02-01T09%3A25%3A47Z&sr=b&sp=r&sig=tzuMaDdkKdxZyEVkbxOfQU85fW2UxWedEpl6QKYFyRA%3D
Download complete.
Could not reach the IntelliCode service. Checking the local model cache.
None of the cached models match.
Couldn't download IntelliCode model. Please check your network connectivity or firewall settings. Error Message: EROFS: read-only file system, open 'models.json', (Error)
No model available for Python, cannot continue.
Product and Version [VS/VSCode]: VSCode Version: 1.85.2 (Universal)
Commit: 8b3775030ed1a69b13e4f4c628c612102e30a681
Date: 2024-01-18T06:40:32.531Z
Electron: 25.9.7
ElectronBuildId: 26354273
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 23.2.0
OS Version [macOS/Windows]: macOS Sonoma 14.2.1 (23C71)
IntelliCode Extension Version:  Latest try to just download
Target Platform or Language [e.g. Node.js]: Python

This is probably fixed in v1.3.1. Since the model files are now included in the extension, there should be no need to modify models.json anymore.
However if ~/.vscode is on a read only file system there could still be problems if the model file needs to be unpacked. Can you please update and try?


Update howto-identity-protection-configure-risk-policies.md

correct the prerequisites of "secure password change" instead of "SSPR"

@MicrosoftGuyJFlo
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


Security bug : ZOD Authentication in registration of the User

@abhay-raj19 I have not seen any Zod Authentication in this project in backend.
As a Good Authenticated Site. There Should be Zod Authentication on website , So then the user  can't add wrong type of username and passwords while registring to the database
More  about  Zod  -> https://zod.dev/

@abhay-raj19 I want to contribute to this Project as I know all about Zod Authentication on the site.
Please Assign me this issue.

I am interested in solving this issue please assign this issue to me under GSSOC'24

Good to go @ujjwalagrawal-1 implement Zod validations just make sure that all those schemas you should make inside the seprate folder and import them in validation files.

Sure @abhay-raj19  Thanks for Assigining me


npm not installing corrrectly

Looks like you must have used sudo npm install at some point. Try rm -rf ~/.npm?

@ljharb
Thank you, that fixed it :smiley:


Discover Sales Order API from S/4HANA Cloud System

Tutorial: https://developers.sap.com/tutorials/cp-apim-sales-tracker-api-discover.html
Is this tutorial meant for the Neo APIM as I am trying with the CF APIM and its failing?
Some of the setup steps were different but at the point where we choose an API (step 2: create proxy) it fails when I click COPY on the api with this error:
Unable to copy API: Creation of the API proxy from the OAS 3.0 version of the API is not supported.

How can I get around this? Are the sales order api's from S4Cloud not version compatible with APIM now?
Do you know if there are any recent APIM tutorials? I have found this one as well - but as there are not dates on any tutorials its hard to tell if they are out of date or not?

Dear colleague,
this tutorial is for both neo and CF
The copy issue is a known issue but kindly log a csn on OPU-API-OD-DT.
Regards
Shilpa

Dear colleague,
this tutorial is for both neo and CF
The copy issue is a known issue but kindly log a csn on OPU-API-OD-DT.
Regards
Shilpa

Thank you for your feedback. We haven't heard from you in the past 30 days, so we are closing the issue.
If you still have questions, feel free to reopen the issue.


Document how to use Calico policy in conjunction with k8s Policy

This is hard to figure out right now.
See here: https://github.com/projectcalico/calico/issues/1835#issuecomment-378897845
Expected Behavior

Should have a usage guide or tutorials explaining how Calico NetworkPolicy interacts with Kubernetes NetworkPolicy, and the use cases for doing so.
Current Behavior

No such guide.
Possible Solution

Write one.
Steps to Reproduce (for bugs)

Context

Your Environment

Calico version
Orchestrator version (e.g. kubernetes, mesos, rkt):
Operating System and version:
Link to your project (optional):

Do we have any progress on this?

Bump!

I think the docs have come a long way here. Some examples:

https://docs.projectcalico.org/v3.8/security/kubernetes-network-policy
https://docs.projectcalico.org/v3.8/security/calico-network-policy


Admin Panel Not Working

The admin panel is not accessible with the provided password.

You have to add your MongoDB database cluster link in the config.env file. If you want to run the front end you have to execute the command "npm start" for the back end you have to execute the command "nodemon server". After that, you have to create an admin folder just like the user folder in the MongoDB database. If you already have one named admin you have to copy a user with a known username and password from the user list and paste it to the admin folder, then delete the user information from the user and just keep it in the admin folder.


New package: envoy49.go-spotify-cli version 1.0.41

[ ] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.5 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

@microsoft-github-policy-service agree