Support delegate_to: for zone functions

Attempting to use the delegate_to: directive to have the zone module invoke the API transactions from a host remote from the PowerDNS does not appear to work.  Looking at debug trace, the API connection attempts to connect to the delegated host, not the original target host.

Thanks for the issue report! Can you provide an example task block showing how you are invoking the module?

If you could also attach a short section of Ansible output demonstrating the failure, that would be helpful too.

- name: create master zones   kpfleming.powerdns_auth.zone:     name: "{{ item.zone }}"     state: "{{ item.state }}"     api_key: "{{ api_key }}"     properties:       kind: "{{ item.mode }}"       nameservers: "{{ domains[item.zone].nameservers }}"       soa:         mname: "{{ domains[item.zone].master }}"         rname: "{{ domains[item.zone].hostmaster }}"     metadata:       allow_axfr_from: ['AUTO-NS']       axfr_source: "{{ pdns_ipaddr }}"       # axfr_master_tsig: TODO       # tsig_allow_axfr: TODO   loop: "{{ zones }}"   delegate_to: "{{ bastion_host }}"
The host running PDNS (and for which the play is being executed) is <IP_ADDRESS>, the delegate_to: host (ie bastion_host)  is <IP_ADDRESS> (seen below in connection error output).
(relevant) playbook run output:
`TASK [powerdns : create master zones] ******************************************************************************************************************
task path: /home/btsomogyi/code/seal/seal_infra/roles/internal/powerdns/tasks/main.yml:8
Wednesday 08 February 2023  00:53:18 -0500 (0:00:07.740)       0:00:11.662 ****
<pc1.r1.u37.site0> Attempting python interpreter discovery
<<IP_ADDRESS>> ESTABLISH SSH CONNECTION FOR USER: sealadmin
<<IP_ADDRESS>> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=360s -o StrictHostKeyChecking=no -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User=""' -o ConnectTimeout=600 -o 'ControlPath="/home/btsomogyi/.ansible/cp/71be27c830"' <IP_ADDRESS> '/bin/sh -c '"'"'echo PLATFORM; uname; echo FOUND; command -v '"'"'"'"'"'"'"'"'python3.11'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.10'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.9'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.8'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.5'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/bin/python3'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/libexec/platform-python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/bin/python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python'"'"'"'"'"'"'"'"'; echo ENDFOUND && sleep 0'"'"''
<<IP_ADDRESS>> (0, b'PLATFORM\nLinux\nFOUND\n/usr/bin/python3.8\n/usr/bin/python3\nENDFOUND\n', b"OpenSSH_8.9p1 Ubuntu-3ubuntu0.1, OpenSSL 3.0.2 15 Mar 2022\r\ndebug1: Reading configuration data /home/btsomogyi/.ssh/config\r\ndebug1: /home/btsomogyi/.ssh/config line 1: Applying options for \r\ndebug1: /home/btsomogyi/.ssh/config line 10: Applying options for 10.0.\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for \r\ndebug2: resolve_canonicalize: hostname <IP_ADDRESS> is address\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home//.ssh/known_hosts'\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home//.ssh/known_hosts2'\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 406845\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
<<IP_ADDRESS>> ESTABLISH SSH CONNECTION FOR USER:
<<IP_ADDRESS>> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=360s -o StrictHostKeyChecking=no -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User=""' -o ConnectTimeout=600 -o 'ControlPath="/home//.ansible/cp/71be27c830"' <IP_ADDRESS> '/bin/sh -c '"'"'/usr/bin/python3.8 && sleep 0'"'"''
<<IP_ADDRESS>> (0, b'{"platform_dist_result": [], "osrelease_content": "NAME=\"Ubuntu\"\nVERSION=\"20.04.5 LTS (Focal Fossa)\"\nID=ubuntu\nID_LIKE=debian\nPRETTY_NAME=\"Ubuntu 20.04.5 LTS\"\nVERSION_ID=\"20.04\"\nHOME_URL=\"https://www.ubuntu.com/\\"\\nSUPPORT_URL=\\"https://help.ubuntu.com/\\"\\nBUG_REPORT_URL=\\"https://bugs.launchpad.net/ubuntu/\\"\\nPRIVACY_POLICY_URL=\\"https://www.ubuntu.com/legal/terms-and-policies/privacy-policy\\"\\nVERSION_CODENAME=focal\\nUBUNTU_CODENAME=focal\\n"}\n', b"OpenSSH_8.9p1 Ubuntu-3ubuntu0.1, OpenSSL 3.0.2 15 Mar 2022\r\ndebug1: Reading configuration data /home//.ssh/config\r\ndebug1: /home//.ssh/config line 1: Applying options for \r\ndebug1: /home//.ssh/config line 10: Applying options for 10.0.\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for \r\ndebug2: resolve_canonicalize: hostname <IP_ADDRESS> is address\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home//.ssh/known_hosts'\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home//.ssh/known_hosts2'\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 406845\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
Using module file /home//.ansible/collections/ansible_collections/kpfleming/powerdns_auth/plugins/modules/zone.py
Pipelining is enabled.
<<IP_ADDRESS>> ESTABLISH SSH CONNECTION FOR USER:
<<IP_ADDRESS>> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=360s -o StrictHostKeyChecking=no -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User=""' -o ConnectTimeout=600 -o 'ControlPath="/home/btsomogyi/.ansible/cp/71be27c830"' <IP_ADDRESS> '/bin/sh -c '"'"'/usr/bin/python3 && sleep 0'"'"''
<<IP_ADDRESS>> (1, b'', b'OpenSSH_8.9p1 Ubuntu-3ubuntu0.1, OpenSSL 3.0.2 15 Mar 2022\r\ndebug1: Reading configuration data /home//.ssh/config\r\ndebug1: /home//.ssh/config line 1: Applying options for \r\ndebug1: /home//.ssh/config line 10: Applying options for 10.0.\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug2: resolve_canonicalize: hostname <IP_ADDRESS> is address\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home//.ssh/known_hosts'\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home//.ssh/known_hosts2'\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 406845\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\nTraceback (most recent call last):\n  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn\n    conn = connection.create_connection(\n  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 84, in create_connection\n    raise err\n  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 74, in create_connection\n    sock.connect(sa)\nConnectionRefusedError: [Errno 111] Connection refused\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen\n    httplib_response = self._make_request(\n  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 387, in _make_request\n    conn.request(method, url, **httplib_request_kw)\n  File "/usr/lib/python3.8/http/client.py", line 1256, in request\n    self._send_request(method, url, body, headers, encode_chunked)\n  File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request\n    self.endheaders(body, encode_chunked=encode_chunked)\n  File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders\n    self._send_output(message_body, encode_chunked=encode_chunked)\n  File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output\n    self.send(msg)\n  File "/usr/lib/python3.8/http/client.py", line 951, in send\n    self.connect()\n  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 187, in connect\n    conn = self._new_conn()\n  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 171, in _new_conn\n    raise NewConnectionError(\nurllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9aa0cf9250>: Failed to establish a new connection: [Errno 111] Connection refused\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send\n    resp = conn.urlopen(\n  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen\n    retries = retries.increment(\n  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 436, in increment\n    raise MaxRetryError(_pool, url, error or ResponseError(cause))\nurllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8081): Max retries exceeded with url: /api/docs (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9aa0cf9250>: Failed to establish a new connection: [Errno 111] Connection refused'))\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File "/home/sealadmin/.local/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper\n    return func(self, *args, **kwargs)\n  File "/home/sealadmin/.local/lib/python3.8/site-packages/bravado/http_future.py", line 291, in _get_incoming_response\n    inner_response = self.future.result(timeout=timeout)\n  File "/home/sealadmin/.local/lib/python3.8/site-packages/bravado/requests_client.py", line 266, in result\n    response = self.session.send(\n  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send\n    r = adapter.send(request, **kwargs)\n  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send\n    raise ConnectionError(e, request=request)\nrequests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8081): Max retries exceeded with url: /api/docs (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9aa0cf9250>: Failed to establish a new connection: [Errno 111] Connection refused'))\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File "", line 107, in \n  File "", line 99, in _ansiballz_main\n  File "", line 47, in invoke_module\n  File "/usr/lib/python3.8/runpy.py", line 207, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code\n    _run_code(code, mod_globals, init_globals,\n  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code\n    exec(code, run_globals)\n  File "/tmp/ansible_kpfleming.powerdns_auth.zone_payload_0khvq7c6/ansible_kpfleming.powerdns_auth.zone_payload.zip/ansible_collections/kpfleming/powerdns_auth/plugins/modules/zone.py", line 1464, in \n  File "/tmp/ansible_kpfleming.powerdns_auth.zone_payload_0khvq7c6/ansible_kpfleming.powerdns_auth.zone_payload.zip/ansible_collections/kpfleming/powerdns_auth/plugins/modules/zone.py", line 1248, in main\n  File "/home//.local/lib/python3.8/site-packages/bravado/client.py", line 98, in from_url\n    spec_dict = loader.load_spec(spec_url)\n  File "/home//.local/lib/python3.8/site-packages/bravado/swagger_model.py", line 101, in load_spec\n    response = request(\n  File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 270, in result\n    incoming_response = self._get_incoming_response(timeout)\n  File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 126, in wrapper\n    self.future._raise_connection_error(exception)\n  File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 91, in _raise_connection_error\n    self._raise_error(BravadoConnectionError, 'ConnectionError', exception)\n  File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 79, in _raise_error\n    six.reraise(\n  File "/usr/lib/python3/dist-packages/six.py", line 702, in reraise\n    raise value.with_traceback(tb)\n  File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper\n    return func(self, args, **kwargs)\n  File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 291, in _get_incoming_response\n    inner_response = self.future.result(timeout=timeout)\n  File "/home//.local/lib/python3.8/site-packages/bravado/requests_client.py", line 266, in result\n    response = self.session.send(\n  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send\n    r = adapter.send(request, *kwargs)\n  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send\n    raise ConnectionError(e, request=request)\nbravado.http_future.RequestsFutureAdapterConnectionError\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n')
<<IP_ADDRESS>> Failed to connect to the host via ssh: OpenSSH_8.9p1 Ubuntu-3ubuntu0.1, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /home//.ssh/config
debug1: /home//.ssh/config line 1: Applying options for *
debug1: /home//.ssh/config line 10: Applying options for 10.0.
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname <IP_ADDRESS> is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home//.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home//.ssh/known_hosts2'
debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 406845
debug3: mux_client_request_session: session request sent
debug1: mux_client_request_session: master session id: 2
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 387, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9aa0cf9250>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8081): Max retries exceeded with url: /api/docs (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9aa0cf9250>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper
return func(self, *args, **kwargs)
File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 291, in _get_incoming_response
inner_response = self.future.result(timeout=timeout)
File "/home/sealadmin/.local/lib/python3.8/site-packages/bravado/requests_client.py", line 266, in result
response = self.session.send(
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8081): Max retries exceeded with url: /api/docs (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9aa0cf9250>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 107, in
File "", line 99, in _ansiballz_main
File "", line 47, in invoke_module
File "/usr/lib/python3.8/runpy.py", line 207, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/tmp/ansible_kpfleming.powerdns_auth.zone_payload_0khvq7c6/ansible_kpfleming.powerdns_auth.zone_payload.zip/ansible_collections/kpfleming/powerdns_auth/plugins/modules/zone.py", line 1464, in
File "/tmp/ansible_kpfleming.powerdns_auth.zone_payload_0khvq7c6/ansible_kpfleming.powerdns_auth.zone_payload.zip/ansible_collections/kpfleming/powerdns_auth/plugins/modules/zone.py", line 1248, in main
File "/home//.local/lib/python3.8/site-packages/bravado/client.py", line 98, in from_url
spec_dict = loader.load_spec(spec_url)
File "/home//.local/lib/python3.8/site-packages/bravado/swagger_model.py", line 101, in load_spec
response = request(
File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 270, in result
incoming_response = self._get_incoming_response(timeout)
File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 126, in wrapper
self.future._raise_connection_error(exception)
File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 91, in _raise_connection_error
self._raise_error(BravadoConnectionError, 'ConnectionError', exception)
File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 79, in _raise_error
six.reraise(
File "/usr/lib/python3/dist-packages/six.py", line 702, in reraise
raise value.with_traceback(tb)
File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper
return func(self, *args, **kwargs)
File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 291, in _get_incoming_response
inner_response = self.future.result(timeout=timeout)
File "/home//.local/lib/python3.8/site-packages/bravado/requests_client.py", line 266, in result
response = self.session.send(
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
bravado.http_future.RequestsFutureAdapterConnectionError
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 1
failed: [pc1.r1.u37.site0 -> pc1.r2.u37.site0(<IP_ADDRESS>)] (item={'zone': 'internal.sealstorage.tech.', 'mode': 'Master', 'state': 'present'}) => {
"ansible_loop_var": "item",
"changed": false,
"item": {
"mode": "Master",
"state": "present",
"zone": "internal.sealstorage.tech."
},
"rc": 1
}
MSG:
MODULE FAILURE
See stdout/stderr for the exact error
MODULE_STDERR:
OpenSSH_8.9p1 Ubuntu-3ubuntu0.1, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /home//.ssh/config
debug1: /home//.ssh/config line 1: Applying options for *
debug1: /home//.ssh/config line 10: Applying options for 10.0.*
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname <IP_ADDRESS> is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home//.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home//.ssh/known_hosts2'
debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 406845
debug3: mux_client_request_session: session request sent
debug1: mux_client_request_session: master session id: 2
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 387, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9aa0cf9250>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8081): Max retries exceeded with url: /api/docs (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9aa0cf9250>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper
return func(self, *args, **kwargs)
File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 291, in _get_incoming_response
inner_response = self.future.result(timeout=timeout)
File "/home//.local/lib/python3.8/site-packages/bravado/requests_client.py", line 266, in result
response = self.session.send(
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8081): Max retries exceeded with url: /api/docs (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9aa0cf9250>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 107, in
File "", line 99, in _ansiballz_main
File "", line 47, in invoke_module
File "/usr/lib/python3.8/runpy.py", line 207, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/tmp/ansible_kpfleming.powerdns_auth.zone_payload_0khvq7c6/ansible_kpfleming.powerdns_auth.zone_payload.zip/ansible_collections/kpfleming/powerdns_auth/plugins/modules/zone.py", line 1464, in
File "/tmp/ansible_kpfleming.powerdns_auth.zone_payload_0khvq7c6/ansible_kpfleming.powerdns_auth.zone_payload.zip/ansible_collections/kpfleming/powerdns_auth/plugins/modules/zone.py", line 1248, in main
File "/home//.local/lib/python3.8/site-packages/bravado/client.py", line 98, in from_url
spec_dict = loader.load_spec(spec_url)
File "/home//.local/lib/python3.8/site-packages/bravado/swagger_model.py", line 101, in load_spec
response = request(
File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 270, in result
incoming_response = self._get_incoming_response(timeout)
File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 126, in wrapper
self.future._raise_connection_error(exception)
File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 91, in _raise_connection_error
self._raise_error(BravadoConnectionError, 'ConnectionError', exception)
File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 79, in _raise_error
six.reraise(
File "/usr/lib/python3/dist-packages/six.py", line 702, in reraise
raise value.with_traceback(tb)
File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper
return func(self, *args, **kwargs)
File "/home//.local/lib/python3.8/site-packages/bravado/http_future.py", line 291, in _get_incoming_response
inner_response = self.future.result(timeout=timeout)
File "/home//.local/lib/python3.8/site-packages/bravado/requests_client.py", line 266, in result
response = self.session.send(
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
bravado.http_future.RequestsFutureAdapterConnectionError
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 1
`

