Replace AWS sigv2 with sigv4

TODO: cherry-pick @PrajaktaPurohit 's expiry-windows work.
Bookshelf changes for sigv4. Assumes merged erlang22 and license scout PRs, among others.
This PR is part of a broader effort to replace AWS sigv2 with sigv4, encompassing modifications to oc_erchef, bookshelf, mini_s3, erlcloud, pedant clients, and other systems. In brief, the erlcloud library was wired-in to oc-erchef and bookshelf via mini_s3. oc-erchef was modified to generate sigv4 requests. bookshelf was modified to accept sigv4 requests. A host of issues were solved pertaining to host headers and ports, expiration windows, ipv6, etc. Finally, new unit tests exercising various aspects of newly-added functionality were added.
These commits were originally squashed and had to be unsquashed.  Consequently, the commit messages were lost.  However a brief list of some changes can be found at the end.
A few umbrella tests occasionally fail and eventually pass on a re-run.  However, master seems to exhibit the same behavior, e.g.
https://buildkite.com/chef/chef-umbrella-master-chef-server/builds/239#46e6ab07-c720-4a4a-8982-64a63f0d550d
See:
https://github.com/chef/chef-server/issues/1911
https://github.com/chef/mini_s3/pull/31
https://github.com/chef/erlcloud/pull/2
verify:
https://buildkite.com/chef/chef-chef-server-master-verify/builds/2324
https://buildkite.com/chef/chef-chef-server-master-verify/builds/3295
adhoc:
https://buildkite.com/chef/chef-chef-server-master-omnibus-adhoc/builds/1606
https://buildkite.com/chef/chef-chef-server-master-omnibus-adhoc/builds/2202
umbrella:
https://buildkite.com/chef/chef-umbrella-master-chef-server/builds/278
add sigv4 presigned url request verification
add unit tests for bksw_sec.erl
add 2nd method for sigv4 url request verification and associated tests
add authorization header request vs previously-coded presigned url request
add headers check; add -specs
fix chef_s3_tests.erl:
if i understood the tests correctly, and understood what was being
tested, there was some impedance mismatch between how the old mini_s3
did things and how the new erlcloud and mini_s3 wrapper does things. old
mini_s3 config apparently stores a whole url, either with port
(scheme://whatever.com:port) or without port (scheme://whatever.com).
erlcloud config stores the url in separate pieces (scheme, uri, port,
etc), and it always stores a port. the issue with these tests was,
the test result wanted the url which may or may not have originally
included a port. this was fine for old mini_s3, as it just stored the
whole url (which either included or didn't include the port), and could
produce this url on demand. but this wasn't fine for erlcloud, because
it always has a port stored, and defaults to a port if there isn't one.
this fix attempted to address this issue.set cache-control header

bksw_sec: dont trigger new sha256 calculation in erlcloud sigv4 signing
change test dealing with seemingly url-encoded bucket; revert previous change which assumed bucket listings needed to be url-decoded.
patch in alternate computation/evaluation of host header
fix pedant test expecting a 503 but getting a 500
got the following pedant test failure:
Sandboxes API Endpoint
  Sandboxes Endpoint, PUT
	when committing an incomplete sandbox
	  should respond with 503 Service Unavailable (FAILED - 1)
Deleting organization pedant_testorg_api_10584 ...

Failures:

  1) Sandboxes API Endpoint Sandboxes Endpoint, PUT when committing an incomplete sandbox should respond with 503 Service Unavailable
	 Failure/Error: should look_like expected_response

	   Response should have HTTP status code 503 ('Service Unavailable'), but it was actually 500 ('Internal Server Error')
		 Reponse Body: {"error":["internal service error"]}
	 # ./lib/pedant/rspec/common.rb:78:in `block in should_respond_with'

Finished in 1.94 seconds (files took 2.02 seconds to load)
1 example, 1 failure

Failed examples:

rspec ./spec/api/sandboxes/complete_endpoint_spec.rb:196 # Sandboxes API Endpoint Sandboxes Endpoint, PUT when committing an incomplete sandbox should respond with 503 Service Unavailable

it appears to have been caused by this (404s):
==> /var/log/opscode/opscode-erchef/erchef.log <==
2020-06-16 18:13:15.818 [error] Checking presence of file (checksum: <<"d43de48f09dfd4affdb95a87516342fd">>) for org <<"db654ca8f09eac95246f4f5965b0e433">> from bucket "lbaker-east-ohio" (key: "organization-db654ca8f09eac95246f4f5965b0e433/checksum-d43de48f09dfd4affdb95a87516342fd") raised exception error:{aws_error,{http_error,404,"Not Found",<<>>}}

==> /var/log/opscode/opscode-erchef/crash.log <==
2020-06-16 18:13:15 =ERROR REPORT====
Checking presence of file (checksum: <<"d43de48f09dfd4affdb95a87516342fd">>) for org <<"db654ca8f09eac95246f4f5965b0e433">> from bucket "lbaker-east-ohio" (key: "organization-db654ca8f09eac95246f4f5965b0e433/checksum-d43de48f09dfd4affdb95a87516342fd") raised exception error:{aws_error,{http_error,404,"Not Found",<<>>}}

no one is around for me to ask.  assuming for now that a 404 is supposed
to return a 503 for this pedant test, and that's the behavior we want?
patching for this assumed behavior for now.

Related erlcloud commits: https://github.com/chef/erlcloud/pull/1
Related mini_s3 commits: https://github.com/chef/mini_s3/pull/31

@lbakerchef thank you for your work on this, left some suggestions. Will be happy to talk through them.

TODO: cherry-pick @PrajaktaPurohit 's expiry-windows work.

Hi friends, any chance you could take my github name out of the commit message in 4bd9b70.  Otherwise I get notified on every push to this branch.
You may also want to do the same for whoever owns @-ssd on Github.

Fixes #1783

8/9/22
https://buildkite.com/chef/chef-chef-server-main-omnibus-adhoc/builds/4838
https://buildkite.com/chef/chef-umbrella-main-chef-server-full/builds/230

Last test before vhost changes:
https://buildkite.com/chef/chef-umbrella-main-chef-server-full/builds/245

last adhoc:
https://buildkite.com/chef/chef-chef-server-main-omnibus-adhoc/builds/4931

Test of vhost setting with backend:
root@ip-10-0-2-53:~# chef-server-ctl version
15.1.7+20220909192304

root@ip-10-0-2-53:~# chef-server-ctl status
-------------------
 Internal Services
-------------------
run: haproxy: (pid 19962) 2825s; run: log: (pid 2589) 2942s
run: nginx: (pid 6338) 2311s; run: log: (pid 19940) 2833s
run: oc_bifrost: (pid 19967) 2825s; run: log: (pid 19767) 2916s
run: oc_id: (pid 20062) 2824s; run: log: (pid 19785) 2909s
run: opscode-erchef: (pid 20218) 2698s; run: log: (pid 19902) 2884s
run: redis_lb: (pid 6062) 2370s; run: log: (pid 20112) 2823s
-------------------
 External Services
-------------------

run: elasticsearch: connected OK to http://<IP_ADDRESS>:9200

run: postgresql: connected OK to <IP_ADDRESS>:5432
root@ip-10-0-2-53:~# cat /etc/opscode/chef-server.rb
# snip...
bookshelf["enable"] = false
bookshelf["vip"] = "s3.us-west-2.amazonaws.com"
bookshelf["external_url"] = "https://s3.us-west-2.amazonaws.com"
opscode_erchef["s3_bucket"] = "lbaker-us-west-2"
bookshelf["access_key_id"] = "AKIARUQHMSKVZVNSIY5B"
bookshelf["secret_access_key"] = "/TCMSzU1/OOHlktqDpNNKNi90y/pKY73wvrU6Xfr"

root@ip-10-0-2-53:~# chef-server-ctl test
# snip
Finished in 1 minute 0.4 seconds (files took 4.09 seconds to load)
173 examples, 0 failures, 2 pending

oot@ip-10-0-2-53:~# chef-server-ctl test --all

Tested:
tiered-fresh-install - PASS
tiered-upgrade - PASS
standalone-fresh-install - PASS
standalone-upgrade - PASS

external-elasticsearch:
root@ip-10-0-12-243:~# chef-server-ctl status
-------------------
 Internal Services
-------------------
run: nginx: (pid 9879) 303s; run: log: (pid 20401) 1107s
run: oc_bifrost: (pid 6308) 605s; run: log: (pid 20030) 1155s
run: oc_id: (pid 6403) 605s; run: log: (pid 20049) 1144s
run: opscode-erchef: (pid 6406) 604s; run: log: (pid 20347) 1111s
run: postgresql: (pid 6272) 743s; run: log: (pid 19518) 1167s
run: redis_lb: (pid 9605) 362s; run: log: (pid 20699) 1096s
-------------------
 External Services
-------------------

run: elasticsearch: connected OK to http://elasticsearch.internal:9200

root@ip-10-0-12-243:~# chef-server-ctl version
15.1.7+20220909192304

external-postgres
null_resource.postgresql_config (remote-exec): W: The repository 'http://apt.postgresql.org/pub/repos/apt xenial-pgdg Release' does not have a Release file.
null_resource.postgresql_config (remote-exec): N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
null_resource.postgresql_config (remote-exec): N: See apt-secure(8) manpage for repository creation and user configuration details.
null_resource.postgresql_config (remote-exec): E: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/xenial-pgdg/main/binary-amd64/Packages  404  Not Found [IP: <IP_ADDRESS> 80]
null_resource.postgresql_config (remote-exec): E: Some index files failed to download. They have been ignored, or old ones used instead.
╷
│ Error: remote-exec provisioner error
│
│   with null_resource.postgresql_config,
│   on main.tf line 85, in resource "null_resource" "postgresql_config":
│   85:   provisioner "remote-exec" {
│
│ error executing "/tmp/terraform_1921380137.sh": Process exited with status 100

The same issue exists on vanilla main.

external-opensearch
Failures:

  1) license GET /license with no nodes returns 200 and correct body for superuser
     Failure/Error:
       get(request_url, superuser).should look_like(
         :body_exact => response_body,
         :status => 200
         )

       Expected a full match of the result

         {"limit_exceeded"=>true,
        "node_license"=>25,
        "node_count"=>67,
        "upgrade_url"=>"https://www.chef.io/pricing"}

       to the spec

         {"limit_exceeded"=>false,
        "node_license"=>25,
        "node_count"=>0,
        "upgrade_url"=>/^https\:\/\.*/}

       to succeed, but it didn't!
     # ./spec/api/license_spec.rb:28:in `block (4 levels) in <top (required)>'

  2) license GET /license with no nodes returns 200 and correct body for admin user
     Failure/Error:
       get(request_url, platform.admin_user).should look_like(
         :body_exact => response_body,
         :status => 200
         )

       Expected a full match of the result

         {"limit_exceeded"=>true,
        "node_license"=>25,
        "node_count"=>67,
        "upgrade_url"=>"https://www.chef.io/pricing"}

       to the spec

         {"limit_exceeded"=>false,
        "node_license"=>25,
        "node_count"=>0,
        "upgrade_url"=>/^https\:\/\.*/}

       to succeed, but it didn't!
     # ./spec/api/license_spec.rb:35:in `block (4 levels) in <top (required)>'

  3) license GET /license with no nodes returns 200 and correct body for normal user
     Failure/Error:
       get(request_url, platform.non_admin_user).should look_like(
         :body_exact => response_body,
         :status => 200
         )

       Expected a full match of the result

         {"limit_exceeded"=>true,
        "node_license"=>25,
        "node_count"=>67,
        "upgrade_url"=>"https://www.chef.io/pricing"}

       to the spec

         {"limit_exceeded"=>false,
        "node_license"=>25,
        "node_count"=>0,
        "upgrade_url"=>/^https\:\/\.*/}

       to succeed, but it didn't!
     # ./spec/api/license_spec.rb:42:in `block (4 levels) in <top (required)>'

  4) license GET /license with nodes with one node should return correct body for license status
     Failure/Error:
       get(request_url, superuser).should look_like(
         :body_exact => response_body,
         :status => 200
         )

       Expected a full match of the result

         {"limit_exceeded"=>true,
        "node_license"=>25,
        "node_count"=>68,
        "upgrade_url"=>"https://www.chef.io/pricing"}

       to the spec

         {"limit_exceeded"=>false,
        "node_license"=>25,
        "node_count"=>1,
        "upgrade_url"=>/^https\:\/\.*/}

       to succeed, but it didn't!
     # ./spec/api/license_spec.rb:83:in `block (5 levels) in <top (required)>'

  5) license GET /license with nodes with 25 nodes (license not exceeded) should return correct body for license status
     Failure/Error:
       get(request_url, superuser).should look_like(
         :body_exact => response_body,
         :status => 200
         )

       Expected a full match of the result

         {"limit_exceeded"=>true,
        "node_license"=>25,
        "node_count"=>92,
        "upgrade_url"=>"https://www.chef.io/pricing"}

       to the spec

         {"limit_exceeded"=>false,
        "node_license"=>25,
        "node_count"=>25,
        "upgrade_url"=>/^https\:\/\.*/}

       to succeed, but it didn't!
     # ./spec/api/license_spec.rb:94:in `block (5 levels) in <top (required)>'

  6) license GET /license with nodes with  26 (license exceeded) should return correct body for license status
     Failure/Error:
       get(request_url, superuser).should look_like(
         :body_exact => response_body,
         :status => 200
         )

       Expected a full match of the result

         {"limit_exceeded"=>true,
        "node_license"=>25,
        "node_count"=>93,
        "upgrade_url"=>"https://www.chef.io/pricing"}

       to the spec

         {"limit_exceeded"=>true,
        "node_license"=>25,
        "node_count"=>26,
        "upgrade_url"=>/^https\:\/\.*/}

       to succeed, but it didn't!
     # ./spec/api/license_spec.rb:104:in `block (5 levels) in <top (required)>'

  7) Search API endpoint Index Deletion Roles it should behave like Deletes from Solr Index deletes an object from Solr when deleting from the system as a whole
     Failure/Error: num_before_add.should eq 0

       expected: 0
            got: 1

       (compared using ==)
     Shared Example Group: "Deletes from Solr Index" called from ./spec/api/search/search_spec.rb:584
     # ./lib/pedant/rspec/search_util.rb:838:in `block (2 levels) in <module:RSpec>'

  8) Search API endpoint Index Deletion Nodes it should behave like Deletes from Solr Index deletes an object from Solr when deleting from the system as a whole
     Failure/Error: num_before_add.should eq 0

       expected: 0
            got: 67

       (compared using ==)
     Shared Example Group: "Deletes from Solr Index" called from ./spec/api/search/search_spec.rb:592
     # ./lib/pedant/rspec/search_util.rb:838:in `block (2 levels) in <module:RSpec>'

