[BUG] Running with docker image generates empty baseline file

Describe the bug
Running the docker image of the tool generates a .secrets.baseline file with an empty result for the secrets.
To reproduce
Steps to reproduce the behavior

Switch to the directory where you need to run the tool
Run detect-secrets scan --update .secrets.baseline --exclude-files="go.sum"
Check the generated .secrets.baseline json file. The result property will have some entries.

"results": {
    "src/go/stream/stream.go": [
      {
        "hashed_secret": "524a8fbb68e4f36499a8300890f82558f64cc61d",
        "is_verified": false,
        "line_number": 76,
        "type": "Secret Keyword",
        "verified_result": null
      }
    ]
  },
  "version": "0.13.1+ibm.60.dss",

Run docker run -it --rm -v $(pwd):/code icr.io/git-defenders/detect-secrets:redhat-ubi scan --update .secrets.baseline --exclude-files="go.sum"
Check the updated .secrets.baseline json file. It will have an empty result property.

"results": {},
  "version": "0.13.1+ibm.61.dss",

Screenshots
Local tool run

Docker container run

Impact
High
Additional context:

Host or local: local
Operating System: Red Hat Enterprise Linux 8.7 (Ootpa)
Languages scanned: GoLang
Repo & build context links: N/A
Log output: N/A

Hi @cyrusfurtado, the team is aware of this issue and will look into it. In the meantime, the recommendation is to use the pip package as it does not have this empty baseline file issue: https://github.com/IBM/detect-secrets#installupgrade-module

@victoria-miltcheva thanks for the update. Since this is presently a known issue is there some timeline as to when the issue could be addressed.

Hi, I am hitting this issue also, any updates or workaround for the docker image?

I bumped into the same issue.
Digging more, it is due to a git error when detect-secrets run this line: https://github.com/IBM/detect-secrets/blob/master/detect_secrets/core/baseline.py#L366
Basically inside the docker, you are root and git complains:
$ docker run -ti --rm -v $(pwd):/code --entrypoint=bash icr.io/git-defenders/detect-secrets:latest
root@5d173a0cfc99:/code# git -C . ls-files
fatal: detected dubious ownership in repository at '/code'
To add an exception for this directory, call:
        git config --global --add safe.directory /code

=> as a result, none of the files are considered git files, and scan returns empty result.
Workarround:
You can run the docker as the current user with --user=$(id -u) option:
docker run --user=$(id -u) --pull=always -a stdout --rm -v $(pwd):/code icr.io/git-defenders/detect-secrets:redhat-ubi scan --update .secrets.baseline