When no api_url is specified in the role parameters, it defaults to the pdns-auth default port on localhost. That means the module will attempt to connect to the pdns-auth endpoint on the machine where the module is running; it has no way to know that the task was delegated in Ansible and is 'targeted' at a different host. I suspect that adding something like this would work:
  api_url: "{{ 'http://` ~ ansible_default_ipv4['address'] ~ ':8081' }}"

got it - this api_url approach works in my situation (no connectivity between ansible target host and powerdns container deployment).  TYVM!


Pipelines not labeled and cannot be filtered in Tekton dashboard

The Tekton Dashboard only allows filtering of pipelines by using labels (See
) and the Kabanero pipelines have no labels (

), so it is impossible to filter them.

@kvijai82 - FYI, I am moving this issue to the Backlog pipeline.

@nastacio what labels would you suggest we add to the pipelines?  Thanks.

Off the top of my head:
kabanero
 : java, nodejs, ...
: spring-boot, open-liberty, express, ...
: build, push, deploy
Ideally, tekton dashboard should allow filtering by name too, since a lot of these labels are in the pipeline name.


Lines not drawn correctly when rotating

I run the app in portrait mode. Works fine.
http://www.studiomagnolia.it/tmp/photo1.PNG
I rotate and the last line of the last cell is not drawn
http://www.studiomagnolia.it/tmp/photo2.PNG
If you do the opposite (first landscape and then portrait) almost the same happens. One line is not dranw.
I verified the same behavior in your ImageDemo example.

Closing as invalid (original images missing, no correspondence).  Feel free to re-open this issue. :)


create showcase section

A place for mentors and mentee's to showcase projects
TODO

[ ] Convert Blog nav link to media nav link
[ ] Make tabular nav with options

[ ] Blog tab
[ ] Showcase tab

[ ] Finalize fields
[ ] Start creating content section
[ ] Start creating stylesheets

Fields

[ ] Source code link
[ ] Demo (static web projects)
[ ] Content/writeup section
[ ] Author taxonomy

Horizontal scroll, can use lightbox when clicking on preview


ErrorLogging when HereApiKey not found

I love it that the container starts now, when the file isn't there. Let's clean this up though.
Readme entry is still missing - let's add a line to that too.


[enhancement] helm values for kubearmor relay stdout env

Purpose of PR?:
Fixes #1469
Does this PR introduce a breaking change?
NA
If the changes in this PR are manually verified, list down the scenarios covered::
Updated the helm chart values.yaml and deployment.yaml to include the required env variables automatically in the karmor relay server deployment.
Additional information for reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs
NA
Checklist:

[x] Bug fix. Fixes #1469
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected): NA
[x] This change requires a documentation update:  NA
[x] PR Title follows the convention of  <type>(<scope>): <subject>: NA
[x] Commit has unit tests: NA
[x] Commit has integration tests: NA

Hi @VedRatan the PR LGTM :+1: , please squash the commits. thanks

cc @rksharma95

@DelusionalOptimist can we merge this PR? do you want to have these configurations with KubeArmorConfig CR handled with this PR?