Finished in 22 minutes 15 seconds (files took 3.77 seconds to load)
5199 examples, 8 failures, 128 pending

Failed examples:

rspec ./spec/api/license_spec.rb:27 # license GET /license with no nodes returns 200 and correct body for superuser
rspec ./spec/api/license_spec.rb:34 # license GET /license with no nodes returns 200 and correct body for admin user
rspec ./spec/api/license_spec.rb:41 # license GET /license with no nodes returns 200 and correct body for normal user
rspec ./spec/api/license_spec.rb:82 # license GET /license with nodes with one node should return correct body for license status
rspec ./spec/api/license_spec.rb:93 # license GET /license with nodes with 25 nodes (license not exceeded) should return correct body for license status
rspec ./spec/api/license_spec.rb:103 # license GET /license with nodes with  26 (license exceeded) should return correct body for license status
rspec ./spec/api/search/search_spec.rb:584 # Search API endpoint Index Deletion Roles it should behave like Deletes from Solr Index deletes an object from Solr when deleting from the system as a whole
rspec ./spec/api/search/search_spec.rb:592 # Search API endpoint Index Deletion Nodes it should behave like Deletes from Solr Index deletes an object from Solr when deleting from the system as a whole

fips:

mtls:

supermarket-upgrade
Failures:

  1) license GET /license with no nodes returns 200 and correct body for superuser
     Failure/Error:
       get(request_url, superuser).should look_like(
         :body_exact => response_body,
         :status => 200
         )

       Expected a full match of the result

         {"limit_exceeded"=>true,
        "node_license"=>25,
        "node_count"=>70,
        "upgrade_url"=>"https://www.chef.io/pricing"}

       to the spec

         {"limit_exceeded"=>false,
        "node_license"=>25,
        "node_count"=>0,
        "upgrade_url"=>/^https\:\/\.*/}

       to succeed, but it didn't!
     # ./spec/api/license_spec.rb:28:in `block (4 levels) in <top (required)>'

  2) license GET /license with no nodes returns 200 and correct body for admin user
     Failure/Error:
       get(request_url, platform.admin_user).should look_like(
         :body_exact => response_body,
         :status => 200
         )

       Expected a full match of the result

         {"limit_exceeded"=>true,
        "node_license"=>25,
        "node_count"=>70,
        "upgrade_url"=>"https://www.chef.io/pricing"}

       to the spec

         {"limit_exceeded"=>false,
        "node_license"=>25,
        "node_count"=>0,
        "upgrade_url"=>/^https\:\/\.*/}

       to succeed, but it didn't!
     # ./spec/api/license_spec.rb:35:in `block (4 levels) in <top (required)>'

  3) license GET /license with no nodes returns 200 and correct body for normal user
     Failure/Error:
       get(request_url, platform.non_admin_user).should look_like(
         :body_exact => response_body,
         :status => 200
         )

       Expected a full match of the result

         {"limit_exceeded"=>true,
        "node_license"=>25,
        "node_count"=>70,
        "upgrade_url"=>"https://www.chef.io/pricing"}

       to the spec

         {"limit_exceeded"=>false,
        "node_license"=>25,
        "node_count"=>0,
        "upgrade_url"=>/^https\:\/\.*/}

       to succeed, but it didn't!
     # ./spec/api/license_spec.rb:42:in `block (4 levels) in <top (required)>'

  4) license GET /license with nodes with one node should return correct body for license status
     Failure/Error:
       get(request_url, superuser).should look_like(
         :body_exact => response_body,
         :status => 200
         )

       Expected a full match of the result

         {"limit_exceeded"=>true,
        "node_license"=>25,
        "node_count"=>71,
        "upgrade_url"=>"https://www.chef.io/pricing"}

       to the spec

         {"limit_exceeded"=>false,
        "node_license"=>25,
        "node_count"=>1,
        "upgrade_url"=>/^https\:\/\.*/}

       to succeed, but it didn't!
     # ./spec/api/license_spec.rb:83:in `block (5 levels) in <top (required)>'

  5) license GET /license with nodes with 25 nodes (license not exceeded) should return correct body for license status
     Failure/Error:
       get(request_url, superuser).should look_like(
         :body_exact => response_body,
         :status => 200
         )

       Expected a full match of the result

         {"limit_exceeded"=>true,
        "node_license"=>25,
        "node_count"=>95,
        "upgrade_url"=>"https://www.chef.io/pricing"}

       to the spec

         {"limit_exceeded"=>false,
        "node_license"=>25,
        "node_count"=>25,
        "upgrade_url"=>/^https\:\/\.*/}

       to succeed, but it didn't!
     # ./spec/api/license_spec.rb:94:in `block (5 levels) in <top (required)>'

  6) license GET /license with nodes with  26 (license exceeded) should return correct body for license status
     Failure/Error:
       get(request_url, superuser).should look_like(
         :body_exact => response_body,
         :status => 200
         )

       Expected a full match of the result

         {"limit_exceeded"=>true,
        "node_license"=>25,
        "node_count"=>96,
        "upgrade_url"=>"https://www.chef.io/pricing"}

       to the spec

         {"limit_exceeded"=>true,
        "node_license"=>25,
        "node_count"=>26,
        "upgrade_url"=>/^https\:\/\.*/}

       to succeed, but it didn't!
     # ./spec/api/license_spec.rb:104:in `block (5 levels) in <top (required)>'

  7) Search API endpoint Index Deletion Roles it should behave like Deletes from Solr Index deletes an object from Solr when deleting from the system as a whole
     Failure/Error: num_before_add.should eq 0

       expected: 0
            got: 1

       (compared using ==)
     Shared Example Group: "Deletes from Solr Index" called from ./spec/api/search/search_spec.rb:584
     # ./lib/pedant/rspec/search_util.rb:838:in `block (2 levels) in <module:RSpec>'

  8) Search API endpoint Index Deletion Nodes it should behave like Deletes from Solr Index deletes an object from Solr when deleting from the system as a whole
     Failure/Error: num_before_add.should eq 0

       expected: 0
            got: 70

       (compared using ==)
     Shared Example Group: "Deletes from Solr Index" called from ./spec/api/search/search_spec.rb:592
     # ./lib/pedant/rspec/search_util.rb:838:in `block (2 levels) in <module:RSpec>'

Finished in 22 minutes 32 seconds (files took 3.48 seconds to load)
5199 examples, 8 failures, 128 pending

Failed examples:

