Rancher 2.2.0-alpha6 cannot deploy workload

bug:
Steps to reproduce:
Scratch new installation, created a cluster (single node to be fast).
Activate monitoring to try it out (just activated and saved, do not know if is the right way, appeared the option to go to configure, but getting FAULT since it appears not to be able to load resources).
I reload the page and try to go to cluster and deploy anyway a workload.
Click on workload and BOOM:
Loading chunk 10 failed. (missing: https://rancher.sdp.csi.it/p/c-2qnhs:p-b6vfv/chunk.b91cb99f7120f4ec08ad.js)
Result:
Cannot deploy
Other details that may be helpful:
I'm behind corporate proxy so I have HTTP_PROXY set in various docker files
The cluster page also says:
Monitoring API is not ready
Environment information

Rancher version : 2.2.0-alpha6
Installation option (single install):

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported):
Machine type (cloud/VM/metal) and specifications (CPU/memory):
Kubernetes version (use kubectl version):

addon_job_timeout: 30
authentication:
  strategy: "x509|webhook"
bastion_host:
  ssh_agent_auth: false
dns:
  provider: "kube-dns"
ignore_docker_version: true
#
#   # Currently only nginx ingress provider is supported.
#   # To disable ingress controller, set `provider: none`
#   # To enable ingress on specific nodes, use the node_selector, eg:
#      provider: nginx
#      node_selector:
#        app: ingress
#
ingress:
  provider: "nginx"
kubernetes_version: "v1.13.1-rancher1-1"
monitoring:
  provider: "metrics-server"
#
#   # If you are using calico on AWS
#
#      network:
#        plugin: calico
#        calico_network_provider:
#          cloud_provider: aws
#
#   # To specify flannel interface
#
#      network:
#        plugin: flannel
#        flannel_network_provider:
#          iface: eth1
#
#   # To specify flannel interface for canal plugin
#
#      network:
#        plugin: canal
#        canal_network_provider:
#          iface: eth1
#
network:
  options:
    flannel_backend_type: "vxlan"
  plugin: "canal"
restore:
  restore: false
#
#      services:
#        kube_api:
#          service_cluster_ip_range: <IP_ADDRESS>/16
#        kube_controller:
#          cluster_cidr: <IP_ADDRESS>/16
#          service_cluster_ip_range: <IP_ADDRESS>/16
#        kubelet:
#          cluster_domain: cluster.local
#          cluster_dns_server: <IP_ADDRESS>
#
services:
  etcd:
    backup_config:
      interval_hours: 12
      retention: 6
    creation: "12h"
    extra_args:
      election-timeout: "5000"
      heartbeat-interval: "500"
    retention: "72h"
    snapshot: false
  kube-api:
    always_pull_images: false
    pod_security_policy: false
    service_node_port_range: "30000-32767"
  kubelet:
    cluster_domain: "sdp.csi.it"
    fail_swap_on: false
ssh_agent_auth: false
agent_image: "rancher/rancher-agent:v2.2.0-alpha6"
allocatable:
  cpu: "4"
  memory: "3778564Ki"
  pods: "110"
annotations:
  authz.management.cattle.io/creator-role-bindings: "{\"created\":[\"cluster-owner\"],\"required\":[\"cluster-owner\"]}"
  field.cattle.io/overwrite_monitoring_app_answers: "{\"answers\":{\"_key-Data_Retention\":\"prometheus.retention\",\"_key-Node_Exporter_Host_Port\":\"exporter-node.ports.metrics.port\",\"_key-Grafana_Storage_Enabled\":\"grafana.persistence.enabled\",\"_key-Grafana_Storage_Size\":\"grafana.persistence.size\",\"_key-Grafana_Storage_Class\":\"grafana.persistence.storageClass\",\"_key-Prometheus_Storage_Enabled\":\"prometheus.persistence.enabled\",\"_key-Prometheus_Storage_Size\":\"prometheus.persistence.size\",\"_key-Prometheus_Storage_Class\":\"prometheus.persistence.storageClass\",\"_tpl-Node_Selector\":\"nodeSelector#(prometheus,grafana,exporter-kube-state)\",\"prometheus.retention\":\"360h\",\"exporter-node.ports.metrics.port\":\"9100\",\"grafana.persistence.enabled\":\"false\",\"prometheus.persistence.enabled\":\"false\",\"prometheus.persistence.storageClass\":\"default\",\"grafana.persistence.storageClass\":\"default\",\"grafana.persistence.size\":\"10Gi\",\"prometheus.persistence.size\":\"50Gi\"}}"
  lifecycle.cattle.io/create.cluster-agent-controller-cleanup: "true"
  lifecycle.cattle.io/create.cluster-provisioner-controller: "true"
  lifecycle.cattle.io/create.cluster-scoped-gc: "true"
  lifecycle.cattle.io/create.mgmt-cluster-rbac-remove: "true"
  networking.management.cattle.io/enable-network-policy: "true"
api_endpoint: "https://<IP_ADDRESS>:6443"
applied_enable_network_policy: true
applied_spec:
  display_name: "sdptools"
#
#   # Rancher Config
#
  docker_root_dir: "/var/lib/docker"
  enable_cluster_alerting: false
  enable_cluster_monitoring: false
  enable_network_policy: true
  internal: false
  local_cluster_auth_endpoint:
    enabled: true
  rancher_kubernetes_engine_config:
    addon_job_timeout: 30
    authentication:
      strategy: "x509|webhook"
    bastion_host:
      ssh_agent_auth: false
    dns:
      provider: "kube-dns"
    ignore_docker_version: true
#
#   # Currently only nginx ingress provider is supported.
#   # To disable ingress controller, set `provider: none`
#   # To enable ingress on specific nodes, use the node_selector, eg:
#      provider: nginx
#      node_selector:
#        app: ingress
#
    ingress:
      provider: "nginx"
    kubernetes_version: "v1.13.1-rancher1-1"
    monitoring:
      provider: "metrics-server"
#
#   # If you are using calico on AWS
#
#      network:
#        plugin: calico
#        calico_network_provider:
#          cloud_provider: aws
#
#   # To specify flannel interface
#
#      network:
#        plugin: flannel
#        flannel_network_provider:
#          iface: eth1
#
#   # To specify flannel interface for canal plugin
#
#      network:
#        plugin: canal
#        canal_network_provider:
#          iface: eth1
#
    network:
      options:
        flannel_backend_type: "vxlan"
      plugin: "canal"
    nodes:
      -
        address: "<IP_ADDRESS>"
        hostname_override: "kubenode1"
        labels: null
        node_id: "c-2qnhs:m-323a0c836708"
        port: "22"
        role:
          - "etcd"
          - "controlplane"
          - "worker"
        ssh_agent_auth: false
        user: "root"
    restore:
      restore: false
#
#      services:
#        kube_api:
#          service_cluster_ip_range: <IP_ADDRESS>/16
#        kube_controller:
#          cluster_cidr: <IP_ADDRESS>/16
#          service_cluster_ip_range: <IP_ADDRESS>/16
#        kubelet:
#          cluster_domain: cluster.local
#          cluster_dns_server: <IP_ADDRESS>
#
    services:
      etcd:
        backup_config:
          interval_hours: 12
          retention: 6
        creation: "12h"
        extra_args:
          election-timeout: "5000"
          heartbeat-interval: "500"
        retention: "72h"
        snapshot: false
      kube-api:
        always_pull_images: false
        pod_security_policy: false
        service_node_port_range: "30000-32767"
      kubelet:
        cluster_domain: "sdp.csi.it"
        fail_swap_on: false
    ssh_agent_auth: false
auth_image: "erikwilson/kube-api-auth:latest"
ca_cert: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN3akNDQWFxZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFTTVJBd0RnWURWUVFERXdkcmRXSmwKTFdOaE1CNFhEVEU1TURJd05qQTROREl5TTFvWERUSTVNREl3TXpBNE5ESXlNMW93RWpFUU1BNEdBMVVFQXhNSAphM1ZpWlMxallUQ0NBU0l3RFFZSktvWklodmNOQVFFQkJRQURnZ0VQQURDQ0FRb0NnZ0VCQU0zQXV6RGZ3T09lClg2ZDU5WWRWVGtsQ3UyaHVySElCV3RIc3F1bXJNU25WZEFKKzJZSHZxV0tRWU1iQU1leGN1ZkYxRXpOSjJRMlMKQitxMEVKblRNbUM3a1Z6aSt1cmpJMlFRNkgvbXUrNDhiQ2NOMEQ2MEMxNk01VExSV1E4bzBxUEc3eFVuUUU3Nwp3cWFHazRMMS9RQU5McklCaThSbGI2OU9TYlRVVmNnMDd5Q256N3hWMHFzZE0yNnovSS8zTGtFcXJjMzU2dlJUCjFabUJHS0k4djVLUHBnbGRodmlBQ1JoS2haazRMN0pvdEE5RXVFaHYxaER5WkRuOG92blNGZ2FUMGRnTFhZVmIKZ29pRTZ2WjBaUHNCVFFVREhkRy80cE5yb2Z0WTlVNlR3U2lTSkxYeGFzU2dYZXFBNTIxNGhIMXlkQndSL29pdApHc3RINzJjUXJWc0NBd0VBQWFNak1DRXdEZ1lEVlIwUEFRSC9CQVFEQWdLa01BOEdBMVVkRXdFQi93UUZNQU1CCkFmOHdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQWVSUTh6bnNRWGFzbmREc1RZT1ZtczV4SW5xU3Uwa1J2Q2kKd1JBUzU4a0VxOC93VHQ4K2RNQnhzcjVmU1VLL1hodWRTSlBFeFZXK3dEbFdzejVlbW0wY25lN1BoSGlUdlNHRQo0MGFsU3VCMGt5UE1Hc1M2ek4zVC9YT3B4WjcxcEZwOGdvZTRtSGQ4U2g5UWJRbFIvYWgwaVFvM2t5MEUwbWNWClhuMkFrTTNkM0xRaklodk14aHB6L3I0dHNNRXlRcFdYOXh2Y1B4dWQ4ZXFXQ3FyTHljSFVuTXR2bHo2bEdxZG4KZFF0QVR3anVIank4bjRqODBmUmZUTkVuUjBrWkFtL0MrOGtva1FKSkxGbnA4V2RZeitSbkdXT2dMODlhTWZzQQoyckpaZTd4ckFXQng0ei9udXExZnp5MEdCTjRwOWNsOHM0RXhqcmJtOFVXNER5eDJONjQ9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K"
capabilities:
  ingress_capabilities:
    -
      custom_default_backend: false
      ingress_provider: "Nginx"
  load_balancer_capabilities:
    enabled: false
    health_check_supported: false
  node_pool_scaling_supported: false
  node_port_range: "30000-32767"
