Dark Mode for Quickview in Viva Connections Mobile

Category

[x] Content fix
[x] New article

Related issues

fixes #issuenumber
partially #issuenumber
mentioned in #issuenumber

DELETE THIS LINE BEFORE SUBMITTING | If this fixes (aka: closes) or references an issue, please reference it here. This helps maintaining the issue list as it will (1) link the PR to the issue & (2) automatically close the issue when this PR is merged in.

What's in this Pull Request?
Adds Documentation about Dark mode QuickView capability's of Viva Connections Mobile
Submission guidelines

!!IMPORTANT!! - All submissions must complete the baseline sections included in this template. Ignoring or deleting this template may result in closing the issue with the label type:incomplete-submission.
Follow our guidance on How To Create Good Pull Requests.
Target the main branch of this repo.
When changing a page, ensure you update the ms.date front matter wih the current date in the format MM/DD/YYYY.
Review all build checks and address the automated errors, warnings, and suggestions.
NOTE: The live site is based on the live branch. Site owners periodically refresh live branch from the main branch so merged PRs won't immediately appear on the live site. Please be patient to see your changes appear on the live site.

DELETE THIS SECTION BEFORE SUBMITTING

@sharshach Please review the build checks listed above... there's still a broken link that must be fixed.

@sharshach Acrolinx is a tool made available to MSFT employees. I don't have a link handy, but it you search for your internal docs for MS Learning / MS Docs for Acrolinx, it contains a bunch of docs on it.

@andrewconnell resolved all Build Checks

Merging and running through the Acrolynx before publishing. Thanks @sharshach for the great new article and @andrewconnell  for the assistance on the doc formatting adjustments. Team work 👏✨


consistent sleeping for a long time and no response

I am trying to scrap using following
import twint

# Configure
c = twint.Config()
c.Username = "realDonaldTrump"
c.Search = "great"

# Run
twint.run.Search(c)

but it keep outputting,
sleeping for (seconds) seconds.

Ref: https://github.com/twintproject/twint/issues/918#issuecomment-695807117
Maybe Twitter has deleted the https://twitter.com/i/search/timeline
twint is not the only Twitter scraper having the same problem. See: https://github.com/jonbakerfish/TweetScraper/issues/92


Support more genotype data formats

The library could support some more genotype data formats (see e.g. here)

