Python client verify model change and update code

Codecov Report

Merging #1751 (df05f9d) into master (5106950) will increase coverage by 0.06%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master    #1751      +/-   ##
==========================================
+ Coverage   41.41%   41.48%   +0.06%
==========================================
  Files         170      170
  Lines       13422    13426       +4
==========================================
+ Hits         5559     5570      +11
+ Misses       7120     7113       -7
  Partials      743      743

Impacted Files
Coverage Δ

pkg/api/auth_middleware.go
70.96% <0.00%> (ø)

pkg/api/login_handler.go
9.61% <0.00%> (ø)

pkg/gateway/sig/v2.go
26.72% <0.00%> (ø)

pkg/api/controller.go
32.64% <50.00%> (ø)

pkg/auth/service.go
36.30% <66.66%> (ø)

pkg/config/config.go
46.40% <83.33%> (+4.79%)
:arrow_up:

pkg/gateway/sig/v4.go
75.12% <100.00%> (ø)

pkg/gateway/sig/v4_streaming_reader.go
64.13% <100.00%> (ø)

pkg/loadtest/loader.go
68.75% <100.00%> (ø)

pkg/pyramid/tier_fs.go
56.76% <0.00%> (-1.75%)
:arrow_down:

... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 68f85b2...df05f9d. Read the comment docs.


Chef-server 11 Installation Fails

Hi,
I m trying to install chef-server 11 and got an error as follows (OS:Centos 6)
[user@ip-111-111-11-11 chef-server_bakups]# chef-server-ctl reconfigure
[2015-02-02T16:42:09+00:00] WARN:
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
SSL validation of HTTPS requests is disabled. HTTPS connections are still
encrypted, but chef is not able to detect forged replies or man in the middle
attacks.

To fix this issue add an entry like this to your configuration file:

  # Verify all HTTPS connections (recommended)
  ssl_verify_mode :verify_peer

  # OR, Verify only connections to chef-server
  verify_api_cert true

To check your SSL configuration, or troubleshoot errors, you can use the
`knife ssl check` command like so:

  knife ssl check -c /opt/chef-server/embedded/cookbooks/solo.rb

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Starting Chef Client, version 11.12.2
Compiling Cookbooks...
Recipe: chef-server::default
  * directory[/etc/chef-server] action create (up to date)
[2015-02-02T16:42:12+00:00] WARN: Cloning resource attributes for directory[/var/opt/chef-server/chef-server-webui/etc] from prior resource (CHEF-3694)
[2015-02-02T16:42:12+00:00] WARN: Previous directory[/var/opt/chef-server/chef-server-webui/etc]: /opt/chef-server/embedded/cookbooks/chef-server/recipes/chef-server-webui.rb:31:in `block in from_file'
[2015-02-02T16:42:12+00:00] WARN: Current  directory[/var/opt/chef-server/chef-server-webui/etc]: /opt/chef-server/embedded/cookbooks/chef-server/definitions/unicorn_config.rb:21:in `block in from_file'
Converging 197 resources
  * directory[/etc/chef-server] action nothing (skipped due to action :nothing)
Recipe: chef-server::users
  * user[chef_server] action create (up to date)
  * group[chef_server] action create (up to date)
Recipe: chef-server::default
  * directory[/etc/chef] action create (up to date)
  * directory[/var/opt/chef-server] action create (up to date)
Recipe: runit::upstart
  * execute[initctl stop opscode-runsvdir] action run (skipped due to only_if)
  * file[/etc/init/opscode-runsvdir.conf] action delete (up to date)
  * cookbook_file[/etc/init/chef-server-runsvdir.conf] action create (up to date)
  * execute[initctl status chef-server-runsvdir] action run
    - execute initctl status chef-server-runsvdir

  * execute[initctl start chef-server-runsvdir] action run (skipped due to only_if)
Recipe: chef-server::sysctl-updates
  * execute[sysctl-reload] action nothing (skipped due to action :nothing)
  * bash[dual ip4/ip6 portbind] action run (skipped due to only_if)
Recipe: chef-server::rabbitmq
  * directory[/var/opt/chef-server/rabbitmq] action create (up to date)
  * directory[/var/opt/chef-server/rabbitmq/etc] action create (up to date)
  * directory[/var/opt/chef-server/rabbitmq/db] action create (up to date)
  * directory[/var/log/chef-server/rabbitmq] action create (up to date)
  * link[/var/opt/chef-server/rabbitmq/db] action create (skipped due to not_if)
  * link[/opt/chef-server/embedded/bin/rabbitmqctl] action create (up to date)
  * link[/opt/chef-server/embedded/bin/rabbitmq-env] action create (up to date)
  * link[/opt/chef-server/embedded/bin/rabbitmq-multi] action create
    - create symlink at /opt/chef-server/embedded/bin/rabbitmq-multi to /opt/chef-server/embedded/service/rabbitmq/sbin/rabbitmq-multi

  * link[/opt/chef-server/embedded/bin/rabbitmq-server] action create (up to date)
  * template[/opt/chef-server/embedded/service/rabbitmq/sbin/rabbitmq-env] action create
    - update content in file /opt/chef-server/embedded/service/rabbitmq/sbin/rabbitmq-env from 9d8c61 to 1020fa
        --- /opt/chef-server/embedded/service/rabbitmq/sbin/rabbitmq-env	2014-10-17 01:55:13.000000000 +0000
        +++ /tmp/chef-rendered-template20150202-9461-qz8m8r	2015-02-02 16:42:12.928048727 +0000
        @@ -1,19 +1,34 @@
         #!/bin/sh
        -##  The contents of this file are subject to the Mozilla Public License
        -##  Version 1.1 (the "License"); you may not use this file except in
        -##  compliance with the License. You may obtain a copy of the License
        -##  at http://www.mozilla.org/MPL/
        +##   The contents of this file are subject to the Mozilla Public License
        +##   Version 1.1 (the "License"); you may not use this file except in
        +##   compliance with the License. You may obtain a copy of the License at
        +##   http://www.mozilla.org/MPL/
         ##
        -##  Software distributed under the License is distributed on an "AS IS"
        -##  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
        -##  the License for the specific language governing rights and
        -##  limitations under the License.
        +##   Software distributed under the License is distributed on an "AS IS"
        +##   basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
        +##   License for the specific language governing rights and limitations
        +##   under the License.
         ##
        -##  The Original Code is RabbitMQ.
        +##   The Original Code is RabbitMQ.
         ##
        -##  The Initial Developer of the Original Code is VMware, Inc.
        -##  Copyright (c) 2007-2011 VMware, Inc.  All rights reserved.
        +##   The Initial Developers of the Original Code are LShift Ltd,
        +##   Cohesive Financial Technologies LLC, and Rabbit Technologies Ltd.
         ##
        +##   Portions created before 22-Nov-2008 00:00:00 GMT by LShift Ltd,
        +##   Cohesive Financial Technologies LLC, or Rabbit Technologies Ltd
        +##   are Copyright (C) 2007-2008 LShift Ltd, Cohesive Financial
        +##   Technologies LLC, and Rabbit Technologies Ltd.
        +##
        +##   Portions created by LShift Ltd are Copyright (C) 2007-2010 LShift
        +##   Ltd. Portions created by Cohesive Financial Technologies LLC are
        +##   Copyright (C) 2007-2010 Cohesive Financial Technologies
        +##   LLC. Portions created by Rabbit Technologies Ltd are Copyright
        +##   (C) 2007-2010 Rabbit Technologies Ltd.
        +##
        +##   All Rights Reserved.
        +##
        +##   Contributor(s): ______________________________________.
        +##

         # Determine where this script is really located
         SCRIPT_PATH="$0"
        @@ -37,10 +52,5 @@