capacity:
  cpu: "4"
  memory: "3880964Ki"
  pods: "110"
component_statuses:
  -
    conditions:
      -
        message: "ok"
        status: "True"
        type: "Healthy"
    name: "controller-manager"
  -
    conditions:
      -
        message: "{\"health\": \"true\"}"
        status: "True"
        type: "Healthy"
    name: "etcd-0"
  -
    conditions:
      -
        message: "ok"
        status: "True"
        type: "Healthy"
    name: "scheduler"
conditions:
  -
    last_update_time: "2019-02-06T08:39:13Z"
    status: "True"
    type: "BackingNamespaceCreated"
  -
    last_update_time: "2019-02-06T08:39:13Z"
    status: "True"
    type: "DefaultProjectCreated"
  -
    last_update_time: "2019-02-06T08:39:13Z"
    status: "True"
    type: "SystemProjectCreated"
  -
    last_update_time: "2019-02-06T08:39:13Z"
    status: "True"
    type: "InitialRolesPopulated"
  -
    last_update_time: "2019-02-06T08:39:13Z"
    status: "True"
    type: "CreatorMadeOwner"
  -
    last_update_time: "2019-02-06T08:42:17Z"
    status: "True"
    type: "Pending"
  -
    last_update_time: "2019-02-06T08:44:36Z"
    status: "True"
    type: "Provisioned"
  -
    last_update_time: "2019-02-06T08:44:52Z"
    status: "True"
    type: "Waiting"
  -
    last_update_time: "2019-02-06T08:39:13Z"
    status: "True"
    type: "NoDiskPressure"
  -
    last_update_time: "2019-02-06T08:39:13Z"
    status: "True"
    type: "NoMemoryPressure"
  -
    last_update_time: "2019-02-06T08:44:40Z"
    status: "True"
    type: "GlobalAdminsSynced"
  -
    last_update_time: "2019-02-06T08:46:59Z"
    status: "True"
    type: "PrometheusOperatorDeployed"
  -
    last_update_time: "2019-02-06T08:44:48Z"
    status: "True"
    type: "SystemAccountCreated"
  -
    last_update_time: "2019-02-06T08:44:49Z"
    status: "True"
    type: "AgentDeployed"
  -
    last_update_time: "2019-02-06T08:44:52Z"
    status: "True"
    type: "Ready"
  -
    last_update_time: "2019-02-06T08:45:44Z"
    status: "True"
    type: "Updated"
  -
    last_update_time: "2019-02-06T08:45:03Z"
    status: "True"
    type: "ServiceAccountMigrated"
  -
    last_update_time: "2019-02-06T08:49:22Z"
    message: "[Grafana Deployment isn't deployed, Kube State Exporter Deployment isn't deployed, Prometheus StatefulSet isn't deployed, Node Exporter DaemonSet isn't deployed]"
    status: "Unknown"
    type: "MonitoringEnabled"
created: "2019-02-06T08:39:13Z"
creator_id: "user-4kdvr"
#
#   # Rancher Config
#
docker_root_dir: "/var/lib/docker"
driver: "rancherKubernetesEngine"
enable_cluster_alerting: false
enable_cluster_monitoring: true
enable_network_policy: true
id: "c-2qnhs"
internal: false
labels:
  cattle.io/creator: "norman"
limits:
  cpu: "10m"
  memory: "190Mi"
  pods: "0"
local_cluster_auth_endpoint:
  enabled: true
monitoring_status:
  conditions:
    -
      last_update_time: "2019-02-06T08:47:04Z"
      message: "Grafana Deployment isn't deployed"
      reason: "Error"
      status: "False"
      type: "GrafanaDeployed"
    -
      last_update_time: "2019-02-06T08:47:04Z"
      message: "Node Exporter DaemonSet isn't deployed"
      reason: "Error"
      status: "False"
      type: "NodeExporterDeployed"
    -
      last_update_time: "2019-02-06T08:47:04Z"
      message: "Kube State Exporter Deployment isn't deployed"
      reason: "Error"
      status: "False"
      type: "KubeStateExporterDeployed"
    -
      last_update_time: "2019-02-06T08:47:04Z"
      message: "Prometheus StatefulSet isn't deployed"
      reason: "Error"
      status: "False"
      type: "PrometheusDeployed"
    -
      last_update_time: "2019-02-06T08:47:06Z"
      status: "True"
      type: "MetricExpressionDeployed"
name: "sdptools"
requested:
  cpu: "540m"
  memory: "140Mi"
  pods: "9"
state: "active"
transitioning: "no"
uuid: "ae4c3813-29ea-11e9-80c8-0242ac110002"
version:
  build_date: "2018-12-13T10:31:33Z"
  compiler: "gc"
  git_commit: "eec55b9ba98609a46fee712359c7b5b365bdd920"
  git_tree_state: "clean"
  git_version: "v1.13.1"
  go_version: "go1.11.2"
  major: "1"
  minor: "13"
  platform: "linux/amd64"

Docker version (use docker version):

Client:
 Version:           18.06.1-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        e68fc7a
 Built:             Tue Aug 21 17:23:03 2018
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.1-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       e68fc7a
  Built:            Tue Aug 21 17:25:29 2018
  OS/Arch:          linux/amd64
  Experimental:     false

Here logs from rancher:
[main] 2019/02/06 10:07:10 Starting Tiller v2.10+unreleased (tls=false)
[main] 2019/02/06 10:07:10 GRPC listening on :50611
[main] 2019/02/06 10:07:10 Probes listening on :34688
[main] 2019/02/06 10:07:10 Storage driver is ConfigMap
[main] 2019/02/06 10:07:10 Max history per release is 0
[main] 2019/02/06 10:07:10 Starting Tiller v2.10+unreleased (tls=false)
[main] 2019/02/06 10:07:10 GRPC listening on :45656
[main] 2019/02/06 10:07:10 Probes listening on :39774
[main] 2019/02/06 10:07:10 Storage driver is ConfigMap
[main] 2019/02/06 10:07:10 Max history per release is 0
[tiller] 2019/02/06 10:07:11 getting history for release system-monitor
[storage] 2019/02/06 10:07:11 getting release history for "system-monitor"
Release "system-monitor" does not exist. Installing it now.
[tiller] 2019/02/06 10:07:11 preparing install for system-monitor
[storage] 2019/02/06 10:07:11 getting release history for "system-monitor"
[tiller] 2019/02/06 10:07:11 rendering rancher-monitoring chart using values
[tiller] 2019/02/06 10:07:11 performing install for system-monitor
[tiller] 2019/02/06 10:07:11 executing 0 crd-install hooks for system-monitor
[tiller] 2019/02/06 10:07:11 hooks complete for crd-install system-monitor
[tiller] 2019/02/06 10:07:11 getting history for release cluster-monitoring
[storage] 2019/02/06 10:07:11 getting release history for "cluster-monitoring"
Release "cluster-monitoring" does not exist. Installing it now.
[tiller] 2019/02/06 10:07:11 preparing install for cluster-monitoring
[storage] 2019/02/06 10:07:11 getting release history for "cluster-monitoring"
[tiller] 2019/02/06 10:07:11 rendering rancher-monitoring chart using values
[tiller] 2019/02/06 10:07:11 failed install perform step: validation failed: unable to recognize "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1"
2019/02/06 09:07:11 [ERROR] AppController p-jm6nw/system-monitor [helm-controller] failed with : failed to install app system-monitor. Error: validation failed: unable to recognize "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1"

2019/02/06 10:07:11 info: manifest "rancher-monitoring/charts/exporter-coredns/templates/endpoints.yaml" is empty. Skipping.
2019/02/06 10:07:11 info: manifest "rancher-monitoring/templates/deployment.yaml" is empty. Skipping.
2019/02/06 10:07:11 info: manifest "rancher-monitoring/charts/exporter-kube-dns/templates/endpoints.yaml" is empty. Skipping.
2019/02/06 10:07:11 info: manifest "rancher-monitoring/templates/metrics-service.yaml" is empty. Skipping.
2019/02/06 10:07:11 info: manifest "rancher-monitoring/charts/grafana/templates/pvc.yaml" is empty. Skipping.
2019/02/06 10:07:11 info: manifest "rancher-monitoring/templates/servicemonitor.yaml" is empty. Skipping.
[tiller] 2019/02/06 10:07:11 performing install for cluster-monitoring
[tiller] 2019/02/06 10:07:11 executing 0 crd-install hooks for cluster-monitoring
[tiller] 2019/02/06 10:07:11 hooks complete for crd-install cluster-monitoring
[tiller] 2019/02/06 10:07:12 failed install perform step: validation failed: [unable to recognize "": no matches for kind "Prometheus" in version "monitoring.coreos.com/v1", unable to recognize "": no matches for kind "PrometheusRule" in version "monitoring.coreos.com/v1", unable to recognize "": no matches for kind "PrometheusRule" in version "monitoring.coreos.com/v1", unable to recognize "": no matches for kind "PrometheusRule" in version "monitoring.coreos.com/v1", unable to recognize "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1", unable to recognize "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1", unable to recognize "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1", unable to recognize "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1", unable to recognize "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1", unable to recognize "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1", unable to recognize "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1", unable to recognize "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1", unable to recognize "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1", unable to recognize "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1", unable to recognize "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1", unable to recognize "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1"]

It seems that the rancher chart URL is empty:
https://git.rancher.io/charts

I'm going to remove the 2.2.0-alpha6 in the next days so if needed some feedback let me know, machines will be unavailable for some time.

Can you let me know if this still occurs on latest rc and if so, the steps to reproduce?


Thrift::TransportException: Broken pipe

Hi
I have installed Hadoop, Hive, added gem rbhive
While executing,
RBHive.tcli_connect("localhost", 9998, {:hive_version => :cdh5, :transport => :sasl, :sasl_params => {} }) do |connection|
connection.fetch('SHOW TABLES')
end