[ ] ANCESTRYMAP
[x] EIGENSTRAT
[ ] PED
[x] PACKEDPED
[ ] PACKEDANCESTRYMAP
[ ] VCF (see also https://github.com/poseidon-framework/poseidon2-schema/issues/45)
[ ] ... ?

Would of course also require changes in the Poseidon schema.

Hmm... I'm not sure with respect to ANCESTRYMAP and PACKEDANCESTRYMAP. I have never seen them elsewhere at all. I think in Poseidon we should stick to relatively well understood and widely used formats... of course, we could think about making it easier for users to pull in datasets from different formats, but I think in the package we should save them in Eigenstrat or Plink, as we had it, and maybe in the future VCF (although this will be a bit of a rabbit hole, because VCF allows for so much richer data than the other two formats...)

Adding new formats is a discussion that should start in the schema repository. And we already have an issue for that there: https://github.com/poseidon-framework/poseidon2-schema/issues/45
I'll close this one here now.


Make component and system ID fields read-only for submitted QA tests

In the workspace, users are able to change component and system IDs for already submitted QA tests.
These fields should be read-only for already submitted tests. The current practice is to first delete these tests if they were submitted with incorrect component/system IDs. This ensures related supplemental data is also deleted and invalid evaluation results are not received.

Verified that the Monitoring System ID/ Component ID fields for retrieved QA tests (Linearities, RATAs, Misc tests, etc.) were read-only for ORIS 1356, 2,3,CS023

Verified with E C Gaston - 1, 2, CS0CAN.  This is working for F2LCHK, F2LREF, LINE, RATA.


Added TSV format synonyms

Added TSV, TSVWithNames, TSVWithNamesAndTypes, TSVRaw formats which are basically the same as TabSeparated* ones, just a bit shorter.

That's fine!


Started connection of frontend and backend

I have successfully connected the frontend and backend for login page, and it is working alright.
Though, I am unable to create the edit route, even though I used the right functions, I rechecked the HTTP verbs ans routes yet still, react error boundary is creating some problems. There is some error in working of Private Route component. Please check and help in fixing that.

I reviewd changes made by you. yes the login page and the snackbar is working quite fine. Thanks for that.
I'll fix that error boundary in PrivateRoute and ping you once it is done.


remove duplicated repository owner name all over the site

Fix for https://github.com/github/personal-website/issues/27

showing the repo owner name repeatedly in each project card is not adding any value for the site.
cleaner look for project card.

before:

after:

Nice idea!

Great thinking, @codemenow. Let's do it.


Start elasticsearch shows runAsUser breaks non-root policy

Chart version:
7.8.0
Kubernetes version:
v1.18.3
Kubernetes provider: E.g. GKE (Google Kubernetes Engine)
Kubernetes
Helm Version:
v3.2.4
helm get release output

Output of helm get release
NAME: elasticsearch-master
LAST DEPLOYED: Sat Jul 11 00:11:23 2020
NAMESPACE: elk
STATUS: deployed
REVISION: 1
USER-SUPPLIED VALUES:
antiAffinity: hard
clusterName: elasticsearch
esConfig:
  elasticsearch.yml: |
    bootstrap.memory_lock: true
    xpack.security.enabled: true
    xpack.security.transport.ssl.enabled: true
    xpack.security.transport.ssl.verification_mode: certificate
    xpack.security.transport.ssl.keystore.path: /usr/share/elasticsearch/config/certs/elastic-certificates.p12
    xpack.security.transport.ssl.truststore.path: /usr/share/elasticsearch/config/certs/elastic-certificates.p12
esJavaOpts: -Xmx128m -Xms128m
extraEnvs:
- name: ELASTIC_USERNAME
  valueFrom:
    secretKeyRef:
      key: username
      name: elastic-credentials
- name: ELASTIC_PASSWORD
  valueFrom:
    secretKeyRef:
      key: password
      name: elastic-credentials
httpPort: 9200
keystore:
- secretName: s3-accesskey
- secretName: s3-secretkey
minimumMasterNodes: 1
nodeGroup: master
podSecurityContext:
  runAsNonRoot: false
  runAsUser: 0
replicas: 1
resources:
  limits:
    cpu: 1000m
    memory: 1024M
  requests:
    cpu: 100m
    memory: 512M
roles:
  data: "false"
  ingest: "false"
  master: "true"
secretMounts:
- defaultMode: 493
  name: elastic-certificates
  path: /usr/share/elasticsearch/config/certs
  secretName: elastic-certificates
securityContext:
  privileged: true
  runAsUser: 0
transportPort: 9300
volumeClaimTemplate:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 100M
  storageClassName: standard

COMPUTED VALUES:
antiAffinity: hard
antiAffinityTopologyKey: kubernetes.io/hostname
clusterHealthCheckParams: wait_for_status=green&timeout=1s
clusterName: elasticsearch
enableServiceLinks: true
envFrom: []
esConfig:
  elasticsearch.yml: |
    bootstrap.memory_lock: true
    xpack.security.enabled: true
    xpack.security.transport.ssl.enabled: true
    xpack.security.transport.ssl.verification_mode: certificate
    xpack.security.transport.ssl.keystore.path: /usr/share/elasticsearch/config/certs/elastic-certificates.p12
    xpack.security.transport.ssl.truststore.path: /usr/share/elasticsearch/config/certs/elastic-certificates.p12
esJavaOpts: -Xmx128m -Xms128m
esMajorVersion: ""
extraContainers: []
extraEnvs:
- name: ELASTIC_USERNAME
  valueFrom:
    secretKeyRef:
      key: username
      name: elastic-credentials
- name: ELASTIC_PASSWORD
  valueFrom:
    secretKeyRef:
      key: password
      name: elastic-credentials
extraInitContainers: []
extraVolumeMounts: []
extraVolumes: []
fsGroup: ""
fullnameOverride: ""
httpPort: 9200
image: docker.elastic.co/elasticsearch/elasticsearch
imagePullPolicy: IfNotPresent
imagePullSecrets: []
imageTag: 7.8.0
ingress:
  annotations: {}
  enabled: false
  hosts:
  - chart-example.local
  path: /
  tls: []
initResources: {}
keystore:
- secretName: s3-accesskey
- secretName: s3-secretkey
labels: {}
lifecycle: {}
masterService: ""
masterTerminationFix: false
maxUnavailable: 1
minimumMasterNodes: 1
nameOverride: ""
networkHost: <IP_ADDRESS>
nodeAffinity: {}
nodeGroup: master
nodeSelector: {}
persistence:
  annotations: {}
  enabled: true
podAnnotations: {}
podManagementPolicy: Parallel
podSecurityContext:
  fsGroup: 1000
  runAsNonRoot: false
  runAsUser: 0
podSecurityPolicy:
  create: false
  name: ""
  spec:
    fsGroup:
      rule: RunAsAny
    privileged: true
    runAsUser:
      rule: RunAsAny
    seLinux:
      rule: RunAsAny
    supplementalGroups:
      rule: RunAsAny
    volumes:
    - secret
    - configMap
    - persistentVolumeClaim
priorityClassName: ""
protocol: http
rbac:
  create: false
  serviceAccountName: ""
readinessProbe:
  failureThreshold: 3
  initialDelaySeconds: 10
  periodSeconds: 10
  successThreshold: 3
  timeoutSeconds: 5
replicas: 1
resources:
  limits:
    cpu: 1000m
    memory: 1024M
  requests:
    cpu: 100m
    memory: 512M
roles:
  data: "false"
  ingest: "false"
  master: "true"
schedulerName: ""
secretMounts:
- defaultMode: 493
  name: elastic-certificates
  path: /usr/share/elasticsearch/config/certs
  secretName: elastic-certificates
securityContext:
  capabilities:
    drop:
    - ALL
  privileged: true
  runAsNonRoot: true
  runAsUser: 0
service:
  annotations: {}
  httpPortName: http
  labels: {}
  labelsHeadless: {}
  loadBalancerIP: ""
  loadBalancerSourceRanges: []
  nodePort: ""
  transportPortName: transport
  type: ClusterIP
sidecarResources: {}
sysctlInitContainer:
  enabled: true
sysctlVmMaxMapCount: 262144
terminationGracePeriod: 120
tolerations: []
transportPort: 9300
updateStrategy: RollingUpdate
volumeClaimTemplate:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 100M
  storageClassName: standard

HOOKS:
---
# Source: elasticsearch/templates/test/test-elasticsearch-health.yaml
apiVersion: v1
kind: Pod
metadata:
  name: "elasticsearch-master-yhdzy-test"
  annotations:
    "helm.sh/hook": test-success
spec:
  securityContext:
    fsGroup: 1000
    runAsNonRoot: false
    runAsUser: 0
  containers:
  - name: "elasticsearch-master-toeto-test"
    image: "docker.elastic.co/elasticsearch/elasticsearch:7.8.0"
    command:
      - "sh"
      - "-c"
      - |
        #!/usr/bin/env bash -e
        curl -XGET --fail 'elasticsearch-master:9200/_cluster/health?wait_for_status=green&timeout=1s'
  restartPolicy: Never
MANIFEST:
---
# Source: elasticsearch/templates/poddisruptionbudget.yaml
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
  name: "elasticsearch-master-pdb"
spec:
  maxUnavailable: 1
  selector:
    matchLabels:
      app: "elasticsearch-master"
---
# Source: elasticsearch/templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: elasticsearch-master-config
  labels:
    heritage: "Helm"
    release: "elasticsearch-master"
    chart: "elasticsearch"
    app: "elasticsearch-master"
data:
  elasticsearch.yml: |
    bootstrap.memory_lock: true
    xpack.security.enabled: true
    xpack.security.transport.ssl.enabled: true
    xpack.security.transport.ssl.verification_mode: certificate
    xpack.security.transport.ssl.keystore.path: /usr/share/elasticsearch/config/certs/elastic-certificates.p12
    xpack.security.transport.ssl.truststore.path: /usr/share/elasticsearch/config/certs/elastic-certificates.p12
---
# Source: elasticsearch/templates/service.yaml
kind: Service
apiVersion: v1
metadata:
  name: elasticsearch-master
  labels:
    heritage: "Helm"
    release: "elasticsearch-master"
    chart: "elasticsearch"
    app: "elasticsearch-master"
  annotations:
    {}
spec:
  type: ClusterIP
  selector:
    release: "elasticsearch-master"
    chart: "elasticsearch"
    app: "elasticsearch-master"
  ports:
  - name: http
    protocol: TCP
    port: 9200
  - name: transport
    protocol: TCP
    port: 9300
---
# Source: elasticsearch/templates/service.yaml
kind: Service
apiVersion: v1
metadata:
  name: elasticsearch-master-headless
  labels:
    heritage: "Helm"
    release: "elasticsearch-master"
    chart: "elasticsearch"
    app: "elasticsearch-master"
  annotations:
    service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
spec:
  clusterIP: None # This is needed for statefulset hostnames like elasticsearch-0 to resolve
  # Create endpoints also if the related pod isn't ready
  publishNotReadyAddresses: true
  selector:
    app: "elasticsearch-master"
  ports:
  - name: http
    port: 9200
  - name: transport
    port: 9300
---
# Source: elasticsearch/templates/statefulset.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: elasticsearch-master
  labels:
    heritage: "Helm"
    release: "elasticsearch-master"
    chart: "elasticsearch"
    app: "elasticsearch-master"
  annotations:
    esMajorVersion: "7"
spec:
  serviceName: elasticsearch-master-headless
  selector:
    matchLabels:
      app: "elasticsearch-master"
  replicas: 1
  podManagementPolicy: Parallel
  updateStrategy:
    type: RollingUpdate
  volumeClaimTemplates:
  - metadata:
      name: elasticsearch-master
    spec:
      accessModes:
      - ReadWriteOnce
      resources:
        requests:
          storage: 100M
      storageClassName: standard
  template:
    metadata:
      name: "elasticsearch-master"
      labels:
        heritage: "Helm"
        release: "elasticsearch-master"
        chart: "elasticsearch"
        app: "elasticsearch-master"
      annotations:

        configchecksum: a0538c50988a7b127f6f888eeabf95ae91d98b1cddc2053438566ef65093c8c
    spec:
      securityContext:
        fsGroup: 1000
        runAsNonRoot: false
        runAsUser: 0
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchExpressions:
              - key: app
                operator: In
                values:
                - "elasticsearch-master"
            topologyKey: kubernetes.io/hostname
      terminationGracePeriodSeconds: 120
      volumes:
        - name: elastic-certificates
          secret:
            secretName: elastic-certificates
            defaultMode: 493
        - name: esconfig
          configMap:
            name: elasticsearch-master-config
        - name: keystore
          emptyDir: {}
        - name: keystore-s3-accesskey
          secret:
            secretName: s3-accesskey
        - name: keystore-s3-secretkey
          secret:
            secretName: s3-secretkey

      enableServiceLinks: true
      initContainers:
      - name: configure-sysctl
        securityContext:
          runAsUser: 0
          privileged: true
        image: "docker.elastic.co/elasticsearch/elasticsearch:7.8.0"
        imagePullPolicy: "IfNotPresent"
        command: ["sysctl", "-w", "vm.max_map_count=262144"]
        resources:
          {}

      - name: keystore
        image: "docker.elastic.co/elasticsearch/elasticsearch:7.8.0"
        imagePullPolicy: "IfNotPresent"
        command:
        - sh
        - -c
        - |
          #!/usr/bin/env bash
          set -euo pipefail

          elasticsearch-keystore create

          for i in /tmp/keystoreSecrets/*/*; do
            key=$(basename $i)
            echo "Adding file $i to keystore key $key"
            elasticsearch-keystore add-file "$key" "$i"
          done

          # Add the bootstrap password since otherwise the Elasticsearch entrypoint tries to do this on startup
          if [ ! -z ${ELASTIC_PASSWORD+x} ]; then
            echo 'Adding env $ELASTIC_PASSWORD to keystore as key bootstrap.password'
            echo "$ELASTIC_PASSWORD" | elasticsearch-keystore add -x bootstrap.password
          fi

          cp -a /usr/share/elasticsearch/config/elasticsearch.keystore /tmp/keystore/
        env:
          - name: ELASTIC_USERNAME
            valueFrom:
              secretKeyRef:
                key: username
                name: elastic-credentials
          - name: ELASTIC_PASSWORD
            valueFrom:
              secretKeyRef:
                key: password
                name: elastic-credentials
        envFrom:
          []
        resources:
          {}
        volumeMounts:
          - name: keystore
            mountPath: /tmp/keystore
          - name: keystore-s3-accesskey
            mountPath: /tmp/keystoreSecrets/s3-accesskey
          - name: keystore-s3-secretkey
            mountPath: /tmp/keystoreSecrets/s3-secretkey

      containers:
      - name: "elasticsearch"
        securityContext:
          capabilities:
            drop:
            - ALL
          privileged: true
          runAsNonRoot: true
          runAsUser: 0
        image: "docker.elastic.co/elasticsearch/elasticsearch:7.8.0"
        imagePullPolicy: "IfNotPresent"
        readinessProbe:
          exec:
            command:
              - sh
              - -c
              - |
                #!/usr/bin/env bash -e
                # If the node is starting up wait for the cluster to be ready (request params: "wait_for_status=green&timeout=1s" )
                # Once it has started only check that the node itself is responding
                START_FILE=/tmp/.es_start_file

                http () {
                  local path="${1}"
                  local args="${2}"
                  set -- -XGET -s

                  if [ "$args" != "" ]; then
                    set -- "$@" $args
                  fi

                  if [ -n "${ELASTIC_USERNAME}" ] && [ -n "${ELASTIC_PASSWORD}" ]; then
                    set -- "$@" -u "${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}"
                  fi

                  curl --output /dev/null -k "$@" "http://<IP_ADDRESS>:9200${path}"
                }

                if [ -f "${START_FILE}" ]; then
                  echo 'Elasticsearch is already running, lets check the node is healthy'
                  HTTP_CODE=$(http "/" "-w %{http_code}")
                  RC=$?
                  if [[ ${RC} -ne 0 ]]; then
                    echo "curl --output /dev/null -k -XGET -s -w '%{http_code}' \${BASIC_AUTH} http://<IP_ADDRESS>:9200/ failed with RC ${RC}"
                    exit ${RC}
                  fi
                  # ready if HTTP code 200, 503 is tolerable if ES version is 6.x
                  if [[ ${HTTP_CODE} == "200" ]]; then
                    exit 0
                  elif [[ ${HTTP_CODE} == "503" && "7" == "6" ]]; then
                    exit 0
                  else
                    echo "curl --output /dev/null -k -XGET -s -w '%{http_code}' \${BASIC_AUTH} http://<IP_ADDRESS>:9200/ failed with HTTP code ${HTTP_CODE}"
                    exit 1
                  fi

                else
                  echo 'Waiting for elasticsearch cluster to become ready (request params: "wait_for_status=green&timeout=1s" )'
                  if http "/_cluster/health?wait_for_status=green&timeout=1s" "--fail" ; then
                    touch ${START_FILE}
                    exit 0
                  else
                    echo 'Cluster is not yet ready (request params: "wait_for_status=green&timeout=1s" )'
                    exit 1
                  fi
                fi
          failureThreshold: 3
          initialDelaySeconds: 10
          periodSeconds: 10
          successThreshold: 3
          timeoutSeconds: 5
        ports:
        - name: http
          containerPort: 9200
        - name: transport
          containerPort: 9300
        resources:
          limits:
            cpu: 1000m
            memory: 1024M
          requests:
            cpu: 100m
            memory: 512M
        env:
          - name: node.name
            valueFrom:
              fieldRef:
                fieldPath: metadata.name
          - name: cluster.initial_master_nodes
            value: "elasticsearch-master-0,"
          - name: discovery.seed_hosts
            value: "elasticsearch-master-headless"
          - name: cluster.name
            value: "elasticsearch"
          - name: network.host
            value: "<IP_ADDRESS>"
          - name: ES_JAVA_OPTS
            value: "-Xmx128m -Xms128m"
          - name: node.data
            value: "false"
          - name: node.ingest
            value: "false"
          - name: node.master
            value: "true"
          - name: ELASTIC_USERNAME
            valueFrom:
              secretKeyRef:
                key: username
                name: elastic-credentials
          - name: ELASTIC_PASSWORD
            valueFrom:
              secretKeyRef:
                key: password
                name: elastic-credentials
        volumeMounts:
          - name: "elasticsearch-master"
            mountPath: /usr/share/elasticsearch/data

          - name: keystore
            mountPath: /usr/share/elasticsearch/config/elasticsearch.keystore
            subPath: elasticsearch.keystore

          - name: elastic-certificates
            mountPath: /usr/share/elasticsearch/config/certs
          - name: esconfig
            mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
            subPath: elasticsearch.yml

Describe the bug:
  Normal   Pulled     9m57s                   kubelet, minikube  Container image "docker.elastic.co/elasticsearch/elasticsearch:7.8.0" already present on machine
  Normal   Created    9m57s                   kubelet, minikube  Created container keystore
  Normal   Started    9m57s                   kubelet, minikube  Started container keystore
  Warning  Failed     7m35s (x9 over 9m28s)   kubelet, minikube  Error: container's runAsUser breaks non-root policy

Show error  container's runAsUser breaks non-root policy, then can not start elasticsearch.
Steps to reproduce:
My values.yaml
---
clusterName: "elasticsearch"
nodeGroup: "master"

antiAffinity: "hard"

roles:
  master: "true"
  ingest: "false"
  data: "false"

replicas: 1
minimumMasterNodes: 1

securityContext:
  privileged: true
  runAsUser: 0

podSecurityContext:
  runAsUser: 0
  runAsNonRoot: false

httpPort: 9200
transportPort: 9300

esConfig:
  elasticsearch.yml: |
    bootstrap.memory_lock: true
    xpack.security.enabled: true
    xpack.security.transport.ssl.enabled: true
    xpack.security.transport.ssl.verification_mode: certificate
    xpack.security.transport.ssl.keystore.path: /usr/share/elasticsearch/config/certs/elastic-certificates.p12
    xpack.security.transport.ssl.truststore.path: /usr/share/elasticsearch/config/certs/elastic-certificates.p12

extraEnvs:
  - name: ELASTIC_USERNAME
    valueFrom:
        secretKeyRef:
            name: elastic-credentials
            key: username
  - name: ELASTIC_PASSWORD
    valueFrom:
        secretKeyRef:
            name: elastic-credentials
            key: password

secretMounts:
  - name: elastic-certificates
    secretName: elastic-certificates
    path: /usr/share/elasticsearch/config/certs
    defaultMode: 0755

keystore:
  - secretName: s3-accesskey
  - secretName: s3-secretkey

# use our build image
# image: "elastic_test"
# imageTag: "v1"

esJavaOpts: "-Xmx128m -Xms128m"

resources:
  requests:
    cpu: "100m"
    memory: "512M"
  limits:
    cpu: "1000m"
    memory: "1024M"

volumeClaimTemplate:
  accessModes: [ "ReadWriteOnce" ]
  storageClassName: "standard"
  resources:
    requests:
      storage: 100M

Because I want to set bootstrap.memory_lock: true, I need to run 'ulimit -l unlimited' on the pod, this need root athority.

Install chart with above yaml config
helm install --values master.yaml elasticsearch-master ../../ -n elk
Elasticsearch can't start, show it can't run as root, while my config set securityContext.runAsUser = 0
If I change true to false https://github.com/elastic/helm-charts/blob/7.8/elasticsearch/values.yaml#L202, install works

Expected behavior:
Elasticsearch start successfuly.
I think securityContext on my yaml not replace the global config, may be we can delete this line.

Wrong setting.


Improve Color::hex performance

Objective
Improve Color::hex performance
Bench
running 2 tests
test bench_color_hex_after  ... bench:           4 ns/iter (+/- 0)
test bench_color_hex_before ... bench:          14 ns/iter (+/- 0)

Solution
Use const fn decode hex value.

Changelog
Rename
HexColorError::Hex(FromHexError) -> HexColorError::Char(char)

Great thanks.
bors r+


Deprecate old AWS CD zone

@hmusum Changes to ConfigServerRestExecutorImpl
@jonmv 243eb0c

👍

You need to handle removal of the enum member, in ApplicationSerializer:390.

Changed serialization to ignore/skip JobStatus for non-existent DeploymentJobs.JobTypes


Soft constraint on risk

#27

Problem should raise an CvxError rather than an AssertionError

@phschiele Usually the author of the pull request performs the merge...

Closes #27


Execute emojionearea box on top of my own icon, not from default smile icon

I have an emoji icon from font awesome that I want to use as when I click it, the emojionearea plugin will bring the emoji box on top of it then I can use it to add emojis on my textarea, just like facebook messenger. How can I do that?

I've been working on this for a bit now, hope it can help. Still a work in progress on my end but it's working so far:
`
var emojiPicker = $('div.emojiinstance').emojioneArea({
standalone: true,
autocomplete: false,
});
var emojionearea = emojiPicker[0].emojioneArea;
var emojiBtn = $('.your-trigger-el');
emojiBtn.on('click', function(e) {
e.preventDefault();
emojioneArea.showPicker();
});
`

I've been working on this for a bit now, hope it can help. Still a work in progress on my end but it's working so far:
// Init emojionearea
var emojiPicker = $('div.emojiinstance').emojioneArea({
   standalone: true,
   autocomplete: false,
});
// Assign var for the emojionearea instance
var emojionearea = emojiPicker[0].emojioneArea;
// Assign var for your btn
var emojiBtn = $('.your-trigger-el');
// Set up a click event to open the picker
emojiBtn.on('click', function(e) {
    e.preventDefault();
    emojioneArea.showPicker();
});

Edited to add comments and this note: you'll have to hide the default picker/icon with CSS.

Thank you so much sir! Will try later 😁

How can I place the chosen input to my textarea when I select an emoji from the picker?

And  I want to it to show without the emojionecontainer, only the box containing emoji because this is what happens from your code sir

What I want to happen is when I click the icon, the blue smile face, the area where I can pick emoji will pop in top of it, hoping you can help me sir thanks!

From my own usage and searching the open and closed issues here on the repo, it looks like CSS is the best way to go here. By that I mean, you'd hide the default emojionearea and button with CSS and then position the picker window when it opens with CSS. Hope this helps!

Hello sir, I will try thank you!!


[module] Mount a filesystem successfully

# Example usage
sudo mkdir /mnt/ct
sudo insmod src/networkfs.ko
cat /proc/filesystems | grep "networkfs"
sudo mount -t networkfs test /mnt/ct
sudo umount /mnt/ct
sudo rmmod networkfs
cat /proc/filesystems | grep "networkfs"


Expose WAI Application

I want to run an EKG server on TLS, but I cannot because the API does not expose the Network.Wai.Application. Would you be opposed to exposing this?

Fixed in #10


Jsonpath: add support for OR operation in list filters

JsonPath describes a "or operation" for list filters that is not implemented in kubectl
I would like to add the possibility to do the following:
kubectl get deploy -o<EMAIL_ADDRESS>|| ?(@.metadata.name=="bar")].metadata.name}
With this feature one could do more complex filtering without having to do more than one kubectl request

I don't know if it is possible or not;
@mpuckett159 WDYT?

It's definitely not possible with the current jsonpath library but I am seeing about either improving the current implementation of our in tree jsonpath library to support this (hard) or importing an external module to allow for this to be possible (easy). I made some minimal progress a few months ago but had to put it on the back burner and hope to get back to it shortly.

Thank you for the quick response, @mpuckett159 can you share which external module is that?

Oh I didn't even notice this was a recent issue, this comes up quite often haha.
https://github.com/ohler55/ojg
Not exactly sure if this will be acceptable from the maintainers but I have discussed it with them.

/remove-lifecycle stale

/remove-lifecycle stale


Application command creation failed for guild

Steps to reproduce
import hikari
import lightbulb

if __name__ == '__main__':
    bot = lightbulb.BotApp(
        token="xxxx",
        default_enabled_guilds="xxxx"
    )

    bot.run()

Expected result
  oooo         o8o  oooo                            o8o       光 2.0.0.dev120 [9ade5395]
  `888         `"'  `888                            `"'       © 2021-present, davfsa - MIT license
   888 .oo.   oooo   888  oooo   .oooo.   oooo d8b oooo       interpreter:   CPython 3.10.6
   888P"Y88b  `888   888 .8P'   `P  )88b  `888""8P `888       running on:    x86_64 Linux 5.19.0-46-generic
   888   888   888   888888.     .oP"888   888      888       installed at:  /home/biswa/PycharmProjects/BOT-Jarvis/.venv/lib/python3.10/site-packages/hikari
   888   888   888   888 `88b.  d8(  888   888      888       documentation: https://docs.hikari-py.dev/en/2.0.0.dev120
  o888o o888o o888o o888o o888o `Y888""8o d888b    o888o      support:       https://discord.gg/Jx4cNGG

Thank you for using lightbulb!
W 2023-07-25 13:13:36,110 hikari.ux: You are running on optimization level 0 (no optimizations), which may slow down your application. For production, consider using at least level 1 optimization by passing `-O` to the python interpreter call
I 2023-07-25 13:13:36,585 hikari.bot: you can start 998 sessions before the next window which starts at 2023-07-26 13:07:45.227989+05:30; planning to start 1 session...
I 2023-07-25 13:13:37,518 hikari.gateway.0: shard is ready: 1 guilds, iLensIoTBot#5572<PHONE_NUMBER>890579490), session 'f9d64508e777b42b2332e3574e2b0fdc' on v10 gateway
I 2023-07-25 13:13:37,995 lightbulb.internal: Processing guild application commands
I 2023-07-25 13:13:37,995 lightbulb.internal: Processing global application commands
I 2023-07-25 13:13:38,498 lightbulb.internal: Application command processing completed
I 2023-07-25 13:13:38,498 hikari.bot: started successfully in approx 2.38 seconds

Actual result
   oooo         o8o  oooo                            o8o       光 2.0.0.dev120 [9ade5395]
  `888         `"'  `888                            `"'       © 2021-present, davfsa - MIT license
   888 .oo.   oooo   888  oooo   .oooo.   oooo d8b oooo       interpreter:   CPython 3.10.6
   888P"Y88b  `888   888 .8P'   `P  )88b  `888""8P `888       running on:    x86_64 Linux 5.19.0-46-generic
   888   888   888   888888.     .oP"888   888      888       installed at:  /home/biswa/PycharmProjects/BOT-Jarvis/.venv/lib/python3.10/site-packages/hikari
   888   888   888   888 `88b.  d8(  888   888      888       documentation: https://docs.hikari-py.dev/en/2.0.0.dev120
  o888o o888o o888o o888o o888o `Y888""8o d888b    o888o      support:       https://discord.gg/Jx4cNGG

Thank you for using lightbulb!
W 2023-07-25 13:15:32,047 hikari.ux: You are running on optimization level 0 (no optimizations), which may slow down your application. For production, consider using at least level 1 optimization by passing `-O` to the python interpreter call
I 2023-07-25 13:15:32,573 hikari.bot: you can start 994 sessions before the next window which starts at 2023-07-26 13:07:45.287686+05:30; planning to start 1 session...
I 2023-07-25 13:15:33,618 hikari.gateway.0: shard is ready: 1 guilds, iLensIoTBot#5572<PHONE_NUMBER>890579490), session '5a69ae8501619612e0ea94da27dd2b25' on v10 gateway
I 2023-07-25 13:15:34,083 lightbulb.internal: Processing guild application commands
E 2023-07-25 13:15:34,619 hikari.event_manager: an exception occurred handling an event (StartedEvent)
Traceback (most recent call last):
  File "/home/biswa/PycharmProjects/BOT-Jarvis/.venv/lib/python3.10/site-packages/lightbulb/app.py", line 385, in _manage_application_commands
    await internal.manage_application_commands(self)
  File "/home/biswa/PycharmProjects/BOT-Jarvis/.venv/lib/python3.10/site-packages/lightbulb/internal.py", line 283, in manage_application_commands
    cmds_to_declare = await _get_guild_commands_to_set(app, guild_id)
  File "/home/biswa/PycharmProjects/BOT-Jarvis/.venv/lib/python3.10/site-packages/lightbulb/internal.py", line 164, in _get_guild_commands_to_set
    existing_commands = await app.rest.fetch_application_commands(app.application, guild_id)
  File "/home/biswa/PycharmProjects/BOT-Jarvis/.venv/lib/python3.10/site-packages/hikari/impl/rest.py", line 3702, in fetch_application_commands
    response = await self._request(route, query=query)
  File "/home/biswa/PycharmProjects/BOT-Jarvis/.venv/lib/python3.10/site-packages/hikari/impl/rest.py", line 732, in _request
    await aio.first_completed(request_task, self._close_event.wait())
  File "/home/biswa/PycharmProjects/BOT-Jarvis/.venv/lib/python3.10/site-packages/hikari/internal/aio.py", line 135, in first_completed
    await next(iterator)
  File "/usr/lib/python3.10/asyncio/tasks.py", line 571, in _wait_for_one
    return f.result()  # May raise f.exception().
  File "/home/biswa/PycharmProjects/BOT-Jarvis/.venv/lib/python3.10/site-packages/hikari/impl/rest.py", line 880, in _perform_request
    raise await net.generate_error_response(response)
hikari.errors.ForbiddenError: Forbidden 403: (50001) 'Missing Access' for https://discord.com/api/v10/applications/1133300879890579490/guilds/3/commands?with_localizations=true

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/biswa/PycharmProjects/BOT-Jarvis/.venv/lib/python3.10/site-packages/lightbulb/app.py", line 390, in _manage_application_commands
    raise errors.ApplicationCommandCreationFailed(
lightbulb.errors.ApplicationCommandCreationFailed: Application command creation failed for guild '3'. Is your bot in the guild and was it invited with the 'applications.commands' scope?
I 2023-07-25 13:15:34,623 hikari.bot: started successfully in approx 2.57 seconds

System info
hikari-lightbulb (2.3.3)
hikari (2.0.0.dev120) [9ade5395]
located at /home/biswa/PycharmProjects/BOT-Jarvis/.venv/lib/python3.10/site-packages/hikari
CPython 3.10.6 GCC 11.3.0
Linux biswa-laptop 5.19.0-46-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 21 15:35:31 UTC 2 x86_64 x86_64

### Further info

_No response_

### Checklist

- [X] I have made sure to remove ANY sensitive information (bot token, passwords, credentials, personal details, etc.).
- [X] I have searched the issue tracker and have made sure it's not a duplicate. If it is a follow up of another issue, I have specified it.

user error, not a bug
looking at the logs I'm assuming you're passing in the guild as a str of the id
this argument accepts a list of integers so for example [123456789, 987654321]


Link to kowledge-graph-maker gets 404

Hi Rahul,
Would love to see the code in the knowledge-graph-maker library, but the link to the repo in your readme gets a 404.
Will you be making it public in the future?
TIA

I unintentionally made the library source private. I made it public now.
Thanks


shell.js grep: internal error,  Invalid regular expression

Node version: 6.1.0
ShellJS version (the most recent version/Github branch you see the bug on): 0.7.0
Operating system: Mac OS
Description of the bug:
shell.js: internal error
SyntaxError: Invalid regular expression: /*.js/: Nothing to repeat

Example ShellJS command to reproduce the error:
shelljs.ls().grep("*.js")

I believe this is the expected behavior. This regex looks to be invalid. I think the regex you're looking for is grep(/.*\.js/). Note, grep()'s first argument should always be a regex, not a glob pattern to match files.
Please correct me if I've misunderstood. Cheers!

You can try the following example, it works. The first param is not regex, it is string. If you want to the first param is always string. you need to add some guard code.
shelljs.echo("mytest").grep("my");//result: mytest

The first parameter should be a regex. You can specify it either as a JS string or as a JS regex, but either way it should conform to regex syntax. This was to maintain consistent behavior. The only difference should be a matter of number of backslashes you need to escape. Hope this clarifies the confusion!
Your example is definitely correct. It should be identical in behavior to shelljs.echo("mytest").grep(/my/);, and that's the output I would expect. Hope this helps!


Add a script debugger "break on error"

It would be good to have the ability to drop into the script debugger on error.  This is relatively easy for non-terminating errors since the PowerShell engine continues to run and so the debugger runs.  But exceptions are trickier since the process state is unknown.  For exceptions thrown by PowerShell (ErrorAction: "Stop") we could stop in the debugger before throwing the exception.  It might be possible to have an unhandled exception handler to allow inspection of the runspace on a thrown exception.

I'd love to wire such a feature up to Visual Studio Code's exception breakpoints.

Consider exposing this as set-psbreakpoint -breakonerror

Seems like you could install an unhandled exception filter to catch the exception during the first pass - in which case, process state should still be known.  I particularly like this old Matt Pietrek article on the subject - https://www.microsoft.com/msj/0197/Exception/Exception.aspx

@SteveL-MSFT  Agreed.
@rkeithhill It turns out we already have this in the expression IL for exception handling routing (try/catch, trap) and we can use this to hook into the debugger.  Still lots of details to work out but this looks very doable.

Thanks to @lzybkr  for pointing this out.

@SteveL-MSFT alternative:
Debug-Runspace -BreakOnError
Set-Runspace Debug -BreakOnError

I was watching @TylerLeonhardt PSConfEU presentation on debugging and it got me thinking about a workaround.
launch.json
        {
            "name": "Powershell Break Current Script on Error",
            "type": "PowerShell",
            "request": "launch",
            "script": "./BreakOnError.ps1",
            "args": ["${file}"],
            "cwd": "${file}"
        }

BreakOnError.ps1
try {
    . $args[0]
} catch {
    function VSCodeBreakOnError ($Exception) {
        throw $Exception
    }
    VSCodeBreakOnError $Exception
}

Then set a function breakpoint for VSCodeBreakOnError in vscode, and whenever whatever script you run throws a terminating error (doesn't break on non-terminating errors without erroractionpreference = stop), the script will stop at the VSCodeBreakOnError function, and you can click back up to call stack to where the exception occured.
The main limitation of this approach is that you "lose" what $PSItem was, since it gets reassigned at the catch, so if you're debugging a loop you should use foreach to assign the loop variable to something other than the automatic PSItem, or make it your first line in the script. Maybe someone smarter than me knows some other PSCmdlet or something where you can find the PSItem value at this point.

This has been implemented by Kirk as an experimental feature.


Units with prefixes and composed units

Description of the issue
When annotating data in practice some units might not be present in the OEO. This could be specific units, as cited below, or units that appear more frequently in our domain, such as kW, MW, GW - which are all not present in the OEO yet.
I understand the units are imported from the "Unit Ontology" and find it strange that some units have more detailed prefixes, e.g. mass unit -> picogram, gram, kilogram, ..., than others.

Unit with prefix annotation: If units have a prefix such as kilo, giga etc. it is usually appended to the unit with k-, g- etc. and this way a part of the unit. Sometimes it happens that there is column with a certain measurement magnitude e.g., column “passengers (thousand)”. How should the “thousand” in such a case be handled? As a kilo to the unit like a normal prefix or as a kilo-concept to the parameter reference?

Originally posted by @lumi321 in https://github.com/OpenEnergyPlatform/oeplatform/discussions/1107#discussioncomment-4147168
Composed and rather rare units I'd consider to implement on demand in the future.
Ideas of solution
Add units that are frequently used in domain but still missing in OEO, such as

kilowatt
megawatt
gigawatt
...

TODO check rest of UO to complete list
Workflow checklist

[x] I am aware of the workflow for this repository

Composed and rather rare units I'd consider to implement on demand in the future.

But implementing on demand might be slow. We should at least discuss how to deal with composed units in general, e.g. €/MW.

This is a very important issue and we probably won't solve it as issue discussion. So I put it on the agenda for the next oeo dev meeting. https://etherpad.wikimedia.org/p/oeo-dev-49

We had yesterday the physical meeting on composed concepts. We made progress, but do not have a final solution. Thus I postpone this issue.

@chrwm : I suggest to close this issue now:

With issue #1815 / PR #1816 we implement the necessary object property for relating units to the unit components.
With the oeo-extended we have place to manually (and in future automatically) add composed units,

If you agree, please close this issue.

The units ontology has the object property has_prefix. My understanding was that this will be imported, but seemingly we forgot this in #1690

I'd propose to create a proper oeo relation has prefix and add the "may be identical to" annotation to relate to the above mentioned obo relation. A def could be:
A relation between a unit and a prefix that indicate the magnitude of the unit.


Allow parallel builds

This will resolve https://issues.jenkins-ci.org/browse/JENKINS-29696.
Thank you for help, @mimimizu.

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

Please ammend your commit message to include [JENKINS-29696].  That way the Jenkins bot posts in the issue.

:+1: The default serialized behavior for a post-build plugin seriously limits the throughput of our Jenkins instance. At any given moment, more than half of the "running" jobs are just waiting for a useless checkpoint on another job. Thank you for tackling this @bigwheel.

:100:

@mboersma Sorry for slow response, I went summer vacation.
Thank you #122, then Should I close this pull request?

@bigwheel you could fix the commit message and then I'll close #122. Or we can close this one if you prefer. Sorry to confuse things.
Note that #106 needs to be fixed before a new Slack plugin goes out, so that effectively blocks this change being released to users.

@mboersma sorry for very late response.

@bigwheel you could fix the commit message and then I'll close #122. Or we can close this one if you prefer. Sorry to confuse things.

I decide to close this PR. Thanks much support :)

I would like to get this fix, but my Jenkins doesn't see an updated version of the Slack Notification plugin yet. Should I expect to see an update soon?

@yoyobbi the next update (of which this is included) is blocked by #106.  Please feel free to contribute a fix.  I only maintain pull requests and releases.  I do not actively develop this plugin.

I see, understood. I haven't made the leap to Jenkins plugin development yet, so I will selfishly sit back and wait.


Run relevance infer for kpis 9-12

On a closer inspection of the relevance infer output, all csvs in output infer folder have answers for only one question: "What is the company name?" The run_folder method needs to be examined and run for kpis 9-12.

On reducing the kpis to 9-12, we get 0 relevant paragraphs for each question which should not be the case.

Debugging.

@chauhankaranraj latest still points to v0.9.0...

@chauhankaranraj latest still points to v0.9.0...

It needed to be manually updated, but should be fixed now

#92 fixed the error and the demo works for kpis 9-12. Reference pipeline.


TypeScript definitions

-Adds basic TypeScript definitions

LGTM

Is this going to be merged into master? This PR is alive since 2016. Is this project dead?


Adding Spacex Crew API

Description
SpaceX API is a public that fetches details of the spaceX crew and supports HTTPS requests.
Screenshot
Optional

Checklist

[x] API used in this PR was not used in just-calling-random-api before.
[x] API used in this PR is Public or I have permission to use it.
[x] My contribution is working.
[x] My contribution doesn't expose any API keys.
[x] My changes don't generate any new warnings.
[x] My changes don't affect any work done by other developers.

To tick a box, replace [ ] with [x].

Thanks for the PR


Code cleanup

Issue #45

There are far too many different kinds of changes being put together in one PR here.
We are all already working on separate PRs for and this is going to conflict a lot with every one of those.
I get the idea behind the issue you raised, but this is not the way to go imo.
It'd be better if you raised a separate PR for linting issues, separate PR to split the css files, separate PR for removing main_node and other files (which I am not sure are redundant btw, please check with @thuiop on this).

Alright, will work on fixing it, also I'll add some documentation on main_node.js

Will create a new Pull Request


Update Guice for Java 17 compatibility

Libaray
com.typesafe.play / play-guice
currently depends on version 4.2.3 of Guice.
Guice 4.x causes 'illegal reflective access' warnings on Java 15
and prevents Cerebro from being usable with Java 16 and and 17 due
to InaccessibleObjectExceptions.
Explicitly include higher version 5.0.1 of the dependencies
com.google.inject / guice
com.google.inject.extensions / guice-assistedinject
which work correctly with Java 15 and higher.
Fixes #514.

Thank you very much for the investigation. Cerebro is essentially a play application so I would prefer to wait until play 2.9 where this was solved. Anyhow thank you for the contribution!


chore(ci): When updating deps automatically commit changes

This should fix failing CI on dep updates

This PR is included in version 0.13.1 :tada:


cpu/percpu: store safe references to HV doorbell page and SVSM VMSA

Store a safe reference to the HV doorbell in the PerCpu
Cleanups and add some documentation
Store a safe reference to the SVSM VMSA in the PerCpu

Once this is merged I'll rework #348 to remove the remaining unsafe around page allocations


assertThat(0.0, equalTo(-0.0)) claims they are not equal

Consider the following program:
import static org.junit.Assert.assertThat;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.CoreMatchers.equalTo;

class test {
    public static void main(String[]argv) {
        assertThat(0.0, equalTo(-0.0));
    }
}

When I run it I get:
Exception in thread "main" java.lang.AssertionError:
Expected: <-0.0>
     but: was <0.0>
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
        at org.junit.Assert.assertThat(Assert.java:956)
        at org.junit.Assert.assertThat(Assert.java:923)
        at test.main(test.java:7)

Junit 4.12, hamcrest 1.3.

Oh, apparently it's just Java being awful: http://docs.oracle.com/javase/8/docs/api/java/lang/Double.html#equals-java.lang.Object-


Expanded state should be reset when a new resource is loaded

There is a memory leak, where the expanded state isn't cleared when a new resource is loaded:

@jcoyne https://github.com/LD4P/sinopia_editor/blob/master/src/reducers/index.js#L105
Each resource should have a key in expanded > entities > resources. That key should be removed when the resource is closed.


Apply patch from Yahoo! Japan.

Hello team,
I'm Hiroyuki, an engineer in Yahoo! JAPAN.
I found a bug of yjava_mdbm.
The fetch() method doesn't throw MdbmNoEntryException when no record is found.
(It throws MdbmFetchException.)
I have attached a test code reproducing the problem
and patches to fix it.
Please confirm these patches and fix the problem.
Thank you and best regards,
--
Hiroyuki KATO

Hi Hiroyuki-
Good catch, thanks for the patch!
-timrc

When a lookup fails due to not finding a key, fetch should return a code to indicate that the key is not present.  It should not throw an exception if that key is not present because this is not an exceptional condition.  Using an exception for a missing key will have poor performance.
Steve
From: Tim<EMAIL_ADDRESS>Sent: Friday, 29 January, 2016 09:11
To: yahoo/mdbm<EMAIL_ADDRESS>Subject: Re: [mdbm] Apply patch from Yahoo! Japan. (#59)
Hi Hiroyuki-
Good catch, thanks for the patch!
-timrc
—
Reply to this email directly or view it on GitHub https://github.com/yahoo/mdbm/pull/59#issuecomment-176866981 .  https://github.com/notifications/beacon/AHJP7DB2y2Rg1FRXKmyR3mVx8MXTLGqOks5pe5SSgaJpZM4HPUyI.gif


Docker is unnecessary for dwn server

I noticed the instructions include setting up docker. However dwn server is an executable node bin and none of the complexity of Docker is necessary. All the user needs to do is run npx @web5/dwn-server in the CLI.

@shamilovtim That's cool! I'm happy to update, buuut where did you see the instructions? Was it the docs website or a particular repo?? (This had to be written before I joined the team, and this particular repo is for example apps that people within our company built)


Use established updatable message for execute/internal progress bar

Internal execute plugin was reporting plan progress, with no verbosity, by updating a single line with test names as plan progresses. We already do have a code for this, in tmt.utils.updatable_message, let's re-use it.
The patch does a small refactoring to make the existing code more open, and refactors the execute plugin to use a custom subclass of the existing code, with extra touches the execute plugin needs.

For reviewers: wait with this one, let's review other small ones in the same area.
@happz will afterwards rebase

This is ready for review @psss @lukaszachy


An alternative xGovernance community proposal

The current xGovernor proposal ties the xGovernor role to participating in certain reward-bearing projects. These projects would be picked by the Foundation, which goes against democratization. Moreover involving any token or project other than Algo itself in the governance of the ecosystem makes us vulnerable to single-project failures.
The goal of this proposal is to rethink these issues and spark a different and parallel discussion to eventually reach a common conclusion.

I think requiring xGovs to hold a stake is nonsense.
There's no requirement of Foundation or Inc employees to hold a stake.

I think requiring xGovs to hold a stake is nonsense.
There's no requirement of Foundation or Inc employees to hold a stake.

Hey Zeus! I am glad you are here 🙂
The proposal mentions these:

minimum of 100k algo committed to be an xGov
xGov voting power is weighted by algos committed (like normal governance)
xGovs can propose one vote per 100k algo committed per governance period

Which of these are you against? All of them?
PS: why the hack can't I just normally reply to this, Github??


[SPARK-19335][SQL] Add upserts for writing to JDBC

What changes were proposed in this pull request?
This is a follow-up on #16685 and #16692.
Implements upsert mode for SaveMode.Append of the MySql, MsSql, and Postgres JDBC source.
See #41611 for an alternative using the MERGE INTO command (not supported by MySql).
Why are the changes needed?
The JDBC writer only supports either truncating the existing table or inserting. Duplicates, i.e. rows with identical values in the primary or unique index columns, cause an exception, permitting updating existing and inserting new rows.
Re-evaluating a partition due to executor loss will insert rows that have been inserted in an earlier attempt, which kills the entier Spark job.
Does this PR introduce any user-facing change?
This adds upsert and upsertKeyColumns options for SaveMode.Append of the JDBC source.
How was this patch tested?
Tests in JdbcSuite and integration suites.

Many databases support merge sql, including oracle https://issues.apache.org/jira/browse/SPARK-38200

see #41611

@beliefer can you please approve the PR?

Any update on this? Upsert is very much needed for jdbc sink


⚠ TiendaEnLinea has degraded performance

In a4449a5, TiendaEnLinea (https://www.fahorro.com/) experienced degraded performance:

HTTP code: 200
Response time: 6711 ms

Resolved: TiendaEnLinea performance has improved in e6042cd.


roxygen edits and minor correction to isEmptyVar()

@ashalper-usgs -- in case you didn't get the notice in email or slack, there is a conflict here with utils-read. We're not exporting all the functions now. Can you resolve that and re-commit so this passes tests?

I think it's going to be easier for me to close this pull request, clean up some stuff, then open a new one.


Android 8.0 does not show high priority notifications on home screen anymore

Expected Behaviour
notifications created with "priority" value 2 wont show on the home screen anymore on Android 8.
Actual Behaviour
notifications are only visible in the shade.
Reproduce Scenario (including but not limited to)
Create an android notification with priorty "2".
Steps to Reproduce
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Android 8
Looked into the source code and setPriorty is deprecated in API 26. setImportance on the channel should be used.

Is this still an issue? Can anyone make those "heads up" notifications work?


BUG [USER] Popup with registration form is not shown after clicking on the “My cabinet” button

Steps to reproduce:

Go to the https://ita-social-projects.github.io/GreenCityClient/#/welcome
Click on the "My cabinet" button on the header
Pay attention to the page is opened

**Expected Result:**
Popup with registration form is shown after clicking on the "My cabinet" button
Actual Result:
The "My cabinet" button is not highlighted and the login page is shown after the unregistered user clicks on the "My cabinet" button
Environment: Chrome Версія 80.0.3987.122 (Розробка) (64-розрядна версія) Windows7 Ultimate
[https://github.com/ita-social-projects/GreenCity/labels/Bug]
#385

Not relevant


Publish Official Docker Image

Describe what problem your feature request solves
Publish an official docker images to a public registry (Docker hub, gcr, something else?)
Describe the solution you'd like
Build the docker image as part of the build pipeline and publish the image to an official registry.
Additional context
Any official Threat Dragon releases should have a tagged image with the same version.  latest could be kept up to date based on the main branch.
Where this is an OWASP project, it would probably make sense to have it published under the OWASP dockerhub user.  I don't know what's involved  in getting publish rights there, nor do I know what requirements there are for images pushed there.

Hello @lreading - do you mind if I take this issue on? I will be preparing the release for web app and desktop app over the next two days and this will / should include the docker image

By all means!

Created a threatdragon user on Docker Hub: https://hub.docker.com/u/threatdragon
With container https://hub.docker.com/r/threatdragon/owasp-threat-dragon
Ideally this would be in the OWASP area of Docker Hub: https://hub.docker.com/u/owasp
We have emailed OWASP to allow us to use this organisation but have had no reply.
This needs integrating with the build/release pipeline

We are publishing an image via Github Action now when doing a release (triggered by tags). Do we want to keep this open and continue to try to get access to the OWASP area of Dockerhub, or should we just carry on with the threatdragon user?

I think it may be some time before we get  access to the OWASP area of Dockerhub, so I agree we can close this issue


Kerberos authentication with autorest v3

We would like to upgrade from autorest v2 to v3, but we are running into trouble keeping our existing mechanism to use Kerberos authentication (the web service is hosted on IIS and allows users to log in with their windows active directory credentials).
This is what we were doing with v2.
import json
import requests
from my_database_api import *
from requests_negotiate_sspi import HttpNegotiateAuth
from requests_kerberos import HTTPKerberosAuth
from msrest.authentication import KerberosAuthentication

api = MyDatabaseServiceAPI(KerberosAuthentication(), "http://mydatabaseservice.com")
addresses = api.get_addresses()

Is anyone aware of what the equivalent might be for v3 please, as when we generate the API it seems to be expecting a credential of type azure.core.credentials.TokenCredential?
Thanks in advance.

Hey @SkinnySackboy , from v2 -> v3 we don't use msrest.authentication anymore, we're now mainly using azure-identity (see docs about identity here).
I'm not sure the best way for you to switch since msrest.authentication.KerberosAuthentication seems custom for your use case, bringing in @lmazuel for his guidance. Thanks!

Hi @SkinnySackboy ! We don't have any plan to port this feature to our new SDK. It was added by an external contributor to msrest, and we were happy to accept the contribution and ship it, but we don't have it on our new backlog.
That being said, the code to make it work is really simple, see this line:
https://github.com/Azure/msrest-for-python/blob/9b67deacc860e10cd95eb968cfa770fe475f7d8e/msrest/authentication.py#L204
If you control the requests session, then you can still configure it. You can inject your own session into any client using trick like that:
https://github.com/Azure/azure-sdk-for-python/issues/9596#issuecomment-690939809
Let us know if it works or if we can do anything. We're open to contribution, if you want to port Kerberos to the new architecture :)

Thanks @lmazuel we'll try that and let you know how it goes. Thanks again.

@skinnysackboy are you ok if I close this issue? thanks!

Yes thanks @iscai-msft thanks again for your help, much appreciated.


Plugin Versioning

https://developer.hashicorp.com/vault/docs/release-notes/1.12.0#plugin-versioning
I think we should add a version to the plugin.

I am trying to figure out how to do this, but have not found any examples yet. It seems easy, on the surface, but I'd like to see how the versioning tag is set/handled by example.

@TJM Same here. I posted to HashiCorp forum and gotten no answer. I saw an example plugin that has a version.go with Version field. But no comment or anything to indicate if that's how Vault server will look for plugin version.

I reached out to our HashiCorp contact and they confirm that this is the field to set for plugin version: https://github.com/hashicorp/vault/blob/main/sdk/framework/backend.go#L97


feat [IDP-1692] : Added the docs for opsgenie plugin

Harness Developer Pull Request
Added the docs for opsgenie plugin
What Type of PR is This?

[ ] Issue
[X] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[X] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app


[azopenai] Create separate ChatChoice types for streaming vs non-streaming results

A common stumbling block when using the streaming vs non-streaming versions of ChatCompletions is which field your result will be in.
type ChatChoice struct {
        // <other fields elided>

	// The delta message content for a streaming response.
	Delta *ChatChoiceDelta

	// The chat message for a given chat completions prompt.
	Message *ChatChoiceMessage
}

As the docs state, when you stream Delta is filled in, and when you're not streaming Message is filled in. This leads to confusion over which field is used when, which we can make go away by just creating a separate type for streaming vs non-streaming.
We can do this easily enough:
<names TBD>

(NOTE: Completions doesn't have this issue - there's only a single text value field)

CC: @trrwilson, who was driving discussion about possible overloads and representation of this structure.

Been holding onto this for awhile, and we're not likely to do it (deviating too far from spec isn't wise on a beta api). Closing for now, will reopen later if needed.


Allow running shopify instead of npm/yarn/pnpm shopify

WHY are these changes introduced?
Allows someone who's installed the shopify CLI package globally to run shopify instead of npm/yarn/pnpm shopify. This should help avoid users getting confused as we will shortly be supporting a globally installed CLI for certain use cases.

WHAT is this pull request doing?

Since run.js is the entrypoint to the CLI, we hook in there and check if the running script is the same we'd expect based on npm list in the current working directory.
If it's the same script, we can just move on as usual.
If npm list fails, it's likely because you're not inside a directory with a package.json or your dependencies are messed up, and we just go on using the current CLI.
If you're running a different script, we run the correct run.js, handing over argv as is (excluding the first 2, which based on my testing should be node and the current script).
How to test your changes?

$ npm install -g /path/to/your/local/repo/copy
$ cd ~
$ shopify version # should be the same as your development version
$ cd /path/to/some/app
$ shopify version # should be the same as your app's installed @shopify/cli version
$ shopify app info --verbose # tests that flags are passed correctly, and also shows the correct version

Leaving this unapproved whilst we decide on action based on the above. But happy with the changes 👍


Support multiple paths

When calling complexipy should be able to handle multiple paths, for example:
complexipy /home/user/complexipy /home/user/documents/test.py -d low
And generate just a report, with the information, also, when there are no values on the table then the summary shouldn't be printed

https://typer.tiangolo.com/tutorial/multiple-values/multiple-options/


Add charset to MultipartBody

affected version: 1.4.9
Problem: The default multipart charset from Apache Http Client is 'US-ASCII' which destroys UTF-8 chars.
Solution: Please add the possibility to set a charset in com.mashape.unirest.request.body.MultipartBody.
A builder-style set method like mode(String) for the HttpEntity charset would be great.
Changes in com.mashape.unirest.request.body.MultipartBody:

add a new method 'charset(Charset)'

	public MultipartBody charset(Charset charset) {
		this.charset = charset;
		return this;
	}

set the charset in the getEntity-Method

...
builder.setCharset(this.charset);
...

+1
But as default behaviour UTF-8 should be set by Unirest if nothing else is specicified. According RFC 7578 it should be UTF-8 anyway...I guess.

Many unicode language users have been affected by this issue.
Unirest MultipartBody needs to support setCharset(x) method or use UTF-8 as the default charset.

Hello, this should be resolved or addressed in Unirest 2. Please see the upgrade guide for important changes.


Fix param spelling error

spelling error
Make sure set the target branch to develop
What is the purpose of the change
fix class[RemotingHelper]  method[exceptionSimpleDesc] var[element] spelling error
Brief changelog
fix class[RemotingHelper]  method[exceptionSimpleDesc] var[element] spelling error
Verifying this change
fix class[RemotingHelper]  method[exceptionSimpleDesc] var[element] spelling error
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

@RookieRoll Would you like to submit an issue first?

I added an issue
https://github.com/apache/rocketmq/issues/3685

@RookieRoll Would you like to submit an issue first?

I added an issue

@RookieRoll Would you like to submit an issue first?
I added an issue

https://github.com/apache/rocketmq/issues/3685


Migrate Makefile targets to Gradle tasks

Replace the Makefile targets with Gradle tasks:
make install-hooks => ./gradlew installHooks
make run-hooks => ./gradlew runHooks
make test => ./gradlew preMerge

@martinbonnin ++
Thanks for putting the effort to gradle-ify the repo 😄
I'm not very familiar with gradle so I'll rely @cortinico for comments.
For what I can see the makefile targets have been converted to gradle tasks , so all good here


Gallery should only run on phones for Android

The Play Store shouldn't offer the Gallery to tablet users.

http://stackoverflow.com/questions/18229589/android-disable-application-for-tablet might help?

I think @jason-simmons is taking a look at this?


Added N-Queues Implementation Code in C++

Please tag me accepted for hacktober fest 2022.

I really want to contribute to this issue . so please assign me this issue


How to retrieve the contents of a URL in a user-uploaded file

Please provide us with the following information:

This issue is for a: (mark with an x)
- [ ] bug report -> please search issues before submitting
- [x] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Unable to read content in URL using file retrieval function

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

azd version?

run azd version and copy paste here.

Versions

Mention any other details that might be useful
Currently, when I try to upload a file, it can be retrieved normally, but the URL in the file cannot be retrieved. I have added the URL to the index in Azure AI Search, but it still has no effect. What is the correct method? The main purpose is to have Azure AI Search function as a crawler and help me organize the information I need on the website. Please help me. Thank you.

Thanks! We'll be in touch soon.

Are you looking for the Blob storage URL? If so, that's stored in the "storageUrl" field in the Azure AI Search index. If you're looking for something else, please clarify.

Are you looking for the Blob storage URL? If so, that's stored in the "storageUrl" field in the Azure AI Search index. If you're looking for something else, please clarify.

thanks for reply. What I want is to be able to retrieve the content in the URL, which is the function of a web crawler. Is it possible to do this?


FIX random crash: Catch ObjectDispose exceptions on EndReceiveFrom

I've fixed a random crash on UDPSocket when running on dot net core. It would be great if you could integrate it

@gelexgaray
I found more issues with this on macos - im getting random shutdown crashes in my app and ive pin-pointed it to hanging timers. The server task.delays without cancellation so there are various race condition that can happen to your app at scale.
Ive added cancellation and updated the project to netstandard also...


chore(security): removed non required permissions

Some permissions were there because of legacy reasons and are not needed
anymore, this aims to reduce the amount of permissions required by the
operator and keep as short as possible.
Closes #1640

/test depth=push test_level=4

/test depth=push test_level=4

Started another E2e test run: https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/9611272212

E2e: https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/9615944656


About  costs of memory

Hi, thanks for your great work. I would like to know: 1. How much GPU memory is required to train AddSR? 2. During testing, assuming the use of the DrealSR dataset for x4, how much memory is needed? Thank you for your response.

Sorry to take up your time since this question is just to satisfy my curiosity.
It seems that GAN/Diffusion-based models are not compared with other Blind-SR methods that use direct supervised training. I wonder the reason for it.

Hi, thanks for your great work. I would like to know: 1. How much GPU memory is required to train AddSR? 2. During testing, assuming the use of the DrealSR dataset for x4, how much memory is needed? Thank you for your response.
Thank you for your attention to our work! Regarding question 1: Under the default training settings, each device requires approximately 40GB of GPU memory. Regarding question 2: Because the resolution of original LR images in DrealSR dataset are relatively large, we crop them into 128x128 patches for x4 super-resolution. With this setup, approximately 11GB of GPU memory is needed.

Thank you for your attention to our work! Regarding question 1: Under the default training settings, each device requires approximately 40GB of GPU memory. Regarding question 2: Because the resolution of original LR images in DrealSR dataset are relatively large, we crop them into 128x128 patches for x4 super-resolution. With this setup, approximately 11GB of GPU memory is needed.

In my view, Blind-SR methods that utilize direct supervised training tend to produce high-fidelity results that appear blurry, whereas GAN/diffusion-based methods are employed to generate clearer and more realistic results. Since our goal is to generate results with high perception quality, we primarily focus on GAN/diffusion-based methods.

Thanks for your response. it helps me a lot and has cleared up my confusion. I think this work advances the task of Blind SR.


SKSafeMath

Description of Change

Bugs Fixed

Fixes #

API Changes
None.

Behavioral Changes
None.

Required skia PR
https://github.com/mono/SkiaSharp/pull/2155
PR Checklist

[ ] Has tests (if omitted, state reason in description)
[ ] Rebased on top of main at time of PR
[ ] Merged related skia PRs
[ ] Changes adhere to coding standard
[ ] Updated documentation

Thanks for this PR. After reviewing I am not sure we are going to accept this. Although this PR has benefit for users, it is also not really used by SkiaSharp and adds additional maintenance for the authors.
This is better served as a separate library.


Unable to Download VesSAP via SFTP

Hello! Sorry for bothering again with the similar problem as #22 . I'm also following the instructions given in this pdf but FileZilla reports connection error. The output messages of FileZilla are as follows:
Status: Connecting to ftp.isd.med.uni-muenchen.de:4253...
Status: Using username "ftpagert".
Status: Access denied
Error: Authentication failed.
Error: Critical error: Could not connect to server
I've double checked the Host, Username, Password and Port. I'd be very grateful if you could help.
Thank you.

After careful check I found I've missed one character in the password. Now I have access to the data. SORRY again for the bother!


Removed profile but didn't get Camera back.

Hi, I wanted to see how certain browsers/webRTC apps behaved without a camera.  I used the disable-camera.mobileconfig which disabled the camera.  I did my testing, and later when I removed the profile the camera did not "return".  I have rebooted, reset the PRAM etc.

install disable-camera.mobileconfig
remove disable-camera.mobileconfig
VP: there is no camera in PhotoBooth.

Note my machine is managed remotely by a third party so there are other profiles present.  Unfortunately I can't login as an admin except as a managed user (with admin) to see if the camera appears for other users.
When I run the System Profiler no camera is present, and the camera is not listed in the USB devices, which I assume it is normally.
System profiler logs this:

Error loading /Library/CoreMediaIO/Plug-Ins/DAL/AppleCamera.plugin/Contents/MacOS/AppleCamera:  dlopen(/Library/CoreMediaIO/Plug-Ins/DAL/AppleCamera.plugin/Contents/MacOS/AppleCamera, 262): no suitable image found.  Did find:
/Library/CoreMediaIO/Plug-Ins/DAL/AppleCamera.plugin/Contents/MacOS/AppleCamera: open() > failed with errno=13
Cannot find function pointer AppleCameraNewPlugIn for factory <CFUUID 0x7f9f5840ce30> 3A06A710-6A71-48F1-93CE-1521DC01C0E7 in CFBundle/CFPlugIn 0x7f9f5840bca0 </Library/CoreMediaIO/Plug-Ins/DAL/AppleCamera.plugin> (not loaded)

/var/log/system shows this:

Jun 19 10:53:56 TMV-DEV-13 com.apple.xpc.launchd[1] (com.apple.videoconference.camera): The UserName key is not supported for non-System services.

I attempted to create a new profile and set the permission to allowCamera true:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>HasRemovalPasscode</key>
	<true/>
	<key>PayloadContent</key>
	<array>
		<dict>
			<key>PayloadDescription</key>
			<string>Configures a password for profile removal</string>
			<key>PayloadDisplayName</key>
			<string>Profile Removal</string>
			<key>PayloadIdentifier</key>
			<string>com.apple.profileRemovalPassword.E0A88453-2F2A-40C4-94B5-C27E5FB3BBC6</string>
			<key>PayloadType</key>
			<string>com.apple.profileRemovalPassword</string>
			<key>PayloadUUID</key>
			<string>E0A88453-2F2A-40C4-94B5-C27E5FB3BBC6</string>
			<key>PayloadVersion</key>
			<real>1</real>
		</dict>
		<dict>
			<key>PayloadDescription</key>
			<string>Configures restrictions</string>
			<key>PayloadDisplayName</key>
			<string>Restrictions</string>
			<key>PayloadIdentifier</key>
			<string>com.apple.applicationaccess.7798FCCE-D834-4187-B00D-743EE64AED3D</string>
			<key>PayloadType</key>
			<string>com.apple.applicationaccess</string>
			<key>PayloadUUID</key>
			<string>7798FCCE-D834-4187-B00D-743EE64AED3D</string>
			<key>PayloadVersion</key>
			<integer>1</integer>
			<key>allowCamera</key>
			<true/>
		</dict>
	</array>
	<key>PayloadDescription</key>
	<string>Adds a restriction profile to OS X that enables access to the camera drivers.</string>
	<key>PayloadDisplayName</key>
	<string>Camera Enabler</string>
	<key>PayloadIdentifier</key>
	<string>com.github.camera-disabler.enabler</string>
	<key>PayloadRemovalAllowed</key>
	<true/>
	<key>PayloadType</key>
	<string>Configuration</string>
	<key>PayloadUUID</key>
	<string>531D6915-E325-4ACD-9A62-800175FEA77B</string>
	<key>PayloadVersion</key>
	<integer>1</integer>
</dict>
</plist>

I will see about getting unrestricted admin local access to verify the camera status.
Despite the problem, the tool was very useful, thank you.

Found the solution:
sudo chmod 755 /Library/CoreMediaIO/Plug-Ins/DAL/AppleCamera.plugin/Contents/MacOS/AppleCamera
sudo chmod 755 /Library/CoreMediaIO/Plug-Ins/FCP-DAL/AppleCamera.plugin/Contents/MacOS/AppleCamera

(Or rather my third party support did. ;-))
Thanks for the tool!


Fix potential memory issues when use deepspeed Z3

I had OOM problem when doing DPO training using zero3. It needs to call module twice in one training step, and second call is with no_grad().
The problem is caused by two bugs:

"__n_available_params", which helps to control fetched parameters, becomes negative after release_and_reset_all() function.
module.ds_grads_remaining becomes negative in backward() if we call module more than once in one training step.

I tried to create two patches to fix these issues.

@microsoft-github-policy-service agree [company="Intel"]

@microsoft-github-policy-service agree company=Intel

@microsoft-github-policy-service agree company=Intel

@wenbinc-Bin, thanks for the PR. Are you able to provide unit tests for this?

@wenbinc-Bin, thanks for the PR. Are you able to provide unit tests for this?

Ok, I try to add a unit test.

I saw unit-tests workflow failed. I fix the issue and update the PR.


change grid.cshtml file name

Hi,
Can I know where is _Grid.cshtml file getting called. Can i change the name of this file?
Thanks in advance!

Here's example on that.

I renamed _Grid.cshtml to _MyGrid.cshtml and made the change mentioned above. It is saying net::ERR_CONNECTION_RESET in console and grid is not getting loaded. Am i missing anything?

I would not recommend touching or renaming the grid's content at all.
You should use your own new partials and then tell the grid to use them if you need to change generated html.


All queries return 404 "non existing id"

Describe the bug
Authenticated using client_id and client secret.
All endpoints return either 404 "non existing id" for single item queries like artist or empty lists of results for queries like search.
Your code
import spotipy
from spotipy.oauth2 import SpotifyClientCredentials

auth_manager = SpotifyClientCredentials()

sp = spotipy.Spotify(auth_manager=auth_manager)

uri = "https://open.spotify.com/show/71mvGXupfKcmO6jlmOJQTP"

show = sp.show(uri)
print(show)

Expected behavior
Should return a result for a valid query ID.
Output
HTTP Error for GET to https://api.spotify.com/v1/shows/71mvGXupfKcmO6jlmOJQTP returned 404 due to non existing id
Traceback (most recent call last):
  File "/home/ciferkey/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/spotipy/client.py", line 175, in _internal_call
    response.raise_for_status()
  File "/home/ciferkey/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/requests/models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api.spotify.com/v1/shows/71mvGXupfKcmO6jlmOJQTP

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ciferkey/PycharmProjects/pythonProject/main.py", line 14, in <module>
    show = sp.show(url)
  File "/home/ciferkey/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/spotipy/client.py", line 384, in show
    return self._get("shows/" + trid, market=market)
  File "/home/ciferkey/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/spotipy/client.py", line 210, in _get
    return self._internal_call("GET", url, payload, kwargs)
  File "/home/ciferkey/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/spotipy/client.py", line 186, in _internal_call
    raise SpotifyException(
spotipy.exceptions.SpotifyException: http status: 404, code:-1 - https://api.spotify.com/v1/shows/71mvGXupfKcmO6jlmOJQTP:
 non existing id

Environment:

OS: Linux, Manjaro 20
Python version: 3.8 Virtualenv
spotipy version: 2.13.0
IDE: PyCharm

Additional context
I've tried a variety of endpoints and they all seem to fail in the same way.

The resource is in URL form, not URI. Could you try e.g. spotify:show:71mvGXupfKcmO6jlmOJQTP?

@felix-hilden Correct docs say you can supply "show_id - the show ID, URI or URL". The specific example is a URL but I've tried all they and they behaved the same way.

The plot thickens. Seems other users are having issues with the shows endpoint: https://community.spotify.com/t5/Spotify-for-Developers/Searching-for-podcasts-not-returning-results/m-p/4973209#M429

Another update based on on the forum.
This is definitely a problem with their API not conforming with the published documentation. The market param is documented as optional but it actually required.
This will not return a result: https://api.spotify.com/v1/shows/71mvGXupfKcmO6jlmOJQTP
But this will: https://api.spotify.com/v1/shows/71mvGXupfKcmO6jlmOJQTP?market=US
If we want this library to confirm with the docs I can close this issue and leave the code as is.
Alternatively the library could be updated to make the market parameter required. I'd be willing to make a PR with this  quick fix and provide documentation for why it is needed.

It is needed with application tokens but not user tokens. I think the API is fine. Shows consider the market of a user or the specified market. See the doc for more info https://developer.spotify.com/documentation/web-api/reference/shows/get-a-show/

Sounds good. I'll mark as closed then!

What was the simple answer to this in the end?
It didn't find the show because your user token is not from the US, so in your specific case you should specify it?

As the documentation suggests, either the market is inferred from a user's country, or it must be specified. Otherwise the show is treated as not available.


add REPL Bracketed Paste Mode

when paste block code to R repl , need implement Bracketed Paste Mode like julia REPL
# Bracketed Paste Mode
        "\e[200~" => (s,o...)->begin
            input = LineEdit.bracketed_paste(s) # read directly from s until reaching the end-bracketed-paste marker
            sbuffer = LineEdit.buffer(s)
            curspos = position(sbuffer)
            seek(sbuffer, 0)
            shouldeval = (nb_available(sbuffer) == curspos && search(sbuffer, UInt8('\n')) == 0)
            seek(sbuffer, curspos)
            if curspos == 0
                # if pasting at the beginning, strip leading whitespace
                input = lstrip(input)
            end
            if !shouldeval
                # when pasting in the middle of input, just paste in place
                # don't try to execute all the WIP, since that's rather confusing
                # and is often ill-defined how it should behave
                edit_insert(s, input)
                return
            end
            edit_insert(sbuffer, input)
            input = takebuf_string(sbuffer)
            oldpos = start(input)
            firstline = true
            while !done(input, oldpos) # loop until all lines have been executed
                ast, pos = Base.syntax_deprecation_warnings(false) do
                    Base.parse(input, oldpos, raise=false)
                end
                if (isa(ast, Expr) && (ast.head == :error || ast.head == :continue || ast.head == :incomplete)) ||
                        (done(input, pos) && !endswith(input, '\n'))
                    # remaining text is incomplete (an error, or parser ran to the end but didn't stop with a newline):
                    # Insert all the remaining text as one line (might be empty)
                    tail = input[oldpos:end]
                    if !firstline
                        # strip leading whitespace, but only if it was the result of executing something
                        # (avoids modifying the user's current leading wip line)
                        tail = lstrip(tail)
                    end
                    LineEdit.replace_line(s, tail)
                    LineEdit.refresh_line(s)
                    break
                end
                # get the line and strip leading and trailing whitespace
                line = strip(input[oldpos:prevind(input, pos)])
                if !isempty(line)
                    # put the line on the screen and history
                    LineEdit.replace_line(s, line)
                    LineEdit.commit_line(s)
                    # execute the statement
                    terminal = LineEdit.terminal(s) # This is slightly ugly but ok for now
                    raw!(terminal, false) && disable_bracketed_paste(terminal)
                    LineEdit.mode(s).on_done(s, LineEdit.buffer(s), true)
                    raw!(terminal, true) && enable_bracketed_paste(terminal)
                end
                oldpos = pos
                firstline = false
            end
        end

I don't think we need to reactivate this, R repl updates the keymap rather than overwrite it.

IMHO, Bracketed Paste Mode is not only about update history, but also execute code when paste, for example:
if no implement R Bracketed Paste Mode , paste following code to R REPL
x=1
x
x=x+1
x
x=x*2
x

the REPL will show
julia> using RCall

R> x=1
   x
   x=x+1
   x
   x=x*2
   x

[1] 4

R>

if execute the code in R,the result will be
> x=1
> x
[1] 1
> x=x+1
> x
[1] 2
> x=x*2
> x
[1] 4
>

this is why we still need implement R Bracketed Paste Mode and switch to it when enter R mode , when leave R mode we also need reactivate Julia  Bracketed Paste Mode

I see. Btw, the line shifted because of new code. I meant this line https://github.com/JuliaStats/RCall.jl/blob/6fe0dcda1e061d8fa7604f7ee122d7bd5700732e/src/repl.jl#L134

I finally understand what's going on. Julia bracket paste mode mistakes the R code. If I remove the Julia bracket paste mode, everything works as expected.

Done 1833c6e


[e2e]: generic schedule main multi-uses slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/3835171786
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.generic.schedule.main.multi-uses.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.generic.schedule.main.multi-uses.slsa3.yml
Trigger: schedule
Branch: main
Date: Wed Jan  4 04:27:20 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/3835171786
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.generic.schedule.main.multi-uses.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.generic.schedule.main.multi-uses.slsa3.yml
Trigger: schedule
Branch: main
Date: Wed Jan  4 04:27:45 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/3843840307
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.generic.schedule.main.multi-uses.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.generic.schedule.main.multi-uses.slsa3.yml
Trigger: schedule
Branch: main
Date: Thu Jan  5 04:31:39 UTC 2023
Tests are passing now. Closing this issue.


Make an internal API warning macro

We often expose internal APIs. These APIs are pub but really shouldn't be used as we will not garueentee the stability.
Maybe we could use depercated mechanism to generate a warning when someone touches these APIs.
Maybe there is a better way, this ticket is to track and solve this problem.

potentially interesting solution: https://github.com/rust-lang/api-guidelines/discussions/95
(via feature flag)


Data protection status screen

Summary
I as a data manager would like the Portal to tell me, for each data type, what are the fields that contain sensitive info and are currently being protected by the system either through anonymisation or encryption.
Outcome
The data manager gets to know what data is currently protected and how.
How will it work?
We're going to implement the UI part to fulfill this user story and make the UI drive the definition of a backend REST API which will actually provide data protection status. The UI will display the following info for each data type (JSON object type)

Top-level field names.
For each field name whether or not the system protects its content. In the case the system protects the field data, we need to tell the user by which means, either encryption or anonymisation.
For each field name that's protected we need to tell the user whether the field data is protected at rest, in transit or both.

See also screenshot attached to #197.


Display-name error

What is your Quests version / build number (do not say "latest")?
Quests 4.6.1
QuestsGUI 0.51
Describe the problem and how to replicate it.
Whit the plugin questsGUI when u do /quests list the display name it's wrong.
for example
quests:
custom1:
name: Consumatore1
ask-message: Challenge objectives!
finish-message: Well done!
gui-display:
==: org.bukkit.inventory.ItemStack
type: GOLDEN_APPLE
meta:
==: ItemMeta
meta-type: UNSPECIFIC
display-name: §eConsumatore §l#1
The name of the item in /quests list that will come out is Consumatore1 and not §eConsumatore §l#1 (the display-name:)
Any console errors to share?
No

If applicable, can you provide an example quest from quests.yml?
quests:
  custom1:
    name: Consumatore1
    ask-message: Challenge objectives!
    finish-message: Well done!
    gui-display:
      ==: org.bukkit.inventory.ItemStack
      type: GOLDEN_APPLE
      meta:
        ==: ItemMeta
        meta-type: UNSPECIFIC
        display-name: §eConsumatore §l#1

Thanks for the report. The example quest is invalid; must have at least one stage.
QuestsGUI overwrites the display name with the name of the quest. Use color in your quest name to get the desired effect. For further help with QuestsGUI, use the appropriate support channels.


Add get_calibration_data function

The PR would add a function to IQMClient that would allow users and adapter libraries to directly query the /calibration API endpoint and return calibration data. This is currently a function used internally and it useful because it allows you to utilise the same authentication session as IQMClient uses for job submission.
Regarding adding tests. I believe a simple MockJsonResponse test would be enough similar to test_get_quantum_architecture. However I would need to define perhaps a few things:

sample_calibration similar to sample_quantum_architecture
Calibration Specification? Similar to QuantumArchitectureSpecification
Opaque UUID for quality_metrics_set_id_value for example for the sample_calibration.

Looking forward to your response,
Jake

Hi,

We will discuss internally what kind of sample calibration can be made public, and I'll get back to you.
There is no calibration specification scheme currently, and we will also discuss how strict/loose it should be. For the purposes of initial testing it just the general structure dict[str, dict[str, str]] will probably suffice.
A random UUID4 for quality metric set can be used.

Speaking of quality metric set, do you also want get_quality_metric_set(cal_set_id: UUID4) kind of function?

Please disregard this:

Speaking of quality metric set, do you also want get_quality_metric_set(cal_set_id: UUID4) kind of function?

I forgot that calibration endpoint actually returns QMS.


Mask refactor

No more dependencies. Not even jQuery.
I've never written an end-to-end test before, so I'll need assistance rewriting the spec.
Big things to note about the refactor:

$observe is set on the mask attr, so mask is fully dynamic.
Model is now sent the unmasked value of the input. This is more useful, arguably, than the masked value for insertion into a database. Masking is a function of the view, not the model.

This is my first real directive I've written, so I'd love all the feedback I can get.
Thanks.

Would anyone know if we can use this directive in the angular-ui-mask repository? I would like to send back the formatted value back to the server, and in the documentation, it isn't clear. Thanks!


go2hx Allows Uncomparable Type Comparisons (invalid in Go), Incorrectly Returning false Instead of Causing a Panic

Description
In Go, certain types are uncomparable and attempting to directly compare them with == or != results in a runtime panic. These uncomparable types include structs with slices, maps, and functions. However, go2hx allows these comparisons and translates them to Haxe code that simply returns false, which is inconsistent with Go's runtime behavior.
Steps to Reproduce

Example Code (Struct with Slice Field):
package main

import "fmt"

type MyStruct struct {
    Field1 int
    Field2 []int // Slice makes this struct uncomparable
}

func main() {
    s1 := MyStruct{Field1: 1, Field2: []int{1, 2, 3}}
    s2 := MyStruct{Field1: 1, Field2: []int{1, 2, 3}}

    fmt.Println(s1 == s2) // This line will panic in Go
}

Example Code (Map Comparison):
package main

import "fmt"

func main() {
    a := map[string]int{"a": 1}
    b := map[string]int{"a": 1}

    fmt.Println(a == b) // This line will panic in Go
}

Example Code (Function Comparison):
package main

import "fmt"

func main() {
    f1 := func() int { return 1 }
    f2 := func() int { return 1 }

    fmt.Println(f1 == f2) // This line will panic in Go
}

Translate the code to Haxe using go2hx.

Execute the translated Haxe code:

Unexpected Behavior: In each case, the Haxe code outputs false instead of causing a runtime error.

Expected Behavior
The translated Haxe code should mimic Go’s behavior by either throwing an error or causing a runtime exception when attempting to compare uncomparable types, rather than silently returning false.
Actual Behavior
go2hx translates the comparisons in such a way that they print false in Haxe, leading to incorrect assumptions in code that rely on Go's panic behavior for incomparable type comparisons.
Additional Information

Go Version: go1.23.0
go2hx Version: commit 29d31384b7036a6469091f7339360722df2f3086 (HEAD -> master, origin/master, origin/HEAD)
Haxe Version: 4.3.6

Impact
This discrepancy can lead to subtle bugs in codebases that rely on Go’s runtime error handling for uncomparable types. Implementing a runtime check in the Haxe translation to mimic Go’s behavior would ensure consistency and prevent potential misinterpretations.
Note
Issue #183 is different because the source Go code in #183 does not produce a go build error, whereas the above Go codes result in build errors in Go, but the translated Haxe programs behave differently.

This is an interesting issue @Yeaseen .
The examples above fail at compile time in go. Given that go2hx requires valid go code as input (its purpose is to translate working go libraries after all), I'm not sure that go2hx needs to defend against these exact errors.
However, if you transpose the go examples above to use interface{} variables, then they should produce runtime panics, as you describe.
Structs:
package main

import "fmt"

type MyStruct struct {
	Field1 int
	Field2 []int // Slice makes this struct uncomparable
}

func main() {
	var s1, s2 interface{}

	s1 = MyStruct{Field1: 1, Field2: []int{1, 2, 3}}
	s2 = MyStruct{Field1: 1, Field2: []int{1, 2, 3}}

	fmt.Println(s1 == s2) // This line will panic in Go
}

Maps:
package main

import "fmt"

func main() {
	var a, b interface{}

	a = map[string]int{"a": 1}
	b = map[string]int{"a": 1}

	fmt.Println(a == b) // This line will panic in Go
}

Functs:
ackage main

import "fmt"

func main() {
	var f1, f2 interface{}

	f1 = func() int { return 1 }
	f2 = func() int { return 1 }

	fmt.Println(f1 == f2) // This line will panic in Go
}

I'm afraid I've not tested what go2hx does with these revised examples.

Okay the cases of func, slice and map interface equality checking should now be consistent, and return the same runtime error that Go does.
Runtime errors should function the same within reason.
However I am also in agreement with @elliott5 , not valid Go code, is not supported by go2hx in anyway.
Down the road as a quality of life improvement I'd be fine with non valid Go code showing the compiler error from Go, and preventing go2hx compilation.
I say we close this issue, and keep #183 open until confirmation that it's working runtime panic wise.

Yeah. Agree with both of you @elliott5 and @PXshadow
The patterns in #183 should be the concern as these appear in the runtime errors. I am closing this issue and putting @elliott5's  revised codes in #183 comment

Yeah. Agree with both of you @elliott5 and @PXshadow
The patterns in #183 should be the concern as these appear in the runtime errors. I am closing this issue and putting @elliott5's  revised codes in #183 comment


Question

Hello, i have a question is what things i need to choose? the picture below:

Yes, as you want to merge your changes into the main branch of our repository, which would be this!

ok, but last question why there is only 1 contributor

Yes, as you want to merge your changes into the main branch of our repository, which would be this!

it is ok?


ensure extism:host/env::get_log_level is available and release it

Noting, when compiling a go plugin with pdk v1.1.0 and attempting to call it using dotnet SDK 1.2.1:
An unexpected error occurred:
Unable to create Extism plugin: unknown import: `extism:host/env::get_log_level` has not been defined

Had to downgrade go pdk to 1.0.6 which works OK with dotnet SDK 1.2.1.

@bradyjoslin after taking another look, your issue will be fixed if you upgrade Extism.runtime.all (or whichever runtime you're using) to 1.8+
I am adding the necessary functions to set the global log level in this PR https://github.com/extism/dotnet-sdk/pull/112

@mhmd-azeez  - updated the nuget package and looks great - thanks! 🙏🏻

@bradyjoslin perfect, I am going to close this issue, feel free to re-open it or open new ones if you faced anything else!


Upgrade the rocksdb to 5.7

rocksdb 5.7.3 has a issue on the fast crc32, we will upgrade to 5.8+

done


Update embedding.md

I think it's a really nice use case to introduce people to Modal & embedding inference. I do think that the clarity can probably be improved a bit, especially around the core orchestration decisions.
eg.

clarifying we'll be establishing two separate servers — one inference server & one sevrer that just handles the download job.
what is an inference server in the context of embeddings?

cc: @ivanleomk

@ivanleomk merge whenever you're feeling good

@ivanleomk FF to further edit it too!