We were also facing this issue and @frederic-pesquet-work already figured out the cause, as he explained above.
Another finding: mounting volumes to docker running on Linux seems to work differently on Docker desktop (some colleagues using Docker Desktop on MacOS don't experience this bug).
When a volume is mounted in docker running on Linux, the file's ownership and permissions are kept "as is" inside of the container. For example, if the files in your $(pwd) are owned by uid 1000, then they show up inside of the container as owned by uid 1000, and then the git ls-files command fails (dubious ownership) because the detect-secrets container is running by default as root (uid 0).
On the other hand, in Docker Desktop the files mounted volume inside of the container already shows up owned by uid 0 so the git ls-files works fine.

I have a couple thoughts.git ls-files will exit nonzero in this case (dubious permissions), which would raise an exception out of subprocess.check_output. There's logic to catch CalledProcessError but it just runs pass, so this case quietly continues.
I suspect there's a reason for that, but I'd be happy to submit a PR to change the behavior to fail (at least in some cases). I think it would be preferable to fail instead of generating an empty baseline file.

@dleehr Oh so this loops back to the same thing we were talking about last week re: git being more picky nowadays re: dubious ownership.
Looking at the output above: fatal: detected dubious ownership in repository at '/code' it seems like even if, in a pipeline context, running the git config --global --add safe.directory pointing to the local clone wouldn't solve the problem, since it's mounted into the container at a different location (and presumably the git context within the container is different anyway)
But for the purposes of the detect-secrets documentation, it seems like it would be sufficient to modify the documentation so that it specifies running as the user, as @frederic-pesquet-work suggests, i.e.
docker run --user=$(id -u) --pull=always -a stdout --rm -v $(pwd):/code icr.io/git-defenders/detect-secrets:redhat-ubi scan --update .secrets.baseline

@rossgrady Yep, I was reviewing the pipeline discussion yesterday and that's how I found may way here. I totally agree it's a good idea to update the documentation so that users can get valid results. I wasn't bringing pipeline questions here though :)
My suggestion here is that a failure in git ls-files should cause detect-secrets to fail. The current behavior is that when the git ls-files command fails (for the dubious permission error or any other error), that failure is ignored and _get_git_tracked_files returns an empty list []. That's clearly causing the empty baseline file (and the pipeline/container issues).
Now that we know about this, we can work around it (both in the docs and in pipeline). But it seems like it would be safer to fail rather than quietly succeeding with invalid results.

Looking at the output above: fatal: detected dubious ownership in repository at '/code' it seems like even if, in a pipeline context, running the git config --global --add safe.directory pointing to the local clone wouldn't solve the problem, since it's mounted into the container at a different location (and presumably the git context within the container is different anyway)

Yes, the safe.directory needs to be local to wherever detect-secrets is running. It's also only honored from $HOME/.gitconfig So in the pipeline context we need to account for that, and I have a PR for that. It sounds like in the docker run ... context here, the container entrypoint assumes that the repo is always mounted at /code. Providing guidance on making sure uids match can help, but since /code is expected to be a git repo and it it should be fair for git to trust it, adding a /root/.gitconfig to the image with
[safe]
	directory = /code

should fix the issue too.

Reading through this thread now, as just put a PR for https://github.com/IBM/detect-secrets/issues/148 up (https://github.com/IBM/detect-secrets/pull/150), which seems as a related to this issue (problems with git resulting in an empty baseline).
The PR still doesn't fail if it detects a git failure (but at least logs it now, so is more evident what went wrong if something fails)


Panes dont work with Clusters

https://jsfiddle.net/fcumj09w/5/
In the above example, we have 2 marker cluster groups (clustRed and clustYellow) and a single marker outside of these groups.
I want the red marker cluster group to be on top (higher z-index) of the yellow marker cluster group, when zooming out.
I have created 3 custom panes to attach each cluster group to a different pane but it seems like panes don't work with cluster groups.
I can only make panes work with the single marker.

Hi and thanks for reporting!
I believe this is more or less a duplicate of #4279: the markers and the clusters don't end up on the pane you specify since pane isn't "inherited" by a layer's sublayers.
I'm going to close this as duplicate for now. You could also open an issue on the MarkerCluster plugin, it might be that there is actually something the plugin could or should do about this.

Actually already cross-posted on https://github.com/Leaflet/Leaflet.markercluster/issues/785


Following build instrctions fails

Below are the build instructions to build metacontroller:
go get -u k8s.io/code-generator/cmd/{lister,client,informer,deepcopy}-gen
dep ensure
make
Following the steps as mentioned in build instructions fails at "dep ensure" step:
Solving failure: remote repository at https://github.com/kubernetes/metacontroller does not exist, or is inaccessible: fatal: could not read Username for 'https://github.com': terminal prompts disabled
: exit status 128

Output of dep ensure dry run.
dep ensure -v -dry-run
found 1 errors in the package tree:
import root "" is not a prefix for the package's declared canonical path ""
Root project is "github.com/GoogleCloudPlatform/metacontroller"
22 transitively valid internal packages
47 external packages imported from 6 projects
(0)   ✓ select (root)
(1)	? attempt github.com/golang/glog with 1 pkgs; at least 1 versions to try
(1)	    try github.com/golang/glog@master
(1)	✓ select github.com/golang/glog@master w/1 pkgs
(2)	? attempt github.com/google/go-jsonnet with 2 pkgs; at least 1 versions to try
(2)	    try github.com/google/go-jsonnet@master
(2)	✓ select github.com/google/go-jsonnet@master w/3 pkgs
(3)	? attempt k8s.io/apimachinery with 15 pkgs; at least 1 versions to try
(3)	    try<EMAIL_ADDRESS>(3)	✓ select<EMAIL_ADDRESS>w/32 pkgs
(4)	? attempt github.com/davecgh/go-spew with 1 pkgs; at least 1 versions to try
(4)	    try<EMAIL_ADDRESS>(4)	✓ select<EMAIL_ADDRESS>w/1 pkgs
(5)	? attempt github.com/ghodss/yaml with 1 pkgs; at least 1 versions to try
(5)	    try<EMAIL_ADDRESS>(5)	✓ select<EMAIL_ADDRESS>w/1 pkgs
(6)	? attempt github.com/json-iterator/go with 1 pkgs; at least 1 versions to try
(6)	    try<EMAIL_ADDRESS>(6)	✓ select<EMAIL_ADDRESS>w/1 pkgs
(7)	? attempt github.com/google/gofuzz with 1 pkgs; at least 1 versions to try
(7)	    try github.com/google/gofuzz@master
(7)	✓ select github.com/google/gofuzz@master w/1 pkgs
(8)	? attempt github.com/go-openapi/spec with 1 pkgs; at least 1 versions to try
(8)	    try github.com/go-openapi/spec@master
(8)	✓ select github.com/go-openapi/spec@master w/1 pkgs
(9)	? attempt github.com/go-openapi/jsonpointer with 1 pkgs; at least 1 versions to try
(9)	    try github.com/go-openapi/jsonpointer@master
(9)	✓ select github.com/go-openapi/jsonpointer@master w/1 pkgs
(10)  ? attempt k8s.io/kube-openapi with 1 pkgs; at least 1 versions to try
(10)      try k8s.io/kube-openapi@master
(10)  ✓ select k8s.io/kube-openapi@master w/1 pkgs
(11)  ? attempt github.com/emicklei/go-restful with 1 pkgs; at least 1 versions to try
(11)      try<EMAIL_ADDRESS>(11)  ✓ select<EMAIL_ADDRESS>w/2 pkgs
(12)  ? attempt github.com/modern-go/reflect2 with 1 pkgs; at least 1 versions to try
(12)      try<EMAIL_ADDRESS>(12)  ✓ select<EMAIL_ADDRESS>w/1 pkgs
(13)  ? attempt github.com/go-openapi/jsonreference with 1 pkgs; at least 1 versions to try
(13)      try github.com/go-openapi/jsonreference@master
(13)  ✓ select github.com/go-openapi/jsonreference@master w/1 pkgs
(14)  ? attempt github.com/PuerkitoBio/purell with 1 pkgs; at least 1 versions to try
(14)      try<EMAIL_ADDRESS>(14)  ✓ select<EMAIL_ADDRESS>w/1 pkgs
(15)  ? attempt github.com/PuerkitoBio/urlesc with 1 pkgs; at least 1 versions to try
(15)      try github.com/PuerkitoBio/urlesc@master
(15)  ✓ select github.com/PuerkitoBio/urlesc@master w/1 pkgs
(16)  ? attempt k8s.io/client-go with 7 pkgs; at least 1 versions to try
(16)      try<EMAIL_ADDRESS>(16)  ✓ select<EMAIL_ADDRESS>w/17 pkgs
(17)  ? revisit k8s.io/apimachinery to add 10 pkgs
(17)    ✓ include 36 more pkgs from<EMAIL_ADDRESS>(17)  ? attempt github.com/golang/protobuf with 1 pkgs; at least 1 versions to try
(18)      try<EMAIL_ADDRESS>(18)  ✓ select<EMAIL_ADDRESS>w/1 pkgs
(18)  ? attempt github.com/juju/ratelimit with 1 pkgs; at least 1 versions to try
(19)      try<EMAIL_ADDRESS>(19)  ✓ select<EMAIL_ADDRESS>w/1 pkgs
(19)  ? attempt github.com/go-openapi/swag with 1 pkgs; at least 1 versions to try
(20)      try github.com/go-openapi/swag@master
(20)  ✓ select github.com/go-openapi/swag@master w/1 pkgs
(20)  ? attempt gopkg.in/yaml.v2 with 1 pkgs; at least 1 versions to try
(21)      try<EMAIL_ADDRESS>(21)  ✓ select<EMAIL_ADDRESS>w/1 pkgs
(21)  ? attempt github.com/modern-go/concurrent with 1 pkgs; at least 1 versions to try
(22)      try<EMAIL_ADDRESS>(22)  ✓ select<EMAIL_ADDRESS>w/1 pkgs
(22)  ? attempt github.com/peterbourgon/diskv with 1 pkgs; at least 1 versions to try
(23)      try<EMAIL_ADDRESS>(23)  ✓ select<EMAIL_ADDRESS>w/1 pkgs
(23)  ? attempt github.com/gregjones/httpcache with 2 pkgs; at least 1 versions to try
(24)      try github.com/gregjones/httpcache@master
(24)  ✓ select github.com/gregjones/httpcache@master w/2 pkgs
(24)  ? attempt github.com/googleapis/gnostic with 1 pkgs; at least 1 versions to try
(25)      try<EMAIL_ADDRESS>(25)  ✓ select<EMAIL_ADDRESS>w/3 pkgs
(25)  ? revisit github.com/golang/protobuf to add 2 pkgs
(26)    ✓ include 5 more pkgs from<EMAIL_ADDRESS>(25)  ? attempt k8s.io/kubernetes with 1 pkgs; at least 1 versions to try
(27)      try<EMAIL_ADDRESS>(27)  ✓ select<EMAIL_ADDRESS>w/1 pkgs
(26)  ? attempt github.com/gogo/protobuf with 2 pkgs; at least 1 versions to try
(28)      try<EMAIL_ADDRESS>(28)  ✓ select<EMAIL_ADDRESS>w/2 pkgs
(27)  ? attempt github.com/spf13/pflag with 1 pkgs; at least 1 versions to try
(29)      try<EMAIL_ADDRESS>(29)  ✓ select<EMAIL_ADDRESS>w/1 pkgs
(28)  ? attempt github.com/google/btree with 1 pkgs; at least 1 versions to try
(30)      try github.com/google/btree@master
(30)  ✓ select github.com/google/btree@master w/1 pkgs
(29)  ? attempt golang.org/x/net with 1 pkgs; at least 1 versions to try
(31)      try golang.org/x/net@master
(31)  ✓ select golang.org/x/net@master w/1 pkgs
(30)  ? attempt github.com/mailru/easyjson with 2 pkgs; at least 1 versions to try
(32)      try github.com/mailru/easyjson@master
(32)  ✓ select github.com/mailru/easyjson@master w/3 pkgs
(31)  ? revisit golang.org/x/net to add 1 pkgs
(33)    ✓ include 1 more pkgs from golang.org/x/net@master
(31)  ? attempt k8s.io/api with 28 pkgs; at least 1 versions to try
(34)      try k8s.io/api@master
(34)  ✓ select k8s.io/api@master w/28 pkgs
(32)  ? revisit k8s.io/apimachinery to add 2 pkgs
(35)    ✓ include 2 more pkgs from<EMAIL_ADDRESS>(32)  ? attempt github.com/petar/GoLLRB with 1 pkgs; at least 1 versions to try
(36)      try github.com/petar/GoLLRB@master
(36)  ✓ select github.com/petar/GoLLRB@master w/1 pkgs
(33)  ? attempt golang.org/x/text with 2 pkgs; at least 1 versions to try
(37)      try<EMAIL_ADDRESS>(37)  ✓ select<EMAIL_ADDRESS>w/14 pkgs
(34)  ? attempt github.com/hashicorp/golang-lru with 1 pkgs; at least 1 versions to try
(38)      try github.com/hashicorp/golang-lru@master
(38)  ✓ select github.com/hashicorp/golang-lru@master w/2 pkgs
(35)  ? revisit golang.org/x/net to add 1 pkgs
(39)    ✓ include 4 more pkgs from golang.org/x/net@master
(35)  ? revisit golang.org/x/text to add 2 pkgs
(40)    ✓ include 7 more pkgs from<EMAIL_ADDRESS>(41)    ← no more versions of k8s.io/metacontroller to try; begin backtrack
(40)  ← backtrack: popped 7 pkgs from golang.org/x/text
(39)  ← backtrack: popped 4 pkgs from golang.org/x/net
(38)  ← backtrack: no more versions of github.com/hashicorp/golang-lru to try
(37)  ← backtrack: no more versions of golang.org/x/text to try
(36)  ← backtrack: no more versions of github.com/petar/GoLLRB to try
(35)  ← backtrack: popped 2 pkgs from k8s.io/apimachinery
(34)  ← backtrack: no more versions of k8s.io/api to try
(33)  ← backtrack: popped 1 pkgs from golang.org/x/net
(32)  ← backtrack: no more versions of github.com/mailru/easyjson to try
(31)  ← backtrack: no more versions of golang.org/x/net to try
(30)  ← backtrack: no more versions of github.com/google/btree to try
(29)  ← backtrack: no more versions of github.com/spf13/pflag to try
(28)  ← backtrack: no more versions of github.com/gogo/protobuf to try
(27)  ← backtrack: no more versions of k8s.io/kubernetes to try
(26)  ← backtrack: popped 5 pkgs from github.com/golang/protobuf
(25)  ← backtrack: no more versions of github.com/googleapis/gnostic to try
(24)  ← backtrack: no more versions of github.com/gregjones/httpcache to try
(23)  ← backtrack: no more versions of github.com/peterbourgon/diskv to try
(22)  ← backtrack: no more versions of github.com/modern-go/concurrent to try
(21)  ← backtrack: no more versions of gopkg.in/yaml.v2 to try
(20)  ← backtrack: no more versions of github.com/go-openapi/swag to try
(19)  ← backtrack: no more versions of github.com/juju/ratelimit to try
(18)  ← backtrack: no more versions of github.com/golang/protobuf to try
(17)  ← backtrack: popped 36 pkgs from k8s.io/apimachinery
(16)  ← backtrack: no more versions of k8s.io/client-go to try
(15)  ← backtrack: no more versions of github.com/PuerkitoBio/urlesc to try
(14)  ← backtrack: no more versions of github.com/PuerkitoBio/purell to try
(13)  ← backtrack: no more versions of github.com/go-openapi/jsonreference to try
(12)  ← backtrack: no more versions of github.com/modern-go/reflect2 to try
(11)  ← backtrack: no more versions of github.com/emicklei/go-restful to try
(10)  ← backtrack: no more versions of k8s.io/kube-openapi to try
(9)	← backtrack: no more versions of github.com/go-openapi/jsonpointer to try
(8)	← backtrack: no more versions of github.com/go-openapi/spec to try
(7)	← backtrack: no more versions of github.com/google/gofuzz to try
(6)	← backtrack: no more versions of github.com/json-iterator/go to try
(5)	← backtrack: no more versions of github.com/ghodss/yaml to try
(4)	← backtrack: no more versions of github.com/davecgh/go-spew to try
(3)	← backtrack: no more versions of k8s.io/apimachinery to try
(2)	← backtrack: no more versions of github.com/google/go-jsonnet to try
(1)	← backtrack: no more versions of github.com/golang/glog to try
✗ solving failed
Solver wall times by segment:
b-source-exists: 13.123260065s
b-list-pkgs: 10.265302051s
b-gmal:   6.53116632s
b-deduce-proj-root:  330.198983ms
unselect:  130.493848ms
satisfy:  130.410013ms
select-atom:  119.197119ms
new-atom:    3.145236ms
select-root:     805.865µs
backtrack:     635.642µs
other:     199.138µs
add-atom:      72.583µs
TOTAL: 30.634886863s
Solving failure: remote repository at https://github.com/kubernetes/metacontroller does not exist, or is inaccessible: fatal: could not read Username for 'https://github.com': terminal prompts disabled
: exit status 128

I get the following error while doing a "go get" on github.com/GoogleCloudPlatform/metacontroller
cd .; git clone https://github.com/kubernetes/metacontroller /Users/soumyap/Desktop/Learning/Projects/Go/src/k8s.io/metacontroller
Cloning into '/Users/soumyap/Desktop/Learning/Projects/Go/src/k8s.io/metacontroller'...
fatal: could not read Username for 'https://github.com': terminal prompts disabled
package k8s.io/metacontroller/apis/metacontroller/v1alpha1: exit status 128
package k8s.io/metacontroller/client/generated/clientset/internalclientset: cannot find package "k8s.io/metacontroller/client/generated/clientset/internalclientset" in any of:
/usr/local/go/src/k8s.io/metacontroller/client/generated/clientset/internalclientset (from $GOROOT)
/Users/soumyap/Desktop/Learning/Projects/Go/src/k8s.io/metacontroller/client/generated/clientset/internalclientset (from $GOPATH)
package k8s.io/metacontroller/client/generated/informer/externalversions: cannot find package "k8s.io/metacontroller/client/generated/informer/externalversions" in any of:
/usr/local/go/src/k8s.io/metacontroller/client/generated/informer/externalversions (from $GOROOT)
/Users/soumyap/Desktop/Learning/Projects/Go/src/k8s.io/metacontroller/client/generated/informer/externalversions (from $GOPATH)
package k8s.io/metacontroller/controller/composite: cannot find package "k8s.io/metacontroller/controller/composite" in any of:
/usr/local/go/src/k8s.io/metacontroller/controller/composite (from $GOROOT)
/Users/soumyap/Desktop/Learning/Projects/Go/src/k8s.io/metacontroller/controller/composite (from $GOPATH)
package k8s.io/metacontroller/controller/decorator: cannot find package "k8s.io/metacontroller/controller/decorator" in any of:
/usr/local/go/src/k8s.io/metacontroller/controller/decorator (from $GOROOT)
/Users/soumyap/Desktop/Learning/Projects/Go/src/k8s.io/metacontroller/controller/decorator (from $GOPATH)
package k8s.io/metacontroller/dynamic/clientset: cannot find package "k8s.io/metacontroller/dynamic/clientset" in any of:
/usr/local/go/src/k8s.io/metacontroller/dynamic/clientset (from $GOROOT)
/Users/soumyap/Desktop/Learning/Projects/Go/src/k8s.io/metacontroller/dynamic/clientset (from $GOPATH)
package k8s.io/metacontroller/dynamic/discovery: cannot find package "k8s.io/metacontroller/dynamic/discovery" in any of:
/usr/local/go/src/k8s.io/metacontroller/dynamic/discovery (from $GOROOT)
/Users/soumyap/Desktop/Learning/Projects/Go/src/k8s.io/metacontroller/dynamic/discovery (from $GOPATH)
package k8s.io/metacontroller/dynamic/informer: cannot find package "k8s.io/metacontroller/dynamic/informer" in any of:
/usr/local/go/src/k8s.io/metacontroller/dynamic/informer (from $GOROOT)
/Users/soumyap/Desktop/Learning/Projects/Go/src/k8s.io/metacontroller/dynamic/informer (from $GOPATH)

It's a known issue that go get doesn't work, likely because of the fake k8s.io/metacontroller import path.
I haven't had problems with dep though. Do you have the latest version of dep? I just updated mine to v0.4.1 and dep ensure still works for me.
Where is the cloned repo relative to your $GOPATH? I have some updated build instructions that show more clearly where things should be:
https://metacontroller.netlify.com/contrib/build/

@enisoc thanks for the help.
The issue was with k8s.io/metacontroller import path.
It went away after I moved the code to  k8s.io/metacontroller w.r.t to my GOROOT/src.
Closing the ticket.


Group commands related to cluster management

This PR simplifies the oc package and unify the use of RunOcCommand.
All functions related to cluster management are now in the cluster package.
Also add unit tests for  GetClusterOperatorStatus

Rename all parameters of type OcConfig to osConfig

In commit log typo about osConfig => ocConfig .

Thanks, I fixed the typo.


Uglifyjs Fails with ES6 when bulding for production

Short description of the problem:
Error when running ionic cordova build android --prod
Error: Unexpected token: name (xxxxxxx) in www\build\main.js at line 19288, col 4, pos 662013
What behavior are you expecting?
Build success
Steps to reproduce:

Update tsconfig and set "target": "es6"
run ionic cordova build android --prod
Error Message after UglifyJS started

Which @ionic/app-scripts version are you using?
1.3.7
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
global packages:
@ionic/cli-utils : 1.3.0
Cordova CLI      : 6.5.0
Ionic CLI        : 3.3.0

local packages:
@ionic/app-scripts              : 1.3.7
@ionic/cli-plugin-cordova       : 1.3.0
@ionic/cli-plugin-ionic-angular : 1.3.0
Cordova Platforms               : android 6.1.2 ios 4.4.0
Ionic Framework                 : ionic-angular 3.3.0

typescript 2.3.3
System:
Node       : v6.9.2
OS         : Windows 10
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed

Hi, i've got th same. I update to 1.3.12 and same error.

Hello all! The version of Uglify we used in these old versions of app-scripts did not support es6. If you update to the latest release of app-scripts 2.0.2 we now use the es6 friendly version of uglify. Thanks!

Hi, I update to app-script 2.0.2 but it doesn't work. So i used to understand --aot --optimizejs --minifyjs --minifycss and i've the same error
It works only with --aot --optimizejs --minifycss
but when i use --minifyjs, I've got the same than --prod.
Here is the error:

ionic-app-scripts build "--minifyjs"

[09:01:29]  ionic-app-scripts 2.0.2
[09:01:29]  build dev started ...
[09:01:29]  clean started ...
[09:01:29]  clean finished in 18 ms
[09:01:29]  copy started ...
[09:01:29]  transpile started ...
[09:01:39]  transpile finished in 9.21 s
[09:01:39]  preprocess started ...
[09:01:39]  deeplinks started ...
[09:01:39]  deeplinks finished in 416 ms
[09:01:39]  preprocess finished in 419 ms
[09:01:39]  webpack started ...
[09:01:40]  copy finished in 10.16 s
[09:02:05]  webpack finished in 25.71 s
[09:02:05]  sass started ...
[09:02:05]  uglifyjs started ...
[09:02:05]  ionic-app-script task: "build"
[09:02:05]  Error: Uglify failed: Unexpected token: name (XXXPageModule) in undefined at line undefined, col
undefined, pos undefined
Error: Uglify failed: Unexpected token: name (XXXPageModule) in undefined at line undefined, col undefined, pos undefined
at BuildError.Error (native)
at new BuildError (C:...APPS...Directory...\node_modules@ionic\app-scripts\dist\util\errors.js:16:28)
at taskReject (C:...APPS...Directory...\node_modules@ionic\app-scripts\dist\worker-process.js:36:22)
at C:...APPS...Directory...\node_modules@ionic\app-scripts\dist\worker-process.js:14:13
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\login\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "ionic:build" "--" "--minifyjs"
npm ERR! node v4.4.0
npm ERR! npm  v4.1.2
Thanks in advance

Confirmed, app-scripts 2.1.3 still does not work.

Hello
I have same problem in production build
I updated app-script but same..
Please help me so that I can build production build

Actually the fix ins't released yet. The change from uglify-js to uglify-es is in this commit.

Any solution yet?

This solve me the problem .
npm install @ionic/app-scripts@latest --save-dev


[DataTable] TableToolbarSearch placeholder text not customizable / translatable

Describe in detail the issue you're having.

Our UX design provides for a customized placeholder text for the Search field. This placeholder text and other default text should also be enabled for translation.

Is this a feature request (new component, new icon), a bug, or a general issue?

bug

Is this issue related to a specific component?

DataTable / TableToolbarSearch

What did you expect to happen? What happened instead? What would you like to see changed?

Expected to be able to customize similar to regular Search component. TableToolbarSearch seems to hard-code those strings.

What browser are you working in?

All

What version of the Carbon Design System are you using?

5.40

Hi @rkocheis! 👋 Thanks for taking the time to make this issue 🙂 Definitely agreed that we need to externalize strings to enable use-cases like i18n. Will gladly accept any PRs that introduce this behavior into the project!

@joshblack
I have a similar request, but perhaps there is a work around?
Describe in detail the issue you're having.
react-i18next vs carbon-components-react
We're utilizing several different DataTable / TableToolbarSearch instances within the same app and need to have the placeholder text that differs for each in different languages.  Perhaps I'm misunderstanding this, but does the translateWithId only offer one reference for each of these components to point to (eg is there away for placeholder text for component 1=>'search placeholder text for widget 1' and  component 2=>'search placeholder text for widget 2' )?
Is this a feature request (new component, new icon), a bug, or a general issue?
bug or feature request (not certain?)
Is this issue related to a specific component?
DataTable / TableToolbarSearch
What did you expect to happen? What happened instead? What would you like to see changed?
Expected to be able to customize similar to Search component as we have multiple DataTable/TableToolbarSearch fields in the same app. TableToolbarSearch seems to hard-code to only one root placeholder text per app.
What browser are you working in?
All
What version of the Carbon Design System are you using?
<EMAIL_ADDRESS>

Hi @LongBu! 👋 Mind making this in a separate issue? Would hate for it to get lost in this thread since it's closed.


UI error triangle redesign

What would be the best way to show connection errors across multiple engines?  Current state is just a triangle when first error occurs.
some options:

error triangle with the number of failed engines like
1/4 (Triangle)

some special Triangle if there are some engines active

health bar (maybe in a circle) ?

Also should we change this element depending on engine selected?

Hey,
I didn't much understand number 3, can you show an example?
I think that for the active engine (the engine the user is in at the moment ) we should stay with the error triangle.
and for the each and every engine we should add a smaller triangle, and put it where the list of engine are presented.

Hi Shira,
3 is just a wild guess. Something like dashboard outer circle around an exclamation mark but ,it would be 1/3 green 2/3 red depending on a number of  dead engines.
There will be also a list where you can see small triangle next to an engine, but I think it would be quite useful to also have a global indicator that something went wrong on some other engine than the selected one.

The first option was chosen for now. Reopen this if necessary


Name is not changed in the generated schema

Describe the bug
A clear and concise description of what the bug is.
Names don't get changed in Graphql schema, although name parameter was set in @FilterableField and @Field
To Reproduce
Here for example I change the name but it doesn't change
import { ArgsType, Field, Int, ObjectType } from '@nestjs/graphql';
import {
  FilterableField,
  QueryArgsType,
} from '@ptc-org/nestjs-query-graphql';

@ObjectType()
class MyObject:
  @FilterableField({ allowedComparisons: ['eq', 'like', 'notLike'], name: 'ip_address' })
  @Field({ name: 'ip_address', nullable: true })
  ipAddress?: string;

@ArgsType()
export class MyObjectQuery extends QueryArgsType(MyObject) { }

Expected behavior
name should be changed to ip_address but I get the typescript name ipAddress
Desktop (please complete the following information):

Node Version v16.13.2
"@ptc-org/nestjs-query-core": "^1.1.4",
"@ptc-org/nestjs-query-graphql": "^1.1.4",

Could you elaborate a bit more? I added a test case to check this but I cannot reproduce.

Going to close, if this is still a issue please reopen!


Return value of input_diversity function

The return value of input_diversity function may be 'input_tensor' or 'padded'，but the shape of ‘input_tensor’ is [batch_size,299,299,3] and the shape of 'padded' is [batch_size, 331, 331, 3]. The code sometimes gets wrong, why not reshape 'padded' to [batch_size, 299, 299, 3]?

Could you please specify when the code will get wrong?
This transformation is done on the whole batch (i.e., all the batch will have the same shape), so I think it is okay to set the shape of the whole batch to be either 299 x 299 or 331 x 331?
If you set the padded shape to be 299 (e.g., resize image between [256, 299] and then pad to 299), it is also okay. You will get similar (slightly worse) performance under this setting.


Problems with modifyBlocks

I am working with squire and find it amazing, but I am missing something about modifyBlocks, it does not seem to re-insert in the DOM my edited fragment:
        editor.modifyBlocks(function(frag) {
          let edited = this._doc.createDocumentFragment();

          Array.from(frag.children).forEach((node, index) => {
            node.style.marginLeft = '20px'
            node.style.color = 'yellow'
            node.style.innerText = "Hi!" + index;
            edited.appendChild(node);
          })

          return edited
        })

I would expect that when I select some lines, each of that would be outputted in yellow color, with 20px of margin and with the "Hi" text in it. But the lines are re-inserted in the DOM only with the changed text and not the attributes. What am I missing?

 I was removing formatting in my code after having run the modifyBlock. Sorry, hope nobody wasted even a 1 minute on this!
Thanks for the great work!


[BEAM-11403] Cherry-pick: Cache UnboundedReader per CheckpointMark in SDF Wrapper DoFn.

(cherry picked from commit 98ee1f178a9e80f4694f86775c06a54ecf82abb8)
Please add a meaningful description for your change here

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

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

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

GitHub Actions Tests Status (on master branch)

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

r: @pabloem
cc: @je-ik @iemejia

thanks everyone!


feat: add user error metrics

Add User Error Metrics

[!WARNING]
This PR requires the deploy of new metrics/dashboards

Description
This PR adds two new panels to our batcher Grafana dashboard.

User Error Count.
Proving System Error Count.

User Error Count
Tracks the occurrence of the different user errors in the batcher. The error types included are:

InvalidChainId
InvalidSignature
ProofTooLarge
DisabledVerifier
RejectedProof
InsufficientBalance
InvalidNonce
EthRpcError
InvalidMaxFee
AddToBatchError
InvalidReplacementMessage

Proving System Error Count
Tracks the count of the proving system being used when DisabledVerifier and RejectedProof errors appear.

How to test
Run:
make anvil_start_with_block_time
make batcher_start_local
make run_metrics

Go to localhost:3000 and you should see the new panels in the batcher dashboard.
Then, you can modify the task sender in batcher/aligned/src/main.rs to trigger the different errors in the batcher. For example, you can modify the chain_id with an invalid value:
//let chain_id = get_chain_id(eth_rpc_url.as_str()).await?;
let chain_id: u64 = 4;

Or change the public_input, to get a rejected_proof error:
VerificationData {
        proving_system,
        proof,
        // pub_input,
        pub_input: None,
        verification_key,
        vm_program_code,
        proof_generator_addr,
    }

and run:
make batcher_send_risc0_burst

You can also try with a different proving system.
Type of change

[x] New feature
[ ] Bug fix
[ ] Optimization
[ ] Refactor

Checklist

[ ] “Hotfix” to testnet, everything else to staging
[x] Linked to Github Issue
[ ] This change depends on code or research by an external entity

[ ] Acknowledgements were updated to give credit

[ ] Unit tests added
[ ] This change requires new documentation.

[ ] Documentation has been added/updated.

[ ] This change is an Optimization

[ ] Benchmarks added/run

[x] Has a known issue

Link to the open issue addressing it

[ ] If your PR changes the Operator compatibility (Ex: Upgrade prover versions)

[ ] This PR adds compatibility for operator for both versions and do not change batcher/docs/examples
[ ] This PR updates batcher and docs/examples to the newer version. This requires the operator are already updated to be compatible

If no error happened, the grafana panel shows "No data" and I don't know if there is a problem with the metric or there aren't any errors. Can we initialize the total number with zero so the panel shows right from the start?

IMO initializing every value to zero doesn’t seem like a clean approach in the code. Also, it is not that bad to show "no data" until the errors start to appear, it's how Grafana behaves in that case. Anyway, I’m open to changing it if that’s what you think is best!

I tried to trigger some other user errors by modifying the provided data to the batcher and spotted a bug which https://github.com/yetanotherco/aligned_layer/issues/1376. Maybe you want to address it later.

Nice catch! I agree this should be handled in a separate PR.

IMO initializing every value to zero doesn’t seem like a clean approach in the code. Also, it is not that bad to show "no data" until the errors start to appear, it's how Grafana behaves in that case. Anyway, I’m open to changing it if that’s what you think is best!

Yes, it's ok, I just wanted to point it in case you didn't notice. We can leave it like that, if that's how Grafana usually behaves in these scenarios.

Remove the disabled verifier error dedicated panel, and proving system panel, if the other covers these 2
@MauroToscano

Done!


unable to load certificate...no start line:../crypto/pem/pem_lib.c:745:Expecting: TRUSTED CERTIFICATE

I'm using Seth for a pentest I'm doing and I'm getting an error similar to what was reported in #1. But I wonder if the RDP server (xrdp running on CentOS) is causing the problem. In my case there is no MS Windows; every host is running Linux:
$ cat /etc/hosts
<IP_ADDRESS>     router
<IP_ADDRESS>    victim
<IP_ADDRESS>    attacker
██.██.██.205   rdp-server

Attacker Output
$ sudo SETH_DEBUG=1 ./seth.sh eth0 <IP_ADDRESS> <IP_ADDRESS> <IP_ADDRESS>
...
[*] Spoofing arp replies...
[*] Turning on IP forwarding...
[*] Set iptables rules for SYN packets...
[*] Waiting for a SYN packet to the original destination...
[+] Got it! Original destination is ██.██.██.205
[*] Clone the x509 certificate of the original destination...
unable to load certificate
140347480601664:error:0909006C:PEM routines:get_name:no start line:../crypto/pem/pem_lib.c:745:Expecting: TRUSTED CERTIFICATE
[!] Failed to clone certificate, create bogus self-signed certificate...
[*] Adjust the iptables rule for all packets...
[*] Run RDP proxy...
Listening for new connection

The Original XRDP Certificate
I used Wireshark to extract the raw bytes of the certificate that is being served by the RDP server. It looks OK to me. But it is causing the above error.
$ openssl x509 -inform DER -in ../Pentests/███████████████.com/Files/rdpcert.der -text
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            b0:1f:99:b5:7e:8f:05:cd
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: CN = XRDP
        Validity
            Not Before: Feb  1 00:37:16 2019 GMT
            Not After : Jan 31 00:37:16 2029 GMT
        Subject: CN = XRDP
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                RSA Public-Key: (2048 bit)
                Modulus:
                    00:d2:50:65:e0:bb:87:1e:a6:ab:66:c3:bb:52:03:
                    f5:f8:78:a4:4c:f8:03:7c:7d:90:c9:6a:e8:11:5f:
                    93:96:f1:7b:33:11:36:e1:f5:1c:b3:0c:02:59:34:
                    4a:70:2a:49:39:11:90:1e:7c:f9:fb:7e:ea:1b:5e:
                    40:03:da:c3:9f:9d:5e:63:8c:79:f9:b5:e5:4e:85:
                    7d:7d:4b:b2:ce:9d:ab:bc:92:f5:61:4a:0a:09:d7:
                    47:2a:12:8d:e4:16:3e:96:bb:51:e3:59:c0:db:88:
                    ad:f3:dd:20:f2:a3:94:52:93:97:19:ec:91:06:85:
                    7c:d9:eb:12:ee:01:19:c2:57:b9:44:e1:26:4d:02:
                    0f:f0:2f:21:2f:05:43:01:f1:8e:6c:4f:54:20:9d:
                    cf:7f:85:7d:55:43:4d:a6:36:aa:5f:2c:6a:0a:77:
                    08:da:2b:be:96:6a:54:8d:03:94:7a:10:f2:87:2c:
                    35:8c:36:c2:df:7f:4e:55:f6:31:21:7d:4f:c8:dc:
                    d0:dc:22:10:41:f2:32:23:6e:b9:95:4b:8f:59:d1:
                    ca:64:4f:76:15:c5:69:52:73:a8:90:64:36:f8:d1:
                    44:f5:54:7b:de:66:68:68:a2:98:0a:3e:40:63:90:
                    95:48:b3:b8:b3:31:9a:2d:ec:35:81:61:57:a2:d7:
                    f0:45
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                5D:AC:95:A3:4B:6C:67:2C:E1:77:8C:C6:42:E3:7E:A7:65:42:8D:82
            X509v3 Authority Key Identifier:
                keyid:5D:AC:95:A3:4B:6C:67:2C:E1:77:8C:C6:42:E3:7E:A7:65:42:8D:82

            X509v3 Basic Constraints:
                CA:TRUE
    Signature Algorithm: sha256WithRSAEncryption
         a8:f7:47:ff:cc:e3:db:f2:fa:a1:d3:58:e1:9b:88:cb:e7:f0:
         13:b8:78:dc:a9:62:1f:c7:a7:ad:c7:c4:86:ed:cd:49:7a:0b:
         27:c7:c2:4a:11:d2:27:a5:4c:0c:17:20:38:72:6f:9f:fa:10:
         ea:ab:50:8a:2b:8c:a8:d9:fa:d9:a0:4f:fe:3f:8d:40:cc:a7:
         20:2a:fd:2e:61:58:b0:f0:71:c5:0e:a5:74:2f:5f:20:7e:8c:
         16:5b:5b:1f:10:7e:90:22:0a:5f:8a:65:74:1c:1c:aa:1e:e1:
         2d:37:7f:80:a1:de:b2:db:57:de:e2:d2:cf:06:2e:1c:1c:77:
         a7:1b:6c:da:dc:0e:58:fe:94:a1:4f:d4:02:48:64:7d:f8:b7:
         e1:a8:5a:38:c1:e9:c2:80:8b:36:c7:25:0a:06:57:3a:35:fb:
         0d:a6:20:5f:7a:c0:2c:af:ad:52:c4:e0:8b:40:11:dd:7d:94:
         fc:23:51:5d:89:ee:59:c4:85:e3:7c:64:3e:32:64:02:37:ac:
         31:44:31:e3:e6:33:a7:78:27:60:59:98:b5:e4:36:16:dd:b5:
         1f:e9:17:ae:06:ec:dc:5b:52:41:8d:df:88:32:0c:59:cc:74:
         b4:61:8a:77:16:1e:af:b4:74:89:27:90:12:fa:8b:6f:c6:a7:
         15:6d:72:9d
-----BEGIN CERTIFICATE-----
MIIC8TCCAdmgAwIBAgIJALAfmbV+jwXNMA0GCSqGSIb3DQEBCwUAMA8xDTALBgNV
BAMMBFhSRFAwHhcNMTkwMjAxMDAzNzE2WhcNMjkwMTMxMDAzNzE2WjAPMQ0wCwYD
VQQDDARYUkRQMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0lBl4LuH
HqarZsO7UgP1+HikTPgDfH2QyWroEV+TlvF7MxE24fUcswwCWTRKcCpJORGQHnz5
+37qG15AA9rDn51eY4x5+bXlToV9fUuyzp2rvJL1YUoKCddHKhKN5BY+lrtR41nA
24it890g8qOUUpOXGeyRBoV82esS7gEZwle5ROEmTQIP8C8hLwVDAfGObE9UIJ3P
f4V9VUNNpjaqXyxqCncI2iu+lmpUjQOUehDyhyw1jDbC339OVfYxIX1PyNzQ3CIQ
QfIyI265lUuPWdHKZE92FcVpUnOokGQ2+NFE9VR73mZoaKKYCj5AY5CVSLO4szGa
Lew1gWFXotfwRQIDAQABo1AwTjAdBgNVHQ4EFgQUXayVo0tsZyzhd4zGQuN+p2VC
jYIwHwYDVR0jBBgwFoAUXayVo0tsZyzhd4zGQuN+p2VCjYIwDAYDVR0TBAUwAwEB
/zANBgkqhkiG9w0BAQsFAAOCAQEAqPdH/8zj2/L6odNY4ZuIy+fwE7h43KliH8en
rcfEhu3NSXoLJ8fCShHSJ6VMDBcgOHJvn/oQ6qtQiiuMqNn62aBP/j+NQMynICr9
LmFYsPBxxQ6ldC9fIH6MFltbHxB+kCIKX4pldBwcqh7hLTd/gKHesttX3uLSzwYu
HBx3pxts2twOWP6UoU/UAkhkffi34ahaOMHpwoCLNsclCgZXOjX7DaYgX3rALK+t
UsTgi0AR3X2U/CNRXYnuWcSF43xkPjJkAjesMUQx4+Yzp3gnYFmYteQ2Ft21H+kX
rgbs3FtSQY3fiDIMWcx0tGGKdxYer7R0iSeQEvqLb8anFW1ynQ==
-----END CERTIFICATE-----

Where the error comes from
I assume that the certificate is causing clone-cert.sh to error out after the received certificate is piped to line 60:
openssl s_client -servername "$SERVER" \
    -connect "$HOST" < /dev/null 2>&1 | \
    openssl x509 -outform PEM -out "$ORIG_CERT_FILE"

And I assume that the error is the reason for seth.sh to choose the OR option at line 123, thereby creating a self-signed cert.
CERT_KEY="$($SCRIPT_DIR/clone-cert.sh "$ORIGINAL_DEST:3389" || \
    create_self_signed_cert "$ORIGINAL_DEST")"

Output you might ask for
Unfortunately I can't trace the problem beyond those two lines. Below is the output of the command you asked for in issue #1. Mine seems rather different than what the OP received from his server:
$ openssl s_client -connect ██.██.██.205:3389 < /dev/null
CONNECTED(00000003)
139739288069184:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../ssl/record/ssl3_record.c:332:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 5 bytes and written 283 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)
---