I am getting Error
Initializing transport sasl
Connecting to HiveServer2 localhost on port 9998
Thrift::TransportException: Broken pipe
	from /home/dheena/.rvm/gems/ruby-2.2.2/gems/thrift-<IP_ADDRESS>/lib/thrift/transport/socket.rb:90:in `rescue in write'

Are you actually using SASL auth? Have you tried just...
RBHive.tcli_connect('localhost', 9998) do |connection|
  connection.fetch('SHOW TABLES')
end


Importing File by category using Laravel Excel 2.*

Hi everyone!
I have a problem with importing XLS file with category. So I have this controller.

public function importExcel(Request $request)
	{
		if($request->hasFile('import_file')){
			Excel::load($request->file('import_file')->getRealPath(), function ($reader) {
				foreach ($reader->toArray() as $key => $row) {
					$cv = array_values($row);
    				$data['stir'] = $cv[0];
    				$data['berildi'] = $cv[1];
    				$data['lit_num'] = $cv[2];
    				$data['gacha'] = $cv[3];
    				$data['cat_id'] = 'cat_id';

    				if (!empty($data) )
    				{
    				DB::table('my_date')->insert($data);
    				}
				}
			});
		}
		Session::put('success', 'Youe file successfully import in database!!!');
		return back();
	}

And i have this view (Form)

< input id="import_file" type="file" class="form-control{{ $errors->has('import_file') ? ' is-invalid' : '' }}" name="import_file" value="{{ old('import_file') }}" required autofocus >
                 < select class="form-control" id="cat_id" name="cat_id" required>
                  < option value="" >-- Select Category --</option>
                  @foreach($categories as $i => $category)
                  @if(isset($list->cat_id) && $list->cat_id==$category->id)
                  < option value="{{$category->id}}" selected >{{$category->id}} | {{$category->category_name}}</option>
                  @else
                  < option value="{{$category->id}}">{{$category->id}} | {{$category->category_name}}</option>
                  @endif
                  @endforeach
              < /select>

And this error

"SQLSTATE[HY000]: General error: 1366 Incorrect integer value: 'cat_id' for column 'cat_id' at row 1 (SQL: insert into `my_date` (`stir`, `berildi`, `lit_num`, ` ▶"

How can i fix this? That i need import file via category id. Thanks!

Well you are string to insert a string into cat_id ($data['cat_id'] = 'cat_id';) and your sql is squeaking about that. Doesn't seem related to this package. Also please note that version 2.* is no longer actively maintained.

Thanks. When i use like this ($data['cat_id'] = 1;) this is working. But i need user choose this category by input form ( value =''category id '').
So than that's i used version 2.x because i didn't use tge IMPORT funcyion with version 3.0.
Thanks.

We are not a support form. These kind of questions you can better ask on stackoverflow or a forum. The issue tracker on github is meant for reporting bugs. Your question is unrelated to this package in my opinion.


Add section about using with create-react-app

Closes #549

Thanks @rohit-smpx! Can you please add the section title to the Table Of Contents as well ?

Thanks! ;)


[vault-secrets-webhook] Registry pinging error

Describe the bug:
vault-secrets-webhook-f6fc96f66-4qr6c vault-secrets-webhook time="2021-06-03T19:01:32Z" level=error
msg="admission webhook error: cannot fetch image descriptor: Get \"https://index.docker.io/v2/\":
dial tcp <IP_ADDRESS>:443: connect: connection refused" app=vault-secrets-webhook

Expected behaviour:
It seemed that this issue has already been resolved (registry pinging  = off) https://github.com/banzaicloud/bank-vaults/pull/750
Environment details:

Kubernetes version (e.g. v1.10.2): v1.19.7
bank-vaults version (e.g. 0.4.17): 1.11.3
Install method (e.g. helm or static manifests): helm

/kind bug

This seems to be a networking issue: dial tcp <IP_ADDRESS>:443: connect: connection refused
If we turn ping off the next HTTP request towards the registry would result in the same error. I think this is a network configuration issue in your cluster rather.

The point is that I can run the image as long as I don't use secret injection, where the image is checked first.
Is it possible to somehow turn ping off?


Export-ACMECertificate with password doesn't work

the last line has a typo:
$CertificateKey.ExportPfx($certicate, $Passsword) | Set-Content $Path -Encoding byte
should be $Password instead of $Passsword

Fixed via 0b3074b in Version 1.0.3, which will be available in PSG, shortly.


Xadmin view and filtering : Wich method to override ?

Hi,
I'll want to override admin template (adminx.py) to filter one field (ListField).
For example, I've the following model (models.py)  :
class Book(models.Model):
name = models.CharField(max_length=100)
author = models.ForeignKey('Author')
class Author(models.Model):
name = models.CharField(max_length=100)
display = models.BooleanField()
In my xadmin template (adminx.py):
class BookAdmin(object):
 form_layout = (
                       TabHolder(
                                Tab('General',
                                FieldSet(None, name, author),
                         ),
     )

   def  my_function_to_override( arg ?)
        my_filter = Author.objects.filter(display=True)
        return my_filter

I just want display list of Author whom display field is True.
Please help me !
Thanks

add
def queryset(self):
qs = super(BannerCourseAdmin, self).queryset()
qs = qs.filter(is_banner=True)
return qs
in your "class Author"


The return type on the getters is incorrect

The return type of string on all (or most) of the getters is incorrect.  A lot of them can return null as well as a string.
Happy to submit a PR, but would you prefer…

that they always cast to a string, to match the annotated return type; or
that the return type is updated to string|null;

This repository has not been maintained for years, closing this issue.


feat!: extended the postgresql module to accept IAM users and services accounts

The postgresql module has been extended to accept IAM users (both Google IDs and Service Accounts) as valid users to the database. In addition to that, this PR contains an example for provisioning IAM users and a corresponding integration test.

Thanks for the PR! 🚀✅ Lint checks have passed.

@bharathkkb - please take a look at the changes now. Thnx.


Short sequences

Hello,
Is it possible to use your library to train HMM for short sequences?
I have some short sequeces  (vectors of length from 8 to 25) And want to build the model which will be able to return probability score for each sequence.
All your examples  contain 1 big sequence. So I'm wondering if it is possible to use multiple for training?

We have not implemented training on multiple sequences. Note that we have two different training methods:
a) F^Q --  which relies on co-occurrence matrix
b) F^ML --  which optimises the log-likelihood of observations.
Implementing training on multiple sequences in a) is quite straightforward (it is no effort to compute the co-occurrence matrix then). However, implementing it in b) would require more work (but is doable). Mainly because, by default we sample shorter subseqences.
Of course you can always concatenate your sequences, be since there are short and you have plenty of them -- however a distortion on "connections" could influence everything significantly.


feat(checkout): CHECKOUT-6652 provide accessibility label for Address…

What?
Add aria-labelledby attribute to class name "dropdown--select" and added an ID to the a tag link to which the aria-labelledby can be pointed.
“Some elements get their accessible name from their inner content. For example, the accessible name for a , , or  comes from the text between the opening and closing tags.”
“… All interactive elements must have an accessible name. aria-labelledby can be used to reference another element to define its accessible name, when an element's accessible name needs to use content from elsewhere in the DOM.”
Based on this I’ve gone with using aria-labelledby within the element with class name "dropdown--select" directed at the  tag link containing the text “Enter a new address”  -
aria-labelledby - Accessibility | MDN
...
Why?
CHECKOUT-6652
https://bigcommercecloud.atlassian.net/browse/CHECKOUT-6652
...
Testing / Proof
BEFORE:

AFTER:

...
@bigcommerce/checkout

Hi there, Thanks for creating the PR.
Could we record a demo video to show this is working? On a mac, we can use VoiceOver function to test accessibility issue.

I have to admit, not knowing much about accessibility before taking this on, I took the ticket requirements at face value without considering an actual screen reader. Thank you for being the voice of reason on this. Getting this working with VoiceOver was a bit more involved than I had initially anticipated, but here are the results.
Before:
https://user-images.githubusercontent.com/5630999/168719680-19e6eb5f-bbf8-4c20-999b-174a25a85454.mp4
After:
https://user-images.githubusercontent.com/5630999/168719768-dae0a597-c77b-4db2-963c-dd31cf2df21e.mp4
Why make AddressSelectButton its own component?
-Needed to use translate, and the pattern within the app seems to be exporting the component withLanguage()
Why “aria-description”?
-“In cases where providing a visible description is not the desired user experience, authors MAY set the accessible description of the element using aria-description. “
https://w3c.github.io/aria/#aria-description
Since we communicate this visually with a down arrow (not words) we need to use description for the screen reader to explain the equivalent with words, and those words are not directly provided on the page. Changing the down arrow to words would be cluttered and undesirable, so  “aria-description” seems appropriate.
What about this warning?
“Warning: Invalid aria prop aria-description on  tag. For details, see https://fb.me/invalid-aria-prop”
-This warning seems to be an error with React and will be fixed in React 18 - https://github.com/facebook/react/issues/21035 - the error is not valid (see Why “aria-description” above”
What’s with the changes to checkout-js/src/app/shipping/ShippingAddress.spec.tsx ?
-Without these changes 'calls onAddressSelect when an address is selected' will fail, because the withLanguage() Higher Order Component will not be rendered with mount(). I copied this idea from checkout-js/src/app/address/AddressFormModal.spec.tsx:22~48
Why Remove Combobox?
Combobox seems to be more for a text input box with auto-fill. https://www.w3.org/TR/2019/NOTE-wai-aria-practices-1.1-20190814/examples/combobox/aria1.0pattern/combobox-autocomplete-both.html  We want it to read the address and then let the user know that they can select more saved addresses or enter a new address. Using aria-label or aria-labeled by will override the address reading and does not provide an equivalent to the down arrow icon. With combobox, the screen reader expects there to be immediate text input available, so the suggestions are not accurate to what’s going on in the UI (see videos above).

@huntario I believe you did an excellent job improving checkout accessibility. 👍🏻👍🏻👍🏻
Just want to confirm this PR won't break BCapp functional tests. What do you think? @animesh1987


🧹 Rename all references of "Breadcrumbs Bar" to "Path Bar"

Describe the solution you'd like
We are currently referring to the piece of UI under the tabs and above the editor that lets the user know where the currently open file is located in the project as the "breadcrumbs bar". We have recently found that Apple refers to it as the "path bar" in Finder and we think it is appropriate to do the same within CodeEdit.

We need to rename all references to reflect this name change.

I'll fix this.


Bump version

Pull Request Test Coverage Report for Build<PHONE_NUMBER>0
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 92.83%

Totals