<EMAIL_ADDRESS>
         # Load configuration from the rabbitmq.conf file
        -if [ -f /etc/rabbitmq/rabbitmq.conf ] && \
        -   [ ! -f /etc/rabbitmq/rabbitmq-env.conf ] ; then
        -    echo -n "WARNING: ignoring /etc/rabbitmq/rabbitmq.conf -- "
        -    echo "location has moved to /etc/rabbitmq/rabbitmq-env.conf"
        -fi
        -[ -f /etc/rabbitmq/rabbitmq-env.conf ] && . /etc/rabbitmq/rabbitmq-env.conf
        +[ -f /var/opt/chef-server/rabbitmq/etc/rabbitmq.conf ] && . /var/opt/chef-server/rabbitmq/etc/rabbitmq.conf
    - restore selinux security context

  * template[/var/opt/chef-server/rabbitmq/etc/rabbitmq.conf] action create (up to date)
  * directory[/opt/chef-server/sv/rabbitmq] action create
    - create new directory /opt/chef-server/sv/rabbitmq
    - change mode from '' to '0755'
    - change owner from '' to 'root'
    - change group from '' to 'root'
    - restore selinux security context

  * directory[/opt/chef-server/sv/rabbitmq/log] action create
    - create new directory /opt/chef-server/sv/rabbitmq/log
    - change mode from '' to '0755'
    - change owner from '' to 'root'
    - change group from '' to 'root'
    - restore selinux security context

  * directory[/opt/chef-server/sv/rabbitmq/log/main] action create
    - create new directory /opt/chef-server/sv/rabbitmq/log/main
    - change mode from '' to '0755'
    - change owner from '' to 'root'
    - change group from '' to 'root'
    - restore selinux security context

  * template[/opt/chef-server/sv/rabbitmq/run] action create
    - create new file /opt/chef-server/sv/rabbitmq/run
    - update content in file /opt/chef-server/sv/rabbitmq/run from none to 264c9f
        --- /opt/chef-server/sv/rabbitmq/run	2015-02-02 16:42:13.816023441 +0000
        +++ /tmp/chef-rendered-template20150202-9461-c3ac9r	2015-02-02 16:42:13.818023385 +0000
        @@ -1 +1,5 @@
        +#!/bin/sh
        +exec 2>&1
        +exec chpst -P -u chef_server -U chef_server /usr/bin/env HOME=/var/opt/chef-server/rabbitmq /opt/chef-server/embedded/bin/rabbitmq-server
        +
    - change mode from '' to '0755'
    - change owner from '' to 'root'
    - change group from '' to 'root'
    - restore selinux security context

  * template[/opt/chef-server/sv/rabbitmq/log/run] action create
    - create new file /opt/chef-server/sv/rabbitmq/log/run
    - update content in file /opt/chef-server/sv/rabbitmq/log/run from none to f2df3a
        --- /opt/chef-server/sv/rabbitmq/log/run	2015-02-02 16:42:14.002018142 +0000
        +++ /tmp/chef-rendered-template20150202-9461-10gb8pu	2015-02-02 16:42:14.003018114 +0000
        @@ -1 +1,3 @@
        +#!/bin/sh
        +exec svlogd -tt /var/log/chef-server/rabbitmq
    - change mode from '' to '0755'
    - change owner from '' to 'root'
    - change group from '' to 'root'
    - restore selinux security context

  * file[/opt/chef-server/sv/rabbitmq/down] action delete (up to date)
  * link[/opt/chef-server/init/rabbitmq] action create
    - create symlink at /opt/chef-server/init/rabbitmq to /opt/chef-server/embedded/bin/sv

  * link[/opt/chef-server/service/rabbitmq] action create
    - create symlink at /opt/chef-server/service/rabbitmq to /opt/chef-server/sv/rabbitmq

  * ruby_block[supervise_rabbitmq_sleep] action run
    - execute the ruby block supervise_rabbitmq_sleep

  * service[rabbitmq] action nothing (skipped due to action :nothing)
Recipe: chef-server::postgresql
  * user[opscode-pgsql] action create
================================================================================
Error executing action `create` on resource 'user[opscode-pgsql]'
================================================================================

Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '8'
---- Begin output of ["usermod", "-d", "/var/opt/chef-server/postgresql", "opscode-pgsql"] ----
STDOUT:
STDERR: usermod: user opscode-pgsql is currently logged in
---- End output of ["usermod", "-d", "/var/opt/chef-server/postgresql", "opscode-pgsql"] ----
Ran ["usermod", "-d", "/var/opt/chef-server/postgresql", "opscode-pgsql"] returned 8

Resource Declaration:
---------------------
# In /opt/chef-server/embedded/cookbooks/chef-server/recipes/postgresql.rb

 24: user node['chef_server']['postgresql']['username'] do
 25:   system true
 26:   shell node['chef_server']['postgresql']['shell']
 27:   home node['chef_server']['postgresql']['home']
 28: end
 29:

Compiled Resource:
------------------
# Declared in /opt/chef-server/embedded/cookbooks/chef-server/recipes/postgresql.rb:24:in `from_file'

user("opscode-pgsql") do
  action :create
  supports {:manage_home=>false, :non_unique=>false}
  retries 0
  retry_delay 2
  guard_interpreter :default
  username "opscode-pgsql"
  home "/var/opt/chef-server/postgresql"
  shell "/bin/sh"
  system true
  cookbook_name :"chef-server"
  recipe_name "postgresql"
end

Running handlers:
[2015-02-02T16:42:17+00:00] ERROR: Running exception handlers
Running handlers complete