One problem or two?
In addition to the error described above, my 'victim' RDP client is not able to connect to the RDP server. On the victim host I've tried using rdesktop and krdc. The latter is one of the many clients that is built on top of xfreerdp. I would expect the latter to validate the (forged) certificate, as you mentioned in your excellent paper. But neither RDP client is able to establish a connection to the RDP server.
By the way, thank you for this very cool and useful tool!

Hi, thanks for the very detailed bug report. I wish it was this detailed every time ;)
So first of all, I never tested Seth with a non-Windows host, so we are on uncharted territory here. Next, if clone-cert.sh fails, it's not a big deal. The attack should still work, but the victim might be more reluctant to ignore the warning because the certificate will look like an obvious fake.
In this case, it fails because openssl is not printing the certificate. It actually looks like your RDP host is not using SSL at all, which is possible if the host is using the 'plain rdp' security setting. During the development I made sure Seth can handle plain RDP as well, but I've never tried it in the wild, so it might not always work after all.
OR, since you see a certificate in wireshark, it is just behaving a bit differently. Windows RDP hosts can do both: they can perform the SSL handshake immediately if the client requests it, or they can perform it a bit later in the connection after some clear text data has been transmitted. Maybe your RDP host only can do the latter, in which case openssl would never see the certificate because it performs the handshake right away. However, in that case I would expect Seth to work except for the certificate spoofing.
I'd have to test this myself when I can find some time.