rspec ./spec/api/license_spec.rb:27 # license GET /license with no nodes returns 200 and correct body for superuser
rspec ./spec/api/license_spec.rb:34 # license GET /license with no nodes returns 200 and correct body for admin user
rspec ./spec/api/license_spec.rb:41 # license GET /license with no nodes returns 200 and correct body for normal user
rspec ./spec/api/license_spec.rb:82 # license GET /license with nodes with one node should return correct body for license status
rspec ./spec/api/license_spec.rb:93 # license GET /license with nodes with 25 nodes (license not exceeded) should return correct body for license status
rspec ./spec/api/license_spec.rb:103 # license GET /license with nodes with  26 (license exceeded) should return correct body for license status
rspec ./spec/api/search/search_spec.rb:584 # Search API endpoint Index Deletion Roles it should behave like Deletes from Solr Index deletes an object from Solr when deleting from the system as a whole
rspec ./spec/api/search/search_spec.rb:592 # Search API endpoint Index Deletion Nodes it should behave like Deletes from Solr Index deletes an object from Solr when deleting from the system as a whole

compared with main:


Suggest widget details widget sometimes too large

Refs: #109394
Trigger inteli-sense anywhere in VS Code. Navigate to the AbortController, trigger details view. The details view always looks a bit too high.
Details view should never be larger than the full content height.

Yeah, today it's just guess work and not really measuring...


feat: Structurizr support to Aspire.Hosting

This commit introduces Structurizr server support to Aspire.Hosting. It includes the addition of the Structurizr.Resource model, StructurizrContainerImageTags and StructurizrResourceBuilderExtensions, and detailed README. A new package, Aspire.Hosting.Structurizr, is also created along with its project file and included into the Aspire solution.
Microsoft Reviewers: Open in CodeFlow

I could not find where to add Tests for the Hosting projects, I found them for the Components though. I will gladly add if you could guide me.

@dotnet-policy-service agree

I'm not sure this one meets the bar for being part of aspire (our ill defined bar). There has to be some level of ubiquity for us to make it a first class part of this repository (and for the team to maintain it). You can still publish it to nuget outside of this repository.


emacs service doesn't update

Issue description
After I added some packages to emacsWithPackages and run nixos-rebuild switch in standard emacs the packages work but in clientmode theire don't. I already tried to restart the service and reboot my computer.
Steps to reproduce

add emacs.nix mine is this
add emacs = {    enable=true;    package = import ./emacs.nix; }; to nixosconfiguration
add some packages to emacs.nix
run nixos-rebuild switch

Technical details

System: 17.03.1820.a0e6a891ee (Gorilla)
Nix version: nix-env (Nix) 1.11.14
Nixpkgs version: "17.03.1820.a0e6a891ee"
Sandboxing enabled: build-use-sandbox = false

Ubgrade to 17.09 fixed it


[WIP] USHIFT-491: Update odf-lvm images to 4.12, add arm images

Which issue(s) this PR addresses:

Note that the 4.12 images added by this PR are not publicly available yet.  Once 4.12 is release, these digests will be updated with the public variants.
Adds the topolvm-snapshotter side car to enable LVM snap shotting.

TODO

[ ] The snapshotter manifest isn't included in the PR (yet) and will be added asap.  The workload manifests are not included in the operator bundle, catalog, or clusterServiceVersion data.  Right now, they're only accessible by actually deploying the lvm-operator and scraping it's operands.

Shelving this for now until the arm images are more broadly accessible.


Fixes for pointer cast simplification

Fixes #1113

Refactored runOnGEPImplicitCasts into separate functions

no longer attempts multiple transforms at the same time
refactored methods now iterate deterministically

Handle a case in GEP index calculation where the heterogeneous struct is larger than the offset of the gep

This is okay to go in, I have this branch ready to go after it.

This is okay to go in, I have this branch ready to go after it.

There is another case to check that is a similar issue.
target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
target triple = "spir-unknown-unknown"

%struct.Line = type { i32, float, i32 }
%S = type { %struct.Line }

define void @test2(ptr addrspace(1) %data, i32 %n) {
entry:
  %gep1 = getelementptr inbounds %S, ptr addrspace(1) %data, i32 %n
  %gep2 = getelementptr inbounds i8, ptr addrspace(1) %gep1, i32 4
  store float 0.000000e+00, ptr addrspace(1) %gep2, align 4
  ret void
}

This case isn't fixed by this PR because I the logic elsewhere "pre-descends" through %S.

Note that I reworked this part for the code in this branch


Broadcast command no longer working

The server administrator command broadcast is no longer working. I suspect this is because of the new way players are managed. Ideally, broadcast should send the provided message to all Receivers on the server.
As you can see from the client (right window), no message is received.

Implementation is not a concern here.

players command doesn't seem to be working either


Kubernetes loadbalancer issues warning "UpdateFailed Error updating load balancer with new hosts"

Rancher Version:: v1.2.0-pre1-rc4
Docker Version::1.10.3
OS and where are the hosts located? (cloud, bare metal, etc):: Ubuntu, Cloud
Environment Type: (Cattle/Kubernetes/Swarm/Mesos): Kubernetes
Steps to Reproduce:

Create a Kubernetes environment using https://github.com/ibuildthecloud/rancher-catalog
Create a loadbalancer using the below yml file

apiVersion: v1
kind: ReplicationController
metadata:
  name: nginx
spec:
  replicas: 1
  selector:
    name: nginx
  template:
    metadata:
      labels:
        name: nginx
    spec:
      containers:
        - name: nginx
          image: sangeetha/testnewhostrouting
          ports:
            - containerPort: 80

---

apiVersion: v1
kind: Service
metadata:
  name: lbnginx
  labels:
    name: lbnginx
spec:
  type: LoadBalancer
  ports:
  - port: 8888
    targetPort: 80
  selector:
    name: nginx

Upgrade to Kubernetes1.3

Results:
Load balancer issues a warning
> kubectl describe service lbnginx
Labels:                 name=lbnginx
Selector:               name=nginx
Type:                   LoadBalancer
IP:                     <IP_ADDRESS>
LoadBalancer Ingress:   <IP_ADDRESS>
Port:                   <unset> 8888/TCP
NodePort:               <unset> 31313/TCP
Endpoints:              <IP_ADDRESS>:80,<IP_ADDRESS>:80
Session Affinity:       None
Events:
 FirstSeen     LastSeen        Count   From                    SubobjectPath   Type            Reason                 M
essage
 ---------     --------        -----   ----                    -------------   --------        ------                 -
------
 17m           17m             1       {service-controller }                   Normal          CreatingLoadBalancer   C
reating load balancer
 17m           17m             1       {service-controller }                   Normal          CreatedLoadBalancer    C
reated load balancer
 13m           13m             1       {service-controller }                   Normal          CreatingLoadBalancer   C
reating load balancer
 13m           13m             1       {service-controller }                   Normal          CreatedLoadBalancer    C
reated load balancer
 12m           12m             1       {service-controller }                   Warning         LoadBalancerUpdateFaileE
rror updating load balancer with new hosts [soumyapre1rc4testing-10acre-1 soumyapre1rc4testing-10acre-2 soumyapre1rc4tes
ting-10acre-3]: Couldn't call activate on external service 1s35 for LB lb-a469020d150f811e6b422025c9ec587f
 12m           12m             1       {service-controller }                   Normal          UpdatedLoadBalancer    U
pdated load balancer with new hosts

Load balancer is functional but has the above warning.

@wlan0 can you look at it? may be a longer wait is needed

@soumyalj Discussed this bug with @alena1108  and this is a harmless issue. We will fix it in the future


nfs not working with nextcloud

container path is /var/www/html
rancher version is v2.2.1

I can't find any file on my nfs path
but works good with ubuntu:xenial

There is not enough information in this issue to try to reproduce or get a feel what you are trying to do, which makes it hard to look into. If you believe there is a bug in the product, please read https://rancher.com/docs/rancher/v2.x/en/contributing/#bugs-issues-or-questions and fill out the issue template with the requested information so we can start investigating.
If you are trying to solve a certain use case, I want to ask to open a forum topic at https://forums.rancher.com, but still describe in detail what you are trying to do or what problem you are trying to solve so people can use that information to give you ideas on how to solve it.


wrapInstance and getCppPointer

Doing a merge of https://github.com/mottosso/Qt.py/pull/190 to the latest version of Qt.py

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: dgovil:x: **** seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

I am unable to resolve these hound errors. The long name is being tripped up because long doesn't exist in Python3 and the indentation errors are because of the sources use of lambdas. I could unindent but I feel that looks worse?

Lesson learned, Py2 has a different scoping system than Py3. Declaring long inside a function causes py2 to error. Has to be declared in the global scope.
Anyway tests are now passing.
As for the remaining issues:

Hound: I don't know how to address these indentation errors without affecting the line length or making it more unreadable. Thoughts?

The license/cla test says I haven't signed it but when I click details it says I have (and I have for previous PR's so not sure why its failing)

Hey @dgovil, there's something not right about this merge, it appears to merge another version than the latest.
Here's what the latest look like, where the wrapInstance line length issue has already been addressed, and here's what this merge looks like.
I also realised that I thought this was originally your PR, when it was actually I who made it. Sorry for asking you to do this merge for me, how lazy of me!
I finished up the original PR now and will release in a few mins.

Odd not sure how it picked up the older version since I pulled latest. But glad you merged the original! thanks!


Update scala-library to 2.12.13

Updates org.scala-lang:scala-library from 2.12.12 to 2.12.13.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (2.12.12).
You might want to review and update them manually.
.github/workflows/ci.yml

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

labels: library-update, semver-patch, old-version-remains

waaaaaaaaaaaait. @scala-steward you updating Scala again? :O

Yeah, the idea is to improve Scala updates in the future and to use regular instead of draft PRs then. If you don't want to be notified about Scala updates ever again, I'd recommend to to use the updates.ignore option as mentioned above.


Testing

Platforms: Mac, Windows, Linux, iOS, Android
Browsers: Firefox, Chrome, Internet Explorer, Safari, Opera

Test on a bigger monitor

Mac

[x] Safari
[x] Opera
[ ] Firefox
[ ] Chrome

Windows

[ ] Internet Explorer
[ ] Opera
[ ] Firefox
[ ] Chrome

Linux

[ ] Firefox
[ ] Chrome
[ ] Opera

Tested on Ubuntu

Looks A-OK on a wide monitor.
TODO: make form fields wider on contribute page to accommodate larger font sizes on Linux


wmclient: include timestamp in analytics requests

lgtm
this seems ok, but shouldn't we do this on the server-side? that we we can ensure clock consistency

this seems ok, but shouldn't we do this on the server-side? that we we can ensure clock consistency

yeah, that makes more sense