[2015-02-02T16:42:17+00:00] ERROR: Exception handlers complete
[2015-02-02T16:42:17+00:00] FATAL: Stacktrace dumped to /opt/chef-server/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 11 resources updated in 7.86400068 seconds
[2015-02-02T16:42:17+00:00] ERROR: user[opscode-pgsql] (chef-server::postgresql line 24) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '8'
---- Begin output of ["usermod", "-d", "/var/opt/chef-server/postgresql", "opscode-pgsql"] ----
STDOUT:
STDERR: usermod: user opscode-pgsql is currently logged in
---- End output of ["usermod", "-d", "/var/opt/chef-server/postgresql", "opscode-pgsql"] ----
Ran ["usermod", "-d", "/var/opt/chef-server/postgresql", "opscode-pgsql"] returned 8
[2015-02-02T16:42:17+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

note: I want to run chef-server 11 not chef-server 12.

Did you previously attempt to install chef-server 12 on this same machine?

Yes, Actually I m trying to rollback from chef 12 to chef 11,meanwhile I end up crashing my server now I can start neither 12 or 11. Is there anyway to recover the data/configurations?

@santhoshjavapro OK.  Are you trying to roll back because of a failed upgrade or some other reason?  I can help you roll back, but I ask because if your end goal is to be on Chef 12, it is often easier to move forward.  Let's take this step by step.

Does /var/opt/chef-server still exist and appear to have data in it?
Does /var/opt/opscode exist?
What have you tried so far?  From the looks of it, you still have Chef 12 processes running on the machine (which is why the usermod command cannot change the home directory of the opscode-pgsql user)

@stevendanna yes /var/opt/chef-server exist but how can I verify data still exists?

@santhoshjavapro It likely does as I don't believe we destroy it.  You should see subdirectories for each service.

We don't destroy it. So long as you haven't removed the package or deleted the data dirs yourself it should still be there. We purposefully did that in the event something went wrong, so you can recover.
Also, depending on where in the upgrade your process failed, we first download all the data from your chef 11 server into a tmp dire (it's going to be in /tmp/chef11-randomstringhere), so you could also look for that if you need it. However, since Chef 11 is still on the box, your data is there. If you fully remove Chef server 12, you should be able to restart Chef 11.

If I remove the chef-server-12 I can't use the command chef-server-ctl command, how to direct this command back to chef-server-11.

chef-server-ctl for chef 11 is still there, it's just been removed from the path, as the name is the same for Chef 12, but in a different location. Look at /opt/chef-server/bin/chef-server-ctl and you'll find the one for Chef 11. You're data for Chef 11 should still be in place, meaning you don't yet need to recover from /tmp. Try getting Chef 11 running again using chef-server-ctl.
If that fails for some reason, the data in the /tmp dir can up uploaded to a clean chef 11 server using knife upload. I'd recommend you make a backup copy, just as extra insurance, although I wouldn't expect anything to go wrong.

Thanks @mmzyk, I removed everything from my machine all I have is /tmp backup now which have all my datas in json format.
"the data in the /tmp dir can up uploaded to a clean chef 11 server using knife upload"
Did you mean "clean chef server" means a fresh chef 11 server installation?
So that all the configurations can be recovered?

By clean I did mean a fresh install. Although if you're having to start fresh you might as well go straight to 12. First, make sure you have the data backed up. Then install 12 on the machine.
Now, I don't know where your previous upgrade to 12 failed, so there might be a /tmp/chef12-randomstringhere directory. If so, then your Chef 11 data has already been transformed into the format Chef 12 needs. If not, then you'll need to run the transform steps.
See the docs here: https://docs.chef.io/upgrade_server_open_source_notes.html#manual-upgrades
That describes the commands that you can run for the manual upgrades. You can skip the command that downloads the data. If needed you should run the transform command, and then you should run the command that uploads the data.
If you scroll on that docs page some you'll see each command explained in detail. Also note that you can pass each command the -h flag for the full help menu as well.
Running the upgrade command that you attempted the first time is the same as running these three commands one after the other. Hopefully these commands with the clean system should get you up and running.

I should note that one of the options for the commands is where to find the /tmp data that is already on the system, so you'll need to supply this option. If you run a command (such as the transform command) and an option it needs isn't set them it will prompt you for the information it needs.

@mmzyk My fresh chef-server 11 is up and running,and I have data in the /tmp folder in json format(cookbooks, nodes, users, etc) . Now I want to upload all backup-ed data back to the new server.
The link you provided gave a clear idea about what chef-upgrade does at background and it worked in chef-server-12 as expected but I believe the same commands will not work in chef-11(As per the docs, these commands should be used only at the time of up-gradation).
And Knife upload will only upload Cookbooks, Data bags, Roles stored as JSON data and Environments stored as JSON data. With added to that I want all my old node configurations(Already 50+ nodes configured in old server) to be uploaded to the new server. there are no commands given in doc for uploading a node config.
Doc : https://docs.chef.io/knife_upload.html
Kindly help me if you know anyway to do it  else I have to configure all the nodes again, manually .

@santhoshjavapro knife upload should handle nodes just fine, even though I realize the docs don't mention that. https://docs.chef.io/knife_upload.html
So long as the repo_mode is set to everything (the default) it should upload the node data.
And you're right, the upload commands are only for getting to Chef 12. Based on your description it sounded like you're in a place where rolling forward made as much sense as rolling back, so I was giving you directions on how to get to Chef 12. But knife upload should allow you to roll back to Chef 11 just fine.

@santhoshjavapro Are you in a good state now? If so, I'd like to close this issue out.

@mmzyk Yes, Thanks for all ur support :)


[#133106357] Switch rsyslog from RELP to TCP

What
Story: Fix rsyslog high cpu usage & getting stuck on restart
There is an issue in our configuration when sending logs via RELP protocol from syslog to logstash via an ELB. If the ingestor is temporarily disconnected, the messages aren't logged anymore. Rsyslog tries to reconnect, opens many connections and consumes a lot of CPU.
We may investigate the root cause but in the meantime, we revert to the default TCP configuration because it doesn't show this behaviour.
How to review

Deploy
SSH to cell/0 for example
Observe rsyslog is not connected to the ingestor ELB via RELP: netstat -an | grep :2514
Observe rsyslog is connected to the ingestor ELB via TCP: netstat -an | grep :5514
In AWS console, locate the ingestor ELB and remove the ingestor backends
Observe rsyslog is disconnected: netstat -an | grep :5514
Observe kibana doesn't show new logs
Reconnect the ingestor backends
Observe rsyslog reconnects automatically: netstat -an | grep :5514
Observe kibana shows new logs

Who can review
Not @paroxp or me

The 'how to review' instructions do nothing to verify cpu usage doesn't spike, and don't advise comparison with a revision exhibiting the problem. We should assume logsearch is tested well enough that their valid config is OK to deploy.
This sort of thing will be addressed as part of our process review but for now it's enough to believe the analysis in the story and confirm the config change looks sensible.
I'm happy with the syslog transport config change, but not sure why we still refer to the ingestor_relp in the ingenstor_<zone> jobs - do we still need this?

We didn't go into hassle of removing all relp references, as an issue has been raised upstream and we may wish to switch back to relp after that has been resolved. Is that ok?

So long as it was considered, that's fine, although I think it's quite likely we never return to this issue if TCP works out in the long term. Good to merge.

We didn't go into hassle of removing all relp references, as an issue has been raised upstream and we may wish to switch back to relp after that has been resolved.

I'm not sure that's the best approach. I think it's good for hygiene to clean this sort of thing out, especially when we're not sure whether they're going to be needed in future or not. If they are needed in future, they're only a git revert away.

I see. Perhaps, a separate story may need to be played?


Readme run issue

There is a small issue in the readme
It should be
npm run dev

instead of
npm dev

Ups! Thanks for the report! Updating


Rearrange locations overflow info on addendum

@nonprofittechy  Would you be able to help on this one?
For overflow items in locations, I need to arrange these fields from left to right to be:

item.address.on_one_line()
item.start_date
item.end_date
item.housemates

Yes, I can take this one. I'll post a code example too


docs: update README

Add a reference to Fabric's data catalog.

Codecov Report
Patch and project coverage have no change.

Comparison is base (8e6cff4) 89.88% compared to head (8b8820b) 89.88%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1386   +/-   ##
========================================
  Coverage    89.88%   89.88%
========================================
  Files          192      192
  Lines         6147     6147
========================================
  Hits          5525     5525
  Misses         622      622

Flag
Coverage Δ

py3.8-ubuntu-22.04-pandas
89.88% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Add extra objects

This PR adds the ability to add extra objects to the clustergroup-level deployment. This was originally added in order to allow for applying ArgoCD resource hooks to clustergroup-level objects, specifically subscriptions. (This feature is necessary in that case because it allows for the creation of Sync Hook jobs.) Other uses may be discovered for this feature later as well.
This feature adds a new element under clusterGroup, called extraObjects. The elements under extraObjects are objects, which are treated similarly to other top-level clustergroup objects, with the exception that the value of the dictionary is submitted "as-is" as a manifest to the API from ArgocD.  Example usage:
extraObjects:
    wait-for-virt-storageclass:
      apiVersion: batch/v1
      kind: Job
      metadata:
        name: wait-for-virt-storageclass
        annotations:
          argocd.argoproj.io/hook: Sync
          argocd.argoproj.io/sync-wave: "5"
      spec:
        parallelism: 1
        completions: 1
        template:
          spec:
            restartPolicy: OnFailure
            containers:
              - name: wait-for-storage-class
                image: quay.io/hybridcloudpatterns/imperative-container:v1
                command:
                  - /bin/bash
                  - -c
                  - |
                    while [ 1 ];
                    do
                      oc get sc ocs-storagecluster-ceph-rbd && break
                      echo "Storage class ocs-storagecluster-ceph-rbd not found, waiting..."
                      sleep 5
                    done
                    echo "Storage class ocs-storagecluster-ceph-rbd found, exiting"
                    exit 0

This also works together with the ODF operator also being assigned to syncwave 5 and the kubevirt/OCP-Virt operator being assigned to syncwave 10.

OK after some further discussion this PR has been edited to add the narrower concept of a sequenceJob to subscriptions. The sequenceJob will create a job like the one above but mostly using boilerplate. This can be activated by adding the following structure:
openshift-data-foundation:
        name: odf-operator
        namespace: openshift-storage
        sequenceJob:
          resourceType: sc
          resourceName: ocs-storagecluster-ceph-rbd
        annotations:
          argocd.argoproj.io/sync-wave: "5"

The job created will use the resourceType and resourceName (also a resourceNamespace if specified) and will inherit the sync-wave from the subscription object. Users can also specify a command and image if desired. If consensus is for doing it this way, I'll flesh out a sequenceJob definition in the schema

ship it! :-)


Ask users to make pattern title call to action

Fixes #706.
This PR updates the guidance for our check answers pattern.
We're changing a bullet so that it explicitly recommends making the page title a call to action. This is because some users didn't know they had to do something.

@calvin-lau-sig7 Have added in your suggestion. Can I get a review? :)

@calvin-lau-sig7 Thanks for reviewing!


workaround to install via npm

duplicate of #72

Oops!
On Thu, Sep 24, 2015, 3:24 PM Richard<EMAIL_ADDRESS>wrote:

duplicate of #72 https://github.com/rackt/redux-router/pull/72
—
Reply to this email directly or view it on GitHub
https://github.com/rackt/redux-router/pull/80#issuecomment-143065906.

--
Jason Gonzales
Sr UI Developer
ph:<PHONE_NUMBER>

Oops!


semaphore CI integration

Results on:
https://semaphoreci.com/alban/tcptracer-bpf
Published on:
https://hub.docker.com/r/kinvolk/tcptracer-bpf/tags/
(with a "semaphore-*" tag to avoid conflicts with CircleCI)
/cc @alepuccetti @iaguis @schu

Thanks!


datasets_download script not downloading semantic data for hm3d

Habitat-Sim version
v0.3.0
🐛 Bug
The download script does not seem to download the semantic information for the train splits in the hm3d dataset.
Steps to Reproduce
Steps to reproduce the behavior:
Run the download script as
python -m habitat_sim.utils.datasets_download --username xxx --password xxx --uids hm3d_full

The semantic data exists for minival:
> ls data/scene_datasets/hm3d/minival/00800-TEEsavR23oF/TEEsavR23oF.*
data/scene_datasets/hm3d/minival/00800-TEEsavR23oF/TEEsavR23oF.basis.glb      data/scene_datasets/hm3d/minival/00800-TEEsavR23oF/TEEsavR23oF.semantic.glb
data/scene_datasets/hm3d/minival/00800-TEEsavR23oF/TEEsavR23oF.basis.navmesh  data/scene_datasets/hm3d/minival/00800-TEEsavR23oF/TEEsavR23oF.semantic.txt
data/scene_datasets/hm3d/minival/00800-TEEsavR23oF/TEEsavR23oF.glb

And for val:
> ls data/scene_datasets/hm3d/val/00800-TEEsavR23oF/TEEsavR23oF.*
data/scene_datasets/hm3d/val/00800-TEEsavR23oF/TEEsavR23oF.basis.glb      data/scene_datasets/hm3d/val/00800-TEEsavR23oF/TEEsavR23oF.semantic.glb
data/scene_datasets/hm3d/val/00800-TEEsavR23oF/TEEsavR23oF.basis.navmesh  data/scene_datasets/hm3d/val/00800-TEEsavR23oF/TEEsavR23oF.semantic.txt
data/scene_datasets/hm3d/val/00800-TEEsavR23oF/TEEsavR23oF.glb

But apparently not for train:
> ls data/scene_datasets/hm3d/train/00000-kfPV7w3FaU5/kfPV7w3FaU5.*
data/scene_datasets/hm3d/train/00000-kfPV7w3FaU5/kfPV7w3FaU5.basis.glb      data/scene_datasets/hm3d/train/00000-kfPV7w3FaU5/kfPV7w3FaU5.glb
data/scene_datasets/hm3d/train/00000-kfPV7w3FaU5/kfPV7w3FaU5.basis.navmesh