[Bug] : Minor ticks issue with time axis

Version
5.3.0
Link to Minimal Reproduction
No response
Steps to Reproduce

Create the chart with realtime data and xaxis is time axis.
Add minor ticks to xaxis.
look for minor ticks.

Current Behavior

Highlighted part is where the ticks are adjusted in compromised position.
Ideally should be spread similar to rest of intervals.
Expected Behavior

Expected Behavior.
Environment
- OS:
- Browser:
- Framework:

Any additional comments?
Please check the example below.
function randomData() {
  now = new Date(+now + oneDay);
  value = value + Math.random() * 21 - 10;
  return {
    name: now.toString(),
    value: [
      [now.getFullYear(), now.getMonth() + 1, now.getDate()].join('/'),
      Math.round(value)
    ]
  };
}
let data = [];
let now = new Date(1997, 9, 3);
let oneDay = 24 * 3600 * 1000;
let value = Math.random() * 1000;
for (var i = 0; i < 1000; i++) {
  data.push(randomData());
}
option = {
  xAxis: {
    type: 'time',
    splitLine: {
      show: false
    },
    minorTick: {
      show: true,
    }
  },
  yAxis: {
    type: 'value',
    boundaryGap: [0, '100%'],
    splitLine: {
      show: false
    }
  },
  series: [
    {
      name: 'Fake Data',
      type: 'line',
      showSymbol: false,
      data: data
    }
  ]
};
setInterval(function () {
  for (var i = 0; i < 5; i++) {
    data.shift();
    data.push(randomData());
  }
  myChart.setOption({
    series: [
      {
        data: data
      }
    ]
  });
}, 1000);