Flaky test: Kernel Execution @kernelCore

https://github.com/microsoft/vscode-jupyter/actions/runs/3521469839/jobs/5903351948
https://github.com/microsoft/vscode-jupyter/actions/runs/3526533956/jobs/5914570111
  1) Kernel Execution @kernelCore
       "before all" hook for "Execute cell using VSCode Kernel @mandatory":

      Error: The kernel died. Error: Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'p' is not defined... View Jupyter [log](command:jupyter.viewOutput) for further details.
      + expected - actual

      at ChildProcess.<anonymous> (out/kernels/raw/launcher/kernelProcess.node.js:7991:25)
      at ChildProcess.emit (node:events:538:35)
      at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)

Should be fixed, cannot repro anymore.


Use whisper.TimeSeriesPoint straight from the start

It avoids moving to heap every datapoint in persisters
and potentially allows to remove slice rebuild if go-whisper
is ever updated to receive slices of values, not pointers

I do not want to go-carbon so strongly dependent on the data storage library. Perhaps an alternative storage backends will be in the future (eg https://github.com/graphite-project/ceres)
How noticeable improvement in performance after this change?

We are talking about committedPoints allocations per minute, which is not neglible even with constantly improving GC in Go runtime.
Similar change whenpoints.Points.Data was changed from []*Points to []Points  knocked down average CPU time from 122% to 103% on our servers committing 3.5M datapoints/minute.
I'll measure effect of this patch separately and come back with some numbers

In the meantime updated patch to use type alias, so that go-whisper is imported only once and rest of go-carbon operates on points.Point which just happen to match layout of whisper.TimeSeriesPoint ;)
Compatibility of structs is checked by compiler at a pointer casting time in persister/whisper.go so if you ever evolve point.Point into something else, compiler will detect it and fail compilation, at which point you might revert this optimisation

pidstat -p <pid> 1 60, run 3 times
before: shows 104-108 CPU usage  as 60 seconds average
after: shows 96-102 CPU usage  as 60 seconds average

Is there a measurable increase in work speed (save to disk, carbonlink answers)? Or simply reduced CPU usage?
I do not think that a significant acceleration. Independence of the application modules from each other and from whisper to me is more important. I re-use some of the carbon modules (receivers) in other private projects that are independent of whisper.


UnexpectedErrorHandler and  invalid distance too far back . update 1.61.2