Expected behavior
I expect the semantic data to exist for train.
Additional context
I also notice that the file data/scene_datasets/hm3d_semantic_v0.2/hm3d_basis.scene_dataset_config.json lists scene instance descriptions *.basis.scene_instance.json, but this does not exist either, which results in a lot of warnings like
[10:19:42:933663]:[Warning]:[Metadata] AttributesManagerBase.h(398)::buildAttrSrcPathsFromJSONAndLoad : <Scene Instance> : No Glob path result found for `./data/scene_datasets/hm3d_semantic_v0.2/exa
mple/00861-GLAQ4DNUx5U/*.basis.scene_instance.json` so unable to load templates from that path.
[10:19:42:933852]:[Warning]:[Metadata] AttributesManagerBase.h(398)::buildAttrSrcPathsFromJSONAndLoad : <Scene Instance> : No Glob path result found for `./data/scene_datasets/hm3d_semantic_v0.2/min
ival/00800-TEEsavR23oF/*.basis.scene_instance.json` so unable to load templates from that path.
[...]

Furthermore, it seems like the test set is not downloaded at all:
[10:19:42:917474]:[Warning]:[Metadata] AttributesManagerBase.h(398)::buildAttrSrcPathsFromJSONAndLoad : <Stage Template> : No Glob path result found for `./data/scene_datasets/hm3d_semantic_v0.2/tes
t/00900-XRJ2muKkwAV/*.basis.glb` so unable to load templates from that path.
[10:19:42:917636]:[Warning]:[Metadata] AttributesManagerBase.h(398)::buildAttrSrcPathsFromJSONAndLoad : <Stage Template> : No Glob path result found for `./data/scene_datasets/hm3d_semantic_v0.2/tes
t/00901-aJoC8Qw6xQ5/*.basis.glb` so unable to load templates from that path.

System Info
ENVIRONMENT INFO:
Platform: Linux-5.15.0-60-generic-x86_64-with-glibc2.35
Machine: x86_64
Processor: x86_64
Libc version: glibc 2.35
Mac version:
Python version: 3.9.18
Architecture: 64bit ELF
Win version:
System OS: Linux
Release: 5.15.0-60-generic
Version: #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023
Operational System: linux
GCC version: b'gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0\n'
CMAKE version: b'cmake version 3.22.1\n'
NVIDIA-SMI: b'Thu Feb 29 10:53:46 2024       \n+-----------------------------------------------------------------------------+\n| NVIDIA-SMI 525.147.05   Driver Version: 525.147.05   CUDA Version: 12.0     |\n|-------------------------------+----------------------+----------------------+\n| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |\n| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |\n|                               |                      |               MIG M. |\n|===============================+======================+======================|\n|   0  NVIDIA A100-PCI...  On   | 00000000:21:00.0 Off |                    0 |\n| N/A   58C    P0    74W / 250W |  25641MiB / 40960MiB |     55%      Default |\n|                               |                      |             Disabled |\n+-------------------------------+----------------------+----------------------+\n|   1  NVIDIA A100-PCI...  On   | 00000000:81:00.0 Off |                    0 |\n| N/A   55C    P0    98W / 250W |  24479MiB / 40960MiB |     75%      Default |\n|                               |                      |             Disabled |\n+-------------------------------+----------------------+----------------------+\n'
Pip packages versions:
b''
Conda packages versions:
b''

Hey @janblumenkamp,
Thanks for reaching out, a couple things here:

HM3D semantic annotations do not cover the full set of 1000 scenes. If you downloaded the semantic dataset, there should be config files limiting the dataset to those scenes which have annotations: hm3d-train-semantic-configs-v0.2/hm3d_annotated_train_basis.scene_dataset_config.json. The scene you referenced kfPV7w3FaU5 is not in the list. Check one of these to validate that annotations were downloaded correctly.
test split assets are not available to public. We keep them in reserve such that future challenges can be run without biasing results by purposefully or accidentaly training or evaluating on them. Instead, do your own evaluation using the val set.

Hey Alexander, thanks a lot for the quick response and clarifications!
Indeed, the semantic data is available for the scenes listed in that json file. I assume it's fine for me just to ignore these warnings then.


Have not Animation feature Clip, Type, Loading Bar

like a https://codyhouse.co/demo/animated-headlines/index.html

We rely on a third party animation library (animate.css). Feel free to propose it to them or raise a PR for it.


Input format option for Jupyter Notebook

Do you have a plan to implement input format option for Jupyter Notebook?
As far as I know, currently we can not use .ipynb file as an input for RedPen CLI:
http://redpen.cc/docs/latest/index_ja.html#command-line-tool

We are currently working on Japanese translation of TensorFlow official document (many of the document are .ipynb files):
https://github.com/tensorflow/docs/tree/master/site/ja
To help reviewer, we are using RedPen.
But, since RedPen does not support Jupyter Notebook, we have to convert it to markdown:
https://github.com/tfug/proofreading
We are very happy if we can apply RedPen directly to Jupyter Notebook.

@sfujiwara Thank you very much for your interest in RedPen 🙏
As you think, currently RedPen does not support .ipynb format and therefore we need to convert the files to markdown to apply RedPen.
To support .ipynb,  we first need to the detailed specification of the format.  Creating the parser could be simple since as we see, .ipynbcontains the Markdown blocks which RedPen already support the parser.

I think the parser need to extract "source" elements if "cell_type": "markdown".
An example block we want to extract is below:
https://github.com/tensorflow/docs/blob/392123db72bb67706a9805764b1833cc945b4e18/site/ja/r2/tutorials/keras/basic_classification.ipynb?short_path=6fd7e60#L146-L150
The content of "source" is similar to markdown, but a little bit different from it.