minorTick cuts ticks into a given number of parts, which by default is 5. The reason why it behaves like this is because it cuts the axis from the beginning (/end) to the first (/last) tick.
The time between two ticks in the time axis is not the same. So it's hard to tell how long should the beginning or ending minor ticks should last.

@Ovilia , as the dynamic(new) data, comes in, the time between two major ticks won't match only in these 2 case

before the first major tick
after the last major tick

so in these 2 case , can we control the no of minor ticks to shown?  or can we completely hide minor ticks?

You cannot ignore those only before the first and after the last. The only thing you can do is to hide the minor ticks all.


[rtextures] Support for GL_TEXTURE_LOD_BIAS

Please, before submitting a new issue verify and check:

[x] I tested it on latest raylib version from master branch
[x] I checked there is no similar issue already reported
[x] My code has no errors or misuse of raylib

Issue description
GL_TEXTURE_LOD_BIAS is a parameter of a texture that changes which level of mipmap would be used for rendering, changing this value would control how sharp a texture looks when rendered at a small size. Currently the only way to change this parameter is to build raylib against an OpenGL version that supports this, and then call glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_LOD_BIAS, bias);. Would be convenient if there's a function like SetTextureLODBias(Texture2D texture, float bias). Don't know how feasible that would be since LOD bias is only supported on OpenGL 3.0 and up.
Environment
GL_TEXTURE_LOD_BIAS does not seem to be a thing on GL ES 2.0, 3.0 and GL 2.0 according to docs.gl.
Code Example
glBindTexture(GL_TEXTURE_2D, texture_id);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_LOD_BIAS, -0.5f);
glBindTexture(GL_TEXTURE_2D, 0);

@Ataraxia-Mechanica Just added RL_TEXTURE_MIPMAP_BIAS_RATIO support to rlTextureParameters() for OpenGL 3.3 only, it's expects as parameter a integer percentage value.
rlgl is intended for adavance users, so the function is not directly exposed in raylib.


Add a set of credentials without dataset.create permissions

We need a new set of credentials for dask-bigquery CI to test a use case when user can create tables in an existing dataset, but not create a new dataset.
Can you help with this one @ntabris?
cc @ncclementi
Related to https://github.com/coiled/dask-bigquery/pull/75

Can you help with this one @ntabris?

You have full permissions in the relevant GCP project, feel free to put something on my calendar if you'd like me to help w/ this though.


https://projecao.br/Faculdade

https://projecao.br/faculdade/curso/23678/tecnologia-em-analise-e-desenvolvimento-de-sistemas-presencial-e-ead
https://projecao.br/Faculdade
https://projecao.br/faculdade/curso/conteudo/23678/modalidade/2/unidade/

@fabiomuniz01 According to #9791 and #9758, correct domain is projecao.edu.br.
Please explain what is wrong with #9791 and #9758 before applying.

@fabiomuniz01 You might miss my previous comment. Please react.

@fabiomuniz01 I am sorry, this request remains unanswered for a while. I have to close it without merging. Please reopen and comment if you have an update regarding the aforementioned issue. Thank you for your understanding!

hi philipto i'm sorry for my delay, can i reopen the pull request?


Package conflict: python packages & docker-compose

Describe the bug
When installing docker-compose & Python packages from pythonPackages39 in the same environment, Python is unable to import the installed packages.
Steps To Reproduce
Affected packages
I have verified the same behavior with the following packages:

python39Packages.wget
python39Packages.tqdm
python39Packages.numpy
python39Packages.networkx
python39Packages.boto3

Instructions
Note: this description uses psycopg2 as an example.

Create a file shell.nix:

# shell.nix
let
  pkgs = import <nixpkgs> {};
in pkgs.mkShell {
  buildInputs = with pkgs; [
    python39Packages.psycopg2
    docker-compose
  ];
}

Enter the shell:

$ nix-shell shell.nix

Import psycopg2

$ python -c 'import psycopg2'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'psycopg2'
$

Remove docker-compose from the shell file
Enter the shell
Import psycopg2

$ python -c 'import psycopg2'
$

Expected behavior
Steps 5-6 above describe the expected behavior - having docker-compose in the same environment as these packages should not make the them unimportable.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context

I use NixOS with flakes, here is my lockfile: https://github.com/skogsbrus/os/blob/master/flake.lock
I have tried different packages than docker-compose, but it is the only one triggering this behavior.

Notify maintainers

@Frostman, tagging you as you are listed as maintainer of docker-compose.
Not sure who to tag from the Python side of things.

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.11, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.5.0pre20211206_d1aaa7e`
 - channels(root): `"home-manager-21.05, nixos-21.05.1542.268dee84298"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

For what it's worth, I see the same behaviour if I change the shell file like so:

let
  pkgs = import <nixpkgs> {};
in pkgs.mkShell {
  buildInputs = [
    pkgs.python39Packages.psycopg2
    pkgs.docker-compose
  ];
}

or use nix-shell -p:
2.
nix-shell -p python39Packages.psycopg2 docker-compose

So I think that rules out any configuration error on my part?

Some additional checks that I've done after getting some help from @K9000 on Matrix:

I have verified that the issue persists even when using nix-shell --pure. Packages are importable then too, until docker-compose is added.

Running nix-shell -p 'python39.withPackages(ps: [ ps.psycopg2 ])' docker-compose actually does work. With this I'm able to run python -c 'import psycopg2' inside the shell.

But I suppose this still is an issue...?

use (python39.withPackages(ps: with ps; [ psycopg2 ])) instead. That way, you have an interpreter that knows where to find its packages.

But I suppose this still is an issue...?

Nope, it is not. In your first case you were relying on build hooks to set up the environment, and they can't handle mixing Python versions, hence the withPackages method.

I see, TIL. Thanks for taking a look at this so quickly!


Cleaned oschecks configuration

This builds on top of the changes that @paramite made in #80, which are:

use consistent template naming
removed (for now) tricky checks
added subscription granularity for non-api checks

Additionally, this makes the following changes:

Gets all checks green with the exceptions listed in #81
Replaces the oscheck_enable_ variables with a single sensu_enabled_oschecks variable, which is a list.  This allows us to iterate over it in templates/sensu_oschecks.json.j2, which in turn makes the template generation clear.
Introduces an os_auth_args variable that contains common authentication arguments so that these don't nede to be replicated in every single oscheck template (but note, per #81, that not all the checks accept common arguments) (and for similar reasons an os_region_arg variable for those checks that accept the --region_name argument).

Works for me. Tested deployment with latest newton/stable branch of TripleO.