Hello, I installed latest version VS Code and remove old and install new VS Code server to LINUX target.
On target libz 1.2.11 (latest),OpenSSH_6.7p1, OpenSSL 1.0.2d .
On target server says:
dError=e.transformErrorForSerialization=e.onUnexpectedExternalError=e.onUnexpectedError=e.setUnexpectedErrorHandler=e.errorHandler=e.ErrorHandler=void 0;class f{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?new Error(t.message+`

Error: invalid distance too far back

Error: invalid distance too far back
    at Zlib.zlibOnError [as onerror] (zlib.js:181:17)
    at Timeout._onTimeout (/home/root/.vscode-server/bin/6cba118ac49a1b88332f312a8f67186f7f3c1643/out/vs/server/remoteExtensionHostProcess.js:3:16117)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)

[18:42:16] [<IP_ADDRESS>][213d97a2][ExtensionHostConnection] <29875> Extension Host Process exited with code: 1, signal: null.
Last EH closed, waiting before shutting down

on client side :
[01:41:56.835] > Found running server...
[01:41:56.851] >
> *
> * Reminder: You may only use this software with Visual Studio family products,
> * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057)
> *
>
[01:41:56.997] > Checking server status on port 52219 with curl
[01:41:57.087] > a50be865f322: start
> SSH_AUTH_SOCK====
> DISPLAY====
> webUiAccessToken====
> listeningOn==52219==
> osReleaseId==angstrom==
> arch==armv7l==
> tmpDir==/run/user/0==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> extInstallTime====
> serverStartTime====
> connectionToken==1aa11aa1-111a-11a1-a11a-1111a111a1a1==
> a50be865f322: end
[01:41:57.087] Received install output:
SSH_AUTH_SOCK====
DISPLAY====
webUiAccessToken====
listeningOn==52219==
osReleaseId==angstrom==
arch==armv7l==
tmpDir==/run/user/0==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====
connectionToken==1aa11aa1-111a-11a1-a11a-1111a111a1a1==

[01:41:57.088] Remote server is listening on 52219
[01:41:57.088] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":52219},"osReleaseId":"angstrom","arch":"armv7l","webUiAccessToken":"","sshAuthSock":"","display":"","tmpDir":"/run/user/0","platform":"linux","connectionToken":"1aa11aa1-111a-11a1-a11a-1111a111a1a1"},"installUnpackCode":""}
[01:41:57.090] Persisting server connection details to /Users/andrey/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-68f7dbed-6cba118ac49a1b88332f312a8f67186f7f3c1643-0.65.8/data.json
[01:41:57.093] Starting forwarding server. localPort 56396 -> socksPort 56392 -> remotePort 52219
[01:41:57.093] Forwarding server listening on 56396
[01:41:57.093] Waiting for ssh tunnel to be ready
[01:41:57.095] Tunneled 52219 to local port 56396
[01:41:57.095] Resolved "ssh-remote+<IP_ADDRESS>" to "<IP_ADDRESS>:56396"
[01:41:57.097] [Forwarding server 56396] Got connection 0
[01:41:57.105] ------

[01:41:57.163] [Forwarding server 56396] Got connection 1
[01:41:57.219] [Forwarding server 56396] Got connection 2
[01:42:16.496] [Forwarding server 56396] Got connection 3

How to fix it?

@telnet01 Do you have any more information regarding the machine you are connecting to? I am really interested in reproducing this issue to begin looking into a fix, but I haven't been able to reproduce so far. Related: #134429

@telnet01 Do you have any more information regarding the machine you are connecting to? I am really interested in reproducing this issue to begin looking into a fix, but I haven't been able to reproduce so far. Related: #134429

Beagleboard with Armstrong fs 2015.06

Let's track in #134429


Revise istio auth, and fix typo in demo main page

@andraxylia @frankbu @geeknoid

@frankbu , can you help to merge please? Thanks


Windows 10 Defender issue

Process Hacker is identified as "HackTool" in the last Windows 10 Update and Defender... The antivirus automatically remove the .exe file.
As workaround for the moment should add the .exe or app folder to exception list in the antivirus.
If there is any solution for this is would be great !
Best Wishes

Duplicate of #454


Selecting year on iOS not working. Also Today button not picking date

When you select the year in iOS, nothing happens. You need to tap outside the select component to get the year select reflect in the picked date.

Also, when you select the Today button, the date gets picked in the calendar, but not in the selected date, which, for me, was the expected behaviour:

Otherwise, great component :-)

I have tested this in iPhone5 and android devices too. It is working fine. I have tested both the app and the website demo page. Please test the demo web page in your mobile. And also test this app in ionic view (App id : 34590d94). In both the ways it's working fine.

You are right, your app works fine on my iPhone 5. Looks like my problem when picking the year, on my app, is that somehow the "Done" button is not shown.

You can have a look at these links. Might help you a bit.
https://github.com/driftyco/ionic-plugin-keyboard
https://github.com/driftyco/ionic-plugin-keyboard/issues/97

You are absolutely right, the second link provided the answer. The problem is that I had this:
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
which was hiding the "Done" button among other things.
Thanks!

Thanks for using this plugin @jeudyx


pgupgrade: add init container to delay startup of old deployment (PROJQUAY-8092)

waits for existing postgresql pod to scale down before the old pod is up

/ok-to-test

/cherry-pick redhat-3.13


Expose HTTP headers from auth APIs to database triggers

Feature request
Is your feature request related to a problem? Please describe.
Developers would like to be able to restrict sign-ups and/or sign-ins ONLY to specific domains (see https://stackoverflow.com/questions/71591949/restrict-supabase-sign-up-to-a-specific-domain).
Describe the solution you'd like
It seems that this can be easily implemented if database triggers that were fired in response to auth changes (e.g. adding a new user to the auth.users table) could access the HTTP headers from the request. That way, the trigger can inspect the Origin header  (or Referer) and abort the transaction if the Origin are NOT in the allowed list.
Describe alternatives you've considered
It seems like there are 2 existing options:

Re-define the sign-up/sign-in APIs in a custom server app which then call the Supabase APIs. The drawback is having to re-implement the APIs only to check the Origin header.

Another option is to add an additional db table with some triggers and an additional call from the client to the server which would generate and return a nonce ONLY if the Origin of the first request is allowed. For example, here is how this can work for the sign-up flow:

define a table which will store nonces - e.g. auth_nonce - with a single UUID auto-generated column;
define a BEFORE INSERT trigger on the auth_nonce table. If the Origin HTTP header inside the trigger is NOT allowed, abort the transaction;
define a BEFORE INSERT trigger on the auth.users table and inspect the raw_user_meta_data - if it does NOT contain a valid nonce (i.e. a nonce present in the auth_nonce table), abort the transaction; if it contains a valid nonce - allow the insertion into auth.users and remove the nonce from the auth_nonce table (so it cannot be re-used);
before sending a sign-up client request, send a client request to insert a new record inside the auth_nonce table. This call will succeed ONLY if the domain is allowed and should return the generated nonce (because of the second step above);
the client sends a sign-up request by including the nonce returned from the previous call;

This second option involves multiple steps and additional calls, so it's also not a convenient workaround for the task;

Hey this is a great suggestion. We are planning to introduce proper webhook and trigger support in GoTrue which will enable you to customize the account creation and other behaviors.
There is no clear timeline for this yet.

Hey Circling back on this,
We're looking into webhooks soon and we'll keep this ticket in mind - do let us know if theres anything else you feel that's worth noting or any other use cases you'd like to see supported.
Thansk!

Any update on this? Major hindrance for e.g. implementing multi-account sign-in, etc.

These hooks are coming in the next few months, at which point you can build your custom blocking rules.

I will close this specific issue as we are not planning on exposing HTTP headers to triggers at all. Headers can be exposed in the Auth Hooks though.

@hf, how can one use headers with auth hooks? There was no documentation about it last I checked.

@lauri865 at the moment it's not possible to use headers with Auth Hooks (Postgres).  Auth Hooks (HTTP Functions) are coming soon shortly though - you'll be able to access the headers on the HTTP Functions.

@J0, any idea when this will be launched? It's a major blocked for a multi-account / account-switcher pattern with Supabase. And I don't personally see a reason why this couldn't be solved easily on Postgres hooks level, and needs an extra HTTP call.
Say we have an account:
<EMAIL_ADDRESS>Lauri belongs to teams ´Alpha´ and ´Beta´. Teams have vanity subdomains ´alpha.app.com´ and ´beta.app.com´. If Lauri signs in from ´alpha.app.com´, we want to issue a token for the ´Alpha´ team, and vice versa, if logged in from ´beta.app.com´.
This could easily be derived from the Origin header, but also manipulated with arbitrary headers set from the backend. The result would be 100x better than other implementations we have seen, which create a new db-level layer for picking an active account, which means that the source of truth no longer lives in the JWT, and you cannot use Postgres roles with PostgREST – all making it a security nightmare where errors are easy to come by.


I'm having an issue with the Meetup API...

The time component of the response of the getOpenEvents function, which is supposed to return the 'UTC start time of the event, in milliseconds since the epoch' returns the wrong timestamp.
For an event supposed to take place on June 6, 2017 at 8:30 PM, it returns an epoch value of<PHONE_NUMBER>000 which results to February 28, 2016.
Please advise.

Hi @raksheetbhat,
Can you point us to the event in question for which the wrong time is being returned?

Frankly, this has happened for every event that I have tried to access through the API. Here's an example:
Event name: Casual Chess Meet
Timestamp returned from API:<PHONE_NUMBER>000
TImestamp to date conversion: 22/02/2017 18:12:40
Actual date and time of event (from website): 07/06/2017 7:30 PM to 9:30 PM
Please let me know the solution for this, as the correct timestamp is very important for me.
Thanks.


inline mode as $a^2$ instead of $$a^2$$

If it is possible to use $a^2$ for inline latex that would match how it is done in other systems.  $$ I am guessing was a creation not are requirement but if I am wrong lets explore the best one to use because it will be difficult to edit pages later so best to get this right here.

@algeboy after a bit of research, this looks like it'd be possible.
However, this could create issues when you want to use the "$" character by itself. For example, if you had an event:
For entry to our event the cost will be:

$ 5.99
$ 3.99
or
$ 12.99

Some of this text would be interpreted as KaTex, throw an error because it's invalid Tex, then not render on the page. I'd recommend keeping it the way it is.

Thanks, but in this case my request is the right way to go.  This is DSL (Domain Specific Language) and just like markdown uses # and other characters in special ways, or how < and & have trouble in HTML.   The use of $a$ for inline latex is now a decades old tradition.  TeX is the oldest language on this site, by a long shot.  KaTeX is new but it just a front end for the web.  LaTeX has been around making most PDFs you find on the internet for 42 years. Would you believe it is 5 years older than C++?  The point is people in this website use TeX and barely ever need the dollar sign.  If they need currency for story problems or registration to conference, then they can use euros, write USD or whatever they like as a substitute.  In regular latex $ escapes to the dollar sign, but that seems unnecessary unless it is easy.
So this is just the way it is done, right or wrong.  Some websites like WordPress use other symbols concerned that most of their clients wont $ more than LaTeX.  That is the main reason I left those products to build my own -- well to have you do it.  It slows you down and you cant cut and paste latex from other places if it uses querky non-standard symbols.  So we will make do with missing on dollars I think.  Thanks for checking with me.

Okay, I understand what you're saying. I'll start work on this.


remove deprecated and replaced remote-write-receiver flag from enable-feature

Fixes https://github.com/prometheus/prometheus/issues/13206

It would be a breaking change, so 3.0 should be appropriate ig.


[Request] Add a todo count in tray and support for more multi-line comments

That addon is a great tool.
I'd like to request some things.
First I'd like to have a count in the tray for the current file or the work files (can be changed), a bit like that:

Secondly, I'd like to have support for TODOs like that:
// TODO: This is a todo with
// many lines
// and it is currently not supported

It currently gives
1.
File Untitled-1. Line 0, column 0
----------------------------------
TODO: This is a todo with

but should give
1.
File Untitled-1. Line 0, column 0
----------------------------------
TODO: This is a todo with many lines and it is currently not supported

Hi @charlesmilette ,
Thanks for your suggestion.
Those features are actually in development. However those will not arrive soon because I'm doing my thesis :worried:

Status bar counter is complete

Thanks ! Will try that tomorrow.

Just tried it, it's great.
Can you make so that when you click on the icon in the status bar, it does the same as when using the command palette and selecting "Parse TODOs"?

Cool idea :+1: . It's done v1.1


perform owasp audit

https://owasp.org/www-project-web-security-testing-guide/

supposedly if you use an ec2 instance you can target private lan for exploit test.  If you use an outside computer and target the public ip of the aws resource yuou need to talk to aws. still dont know who to contact htough.


Issue in Contact Us form

Describe the bug
-> In the email section of contact us form even if we don't enter proper email it's showing message sent successfully
To Reproduce
Steps to reproduce the behavior:

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

Expected behavior
There should be a validation to check if the entered email is proper or not before submission.
Screenshots

Desktop (please complete the following information):

OS: [e.g. iOS]:windows
Browser [e.g. chrome, safari]: chrome
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.
-> the form section's UI can be improved ( like the fonts, small icons can be added)
I am interested in working in this issue as  a GSSoC'22 participant

@itzwow u can work

Hey , @itzwow I want to work on this issue under GSSOC'22 . Can you please assign me this issue?

If it's not assign yo anyone , can i work on it? @itzwow

Hell @Amit366  ,can u please assign me this issue:). I want to work on this issue.

Hello @Amit366 can you please assign me the issue i Know how to solve it

@VIDHI-BAJAJ u can work

@Amit366 Ya sure thankyou

@Amit366 The issue has complete one's you can check Pull Request

Is this bug fixed? If not then kindly assign it to me under JWOC

Hey @itzwow is the issue resolved ,if not pls assign it to me !!

@VIDHI-BAJAJ I am sorry I cannot give any more time.
SO @KushalGhosh9899 if u want u can work

Yes please assign it to me under JWOC

Hello @Amit366!
I am a GSSoC22 contributor. I would love to work on this issue and make PR as soon as I resolve the issue. Please do assign this to me.
ThankYou:)

Hey @purohitmansi, Glad to hear that you wanted to solve this problem, actually I have solved this issue and just waiting for my previous PR to be merged so that I can generate a PR for this issue.
Anyways I highly recommend that you should check out other issues as well.
Thanks.


Disabled option added

Not something I'm looking to add, it's simple enough to add if people require. I'd rather people take the code and completely modify it locally, it's more of a boilerplate imo. Thank you though.


How to send two measurement in a stream tick

I want to monitor the system state by several measurement, and one occour any warning that all the measurement will send. So I write the tick
...
var load5  = load |mean('load5').as('value')
var load15 = load |mean('load15').as('value')
var load0  = load1 |join(load5,load15).as('load1','load5','load15')
...
var cpu1 = cpu |mean('usage_user').as('value')
var cpu2 = cpu |mean('usage_iowait').as('value')
var cpu3 = cpu |mean('usage_system').as('value')
var cpu4 = cpu |mean('usage_idle').as('value')
var cpu0 = cpu1 |join(cpu2, cpu3, cpu4).as('user', 'iowait', 'system', 'idle')
var data = load0 |union(cpu0).rename('SYSTEM STATE')
...
var alert = data
|alert()
.message('({{ index .Tags "host" }}) SYSTEM is {{.Level}} @ {{.Time}}

             loading: {{ index .Fields "load1.value" | printf "%.2f" }} ,
                      {{ index .Fields "load5.value" | printf "%.2f" }} ,
                      {{ index .Fields "load15.value"| printf "%.2f" }}

              cpu: user:   {{ index .Fields "user.value"|printf "%.2f"}}% ,
                   system: {{ index .Fields "system.value" | printf "%.2f" }}% ,
                   iowait: {{ index .Fields "iowait.value" | printf "%.2f" }}% ,
                   idle:   {{ index .Fields "idle.value"   | printf "%.2f" }}%')
.info(lambda:  "user.value" > 5  OR "iowait.value" > 5  OR "system.value" > 1  OR "idle.value" < 90)
.infoReset(lambda:  "user.value" < 5  OR "iowait.value" < 5  OR "system.value" < 1  OR "idle.value" > 90)
...

and the error occour like :
[systemstate:alert22] 2016/11/15 14:07:23 E! error evaluating expression for level CRITICAL: no field or tag exists for user.value
[systemstate:alert22] 2016/11/15 14:07:23 E! error evaluating expression for level WARNING: no field or tag exists for user.value
[systemstate:alert22] 2016/11/15 14:07:23 E! error evaluating expression for level INFO: no field or tag exists for user.value

but at the same time, I got two message like :
test · kapacitor·2:37 PM

(test) SYSTEM is CRITICAL @ 2016-11-15 06:35:16 +0000 UTC
loading: %!f(MISSING) , %!f(MISSING) , %!f(MISSING)
cpu: user: 51.64% , system: 0.75% , iowait: 0.00% , idle: 47.59%

test · kapacitor·2:37 PM

(test) SYSTEM is OK @ 2016-11-15 06:36:15 +0000 UTC
loading: 1.00 , 1.00 , 0.85
cpu: user: %!f(MISSING)% , system: %!f(MISSING)% , iowait: %!f(MISSING)% , idle: %!f(MISSING)%

How can I make two alert combine into one by using stream not by batch

This line here:
var data = load0 |union(cpu0).rename('SYSTEM STATE')

is causing the issue. Since the union is being taken half of the points contain only load value and the other half contain cpu values. Instead if you join, then you will have one point with both cpu and load fields.
The error is complaining that the user.value field doesn't exist, which is true when the point being evaluated is a load point. But you do get valid alerts because the cpu points do come through as well.
The MISSING bits are also explained, since the cpu points do not have the load fields and they are missing.
To fix the issue change the union to a join and update the field names in the alert conditions appropriately.
For example:
var data = load0 |join(cpu0).streamName('SYSTEM STATE').as('load','cpu')
...
var alert = data
|alert()
    .message('({{ index .Tags "host" }}) SYSTEM is {{.Level}} @ {{.Time}}

             loading: {{ index .Fields "load.load1.value" | printf "%.2f" }} ,
                      {{ index .Fields "load.load5.value" | printf "%.2f" }} ,
                      {{ index .Fields "load.load15.value"| printf "%.2f" }}

              cpu: user:   {{ index .Fields "cpu.user.value"|printf "%.2f"}}% ,
                   system: {{ index .Fields "cpu.system.value" | printf "%.2f" }}% ,
                   iowait: {{ index .Fields "cpu.iowait.value" | printf "%.2f" }}% ,
                   idle:   {{ index .Fields "cpu.idle.value"   | printf "%.2f" }}%')
   .info(lambda:  "cpu.user.value" > 5  OR "cpu.iowait.value" > 5  OR "cpu.system.value" > 1  OR "cpu.idle.value" < 90)

ok, it works, thank you :)


Admins and editors of sub-sites can no longer view admin pages

I am currently using the development versions of Aimeos along with the marketplaces extension. Since Wednesday, after running composer up editors and admins of sub-sites cannot access the admin pages.
I have tried to log in with existing editors and admins, plus I have tried creating new admins/editors, but in all cases after successfully logging in, the user is taken to their profile page on the front-end of the site and manually typing the example.com/admin URL still redirects to the profile page at example.com/default/profile?locale=en
Here is the output of composer show:

$ composer show
aimeos-extensions/moderation       dev-main           Aimeos moderation extension
aimeos-themes/moderation-theme     dev-main           Aimeos moderation-theme theme
aimeos/ai-admin-jqadm              dev-master bf52e67 Aimeos VueJS+Bootstrap admin backend
aimeos/ai-admin-jsonadm            dev-master 294d745 Aimeos JSON admin API for backend
aimeos/ai-client-html              dev-master ccd7477 Aimeos standard HTML frontend
aimeos/ai-client-jsonapi           dev-master 077247a Aimeos frontend JSON REST API
aimeos/ai-cms-grapesjs             dev-master 550de4b Aimeos GrapesJS CMS extension
aimeos/ai-controller-frontend      dev-master 05f94c6 Aimeos business controller logic for frontend
aimeos/ai-controller-jobs          dev-master b143bc2 Aimeos job controllers for long running tasks
aimeos/ai-laravel                  dev-master 3b3c2a2 Laravel adapter for Aimeos e-commerce integration
aimeos/aimeos-base                 dev-master 5e32c89 Aimeos base layer for abstracting from host environments
aimeos/aimeos-core                 dev-master 3168118 Full-featured e-commerce components for high performance online shops
aimeos/aimeos-laravel              dev-master da50e93 Professional, full-featured and high performance Laravel e-commerce package for online shops and complex B2B projects
aimeos/macro                       1.0.0              Dynamically extend objects by custom methods
aimeos/map                         3.1.0              Easy and elegant handling of PHP arrays as array-like collection objects similar to jQuery and Laravel Collections
aimeos/upscheme                    0.8.1              Database schema upgrades made easy
aimeoscom/ai-sites                 dev-master d7ae783 Aimeos hierarchical sites extension for market places and complex setups
brick/math                         0.9.3              Arbitrary-precision arithmetic library
dflydev/dot-access-data            v3.0.1             Given a deep data structure, access data by dot notation.
doctrine/cache                     2.2.0              PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others.
doctrine/dbal                      3.3.7              Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
doctrine/deprecations              v1.0.0             A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.
doctrine/event-manager             1.1.1              The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.
doctrine/inflector                 2.0.4              PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.
doctrine/instantiator              1.4.1              A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer                     1.2.3              PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.
dragonmantank/cron-expression      v3.3.1             CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due
egulias/email-validator            3.2.1              A library for validating emails against several RFCs
enshrined/svg-sanitize             0.15.4             An SVG sanitizer for PHP
facade/ignition-contracts          1.0.2              Solution contracts for Ignition
fakerphp/faker                     v1.19.0            Faker is a PHP library that generates fake data for you.
filp/whoops                        2.14.5             php error handling for cool kids
fruitcake/php-cors                 v1.2.0             Cross-origin resource sharing library for the Symfony HttpFoundation
graham-campbell/result-type        v1.0.4             An Implementation Of The Result Type
guzzlehttp/guzzle                  7.4.5              Guzzle is a PHP HTTP client library
guzzlehttp/promises                1.5.1              Guzzle promises library
guzzlehttp/psr7                    2.4.0              PSR-7 message implementation that also provides common utility methods
hamcrest/hamcrest-php              v2.0.1             This is the PHP port of Hamcrest Matchers
laminas/laminas-diactoros          2.11.0             PSR HTTP Message implementations
laravel/breeze                     v1.9.4             Minimal Laravel authentication scaffolding with Blade and Tailwind.
laravel/framework                  v9.18.0            The Laravel Framework.
laravel/sail                       v1.14.11           Docker files for running a basic Laravel application.
laravel/sanctum                    v2.15.1            Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.
laravel/serializable-closure       v1.2.0             Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.
laravel/tinker                     v2.7.2             Powerful REPL for the Laravel framework.
league/commonmark                  2.3.3              Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)
league/config                      v1.1.1             Define configuration arrays with strict schemas and access values with dot notation
league/flysystem                   3.0.21             File storage abstraction for PHP
league/mime-type-detection         1.11.0             Mime-type detection for Flysystem
mockery/mockery                    1.5.0              Mockery is a simple yet flexible PHP mock object framework
monolog/monolog                    2.7.0              Sends your logs to files, sockets, inboxes, databases and various web services
myclabs/deep-copy                  1.11.0             Create deep copies (clones) of your objects
nesbot/carbon                      2.58.0             An API extension for DateTime that supports 281 different languages.
nette/schema                       v1.2.2             📐 Nette Schema: validating data structures against a given Schema.
nette/utils                        v3.2.7             🛠  Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.
nikic/php-parser                   v4.14.0            A PHP parser written in PHP
nunomaduro/collision               v6.2.0             Cli error handling for console/command-line PHP applications.
nyholm/psr7                        1.5.1              A fast PHP7 implementation of PSR-7
phar-io/manifest                   2.0.3              Component for reading phar.io manifest information from a PHP Archive (PHAR)
phar-io/version                    3.2.1              Library for handling version information and constraints
php-http/message-factory           v1.0.2             Factory interfaces for PSR-7 HTTP Message
phpdocumentor/reflection-common    2.2.0              Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock  5.3.0              With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.
phpdocumentor/type-resolver        1.6.1              A PSR-5 based resolver of Class names, Types and Structural Element Names
phpoption/phpoption                1.8.1              Option Type for PHP
phpspec/prophecy                   v1.15.0            Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage          9.2.15             Library that provides collection, processing, and rendering functionality for PHP code coverage information.
phpunit/php-file-iterator          3.0.6              FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-invoker                3.1.1              Invoke callables with a timeout
phpunit/php-text-template          2.0.4              Simple template engine.
phpunit/php-timer                  5.0.3              Utility class for timing
phpunit/phpunit                    9.5.21             The PHP Unit Testing framework.
psr/cache                          3.0.0              Common interface for caching libraries
psr/container                      2.0.2              Common Container Interface (PHP FIG PSR-11)
psr/event-dispatcher               1.0.0              Standard interfaces for event handling.
psr/http-client                    1.0.1              Common interface for HTTP clients
psr/http-factory                   1.0.1              Common interfaces for PSR-7 HTTP message factories
psr/http-message                   1.0.1              Common interface for HTTP messages
psr/log                            3.0.0              Common interface for logging libraries
psr/simple-cache                   3.0.0              Common interfaces for simple caching
psy/psysh                          v0.11.5            An interactive shell for modern PHP.
ralouphie/getallheaders            3.0.3              A polyfill for getallheaders.
ramsey/collection                  1.2.2              A PHP library for representing and manipulating collections.
ramsey/uuid                        4.3.1              A PHP library for generating and working with universally unique identifiers (UUIDs).
sebastian/cli-parser               1.0.1              Library for parsing CLI options
sebastian/code-unit                1.0.8              Collection of value objects that represent the PHP code units
sebastian/code-unit-reverse-lookup 2.0.3              Looks up which function or method a line of code belongs to
sebastian/comparator               4.0.6              Provides the functionality to compare PHP values for equality
sebastian/complexity               2.0.2              Library for calculating the complexity of PHP code units
sebastian/diff                     4.0.4              Diff implementation
sebastian/environment              5.1.4              Provides functionality to handle HHVM/PHP environments
sebastian/exporter                 4.0.4              Provides the functionality to export PHP variables for visualization
sebastian/global-state             5.0.5              Snapshotting of global state
sebastian/lines-of-code            1.0.3              Library for counting the lines of code in PHP source code
sebastian/object-enumerator        4.0.4              Traverses array structures and object graphs to enumerate all referenced objects
sebastian/object-reflector         2.0.4              Allows reflection of object attributes, including inherited and non-public ones
sebastian/recursion-context        4.0.4              Provides functionality to recursively process PHP variables
sebastian/resource-operations      3.0.3              Provides a list of PHP built-in functions that operate on resources
sebastian/type                     3.0.0              Collection of value objects that represent the types of the PHP type system
sebastian/version                  3.0.2              Library that helps with managing the version number of Git-hosted PHP projects
spatie/backtrace                   1.2.1              A better backtrace
spatie/flare-client-php            1.2.0              Send PHP errors to Flare
spatie/ignition                    1.3.1              A beautiful error page for PHP applications.
spatie/laravel-ignition            1.3.1              A beautiful error page for Laravel applications.
symfony/console                    v6.1.1             Eases the creation of beautiful and testable command line interfaces
symfony/css-selector               v6.1.0             Converts CSS selectors to XPath expressions
symfony/deprecation-contracts      v3.1.0             A generic function and convention to trigger deprecation notices
symfony/error-handler              v6.1.0             Provides tools to manage errors and ease debugging PHP code
symfony/event-dispatcher           v6.1.0             Provides tools that allow your application components to communicate with each other by dispatching events and listening to them
symfony/event-dispatcher-contracts v3.1.0             Generic abstractions related to dispatching event
symfony/finder                     v6.1.0             Finds files and directories via an intuitive fluent interface
symfony/http-foundation            v6.1.1             Defines an object-oriented layer for the HTTP specification
symfony/http-kernel                v6.1.1             Provides a structured process for converting a Request into a Response
symfony/mailer                     v6.1.1             Helps sending emails
symfony/mime                       v6.1.1             Allows manipulating MIME messages
symfony/polyfill-ctype             v1.26.0            Symfony polyfill for ctype functions
symfony/polyfill-intl-grapheme     v1.26.0            Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-idn          v1.26.0            Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer   v1.26.0            Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring          v1.26.0            Symfony polyfill for the Mbstring extension
symfony/polyfill-php72             v1.26.0            Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php80             v1.26.0            Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/polyfill-php81             v1.26.0            Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions
symfony/process                    v6.1.0             Executes commands in sub-processes
symfony/psr-http-message-bridge    v2.1.2             PSR HTTP message bridge
symfony/routing                    v6.1.1             Maps an HTTP request to a set of configuration variables
symfony/service-contracts          v3.1.0             Generic abstractions related to writing services
symfony/string                     v6.1.0             Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
symfony/translation                v6.1.0             Provides tools to internationalize your application
symfony/translation-contracts      v3.1.0             Generic abstractions related to translation
symfony/var-dumper                 v6.1.0             Provides mechanisms for walking through any arbitrary PHP variable
tecnickcom/tcpdf                   6.4.4              TCPDF is a PHP class for generating PDF documents and barcodes.
theseer/tokenizer                  1.2.1              A small library for converting tokenized PHP source code into XML and potentially other formats
tijsverkoyen/css-to-inline-styles  2.2.4              CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.
vlucas/phpdotenv                   v5.4.1             Loads environment variables from .env to getenv(), $_ENV and $_SERVER automagically.
voku/portable-ascii                2.0.1              Portable ASCII library - performance optimized (ascii) string functions for php.
webmozart/assert                   1.11.0             Assertions to validate method input/output with nice error messages.

I'm using the Aimeos distribution. I am working on an extension and a theme so I thought maybe they were affecting things. However, even after disabling both the problem persists.

Does that also happen if you install a completely new setup using:
composer create-project aimeos/aimeos:dev-master

Just wanted to leave one final comment, re-enabling my theme and extension and the admin pages are still working. It looks like there was an update to the various Aimeos packages that has fixed the issue when I ran composer up.


Add CSS Columns to decklist while Printing

Makes greater use of physical media whitespace by reflowing content across two columns that expand to the full-width of the page, allowing more cards within a decklist to fit on single sheet of paper.

A treat, @stopfstedt -- for browsers that support CSS columns this gets more cards onto the first page while printing by extending content using CSS instead of fiddling with the templates.

awesome. will check it out tonight, along with the other pull request.

merged and then unmerged in favor of #875


when we zoom image using pinch, image gets back to its original position how to avoid it ?

Hi,
Under the hood, it is using Math.max(imageWidth / viewWidth, imageHeight / viewHeight).  You can double tap or pinch in to see if the image is large enough to zoom in on your device.  You can also configure the settings with the prop below.
:books: Props

Props
Description
Type
Default

maxScale
Max zoom (view transformer). Version *1.17.0 update.
number
Math.max(imageWidth / viewWidth, imageHeight / viewHeight)

To zoom for this tiny image, set the prop maxScale to > 1.  This will cause pixelated images because the image is small.

Hi,
Under the hood, it is using Math.max(imageWidth / viewWidth, imageHeight / viewHeight). You can double tap or pinch in to see if the image is large enough to zoom in on your device. You can also configure the settings with the prop below.
📚 Props
Props	Description	Type	Default
maxScale	Max zoom (view transformer). *Version 1.17.0 update.	number Math.max(imageWidth / viewWidth, imageHeight / viewHeight)
To zoom for this tiny image, set the prop maxScale to > 1. This will cause pixelated images because the image is small.

when setting maxScale = {5}
it is giving warning: Failed prop type: Invalid prop maxScale of type number supplied to ImageLayout, expected boolean.
I am using latest version: 5.9.0


Utils: add bake option when generating XRPK

We can generate the bake for GLTF/VRM cases when an option is flagged during XRPK build from folder.
This could supersede the "bake" function in the utils since the main reason you'd bake is to put it in an xrpk.

At some point we could move the entire bake flow into the mint pipeline.

At some point we could move the entire bake flow into the mint pipeline.

Should this be integrated into the FE / mint process?

Should this be integrated into the FE / mint process?

Yes I think so, for two different cases: "give me physics with this model" and "mint my code".
In order to be useful however, there should first be a preview/test room before the user commits to the mint, teasing what you would get if you hit the "mint for $1" button. But more importantly, the user would be able to intuitively see what they are getting, how it looks and works, and if there are any problems.
Unless we have mint preview support first, I think doing baking as part of the mint process would add even more mysterious failures as the user puts in data and what they minted is some mystery bake of that. Better to see it live and spot problems before any mint.
I suspect we can load blob urls in the runtime in the iframe to load local wbns for preview.

Yes I think so, for two different cases: "give me physics with this model" and "mint my code".
In order to be useful however, there should first be a preview/test room before the user commits to the mint, teasing what you would get if you hit the "mint for $1" button. But more importantly, the user would be able to intuitively see what they are getting, how it looks and works, and if there are any problems.
Unless we have mint preview support first, I think doing baking as part of the mint process would add even more mysterious failures as the user puts in data and what they minted is some mystery bake of that. Better to see it live and spot problems before any mint.
I suspect we can load blob urls in the runtime in the iframe to load local wbns for preview.

Scratch the test part; the test room exists and can be used for this exact purpose.
However, I think we need to clean up the design for it.

Scratch the test part; the test room exists and can be used for this exact purpose.
However, I think we need to clean up the design for it.

added "mint my code", need to add "give me physics with this model"
https://github.com/webaverse/webaverse.com/compare/91fdda8f27f5...40da1474d9a8

added "mint my code", need to add "give me physics with this model"
https://github.com/webaverse/webaverse.com/compare/91fdda8f27f5...40da1474d9a8

added both now https://github.com/webaverse/webaverse.com/compare/40da1474d9a8...7161f7987264

added both now https://github.com/webaverse/webaverse.com/compare/40da1474d9a8...7161f7987264


fix(ui): activity scrollbar

Description:
Currently, activity container is too big and scroll track bar has to move far beyond window bounds to actually bring activity to its very bottom

How Has This Been Tested?
Manually

Screenshots (if appropriate):
Before

After

Types of changes:
Bugfix

Checklist:

[x] My code follows the code style of this project.
[x] I have reviewed and updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes where needed.
[ ] All new and existing tests passed.
[x] My commits have been squashed into a concise set of changes.

Coverage remained the same at 19.857% when pulling 54662aca627119081df19ce8992a27dd8d64374f on korhaliv:fix/activity-scrollbar into 34abbe77069eeb4f31bd4ec3c0caa4a4c6de4a1c on LN-Zap:next.


Is there any documentation related how to configure tusd server with azure blob storage?

What is the process of configuring Tusd server with azure blob storage, i have created a storage account and a container inside it what else do i need to do to configure tusd server with the container.
Setup details
Please provide following details, if applicable to your situation:

Operating System: [e.g. Linux, Windows, macOS]
Used tusd version: [can be obtained by running tusd -version]
Used tusd data storage: Azure]
Used tusd configuration: [what arguments are you using to invoke tusd?]
Used tus client library: [e.g. tus-js-client]

You are correct, the docs at https://github.com/tus/tusd/blob/main/docs/usage-binary.md do not yet mention Azure. The information is however available thorugh tusd -help or in the source code for the flags: https://github.com/tus/tusd/blob/aa2fc1ea6e4a987e28932d3f8032fab9d3556871/cmd/tusd/cli/flags.go#L84-L88
@omBratteng Would you have time to add a brief section about using tusd with Azure to the above-mentioned docs?

See #906

Closed in #906, thanks to @omBratteng :tada:


Rework integration test setup for validator

Description
Closes #1568.

So actually, validator was already only applied for target by if condition.
This PR uses backend in test setup and shared data, and removed handler references.

Readiness checklist

[ ] I added/updated unit tests.
[ ] I added/updated integration/compatibility tests.
[ ] I added/updated comments and checked rendering.
[x] I made spot refactorings.
[ ] I updated user documentation.
[ ] I ran task all, and it passed.
[x] I ensured that PR title is good enough for the changelog.
[x] (for maintainers only) I set Reviewers (@FerretDB/core), Assignee, Labels, Project and project's Sprint fields.
[x] I marked all done items in this checklist.

Let's also try to remove documentValidationFailureCode by marking data provides as incompatible or by updating schema/validators

@AlekSi this requires quite a bit more work.
For example, an operator that update the value like bson.D{{"$set", bson.D{{"v", int32(42)}}}} would pass on Int32s provider but fail on all other providers, because tigris schema won't be the right one for other ones.
We need to think of a setup to only run tigris test on specific provider. It kind of feels like we may need to set tigris schema per test case.
I suggest handling this in separate PR. https://github.com/FerretDB/FerretDB/issues/2253

@chilagrow sounds good, let's add a short comment and TODO URL


Make sure the is no extra space when package is not orphaned

Just to be done with aur-search bugs 🙂
This fix kinda depends on the fact that (Oprhaned) is always before Out Of Date, not sure if you want something more sophisticated that this...

P.S. I found -a useful for showing relevant screenshots, it allows to gather all important cases in one picture 🙂
Fixes #337.

This fix kinda depends on the fact that (Oprhaned) is always before Out Of Date, not sure if you want something more sophisticated that this...

Well I see no harm in assuming this and it's easy enough to change later.
Thanks for getting aur-search back in a functional state :wink:


Python for IotEdge local module endpoint?

I want to test the local blob storage on my edge device, I have a running module (which is called 'localstorage', that is waiting for some containers now. But I cannot get the Python code working.
Trying  block_blob_service = BlockBlobService(endpoint_suffix="http://localstorage:11002/root",account_name='root',account_key='<long and secret>')
I get the following error:
No handlers could be found for logger "azure.storage.common.storageclient" ConnectionError: HTTPSConnectionPool(host='root.blob.https', port=443): Max retries exceeded with url: //localstorage%3A11002/root/quickstartblobs?restype=container (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5c03610>: Failed to establish a new connection: [Errno -2] Name or service not known',))

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

ID: 07a44a28-a19c-f68e-167c-5e8ad91605e0
Version Independent ID: 33eacdff-4f0a-c543-d8f9-e7b208bab015
Content: Store block blobs on devices - Azure IoT Edge
Content Source: articles/iot-edge/how-to-store-data-blob.md
Service: iot-edge
GitHub Login: @arduppal
Microsoft Alias: arduppal

I should add that without specifying the endpoint_suffix it works like a charm, but depends on the internet connectivity...

@njbuch Thanks for the feedback! We are currently investigating and will update you shortly.

@njbuch Please use full connection string as described in the doc. Example:
block_blob_service = BlockBlobService(connection_string='DefaultEndpointsProtocol=http;AccountName=root;AccountKey=<key>;BlobEndpoint=http://localstorage:11002/root;')
block_blob_service._X_MS_VERSION = '2017-04-17'

Note that this example will work only from within another IoT module.

Thanks, I will try this, but is the version planned to be upgraded, it seems that the forced 2017 versions seems a little outdated?

This is the only version that is supported right now as mentioned here.

@njbuch- What method or method properties are you looking for which is not supported by 2017-04-17 for your scenario ? Please provide justification and we can evaluate.

I did the first prototype now, and it seems to work, thanks to all assisting :)
There is currently no features in the current (old) version that is not working or missing, so no current needs. Will revert if that changes.
Thanks again


MySQL (ClearDB) image support

Hi,
I've found that the cleardb addon isn't supported as docker image. Can this be added or simulated somehow?

That'd be great! Do you want to take a stab at adding it? Details here:

https://github.com/heroku/heroku-docker#add-ons
https://devcenter.heroku.com/articles/docker#add-on-mapping
https://github.com/heroku/heroku-docker/blob/master/lib/addons.js

Sure! I'm just wondering if I can use a default mysql image or not

Yes, I think that would be a great start

Ok, let the hacking begin :-)

Ok, I've encountered some problems where this implementation differs from the others. This image needs some env. variables of its own, and the current node script doesn't support that (yet). Working on it :-)

Awesome, guessing the problem is that ROOT_PASSWORD is required: https://hub.docker.com/r/mysql/mysql-server/

Yes, here's more details about those variables: https://github.com/docker-library/docs/tree/master/mysql#environment-variables
The actual problem is that there's a cleardb section generated in the docker-compose.yml file, but the env variables are being set at the web and shell section. This means the cleardb image can't run on its own and therefore fails to attach. I should come up with a way in the node script to have addons have their own env. variables.

Submitted a few PR's to make this possible


Only allow campers who are github cool to post news articles.

It looks like the FCC News page is starting to get spammed. User fcc462daf56 is linking to some really shady looking sites, many of which aren't related to web development.
It's disappointing that this is happening, but maybe we can get a way to flag submissions like this?

Doesn't seem like spam, just unrelated to programming.

We are removing those stories.

Nah, they are definitely spam. The "Best Laptop For Programming" article is loaded with affiliate links, and the sports pages have keyword stuffing. I'm not sure what this user is trying to accomplish since I'm not seeing much for actual ads on those pages, but they are of dubious quality.
I haven't noticed anything since this batch of weird submissions so hopefully it's not something that comes up again. But maybe it's worth setting up a 'flag' option or a quality check system in the future.

I've changes the title of this issue. We will be requiring users be authenticated through Github (isGithubCool) to post in news. We will track progress of that here.
@wildlifehexagon Thanks for bringing this to our attention. When this gets implemented it should be enough to prevent spam. If the issue persist after we will look into a flag option.

Cheers! I do search engine evaluation work as my full-time gig right now so I can spot spam from a mile away. Just don't want it to infiltrate FCC.
I think requiring Github authentication will be enough to deter posts like those. Thanks for looking into it!

Closing this issue as https://github.com/FreeCodeCamp/FreeCodeCamp/pull/3849 is merged.


Unit Test Failures

Overview
When running unit tests in the recent<EMAIL_ADDRESS>release I see several unit tests failures, apparently due to missing or misversioned packages.

We do have Python 3.8, Windows tested in CI, and it is passing: https://github.com/thewtex/ngff-zarr/actions/runs/5062931879/jobs/9088991817
imageio should be brought in by the install command and IntTypes is available in the itkwasm package.

Assuming this has been addressed as CI is passing. If not, please open a new issue.

@thewtex I have not had the bandwidth to run again with a fresh environment, apologies. Agreed that CI passing is a good sign.


fix(android): remove uniqueId from constants

Description
Obtaining uniqueId on Android has to be explicit in line with newly enforced Huawei and Google Play guidelines.
As an alternative, native method getUniqueIdSync has been implemented on all applicable platforms and is used in the current getUniqueId API method instead of constants.
Fixes #1427
Compatibility

OS
Implemented

iOS
✅

Android
✅

Windows
✅

Checklist

[x] I have tested this on a device/simulator for each compatible OS
[x] I added the documentation in README.md
[x] I updated the typings files (privateTypes.ts, types.ts)
[x] I added a sample use of the API (example/App.js)

If someone can try this on Windows that would be helpful. I’m only going to be able to do that sometime next week.

I've reverted changes made to windows/code/RNDeviceInfoCPP.h after testing on Windows. I think on platforms that cannot call synchronous methods, uniqueId has to come from constants. On other platforms, uniqueId can be removed and API's getUniqueId() will call getUniqueIdSync() instead. This will make uniqueId an optional value in NativeConstants, instead of being removed completely, but getUniqueId() in the API can remain synchronous.
Considering uniqueId is no longer in constants on iOS/Android, but was never exposed in the types, this PR has a breaking change, only because the README mentions:

This is a constant and may be referenced directly

I thought windows did the sync thing like so though?

REACT_SYNC_METHOD(getSupportedAbisSync);

Am I misunderstanding? I am far from an expert on react-native-windows but that macro seems pretty explicit

@mikehardy this is what I've tried initially, but noticed a problem during runtime. Got this for other methods like isKeyboardConnectedSync() too. Not sure if this is normal on react-native-windows.

@mikehardy If you know someone who has experience with Windows, that would be best. Otherwise my suggestion is to settle on the “optional” constant for now and plan to remove from all platforms as an enhancement.

@namrog84 is my "resident" windows expert - he may know more about the ability of the windows code to really do sync stuff if he has minute :pray: ?

Alright, success! The issue was that I was trying to run it with a fresh react-native-windows template, while in the example project UseWebDebugger is set to false. Potentially something to document a little better for Windows package users.
I created a separate PR #1433 which excludes the unnecessary changes made earlier, so closing this one.

Excellent to see you had success! 👍


Tika parsing order issue

Hi Guys,
Raise this issue again. As #251 suggested, below is the config. But does not solve the problem. Not sure if anything wrong with the config file. Can anyone share insights? Thanks.
<?xml version="1.0" encoding="UTF-8"?>
<properties>
  <parsers>
	<!-- Default Parser for most things, except for 2 mime types, and never
         use the Executable Parser -->
    <parser class="org.apache.tika.parser.DefaultParser">
      <mime-exclude>image/jpeg</mime-exclude>
      <mime-exclude>application/pdf</mime-exclude>
      <parser-exclude class="org.apache.tika.parser.executable.ExecutableParser"/>
    </parser>

    <!-- Use a different parser for PDF -->
    <parser class="org.apache.tika.parser.DefaultParser">
	<property name="sortByPosition" value="true"/>
      <mime>application/pdf</mime>
    </parser>
  </parsers>
</properties>

@luke4u I think the best bet is to ask this on the<EMAIL_ADDRESS>Once you get a config that works, nothing really needs to be done here in Tika-Python it will just work.


Add self-signed certificates to configuration guide

Related to osism/issues#650

That's more a placeholder at the moment. Will be extended the next days with details about how to use a custom CA everywhere to not have to use verify = false everywhere.


The list of all trackers is not loaded correctly

Behaviour
Steps to reproduce this issue

Open rutorrent with several torrents from several trackers
Check the filter section "trackers"

Expected behaviour

All unique tracker should be in the list with a counter next to it + total volume summ

Actual behaviour

The list is empty and trackers will show up ONLY when I manually click on one torrent --> tracker added in the list but counter = 1
Then if I select another torrent it completed the filter section
Etc.

Configuration

Docker version (type docker --version) : Docker version 20.10.6, build 370c289
Docker compose version if applicable (type docker-compose --version) : docker-compose version 1.29.1, build c34c88b2
Platform (Debian 9, Ubuntu 18.04, ...) : Debian 10
System info (type uname -a) : Linux docker-host 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux

No issues in my client with 1000 and 2000 torrents.
I have this issue only for client with 4000+ torrents.

Don't think that's an issue with the Docker image itself. Suggest to open an issue on ruTorrent.

Thanks.
For the sake of tracking: https://github.com/Novik/ruTorrent/issues/2171

I'm running docker on crazy-max images so I will not be able to do so. https://github.com/Novik/ruTorrent/issues/2171

@the-lazy-fox you could try building your own image for the time being. Something like:
FROM crazymax/rtorrent-rutorrent:latest
RUN curl https://patch-diff.githubusercontent.com/raw/Novik/ruTorrent/pull/2170.diff | patch -d /var/www/rutorrent -fnp1

docker build . -t custom-rtorrent-rutorrent

@TrimmingFool
Step 2/2 : RUN curl https://patch-diff.githubusercontent.com/raw/Novik/ruTorrent/pull/2170.diff | patch -d /var/www/rutorrent -fnp1
 ---> Running in 59be8ada52fe
/bin/sh: patch: not found
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1022    0  1022    0     0    201      0 --:--:--  0:00:05 --:--:--   251
curl: (23) Failed writing body (0 != 1022)
The command '/bin/sh -c curl https://patch-diff.githubusercontent.com/raw/Novik/ruTorrent/pull/2170.diff | patch -d /var/www/rutorrent -fnp1' returned a non-zero code: 127

whereis patch --> patch: /usr/bin/patch

The issue remains exactly the same 😞

Hello @crazy-max
Accordingly to the other comments I found, it might be fix with the last version of rtorrent master.
https://github.com/rakshasa/rtorrent/pull/905
Could you please have a look?
Thanks a lot

The issue remains exactly the same

That's somewhat disappointing. Possible causes I could think of:

Browser cache prevents update
Patch is not correctly applied ( Since I did not test building/running the image )
Your original issue is different from mine

Just to add - I had the same issue, and removing httprpc from the excluded plugins solved the issues. I am sure it was placed there by default for a reason, but from my testing it has introduced no further errors yet.


Satellizer send OPTIONS and not POST

Hello,
I have a login problem whit facebook signin. I try to set the baseUrl to subdomain like api.mydomain.com. The problem is that my browser only sends the OPTIONS request, which is returned OK, status is 200, but than does not send the POST request. Other request for saving item, upload images and similar work OK, only satellizer is not sending POST. I have Laravel 5 for my api responses.
Can anyone help me, please. What could be wrong?
This is my config for satellizer...
$authProvider.baseUrl = 'http://api.mydomain.com';
$authProvider.facebook({
clientId: '4343242342342',
scope: 'public_profile',
url: '/v1/social',
});
Thank you all!!
Best regards,
Simke

Hi, usually the browser sends OPTIONS / preflighted requests to the server before the POST to check if the server accept the headers or the content type of your request.
Please read this:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS

Hi,
I am getting two issues(Facebook in-app browser) that might be related to same problem.

Pop-up is not getting closed
Facebook is unable to exchange token with my server.

"The default value for $authProvider.platform is "browser".
Do I need to change something to get it working? Here is the URL to my Satellizer.js file
Satellizer JS Link
any help?
Thanks,

I am having a similar issues with the local Login. Is there a common solution on the client side? Without specifying headers on the server?

Hi all,
This is due to how CORS works - it requires a pre-flight OPTIONS request to be sent in order for "approval" to be given by the server to perform a cross-domain HTTP request.
You absolutely need to specify the CORS headers on the server for this to work.
You can find more information about the process here:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Overview
Let me know if you have any other questions, or feel free to re-open this issue if you think it may be a problem in the framework.
Thanks!