Thank you very much for tell us the format of ipynb files. We understand that the ipynb is a simple json format and can handle source of elements which have cell_type: markdown`.


Update service-apis to RC2

This should be the last change

@howardjohn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

gencheck_istio
b80e6a5b2f851f626ffbabb46c184a19a8e2b10f
link
/test gencheck_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

gencheck_istio
b80e6a5b2f851f626ffbabb46c184a19a8e2b10f
link
/test gencheck_istio

integ-pilot-k8s-tests_istio
b80e6a5b2f851f626ffbabb46c184a19a8e2b10f
link
/test integ-pilot-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-pilot-k8s-tests_istio
7dc2821c2cb3096b14256b2af4495a945bf8881a
link
/test integ-pilot-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-pilot-k8s-tests_istio
cfa95ec2c1ed3cbb8dbd2cc201ea7cda63a6e411
link
/test integ-pilot-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-pilot-k8s-tests_istio
cfa95ec2c1ed3cbb8dbd2cc201ea7cda63a6e411
link
/test integ-pilot-k8s-tests_istio

lint_istio
9f4110152e56183f97a172f2aa5e0c417e04f3b1
link
/test lint_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

In response to a cherrypick label: new pull request created: #28526


eos.setcode('hello', 0, 0, wasm, abi) get error code: 65533

You should probably run the example in the README by hand and make sure the data types are the same.  It will probably help you to have a working example to inspect.  Generally a Buffer and Array will work as the same..

thx , a Buffer is work.


Fix tls-all example: use headless service

Motivation
In testing, @yabinmeng observed that the newly created examples/dev-values-tls-all-components.yaml file was not working on GCP because the function worker failed with the following error:

03:37:06.934 [pulsar-client-io-22-1] WARN  org.apache.pulsar.client.impl.ConnectionPool - Failed to open connection to pulsar-broker-0.pulsar-broker.pulsar.svc.cluster.local:6651 : io.netty.resolver.dns.DnsResolveContext$Searc
hDomainUnknownHostException: Failed to resolve 'pulsar-broker-0.pulsar-broker.pulsar.svc.cluster.local' and search domain query for configured domains failed as well: [pulsar.svc.cluster.local, svc.cluster.local, cluster.local
, c.datastax-astrastreaming-stage.internal, google.internal]

In looking closer, the underlying issue was a misconfiguration in the brokerSts. It must be a headless service in order for the StatefulSet stable network identifies to work (see https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#limitations)

StatefulSets currently require a Headless Service to be responsible for the network identity of the Pods. You are responsible for creating this Service.

The fundamental issue was that the broker's individual DNS name did not resolve correctly.
Background
I did not observe this issue during testing because minikube apparently does not have the documented kubernetes limitation.

Note: I tested this fix on GCP. All of the networking appears to work correctly, and that includes with hostname verification enabled.


KAFKA-1981 Make log compaction point configurable

Reduced scope to controlling only minimum time before compaction. Changed to using message time when available.

@ewasserman : KAFKA-3163 is now committed. Could you rebase?


has_one association error on delete

Erlang/OTP 19 [erts-8.2] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
Elixir 1.4.0
postgres (PostgreSQL) 9.6.1
ecto 2.1.3
postgrex 0.13.0
MacOS Sierra
Hello, I have a phoenix project with ecto1, Im trying to update to ecto2.
Everything worked fine except one feature, when I try to delete my has_one association I got an error:
no case clause matching: :raise
I followed this blog post:
http://blog.plataformatec.com.br/2015/08/working-with-ecto-associations-and-embeds/
This error happens only with has_one association, when I change to has_many (like describbed in blog post) it works.
I think it happens because in has_one association the method on_repo_change is called and there raises the error.

Can you lease post the full error message with stacktrace?

rollback [] [info] Sent 500 in 3507ms [error] #PID<0.491.0> running TestAssoc.Endpoint terminated Server: localhost:4000 (http) Request: POST /posts/4 ** (exit) an exception was raised:     ** (CaseClauseError) no case clause matching: :raise         (ecto) lib/ecto/association.ex:515: Ecto.Association.Has.on_repo_change/4         (ecto) lib/ecto/association.ex:372: Ecto.Association.maybe_replace_one!/5         (ecto) lib/ecto/association.ex:315: Ecto.Association.on_repo_change/6         (elixir) lib/enum.ex:1755: Enum."-reduce/3-lists^foldl/2-0-"/3         (ecto) lib/ecto/association.ex:293: Ecto.Association.on_repo_change/3         (ecto) lib/ecto/repo/schema.ex:617: Ecto.Repo.Schema.process_children/4         (ecto) lib/ecto/repo/schema.ex:684: anonymous fn/3 in Ecto.Repo.Schema.wrap_in_transaction/6         (ecto) lib/ecto/adapters/sql.ex:615: anonymous fn/3 in Ecto.Adapters.SQL.do_transaction/3         (db_connection) lib/db_connection.ex:1274: DBConnection.transaction_run/4         (db_connection) lib/db_connection.ex:1198: DBConnection.run_begin/3         (db_connection) lib/db_connection.ex:789: DBConnection.transaction/3         (test_assoc) web/controllers/post_controller.ex:45: TestAssoc.PostController.update/2         (test_assoc) web/controllers/post_controller.ex:1: TestAssoc.PostController.action/2         (test_assoc) web/controllers/post_controller.ex:1: TestAssoc.PostController.phoenix_controller_pipeline/2         (test_assoc) lib/test_assoc/endpoint.ex:1: TestAssoc.Endpoint.instrument/4         (test_assoc) lib/phoenix/router.ex:261: TestAssoc.Router.dispatch/2         (test_assoc) web/router.ex:1: TestAssoc.Router.do_call/2         (test_assoc) lib/test_assoc/endpoint.ex:1: TestAssoc.Endpoint.phoenix_pipeline/1         (test_assoc) lib/plug/debugger.ex:123: TestAssoc.Endpoint."call (overridable 3)"/2         (test_assoc) lib/test_assoc/endpoint.ex:1: TestAssoc.Endpoint.call/2

I create one project if you want to seed:
https://github.com/renanoronfle/test_assoc
Run seed and enter in url: /posts, edit and try delete a comment

Fixed on master and v2.1. Thank you so much for a mechanism to reproduce this!


echart is not working with webcomponent (lit)

What happened?
echart siemensIX component ( https://ix.siemens.io/docs/controls/charts/) is not working when used with webcomponent lit.
no error and no output when tried in stackblitz.
Also as of now we can see one type of echart, Bar in siemensIX.
Is there any plan of providing siemensIX components of other types of echart too ?
What type of frontend frameware are you seeing the problem on?
Others
Which version of iX do you use?
1.6.3
Code to produce this issue.
example project has been created in stackblitz using lit webcomponent.
https://stackblitz.com/edit/hzcmgg-yd6jl9?file=src%2Fmyechart.js,package.json,src%2Findex.html

We do only provide a theme for echarts. No echarts support in general if you have problems regarding the theme please reopen the ticket.

@kcmyprojects your link misses several things: echart was not imported, but initialized twice, and querySelector from document does not work with shadowDom.
working example:
https://stackblitz.com/edit/hzcmgg-jchyud?file=src%2Fmyechart.js,package.json,src%2Fmain.js


Power while parked

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
When the vehicle is parked and using power it's considered a vampire drain.
Currently when parking and not sleeping polling is slowed down to once every 5 minutes? This makes it not possible to see graphs of the session.
Values like temperature and power are not tracked correctly.
Expected Behavior
When the vehicle is parked and using power (power >=1) this should be tracked with frequent logging as a conditioning entity, opens up the possibility of knowing energy used to precondition depending on the temperature, how long it takes, etc....
These should be treated as entities as there are changes on inside temps, power, battery %.
Steps To Reproduce
Park the car and leave climate on.
Relevant log output
N/a

Screenshots
No response
Additional data
No response
Type of installation
Docker
Version
V1.32

Thanks for reporting.
Can you please share a screenshot?

V1.32

This version does not exist.

Why did it not paste correctly?  v1.32.0
This car is heating in HI mode, pulling 2kW from the charger, and reporting 2kW in the MQTT topic "teslamate/teslamate/cars/4/power" but there's no log done of the temperature change or anything

after 3 minutes we can see the temperature change.


Add support for CPython 3.11 opcodes

Adds typehinting support for CPython 3.11 opcodes, aiming to unblock adding support for Python 3.11.

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

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

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

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

R: @robertwb @AnandInguva
CC: @damccorm

cc: @tvalentyn

I will pass this to @tvalentyn or @robertwb for further review. Thanks

@jrmccluskey
i am trying to use it with 3.11.
do you also modify setup.py, etc.?

I am testing Python 3.11 here https://github.com/apache/beam/pull/24721. I merged this PR with some other changes.

I am testing Python 3.11 here https://github.com/apache/beam/pull/24721. I merged this PR with some other changes.
@AnandInguva
ok, thanks.
Python3.11 seems to work fine even with the current release version(apache:master). Do you match?

@AnandInguva I think this PR can be merged on its own if related inference tests on 3.11 are passing in your branch. Do you have any concerns merging this?

yes, it can be merged in its current state. I didn't find unit tests failing on github actions. I will run one more test run and confirm everything is green on Py311. Give me some time to do that.

https://github.com/apache/beam/actions/runs/4450700438/jobs/7816480746?pr=24721. This run includes the current PR changes. 3.11 has green state. so I am good for this to get merged on to the master. if something comes up, i will create an issue and let the team know


SSL error: 0A00010B:SSL routines::wrong version number

Hello.
My sbt
scalaVersion := "2.12.4"

libraryDependencies ++= Seq(
  "ch.qos.logback" % "logback-classic" % "1.2.3",
  "org.scala-lang" % "scala-library" % "2.12.4",
  "com.typesafe" % "config" % "1.3.4",
  "com.bot4s" %% "telegram-core" %  "5.4.2",
  "com.bot4s" %% "telegram-akka" %  "5.4.2",
  "com.github.jnr" % "jnr-ffi" % "2.2.12",
  "com.github.oshi" % "oshi-core" % "6.1.6"
)

jdk-11.0.13\bin
=== step 1 ===  <IP_ADDRESS> is my static ip
C:\jdk-11.0.13\bin>keytool -genkey -keyalg RSA -alias mts -keystore mts.jks -storepass 333333 -validity 360 -keysize 2048
What is your first and last name?
  [Unknown]:  <IP_ADDRESS>
What is the name of your organizational unit?
  [Unknown]:  mts
What is the name of your organization?
  [Unknown]:  mts
What is the name of your City or Locality?
  [Unknown]:  PERM
What is the name of your State or Province?
  [Unknown]:  PERM
What is the two-letter country code for this unit?
  [Unknown]:  RU
Is CN=<IP_ADDRESS>, OU=mts, O=mts, L=PERM, ST=PERM, C=RU correct?
  [no]:  yes

=== step 2 ===
C:\jdk-11.0.13\bin>keytool -importkeystore -srckeystore mts.jks -destkeystore mts.p12 -srcstoretype jks -deststoretype pkcs12
Importing keystore mts.jks to mts.p12...
Enter destination keystore password:
Re-enter new password:
Enter source keystore password:
Entry for alias mts successfully imported.
Import command completed:  1 entries successfully imported, 0 entries failed or cancelled

=== step 3 ===
copy file mts.p12 into C:\openssl3\bin
cd C:\openssl3\bin

C:\openssl3\bin>openssl version
OpenSSL 3.0.3 3 May 2022 (Library: OpenSSL 3.0.3 3 May 2022)

C:\openssl3\bin>openssl pkcs12 -in mts.p12 -out mts.pem -passin pass:333333

Next, I left only this content in mts.pem

-----BEGIN CERTIFICATE-----
MIIDWzCCAkOgAwIBAgIEUIe/jzANBgkqhkiG9w0BAQsFADBeMQswCQYDVQQGEwJS
........
BOujl3TIbWK/kMfMD9Ggby4j3rU1PDcZEdlt7ZOXm4vlZ0eyG85zbmpOsQYUhZ4=
-----END CERTIFICATE-----

Copy both files mts.pem and mts.p12 into resource of my project.

My config
teleg {
  token="886094130:AAENizOGvqrl7vrLVeOZwKfJdIJyQEU_xxx"
  webhook_port=8443
  webhookUrl="https://<IP_ADDRESS>:8443"
  keyStorePassword=333333
  pubcertpath="E:\\PROJECTS\\mtspredbot\\src\\main\\resources\\mts.pem"
  p12certpath="E:\\PROJECTS\\mtspredbot\\src\\main\\resources\\mts.p12"
}

In my class I have this parts of code
class telegBotWH(log    :org.slf4j.Logger,
                 config :Config)
    extends AkkaTelegramBot
    with Webhook
    with CommonFuncs
    with Commands[Future]
{

  val confPrefix :String = "teleg."
  val port :Int = config.getInt(confPrefix+"webhook_port")
  val webhookUrl = config.getString(confPrefix+"webhookUrl")
  log.info(" webhookUrl="+webhookUrl+" port="+port)

  val certPathStr :String = config.getString(confPrefix+"pubcertpath")
  log.info("Certificate Path ="+certPathStr)

  override def certificate: Option[InputFile] = Some(
    InputFile(new File(certPathStr).toPath)
  )

  override def receiveMessage(msg: Message): Future[Unit] = {
    log.info("receiveMessage method!!!")
    msg.text.fold(Future.successful(())) {
      text =>
        log.info(s"receiveMessage text OK =$text")
        Future.successful()
    }
  }

  val keystorePassword :Array[Char] = config.getString(confPrefix+"keyStorePassword").toCharArray
  override val interfaceIp: String = "<IP_ADDRESS>"

  // Set custom context.
  Http().setDefaultServerHttpContext(httpsContext(keystorePassword))

  def httpsContext(keystorePassword : Array[Char]): HttpsConnectionContext = {
    // Manual HTTPS configuration
    val password: Array[Char] = keystorePassword

    val ks: KeyStore = KeyStore.getInstance("PKCS12")
    val keystore: InputStream = new FileInputStream(config.getString(confPrefix+"p12certpath"))

    require(keystore != null, " - Keystore required!")
    ks.load(keystore, password)

    val keyManagerFactory: KeyManagerFactory = KeyManagerFactory.getInstance("SunX509")
    keyManagerFactory.init(ks, password)

    val tmf: TrustManagerFactory = TrustManagerFactory.getInstance("SunX509")
    tmf.init(ks)

    val sslContext: SSLContext = SSLContext.getInstance("TLS")
    sslContext.init(keyManagerFactory.getKeyManagers, tmf.getTrustManagers, new SecureRandom)
    val https: HttpsConnectionContext = ConnectionContext.httpsClient(sslContext)

    https
  }

  log.info("AkkaHttpClient - " + config.getString(confPrefix+"token"))
  //override
  val client = new AkkaHttpClient(config.getString(confPrefix+"token"))

...

When I run the bot in IDEA
  val bot = new telegBotWH(log, config)
  val eol = bot.run

Have output:
C:\Users\yakushev\.jdks\openjdk-15.0.2\bin\java.exe "
...
...
 mtspredbot.Main src\main\resources\control.conf
13:05:35.975 [main] INFO  mtspredbot.Main$ - ~~~~~~~~~~~~~~~~~~~~~~~~ BEGIN TELEGRAM BOT ~~~~~~~~~~~~~~~~~~~~~~~~
13:05:35.992 [main] INFO  mtspredbot.Main$ - There is external config file, path=E:\PROJECTS\mtspredbot\src\main\resources\control.conf
13:05:36.966 [main] INFO  mtspredbot.Main$ -  webhookUrl=https://<IP_ADDRESS>:8443 port=8443
13:05:36.966 [main] INFO  mtspredbot.Main$ - Certificate Path =E:\PROJECTS\mtspredbot\src\main\resources\mts.pem
13:05:37.649 [main] INFO  mtspredbot.Main$ - AkkaHttpClient - 886094130:AAENizOGvqrl7vrLVeOZwKfJdIJyQEU_xxx
13:05:38.444 [main] DEBUG o.h.common.AbstractCentralProcessor - Oracle MXBean detected.
13:05:38.553 [main] DEBUG o.d.windows.PerfCounterWildcardQuery - Localized Processor to Процессор
13:05:38.733 [main] DEBUG o.h.p.w.WindowsCentralProcessor - Initialized Processor
13:05:38.734 [main] DEBUG o.h.common.AbstractCentralProcessor - Oracle MXBean detected.
13:05:38.756 [main] DEBUG o.d.windows.PerfCounterWildcardQuery - Localized Processor to Процессор
13:05:38.797 [main] DEBUG o.h.p.w.WindowsCentralProcessor - Initialized Processor
13:05:38.804 [main] TRACE c.b.telegram.clients.AkkaHttpClient - REQUEST edb74b8e-4593-4da9-af16-08ebefa833e3 SetWebhook(https://<IP_ADDRESS>:8443,Some(Path(E:\PROJECTS\mtspredbot\src\main\resources\mts.pem)),None,None)
Press [ENTER] to shutdown the bot, it may take a few seconds...
13:05:40.868 [scala-execution-context-global-38] TRACE c.b.telegram.clients.AkkaHttpClient - RESPONSE edb74b8e-4593-4da9-af16-08ebefa833e3 true
13:05:41.035 [scala-execution-context-global-38] INFO  mtspredbot.telegBotWH - Listening on <IP_ADDRESS>:8443
[WARN] [06/22/2022 13:05:41.873] [default-akka.actor.default-dispatcher-7] [akka.actor.ActorSystemImpl(default)] Illegal request, responding with status '400 Bad Request': Unsupported HTTP method: The HTTP method started with 0x16 rather than any known HTTP method. Perhaps this was an HTTPS request sent to an HTTP endpoint?
[WARN] [06/22/2022 13:05:42.310] [default-akka.actor.default-dispatcher-21] [akka.actor.ActorSystemImpl(default)] Illegal request, responding with status '400 Bad Request': Unsupported HTTP method: The HTTP method started with 0x16 rather than any known HTTP method. Perhaps this was an HTTPS request sent to an HTTP endpoint?
[WARN] [06/22/2022 13:05:44.296] [default-akka.actor.default-dispatcher-18] [akka.actor.ActorSystemImpl(default)] Illegal request, responding with status '400 Bad Request': Unsupported HTTP method: The HTTP method started with 0x16 rather than any known HTTP method. Perhaps this was an HTTPS request sent to an HTTP endpoint?
...
each 1,2 seconds I have new message about Bad Request
...

If I check  getWebhookInfo
https://api.telegram.org/bot886094130:AAENizOGvqrl7vrLVeOZwKfJdIJyQEU_xxx/getWebhookInfo
output:
{"ok":true,"result":{"url":"https://<IP_ADDRESS>:8443","has_custom_certificate":true,"pending_update_count":3,"last_error_date":1655885301,"last_error_message":"SSL error {error:0A00010B:SSL routines::wrong version number}","max_connections":40,"ip_address":"<IP_ADDRESS>","allowed_updates":["message","callback_query"]}}

In telegram app I made chat with my bot and I see that he is receiving messages.
But there is no reaction from my code (onCommand).
Only a lot of
Illegal request, responding with status '400 Bad Request': .......
Could you help me please investigate this problem?

I don't use windows and it has been a long time since I've done a webhook with self signed certificate on this lib, could you check with https://www.ssllabs.com/ssltest/analyze.html what is the status of your certificate
My guess is that the certificate is not used by the underlying Akka server, even if you specify setDefaultServerHttpContext

Method setDefaultServerHttpContext is deprecated.
"Set context explicitly when binding", since = "10.2.0"

It looks like we can set https and context when binding at
https://github.com/bot4s/telegram/blob/master/akka/src/com/bot4s/telegram/api/WebRoutes.scala#L28 here
I forked the repository https://github.com/bot4s/telegram
Clone it to PC and open with IDEA. There is mill-s and not build.sbt
Do you have instruction (for beginners :) ) how can compile and build jar library files in IDEA?
I want try to change on
Http().newServerAt(interfaceIp, port).enableHttps(httpsContext(keystorePassword)).bindFlow(routes)

Thanks.

Yes of course, you will need mill in order to do that, I've never run it on windows, but there are some instructions here https://com-lihaoyi.github.io/mill/mill/Intro_to_Mill.html#_windows.
Then you can try to update a version to a new one in build.sc, on line 118: override def publishVersion = "HEAD_SNAPSHOT"  (this will be useful to make sure that we are using the version that you build).
Then try to run
mill __.publishM2Local __.publishLocal

after that you should be able to use your new version in your project.
However for a faster iteration, you might want to consider adding your usecase inside ~/telegram/examples/src-jvm (in a new file).
Afte that you should be able to modify the library and run the example in one run (without having to publish the artifacts in between).
Please let me know how it goes, and thank you for spending the time on that, I will try to give it a go soon, but I can't guarantee when I will find the time yet

Thanks ! That worked well (I've ran a few tests this morning)
I've made some changes and opened a PR https://github.com/AlexGruPerm/telegram/pull/1/files could you merge it to take that into account in your branch so I could then merge all those changes into this repo

I have merged PR.

Version 5.5.0 has been released and should be available soon, please tell me if that fixes your issue
Thanks for looking into that

Yes, version 5.6.0 fixed my issue. Thanks.
But I have additional questions:

May be you have telegram chat or comunity for his library?
I want study it deeper:
Use IDEA with mill
How to run test

Yes there is a telegram channel, even if pretty inactive, you can always post there: https://t.me/bot4s
I don't use IntelliJ to run my tests, however it should work out of the box....
To run tests I use
mill -j 0 -w __.test

Which will run all tests.
To run the example it's a bit more complex, but what I use is
mill __.examples.jvm[2.13.8].console

Which drops you into a console with all the classes loaded on the class path, and you can then do a
new WebhookBot("<YOUR_BOT_KEY>").run()

To start a specific bot


add City college of chicago

@AKaunas This domain is blacklisted because the college allows to register an email address there even if you are not a student of the college. If you are the student of this college, please apply with official document ("OFFICIAL DOCUMENT" tab at https://www.jetbrains.com/shop/eform/students).


Circular module dependencies (just FYI)

Maybe the following data on circular module dependencies could be useful if you're planning some refactoring:
?- {@}.
% Scanning for circular entity dependencies ...
*     Circular references:
*       database-schema
*         in file /Users/pmoura/terminus-server/library/database.pl at line 104
*         in file /Users/pmoura/terminus-server/library/schema.pl at line 32
*       database-sdk
*         in file /Users/pmoura/terminus-server/library/database.pl at line 59
*         in file /Users/pmoura/terminus-server/library/sdk.pl at line 31
*       database-triplestore
*         in file /Users/pmoura/terminus-server/library/database.pl at line 66
*         in file /Users/pmoura/terminus-server/library/triplestore.pl at line 25
*       schema-triplestore
*         in file /Users/pmoura/terminus-server/library/schema.pl at line 33
*         in file /Users/pmoura/terminus-server/library/triplestore.pl at line 21
*       validate_instance-validate_schema
*         in file /Users/pmoura/terminus-server/library/validate_instance.pl at line 32
*         in file /Users/pmoura/terminus-server/library/validate_schema.pl at line 106
*       database-schema-schema_util
*         in file /Users/pmoura/terminus-server/library/database.pl at line 104
*         in file /Users/pmoura/terminus-server/library/schema.pl at line 35
*         in file /Users/pmoura/terminus-server/library/schema_util.pl at line 35
*       database-schema-triplestore
*         in file /Users/pmoura/terminus-server/library/database.pl at line 104
*         in file /Users/pmoura/terminus-server/library/schema.pl at line 33
*         in file /Users/pmoura/terminus-server/library/triplestore.pl at line 25
*       database-sdk-woql_compile
*         in file /Users/pmoura/terminus-server/library/database.pl at line 59
*         in file /Users/pmoura/terminus-server/library/sdk.pl at line 32
*         in file /Users/pmoura/terminus-server/library/woql_compile.pl at line 34
*
% ... completed scanning for circular entity dependencies
true.

Logtalk make tool only reports two-way and three-way circular dependencies, however.

This is a lot more circularity than I'd like! I rooted out some of this ealier, but we need another go at it.

Some circularity has been removed, the remainder will stick around for now.


term-color-white does not show up at all because its foreground color is set to background

Is this on purpose?
Should it actually read
`(term-color-white   ((,class (:foreground ,foreground :background ,background))))