I've added contribution guidelines in README.md file | Fixes #222

Description
I've successfully resolved the issue #222 and successfully added useful changes only..
Related Issue
Fixes #222
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented on my code, particularly in hard-to-understand areas
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

Hello [@subhadipbhowmik] why merging is blocked?
What should I do?
Please let me know as soon as possible.
Regards [@kjl98]

And please review my changes.


GA migration Postcommit XVR

As part of the migration of Precommit and Postcommit Jobs from Jenkins to GA in self-hosted runners, this PR contains:

Migrated workflow job-postcommit-pythonusingjavasql-dataflow.yml
Migrated workflow job-postcommit-xvr-samza.yml
Migrated workflow job-postcommit-xvr-spark.yml

The migrated workflows were removed from .test-infra/jenkins/README.md and added to CI.md
DO NOT MERGE until the effort to use self-hosted runners is completed https://github.com/apache/beam/pull/22703
These workflows use base actions listed in https://github.com/apache/beam/pull/23109 (Dependency)

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

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

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

Successful executions on self-hosted runners:

Spark XVR: https://github.com/benWize/beam/runs/8279048721?check_suite_focus=true

Run Java PreCommit

Run Java PreCommit

Run Java PreCommit

LGTM!

Run Python_PVR_Flink PreCommit


Traffic Portal - ORG servers should show what MSO DSs are using them

When you click on a server, it should show which delivery services have that origin server assigned.  This will reduce confusion as we can and do have multiple origin servers with the same hostnames.  It would also help if you could click on the server to modify the config when viewing the assigned servers list for a DS.

ok, so right now if you click on a server of type EDGE you’ll see

you want the 'View Delivery Services' menu item to show for ORG servers, right?

Yes exactly.

and also, on the ds / server assignment page (https://localhost:8443/#!/delivery-services/:dsId/servers?type=DNS), you want the servers to be clickable, right? so you can quickly go to a server to edit the properties...

it looks like in TP you can see the ds's associated with an ORG server

and also, on the ds / server assignment page (https://localhost:8443/#!/delivery-services/:dsId/servers?type=DNS), you want the servers to be clickable, right? so you can quickly go to a server to edit the properties...

this appears to be done too. closing this issue. @dg4prez please reopen if things don't look right.


Unable to remove border from search widget input text.

Steps to Reproduce
When using showSearch method and have a custom theme in which enabledBorder is defined, that border is set in the search input text field, when submit is pressed and focus is lost.
Example app sets blue border:
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Code Sample',
      theme: ThemeData(
        inputDecorationTheme: InputDecorationTheme(
          border: OutlineInputBorder(
            borderRadius: BorderRadius.circular(4),
          ),
          enabledBorder: const OutlineInputBorder(
            borderSide: BorderSide(color: Colors.blue),
          ),
        ),
      ),
      home: MyStatelessWidget(),
    );
  }
}

class MySearchDelegate extends SearchDelegate<String> {
  @override
  List<Widget> buildActions(BuildContext context) => [];

  @override
  Widget buildLeading(BuildContext context) => IconButton(
        icon: const Icon(Icons.arrow_back),
        onPressed: () {
          close(context, null);
        },
      );

  @override
  Widget buildResults(BuildContext context) => Text('Text');

  @override
  Widget buildSuggestions(BuildContext context) => Text('Text');
}

class MyStatelessWidget extends StatelessWidget {
  MyStatelessWidget({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('AppBar Demo'),
        actions: <Widget>[
          IconButton(
            icon: const Icon(Icons.search),
            tooltip: 'Next page',
            onPressed: () {
              showSearch(context: context, delegate: MySearchDelegate());
            },
          ),
        ],
      ),
      body: const Center(
        child: Text('This is the home page'),
      ),
    );
  }
}

Rendered widget:

Possible solution
Currently in material/search.dart query widget only border field is set to InputBorder.none.
Setting also enabledBorder: InputBorder.none solves a problem.
TextField(
            controller: queryTextController,
            focusNode: widget.delegate._focusNode,
            style: theme.textTheme.title,
            textInputAction: TextInputAction.search,
            onSubmitted: (String _) {
              widget.delegate.showResults(context);
            },
            decoration: InputDecoration(
              border: InputBorder.none,
              hintText: searchFieldLabel,
              enabledBorder: InputBorder.none,
            ),
          ),

Logs
▶ flutter analyze
Analyzing search_problem...
No issues found! (ran in 2.0s)

▶ flutter doctor -v
[✓] Flutter (Channel beta, v1.5.4-hotfix.2, on Mac OS X 10.14.5 18F132, locale en-LT)
    • Flutter version 1.5.4-hotfix.2 at /Users/ts/Documents/flutter
    • Framework revision 7a4c33425d (3 weeks ago), 2019-04-29 11:05:24 -0700
    • Engine revision 52c7a1e849
    • Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/ts/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2.1, Build version 10E1001
    • ios-deploy 1.9.4
    • CocoaPods version 1.6.1

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 35.3.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.34.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.0.2

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

• No issues found!

customer:mulligan is affected by it as well.

The appBarTheme method on the delegate is available to override the theme when building the app bar on the search page.
The issue is that it assigns only select properties from the theme to select properties on the app bar and text field. Ideally, the whole theme should be applied to the Scaffold's appBar.

focusedBorder: InputBorder.none,
try the above

Or make it transparent
focusedBorder = new OutlineInputBorder(             borderSide: BorderSide(color:Colors.transparent),             borderRadius: const BorderRadius.all(               const Radius.circular(16),             ),           );


GSD Request

--- GSD JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from v5.12 to before v5.16.11",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=803eb124e1a64e42888542c3444bfe6dac412c7f",
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a2995fe23095ceda2dc382fbe057f5e164595548"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "803eb124e1a64e42888542c3444bfe6dac412c7f",
      "note": "introduced"
    },
    {
      "type": "commit",
      "value": "a2995fe23095ceda2dc382fbe057f5e164595548",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "mtd: parsers: qcom: Fix kernel panic on skipped partition\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.16.11 by commit a2995fe23095ceda2dc382fbe057f5e164595548, it was introduced in version v5.12 by commit 803eb124e1a64e42888542c3444bfe6dac412c7f. For more details please see the references link."
}
--- GSD JSON ---

This issue has been assigned GSD-2022-1000560


Add Vedo sensors

Hello, can you see the status of the alarm zones?

Hi Vincenzo,
the integration already supports zones.
The alarm_control_panel entity allows arming/disarming it.

turn on turn off it does, what I would like to see is the status of the zones, for example, kitchen window open or closed etc etc

It will come later. There were issues with that, so I disabled this feature.

thank you very much

Hi and thank you for the integration! It will be incredible to expose Vedo sensors, so we can use motion sensors for lights and other scenarios! I can confirm now that integration works as expected with zones too. I will wait and thank you again.

Hi Gicamm,
Any news about?

e status of the zones

Hi, I hope to expose vedo binary sensors asap. However, the main issue will be testing the feature. Before releasing the part, it would be helpful if you could try it with me.

Salve, spero di esporre al più presto i sensori binari vedo. Tuttavia, il problema principale sarà testare la funzionalità. Prima di rilasciare la parte, sarebbe utile se potessi provarla con me.

Hi, I'd be happy to be a tester

Hi, I hope to expose vedo binary sensors asap. However, the main issue will be testing the feature. Before releasing the part, it would be helpful if you could try it with me.

Hi, I'd be happy to be a tester

Hi, I hope to expose vedo binary sensors asap. However, the main issue will be testing the feature. Before releasing the part, it would be helpful if you could try it with me.

Hi, I'd be happy to be a tester

me too

I completed the changes. The integration is here
The configuration should be something like below.
vedo:
  host: X.X.X.X
  port: 80
  password: xxxxxx
  scan_interval: 30
  binary_sensors: enable

You need to enable binary sensors (binary_sensors: enable) You can reduce the scan_interval to get new data more frequently. 30 is too much for motion sensors.
You'll see new entities binary_sensor.comelit_vedo_xxx

Hi Gicamm
I have replace the integration with the new ones and add the binary_sensors line but nothing appear

Ho completato le modifiche. L'integrazione è qui
La configurazione dovrebbe essere simile alla seguente.
vedo:
  host: X.X.X.X
  port: 80
  password: xxxxxx
  scan_interval: 30
  binary_sensors: enable

È necessario abilitare i sensori binari (binary_sensors: enable) È possibile ridurre scan_interval per ottenere nuovi dati più frequentemente. 30 è troppo per i sensori di movimento.
Vedrai nuove entità binary_sensor.comelit_vedo_xxx

How do I install the new integration?

You need to put the 'comelit' under the custom_components/ folder. Then you need to update the configuration.yml file.

Ho completato le modifiche. L'integrazione è qui
La configurazione dovrebbe essere simile alla seguente.
vedo:
  host: X.X.X.X
  port: 80
  password: xxxxxx
  scan_interval: 30
  binary_sensors: enable

È necessario abilitare i sensori binari (binary_sensors: enable) È possibile ridurre scan_interval per ottenere nuovi dati più frequentemente. 30 è troppo per i sensori di movimento.
Vedrai nuove entità binary_sensor.comelit_vedo_xxx

How do I install the new integration?

You need to put the 'comelit' under the custom_components/ folder. Then you need to update the configuration.yml file.

You need to put the 'comelit' under the custom_components/ folder. Then you need to update the configuration.yml file.

Ho completato le modifiche. L'integrazione è qui
La configurazione dovrebbe essere simile alla seguente.
vedo:
  host: X.X.X.X
  port: 80
  password: xxxxxx
  scan_interval: 30
  binary_sensors: enable

È necessario abilitare i sensori binari (binary_sensors: enable) È possibile ridurre scan_interval per ottenere nuovi dati più frequentemente. 30 è troppo per i sensori di movimento.
Vedrai nuove entità binary_sensor.comelit_vedo_xxx

How do I install the new integration?

You need to put the 'comelit' under the custom_components/ folder. Then you need to update the configuration.yml file.

i have done what you wrote but nothing happened

I have found this error if it help: Error while setting up comelit platform for binary_sensorTraceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 320, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/comelit/binary_sensor.py", line 13, in async_setup_platform if hass.data[DOMAIN]['hub'] is not None: ~~~~~~~~~~~~~~~~~^^^^^^^ KeyError: 'hub'

me too nothing

Questo errore ha avuto origine da un'integrazione personalizzata.
Logger: custom_components.comelit.vedo
Source: custom_components/comelit/vedo.py:282
Integration: Comelit SimpleHome/Vedo (documentation, issues)
First occurred: 21:07:22 (1 occurrences)
Last logged: 21:07:22
Error getting data! cookie expired

Logger: homeassistant.components.binary_sensor
Source: custom_components/comelit/binary_sensor.py:13
Integration: Sensore binario (documentation, issues)
First occurred: 21:05:21 (1 occurrences)
Last logged: 21:05:21
Error while setting up comelit platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/comelit/binary_sensor.py", line 13, in async_setup_platform
if hass.data[DOMAIN]['hub'] is not None:
KeyError: 'hub'