Change from base Build<PHONE_NUMBER>0:
0.0%

Covered Lines:
3440

Relevant Lines:
3663

💛  - Coveralls


Pypi Package cannot be started as command - snapcraft build fails

Program can be run via python3 -m ocrmypdfgui
Starting from commandline via $ocrmypdfgui returns "command not known"
snapcraft does not find the command as well.

Splitting into two issues:
1 - Pip package cannot be started via command - entrypoint issue
2 - snapcraft build completes but yields no working snap

Adding the correct Path to $PATH is essential.
Was not an Issue of ocrmypdfgui itself


Remove GPT-in-a-Box 1.0 docs

@lauranutanix validation failed with some broken link can you check please

Yes, thank you
Laura Jordana | Director, Technical Marketing
m:+15105070233 |<EMAIL_ADDRESS>| w:www.nutanix.comhttp://www.nutanix.com/ | a: SF Bay Area, CA (UTC-8)
From: Christophe Jauffret @.>
Date: Friday, November 22, 2024 at 12:44 AM
To: nutanix-cloud-native/opendocs @.>
Cc: Laura Jordana @.>, Mention @.>
Subject: Re: [nutanix-cloud-native/opendocs] Remove GPT-in-a-Box 1.0 docs (PR #67)
all check have passed @lauranutanix [github. com] ready to publish ? — Reply to this email directly, view it on GitHub [github. com], or unsubscribe [github. com]. You are receiving this because you were mentioned. Message ID: <nutanix-cloud-native/opendocs/pull/67/c2493201844@ github. com>
ZjQcmQRYFpfptBannerStart
CAUTION: External Email
ZjQcmQRYFpfptBannerEnd
all check have passed @lauranutanix [github.com]https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_lauranutanix&d=DwMFaQ&c=s883GpUCOChKOHiocYtGcg&r=xaThL817bqXUgJh8C460ogaOjt72-Ad57-1Q8gtION0&m=fD0fgXmfWiF64dK4rbl_WRuX96A22utVfcIB3KZupkbvOi5FLrp7zY2dZRUNut0s&s=DF9Pt12C2JXTWFGrtAg5M3iAHBQ_RF87TJXbKrXtqY8&e= ready to publish ?
—
Reply to this email directly, view it on GitHub [github.com]https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_nutanix-2Dcloud-2Dnative_opendocs_pull_67-23issuecomment-2D2493201844&d=DwMFaQ&c=s883GpUCOChKOHiocYtGcg&r=xaThL817bqXUgJh8C460ogaOjt72-Ad57-1Q8gtION0&m=fD0fgXmfWiF64dK4rbl_WRuX96A22utVfcIB3KZupkbvOi5FLrp7zY2dZRUNut0s&s=6hR1laC2ZkVA3_yShU7OWxwXp3BcFJvmkzAnT4JIWRM&e=, or unsubscribe [github.com]https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_A4GWVSULCUQW3ZGLAM3ARBD2B3VE3AVCNFSM6AAAAABSIQACGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJTGIYDCOBUGQ&d=DwMFaQ&c=s883GpUCOChKOHiocYtGcg&r=xaThL817bqXUgJh8C460ogaOjt72-Ad57-1Q8gtION0&m=fD0fgXmfWiF64dK4rbl_WRuX96A22utVfcIB3KZupkbvOi5FLrp7zY2dZRUNut0s&s=Y9NvnJ8hABEq4AjUDXyL0NnDoDZ8VE4357CUVFMTWCw&e=.
You are receiving this because you were mentioned.Message ID: @.***>


Update Description and Code for latest jsoncpp release

Hi there,
I just downloaded tiledjson since I figured there was no point in reinventing the wheel if a suitable library already exists for my needs.
However, in order to work with the latest version of jsoncpp, JsonTMXImporter.cpp needs to be updated at lines 49 and 152 to fix a compile error to what I'm assuming was a type deprecation in how their classes worked.
The fix is to replace JSON::ValueIterator with JSON::Value::const_iterator and that does the trick just fine.
Another quick issue I discovered whilst trying to import my file is that the instructions for importing a json map is different to what is listed in the readme. It seems that you can no longer pass in a filepath to the TiledMap constructor, instead you have to create the TiledMap and call loadFromFile ( filepath ) instead.
That's all I've noticed so far!
Thanks.

Thanks for letting me know! I haven't been actively working in C++ for a while, so I haven't been maintaining this lately. I'll get it updated soon.

I've updated JsonTMXImporter to work with the newer version of jsoncpp. I've also updated the instructions in the README to better reflect how to use tiledjson.


Add CCSID parameter to the connector configuration

Description

Fixes #124
Type of change

[x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?
No additional tests added for this feature
Checklist

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

I have put this PR back into draft status, as this connector as it stands does not implement the standard way of populating empty configuration values with the defaults set in MQSourceConnector.config (step 1 of https://www.confluent.io/blog/create-dynamic-kafka-connect-source-connectors/)
The changes as they are will cause the connector to fail where no mq.ccsid config value is set. A fix with default handling for this field is upcoming.

Given the last comment we feel there is a better way of doing this.


Added OpsMx-Spinnaker-Operator-V.1.17.4

Thanks submitting your Operator. Please check below list before you create your Pull Request.

Flat operator directory structure is obsolete from 23-rd of October 2019, only nested directory structure will be accepted.

New Submissions

[x] Has you operator nested directory structure?
[x] Have you selected the Project Community Operator Submissions in your PR on the right-hand menu bar?
[x] Are you familiar with our contribution guidelines?
[x] Have you packaged and deployed your Operator for Operator Framework?

[x] Is your submission signed?

Updates to existing Operators

[x] Is your new CSV pointing to the previous version with the replaces property?
[x] Is your new CSV referenced in the appropriate channel defined in the package.yaml ?
[x] Have you tested an update to your Operator when deployed via OLM?
[x] Is your submission signed?

Your submission should not

[x] Modify more than one operator
[x] Modify an Operator you don't own
[x] Rename an operator - please remove and add with a different name instead
[x] Submit operators to both upstream-community-operators and community-operators at once
[x] Modify any files outside the above mentioned folders
[x] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[x] Description about the managed Application and where to find more information
[x] Features and capabilities of your Operator and how to use it
[x] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[x] Human readable name and 1-liner description about your Operator
[x] Valid category name1
[x] One of the pre-defined capability levels2
[x] Links to the maintainer, source code and documentation
[x] Example templates for all Custom Resource Definitions intended to be used
[x] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file a PR against this repo and explain your need
2 For more information see here

@dmesser  can you please check this and approve ? Also my previous Operator (Spinnaker Operator) is still at old version. even tho i pushed 2 latest versions. the Site still shows the Old Operator version.
new version - 1.17.4
Old version - 1.13.2
Can you please let me know am i missing something ?

@J0zi  any reason why the operatorhub.io still shows old operator version ?


Does not work anymore

Your great FF-addon YouTube Classic does not work anymore. The new Youtube layout takes over. Been so the last two-three days.
Thank you!
BO

see https://github.com/xxzefgh/youtube-classic-extension/issues/42 for the currently known solutions


feat: wot

Pull Request Test Coverage Report for Build<PHONE_NUMBER>7
Details

13 of 14 (92.86%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.002%) to 93.869%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/nostr/services/nostr-relay.service.ts
7
8
87.5%

Totals

Change from base Build<PHONE_NUMBER>0:
-0.002%

Covered Lines:
667

Relevant Lines:
727

💛  - Coveralls


Got an error while setting up the GraphQL sandbox locally

Hi @arunoda,
I’ve also been very interested in GraphQL (and Meteor as you know :-)) and I’m amazed that you have created such a great resource to learn it and play with it. You are seriously amazing :-)
Anyway, here is my bug report.

Maybe this is due to my node or npm versions?
➜ node --version
v0.12.7
➜ npm --version
3.3.5

Okay. That's because of npm 3. We need to define peerDependencies. Let me fix it.

Check now.
Thanks for the props :)

BTW: Give us a little review: https://learngraphql.com/reviews :)

3cf03408edbaaeb1d0a681dbbfea8705ed926faa fixed it, thanks :-)

Here is another one on the server-side-schema branch:
➜  graphql-blog-schema git:(server-side-schema) ✗ npm install
npm WARN install Couldn't install optional dependency: Unsupported

><EMAIL_ADDRESS>install /tmp/graphql-blog-schema/node_modules/bufferutil
> node-gyp rebuild

make: Entering directory '/tmp/graphql-blog-schema/node_modules/bufferutil/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  COPY Release/bufferutil.node
make: Leaving directory '/tmp/graphql-blog-schema/node_modules/bufferutil/build'

><EMAIL_ADDRESS>install /tmp/graphql-blog-schema/node_modules/kerberos
> (node-gyp rebuild) || (exit 0)

make: Entering directory '/tmp/graphql-blog-schema/node_modules/kerberos/build'
  CXX(target) Release/obj.target/kerberos/lib/kerberos.o
In file included from ../lib/kerberos.cc:1:0:
../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: Aucun fichier ou dossier de ce type
 #include <gssapi/gssapi.h>
                           ^
compilation terminated.
kerberos.target.mk:93: recipe for target 'Release/obj.target/kerberos/lib/kerberos.o' failed
make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1
make: Leaving directory '/tmp/graphql-blog-schema/node_modules/kerberos/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 4.1.2-040102-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/graphql-blog-schema/node_modules/kerberos
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN prefer global<EMAIL_ADDRESS>should be installed with -g

><EMAIL_ADDRESS>install /tmp/graphql-blog-schema/node_modules/utf-8-validate
> node-gyp rebuild

make: Entering directory '/tmp/graphql-blog-schema/node_modules/utf-8-validate/build'
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  COPY Release/validation.node
make: Leaving directory '/tmp/graphql-blog-schema/node_modules/utf-8-validate/build'
npm WARN EPEERINVALID<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>|| ~1.0.0-rc-0 but none was installed.

Hey, are you sure we are on the correct branch. This version does not have eslint related plugins anyway. Could you remove node_modules directory and try out again.

May be try using Node 4.2.0

I still get an error on Node 4 (after removing nodes_modules):
➜  graphql-blog-schema git:(server-side-schema) ✗ npm install

><EMAIL_ADDRESS>install /tmp/graphql-blog-schema/node_modules/kerberos
> (node-gyp rebuild) || (exit 0)