Created #31 in case this Is what was intended.

I'm not 100% sure. Do you have an example of when this face is used? The original color defined in term.el is:
(defface term-color-white
  '((t :foreground "white" :background "white"))
  "Face used to render white color code."
  :group 'term)

So I think that it is fine if foreground and background have the same color.


Fix SelectField label- & underlineStyle prop types.

Styles should be objects, not strings.

@hai-cea, fixed the typo and split the changes into two isolated commits.

Thanks @marnusw


feat: Use AndroidView overload which re-uses MapView to improve performance in lazy layouts

This PR uses an AndroidView overload which allows re-using of the underlying view. This improves performance substantially when using GoogleMap in a Lazy layout, like LazyColumn.
I'm sure there could be other related issues which needs to be resolved but this is a good foundation.
Please note that the dependency androidx.compose.ui:ui had to be updated to an alpha version because previous versions of AndroidView has a bug which results in the MapViews not being loaded properly while scrolling.
Also, I noted that sometimes the zoom UI component disappears which is strange...

Fixes #285 🦕

Hi @kikoso, it is enough to make onReset non-null. You can verify by commenting that line out in my PR and you will see that the views are re-created when scrolling.
It still needs some more work though, mainly the GoogleMap state should be reset (for example animations).
I'll try to make another commit or get back to you regarding this issue during this weekend.
Cheers

Upon further examination, it appears that executing a reset within onReset may not be necessary since dispositions already clear markers and halt animations, although the underlying GoogleMap's camera position state appears to be untouched.
Some other notes:

The issue concerning the zoom controls is unrelated to this PR, and appears to stem from a different source. You can reproduce on the main branch by putting a bunch of GoogleMap composables in a LazyColumn.
Additionally, version 1.6.0-alpha08 of androidx.compose.ui:ui harbors a bug leading to a crash, hence it is advisable to avoid using it.

The PR is quite ready except for the androidx.compose.ui:ui version being in alpha.

We'll wait until this feature moves out of alpha and doesn't cause crashes before we merge.

@philip-segerfast could you verify the OnIndoorStateChangeListener behavior that I mentioned earlier? I suspect it will no longer work upon reuse, because we've lost the reference to the singleton listener. I'm not 100% sure, though, because we would request a fresh GoogleMap object upon reuse.
Not sure if there is a better way to store the listener than in the MapView.tag. We would not store the MapClickListeners object, just the actual GoogleMap.OnIndoorStateChangeListener object:
https://github.com/googlemaps/android-maps-compose/blob/d14daba053a446676e37e847a06d4d405f1b0117/maps-compose/src/main/java/com/google/maps/android/compose/MapClickListeners.kt#L98-L104

I have tested to save the entire MapClickListeners object to MapView.tag and it works well. I haven't managed to make this work properly with only storing OnIndoorStateChangeListener. You also added a comment to MapClickListenerUpdater that "The mapClickListeners container object is not allowed to ever change" which tells me that it makes sense to store this object in the tag.
Then if this node tree is reused by another composable then it just changes the state values of the MapClickListenerUpdater.
Is there a particular reason why you didn't want to store the entire MapClickListeners singleton object?

There is a bug where if you scroll too fast the map lifecycle callbacks are not invoked properly and they break.

@philip-segerfast can you put the changes regarding ComposeNode -> ReusableComposeNode, and Composition -> ReusableComposition in a separate PR, please? They can be independent of the AndroidView changes, and this PR is getting too big for me to confidently review.
I'm not convinced that those will help gain much performance, either; I'd think that 95% of the initial composition work has to be redone upon reuse, because it's all about slots (which are discarded upon reuse) and manipulating the GoogleMap object.

I have tested to save the entire MapClickListeners object to MapView.tag and it works well. I haven't managed to make this work properly with only storing OnIndoorStateChangeListener. You also added a comment to MapClickListenerUpdater that "The mapClickListeners container object is not allowed to ever change" which tells me that it makes sense to store this object in the tag.

We don't want the mapClickListeners to be singleton for a given GoogleMap() composition, because it leads to funny Compose data lifetime & change logic. It's hard to see without digging all the way down to the innocuous looking object : IndoorStateChangeListener and how it is used exactly.

Then if this node tree is reused by another composable then it just changes the state values of the MapClickListeners object.
Is there a particular reason why you didn't want to store the entire MapClickListeners singleton object?

You can store MapClickListeners, but it does not buy you anything, and you still have to null out all the callbacks to prevent leaks.
Bit surprised there is no issue with IndoorStateChangeListener upon reuse.

Hi @bubenheimer. Sorry for the delay. I've been busy with other things the last few weeks.
I'll start focusing more on this now again.
I will respond to your comments.

Thanks @philip-segerfast I hope to find some time to review over the coming week

You're welcome, I still have a bunch of work left though. I converted this PR to a draft.

I don't find any issues with the OnIndoorStateChangeListener. It seems to work fine to register/unregister the listener multiple times.

I don't find any issues with the OnIndoorStateChangeListener. It seems to work fine to register/unregister the listener multiple times.

Thanks for checking that. I've confirmed in my own testing now that multiple registration of different listeners works fine at this time, with both legacy and latest renderer.

Sorry for the delay, @bubenheimer. Now finally I'm back working on this.
Please tell me if you have any other thoughts.

This latest commit uses a custom approach for moving between lifecycle states, inspired by LifecycleRegistry.sync().

Thanks for the review and everything in between, @bubenheimer!
Don't hesitate to request more changes if there is anything.

Looks great! LGT @kikoso

@dkhawk Would you look at the PR and include it in the plans please?

@dkhawk Would you look at the PR and include it in the plans please?

This is a great change!  I spent some time with the demo activity and it works pretty well, except I can't scrolling the maps vertically.  That might be nice to look into.  Barring that we should be able to merge in this change into the 5.1.x release which should be soon.

Hi, @dkhawk! I made the maps pannable in the demo if you first pan them horizontally so that you still can easily scroll the list. Is this enough for you or would you like the maps to completely intercept the touch events from the LazyColumn like in MapInColumnActivity?

@dkhawk friendly reminder about this PR (current 6.0.0 :) )
Also, we often use GoogleMap in LazyColumn and have encountered some performance issues (like oom).
Looking forward to these edits in the hope that they will improve performance