You haven't the hub, that explains the issue.
I made a change. Please confirm if it works.

You haven't the hub, that explains the issue. I made a change. Please confirm if it works.

how do i make the changes?

You haven't the hub, that explains the issue. I made a change. Please confirm if it works.

how do i make the changes?

you need to download the new integration from here

You haven't the hub, that explains the issue. I made a change. Please confirm if it works.

Hi Gicamm,
it works for the motion sensors (i see off in the state at the moment) while the door and window sensors do not appear
i don's see any errors in the log

I cannot test the door sensors, so that it couldn't be supported.

I cannot test the door sensors, so that it couldn't be supported.

Ok but you know why only two motion sensors are visibile and not three?
If there is a way to help you to support also the door sensor please let me know, i would glad to help you

I cannot test the door sensors, so that it couldn't be supported.

Ok but you know why only two motion sensors are visibile and not three?
If there is a way to help you to support also the door sensor please let me know, i would glad to help you

Mmm, strange.
Everyone who can contribute is welcome. You can add support to door sensors.

I cannot test the door sensors, so that it couldn't be supported.

Ok but you know why only two motion sensors are visibile and not three?
If there is a way to help you to support also the door sensor please let me know, i would glad to help you

Mmm, strange. Everyone who can contribute is welcome. You can add support to door sensors.

Hi Gicamm,
no, I'm not able, I was wondering if I could help you implement them but with your help

If can help you i found this project:
https://github.com/madchicken/comelit-client
with this command: vedo -h VEDO_IP -p PORT zone --status --desc --code <ARM/DISARM CODE>
i received this:
ecuting zone status call
[
{
index: 1,
description: 'Zona 24H',
open: false,
excluded: false,
isolated: false,
sabotated: false,
alarm: false,
inhibited: false
},
{
index: 3,
description: 'PORTA CUCINA',
open: false,
excluded: false,
isolated: false,
sabotated: false,
alarm: false,
inhibited: false
},
{
index: 5,
description: 'FINESTRA CUCINA',
open: false,
excluded: false,
isolated: false,
sabotated: false,
alarm: false,
inhibited: false
},
{
index: 7,
description: 'P.FIN. SALA',
open: false,
excluded: false,
isolated: false,
sabotated: false,
alarm: false,
inhibited: false
},
{
index: 9,
description: 'PORTONE ING.',
open: false,
excluded: false,
isolated: false,
sabotated: false,
alarm: false,
inhibited: false
},
{
index: 11,
description: 'FIN. SALA',
open: false,
excluded: false,
isolated: false,
sabotated: false,
alarm: false,
inhibited: false
},
{
index: 13,
description: 'BAGNO',
open: false,
excluded: false,
isolated: false,
sabotated: false,
alarm: false,
inhibited: false
},
{
index: 15,
description: 'FIN. GARAGE',
open: false,
excluded: false,
isolated: false,
sabotated: false,
alarm: false,
inhibited: false
},
{
index: 17,
description: 'RIV. GARAGE',
open: false,
excluded: false,
isolated: false,
sabotated: false,
alarm: false,
inhibited: false
},
{
index: 19,
description: 'CAM. LATO ING.',
open: false,
excluded: false,
isolated: false,
sabotated: false,
alarm: false,
inhibited: false
},
{
index: 21,
description: 'BAGNO CAMERA',
open: false,
excluded: false,
isolated: false,
sabotated: false,
alarm: false,
inhibited: false
},
{
index: 23,
description: 'CAM. MATRIM.',
open: false,
excluded: false,
isolated: false,
sabotated: false,
alarm: false,
inhibited: false
},
{
index: 25,
description: 'CAMERA A',
open: false,
excluded: false,
isolated: false,
sabotated: false,
alarm: false,
inhibited: false
},
{
index: 147,
description: 'RIV. GIORNO',
open: false,
excluded: false,
isolated: false,
sabotated: false,
alarm: false,
inhibited: false
},
{
index: 149,
description: 'RIV. NOTTE',
open: false,
excluded: false,
isolated: false,
sabotated: false,
alarm: false,
inhibited: false
}
]
maybe you can integrate it in your project for binary sensor.

You haven't the hub, that explains the issue. I made a change. Please confirm if it works.

Hi Gicamm,
it works for the motion sensors (i see off in the state at the moment) while the door and window sensors do not appear.
I have three motion sensors but only two are visibile in the entities list
i don's see any errors in the log

i am at home now but the motion sensors don't change, they are off all time

ciao,
Questo errore ha avuto origine da un'integrazione personalizzata.
Logger: custom_components.comelit.vedo
Source: custom_components/comelit/vedo.py:282
Integration: Comelit SimpleHome/Vedo (documentation, issues)
First occurred: 17:49:37 (2 occurrences)
Last logged: 17:52:11
Error getting data! cookie expired

You haven't the hub, that explains the issue. I made a change. Please confirm if it works.

Hi Gicamm,
it works for the motion sensors (i see off in the state at the moment) while the door and window sensors do not appear.
I have three motion sensors but only two are visibile in the entities list
i don's see any errors in the log

i am at home now but the motion sensors don't change, they are off all time

Setting the scan_interval to 30s is challenging to catch the change.
Anyway, to be clear. The Vedo API isn't designed for this kind of stuff. The integration needs to be continuously logged in. With the comelit hub, they did a good job since they moved to mqtt. So That's the reason why I did not integrate binary sensors, and maybe it will never be integrated.

Please update with the latest code. Then change the log levels.
logger:
  default: warn
  logs:
    custom_components.comelit.hub: info
    custom_components.comelit.vedo: debug

I'm running the integration without issues, but maybe something could be different.

Please update with the latest code. Then change the log levels.
logger:
  default: warn
  logs:
    custom_components.comelit.hub: info
    custom_components.comelit.vedo: debug

I'm running the integration without issues, but maybe something could be different.

Please update with the latest code. Then change the log levels.
logger:
  default: warn
  logs:
    custom_components.comelit.hub: info
    custom_components.comelit.vedo: debug

I'm running the integration without issues, but maybe something could be different.

Vincenzo hai risolto?
Neanche io vedo i binary.sensors dopo aver aggiornato l'integrazione e modificato il configuration.yaml

Se ti può essere d'aiuto ho notato che con l'app comelit non c'è bisogno di effettuare il login per vedere lo stato dei sensori.
I have just made some changes to the '42-add-vedo-sensors' branch.
You need to enable binary sensors (binary_sensors: enable)
The configuration should look something like this
vedo:
  host: X.X.X.X
  port: 80
  password: xxxxxx
  scan_interval: 30
  binary_sensors: enable

You can reduce the scan_interval to get new data more frequently. 30 is too much for motion sensors.
You'll see new entities binary_sensor.comelit_vedo_xxx
Can you help with testing?


Use the builtin local command in shell integration scripts

Sometimes people redefine local to something else, just like you could with other builtins. So in the shell integration scripts we should really use builtin local to avoid calling the redefined version.

@microsoft-github-policy-service agree [company="Hudson River Trading"]

@microsoft-github-policy-service agree company="Hudson River Trading"

@microsoft-github-policy-service agree company="Hudson River Trading"


Copy GIF to clipboard results in PNG being pasted

macOS version: 10.14.6
Kap version: https://github.com/wulkano/kap/commit/735ddaf8cdfd03db4481c816647a6bcce10aa936
Current behaviour

Showing GitHub as paste target here, same issue applies to Slack for example.
Expected behaviour
It copies the exported GIF to the clipboard.

I believe that option is the copy-to-clipboard plugin, which is deprecated (https://www.npmjs.com/package/kap-clipboard)

As a workaround, you can export to file, then drag and drop from the exports window

That is a bug in Chrome which has been open for years. Not much we can do about it.

@sindresorhus Oh. Wow. I wonder where people try to copy GIFs besides Chrome and Electron applications, that nobody reported this yet 😅

Earlier this functionality was provided by the kap-clipboard plugin, which is now deprecated. We only recently made this functionality available through Kap itself. We're really bummed that this has been lingering upstream for so long.

I even got Chrome friends to comment on the bug with no result...

We should definitely add back drag and drop, but built-in, as that actually works with Chrome.


Operation returned an invalid status 'OK'

[Enter feedback here]
Hello,
I get this message "Operation returned an invalid status 'OK'" when running the "az webapp deployment source config" command. The repo I am uring is a public GitHub repository.
Any help is appreciated!
Thanks

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

ID: 6b1a87f6-8276-6a4c-299a-8d2a9a17a1f0
Version Independent ID: 07bc4ef2-6de3-af70-8dfd-65eab7ddc965
Content: CLI: Deploy an app from GitHub - Azure App Service
Content Source: articles/app-service/scripts/cli-deploy-github.md
Service: app-service
GitHub Login: @msangapu-msft
Microsoft Alias: msangapu

@zaalion
Thanks for your feedback! We will investigate and update as appropriate.

Hi @zaalion I unfortunately wasn't able to reproduce your issue so here some steps to figure out what's going on. Since you received an OK result, rerun your command with --debug to see if there any errors upstream that may have failed. Possible causes could be error with reaching the github repo, an error with setting the source control value of your app service. If you are able to repro your issue, please feel free to comment with the details and @ me in your reply.

I just had the same issue.
I ran az webapp deployment source config in Azure CLI and got a red return message Operation returned an invalid status 'OK'
While my web app status showed as running with no issues, I tried to access it via a web browser and it wouldn't serve. I restarted the web app, pulled it up in a browser and once it was loading again, I ran the command and it executed successfully.
I thought I'd post here in case anyone else arrives here like I did.

I did a az container restart with a container which just returns exit 1.
This container has the RestartPolicy Never.
In the Azure Web Portal the Container is marked as terminated.
The az container restart command was still Running ... for a long time until it hit a timeout.
Then I got the response ERROR: Operation returned an invalid status 'OK'.

I did a az container restart with a container which just returns exit 1. This container has the RestartPolicy Never. In the Azure Web Portal the Container is marked as terminated.
The az container restart command was still Running ... for a long time until it hit a timeout. Then I got the response ERROR: Operation returned an invalid status 'OK'.
That's extremely missleading.

@MartinX3 can you create a new issue under https://learn.microsoft.com/en-us/answers/tags/418/azure-container-apps. Please include code snippets of your image and scripts you used to deploy and manage your app. Detailed repro steps will be very helpful in determining if this is a transient issue or not.


urllib.request.urlopen cannot open url

Issue Type: Bug
I used anaconda and followed this tutorial. https://www.youtube.com/watch?v=vKFc3-5Y17U
I tried running and debugging my code with pycharm and vs code. pycharm allows the debugging and grabs the url request, code does not. I get this error everytime.
File "C:\Users\pahtj\Anaconda3\lib\urllib\request.py", line 548, in _open
'unknown_open', req)
File "C:\Users\pahtj\Anaconda3\lib\urllib\request.py", line 503, in _call_chain
result = func(*args)
File "C:\Users\pahtj\Anaconda3\lib\urllib\request.py", line 1387, in unknown_open
raise URLError('unknown url type: %s' % type)
urllib.error.URLError:
VS Code version: Code 1.41.0 (9579eda04fdb3a9bba2750f15193e5fafe16b959, 2019-12-11T18:37:42.077Z)
OS version: Windows_NT x64 10.0.18363

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2592)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
39.79GB (22.33GB free)