cc @DelusionalOptimist @rksharma95

any review here @DelusionalOptimist @daemon1024 ?

Thanks @DelusionalOptimist :)


add dynamic-linking feature

I seem to need this to build a package on nixos.

nixos fancy :D

could you add a note in the doc about this feature flag as well?

could you add a note in the doc about this feature flag as well?

Sure. In the cargo doc or https://github.com/delta-io/kafka-delta-ingest/blob/main/doc/DESIGN.md ?

cargo doc would be better

cargo doc would be better

Done. Feel free to suggest better wordings.

Any progress on the review side :pray: ?

Thanks @bbigras !

Thanks!


✨ Update self-references for ks/ks release 0.23.0-alpha.1

Summary
This PR updates the self-references in preparation for release 0.23.0-alpha.1.
This PR also contributes to the campaign of washing the word "stable" out of our mouths.
Related issue(s)
Fixes #

/cc @pdettori
/cc @ezrasilvera
/cc @vMaroon
/cc @nirrozenbaum
/cc @francostellari

/lgtm

/approve


Objects with a field of a conditional type that resolves to never are required

Search Terms

never conditional type undefined
Suggestion

With an interface like this:
interface A<T> {
	n: T extends number ? number : never
	s: T extends string ? string : never
}

this doesn't compile:
const a: A<string> = {
	s: "blah"
}

The type checker still requires the n field, even though it should be never. In other words, as it stands, you can't create an object of this type (as far as I know). My suggestion is to take care of this case and allow this construct.
I thought this worked in some earlier (not too recent) version of TypeScript. I remember that even VS code knew that it shouldn't suggest n in this example. It now does suggest the option. In actual code where we previously used something like this, the fields are optional, which is still working. In the above case, I need the field to be required.
Since I'm apparently not sure if it's a regression or intended behaviour, I'm posting this as a feature request.
Use Cases

We would use this feature for objects like the above where some fields are required only if some type parameter has some type. That would in our case usually be objects of a more declarative nature, such as configs or options objects (in case a function would otherwise have too many arguments).
The above case is solvable, as suggested on the TS site (code copied from there):
type BoxedValue<T> = { value: T };
type BoxedArray<T> = { array: T[] };
type Boxed<T> = T extends any[] ? BoxedArray<T[number]> : BoxedValue<T>;

but for a larger number of fields and/or type parameters, this explodes and leads to more and more code duplication.
Another solution would be to create multiple interfaces and let them extend each other. That feels more like the Java way of doing things.
Maybe Pick offers another way out, but that would still require additional boiler plate which in my opinion shouldn't be necessary.
Examples

This is part of our project that currently doesn't work:
export interface ModuleConfig<T, M extends Mutability> {
	readonly path: Path
	readonly dataSource?: DataSource<T>
	readonly rules: M extends Mutability.ENABLED ? ObjectRules<T> : never
}

The rules field is always required at the moment.
Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

Some might use the never type in a prop as signaling that the entire type cannot be constructed. And, in general, that's what never means

You can easily apply this to your own types already if you want to:
Playground

As @AnyhowStep mentioned, an object with a never property can't be constructed. @nmain 's suggestion would be the correct way to approach this -- you could also use a different signaling type if you wanted.

Thanks for your suggestion @nmain, I'll give that a try.

@AnyhowStep @RyanCavanaugh Not sure how it was back then, but at least nowadays objects with a never property can be constructed just fine.
interface A {
  a: string;
  b: never;
}

const a: A = {
  a: "abc",
  get b(): never { throw new Error(); }
};


Release

Codecov Report

Merging #1029 into v0.12.x will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             v0.12.x    #1029   +/-   ##
==========================================
  Coverage      81.81%   81.81%
  Complexity      1139     1139
==========================================
  Files            181      181
  Lines           5324     5324
  Branches         499      499
==========================================
  Hits            4356     4356
  Misses           838      838
  Partials         130      130

Impacted Files
Coverage Δ
Complexity Δ

...pencensus/common/OpenCensusLibraryInformation.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

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 f1bb463...1589300. Read the comment docs.


Mockup for Admin and User Login

This Diagram demonstrates the paths for users and admins

Admin Workflow
Flow Description
Admins are responsible for overseeing platform activities, managing events, handling sponsor interactions, and monitoring user participation. They have exclusive access to advanced management tools not visible to regular users or sponsors.
Updated Admin Workflow Diagram
1.	Login Page
Admin enters credentials (email/password/wallet).
Authentication system verifies admin credentials.
Returning users log in with existing credentials.
Once They Login (Homepage, Dashboard, and Settings are the header)
2.	Home:
Displays a summary of platform stats:
Total events managed.
Total active users.
Engagement metrics (user participation, completed quests).
3.	Dashboard
Event Definition & Setup
User Registration & Participation
Event Completion Check
Reward Distribution
Event Admin Functions
Quest Definition & Setup
Quest Event Management
User Admin Functions
User Quest Event Management
Rewards Admin Management
Point System & Leaderboard
Check Out & Redeem
4.	Settings
Manage Account settings, access permissions, and logout options
User Workflow
Flow Description
Users interact with SideQuest by joining events, completing quests, earning rewards, and engaging with the community. They do not have access to event creation or sponsor management.
Updated User Workflow Diagram
1.	Registration/Login Page
New users sign up (email/username/password/wallet).
Returning users log in with existing credentials.
Once They Login (Homepage, Dashboard, and Settings are the header)
2.	Homepage
Displays a personalized feed of available quests and featured events.
3.	Dashboard
Quest Interaction: Users can browse, filter, and join events.
View a list of ongoing, completed, or new quests.
Detailed descriptions of each quest (requirements, rewards).
Point System & Leaderboard
View earned rewards (e.g., tokens, in-app badges).
Redeem rewards via connected wallets or app integrations.
Community Engagement
Participate in event-specific chats or discussion forums.
4.	Settings
Update account preferences, connect wallets, or log out.

Autonomous AI Agent Network For The World
Replace with: “Empowering Web3 Communities Through Interactive Event Experiences”
———————————————————————————————————
Many people have expressed a desire for democratic governance of systemically-important AIs that we will depend on; cryptographic and blockchain-based techniques could be a path toward doing that.
Vitalik Buterin
Co-founder of Ethereum
Replace with: “Empowering communities to connect, engage, and earn through gamified Web3 experiences, SideQuest leverages blockchain technology to revolutionize event participation and decentralized collaboration.” The Founding Team of Side Quest
————————————————————————————————————
We will still need to include the other two boxes one for the updates to which we will add in actual details of the updates and the bottom box is where we will add in the details from our newsletter.
————————————————————————————————————-
Understanding SideQuest
“Empowering Community Engagement Through Web3 Innovation”
SideQuest is revolutionizing how people experience events by integrating blockchain technology to foster interaction, collaboration, and rewards. Through our Vibe-to-Earn model, we create an immersive ecosystem where attendees, organizers, and sponsors connect seamlessly, enhancing the value of every interaction. Built on the foundation of decentralization and user empowerment, SideQuest aims to drive adoption of Web3 technologies while enriching real-world event experiences.


Date parsing with LTS format gives invalid date for years before 2000

Describe the bug
For date string having year before 2000 with 'LTS' format, moment should return valid date.
To Reproduce
Steps to reproduce the behavior:

Go to 'https://momentjs.com/'
Go to dev tools -> console
execute below commands

scenario 1 :
var dateWithoutTimeAfter2000 = moment('Jan 20, 2001','LTS');
dateWithoutTimeAfter2000 .toString()->"Mon Mar 29 2021 20:20:01 GMT+0530" (Incorrect date)
scenario 2 :
var dateWithTimeBefore2000 =  moment('Jan 20, 1990 19:30:00', 'LTS');
dateWithTimeBefore2000.toString() -> "Mon Mar 29 2021 20:30:00 GMT+0530"  (Incorrect date)
scenario 3 -
var dateWithTimeAfter2000 = moment('Jan 20, 2001 5:30:55','LTS');
dateWithoutTimeAfter2000.toString() -> "Mon Mar 29 2021 20:20:01 GMT+0530" (Incorrect date)
Scenario 4 -
var dateWithoutTimeBefore2000 =  moment('Jan 20, 1990', 'LTS');
dateWithoutTimeBefore2000.toString() -> "Invalid date"
Expected behavior
As you can see we do not get correct dates in any of the scenarios
Scenario 1 should give date - Jan 20, 2001 and not the current date.
Scenario 3 should give date - Jan 20, 2001 and not the current date.
Scenario 2 should give date - Jan 20 1990 and not the current date.
Scenario 4 should give a valid date instead of invalid date output.
Moment-specific environment
Above behaviour is seen on momentjs.com itself.

Hi, I would like to have a look into this issue. can you please assign this to me?


SDP unmarshaling 11% speedup

Description

strings.Fields() and strconv.ParseInt() replaced by new functions: lexer.readField() and lexer.readUint64Field()
because sdp size is small, lexer now uses just simple []byte
new parseError show invalid position
bug in tests messages: bytes wasn't converted to strings before output
bug in ConnectionInformation.String(): nil pointer dereference

Benchmarks (before/after)
BenchmarkUnmarshal-12    	  156142	      6981 ns/op	    4008 B/op	     108 allocs/op
BenchmarkUnmarshal-12    	  167923	      6193 ns/op	    2584 B/op	     108 allocs/op