Surely!
I'll also make sure to fix the conflicts soon so that it's ready to be merged again.

Great job! We will also benefit greatly if this PR gets merged soon so looking forward to it. 👏🏼

@philip-segerfast this is a great change.  Thanks so much for your contribution.

Thanks, you're all welcome!

Local tests show great results!
Thank you very much, @philip-segerfast

Many thanks to @bubenheimer for reviewing and helping so much too!


Add Passive Seismic Obs type to vocab

Hi team. Seeking review to add new obs type, passive seismic.  Please check for ttl rules on the narrower / broader concepts on seismic.  I think i have done this right.

Requires a full stop on Lines 673 and 686


Include only bip39 english wordlists to bundle

This will reduce the size of the bundle a little.

@hanjukim please pull from upstream master, I updated the test codes to be compatible with #13 .

ok


RLMResults indexOfObjectWhere method returns wrong and huge id.

As in title.

Is that huge number is<PHONE_NUMBER>854775807 or<PHONE_NUMBER>? If so, that is NSNotFound. It means that no objects were found in the results.

I.e. I have 3 objects in RLMResults object and the number is i.e.<PHONE_NUMBER>3709551615

@saltwat5r Could you please share your model definitions and the code around query?

Closing due to inactivity. Will reopen if @saltwat5r can post steps for our to reproduce and troubleshoot.