make: Entering directory '/tmp/graphql-blog-schema/node_modules/kerberos/build'
  CXX(target) Release/obj.target/kerberos/lib/kerberos.o
In file included from ../lib/kerberos.cc:1:0:
../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: Aucun fichier ou dossier de ce type
 #include <gssapi/gssapi.h>
                           ^
compilation terminated.
kerberos.target.mk:94: recipe for target 'Release/obj.target/kerberos/lib/kerberos.o' failed
make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1
make: Leaving directory '/tmp/graphql-blog-schema/node_modules/kerberos/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/maxime/.nvm/versions/node/v4.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.1.2-040102-generic
gyp ERR! command "/home/maxime/.nvm/versions/node/v4.0.0/bin/node" "/home/maxime/.nvm/versions/node/v4.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/graphql-blog-schema/node_modules/kerberos
gyp ERR! node -v v4.0.0
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok

Hmm. That's the node issue failing here. Let me google it.

Yep apt-get install libkrb5-dev fixed it, but it’s a bit confusing

Yeah! I saw that. So weird. I didn't get this on mac.
I think this is something mongo uses.

I’m on Ubuntu

Yeah! Got it.

See more on this: https://github.com/christkv/kerberos/issues/21
(BTW: See that's why Meteor packaging is great)

(Yep, I was about to say the same thing about Meteor packaging. I had so many non deterministic bugs with NPM...)

Shall we close this issue?

It’s still an issue but I guess you can’t do much about it. (Also the GraphiQL client still can’t connect to the server in this server-side-schema apparently)

Hmmm


Decentralized Dwitter Grant

Grant Application Checklist

[X] The application-template.md has been copied, renamed ( "project_name.md") and updated.
[X] A BTC address for the payment of the milestones is provided inside the application.
[X] The software of the project will be released under the Apache license version 2.0 as specified in the terms and conditions.
[X] The total funding amount of the project is below CHF 30k at the time of submission.

Regarding the MetaMask integration:

You can take a look at https://github.com/paritytech/frontier
And https://github.com/NodeFactoryIo/metamask-snap-polkadot

Hello! Commenting inline.

Thanks for the application. This sounds really interesting. A few questions/comments from my side:
Thanks! This platform and service would mean a lot to us and many people!

Could you change the total amount of the grant to BTC (since this is a requirement of the open grants program)?
Done!

Could you integrate unit tests into your deliverables?
Done, also benchmarks.

How is your dns solution different from https://github.com/xaya/substrate-names.
We were aiming to use substrate-names for unique identifiers, we are just not yet sure on how to expose the platform to the public DNS and web3. Added a substrate-name module to deliverable to be clear that we are using Polkadot/Substrate for Unique Names.

Are you planning to use the above implementation?
Yes.

Btw. you could potentially also apply for https://github.com/filecoin-project/devgrants. Let me know in case this sounds interesting to you and I can put you in contact with the team.

Thanks! Will Do!

@Noc2 I added Filecoin in potential replacement of IPFS and updated the BTC CHF exchange rate with a Unix Timestamp to indicate a total amount of 30,000 CHF project funding. I kindly request to re-approve for review.

Adding @rphmeier and @jplatts12 in response to @Noc2 👍

What's the process to change the project URL to https://github.com/goldfink/follow ? This is where development will happen

@goldfink I updated it in the grants accepted list. I don’t think it’s necessary to update it here.

@goldfink I updated it in the grants accepted list. I don’t think it’s necessary to update it here.

Thanks!


Thanos SnApp

I have implemented a webapp where you can figure out (randomly, but each name always have the same resoult) if you would disappear because of Thanos snap. It works hashing the name you give it, using the first 4 bits to make an integer, if the integer is even you are alive, else you are dead. Simple.
I used html and css from an existing web (https://thanosjs.org) and I modified the html for my porpouse, in addition to I have created other css that I needed.
For hashing and more I used the google lib guava.
I have documented all of my code.

I just merged #25. You should resolve the conflicts with
README.md
src/main/java/es/unizar/webeng/hello/HelloController.java
src/main/webapp/WEB-INF/jsp/wellcome.jsp
src/test/java/es/unizar/webeng/hello/HelloControllerUnitTest.java


'ValidatedEmail' object has no attribute 'normalized'

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
For pydantic 2.3.0 and pydantic-core 2.6.3 getting this error:
AttributeError: 'ValidatedEmail' object has no attribute 'normalized'
Example Code
from pydantic import BaseModel, EmailStr

class A(BaseModel):
    m: EmailStr

A.model_validate({"m"<EMAIL_ADDRESS>
Python, Pydantic & OS Version
pydantic version: 2.3.0
        pydantic-core version: 2.6.3
          pydantic-core build: profile=release pgo=true
                 install path: /home/bKash.com_mallik.vivasoft/.cache/pypoetry/virtualenvs/bkash-payroll-disbursement-mw-nrLUCnFp-py3.10/lib/python3.10/site-packages/pydantic
               python version: 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
                     platform: Linux-5.19.0-50-generic-x86_64-with-glibc2.35
     optional deps. installed: ['email-validator', 'typing-extensions']

Selected Assignee: @dmontagu

You most probably have an unsupported email-validator version installed. Try:
pip install -U email-validator

You most probably have an unsupported email-validator version installed. Try:
pip install -U email-validator

It's working. Thanks @Viicos

Thanks @Viicos for helping


Ingest client

Adding script based on Tim's current ingest worker which triggers an EM montage or Reference set by pointing at its directory.

Codecov Report

Merging #52 into develop will decrease coverage by 5.35%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##           develop      #52      +/-   ##
===========================================
- Coverage     60.5%   55.14%   -5.36%
===========================================
  Files           22       24       +2
  Lines          957     1050      +93
===========================================
  Hits           579      579
- Misses         378      471      +93

Impacted Files
Coverage Δ

rendermodules/ingest/schemas.py
0% <0%> (ø)

rendermodules/ingest/ingest_tileset.py
0% <0%> (ø)

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 6d91332...ad3b4c8. Read the comment docs.

This looks ok to me... my only question is whether it belongs in this repo or not... this is the first module that pulls in blue sky as a dependency in this project.  So on a technical note the workflow_client should be added the the requirements.. and workflow_client is presently available externally.  I'm happy to have it here for now, but we should think about it.

You're right -- this and any other ingest (based on microscope type) might be better to have in something like the at_em_blue-sky repo.  That said with render-modules' current setup it shouldn't be too far of a stretch to include workflow_client as an external dependency.


Gradient based optimization tutorial

Added code and markdown tutorial for Ipopt, finite diff optimizer

@ngomezve found a way to have the same number of function calls as no constraint - used a memorization function to "cache" the values for the same point in the design space


Remove all uses of  actorEmail as part of personalDetails migration

cc @puneetlath - this is just another step along our way to completely remove email addresses from reportActions
Details
As part of the personalDetails migration, I removed any uses of reportAction_*.actorEmail.

If we hadn't already, I replaced those with uses of actorAccountID

Fixed Issues
$ Related to https://github.com/Expensify/App/issues/19007
Tests
The changes in this PR are mainly to tests or generic changes. Other changes were mainly related to threads & tasks so I'll focus on testing those for this PR.

Make sure thread avatars work well still

Send a message to an account that doesn't have an avatar
Create a thread on that message
Verify you & the other account see that the thread has the same avatar as your own
As the other account, send a chat to your first account
As your first account, create a thread off of the other user's message
Verify you & the other account see that the thread has the same avatar as the "other account"

Make sure creating tasks still works well

Create task via global create & assign someone to the chat
Verify the avatars show up as expected (assignee & where the task is shared)
Verify you're navigate to the task report, and you can easily get back to the parent by clicking "from " in the report header

[ ] Verify that no errors appear in the JS console

Offline tests

QA Steps

[ ] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Web

Mobile Web - Chrome

Mobile Web - Safari

Desktop

iOS

Android

@puneetlath addressed comments & fixed merge conflicts!

@0xmiroslav @puneetlath ready for re-review 🙏

@0xmiroslav please take the first pass.

@0xmiroslav I just filled out the checklist, thanks for the tests 🙏

Conflict fixed, @MonilBhavsar addressed your comment 👍

Lint fixed 😅  Hopefully tests pass 🙏

Yep checks look happy, @MonilBhavsar @puneetlath @MariaHCD any of y'all wanna approve & merge? 🙏

The App is crashing on main when requesting money from a new user with the error below:

Fix here

🚀 Deployed to staging by https://github.com/Beamanator in version: 1.3.37-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

This caused a regression. See https://github.com/Expensify/App/issues/22286#issuecomment-1622259246

@Beamanator I closed my fix PR since we're reverting this

Welp looks like this was fixed in https://github.com/Expensify/App/pull/22269 so I'll make an un-revert & add @luacmartins 's changes to make sure we're good to go on the next one 🙏 Thanks everyone!

Re-do PR is up here: https://github.com/Expensify/App/pull/22327

🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.37-7 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅


Data is required when using delete, although documentation states it is optional

We upgraded from 1.0.0 to 1.3.0 and our delete calls stopped working.
We had this issue before (https://github.com/capacitor-community/http/issues/153 ). The problem occurs on line 163 of https://github.com/capacitor-community/http/blob/master/ios/Plugin/HttpRequestHandler.swift
let isHttpMutate = method == "DELETE" ||
            method == "PATCH" ||
            method == "POST" ||
            method == `"PUT";

and then on line 181 this is used te determine if we should get data to set the request body
` ```
if isHttpMutate {
do {
guard let data = call.jsObjectRepresentation["data"]
else {
throw CapacitorUrlRequest.CapacitorUrlRequestError.serializationError("Invalid [ data ] argument")
}
            try request.setRequestBody(data)
        } catch {
            // Explicitly reject if the http request body was not set successfully,
            // so as to not send a known malformed request, and to provide the developer with additional context.
            call.reject("Error", "REQUEST", error, [:])
            return;
        }
    }

in my opinion it should be allowed to send an empty body with delete (and arguably even with post or put or patch, if you want to create something based on the URL parameters).

Steps to reproduce the behavior:

Create a call with the plugin 1.0.0 that uses delete with no body

import { HttpHeaders, Http } from '@capacitor-community/http';
const httpHeaders = { 'content-type': 'application/json' };
const result = await Http.del({
url: url,
headers: httpHeaders
});
}

Run it  in 1.1.0 -> success
Upgrade to 1.3.0

Run it
Error occurs "REQUEST"
All other calls are still working (post, get, put)

Expected behavior
successful call

now when I add an empty data object, it works:

import { HttpHeaders, Http } from '@capacitor-community/http';
const httpHeaders = { 'content-type': 'application/json' };
const result = await Http.del({
url: url,
data: {},
headers: httpHeaders
});
}

This is the same issue as https://github.com/capacitor-community/http/issues/164.

you are right, I will close this one


[$250] Edit comment - Message being edited is cancelled on pressing any key - Reported by: @parasharrajat

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Navigate to a conversation
Send a message
Edit the message
Clear the message in the edit box
Wait a few seconds
Start writing something

Expected Result:
Text should be displayed after user starts typing.
Actual Result:
The edit comment box is cancelled.
Workaround:
Unknown.
Platform:

Where is this issue occurring?

Web

Version Number: 1.1.12-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/44479856/139748311-39b12f45-23ef-4494-8436-be3c8f9166f2.mp4
Upwork job https://www.upwork.com/jobs/~013a8cf464cdc1cf31
Issue reported by: @parasharrajat
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1635692466285700
View all open jobs on GitHub

Triggered auto assignment to @TomatoToaster (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

Good find @parasharrajat, this is a weird bug. Dropping the External label on this one, and just letting you know in case you had a fix in mind.

Triggered auto assignment to @michaelhaxhiu (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Easily reproducible, this one is a nice find. Posted to upwork. @parasharrajat Feel free to make a solution proposal if you want to solve it. Otherwise, this is open to all.

RE: upwork proposal - https://www.upwork.com/jobs/~013a8cf464cdc1cf31
It sounds like there is an event handler in the application that's overriding the desired behavior for the text field.
If it's occurring in the larger application context, then perhaps some state must be maintained so that the event handler is ignored when the text field is in focus.
Either way, the event handling will have to be altered so that key events are ignored while the text field is in focus, somehow, in a way that fits with the app nicely.
Best regards,
John

Triggered auto assignment to @thienlnam (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

We are placing all non-critical issues on hold while we're on a company offsite.  The hold is expected to be lifted on 11/19 (but could go longer).  For any PRs that are submitted during the hold, we will add a $250 bonus payment.

Upwork Proposal - https://www.upwork.com/jobs/~013a8cf464cdc1cf31
I detected the issue. When you delete content of textInput, draft is saved to localStorage as empty string. This causes ReportActionItem to render ReportActionItemMessage instead of ReportActionItemMessageEdit.
An if statement that checks length of draft before setting it to localStorage will do it.

Proposal
We need to discuss this first. This issue happens due to the reason that we update the draft message as user types and the existence of a draft message for action determines that a message is being edited.
So When the user clears a message, the related draft will be set to ' ' empty string which is equal to the report is not being edited. As soon as the user presses a key, the component re-renders, and the edit action is cleared.
Now, this is impossible to keep the real-time drafts for actions and show the edited action when the draft becomes empty ' '. This is the limitation of the current implementation.
I will explain my approach step by step:

We skip saving the draft message to empty ' ' by putting a check in updateDraft. https://github.com/Expensify/App/blob/b12eb5f9f18ba6578790b55ad248b682724f77ae/src/pages/home/report/ReportActionItemMessageEdit.js#L84

   if (newDraft !== '') {
            this.debouncedSaveDraft(newDraft);
        }

Fix up the debouncedSaveDraft so that it takes the draft as a parameter instead of from state.
Now as a side-effect when we switch the chats or refresh the chat, the last typed char (before clearing) will be shown as a draft instead of the last edit ' '. An empty draft ' ' is not really a draft so I suggest that when the user clears a message, instead of saving the ' ' Empty draft (which we fixed in step 1), save the full message (of action) so that when the user refreshes the chat, the full message is shown as a draft.
When we save the full message as a draft instead of Empty ' ', it does not update the edit box in the UI. So the user will be shown his input which is ' ' and he can continue typing the new message and it will replace the draft in storage as normal. Only when he changes the chat or refreshes the page after clearing the message on the action, he will see the full message string (which makes absolute sense).
One last step we need to update the debouncing technique here https://github.com/Expensify/App/blob/b12eb5f9f18ba6578790b55ad248b682724f77ae/src/pages/home/report/ReportActionItemMessageEdit.js#L50
by setting the third parameter to false. Otherwise, it skips the last edit.

@opal6502 Thanks for your proposal - this is a pretty broad outline but doesn't really encapsulate why the issue is happening in this specific context or the specific changes that need to be made.  The proposal is more like a series of steps that you will take to solve the issue and the PR just follows the changes in your proposal

@kursat You seem to be on the right track here, but checking the length of the draft wouldn't allow you to set it to an empty string.  Is there another solution here that could address that?

Hey @thienlnam, we can solve this in two ways.
1. We continue to keep draftMessage as string
In this scenario, user will see the original message, after setting text area to empty string and refreshing the page.
Steps:

We should update debouncedSaveDraftfunction to use its parameter. Right now it doesn't use newDraft parameter we send from updateDraft.

/**
 * Save the draft of the comment. This debounced so that we're not ceaselessly saving your edit. Saving the draft
 * allows one to navigate somewhere else and come back to the comment and still have it in edit mode.
 * @param {String} newDraft
 */
debouncedSaveDraft(newDraft) {
    saveReportActionDraft(this.props.reportID, this.props.action.reportActionID, newDraft);
}

We should change updateDraft to check draft length and if it's empty set original message to onyx.

/**
 * Update the value of the draft in Onyx
 *
 * @param {String} newDraft
 */
updateDraft(newDraft) {
    this.textInput.setNativeProps({text: newDraft});
    this.setState({draft: newDraft});

    if (newDraft.trim().length > 0) {
        this.debouncedSaveDraft(newDraft);
    } else {
        this.debouncedSaveDraft(this.props.action.originalMessage.html);
    }
}

We should update binding of debouncedSaveDraft at constructor, because when immediate parameter set, it fires at the beginning of the sequence. In short it doesn't take last changes.

this.debouncedSaveDraft = _.debounce(this.debouncedSaveDraft.bind(this), 1000);

Lastly we need to cancel debounce when we are publishing the draft. If we don't, it leads to another bug that opens edit box after save before debounce duration (1s).

/**
* Save the draft of the comment to be the new comment message. This will take the comment out of "edit mode" with
* the new content.
*/
publishDraft() {
  this.debouncedSaveDraft.cancel();

  const trimmedNewDraft = this.state.draft.trim();
  editReportComment(this.props.reportID, this.props.action, trimmedNewDraft);
  this.deleteDraft();
}

2. We change draftMessage to object format
In this scenario, user will be seeing an empty textarea, after removing text and refreshing page.
To accomplish this, we need to keep draftMessage in a format similar to this:
{
    text: '',
    active: true,
}

Steps:

In ContextMenuActions, ReportActionCompose and ReportActionItemMessageEdit files, we need to update saveReportActionDraft function calls

const editAction = () => saveReportActionDraft(
    reportID,
    reportAction.reportActionID,
    {
        text: _.isEmpty(draftMessage.text) ? getActionText(reportAction) : '',
        active: true,
    },
);

saveReportActionDraft(this.props.reportID, reportActionID, {text: _.last(message).html, active: true});

In ReportActionItem, we need to update all draftMessage checks to this.props.draftMessage.active. Eg:

shouldComponentUpdate(nextProps, nextState) {
  return this.props.displayAsGroup !== nextProps.displayAsGroup
    || !_.isEqual(this.props.draftMessage, nextProps.draftMessage)
      || this.props.isMostRecentIOUReportAction !== nextProps.isMostRecentIOUReportAction
      || this.props.hasOutstandingIOU !== nextProps.hasOutstandingIOU
      || this.props.shouldDisplayNewIndicator !== nextProps.shouldDisplayNewIndicator
      || !_.isEqual(this.props.action, nextProps.action)
      || this.state.isContextMenuActive !== nextState.isContextMenuActive;
}

preventDefaultContentMenu={!this.props.draftMessage.active}

style={getReportActionItemStyle(
    hovered
    || this.state.isContextMenuActive
    || this.props.draftMessage.active,
)}

In ReportActionItemMessageEdit component, we should create draftMessage (state) with following line:

const draftMessage = parser.htmlToMarkdown(this.props.draftMessage.text);

Since third and fourth tasks from previous option are bug-fix, we need to do them in this scenario too.

Note: Number 1, 2 has more changes, I wanted to keep it clean, so didn't write all of them. If you want to see, I can create a fork, and share link with all changes.

Oops. My proposal got removed somehow... so posting it again.
Proposal
We need to discuss this first. This issue happens due to the reason that we update the draft message as user types and the existence of a draft message for action determines that a message is being edited.
So When the user clears a message, the related draft will be set to ' ' empty string which is equal to the report is not being edited. As soon as the user presses a key, the component re-renders, and the edit action is cleared.
Now, this is impossible to keep the real-time drafts for actions and show the edited action when the draft becomes empty ' '. This is the limitation of the current implementation.
I will explain my approach step by step:

We skip saving the draft message to empty ' ' by putting a check in updateDraft. https://github.com/Expensify/App/blob/b12eb5f9f18ba6578790b55ad248b682724f77ae/src/pages/home/report/ReportActionItemMessageEdit.js#L84

   if (newDraft !== '') {
            this.debouncedSaveDraft(newDraft);
        }

Fix up the debouncedSaveDraft so that it takes the draft as a parameter instead of from state.
Now as a side-effect when we switch the chats or refresh the chat, the last typed char (before clearing) will be shown as a draft instead of the last edit ' '. An empty draft ' ' is not really a draft so I suggest that when the user clears a message, instead of saving the ' ' Empty draft (which we fixed in step 1), save the full message (of action) so that when the user refreshes the chat, the full message is shown as a draft.
When we save the full message as a draft instead of Empty ' ', it does not update the edit box in the UI. So the user will be shown his input which is ' ' and he can continue typing the new message and it will replace the draft in storage as normal. Only when he changes the chat or refreshes the page after clearing the message on the action, he will see the full message string (which makes absolute sense).
One last step we need to update the debouncing technique here https://github.com/Expensify/App/blob/b12eb5f9f18ba6578790b55ad248b682724f77ae/src/pages/home/report/ReportActionItemMessageEdit.js#L50
by setting the third parameter to false. Otherwise, it skips the last edit.

@parasharrajat, I have seen your proposal, too. Looks like mentioning #6283 replaced your proposal with that link.
Looks like Step 4 on my proposal required for your proposal too, in order not to cause another bug.

Thank you @kursat and @parasharrajat, this is a little difficult since I don't see your original proposal.  However, since @kursat did a great investigation into the issue and additionally provided extra details needed for implementation I will continue to have them implement the changes (the first proposal of continuing to keep draftMessage as string).
Sorry about that @parasharrajat, we will still of course pay out the bounty for reporting the bug

@michaelhaxhiu Could you please hire @kursat in Upwork?

Yep! @kursat can you please apply for the Upwork job here - https://www.upwork.com/jobs/~013a8cf464cdc1cf31 ?

Also @parasharrajat can you apply for this same upwork job, so we can disburse payment for reporting the bug when it's implemented?

Did. @michaelhaxhiu

@michaelhaxhiu, I've applied too.

📣 @kursat You have been assigned to this job by @michaelhaxhiu!
Please apply to this job in Upwork and let us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖

Hired both contributors 👍 .

I've created PR. Sorry it took that long, first time working on open source project. Still figuring out but I think i did it :muscle:

No problem, contributors can work at their own pace. We just ask for daily updates of progress (as mentioned here in the Contributing to Expensify guidelines)!
Thanks for the quick progress!
I don't see a PR linked to this GH yet, is this it? https://github.com/Expensify/App/pull/6367

ah wait, you just linked it! nevermind :)

Yeah I write wrong issue id, sorry.
Btw while I am recording my screen, I found another bug that I introduced. Fixed it but code will be different (just 1 line) than my proposal. Is this a problem?

I would highlight that on the PR and we'll address it there 👍

PR is in review

Seems close to being merged.

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.1.18-3 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

https://github.com/Expensify/App/pull/6367

If no regressions arise, payment will be issued on 2021-12-15. :confetti_ball:

Paid.


Error when evaluating SSR module in dev mode

Describe the bug
Using sveltekit at 1.0.0-next.240 version, I get the following error with  youtube-player package when the page loads for the first time in dev server. In production preview server it's working.

[vite] Error when evaluating SSR module /node_modules/.pnpm/youtube-player@5.5.2/node_modules/youtube-player/dist/index.js?v=70c987a9:
ReferenceError: exports is not defined
    at /node_modules/.pnpm/youtube-player@5.5.2/node_modules/youtube-player/dist/index.js?v=70c987a9:3:23
    at instantiateModule (/home/matheus/meetacity/node_modules/.pnpm/vite@2.7.13/node_modules/vite/dist/node/chunks/dep-f5552faa.js:60105:15)

But, when I refresh the page, it works.

Reproduction

Install svelte-youtube package
Create a simple page like this one below

<script>
    import YouTube from 'svelte-youtube'
</script>

<YouTube videoId='uQntFkK8Z54'/>

Run npm run dev -- --open
Go to that page and see the error
Refresh the page and it works

Logs
No response
System Info
System:
    OS: Linux 5.10 Ubuntu 20.04.3 LTS (Focal Fossa)
    CPU: (12) x64 AMD Ryzen 5 2600 Six-Core Processor
    Memory: 3.37 GB / 5.79 GB
    Container: Yes
    Shell: 3.3.1 - /usr/bin/fish
Binaries:
    Node: 16.13.2 - /tmp/fnm_multishells/1514_1642986568258/bin/node
    Yarn: 1.22.17 - /tmp/fnm_multishells/128_1642985412126/bin/yarn
    npm: 8.1.2 - /tmp/fnm_multishells/1514_1642986568258/bin/npm
npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.14
    @sveltejs/kit: next => 1.0.0-next.240
    svelte: ^3.44.0 => 3.46.2

Severity
annoyance
Additional Information
No response

Sounds like https://github.com/vitejs/vite/issues/2579. Unfortunately there isn't much SvelteKit can do, other than having this fixed in Vite, so I'll close this in favour of that.

I found the solution right here https://github.com/sveltejs/kit/issues/655#issuecomment-809714987.
I moved svelte-youtube dep from dependencies to devDependencies.


Lenovo Driver Downloads Fail

Lenovo changed the PSREF page. Luckily it looks like they use an API now and it should be much easier to look up models. Will incorporate a fix soon and publish as 2407.2

Just testing this now. You beat me to it. I am running a DriverGrabber from Lenovo. Do we need to extract the files and place them in the .\Drivers folder temporarily while you address this?

It's fixed :)
https://github.com/rbalsleyMSFT/FFU/releases/tag/v2407.2


NVCC breaks TEST_CASE_TEMPLATE's naming

Description
When I create a test using
TEST_CASE_TEMPLATE("dummy", T, int, unsigned int, float)
{
    std::cout << typeid(T).name() << std::endl;
}

in a standart cpp file, two test cases are created with the names "dummy<int>" & "dummy<float>". However when I write it in a .cu file and compile it with Nvidia's NVCC compiler a single test with the name "dummy<T>(>" is created. I can still run the test and both int and float will get tested.
Steps to reproduce

Create cpp file
Define TEST_CASE_TEMPLATE with arbitrary many types
Compile and any compiler - everything works file
Compile with NVCC - one test with ending "(>" is created

Extra information

doctest version: 2.4.11
Operating System: Windows 11
Compiler+version: MSVC 19.35.32216.1 / NVCC V12.1.105

NVCC is not tested ATM. CUDA is quite different from standard C++, so this is a very minor bug.

@29th-Day Would you like to add NVCC toolchain to the CI to have it continuously tested, and fix the bug from there?


my first contribution

Signed-off-by: ajeet707
This is my First contribution.

@ajeet707  try this year for Hacktoberfest and have a look at the updated repo and contribute.
HAPPY HACKING


Git tags matching gem version numbers

Would be nice to have tags in the git repository matching the version numbers of the Ceedling gem - to know when/why to update, how in sync is the documentation, etc.

I did so for the latest version. I'll try to remember to continue this trend. :)

Thank you :)

El 16 abr 2016, a las 2:09, Mark VanderVoord<EMAIL_ADDRESS>escribió:
I did so for the latest version. I'll try to remember to continue this trend. :)
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub


edupont04 from OPS portal: Merge from master to live

Docs Build status updates of commit 656b876:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

dynamics-gp/payroll/us-year-end.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


improve solutions success message

move to hyperlink (opens in a new tab)
increase spaces

Commit_ID 85914667d13dae8f98cae522ef1db58ebd192cea , Branch development


Piped content boundaries are not correct

Describe the bug
The text extends beyond the borders of the image.
To Reproduce

config.go
package config

import (
	"fmt"
	"os"
	"reflect"
	"strconv"
	"strings"
)

type Config struct {
	Telegram struct {
		Token   string `env:"TG_TOKEN"`
		ChatID  string `env:"TG_CHAT"`
		OwnerID string `env:"TG_ADMIN"`
	}

	Database struct {
		DSN string `env:"DB_DSN"`
	}

	Log struct {
		Level string `env:"LOG_LEVEL"`
	}

	Debug bool
}

func Load() (*Config, error) {
	var c Config
	err := parseStruct(&c, "")
	if err != nil {
		return nil, err
	}
	return &c, nil
}

cat config.go | freeze --language go --theme murphy
Expected behavior
I expect the image to be a little wider so that the data inside the tags will fit completely into the image. And also the colored background of the symbols will be in correct place.
Screenshots

Resulted image

Desktop (please complete the following information):

macOS 14.4
iTerm 3.5.0beta17

Hey @sattellite, thanks for the issue! I am unable to reproduce. When I run the following:
cat config.go | freeze --language go --theme murphy

I get the following:

NB: This conversion is using libsvg (rsvg-convert) which is installed on my computer. Let me try again with the normal resvg-go.

Try to use config.go from my message, please. I can reproduce that behaviour on intel mac and m2 mac. First message from m2 mac.
freeze 0.1.4 installed with go install github.com/charmbracelet/freeze@latest command on both computers.

screenshot from intel mac

Ah you're absolutely correct @sattellite, I am able to reproduce with your code. Thank you, I will fix this issue!

@sattellite The issue was tabs in the code were causing miscalculations in the width. This is now fixed on main! Thank you for the report and awesome reproduction instructions!


[BUG] event links aren't always caught by the invite filter

Describe the bug
discord.com/event links don't get caught in the invite filter
Error Message (If applicable)
n/a
To Reproduce
example: https://discord.com/channels/96335850576556032/925797283600150558/1235301328432140299
Expected behavior
the message to be deleted and reposted if not a bot

Fixed by #102


[No JIRA] Update run-local-tests script for shard operator

@jiripetrlik What is this PR needed for?

@sutaakar
It is to fix the script when you are running tests locally. I've found out that without this it doesn't work.


Portainer Agent losing connection after 8h in mixed Intel/Arm environment

Bug description
We have a docker swarm with a total of 7 nodes. Three of them are arm64 (AWS Graviton, t4g.xlarge), the other four are amd64. Up to portainer 16.2 everything worked flawlessly, after an update to 18.1 (and later 18.2) the arm64 nodes lost connection after 8 hours and did not recover. When the affected node was restarted it worked again for about 8 hours.
We replaced the arm64 nodes with amd64 t3a.xlarge nodes and everything is working again.
Expected behavior
The arm64 nodes not losing connection after 8 hours.
Portainer Logs
As this was our productive system we had to move fast, so the portainer-agent container logs were not retained.
Steps to reproduce the issue:

Install a mixed architecture (amd64 and arm64) docker swarm
run some containers
wait about 8 hours

Technical details:

Portainer version: 18.2
Docker version (managed by Portainer): 20.10.23
Kubernetes version (managed by Portainer): -
Platform (windows/linux): linux (AMI Linux 2, most recent patchlevel)
Command used to start Portainer (docker run -p 9443:9443 portainer/portainer): as compose file
Browser: -
Use Case (delete as appropriate): Using Portainer in a Commercial setup.
Have you reviewed our technical documentation and knowledge base? Yes

Additional context
Add any other context about the problem here.

@mtraunau
Thank you for the information.  I am going to further investigate.  I will update you as I learn more.
Thanks!


CDN FrontDoor Route Rulesets returns ID with resource group name in lowercase

Bug Report

import path: .../services/cdn/mgmt/2021-06-01/cdn
SDK version: v66.0.0+incompatible
go version: go version go1.18.3 linux/amd64

When Terraform attempts to parse the CDN FrontDoor RuleSet IDs it causes the Terraform Azure Provider to crash because the expected casing of resourceGroups is returned as resourcegroups by the CDN FrontDoor Route API.
What Happened:
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

Terraform crashed! This is always indicative of a bug within Terraform.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Terraform[1] so that we can fix this.

When reporting bugs, please include your terraform version. That
information is available on the first line of crash.log. You can also
get it by running 'terraform --version' on the command line.

SECURITY WARNING: the "crash.log" file that was created may contain
sensitive information that must be redacted before it is safe to share
on the issue tracker.

[1]: https://github.com/hashicorp/terraform/issues

!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

What did you expect or want to happen:
The casing in the returned CDN FrontDoor RuleSet ID to be in the expected casing.
How can we reproduce it?

Use the Azure Portal to create a CDN FrontDoor Route with an associated RuleSet.
Attempt to import that CDN FrontDoor Route via Terraform using the AzureRM Provider v3.27.0.

@WodansSon this should be caught at import time and normalized as required in the Read function - why is this causing a panic?

Seems terraform related issue. Close for now. The SDK terraform using is our previous SDK version and is has been announced deprecated in Sept. 2022.


Gaps in Kernels based on HawkesConditionalLaw

Hi,
For a study project, I am fitting high frequency order book data to a Hawkes model in the same manner as Bacry(2015) and encountering the following problem: Using the non parametric estimation based on conditional law gives discountinuous functions (like in the example 'Fit Hawkes power law kernels').
For my project, I need to compute intensities and this requires the kernels to be evaluated at certain points which is now impossible. So my question is: what gives these NaN's? Is it because the conditional laws already contain NaN's? Or is it caused by a quirk in the quadrature method? I tried to find the cause in the source code, but got a bit lost.  My last question would be: Can it easily be solved by some kind of interpolation?
Any help would be greatly appreciated! :)
Thanks,
Jean-Claude

Hi Jean-Claude,
thank you for you for you interest in the tick library!
You're probably seeing “discontinuities” in the loglog plot. The reason is that your kernels take on negative values, thus the log is nan and matplotlib will not plot these point in a log-log scale.  Indeed, the non parametric estimation procedure that use the conditional law can find negative-valued kernels. This is actually a powerful feature of the algorithm as it allows to model (moderate) inhibition effects.
The mathematical reason we can find negative kernels is as follows. For simplicity, let’s stick to 1D case.
The first step of the procedure is to empirically estimate the conditional law

where N is the counting process and

and Lambda is the average intensity of the process.
Now, intuitively, if some inhibition effect is present for some t, we will have that

i.e. you expect less event than average, and thus g(t) < 0 for some t. It has been proved in [1] that this also imply that the kernel will take negative values for some t. See also [3] for all the details about the estimation method.
In practice with real data, one can find negative values of g(t) for 2 main reasons:

There are genuine inhibition effects in the data. This is for example the case for the negative relation found in [2] between P+ and P+ events as we know the mid-price is mean reverting and thus another P+ event is more unlikely just after a P+ event has taken place.

Too fine grid in estimation of g(t). Real data come with a finite time resolution and furthermore we don’t have an infinite amount of data. Estimation of g(t) basically is like estimation of a conditional probability density. You divide your domain in discrete bins and count how many event you have in each bin. If you take very small bins compared to data resolution/amount, you run into the risk that many of them will be empty or scarcely populated  so E[dN_t|dN_0] < Lambda and then you gent negative kernels.

To give you a concrete example, suppose your data come with 1s time resolution. This means that in your data no two timestamps will have a time distance below 1s. Now, if we estimate g(t) on a grid with millisecond bins, all the bins between 0 and 1s will be empty and thus g(t) will be negative on this domain.
This doesn’t mean that the actual kernels have gaps, it’s just that they take negative values. Here the cause it’s most likely point 2 above.
Some practical suggestions for the use on high-frequency data
I would suggest the following:

take a look at the inter event time distribution of your data (i.e. the differences t_i - t_{i-1}) to see what the typical time scales are. This will help you in setting the “min_lag” parameter. For financial high-frequency data you’ll probably have something like (x scale is log of the inter event times):

as you see there is a lot of structure up to about 1e-3 s so we might want the linear grid to go up to there (min_lag = 1e-3). For this data I then took delta_lag between 1/50 and 1/10 depending on how many components the Hawkes process we want to fit has. The lesser the dimension the more fine the grid (smaller delta_lag) could be. Also I set max_lag to 250 - 1000.
Remember that the grid used for estimation of g(t) is given by:
0, min_lag * delta_lag, min_lag * 2 delta_lag, … min_lag, min_lag * exp(delta_lag), min_lag * exp(2 delta_lag) …, max_lag
Thus a first rule of thumb would be to check that delta_lag * min_lag is large enough so that you have a sufficient number of inter-event times in each bin.
In future versions of tick we are going to allow the user to pass directly the grid, so that it can be better adapted to his particular data.

Try first with a 1D process as it will be much faster and you’ll have less noise and then as you increase the dimension you adjust the parameters.

Regarding the compute parameters i.e. n_quad, min_support, and max_support, these will determine the points at which the kernel values will be computed by discretising the Wiener-Hopf system. When using the ‘log’ scheme the grid is given by

0, min_support * eta, min_support * 2 eta, … min_support, min_support * exp(eta), min_support * exp(2 eta), … max_support
with
eta = ( log(max_support) - log(min_support) + 1) / n_quad
For the above data I used n_quad=120, max_support=1, min_support=5e-5. Note in particular that if you set a very large value for max_support (like hundreds of seconds for high frequency financial data) you will invariably have a lot of noise in the tail of the kernels which can become a problem and will lead to instable values for the norm. I suggest starting with smaller values like 1 second or less for high-frequency data. Try also to lower the number of quadrature when you increase the dimension (like 80-100 for 8D).

If you have multiple realisations (e.g. multiple days) don’t forget to fit using

for real in realizations:
	hawkes_learner.incremental_fit(real , compute=False)
hawkes_learner.compute()

so that the code will correctly estimate g(t) by averaging over all realisations and compute the kernels just once at the end.

finally, it can help sometimes to plot using matplotlib directly and a semilogx plot both the conditional law and the kernels.

to plot kernel i,j:
plt.plot(hawkes_learner.kernels[i][j][0], hawkes_learner.kernels[i][j][1])
plt.semilogx()
plt.xlabel('t')
plt.ylabel('Kernel value')

to plot conditional law i,j
plt.plot(hawkes_learner._claw_X, hawkes_learner._claw1[i][j])
plt.semilogx()
plt.xlabel('t')
plt.ylabel(‘Claw value')

References
[1] Rambaldi M, Bacry E, Lillo F. The role of volume in order book dynamics: a multivariate Hawkes process analysis. Quantitative Finance. 2017; 17(7):999-1020.
[2] Bacry E, Jaisson T, Muzy JF. Estimation of slowly decreasing Hawkes kernels: application to high-frequency order book dynamics. Quantitative Finance. 2016; 16(8):1179-201.
[3] Bacry E, Muzy JF. First-and second-order statistics characterization of Hawkes processes and non-parametric estimation. IEEE Transactions on Information Theory. 2016; 62(4):2184-202.


riskiq updates

streamlined processing, added limiting functions, changed output building for faster process. Added lazy processing for added performance.

Some low level changes worked in here including a new method to improve performance when writing files. They won't be pretty json but this method eliminates the parse function with is very resource intensive. Should help with any connector that produces large files write_file_stream output_dir, filename, false, @paged_assets, @vuln_defs


Remove trailing semicolon from internal err! macro

This will allow this crate to continue to compile if
https://github.com/rust-lang/rust/issues/33953 is fixed

Blocked on https://github.com/rust-lang/rustfmt/pull/4507

This PR's code is now accepted by the latest nightly rustfmt: rustfmt 1.4.27-nightly (580d826 2020-11-16)
It looks like CI is gating on rustfmt for stable 1.47.0. Do I need to wait for a stable release containing the rustfmt fix before this PR can be merged?


Updated to ASP.NET MVC 6 beta-4

Thanks for this! I was going to attempt it myself but NuGet is totally broken for me after upgrading from Visual Studio 2015 CTP to RC (https://github.com/NuGet/Home/issues/692), and I haven't had time to try a total reinstall

Finally got NuGet working again. Merged this with some minor changes (removed the  modified  methods from JsxFileSystem as they're not actually needed. Thanks!

Released 1.5.2 with this update.

Sorry for the unecessary changes, and thank you very much for reviewing and merging.


Allow saving the Configuration back to file

Codecov Report
Attention: Patch coverage is 97.14286% with 1 line in your changes missing coverage. Please review.

Project coverage is 88.30%. Comparing base (858a138) to head (d9ca93a).
Report is 4 commits behind head on main.

Files with missing lines
Patch %
Lines

src/config.rs
97.05%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #159      +/-   ##
==========================================
+ Coverage   87.88%   88.30%   +0.42%
==========================================
  Files          11       11
  Lines         586      573      -13
==========================================
- Hits          515      506       -9
+ Misses         71       67       -4

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


[SPARK-18197] [CORE] Optimise AppendOnlyMap implementation

What changes were proposed in this pull request?
More details on the JIRA, slight performance increase here by performing the cheapest comparison first
How was this patch tested?
Existing unit tests and HiBench large

Test build #67897 has started for PR 15714 at commit 40e3e06.

Test build #67897 has finished for PR 15714 at commit 40e3e06.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/67897/
Test FAILed.

Merged build finished. Test FAILed.

Can you put the details in the pull request description as well? It becomes part of the commit log.

Just so I'm clear on whether this is ready -- the details in question are the ones already added to the description?

I think he updated it already.
Merging in master/branch-2.1.


Implement MkdirAll() for Windows

Closes #735

Codecov Report

Merging #911 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #911   +/-   ##
=======================================
  Coverage   55.61%   55.61%
=======================================
  Files          95       95
  Lines        7822     7822
=======================================
  Hits         4350     4350
  Misses       2836     2836
  Partials      636      636

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 94441dc...5bd95b3. Read the comment docs.


chore: add test to http request without specifying port

Thanks! To land this though it'll need to pass CI, so mind folding this into #8671?

I am back online, @morenol do you mind if I cherry-pick this commit into #8671 and square them into one commit? I hope we can land this fix soon.

I don't mind but I think that this test is not accurate, feel free to check and create a test that could reproduce the current issue

Closed since a similar test was added in #8671