Merged with 00f5866927372cfc1dacf5c2f476835cb7b86f5a
Amazing work! Would you be interested in being added to the Pion org? I would love you to keep improving things as you see fit.
As long as the public API doesn't change you should do w/e you think is best. This package is due for cleanup :)


Google urls in ad reporting instead of website URLs

Hello Support,
We are embedding players through an iframe and some of the ad requests are taking google Ad URLs (safeframe.google.com) in the ad requests and showing these in the reports instead of the website page URL.  We checked the IMA documentation and there is a parameter to set Page URL for iframe video player to properly pass website page URLs but we didn't find a proper implementation guide for video players.
https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsRequest#pageUrl
Can anyone help us how to set this value?
Thanks,
Abdul

Hello @amusakhan2016 ,
Currently, there is not a way to set AdsRequest.pageUrl() through this plugin.
I can prioritize adding this feature in the plugin's next release.
Thank you,
Jackson
IMA SDK team

Hello @Kiro705
Thank you for the update, we will be waiting for the release.
We tested other video player providers too and that players are also not providing such parameter. We should contact that players teams or not?
Thanks,

Hi @amusakhan2016 ,
A quick update, it is possible to set the pageUrl currently. Sorry for the confusion. Please see the following example:
var imaOptions = {
  adTagUrl: 'YOUR_AD_TAG',
  adsRequest: {
    pageUrl: 'YOUR_PAGE_URL'
  }
};

player.ima(imaOptions);

You can also use the adsRequest setting to set or override any other ads request parameters.
I am unsure how other players/plugins handle the IMA ad requests, but if it is possible to set the ads request parameters prior to the request being made, that is how it should be done.
Please let me know if this works for you and if you have any other questions.


Problem Input Database

Hi! I'm trying to translate some tables I have on a pgAdmin server into RDF. Initially, I had my input files physically on my computer as CSV, and my code was working fine. Now that I've tried to connect with PostgreSQL, it's no longer working. Here's my code:
-> Mapping file:
@prefix rr: <http://www.w3.org/ns/r2rml#>.
@prefix rml: <http://w3id.org/rml/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix mimic: <http://mimic-translation-project.org/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .

@base <http://mimic-translation-project.org/> .

<T0> a rml:AssertedTriplesMap;
    rml:logicalSource [
        rml:source <#DB_source>;
        rr:sqlVersion rr:SQL2008;
        rr:sqlQuery """
            SELECT * FROM mimic_untouched.caregivers
        """
    ];

    rml:subjectMap [
        rr:template "http://mimic-translation-project.org/res/caregiver{CGID}"
    ];

    rr:predicateObjectMap [
        rr:predicate rdf:type;
        rml:objectMap [
            rr:constant <http://mimic-translation-project.org/Caregiver>;
        ]
    ];

    rr:predicateObjectMap [
        rr:predicate mimic:cgId;
        rml:objectMap [
            rr:reference "CGID";
            rr:datatype xsd:integer
        ]
    ];

    rr:predicateObjectMap [
        rr:predicate mimic:label;
        rml:objectMap [
            rr:reference "LABEL"
        ]
    ];

    rr:predicateObjectMap [
        rr:predicate mimic:description;
        rml:objectMap [
            rr:reference "DESCRIPTION"
        ];
    ].

<#DB_source> a d2rq:Database;
    d2rq:jdbcDSN "jdbc:postgresql://xxxxx/mimic";
    d2rq:jdbcDriver "org.postgresql.Driver";
    d2rq:username "xxxx";
    d2rq:password "xxxx" .

Initially, I also used " rr:tableName  "mimic_untouched.caregivers" ", insted of rr:sqlQuery, but it didn't work. Additionally, I will need to use rr:sqlQuery for some tables.
-> .py file:
import morph_kgc
import pyoxigraph
config = """
            [DataSouce1]
            mappings : D:/TIROCINIO/TRANSLATION_CODE/caregivers/caregivers_mapping.ttl
         """
graph = morph_kgc.materialize_oxigraph(config)
output = open('D:/TIROCINIO/mimic-iii-clinical-database-1.4-ttl/CAREGIVERS.ttl', 'wb')
pyoxigraph.serialize(graph, output, format = pyoxigraph.RdfFormat.TURTLE)

This is the error I obtain:
"UnboundLocalError: cannot access local variable 'data' where it is not associated with a value".
Could you help me understand if there are errors in my code?

Hi! I modified my code and now it works. In particular, I refer to the documentation https://morph-kgc.readthedocs.io/en/stable/documentation/#data-sources and put the reference to the database in the config part as db_url.
-> mapping file:
@prefix rr: <http://www.w3.org/ns/r2rml#>.
@prefix rml: <http://w3id.org/rml/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix mimic: <http://mimic-translation-project.org/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .

@base <http://mimic-translation-project.org/> .

<T0> a rml:AssertedTriplesMap;
    rml:logicalSource [
        rr:tableName "mimic_untouched.caregivers";
    ];

    rml:subjectMap [
        rr:template "http://mimic-translation-project.org/res/caregiver{cgid}"
    ];

    rr:predicateObjectMap [
        rr:predicate mimic:cgId;
        rml:objectMap [
            rr:column "cgid";
            rr:datatype xsd:integer
        ]
    ];
    ;

    rr:predicateObjectMap [
        rr:predicate mimic:label;
        rml:objectMap [
            rr:column "label"
        ]
    ];

    rr:predicateObjectMap [
        rr:predicate mimic:description;
        rml:objectMap [
            rr:column "description"
        ];
    ].

->.py file:
import morph_kgc
config = """
   [DataSource1]
   mappings = D:/TIROCINIO/TRANSLATION_CODE/caregivers/caregivers_mapping.ttl
   db_url = postgresql+psycopg://----:------@------:-----/mimic
"""
graph = morph_kgc.materialize(config)
graph.serialize(destination="D:/TIROCINIO/mimic-iii-clinical-database-1.4-ttl/caregivers1.ttl")


feat(graphql_devtools_extension): Add DevTools extension to display GraphQLClient cache

What does this change?
Add DevTools Extension to display GraphQL cache inspired by Apollo Client.
https://github.com/user-attachments/assets/ff7bd19c-d138-4b64-9ade-f654c216cf84
To create DevTools Extension
To create DevTools Extension, using devtools_extension and these are required.

packages/graphql_devtools_extension/
packages/graphql/extension/config.yaml
packages/graphql/extension/build/ (this is gitignored but you should add before publishing to Pub.dev) ^1

packages/graphql_devtools_extension/
DevTools Extension must be built by Flutter web app, packages/graphql_devtools_extension/ contains DevTools Extension's Flutter web code ^2. Also packages/graphql/lib/src/graphql_client.dart has logic to interact with application with graphql and DevTools Extension.
registerExtension(
  'ext.graphql.getCache',
  (method, parameters) async {
    return ServiceExtensionResponse.result(
        jsonEncode({'value': this.cache.store.toMap()}));
  },
);

packages/graphql/extension/config.yaml
This file has DevTools Extension configuration.
packages/graphql/extension/build/
This directory is not included because of .gitignore.
However you need to create this directory by this command.^3
cd graphql_devtools_extension
flutter pub get
dart run devtools_extensions build_and_copy --source=. --dest=../graphql/extension/devtools

I can ask why do not make another package outside of this repo? just asking I will review soon

You mean why I didn't create another package only for displaying GraphQLClient cache?
Because I need to interact with GraphQLClient directly to use cache data inside DevTools Extension like
Provider package DevTools Extension.


feat: Allows for splitting stats' distinct values into a different element that shows in modal

Summary of Changes
This is part of the work around table stats
Splits distinct values from the regular stats table
Consolidates stats utils in one file
Adds a configuration option to add the distinct values stat name to the configuration
Tests
Added tests for new components
Tested utils
Screenshots

Documentation
Soon
CheckList
Make sure you have checked all steps below to ensure a timely review.

[ ] PR title addresses the issue accurately and concisely. Example: "Updates the version of Flask to v1.0.2"

In case you are adding a dependency, check if the license complies with the ASF 3rd Party License Policy.

[ ] PR includes a summary of changes, including screenshots of any UI changes.
[ ] PR adds unit tests, updates existing unit tests, OR documents why no test additions or modifications are needed.
[ ] In case of new functionality, my PR adds documentation that describes how to use it.

All the public python functions and the classes in the PR contain docstrings that explain what it does

[ ] PR passes all tests documented in the developer guide

Code looks good to me but referencing back to the design isn't the modal supposed to be less wide?

Code looks good to me but referencing back to the design isn't the modal supposed to be less wide?

Yeah, I changed it already, that's an old screenshot.


Feature/20 respond to request by setting custom cookies

Add headers to return step - if defined, these headers will be added to the final response of the query
refactor scripting helper to recursively go into maps, to evaluate all map values
Replace custom "HttpQueryResponse" with nearly identical ResponseEntity object
Add check to see whether requested DSL actually exists - if not, request will be logged and no query will be executed
"Generify" loggingUtils

@turnerrainer - There is a small difference between the sample DSL and the DSL that was developed.
The difference lies in how the headers are "returned". In the examples, the headers were returned with the return keyword, but currently this keyword is used to define the "body" of the response. Instead i defined a new keyword headers, that assigns all the headers to the response.
This is the example DSL:
step_1:
    args:
        headers:
            Set-Cookie:
                customCookieName:
                    Value: "customCookieValue"
                    Domain: "https://example.com"
                    Secure: ~
                    HttpOnly: ~
    result: set_custom_cookie