Process Argv
C:\Users\pahtj\OneDrive\Documents\GitHub\Projects\Research\turbine_opt\DesignTool\3D\rev10_python

Screen Reader
no

VM
67%

Extensions (16)

Extension
Author (truncated)
Version

rest-client
hum
0.23.0

azure-pipelines
ms-
1.157.4

vscode-apimanagement
ms-
0.1.1

vscode-azureappservice
ms-
0.16.2

vscode-azurefunctions
ms-
0.20.1

vscode-azurestorage
ms-
0.7.2

vscode-cosmosdb
ms-
0.11.0

vscode-docker
ms-
0.9.0

mssql
ms-
1.8.0

python
ms-
2019.11.50794

vscode-ai
ms-
0.6.8

azure-account
ms-
0.8.7

azurecli
ms-
0.4.6

vscode-node-azure-pack
ms-
0.0.10

azurerm-vscode-tools
msa
0.8.3

azure-iot-toolkit
vsc
2.14.0

Is this about the Santa hat removal..?

I need the python extension. I’ll share my files over github

https://github.com/pjuangph/web-scraper
Now you can try it. I’m using it with anaconda python 3.74 for both vs code and pycharm

@pjuangph this looks like a problem wtih the Python extension. Please file the issue here: https://github.com/Microsoft/vscode-python

Here is what I deleted since we decided to preserve it:


#7 Upgrade FCM to use v1 API

Because of
But keep in mind multi device notification sending with multipart (mixed) is not ietf standard for HTTP it is draft (So can be done not by multipart but multiple http request), FCM V1 not uses batch request but creates new strem(word in http2) for every request. (It should be improved)


Integration

This is a placeholder to integrate dev branch into main
@yelghali @tomkerkhove

@tomkerkhove sounds good, we can rework on the readme once the integration is done.


Pick new color theme for F3D

In the context of https://github.com/f3d-app/f3d/issues/845, we realised now it the right theme to pick a new color theme for F3D, let pick it together!

Here is the first pick of colors suggested by @mariami:

For reference, there's a tool from Adobe allowing to create palettes: https://color.adobe.com/create/color-wheel
Here's a "compound" palette of 4 pastel colors I just created:

We have these shades of blue and yellow for the links and CTA buttons for now:

Nice! Looks good to me! I wonder how it would look with colors a bit less intense.

I picked different shades for all four colours. The light version of the UI will have light grey for the background instead of white:

The last proposition by @MarieZedginidze has been picked! Thanks a lot!

Should we also use the new colors for the app itself? e.g. new background color:
current:

new (#141414):

Isnt it a bit too dark for a background ? color theme doesnt really matter in that case imo.


Split input components out in Gopkg.lock

Fixes #508
Fixes #421
The essential changes are as follows:

Lock now has a Lock.Inputs that contains the three bits of input info we want to track (for now): the old top-level Memo property, plus the name and version of the analyzer.
gps.Solution adds two methods to return the name and version of the ProjectAnalyzer that was used to create the solution.
LockFromInterface(in gps.Lock) *Lock becomes LockFromSolution(in gps.Solution) *Lock.

This now fixes #421, as well.

this is integrated in the stabilize-files branch


Update Funding the Commons venue

Please update venue location and address.

Hi @theresatherriault.  This event is currently showing Convento as the venue which appears to match the eventbrite registration link. Would you like a different location listed?

No, that's what I wanted. Thank you for confirming and sorry for the extra work. I swear it was showing as Suspenso when I looked this morning.

@theresatherriault
Thank you so much!  I will close the request.  Please reach out with any additional changes.  We are happy to help!


Parsing ARG varibales

Replace the arg varibles in the dockerfile if known.
Work towards #508.
Signed-off-by: WangJL<EMAIL_ADDRESS>

@ForgetMe17 could you update your commit message?
Parsing ARG varibales --> variables

Replace the arg varibles --> variables in the dockerfile if known.

Work towards #508.

Thanks for your review. Sorry for the misspelling, i will be more careful.

@ForgetMe17 no worries! You're doing great! One request I would like to make is to add more description about what you did to resolve the issue in the commit message. It's a significant change and a lot of work :)

@rnjudge OK to merge?

@rnjudge OK to merge?

LGTM!


Azure HPC Cache support for NFS v4.1+

Does Azure HPC Cache support NFS v4.1+?

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

ID: 81b6e2f6-af8e-d71e-fbe9-6b7ebc7b4673
Version Independent ID: 9804269a-4518-5ce7-866c-c1dd3899178b
Content: Azure HPC Cache prerequisites
Content Source: articles/hpc-cache/hpc-cache-prerequisites.md
Service: hpc-cache
GitHub Login: @ekpgh
Microsoft Alias: kianaharris

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

@KurtSchenk
Azure HPC Cache does NOT support NFSv4.1+ unfortunately.


Add notification section and create a menu section below the profile icon

1. Add notification section (as the image below)
Added a notification section to send notifications to users, for example, when masternode they voted is slashed/resigned,  there is a new updated version or anything change
2. Create a menu section below the profile icon for users (as the image below)
Create a menu section could help users understand that they have successfully logged in, more easily to manage their personal wallet information and have the option to log out.

pull request for the second option:
https://github.com/tomochain/tomomaster/pull/524


createAbortSignal support

It should be pretty useful to have a createAbortSignal primitive, that returns an AbortSignal that's automatically aborted when the parent computation is disposed.

No comment from me on the idea of a new package as I never used this api before. But if you didn't know, the createFetch primitive is abortable, and is using this api internally. So you are able to create abortable resources with it.
@atk should be able to give you more insight into this.

Yeah signal support is being added to a bunch of APIs, and crucially it can also be used in user code.

Yes, but unfortunately, AbortController is currently only used in fetch requests and direct event bindings. Obviously, you could use it yourself, but that's hardly more useful than a separate signal.

The usefulness of it comes from being standard, otherwise there would be no usefulness to everything else you could reimplement on your own. Either way feel free to close this issue if you like 👍

I'm 100% for using standards. I'm just not sure if this should be a separate package or merely an export of createFetch.

I guess adding it to fetch would be a fine starting point.

@atk You've implemented something like this in the resource package, right?
https://github.com/solidjs-community/solid-primitives/tree/main/packages/resource#makeabortable

Yes.


Fixed mod path in launchSettings.json

In launchSettings.json the mod path is not escaped and does not work if the path contains spaces

Related #24


Implementing reader module: #246

Release notes

Implement the partitioning reader class

Release notes

Implement the partitioning reader class


Do not deny updates for old shoots with invalid domains

How to categorize this PR?

/area ops-productivity security
/kind bug
What this PR does / why we need it:
#5974 introduced a validation for shoot default domains that is performed on every shoot operation. This caused an issue for very old shoot clusters that already specified an incorrect domain, but are currently used so deleting the shoot to create a new one with a valid domain is not an option.
This PR moves the check whether a shoot's domain is valid or not so that it is only performed in the following cases:

On shoot creation, if the shoot.spec.dns.domain is set in the shoot.yaml.
On shoot updates, if the soot.spec.dns.domain was not defined, and it is set with the current update operation
On shoot updates, If a very old shoot had specified an invalid domain but was never assigned to a seed and is getting assigned to a seed for the first time with the current update operation.

/cc @rfranzke @ialidzhikov @acumino
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

Allow updates of old shoot clusters that were already created with an invalid default domain before the validation was introduced.

/assign

/cherry-pick release-v1.49


Change agents from being poll based to event driven

This PR changes the agents to tell the scheduling layer above what they're waiting on. Then, the scheduler can wake them up when either (1) a timer completes or (2) some data they observed changes.
https://github.com/get-convex/ai-town/assets/5784949/d7f56686-7197-47b2-843c-0431102be930
The bookkeeping here is a bit tricky, where agents can tell the scheduler that they're waiting on one of any conditions to change, and then writes elsewhere in the system need to wake up the appropriate agents. @thomasballinger this could be a good use case for a scheduler based "trigger" in the future.
There's still a few scale improvements we'll need to make before getting to 8 agents comfortably:

I think we'll want to merge the agentRun instances into a single mutation, since I think we're running into V8 concurrency limits. The symptom is that the engine gets starved for a while when the agents are all busy.
We're also hitting OCC errors on the wakeupAgents function since it's reading a ton of data. I'll change it to have a more focused readset.

Looks good so far- going to wait until the agentRun batching & wakeupAgent readset optimization.
One higher level Q: will this extend naturally to running an agent on another server (e.g. locally)? Maybe the scheduled run could just translate into a http webhook to them?

Looks good so far- going to wait until the agentRun batching & wakeupAgent readset optimization.
One higher level Q: will this extend naturally to running an agent on another server (e.g. locally)? Maybe the scheduled run could just translate into a http webhook to them?

yeah, that's a really good question. I think eventually it'd be cool if the scheduling layer was generic --

scheduler.runAfter on Convex could just be a local sleep
I'd love for us to revisit triggers for the data-driven agent wakeups. Then, we could turn "scheduler.runOnChanged(token)to a public/subscribe` API that takes in a token and returns when it's invalidated.

will move this over to the a16z repo.


fix: bump grpcio, urllib3 and paramiko

SUMMARY
Bumps grpcio used by bigquery fixes: https://github.com/advisories/GHSA-p25m-jpj4-qcrr
paramiko 3.4.0 fixes: https://terrapin-attack.com
urllib3 fix: https://nvd.nist.gov/vuln/detail/CVE-2023-45803
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

@dpgaspar if we're bumping the requirements (to address either security or functionality concerns) then we should be updating the constraints in either setup.py and/or the *.in files to ensure that regardless of how the Python dependencies are installed the version requirements will be met.
The primary reason for the frozen dependencies is to ensure a deterministic CI and typically aren't used for installing Superset.

@john-bodley good point, on these cases I think it makes sense to set these constraints on *.in
https://github.com/apache/superset/pull/27167


Add support for Cucumber 2.4

Now it fails with error uninitialized constant Cucumber::Events::TestCaseStarted (NameError) in Formatter https://github.com/reportportal/agent-ruby/blob/master/lib/report_portal/cucumber/formatter.rb#L44 immediately after launch

@aliaksandr-trush would you mind to contribute? ;)

@alalayla we are open for contribution!

Support for Cucumber 2 was removed some time ago with addition of support for Cucumber 3. We weren't sure it's worth to have compatibility.

Latest version that supports Cucumber 2 is 0.5 https://github.com/reportportal/agent-ruby/releases/tag/0.5

Cucumber 2 is quite old, and we aren't going to support for it. If you need it, you can use an older version of this gem or patch it.