TF-TRT 3D pooling

Allow conversion of AvgPool3D and MaxPool3D ops for TensorRT offload. TensorRT 6+ supports these operators. In medical imaging applications 3D convolutions are often paired with 3D pooling. Since https://github.com/tensorflow/tensorflow/commit/a2fa0c58dcd81307a3eac76ccc2b81a42b71583c 3D convolutions can be offloaded to TRT 6+ and this change allows offloading 3D pooling too. This PR allows to run 3D U-Nets through TF-TRT.

Thanks @ralovich for the PR.
I only had a small comment.

Dear https://github.com/aaroey and https://github.com/pooyadavoodi, all points should be addressed now. Could you please verify?


Gradle plugin warning from GenerateClientStubsFromDslTask

Describe the bug
One uses org.springframework.cloud.contract Gradle plugin.
Invoking generateClientStubs task with Gradle version 7.1 you will receive following warning
> Task :xxx:generateClientStubs
The JavaExecHandleBuilder.setMain(String) method has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the mainClass property instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.4.2/userguide/upgrading_version_7.html#java_exec_properties

Source of the issue (spring-cloud-contract-gradle-plugin): https://github.com/spring-cloud/spring-cloud-contract/blob/8faa11750797c6350218ae444630c73b85c55f27/spring-cloud-contract-tools/spring-cloud-contract-gradle-plugin/src/main/java/org/springframework/cloud/contract/verifier/plugin/GenerateClientStubsFromDslTask.java#L94
See deprecation warning since Gradle 7.1 for JavaExec task

API Documentation: https://docs.gradle.org/7.1/dsl/org.gradle.api.tasks.JavaExec.html#org.gradle.api.tasks.JavaExec:main
Release Notes, Deprecations: https://docs.gradle.org/7.1/userguide/upgrading_version_7.html#java_exec_properties
Gradle Issue: https://github.com/gradle/gradle/issues/17048
Gradle commit: https://github.com/gradle/gradle/commit/5dc1bf4d3fc76791fb720d15a6d5d105e77bce48

Sample
Basically any Gradle (using Gradle 7.1 and newer) project with stubs defined. Will create sample project if necessary.

fixed via https://github.com/spring-cloud/spring-cloud-contract/pull/1774


Store PGP Keys in db

It would be so nice if you can add a feature to store PGP Keys in the db.
Just optimal, for security reasons.
Edit: I mean of course the public keys.

A warning about security concerns can be a good way to inform users about the risk they take by pushing their key on the server.
Even if most of GPG users are already aware of such concerns…

I agree, but the storing of the private keys on the server should be discouraged (but allowed).
News?

Sorry but just with a closing, will the question not answered...
Can the write please make a statement?

Une piste : https://github.com/chtixof/pgpback_ynh


Add renatoso-GitHub's file

created a branch, created a file and made a commit, and opened a pull request

comment

dddddd

created a branch, created a file and made a commit, and opened a pull request


Does not work (anymore)?

Hey this extension seems great, but it does not seem to work, perhaps due to copilot updates.
 Went to VScode Extensions marketplace, installed this extension, restarted VSCode, copilot keeps babbling into my comments. No further steps taken on my end

Even this catch all has no effect on copilot:
    "disable-copilot-comment-completions.inhibitMatchers": [
        ".*",
    ],

Hey, I had some time earlier this week to take another look at the (admittedly sorry) state of the code base for this extension and ironed out the bugs causing this issue, as well as adding some features from other open issues in this repo. I'll be pushing the changes live soon fellas, sorry for the wait and thanks for the bug reports :)

Thanks for making copilot usable! This should really be a built-in feature, and applies to more than just comments. Writing strings for error messages or logs is just as frustrating, being able to control exactly when inline suggestions happen is a must have IMO.
After randomly flipping switches and turning dials in the settings, I was able to get my instance working. Not sure what the secret sauce was but this was my final settings.json:
  "github.copilot.enable": {
    "*": true,
    "yaml": false,
    "plaintext": false,
    "markdown": false
  },
  "disable-copilot-comment-completions.active": true,
  "disable-copilot-comment-completions.inhibitMatchers": [
    "\\bcomment\\b"
  ],
  "github.copilot.inlineSuggest.enable": true

Actually, I believe the secret sauce has something to do with the project I have opened. When I open a Remote-SSH workspace it doesn't work, but opening a local folder does.

Worry not, the bugs that were causing this Extension's less-than-satisfactory success rate have already been solved (locally). Whatever arcane jiu-jitsu you're currently trying to deduce as to being responsible for the extension suddenly working for you isn't necessary, just hold tight and I'll have a new release live for you

bump

Just pushed version 2.0.0 live. Not sure when it will update on the VSCode Extension Marketplace, but it should be within the next few minutes or so. Closing this issue, as the bugs reported here are all fixed (locally, that is, at least 😅) in this new release. If you folks encounter any new issues that I missed or other weird behavior please open new issues accordingly and I will patch them ASAP.
Thanks for the reports, and moreover the enthusiasm in my little extension 🤗
@ferm10n @Colossus @Epskampie

The problem for me was that I needed to type "//" and then SPACE for it to activate (perhaps even waiting a few millis before pressing space). Keep your eye on "Suggestions enabled/disabled" on the bottom right. Would be good if that was fixed, but overall a very useful extension.

The problem for me was that I needed to type "//" and then SPACE for it to activate (perhaps even waiting a few millis before pressing space). Keep your eye on "Suggestions enabled/disabled" on the bottom right. Would be good if that was fixed, but overall a very useful extension.

This delay you're experiencing is intentional, since the extension used to query the textmate tokens at the cursor position requires a full re-parse of the document each time it's queried. Without this delay (or more accurately, throttle), the extension could get laggy and unresponsive due to having to parse the entire document each time the cursor position moves (aka every key stroke).
You can change this delay manually if you desire, though. The setting that controls it is disable-copilot-comment-completions.eventProcessingThrottleDelayMs.

Thanks for the reply. You should still either fix this or make this very clear on the readme because I (along with a few others it seems) thought the extension simply didn't work and had to trawl through settings for about 20 mins before realising. Most people will just type // and see a completion and then give up.
Is it possible to query last key pressed on each keystroke? I.e. if it's a / or a * then bypass the throttle and re-parse the tokens?

Thanks for the reply. You should still either fix this or make this very clear on the readme because I (along with a few others it seems) thought the extension simply didn't work and had to trawl through settings for about 20 mins before realising. Most people will just type // and see a completion and then give up.
Is it possible to query last key pressed on each keystroke? I.e. if it's a / or a * then bypass the throttle and re-parse the tokens?

In the next update I will review the default settings and make sure that a reasonable value is set for this option, I'm not sure what it's set to by default currently but if the extension was so-so for you until you manually changed it that tells me I probably did something boneheaded with it lol.
As for your suggestion, the intent of the extension is to be language agnostic-- different languages have different comment syntaxes that I would have to account for if I was implementing your idea there. Additionally, not everyone uses this extension to silence copilot in comments (despite the naming/branding of the extension). Some people use it to disable suggestions while editing a git commit file, for example.
Glad that the extension is working for you, though-- even after some frustrating configuration issues. I will revisit the setting/readme when I next work on this project to address your concerns.


docs: fix link to configuration doc

Just fixing the link to configuration docs.

LGTM

After thought - we need an automated process for catching these.


How static constructor is used to write log files

If Static Constructor runs only once and that too when the first object of the class gets created or any before any static member gets referenced, then how would a static constructor be able to write logs in one shot?

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

ID: aa3ed1c5-1f79-9234-beec-b5771c3fb3c0
Version Independent ID: ac4f6361-70a7-fb43-101e-c12044f60896
Content: Static Constructors - C# Programming Guide
Content Source: docs/csharp/programming-guide/classes-and-structs/static-constructors.md
Product: dotnet-csharp
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

This kind of specific question would be more likely to get a specific response on a forum like, such as Stack Overflow.
Closing.

@BillWagner
Maybe, but it does specifically relate to the "typical use of static constructors" mentioned in the article, for which no explanation is given.


Docs: Add BigQuery Data Transfer Service Dagster asset

What is it?
How can we declare a new BigQuery DTS asset if we want to copy a new BigQuery dataset?

Pending this issue https://github.com/opensource-observer/oso/issues/1311

https://github.com/opensource-observer/oso/pull/1737
Done

Related
https://github.com/opensource-observer/oso/pull/1731