return_value:
    return ${set_custom_cookie.headers}

This however, how the DSL looks currently:
return_value:
  headers:
    Set-Cookie:
      cookieName: "headerName"
      Domain: "localhost"
      Secure: true
      HttpOnly: true
      SameSite: "Strict"
      Max-Age: 300
      Expires: "2022-08-08T10:08:39.159Z"
    custom-header: "custom-value"
  return: "body"

(the headers are currently defined right under the return_value step, but they can also be defined earlier and referenced to):
assign_header:
  assign:
    setCookieHeader:
      cookieName: "headerName"
      Domain: "localhost"
      Secure: true
      HttpOnly: true
      SameSite: "Strict"
      Max-Age: 300
      Expires: "2022-08-08T10:08:39.159Z"
    myCustomHeader: "custom-value"

return_value:
  headers:
    Set-Cookie: ${setCookieHeader}
    custom-header: ${myCustomHeader}
  return: "body"

@henrikprangelNG your solution is a lot better, approved.


bug #201: Handle no user agent header on 403

Circle CI says this :( :

Due to dependency cache maybe?

Interesting. I tried pulling the this PR, and it runs fine locally on my Mac. might be some sort of issue with node module dependencies being cached?

yeah, it is indeed a dependency cache issue. i'll have it rerun without the cache for you.

perfect, thanks!

might i interest you in #211 and/or #216? :)

@issa-tseng Sure. Will look into it as soon as I get some time.


Default React app branding is still present

The current webpage still has some "branding" elements of the default React app. These are both icons and text. It would look good to replace them with Workflomics/APE versions.
I will add a pull request to include those changes.

That's a good point, thank you for taking the initiative.


Update BuildStrategy to be compatible with Ruby 2.7

When creating an ActionController::TestRequest, the params differ
based on the gem version of ActionPack.
Currently the check asserts the names of the params and expects
them to be [:req, :controller_class]. However on Ruby 2.7 this changes
to [:rest, :args].
Rather than check for the names of the params, we can make this more
robust by checking if there are any params. As we know that old versions
of TestRequest didn't require any params to create an instance.
The previous workaround was introduced in: GitHub Pull Request #759

I'm not actually sure how to test the backwards compatibility of this change. As I believe it would rely running the test suite against an old version of ActionPack/ActionController. I looked in the Travis config but couldn't see that kind of setup.

Interestingly I have now since been able to reproduce this on Ruby 2.6.3, so clearly it isn't a Ruby 2.7 thing 🤔

OK on further investigation, I tracked it down to a line our in our test suite which was stubbing ActionController::TestRequest.create 🤦


question re: Dockerfile vs. package.json

Sorry, probably a bit of n00b question, but I want to make the port configurable so I forked to add config and when I looked at package.json I notice there is a postinstall to run bower and grunt minify, but these are also in the Dockerfile. Anybody familiar with the project, especially the Dockerfile can tell me why both are needed?
Why do I want to do this?: -- I'm creating a containerized set of vuln webapps all to be run in their own containers as a "wapt dojo" of sorts and want the users to be able to specify the ports they run on to avoid conflicts.

For some reason the postinstall scripts of the package.json are not properly executed when npm install runs during Docker image creation:
npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>npm WARN lifecycle<EMAIL_ADDRESS>cannot run in wd %s %s (wd=%s<EMAIL_ADDRESS>bower install && grunt minify /juice-shop

That's why the bower install and grunt package are executed manually afterwards - it's basically a workaround.

Gotcha. I'll add my dep's in both spots. Thanks.

I just read somewhere that --unsafe-perm might fix that... I'll try that on develop right away, maybe the workaround can be gotten rid of with this new workaround... 😀

Looks good, the Dockerfile RUN is now just npm install --production --unsafe-perm - no more extra bower or grunt calls needed.


Fix setting property dragOffset of undefined

Fix bug:
Uncaught TypeError: Cannot set properties of undefined (setting 'dragOffset')
    at HTMLBodyElement.self.dragReorder (index.js:979)

Reproducing:
https://user-images.githubusercontent.com/4303130/147653450-40c8734f-937c-4be6-a623-1583fbec4077.mp4

Thank you! 🙏


Include support for scala 2.12

Scala 2.12 is source code compatible, but not binary compatible. The idea of this issue is to compile the ds also for scala 2.12

Needs to be delayed until Spark supports fully Scala 2.12 (cf. https://issues.apache.org/jira/browse/SPARK-14220)

Spark 2.4 supports Scala 2.12
HadoopCryptoledger will support Scala 2.12 in the next release (this means also the minimum JDK is 8).


SVN unavailable

svn.alleg.net is unreachable.
is the new svn to be at http://alleg.scarybugs.net/svn ?
Imported from trac ticket #78,  created by Imago on 03-26-2010 at 13:39, last modified: 06-11-2010 at 07:53
CCing<EMAIL_ADDRESS>

The SVN URL has changed.
Reopened until everything (trac/bitten) is working again with the new URL.
Trac comment by Imago on 03-28-2010 at 22:38

Old SVN server is back:
http://svn.alleg.net/svn/Allegiance/
Trac comment by pkk on 03-26-2010 at 21:42

root@ded3:~# svn propset svn:sync-from-url --revprop -r 0 http://svn.alleg.net/svn/Allegiance file:///svn/dest
root@ded3:~# crontab -l
m h  dom mon dow   command
*/10 * * * * /usr/local/bin/syncalleg
root@ded3:~# cat /usr/local/bin/syncalleg
#!/usr/bin/perl
use strict;
use RPC::XML;
use RPC::XML::Client;
my $ret = svnsync sync file:///svn/dest;
my $lastrev = 0;
if ($ret) {
my @lines = split(/\n/,$ret);
foreach my $line (@lines) {
if ($line =~ m/Copied properties for revision (\d+)./i) {
my $cmd = "trac-admin /trac/alleg/ resync $1";
$cmd;
$lastrev = $1;
}
}
}
my $cli = RPC::XML::Client->new('http://alleg.scarybugs.net/ircannouncer_service');
my $resp = $cli->send_request('ircannouncer.getChangeset',$lastrev);
my $cli = RPC::XML::Client->new('http://<IP_ADDRESS>:53312/');
my $resp = $cli->send_request('ircannouncer.notify','changeset',$resp);
exit;
Trac comment by Imago on 06-11-2010 at 07:53


ITV Hub's 'duration' isn't correctly parsed

Checklist

[X] I'm reporting a broken site
[X] I've verified that I'm running yt-dlp version 2021.12.27. (update instructions)
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[ ] I've read about sharing account credentials and I'm willing to share it if required

Region
UK
Description
Example: Vera S04E01 is shown as having approximate file size 44GiB for a 120 minute 2Mbit/s stream, which should be ~ 1.8GiB.
Breaking the extractor with pdb:
(Pdb) p video_data.keys()
dict_keys(['Duration', 'Timecodes', 'Base', 'MediaFiles', 'Subtitles', 'Token'])
(Pdb) p video_data['Duration']
'01:29:34:000'
(Pdb) p parse_duration(video_data['Duration'])
192840.0
(Pdb) p parse_duration(video_data['Duration'].replace(':0','.0'))
5374.0

Here 5374 is the correct duration, 2 "ITV hours", allowing another 30 minutes for ads.
The problem is that ITV doesn't know about decimal points, which is perhaps fair enough since a lot of the world is confused about them, and parse_duration() in utils.py does expect one between the seconds and milliseconds.
Either in the extractor or in utils.py, the value (duration_string) to be parsed should be conditioned as re.sub(r':(\d{3,})$', r'.\1', duration_string).
Disambiguating strings that might have either days or 1-2 digit milliseconds, eg '01:29:34:00' which might be 1 day, 29 hours, ... , or 1 hour, 29 minutes, ..., would need additional, probably unjustified, parsing.
 First reported by me ca. two months ago, albeit in an "out-of-place" comment:
https://github.com/yt-dlp/yt-dlp/issues/1775#issuecomment-978795367 😜
Thanks to the (proper) issue reporter (dirkf) and to the maintainer (pukkandan) for finally addressing that (minor) handicap... ❤


⚠ gorzdrav.org has degraded performance

In 2d58450, gorzdrav.org (https://gorzdrav.org) experienced degraded performance:

HTTP code: 200
Response time: 4097 ms

Resolved: gorzdrav.org performance has improved in 13021a0.


fix kubeConfig test map cmp

Signed-off-by: Wayne Witzel III<EMAIL_ADDRESS>

@wwitzel3 what as the issue here?

It was randomly failing because the other of the items in the map when comparing pointers was different

Example https://cloud.drone.io/vmware/octant/181


[react-router-dom] Make  component of ReactRouterDOM not exact + update tests

Context
In https://github.com/flowtype/flow-typed/pull/2306, the <Link> component has been made exact. However, in the official React Router DOM documentation (https://reacttraining.com/react-router/web/api/Link/others), it is explicitly stated that the <Link> component accepts all attributes for the <a> element in HTML.
Instead of defining all <a> properties explicitly in the flow-type, I chose to make the <Link> component not exact. I do this to make the <Link> flow-type independent of the HTML-spec for  <a>, since some of the HTML-specced properties are dynamic (data- attributes for example). I think this is the most pragmatic way.
What has been done?

Make Link property definition not exact
Updated tests for the Link component to verify the <a> attributes can be passed

I believe this is already being addressed in #2342.


[stable/jenkins] Fix overwritePluginsFromImage and syntax error

What this PR does / why we need it:
Setting overwritePluginsFromImage:
Fixes #23003
Fixes #22633
Correcting indentation Fixes #23114
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

/assign @wmcdona89

/lgtm


"rebuild device list" not recognized

https://github.com/mikejgray/neon-homeassistant-skill/blob/main/neon_homeassistant_skill/locale/en-us/intents/get.all.devices.intent
 17:17:51.945 - skills - neon_core.skills.intent_service:handle_utterance:265 - INFO - lang=en-us ['rebuild device list', 'rebuild device list']
 17:17:52.235 - skills - neon_core.skills.patched_common_query:handle_question:164 - INFO - Searching for rebuild device list
 17:17:52.369 - skills - skill_fallback_wolfram_alpha:CQS_match_query_phrase:90 - INFO - rebuild device list
 17:17:52.377 - skills - skill_caffeinewiz:_clean_drink_name:504 - INFO - rebuild device list
 17:17:52.432 - skills - skill_fallback_wolfram_alpha:_query_wolfram:148 - INFO - Querying WolframAlpha: rebuild device list
 17:17:53.669 - skills - skill_fallback_wolfram_alpha:_query_wolfram:169 - ERROR - Error response 501: {"detail":"Wolfram Alpha did not understand your input"}
 17:17:53.673 - skills - skill_fallback_wolfram_alpha:_query_wolfram:171 - INFO - result=None
 17:17:55.258 - skills - neon_core.skills.patched_common_query:_query_timeout:230 - INFO - Check responses with 0 replies
 17:17:55.885 - skills - skill_fallback_unknown:handle_fallback:89 - INFO - Unknown Fallback handling: rebuild device list
~~~~ls - ovos_utils.file_utils:resolve_resource_file:166 - WARNING - Deprecation version=0.1.0. Caller=ovos_bus_client.apis.gui:367. Expected a dict config and got None.
~~~~ls - ovos_utils.file_utils:resolve_resource_file:166 - WARNING - Deprecation version=0.1.0. Caller=ovos_bus_client.apis.gui:368. Expected a dict config and got None.
~~~~Please rephrase your request.', 'expect_response': False, 'meta': {'dialog': 'unknown', 'data': {}, 'skill': 'skill-fallback_unknown.neongeckocom'}, 'lang': 'en-us'}
 17:17:56.735 - audio - ovos_audio.service:execute_tts:348 - INFO - Speak: Please rephrase your request.
 17:17:57.582 - audio - neon_audio.tts.neon:_get_tts:267 - INFO - Legacy Neon TTS signature found (CoquiRemoteTTS)
 17:17:57.584 - audio - neon_audio.tts.neon:_get_tts:276 - INFO - Using cached TTS audio
 17:18:01.036 - audio - neon_audio.tts.neon:_play:185 - INFO - Played default

this was clearly spoken and identified (per the logs) - also tested a direct command in neon-cli same result
looks like that intent isn't getting picked up as I expect?
(i renamed an entity in hass and TBH not entirely sure if a device list rebuild is required explicitly or if it happens periodically)

Hi @fermulator , it looks like I'm not using that intent anywhere. We can add that in and get it to rebuild the list by voice. Otherwise, the only time it rebuilds is when the PHAL service is restarted.


please check the content about the SpringBoot Actuator

There are few miswrote contents about the SpringBoot Actuator.

Spring Boot application exposes health only by default
https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints.exposing

The content of the Note makes me confusing. If the purpose is to hide all, excluding * would overwrite all the including variables as you know . I think mentioning that exclude property takes precedence over the include property would be more proper.

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

ID: 2375a8f8-90dc-4c92-529d-511c64c14d81
Version Independent ID: 1c6b0620-a0b6-6706-431b-aedfb5721633
Content: Manage and monitor app with Spring Boot Actuator
Content Source: articles/spring-apps/concept-manage-monitor-app-spring-boot-actuator.md
Service: spring-apps
GitHub Login: @KarlErickson
Microsoft Alias: karler

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

Please review fix

We have represented this work in an Azure DevOps work item, and will investigate and fix.
#please-close

Doc is updated. @Hyunta , thanks for your feedback.


OpenApiResponses.code incorrectly uses toString on statusCode

On the following line:
https://github.com/SMILEY4/ktor-swagger-ui/blob/013161a5c301a331e707e393fecfc13c4e405ec4/ktor-swagger-ui/src/main/kotlin/io/github/smiley4/ktorswaggerui/dsl/routes/OpenApiResponses.kt#L38
statusCode.toString() should be replaced with statusCode.value.toString()
Otherwise, the resulting schema contains incorrect values. For example, with code(HttpStatusCode.BadRequest):
"responses": {
    "400 Bad Request": {
        "headers": {...},
        "content": {...}
    }
}

For the time being, I'm using following workaround:
fun OpenApiResponses.status(code: HttpStatusCode, block: OpenApiResponse.() -> Unit) {
    return code(code.value.toString(), block)
}

Hi,  thanks for the info :+1:
the bug is fixed and included in  version 3.5.0


Added more XSS strings

Just a couple more XSS injection strings.

Added in https://github.com/minimaxir/big-list-of-naughty-strings/commit/409a74e2226d0162a08d3a773679014384c788fc
Closing.


wasm-interp: block-break type crash.

The following is valid wast but crashes in wasm-interp.
(module
  (func $tst1
    (block
      (block $l (br $l (i32.const 1)) (nop))
      (nop)))

  (export "tst" $tst1)
)

Hm, I get an arity mismatch in sexpr-wasm and ml-proto when trying to run this. I've actually been working on making a flag to disable type checking in sexpr-wasm so I can more easily catch type checking in wasm-interp. But it would help if you had a binary that demonstrates the crash.


Handle ZAP fail (results, not workflow job)

ZAP moved to main merge and now creating reports with GitHub Issues.  Hard block not practical without quite a bit of fixup first.


Add variables, functions and version items to getscriptinfo()

It is unlikely someone wants to get all variables and functions of all
scripts.  This adds a lot of overhead to the return value of
getscriptinfo().
The "version" item seems useful.  The "functions" and "variables" are
better obtained for a function that does this for one script.  I do
wonder what the use of it is.  What would justify adding this
functionality?  Making the script-local items accessible can be used for
hacks, the writer of the script may not want to make it so easy to
access them.
--
I just planted an Algebra tree. It has square roots.
/// Bram Moolenaar -- @.*** -- http://www.Moolenaar.net   \
///                                                                      \
\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Hi Bram,
On Tue, Aug 23, 2022 at 11:55 AM Bram Moolenaar @.***>
wrote:

It is unlikely someone wants to get all variables and functions of all
scripts. This adds a lot of overhead to the return value of
getscriptinfo().
The "version" item seems useful.

I will create a separate PR to add the "version" item.

The "functions" and "variables" are
better obtained for a function that does this for one script. I do
wonder what the use of it is. What would justify adding this
functionality? Making the script-local items accessible can be used for
hacks, the writer of the script may not want to make it so easy to
access them.

All the script-local functions can be already listed by using the
":function" command
without any arguments.  This change just makes it easier to get it as a
List.
Getting the list of script-local variables and their values is useful for
debugging
plugin issues (without modifying the plugin). It is useful for plugin
developers.
I will create a PR to filter the results by a particular script name.
Regards,
Yegappan

It is unlikely someone wants to get all variables and functions of all
scripts. This adds a lot of overhead to the return value of
getscriptinfo().
The "version" item seems useful.

I will create a separate PR to add the "version" item.

I also added the "sourced" item now.  Only set if the script was a link
that is resolved later.  It's useful that way.

The "functions" and "variables" are
better obtained for a function that does this for one script. I do
wonder what the use of it is. What would justify adding this
functionality? Making the script-local items accessible can be used for
hacks, the writer of the script may not want to make it so easy to
access them.

All the script-local functions can be already listed by using the
":function" command
without any arguments.  This change just makes it easier to get it as a
List.

OK, knowing the script ID it was already possible, but a bit complicated
to get these functions.  And it's OK to call them, even from outside the
script, as this already happens for various reasons (mappings, option
values, etc.)

Getting the list of script-local variables and their values is useful for
debugging plugin issues (without modifying the plugin). It is useful
for plugin developers.

One thing I want to avoid is to make it possible for script-local
variables to be changed from outside the script.  This makes it less
predictable.  Currently it is a "cannot happen", which reduces the
effort to find out why something happened.  For debugging it can be
useful to inspect the variables, but it would be good if we can make it
impossible to change them.  E.g. by making a copy.
--
BEDEVERE: Look!  It's the old man from scene 24 - what's he Doing here?
ARTHUR:   He is the keeper of the Bridge.  He asks each traveler five
questions ...
GALAHAD:  Three questions.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- @.*** -- http://www.Moolenaar.net   \
///                                                                      \
\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///


Fix media control button alignment

Seemed to have an issue on a webpage with bootstrap for some reason, and this fixed it.
I don't think the font anti aliasing should be there anymore given there's not text, but can put it back in if that still does magic with svgs.
Tested in chrome, firefox, internet explorer and edge.
Before:

After:

Coverage decreased (-0.2%) to 70.567% when pulling 5e7ad6309ce3c1b865231b17c35b63319b6f0a9b on fix-button-alignment into 894df0d91e7f9a14f2c32e74bf5b14572630302e on master.

Also removed the player font files because I don't think they're needed anymore?

Coverage decreased (-0.2%) to 70.567% when pulling 2f4b4c6ec96dae5cc56012562cd37e143c23af46 on fix-button-alignment into 894df0d91e7f9a14f2c32e74bf5b14572630302e on master.

Thanks, @tjenkinson. You have spared me of this task.
About the font smoothing, it has no impact when used on svgs directly.


Adds the EXISTS CIP

Replaces #8

Comments shared during the CLG meeting:

Change EXISTS for properties to be equivalent to IS NOT NULL - i.e. valid for any expression and only returning true for null values, and not particular and special for graph elements.
All uses of has() should be capitalized
Comment on the fact that UNION subqueries will contain RETURN clauses
Weird layout around line 22
Add example of valid UNION subquery
Add example of valid EXISTS use for checking null and not property
Comment that trailing WITH is only valid together with WHERE

@systay I have made a commit with amendments according to these comments (after discussing this CIP with the CLG), but I can not push it to your fork. Please add me as a collaborator.

Replaced by #120.


Real-time spectrogram analysis

Is it possible to analyze the spectrogram with this library to analyze the frequencies coming from the microphone?

@ekuleshov
Sorry for my late response.

I could not figure out how to process audio data without having EncoderNode or something like MabPlaybackDeviceNode at the end of the audio graph.

Most of nodes have one outputBus and it has read function to process audio data.
So, you should be able to do that something like this.
final graphNode = GraphNode();
final sineNode = FunctionNode(function: const SineFunction(), format: format, frequency: freq);
final sineVolumeNode = VolumeNode(volume: 0.2);

graphNode.connect(sineNode.outputBus, sineVolumeNode.inputBus);
graphNode.connectEndpoint(sineVolumeNode.outputBus);

// Allocate 10 seconds audio buffer.
final frames = AllocatedAudioFrames(
  length: format.sampleRate * 10,
  format: format,
);

frames.acquireBuffer((buffer) {
  // Read the graph's output data
  final framesRead = graphNode.outputBus.read(buffer);
  final readBuffer = buffer.limit(framesRead);

  // do something on readBuffer
});

Also it is somewhat cumbersome to get the audio position from within processor nodes, such as FftNode. You have to go all the way to decoder to get the position, as MabAudioPlayer.position method does. It would be really handy if ProcessorNodeMixin.process() method also had the AudioTime parameter along with the AudioBuffer.

Since position has different implications depending on the context and the processor node has responsible for processing audio data, not for calculating position, I don't think it is a good solution.

Also it is somewhat cumbersome to get the audio position from within processor nodes, such as FftNode. You have to go all the way to decoder to get the position, as MabAudioPlayer.position method does. It would be really handy if ProcessorNodeMixin.process() method also had the AudioTime parameter along with the AudioBuffer.

Since position has different implications depending on the context and the processor node has responsible for processing audio data, not for calculating position, I don't think it is a good solution.

Thank you for these pointers. But will that work, for example, with FftNode? And I'm still unclear how to link the audio position with result of processing, e.g. use FftCompletedCallback data to create an audio spectrogram similar to this.

FftResult has frames and format properties. So, you can calculate the duration of the result like this... And you should sum it in each callback.

Unfortunately this approach does not work when upstream node rolled back position in the audio stream. E.g. when FftNode (only using it as an example) is hooked up in the music player and user rewinds the audio, that summed up position won't be correct anymore. I suppose I could also subscribe to that rewind event, but that is even more cumbersome.

final framesRead = graphNode.outputBus.read(buffer);

@SKKbySSK in the above snippet it only reads up to the allocated 10 sec buffer out of the graphNode.outputBus.
But how can I continuously read the entire decoded audio stream, say in chunks of 256 frames?


fetchgit: fetchSubmodules in parallel

Fixes #88982

Why did you close this?

I'd like to use a simpler solution, will open a new PR.
On Mon, Jun 19, 2023, 22:59 Lily Ballard @.***> wrote:

Why did you close this?
—
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/pull/238467#issuecomment-1597810680,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAA63A6L4WXBGBRGKQDS2NLXMDDS7ANCNFSM6AAAAAAZLB7MCQ
.
You are receiving this because you modified the open/close state.Message
ID: @.***>


Outbound Governor CI test failures

[x] https://hydra.iohk.io/build/3933045/nixlog/6 (not repdocusible anymore)
[x] https://hydra.iohk.io/build/3933046/nixlog/1 (it's the same test & quickcheck replay seed as above)
[x] https://hydra.iohk.io/build/5210638/nixlog/27 (there are no errors in this log)

Discovered in #2539.

I can't reproduce this in latest master

closing, since it's not reproducible any more.


Add pirate roofs

Seperation from #195 requested by @Gymnasiast
Includes all pirate roof objects except for the one with a chimney.

That should be all inconsistencies taken out, while remaining compatible with existing saves. They should now behave exactly the same as the two original roofs.


Bug: login page shows a "Hi , You are logged out. Please come back soon!" message after login

###_Issue Type - is it a bug, a task, or a future request?:
BUG
###_Severity (1-4; 1 - not severe, 4 - very severe):
3
###_Priority (1-4; 1 - lowest priority, 4 - highest priority):
2
###_Synopsis - describe bug/task/future request, in more detail:
logon and get this message - annoying, but you are actually logged on
###_Expected Behavior - what the behavior is supposed to be, for bug/task/FR:
see a logon success message
###_Actual Behavior - what the behavior is instead, for bugs only:
get "Hi , You are logged out. Please come back soon!" at logon
###_Steps to Repro the Issue, for bugs only:
go to Login page
Enter credentials
Submit
###_Other Notes, for bug/task/future requests:

Looks like this issue has been fixed - either that or I'm not experiencing it. Anyone else still observing this bug?

I just pulled master and updated my server. I'm still having the issue:
[image: image.png]
Would you share the url to your site?  Here's mine:
https://kiseharrington.com/gig-central/admin/login
On Wed, May 29, 2019 at 6:59 PM Kelsie Brown<EMAIL_ADDRESS>wrote:

Looks like this issue has been fixed - either that or I'm not experiencing
it. Anyone else still observing this bug?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gig-central/gig-repo-1/issues/151?email_source=notifications&email_token=AKOVHID2LXVISHO4PLVMLI3PX4YHLA5CNFSM4HNSHC5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWRD5OY#issuecomment-497172155,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKOVHIALJ6H4JCOY2ZRZMS3PX4YHLANCNFSM4HNSHC5A
.

Just checked it on my end as well, master still has the issue, looks like your branch has the answer.

Yeah ... Kelsie ... did you fix it in your sleep? Both John & I are still seeing the defect. Is there a way you could compare your code to Master on the remote?

Yup - I'll check that shortly. Here's mine for reference before I have time to compare: http://kelsiebrown.com/gig-central/admin/login

John ... I have master in my environment. Can you send me the link to your
gig-central website?
On Thu, May 30, 2019 at 4:45 PM John Nguyen<EMAIL_ADDRESS>wrote:

Just checked it on my end as well, master still has the issue, looks like
your branch has the answer.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gig-central/gig-repo-1/issues/151?email_source=notifications&email_token=AKOVHIBQHQZK3737EDM4WN3PYBRKLA5CNFSM4HNSHC5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWT2AYQ#issuecomment-497524834,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKOVHICCSDU62IKLFMIVFADPYBRKLANCNFSM4HNSHC5A
.

I pulled master into my environment too. Here it is:
http://flickeringflame.org/gig-central/admin/login

I think the session handling might be broken for some. I think it may have to do with those who are running the instance on an https protocol.

I think this is fixed now. Let's close it!


Server Side Queries

The Struggle
Hello, I'm trying to get an isomorphic vue vue-router vue-apollo application running and I've run into some issue.
vue-apollo does not run on the server by default. To try to get around this I first tried to manually run queries before rendering the application on the server by pullinf from router.getMatchedComponents. This lead me to my next issue.
vue-router's router.getMatchedComponents yields only the component definitions, not instances. This means we cannot run the queries in the context of the running state of the application. This lead me to try to run the queries from within component lifecycle hooks.
Unfortunately component lifecycle hooks cannot be asynchronous. As a result the queries are run after the application has already been rendered and sent down the wire.
I'm more or less out of ideas now, and I'll probably just fall back to using apollo client directly with vuex, which is pretty terrible.
TLDR
It seems like this plugin has no way to operate in conjunction with server side rendering. I'd love to be wrong however. Do you have any ideas how it could be done?

Since fetch is only available in a browser, try installing node-fetch and exposing it globally:
import fetch from 'fetch'
global.fetch = fetch

More could  be done to improve compatibility with the server, if you have any idea please don't hesitate to share them.

I already am using fetch on the server. My problem is that as it is you can't actually have your components defer rendering until they have data, so you end up with no data if your render is faster than the fetch.
I have something sort of kind of working now using the following code, but it's limited to queries that don't have any dynamic variables (since we don't have a this context when we try to run them)
// server-entry.js
// Apollo in this context is a wrapper I made around apollo client that sets some api credentials for my app

export default (context) => {
  // set session to our passed in express session data
  if (context.session) {
    store.commit('setSession', context.session);

    const {accessToken, shop} = store.state.session;

    console.log(context);

    Vue.use(VueApollo, {
      apolloClient: Apollo.init(accessToken).client(),
      ssrMode: true,
    });
  }

  // set router's location
  router.push(context.url);

return Promise
    .all(router.getMatchedComponents().map((component) => {
      /* `component` in this function is the definition, not an instance.
      Any methods we run on it (for example, `variables` will not have access to
      real props or anything like that*/
      if (component.apollo && Apollo.client()) {
        const dataDependencies = component.apollo;
        /* if we have a vue-apollo field manually run the query.
        We don't have a this context so we have to do it pretty naively */
        const queries = Object.keys(dataDependencies)
          .map((key, index) => {
            const definition = dataDependencies[key];
            return Apollo.client().query({query: definition.query || definition}); // this could obviously be better but it works for now
          });

        return Promise.all(queries);
      }
      return null;
    }))
    .then(() => {
      console.log(`data pre-fetch: ${Date.now() - startTime}ms`);
      // the request handler will inline the state in the HTML response.
      context.initialState = store.state;
      if (Apollo.client()) {
        context.apolloState = Apollo.client()
          .store
          .getState()
          .apollo;
      }
      return app;
    });

Then we inline context.apolloState inside of our render function and use it to hydrate initialState on the client.
This works for queries that only depend on the route and store and other top level app information. If there is any way to perform asynchronous operations inside a lifecycle hook or otherwise defer component renderering from a plugin you could potentially check Vue.$isServer in a hook and have DollarApollo do it's magic there, but I've yet to turn up anything like that.
If I'm overthinking this and you have a working ssr example please let me know.

Ran into the same problem. Isn't the easiest solution to not load any data from graphql on the server and make sure inside the library that both server and client render the same html?
If the loadingKey property is consistent this issue is pretty much resolved for me.

Ran into the same problem. Isn't the easiest solution to not load any data from graphql on the server

Unfortunately, that's an unacceptable solution for our app. If that's the best we can do I'll probably have to recommend we use react instead.

Okay, yeah makes sense. I'm not sure how much of this logic should be part of this library, because server side vuejs still requires quite a lot of boilerplate code and it doesn't seem like there's an "official way" to do things (see hackernews vue clone).
Maybe it makes sense to kickstart a discussion on apollo-client? Unless there's already a solution on apollo level that I don't know about.

I'm exploring solutions for vue-apollo that would make server-side querying easy. If you have suggestions, please feel free to share!

wouldn't it be cool to have something like

export default {
  ...
  preFetch(store) {
    return this.$apollo.initialize();
  }
  ...
};

Which would return a promise that resolves after a client.query and succesful instantiation of the data? In the hackernews example they use the vuex store to instantiate the client with the data. But like shown in the example by @TheMallen we could also have some custom serialized state.

I'm  basically doing that manually atm, and it mostly works, as long as my queries only care about route parameters :/

Maybe I could fake this and the data hook, sort of.

@TheMallen can you show us the code where you use apolloState on the client-side?

What do you think of this?
export function prefetch(router) {
  return Promise.all(router.getMatchedComponents().map(component => component.$apollo.promise.allQueries))
}

With $apollo.promise.allQueries being a promise resolved when all the queries are resolved.

Another proposition (for instance-less use-case):
export default {
  apollo: {
    someData: {
      query: ...,
      variables () {
        ...
      },
      prefetchVariables: context => {
        ...
      },
    }
  }
}

// vue-apollo API

export function prefetchQueries (componentDefinition, context) {
  return Promise.all(...)
}

export function prefetchAll (router, context) {
  return Promise.all(router.getMatchedComponents().map(component => prefetchQueries(component, context)))
}

Looks cool. Would apollo take over the serialization process or how would that work? As in how would we be able to instantiate the vue apollo instance with data on the client?

It may not do that in the first iteration, but that would be nice to have indeed. :smile:

I think having that function would already greatly simplify the server side pre fetching. Any way of helping you with this?

We can start playing with SSR! v2.1.0-beta.1

Here are some brainstorming about how it may look like (I didn't test it yet, but if someone has time, he can :smile:).

I think we will need to walk the possible tree of components like what react-apollo does.

I'll definitely check out the SSR this weekend.

Mostly final SSR API has landed in beta.8!

@Akryum great news. Was looking for the beta.8 release, did you publish it already? The improvements seem to make a working example now for nuxt as far I could read?

@Akryum  just found the npm release, I've been confused because this repo does not show a release note for beta.8.


Fix an incorrect url

Changelog: None
Signed-off-by: Michael Clelland<EMAIL_ADDRESS>External Contributor Checklist

🚨 Please review the guidelines for contributing to this repository.

[ ] Make sure that all commits are signed with git --signoff. Also note that the signoff author must match the author of the commit.

Description
Please describe your pull request.
Thank you!

@mender-test-bot cherry-pick to:

3.2.x

@mender-test-bot cherry-pick to:

3.2.x


Lab: Explore Azure Security Center Needs Review

Module: 03
Lab/Demo: Explore Azure Security Center
Task: 1, 2, 3
Step: All
Description of issue
Lab: Explore Azure Security Center needs to be reviewed as it looks like most steps don't align with an Azure Pass subscription. Not sure if there has been UI changes which has moved some of the features mentioned, but as of right now attempting to go through these steps have been confusing. Let me know if I can provide any further information.

hi Steven:  yes content has recently changed in Azure Security Center and will be updated by early December. Will follow up iwth any quesitons.  Thanks!!!


curl http://localhost:8080/metrics return nothing

Expected behavior
Following instructions in this page:
http://pulsar.apache.org/docs/en/next/deploy-monitoring.html
curl http://localhost:8080/metrics
should return some metrics info.
Actual behavior
nothing returned.
Steps to reproduce

start pulsar standalone
use bin/pulsar-admin broker-stats monitoring-metrics could return metrics info.
use curl http://localhost:8080/metrics returns nothing

System configuration
Pulsar version: 2.2

curl http://localhost:8080/metrics returns nothing
But
curl http://localhost:8080/metrics/ could return metrics info.
This looks like a bug of jersey?

It’s not ideal, though the HTTP response is 302 redirect to /metrics so any http client following redirects is working

@merlimat is right.
In centos:
[root@hostname ~]# curl -v http://localhost:8080/metrics
* About to connect() to localhost port 8080 (#0)
*   Trying <IP_ADDRESS>...
* Connected to localhost (<IP_ADDRESS>) port 8080 (#0)
> GET /metrics HTTP/1.1
> User-Agent: curl/7.29.0
> Host: localhost:8080
> Accept: */*
>
< HTTP/1.1 302 Found
< Date: Fri, 04 Jan 2019 15:53:03 GMT
< Location: http://localhost:8080/metrics/
< Content-Length: 0
< Server: Jetty(9.3.z-SNAPSHOT)
<

And with the python urllib2 package, we can get result through http://localhost:8080/metrics
import urllib2

url = "http://localhost:8080/metrics"
res = urllib2.urlopen(url)
print res.read()

It seems that this problem hasn't been fixed in release 2.8.0. Is there any plan to make the path /metrics return data?


Add support for importing from multiple tickers

See #9

The feature is at very low priority now, close.


qcp solves but does not print value

The code below prints:
cvxpy.version= 1.1.0a1
installed_solvers: ['CPLEX', 'CVXOPT', 'ECOS', 'ECOS_BB', 'GLPK', 'GLPK_MI', 'OSQP', 'SCS']
optimal value= 32.1560630476085
x.value= None
def random_HPD(n):
  P=np.random.randn(n,n)+1j*np.random.randn(n,n)
  return np.conjugate(P.T)@P

def test_02(n=10):
  A=random_HPD(n)
  B=random_HPD(n)
  x=cp.Variable(n,complex=True)
  obj=cp.gen_lambda_max(A,B)
  prob=cp.Problem(cp.Maximize(obj))
  assert prob.is_dqcp()
  prob.solve(qcp=True,solver=cp.SCS,verbose=True)
  print('optimal value=',prob.value)
  print('x.value=',x.value)

if __name__=='__main__':
  np.random.seed(1)
  print ('cvxpy.__version__=',cp.__version__)
  print('installed_solvers:',cp.installed_solvers())
  test_02()

Furthermore, at https://www.cvxpy.org/tutorial/dqcp/index.html, we have this text, which cannot be true, as I called it with A Hermitian and it did not complain:
 Maximum generalized eigenvalue. The atom cvxpy.gen_lambda_max(A, B) computes the maximum generalized eigenvalue of A and B, defined as the maximum λ∈R such that Ax=λBx for some x. This atom is quasiconvex, and it enforces the constraint that A is symmetric and B is positive definite.

Also cp.gen_lambda_max uses the eig_vals argument to scipy.linalg.eigvalsh, which is deprecated.  eigvals_only=True could be added.


ResponseSpecBuilder can't be used with DetailedCookieMatcher

The expectCookie methods on ResponseSpecBuilder only allow Matcher arguments, whilst ResponseSpecificationImpl exposes DetailedCookieMatcher as well.
The not so pretty workaround is to do this:
        return new ResponseSpecBuilder()
            .expectStatusCode(200)
            .build().cookie("iPlanetDirectoryPro", detailedCookie().maxAge(-1));
    }

Oh that's true. Good find and thanks for pointing out. Care to provide a pull request?

Yepp, should be easy to do :)