Running swa locally on a arm64 with --data-api-location (CosmoDB connection) fails

Before filing this issue, please ensure you're using the latest CLI by running swa --version and comparing to the latest version on npm.
Are you accessing the CLI from the default port :4280 ?

[ ] No, I am using a different port number (--port) and accessing the CLI from that port
[x ] Yes, I am accessing the CLI from port :4280

Make sure you are accessing the URL printed in the console when running swa start!

ℹ NOTE: Make sure to enable debug logs when running any swa commands using --verbose=silly
Describe the bug
I am following this tutorial, https://learn.microsoft.com/en-us/azure/static-web-apps/database-azure-cosmos-db?tabs=bash, to run Cosmo DB on my local desktop.  When running, swa start --data-api-location swa-db-connections --verbose=silly I encounter a failure,
[dataApi] /bin/sh: /Users/XXXX/.swa/dataApiBuilder/0.6.14/Microsoft.DataApiBuilder: cannot execute binary file
To Reproduce
Steps to reproduce the behavior:

npm install -g @azure/static-web-apps-cli
npm update
swa start --data-api-location swa-db-connections --verbose=silly

Expected behavior
I expected swa to start with dab.  I even tried to install dab locally, in the hopes swa would use the arm dba already installed.
Notice the version downloaded is<EMAIL_ADDRESS>but this is an arm computer.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: MacOS
Version 13.3.1 (a)

Additional context
Debug Logs:
MacBook-Pro:GatewayGamers XXXX$ swa start --data-api-location swa-db-connections --verbose=silly
Welcome to Azure Static Web Apps CLI (1.1.2)
Getting config file options from swa-cli.config.json...
Changed directory to /Users/XXXX/Documents/sourcecode/GatewayGamers
Using configuration "gateway-gamers" from file:
/Users/XXXX/Documents/sourcecode/GatewayGamers/swa-cli.config.json

WARNING: This emulator may not match the cloud environment exactly. *
Always deploy and test your app in Azure.                           *

Checking if localhost:4280 is accepting TCP connections...
Port 4280 is available. Use it.
Resolved port number: 4280
appDevserverUrl provided, we will try connect to dev server at build
Data Api Folder found: /Users/XXXX/Documents/sourcecode/GatewayGamers/swa-db-connections
Trying to read workflow config with values:

appLocation: /Users/XXXX/Documents/sourcecode/GatewayGamers
outputLocation: http://localhost:3000
apiLocation:
Found a SWA workflow file: /Users/XXXX/Documents/sourcecode/GatewayGamers/.github/workflows/azure-static-web-apps-mango-sky-0c0b85b0f.yml
app_build_command:
api_build_command:
app_location: /
output_location: build
api_location: api
data_api_location:
Validating user workflow config (BEFORE):
appLocation: /Users/XXXX/Documents/sourcecode/GatewayGamers
outputLocation: http://localhost:3000
apiLocation:
Validating user workflow config (AFTER):
appLocation: /Users/XXXX/Documents/sourcecode/GatewayGamers
apiLocation:
outputLocation: http://localhost:3000
dataApiLocation:
Workflow configuration:
config:

appBuildCommand:
apiBuildCommand:
appLocation: /Users/XXXX/Documents/sourcecode/GatewayGamers
apiLocation:
outputLocation: http://localhost:3000
dataApiLocation:

files:

0: /Users/XXXX/Documents/sourcecode/GatewayGamers/.github/workflows/azure-static-web-apps-mango-sky-0c0b85b0f.yml
User workflow config:

appBuildCommand:
apiBuildCommand:
appLocation: /Users/XXXX/Documents/sourcecode/GatewayGamers
apiLocation:
outputLocation: http://localhost:3000
dataApiLocation:
files:

0: /Users/XXXX/Documents/sourcecode/GatewayGamers/.github/workflows/XXXX.yml
Running dab --version
Installed version: 0.7.6+61de247acf65280d93783072226f695536591ffb

Downloading the version 0.6.14
[swa] ✔ Downloading<EMAIL_ADDRESS>Checksum match: 7965ba21b9c480a2ce87832b2f11655bfaae9726962aa0b194c39c31499290b3
Saved binary to /Users/XXXX/.swa/dataApiBuilder/0.6.14/dab_osx-x64-0.6.14.zip
Saved metadata to /Users/XXXX/.swa/dataApiBuilder/DataApiBuilder.json
Setting executable permissions for data-api-builder binary
DataApiBuilder found: /Users/XXXX/.swa/dataApiBuilder/0.6.14/Microsoft.DataApiBuilder. Using this to start data-api server
Running cd "/Users/XXXX/Documents/sourcecode/GatewayGamers/swa-db-connections" && "/Users/XXXX/.swa/dataApiBuilder/0.6.14/Microsoft.DataApiBuilder" start -c staticwebapp.database.config.json --no-https-redirect
Starting the SWA emulator with the following configuration:

ssl:

0: false
1:
2:

env:

SWA_RUNTIME_CONFIG_LOCATION: /Users/XXXX/Documents/sourcecode/GatewayGamers
SWA_RUNTIME_WORKFLOW_LOCATION: /Users/XXXX/Documents/sourcecode/GatewayGamers/.github/workflows/XXXX.yml
SWA_CLI_DEBUG: silly
SWA_CLI_API_PORT: 7071
SWA_CLI_APP_LOCATION: /Users/XXXX/Documents/sourcecode/GatewayGamers
SWA_CLI_OUTPUT_LOCATION: http://localhost:3000
SWA_CLI_API_LOCATION:
SWA_CLI_DATA_API_LOCATION: /Users/XXXX/Documents/sourcecode/GatewayGamers/swa-db-connections
SWA_CLI_DATA_API_PORT: 5000
SWA_CLI_HOST: localhost
SWA_CLI_PORT: 4280
SWA_CLI_APP_SSL: false
SWA_CLI_APP_SSL_CERT:
SWA_CLI_APP_SSL_KEY:
SWA_CLI_STARTUP_COMMAND: npm start
SWA_CLI_VERSION: 1.1.2
SWA_CLI_SERVER_TIMEOUT: 60
SWA_CLI_OPEN_BROWSER: false

commands:

swa: node<EMAIL_ADDRESS>api:
dataApi: cd "/Users/XXXX/Documents/sourcecode/GatewayGamers/swa-db-connections" && "/Users/XXXX/.swa/dataApiBuilder/0.6.14/Microsoft.DataApiBuilder" start -c staticwebapp.database.config.json --no-https-redirect
run: cd "/Users/XXXX/Documents/sourcecode/GatewayGamers" && npm start
[dataApi] /bin/sh: /Users/XXXX/.swa/dataApiBuilder/0.6.14/Microsoft.DataApiBuilder: cannot execute binary file
[dataApi] cd "/Users/XXXX/Documents/sourcecode/GatewayGamers/swa-db-connections" && "/Users/XXXX/.swa/dataApiBuilder/0.6.14/Microsoft.DataApiBuilder" start -c staticwebapp.database.config.json --no-https-redirect exited with code 126
--> Sending SIGTERM to other processes..
[swa] node<EMAIL_ADDRESS>exited with code SIGTERM
--> Sending SIGTERM to other processes..
[run] cd "/Users/XXXX/Documents/sourcecode/GatewayGamers" && npm start exited with code SIGTERM
✖ SWA emulator stoped because the --run command exited with code SIGTERM.

Note, dab is installed:
MacBook-Pro:GatewayGamers XXXX$ dab --version
Microsoft.DataApiBuilder 0.7.6+61de247acf65280d93783072226f695536591ffb

Thanks for reporting this, we will investigate


Unable to catch page crash error when happening on browser.newPage

Puppeteer version: 3.1.0
Platform / OS version: Windows 2016 / Windows 10
URLs (if applicable): no url
Node.js version: 12.16.1
Chrome version 83.0.4103.61 (Official Build) (64-bit) (but happens also on chromium)

There are no reproduction steps. I run a few thousands instances of our bot per server per day. We noticed though it randomly blocks and after further inspection we isolated that it happens at the browser.newPage() call. The issue here is that it throws Page crashed right away. Also there seems to be no way to intercept said page crash.
0|eater  | 28-05 04:21:26.054: here1
0|eater  | 28-05 04:21:26.055: Trace
0|eater  | 28-05 04:21:26.055:     at Object.runTask (C:\adwallet-eater\src\eater-puppeteer.js:478:18)
0|eater  | 28-05 04:21:26.055:     at runMicrotasks (<anonymous>)
0|eater  | 28-05 04:21:26.055:     at processTicksAndRejections (internal/process/task_queues.js:97:5)
0|eater  | 28-05 04:21:26.055:     at async run (C:\adwallet-eater\src\eater.js:15:4)
0|eater  | 28-05 04:21:26.055: Trace
0|eater  | 28-05 04:21:26.055:     at Object.runTask (C:\adwallet-eater\src\eater-puppeteer.js:482:18)
0|eater  | 28-05 04:21:26.055:     at runMicrotasks (<anonymous>)
0|eater  | 28-05 04:21:26.055:     at processTicksAndRejections (internal/process/task_queues.js:97:5)
0|eater  | 28-05 04:21:26.055:     at async run (C:\adwallet-eater\src\eater.js:15:4)
0|eater  | 28-05 04:21:26.056: here2
0|eater  | 28-05 04:21:26.056: here24
0|eater  | 28-05 04:21:26.277: Error: Page crashed!
0|eater  | 28-05 04:21:26.277:     at Page._onTargetCrashed (C:\adwallet-eater\node_modules\puppeteer\lib\Page.js:200:28
)
0|eater  | 28-05 04:21:26.277:     at CDPSession.<anonymous> (C:\adwallet-eater\node_modules\puppeteer\lib\Page.js:120:5
7)
0|eater  | 28-05 04:21:26.277:     at CDPSession.emit (events.js:311:20)
0|eater  | 28-05 04:21:26.277:     at CDPSession.EventEmitter.emit (domain.js:482:12)
0|eater  | 28-05 04:21:26.277:     at CDPSession._onMessage (C:\adwallet-eater\node_modules\puppeteer\lib\Connection.js:
166:18)
0|eater  | 28-05 04:21:26.277:     at Connection._onMessage (C:\adwallet-eater\node_modules\puppeteer\lib\Connection.js:
83:25)
0|eater  | 28-05 04:21:26.277:     at WebSocket.<anonymous> (C:\adwallet-eater\node_modules\puppeteer\lib\WebSocketTrans
port.js:25:32)
0|eater  | 28-05 04:21:26.277:     at WebSocket.onMessage (C:\adwallet-eater\node_modules\ws\lib\event-target.js:125:16)

0|eater  | 28-05 04:21:26.277:     at WebSocket.emit (events.js:311:20)
0|eater  | 28-05 04:21:26.277:     at WebSocket.EventEmitter.emit (domain.js:482:12)

My biggest worry for above output is that my code in this section is the following
console.log('here2')
console.trace()
let page = false
try {
	console.log('here24')
	page = await browser.newPage()
	page.on('error', err => {
		console.log('here4')
		console.error(err)
	})
} catch (e) {
	console.error(e)
	console.log('here25')
}
console.log('here3')
console.trace()

When above error happens the code never goes past the browser.newPage() line making impossible to intercept and attempt creating another page. Also nodejs just remains frozen in that state. TBH I do not really care what causes the page crash and why cause I can accept that chrome will randomly have stability issues out of the scope of puppeteer. My real issues is the inability to catch a page crash if it happens when creating a new page.
We are not reusing the browser. We start a new browser for each test case with
ignoreHTTPSErrors: true,
defaultViewport: {
	width: options.resolution.width,
	height: options.resolution.height
}

as the only flags

the only solution for the time being i found at the moment (ugly as my it seem) is using a Promise.race on newPage() and a timeout and making retries when timeout is reached

overall puppeteer 3.1.0 + chrome 83 seem really really unstable


Failed to query createProject: ERROR: insert or update on table "projects" violates foreign key constraint "projects_team_project_id_fkey" (SQLSTATE 23503)

Expected Behavior
sync success
Actual Behavior
sync occurred error
Failed to query createProject: ERROR: insert or update on table "projects" violates foreign key constraint "projects_team_project_id_fkey" (SQLSTATE 23503)
Reproduction Steps
No response
Is there an existing issue for this?

[X] I have searched the issue tracker for this problem.

Additional Information
No response
Insomnia Version
Version: Insomnia 9.3.3 Build date: 2024/7/31
What operating system are you using?
Windows
Operating System Version
Windows 11 23H2
Installation method
https://insomnia.rest/
Last Known Working Insomnia version
No response

@yaohy2014 What operation did you perform? Converting a local vault to a cloud project, or creating a new project?

@yaohy2014 What operation did you perform? Converting a local vault to a cloud project, or creating a new project?

Converting a local vault to a cloud project

Can you check if the option Duplicate helps here?

Can you check if the option Duplicate helps here?

I use the Duplicate option, and the cuplicated collection occurred the same error

The application should be using some stale ID. Could you log out of the application and log in again?
One more thing to confirm the steps of how it happened:

Convert the Personal Workspace to a local vault, is there any existing collections in this workspace?
Convert it back to a cloud project, then the error happened?

The application should be using some stale ID. Could you log out of the application and log in again?
One more thing to confirm the steps of how it happened:

Convert the Personal Workspace to a local vault, is there any existing collections in this workspace?
Convert it back to a cloud project, then the error happened?

I log out and log in, and foud the sync module missed

This Personal Workspace is still treated as a local vault, so it doesn't show the sync module.
So far, I can't replicate this issue on my local. Can you turn it into a cloud project again?

This Personal Workspace is still treated as a local vault, so it doesn't show the sync module. So far, I can't replicate this issue on my local. Can you turn it into a cloud project again?

I turn it into a cloud project.
When I push a commit, the following error occurred
Cannot destructure property 'blobsCreate' of '(intermediate value)' as it is undefined

This Personal Workspace is still treated as a local vault, so it doesn't show the sync module. So far, I can't replicate this issue on my local. Can you turn it into a cloud project again?

I turn it into a cloud project. When I push a commit, the following error occurred Cannot destructure property 'blobsCreate' of '(intermediate value)' as it is undefined

I think I find the reason. When I use fiddler to catch my system reqeusts. I found the insomnia sync request may be forbidded by my system proxy.
Thanks a lot.

Thanks for your information! I will close this issue, feel free to reopen it if it still happens.


Smooth installation of keptn

Installation of keptn follows the keptn walkthrough

[ ] consider managed environments (see: #255 )

Please simply the steps needed for "keptn auth".  If it can automatically get the keptn token and endpoint this saves a step for the user to not look them up and pass them in.
From https://keptn.sh/docs/0.2.0/reference/cli/


Problems caused by visualization operation

I like this project very much, CBEngine can run normally, but when I run the application scenario of traffic signal control and try to visualize the result (I added the simulator visualization code according to the document requirements), an error on the picture is reported, no matter This problem will occur whether it is running fixed time, maxpressure or dqn, can you tell me what causes it? How to solve it?

What files do you copy from report_log_addr to ui/src/log ?

What files do you copy from report_log_addr to ui/src/log ?

All files in the folder include lightinfo.json, roadinfo.json, and timex.json. I found that timex.json does not have one for each step, but it may be generated at intervals such as time.json, time10.json, and time20.json like this.

Try setting the report_log_rate in the config file (e.g. manhattan.cfg) as 1 and you will obtain timeX.json(s) with one interval. This may fix this problem. The ui is currently not supporting visualization of multi-interval data.

Try setting the report_log_rate in the config file (e.g. manhattan.cfg) as 1 and you will obtain timeX.json(s) with one interval. This may fix this problem. The ui is currently not supporting visualization of multi-interval data.

Thank you very much.

hello， guys. Could you please transerfer the ui to Baidu Netdisk?


Unable to login due to missing header

Hi,
I am unable to login with web view because server never returns me the 'ig-set-authorization' header.
It seems to be ok if I comment it (authenticationHandler l.44) but, I suspect it to cause troubles with some requests (mark story as seen disconnects me).
An idea how to solve it properly ?

Hey @jsantolaria,
please refer to #244 about the future of SwiftyInsta.


BackgroundColor of titlebar and Top margin for Dialog

@jacklam718 I would need to change the background color and text color for the titlebar. Also, if i need to reduce the top-margin in Dialog.js(line 151)

@sances15
You can try this.
<PopupDialog
  titleStyle={{
    backgroundColor: 'red', 'color'
  }}
  titleTextStyle={{
    color: 'white'
  }}
  dialogStyle={{
    borderRadius: 0
  }}
  ref={(popupDialog) => { this.popupDialog = popupDialog; }}
>
  <View>
    <Text>Hello</Text>
  </View>
</PopupDialog>

Awesome, that worked well. Thanks dude


fix eval_instance_segmentation_coco when pred_masks is empty

The test data did not follow the current data format, so I fixed it with the following conversion script.
import numpy as np

data = np.load('eval_instance_segmentation_coco_result_2018_07_06.npz', encoding='latin1')

labels = data['labels']
masks = data['masks']
scores = data['scores']
masks = [np.array(mask) for mask in masks]

np.savez(
    'eval_instance_segmentation_coco_result_2019_02_12.npz',
    labels=labels,
    scores=scores,
    masks=masks)

In the original data, masks are stored as [[(H, W)]].
This contradicts with the format of masks, which is [(R, H, W)].


Update related_website_sets.JSON

Update related_website_sets.JSON

closing the extra PRs

Closing this as it appears to be a duplicate of PR 117 which has been merged.


Building a simple keyboard using Anvil

Proposal Submission
Proposed title of article
Your title should be descriptive of the article/tutorial. Be Specific.
[Languages] Building a simple keyboard using Anvil
Use keyword research to improve your article's SEO.
Proposed article introduction
We're looking for the first 2-3 paragraphs of your article that appropriately summarize what your article will be about.
We will use this writing snippet to help us assess the overall quality before approval so ensure it has been proofread, spellchecked and grammarchecked.
Anvil is a free and open-source drag and drop web app builder. It is equivalent to the likes of Gradio application. The framework uses Python only. No HTML, no CSS, and Javascript. This tutorial will leverage this framework to build a functional keyboard similar to the one on your computer.
Key takeaways
What are the 3-5 most important things the reader should understand or be able to do after reading this article?
Use this area to get your ideas down on the bulk of your article or tutorial.
By the end of this tutorial, a reader should be able to:

Create a web page with Anvil
Create all the components needed for a calculator, i.e., buttons, image, and text box.
Create a create panel to replicate how a keyboard appears.
Implement the different button callbacks
Test the functionality of the keyboard
Style the keyboard
Publish the web app

Article quality
How is your article unique? Tell us what makes your approach different from similar articles that have published on the same topic?
Is yours more in-depth? Does it cover additional topics? Do you provide handy tips or anecdotal advice?
Anvil is a fairly new framework. I still haven't seen any build involving building a functional keyboard using the framework.
References
Please list links to any published content/research that you intend to use to support/guide this article.
Anvil

Sounds like a helpful topic - let's please be sure it adds value beyond what is in any official docs and/or what is covered in other blog sites. (the articles should go beyond a basic explanation - and it is always best to reference any EngEd article and build upon it). @Bayler
Please be attentive to grammar/readability and make sure that you put your article through a thorough editing review prior to submitting it for final approval. (There are some great free tools that we reference in EngEd resources.)
ANY ARTICLE SUBMITTED WITH GLARING ERRORS WILL BE IMMEDIATELY CLOSED.
Please be sure to double-check that it does not overlap with any existing EngEd articles, articles on other blog sites, or any incoming EngEd topic suggestions (if you haven't already) to avoid any potential article closure, please reference any relevant EngEd articles in yours. - Approved


How to change the color of underline in tabView?

I want to change the color and width, Height of underline view? How to achieve the same.
Current behaviour
Currently it shows a yellow underline below the current selected tab.
Expected behaviour
Change the height and width and color of current selected tab.

https://github.com/react-native-community/react-native-tab-view#tabbar-
indicatorStyle={{ backgroundColor: 'blue', height: 2 }}

@satya164  your example for on touch in ios how to add always on indicator on current selected tab

https://github.com/satya164/react-native-tab-view#tabbar
_renderTabBar = props => {
return <TabBar
{...props}
inactiveColor={colors.text}
activeColor={colors.text}
indicatorStyle={{ backgroundColor: colors.text }}
style={{ backgroundColor: colors.background }}
/>
};


NetworkPolicy is bypassed while using Istio

When Istio is installed and set for gateway TLS origination, a default deny-all NetworkPolicy does not block all traffic.
Based on https://istio.io/docs/tasks/traffic-management/egress/egress-gateway-tls-origination/ with tweaks for client https -> gateway tls passthrough
Expected Behavior

Traffic should be blocked; NetworkPolicy should be enforced
Current Behavior

Traffic is being allowed; NetworkPolicy is not being enforced
Possible Solution

If I add the policy and wait a long time with no traffic, then new traffic does get blocked as expected, so perhaps it's a cache / policy refresh issue?
Steps to Reproduce (for bugs)

Install Istio via: istioctl manifest apply --set values.gateways.enabled=true --set values.gateways.istio-ingressgateway.sds.enabled=true --set values.global.k8sIngress.enabled=true --set values.global.k8sIngress.enableHttps=true --set values.global.k8sIngress.gatewayName=ingressgateway --set values.kiali.enabled=true
Apply these resources:
---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: edition-cnn-com-egress
  namespace: istio-system
spec:
  host: istio-egressgateway
  subsets:
  - name: tls-origination
  - name: tls-passthrough
---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: edition-cnn-com-origination
  namespace: istio-system
spec:
  host: edition.cnn.com
  subsets:
  - name: tls-origination
    trafficPolicy:
      loadBalancer:
        simple: ROUND_ROBIN
      portLevelSettings:
      - port:
          number: 443
        tls:
          mode: SIMPLE
  - name: tls-passthrough
    trafficPolicy:
      loadBalancer:
        simple: ROUND_ROBIN
      portLevelSettings:
      - port:
          number: 443
        tls:
          mode: DISABLE
---
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: edition-cnn-com
  namespace: istio-system
spec:
  selector:
    istio: egressgateway
  servers:
  - hosts:
    - edition.cnn.com
    port:
      name: http-port-for-tls-origination
      number: 80
      protocol: HTTP
  - hosts:
    - edition.cnn.com
    port:
      name: tls
      number: 443
      protocol: TLS
    tls:
      mode: PASSTHROUGH
---
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
  name: edition-cnn-com
  namespace: istio-system
spec:
  hosts:
  - edition.cnn.com
  ports:
  - name: http
    number: 80
    protocol: HTTP
  - name: tls
    number: 443
    protocol: TLS
  resolution: DNS
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: edition-cnn-com
  namespace: istio-system
spec:
  gateways:
  - edition-cnn-com
  - mesh
  hosts:
  - edition.cnn.com
  http:
  - match:
    - gateways:
      - mesh
      port: 80
    route:
    - destination:
        host: istio-egressgateway
        port:
          number: 80
        subset: tls-origination
  - match:
    - gateways:
      - edition-cnn-com
      port: 80
    route:
    - destination:
        host: edition.cnn.com
        port:
          number: 443
        subset: tls-origination
      weight: 100
  tls:
  - match:
    - gateways:
      - mesh
      port: 443
      sniHosts:
      - edition.cnn.com
    route:
    - destination:
        host: istio-egressgateway
        port:
          number: 443
        subset: tls-passthrough
      weight: 100
  - match:
    - gateways:
      - edition-cnn-com
      port: 443
      sniHosts:
      - edition.cnn.com
    route:
    - destination:
        host: edition.cnn.com
        port:
          number: 443
        subset: tls-passthrough
      weight: 100

Now, create a utility pod in a separate namespace, e.g.:
---
apiVersion: v1
kind: Pod
metadata:
  name: netshoot
  namespace: default

spec:
  containers:
  - name: curlutils
    image: nicolaka/netshoot
    command:
      - sleep
      - "3600"
    imagePullPolicy: IfNotPresent
  restartPolicy: Always

exec into the pod and run:
curl -vm 5 -o /dev/null http://edition.cnn.com/politics

in a separate terminal, exec into the pod and run:
curl -vm 5 -o /dev/null https://edition.cnn.com/politics

notice both are working as expected.  If you look at the proxy logs, you'll see traffic being diverted from the pod to the egress gateway and then out to edition.cnn.com on port 443
Now, apply the following NetworkPolicy, which should block all inbound traffic to the egress gateway
---
apiVersion: extensions/v1beta1
kind: NetworkPolicy
metadata:
  name: deny-all-egress
  namespace: istio-system
spec:
  ingress: []
  podSelector:
    matchLabels:
      istio: egressgateway
  policyTypes:
  - Ingress

You'll notice that the the https curl does in fact stop working as expected, but the http curl continues to work.
Reviewing the proxy logs, the flow stays the same:  traffic being diverted from the pod to the egress gateway and then out to edition.cnn.com on port 443
Delete the NetworkPolicy, and https will start working again.
Context

Primary use cases is to apply egress restrictions to internal AWS EC2 microservices from components running in an AWS EKS cluster.
Your Environment

Calico daemonset info:
Image:      quay.io/calico/node:v3.3.6
Running in AWS EKS 1.15, using AWS provided images version 1.15.10-20200228.
Node info (snippets):
Labels:
eks.amazonaws.com/nodegroup-image=ami-0582e4c984a1e848a
System Info:
Boot ID:                    3b4adfb8-bd94-4f54-8d82-ac031550219d
Kernel Version:             4.14.165-133.209.amzn2.x86_64
OS Image:                   Amazon Linux 2
Operating System:           linux
Architecture:               amd64
Container Runtime Version:  docker://18.9.9
Kubelet Version:            v1.15.10-eks-bac369
Kube-Proxy Version:         v1.15.10-eks-bac369
$ istioctl version --remote
client version: 1.5.1
control plane version: 1.5.1
data plane version: 1.5.1 (11 proxies)

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.4", GitCommit:"8d8aa39598534325ad77120c120a22b3a990b5ea", GitTreeState:"clean", BuildDate:"2020-03-12T23:41:24Z", GoVersion:"go1.14", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"15+", GitVersion:"v1.15.11-eks-af3caf", GitCommit:"af3caf6136cd355f467083651cc1010a499f59b1", GitTreeState:"clean", BuildDate:"2020-03-27T21:51:36Z", GoVersion:"go1.12.17", Compiler:"gc", Platform:"linux/amd64"}

Updated to v3.13.0 (per EKS CNI plugin link https://docs.aws.amazon.com/eks/latest/userguide/calico.html).
Same issue

@justinkillen just to double check, the Istio egress gateway is not host networked, correct?

It's EKS, using the AWS CNI


[models] Add GLTF animation support

I needed GLTF animation support for my project, but I noticed that Raylib has added and removed support for it in the past. If this isn't really in the scope for the project, I'd be happy to pull this out into a plugin or helper library (but I figured I'd submit a PR in case there was interest in including it).
Caveats:

Only supports 1 armature per file, and skips loading it if there are multiple armatures. I could update this to load the first one by default. It prints a warning in either case.
I only added support for linear interpolation (which is the default interpolation method in blender when you check Always Sample Animations when exporting a GLTF file). I could add additional interpolation methods pretty easily though.
I only added translation/rotation/scale animation channel.path support. I skipped weights (i.e. morph targets).

Oh, I should also add an example for this.

Updated the models/models_loading_gltf.c example to play back the gltf animation in the example file.

@charles-l Hey! This is an amazing addition, waiting for it for some time! I like the implementation, quite self-contained, just let me know when you think it's final and I'll merge and review it properly. Thanks for this great improvement!

Great, sounds good! I made a few final small tweaks, and it should be ready to go now. Let me know if there are any improvements or changes I should make!
BTW, I had a lot of fun working on this codebase. It's so easy to get started when there aren't layers upon layers of abstractions concealing what's really going on. I haven't written much in this style of C before (spartan data structure choice, pre-allocation as much as possible, etc), but really enjoyed it. Kudos on an awesome framework :)

@charles-l Please, could you review code formating to follow raylib coding conventions?

ok! Updated the PR with fixed formatting.

@charles-l Just reviewed the code and there are still some formatting issues, please, could you review them?

Fixed brace alignment and removed asserts.

@charles-l Merged! Thank you very much for this nice improvement! 😄


Published package for CLI tool

Apologies if I missed it from the documentation but I cannot find a reference to a published package for the CLI tool.
If the CLI tool is not currently published, can it published somewhere please?
If it is published, please could link(s) be added to the Readme.md and/or Wiki?

I currently haven't packaged up the CLI tool.  In order to publish packages in the Microsoft namespace they need to be setup using a pipeline that does code-signing with the Microsoft cert.  I haven't had chance to setup that build pipeline.


[WIP] Add it/tests based on queries generated from demo workspaces (part 2)

Fixes  #3211

We don't already have the olympics dataset?

@djspiewak @alissapajer this is ready for review

Regarding olympics: we might but demo folder holds files "as they are" in demo environments. It already had its own patients data, even though it was duplicating existing one.


Set tabbing to the vim standard (2 spaces)

Problem: When I use elm-vim out of the box it defaults to tab stops of 8 spaces, but the Elm standard is 2 spaces.
Workaround: As a workaround I added the following line to my ~/.vimrc file:
autocmd FileType elm setlocal shiftwidth=2 tabstop=2

But that's a manual change.
Fix: The change submitted seems to fix this problem, and sets tab stops in .elm files to 2 spaces, regardless of the user's global settings.

Where is this "vim standard" defined?
First of all, such "user-preference" settings should be kept in ~/.vimrc, secondly, elm-format enforces 4 spaces, so elm-vim setting tabstop=2 would be quite inconsistent.

Regards "standard vim": Yes, "vim standard" is the wrong phrase - the title of the request is an error. I've corrected that now. Apologies for the confusion.
My personal experience suggests that the default tab spacing on most terminals is 8 spaces, and Wikipedia says tab has been "de facto standardized at every multiple of 8 characters horizontally". Therefore as it stands if the elm-vim plugin is installed with no other settings or preferences (user preferences or otherwise) the user can expect to find it defaults to 8-space tabs. This is what I found.
Regards elm-format: I did not suggest tabstop=2 based on elm-format. I suggested it based on looking at the Elm style guide and the code examples on the Elm website. In those examples new indents are 2 spaces, or 4 spaces. Thus I interpret 2 space indents as the base case - the lowest common denominator - and 4 spaces being "2 spaces twice".
Regards user preferences: Yes, user preference settings should indeed be put in ~/.vimrc. However, as the Elm style guide and the examples clearly show a preference, I thought it would be beneficial to users for the Elm plugin to use the "Elm preference" by default. The user can override that if they have a different user preference.
I offer this patch simply as a benefit to the community. The maintainers of ElmCast, of course, are free to accept or reject as they wish.

AFAIK, Evan used two spaces indentation for the [examples|https://guide.elm-lang.org/effects/json.html], since four spaces indentation would make the examples too wide to fit in the website, and elm-format is supposed to be following (or enforcing) the community preference (since the tool is maintained by members of elm.
I find it confusing, as well, that even the style guide, and the [standard packages] are not consistent with regard to indentation (using both two and four spaces).

The majority of projects use elm-format with a non configurable tab width of 4
https://github.com/avh4/elm-format/blob/c14cfb9546144da3b87350944b88849a7dc65dd2/src/Box.hs#L247-L249


The tags I got has vastly different value from the paper. How can I get the tags' value in the paper?

It's just my little experiment on the source code. I might get it all wrong in generating the tags' values. Please point out my errors. Thanks!!!
I experimented on the image has the image_id 262145, namely, the one from the paper, Figure 4. The model I'm using is download from the link given by this project.
I output the information of tags from multiperson function in test.py. In the function, it does flip enhancement. I added two tags values (one from the picture, one from the flipped picture). I output all the values of ground truth key points:
[1.260961, 1.3058516, 0, 1.2563938, 0, 1.2727276, 1.3023847, 1.2349962, 1.2527169, 1.2959831, 1.2270368, 1.3404604, 1.7944227, 1.3047302, 1.3632604, 1.2319796, 1.2049041]
[0.5672045, 0.5553081, 0, 0.5342066, 0, 0.62853205, 0.57086825, 0.6060959, 0, 0, 0, 0.44562602, 0.5234276, 0.58281267, 0.5969374, 0.3715278, 0]
[0, 0, 0, 1.2847638, 1.2794614, 1.3218927, 1.3253775, 1.390451, 1.4409075, 0, 0, 1.4085245, 1.4261274, 0, 0, 0, 0]
[0, 0, 0, 1.216414, 1.2051077, 1.1880434, 1.214577, 1.2288826, 1.2320774, 0, 0, 1.1940722, 1.2197711, 0, 0, 0, 0]
[0.71830493, 0.77619904, 0, 0.69648445, 0, 0.8377314, 0, 0.7768618, 0, 0.83856195, 0, 0.85833573, 0, 0, 0, 0, 0]
[0.29368687, 0.29288244, 0.2850952, 0, 0.3033538, 0.35456848, 0.31444836, 0, 0.27472353, 0, 0.32352066, 0.3529215, 0.31695318, 0, 0.2855525, 0, 0]
[0.38019133, 0.39934206, 0, 0.32967758, 0, 0.3586445, 0.40299988, 0.2993703, 0.304348, 0.5085192, 0.27281237, 0.3268919, 0, 0.3919878, 0, 0.38223648, 0]
[0, 0, 0, 0.5740683, 0.57219386, 0.5397749, 0.58586, 0.5749419, 0.58152056, 0.4648273, 0.2812636, 0.5862839, 0.55253434, 0, 0, 0, 0]

There are 8 people annotated with keypoints. 0 means that key point information is not available. Clearly the tags' values from the same person vary less than 0.1 for the most key points. The max variation is less than 0.3. I can see why every person's key points can fall into a almost straight line.
Unfortunately, the difference between two people can also be less than 0.1. This means, not all people can be differentiated by the tags' values. At least, in the data I generated, there could be two people falling into the same line.
The most confunding part is, tags' values I generated here is between 0.2 and 1.8, not -6 to 10 as the Figure.4 in the paper. Where I got it wrong?

@ArchNew How do you output the tag?


export_id option for filters

Filter results shall get exported to needs.json.
If export_id is given, the filter results and the amount should be exported under the given Id.
Example
# a rst. file

.. needtable::
   :types: spec
   :filter: "safe" in tags
  :export_id: SAFE_SPECS

# needs.json

{
"created": "2017-07-03T11:54:42.433876",
"current_version": "1.5",
"project": "needs test docs",
"versions": {
    "1.0": {
        "created": "2017-07-03T11:54:42.433868",
        "needs": { ...}
        "filters": {
          "SAFE_SPECS": {
            "id": "SAFE_SPECS",
            "tags": None
            "status": None,
            "types": "spec",
            "filter": "\"safe\" in tags",
            "amount": 132,
            "result": ["SPEC_001", "SPEC_ABC", "..."]
          }
        }

So all used filter-attributes, which described the used filtering shall get exported.

Fixed by #89


Parallel static analysis by default

Modern PCs have multi-core. RuboCop has --parallel option, but it is not used by default. This means that there is extra core resources for static analysis because multi-core is not being used effectively.
This PR will be parallel processing by default, so RuboCop will run faster in proportion to number of cores. Options that can be parallel processing, such as --only, --except, and others have the
same default behavior.
However, there are options that cannot be parallel processing, such as auto-correction and others, so they are serial processing as before.
--parallel can be a hidden option for some users. This change is expected to reduce user's wait time for running RuboCop.
Below is an example on my development PC.
Before:
% cd path/to/rubocop
./exe/rubocop --display-time
(snip)

1293 files inspected, no offenses detected
Finished in 61.09493000002112 seconds

After:
% cd path/to/rubocop
./exe/rubocop --display-time
(snip)

1293 files inspected, no offenses detected
Finished in 10.13813699997263 seconds

If user's PC has a lot of cores, memory and RuboCop targets a lot of files to inspect, it will be effective.
One concern is that parallel processing uses more memory. For example, Ruby's MJIT is off by default as an example of concerning about memory consumption in a low memory production runtime (e.g. Heroku's minimum Dyno).
However, RuboCop is a development tool, I assume that it will be fine in most cases.
If user want to use it in a low memory production runtime, user can specify --no-parallel.
Note: JRuby and Windows are not supported based on #4537.

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

The failures on this and your other PRs are resolved by #9995 (and will be fixed by #9994), so it looks like you need to rebase.

I think that's a good move! The main reason why we didn't do this earlier is that for a while the parallel analysis was rough around the edges, but given the massive time savings, I think it makes for a a better default.
P.S. 10000 is the quite the magic number! 🚀 🏅


Fixed simple savefile issue where the game would just not startup.

Fixed a simple bug that prevented starting the game as a whole.
But was in file savefile.py on line 61. Fixed it by changing the existing if statement to:
if plant_info_orig is not None:
                new_plant_info = PlantInfo(
                    SeedType(plant_info_orig["plant_type"]),
                    plant_info_orig["age"],
                )```

I already submitted this in pr 138, and it is also in pr 140

my bad didnt see, just had the bug and decided to fix it


Support #[serde(try_from = "type")] for tuples also

Is possible support container attribute try_from for tuples?
Using deserialize_with field attribute

Using try_from (Suggestion)
Defining age like age field, in struct UserAge works but in UserAgeTuple using tuple way show the error: unknown serde field attribute try_from

Issue reference: #1524
Thanks

For UserAge you put attribute on struct itself but for tuple you put it on field. Try this:
#[serde(try_from = "u8"]
struct UserAgeTuple(u8);

#[serde(try_from = "u8"]
struct UserAgeTuple(u8);

This works, thanks.


event transform and rotation

Fixes #75

https://github.com/user-attachments/assets/39a77226-65e4-4e85-9566-bdc86d02bd7c

@timsueberkrueb finally got around to this

This is great, thank you so much!


[Bug] [Phoenix] Phoenix2doirs-batch

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
Phoenix Failed to synchronize data in batches from hbase to doirs
SeaTunnel Version
2.3.3
SeaTunnel Config
"env" : {
        "job.name" : "hbase2doris-batch",
        "job.mode" : "BATCH"
    },
    "source" : [
        {
            "driver" : "org.apache.phoenix.queryserver.client.Driver",
            "query" : "select * from us_population",
            "plugin_name" : "Jdbc",
            "url" : "jdbc:phoenix:thin:url=http://spark_e2e_phoenix_sink:8765;serialization=PROTOBUF"
        }
    ],
    "sink" : [
        {
            "password" : "pwd",
            "fenodes" : "ip:18030",
            "sink.enable-2pc" : "true",
            "doris.config" : {
                "format" : "json",
                "read_json_by_line" : "true"
            },
            "table.identifier" : "test_kafka.us_population",
            "plugin_name" : "Doris",
            "sink.label-prefix" : "test_json",
            "username" : "root"
        }
    ]
}

Running Command
$SEATUNNEL_HOME/bin/seatunnel.sh --config $SEATUNNEL_HOME/config/v2.batch.config-01.template

Error Exception
2023-09-13 15:19:26,828 INFO  org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand - Closed SeaTunnel client......
2023-09-13 15:19:26,828 ERROR org.apache.seatunnel.core.starter.SeaTunnel -

===============================================================================

2023-09-13 15:19:26,828 ERROR org.apache.seatunnel.core.starter.SeaTunnel - Fatal Error,

2023-09-13 15:19:26,828 ERROR org.apache.seatunnel.core.starter.SeaTunnel - Please submit bug report in https://github.com/apache/seatunnel/issues

2023-09-13 15:19:26,828 ERROR org.apache.seatunnel.core.starter.SeaTunnel - Reason:SeaTunnel job executed failed

2023-09-13 15:19:26,830 ERROR org.apache.seatunnel.core.starter.SeaTunnel - Exception StackTrace:org.apache.seatunnel.core.starter.exception.CommandExecuteException: SeaTunnel job executed failed
        at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:191)
        at org.apache.seatunnel.core.starter.SeaTunnel.run(SeaTunnel.java:40)
        at org.apache.seatunnel.core.starter.seatunnel.SeaTunnelClient.main(SeaTunnelClient.java:34)
Caused by: org.apache.seatunnel.api.common.PrepareFailException: ErrorCode:[API-01], ErrorDescription:[Configuration item validate failed] - PluginName: jdbc, PluginType: source, Message: java.lang.RuntimeException: java.lang.IllegalStateException: retries (7) exceeded maximum allowed (6)
        at org.apache.seatunnel.connectors.seatunnel.jdbc.source.JdbcSource.prepare(JdbcSource.java:112)
        at org.apache.seatunnel.engine.core.parse.JobConfigParser.parseSource(JobConfigParser.java:85)
        at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parseSource(MultipleTableJobConfigParser.java:317)
        at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parse(MultipleTableJobConfigParser.java:179)
        at org.apache.seatunnel.engine.core.job.AbstractJobEnvironment.getLogicalDag(AbstractJobEnvironment.java:109)
        at org.apache.seatunnel.engine.client.job.JobExecutionEnvironment.execute(JobExecutionEnvironment.java:73)
        at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:143)
        ... 2 more

2023-09-13 15:19:26,830 ERROR org.apache.seatunnel.core.starter.SeaTunnel -
===============================================================================

Exception in thread "main" org.apache.seatunnel.core.starter.exception.CommandExecuteException: SeaTunnel job executed failed
        at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:191)
        at org.apache.seatunnel.core.starter.SeaTunnel.run(SeaTunnel.java:40)
        at org.apache.seatunnel.core.starter.seatunnel.SeaTunnelClient.main(SeaTunnelClient.java:34)
Caused by: org.apache.seatunnel.api.common.PrepareFailException: ErrorCode:[API-01], ErrorDescription:[Configuration item validate failed] - PluginName: jdbc, PluginType: source, Message: java.lang.RuntimeException: java.lang.IllegalStateException: retries (7) exceeded maximum allowed (6)
        at org.apache.seatunnel.connectors.seatunnel.jdbc.source.JdbcSource.prepare(JdbcSource.java:112)
        at org.apache.seatunnel.engine.core.parse.JobConfigParser.parseSource(JobConfigParser.java:85)
        at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parseSource(MultipleTableJobConfigParser.java:317)
        at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parse(MultipleTableJobConfigParser.java:179)
        at org.apache.seatunnel.engine.core.job.AbstractJobEnvironment.getLogicalDag(AbstractJobEnvironment.java:109)
        at org.apache.seatunnel.engine.client.job.JobExecutionEnvironment.execute(JobExecutionEnvironment.java:73)
        at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:143)
        ... 2 more

Zeta or Flink or Spark Version
Zeta
Java or Scala Version
jdk8
Screenshots
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I tested it and it's okay
The lowercase table name of phoenix needs to be enclosed in double quotes
You try again
env {
  execution.parallelism = 1
  job.mode = "BATCH"
}

source {
  Jdbc {
      result_table_name = "t1"
      driver = org.apache.phoenix.queryserver.client.Driver
      url = "jdbc:phoenix:thin:url=http://localhost:8765;serialization=PROTOBUF"
      query = "select * from \"test\""
  }
}

transform {
}

sink {
  Console {
    source_table_name = "t1"
  }
}

Try your same configuration, the error is the same

Using the driver: "driver", "org. Apache. Phoenix. JDBC. PhoenixDriver" test, not reported as errors

Is it possible that you did not start the queryserver for phoenix

Possibly, the query server was not enabled during the test

When the hbase table data is read by phoenix and doris is written, all field names are converted to uppercase

Phoenix When creating a table, although it is in lowercase
But it will be resolved to uppercase unless enclosed in double quotes
You can log in to the phoenix client
Use command to view
!describe table_name

If the table name is lowercase, it should also be enclosed in double quotes

60 million data volumes are synchronized, and the ckp timeout period is set to 1 hour

Task monitoring data


OrgCheck error message appearing for users without viewalldata access on Profile even though viewalldata is assigned via Permission set

Hi there, Org Check team! I am trying to install the app for our Architects and due our company policy we cannot assign them the system admin profile. I have created a permission set that gives them access to org check and the view all data permission but every time they access org check they receive the following error message. They can ignore the error and org check still works for them but every time they do something they get this message. Is there a way around this message with out having to give their current assigned profile viewalldata?

Thank you @leighjam for raising this issue.
Thanks to you, I discovered that this check is based on the Profile of the user and not on its assigned Permission Sets.
I will include this fix in Beryllium.
In the meantime, what you could do is to create a fresh sandbox for your production and give your user access to this sandbox and alter their profile (in this sandbox only) with the "see all data" system permission on.
I am sorry about the fact that it may not be the best solution for you, but in the meantime i can't deliver a fix in Lithium (v3) as I am in a final dev face to deliver Beryllium (v4).
But that will definitly be fixed in v4, let me assign this to this verison.

Awesome thanks Vince!

Watchdog implementation in Beryllium will be included in this issue.

First the warning about exceeding the daily api should be on the org check api level and not on the UI level!!

Second, the permissions check should be defined.
@leighjam
can you make sure you have set the minimum system permissions for your users in your permission set:

PermissionsModifyAllData,
PermissionsAuthorApex,
PermissionsApiEnabled,
PermissionsViewAllUsers

I think the best way would be (in the app) to check at first if (for the current user) the following query returns only true values.
SELECT PermissionsModifyAllData, PermissionsAuthorApex, PermissionsApiEnabled, PermissionsViewAllUsers
FROM UserPermissionAccess

What do you think?

need to add PermissionsManageSubscriptions as well (to query the table InstalledSubscriberPackage)

need also the "PermissionsManageUsers" to get the last logins of users as well as profile and perm sets assignements.

okay after testing a lot on my org I think that the permissions needed are (and their dependent permission as well):

ModifyAllData
AuthorApex
ApiEnabled
InstallPackaging


using @import with a url results in incomplete CSS

I have a very simple arrangement of stylesheets
style.css
@import url(http://fonts.googleapis.com/css?family=Roboto+Slab:700,400);
h1 {
  font-family: 'Roboto Slab', serif;
}

The resulting CSS file will only include
@import url(http://fonts.googleapis.com/css?family=Roboto+Slab:700,400);

To fix the issue temporarily, I made the following changes

remove the @import url(...); from the CSS
add a <link> in my index.html file
rerun webpack; it will now output the proper CSS files

For clarification, here's a snippet of index.html
<link href="http://fonts.googleapis.com/css?family=Roboto+Slab:700,400" rel="stylesheet" type="text/css">
<link href="app.css" rel="stylesheet" type="text/css">

My webpack.config.js
var webpack = require('webpack');
var ExtractTextPlugin = require("extract-text-webpack-plugin");

var release = (process.env.NODE_ENV === 'production');

var plugins = [
  new ExtractTextPlugin("[name].css")
];

if (release)  {
  plugins.push(new webpack.DefinePlugin({
    "process.env": {
      "NODE_ENV": JSON.stringify("production"),
    },
  }));
  plugins.push(new webpack.optimize.UglifyJsPlugin());
}

module.exports = {
  debug: !release,
  cache: !release,
  devtool: !release && "inline-source-map",
  entry: {
    "app": "./client/main",
  },
  output: {
    path: __dirname + "/public",
    filename: "[name].js",
  },
  plugins: plugins,
  resolve: {
    modulesDirectories: ["node_modules", "bower_components"]
  },
  module: {
    loaders: [
      {test: /\.less$/, loader: ExtractTextPlugin.extract("style", "css!autoprefixer!less")},
      {test: /\.png$/,  loader: "url?limit=10000&mimetype=image/png" },
      {test: /\.woff$/, loader: "url?limit=10000&mimetype=application/font-woff" },
      {test: /\.ttf$/,  loader: "url?limit=10000&mimetype=application/octet-stream" },
      {test: /\.eot$/,  loader: "file" },
      {test: /\.svg$/,  loader: "url?limit=10000&mimetype=image/svg+xml" }
    ],
  },
};

Seems like #44 could be related to this.
@guillaume86 says

I think I have the same issue, do you have @import directives in your css?
I found that the style loader splits the css into different

@sokra thank you so much for the quick support :heart:


Switch require statements to import

Hey @trendyminds/developers! It's high time we look into using import instead of require because it'll be the ES6 standard going forward.
Any thoughts on these changes? Here's a quick comparison between the import and require syntax.
Using imports:
import SVGInjector from './modules/SVGInjector';
import MyModule from './modules/MyModule';

if (Modernizr.svg) {
  new SVGInjector();
}

new MyModule();

Using require:

const MyModule = require('./modules/MyModule');
const SVGInjector = require('./modules/SVGInjector');

class App {

  constructor () {
    if (Modernizr.svg) {
      new SVGInjector();
    }

    new MyModule();
  }

}

App;

new App;

All for it :+1:

In one of the last lessons in the Wes Bos React course he introduces using import and I thought "whoa, maybe we should use that instead of require" - crazy timing. Sounds good to me.

Yes, please :  )

@LearnWebCode Ha! That's actually where I got the idea. New TMI motto: "If it's good enough for Wes, it's good enough for us"

You can still use class definitions with imports though. So the only thing that would really be different is lines 1 and 2 in each example right?

@trangiiee We could change just these two lines, but I thought it'd be better to simplify the structures even further to be less verbose. This still keeps everything modular and prevents leaking variables into the global scope.
Do you think there'd be an advantage to leaving the rest of the previous structure? There definitely might be that I'm just unaware of.

@aaronbushnell, It looks like we're still using classes for MyModule.js. So we're just not going to use classes for App.js? I think that's fine :  )

Right! And only to make things a little less verbose. There is a slight change to modules though. Here's a quick comparison:
Before
class MyModule {

  constructor () {
  }

}

MyModule;

module.exports = MyModule;

After
class MyModule {
  constructor () {
  }
}

export default MyModule;

Again, not a big difference. Just chopping out what seemed unnecessary.

Since each module is being assigned a name when imported, you could even just do this:
export default class {
   constructor () {}
}

then importing you can still do:
import MyModule from './modules/MyModule';

Nice, @knynkwl! It also sounds like MDN doesn't mention module.exports so I think export default meets the convention.

Sounds like we have a pretty solid consensus here. To master we go!


Add evaluation module to timeseries

Issue #, if available:
Depends on: #1830
Description of changes:
This PR factors all evaluation functionality out to 1/ substantially speed-up evaluation enabling ensembling, 2/ break off dependency to GluonTS evaluation enabling other libraries to be integrated.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Job PR-1839-4 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-1839/4/index.html


remove klog flags that are not needed

I've used one klog flag today klog.v. It seems odd that the logging library needs to have the majority of the flags of the binary.
I propose we ditch them all except for the v one

they are hidden now


Dropdown.Item with NavLink

Using NavLink  from react-router-dom with <DropDown.Item>, I would get this in the console
  cannot appear as a descendant of .
Wondering if there's a way to use NavLink and DropDown.Item
Workaround:

    <NavLink to={route}>{name}</NavLink>

Ah, yeah that will be a problem since the DropdownItem renders an anchor. Let me see what I can do about that, and post a PR here!

Could we apply DropdownItem the same way how MenuItem is implemented? Instead of adding the anchor in dropdownitem, the anchor would need to be added as a child of dropdownItem?
import React from 'react'

export type DropdownItemProps = React.LiHTMLAttributes<HTMLLIElement>

const DropdownItem = React.forwardRef<HTMLLIElement, DropdownItemProps>(
  ({ className, ...props }, ref) => {
    return

  }
)

export default DropdownItem

<Dropdown.Item>
    home
</Dropdown.Item>

The workaround you mentioned sounds like a viable solution to me.
The Daisyui docs for the dropdown shows the usage of the li>Item 1
 strategy.
The only thing react-daisyui does is wrapping that and exposing it as the Dropdown.Item static.
My suggestion would be to leave it as is and maybe have an example story about it.
What do y'all think?

Wouldn't a polymorphic prop be ideal in this case?


support for 1.21.3

Any eta on support for latest Minecraft version?

I believe it already supports 1.21.3, but needs to be marked as such on Modrinth and Curseforge.


dts: dasharo-deploy: use baseboard name for MSI

… MSI
Signed-off-by: Michał Żygowski<EMAIL_ADDRESS>

Untested

Tested both on MSI Z690 DDR4 and DDR5. Thank you for that contribution. Additionally we added couple QoL improvements


Shutdown the engine after all sources are done

When multiples sources are included in a ruleset, if one source finishes it forces the main engine to shutdown while other sources are still producing events.
This work adds a counter for finished sources and shuts down the engine after all sources have completed.

When multiples sources are included in a ruleset, if one source finishes it forces the main engine to shutdown while other sources are still producing events.

This is the desired functionality.


Accessing Orca deployment from JupyterLab on K8s

I have a question regarding the accessing of the Orca server using plotly.io when it's ran as a separate deployment on a Kubernetes setup. How would you typically configure the communication from any typical "singleuser" notebook to the externally running Orca server?
Context:
I'm currently working on a Kubernetes deployment of JupyterLab using the Zero-to-JupyterHub guide. Running plotly orca in a separate deployment would reduce the singleuser image size and complexity quite a bit and keep things neatly compartmentalized. Otherwise each and every singleuser container would contain a complete xvfb install!

You're right that getting Orca running on a headless system can be tricky and it is much simpler/cleaner to have it run in its own container.
I'm not familiar with our tools in JupyterLab at the moment so I don't know how to call an externally running Orca server but I imagine it should be simple to do.
@jonmmease @nicolaskruchten can you please answer this one?

Unfortunately, this isn't supported in plotly.py yet. See https://github.com/plotly/plotly.py/issues/1570 for more info.

@TiemenSch it will be possible to call an externally running Orca in the next release of plotly.py. See PR https://github.com/plotly/plotly.py/pull/1850 for details!


Allow config override per vhost

@lammensj what would be the case when overriding http vs https vhost settings separately would be useful/required?

One of the most common cases is redirecting from http to https. I know this can the first rule of many vhost configuration lines, but it would be nice if I could just separate them.
Another use case that springs to mind are forward proxies over SSL.

I have to admin that it took way too long to get back to this PR. Sorry about that. @lammensj if you are still interested in contributing this enhancement, please submit a new PR based on the most recent code in develop. I will have it merged right away this time 🤞😃

@lmakarov no problem, I understand that managing an opensource project is not that easy and that it might take up a lot of your time 🙂
I compared my pr with the current version, and it appears that support for http(s) is already incorporated, so I'm not going to open a new pr.
Thank you for this amazing project!


Rename /auth/login route

Currently, when a user navigates to '/admin', they are redirected to the default Laravel 'auth/login' route. Is there a way we can modify that so the user no longer sees 'auth/login', but only 'admin'? This is really just a visual preference.

I suggest something, see my PR


[platforms] Copy edit and clarity pass

Docs Build status updates of commit 9d1b3e3:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/resources/add-ins-differences.md
:white_check_mark:Succeeded
View

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

Docs Build status updates of commit e213d31:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/resources/add-ins-differences.md
:white_check_mark:Succeeded
View

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

Thanks @davidchesnut. I agree that the UI could be another difference. Maybe we can add that to the backlog. As for now, I applied your changes. Is there anything else I should take a look at?


extracting the detected text from the text recognizer

Hi all;
I am a student and trying to work Mobile vision text recognition in my project ...so excuse me if my question is lame.
I want to take the text from the text recognizer and send it to a server to search for it in a database, I didn't know how to do that, I tried to extract it from the textRecognizer but it needs the camera frame which I didn't know how to build for live camera....any one can help me?

Could you please tell me if you figured this out? I need it for a school project as well . Please

@prismane text recognizer automatically send detections to the receiveDetections() method in the processor class so what ever you need to do with the text you can do it thier


Allow handlers in event loops to be removed

Currently, it's not possible to remove a handler from an event loop/event queue.
This means that handlers are supposed to be re-used consistently. And using an individual handler for each instance of something implies leaking the handler once the instance is destroyed.
If this event is rare, it's fine to leak one or two objects. But overall it would be better to make handlers removable.
I'm not sure of the best approach. Currently, handlers are stored as a Vec<Box<Any>>, and the id provided is just an index in the vec. Meaning either:

We could simply upgrade to a Vec<Option<Box<Any>>>, and setting the option to None when the handler is dropped. This raises the question of index reuse: reusing index for future insertion of handlers avoids wasting allocation space, but not reusing index can allow to catch logic bugs more easily.
We could opt for a fancier solution (which I don't know yet what it could be), involving replacing the id with a more fancy type, in order to allow somehow space reuse while still avoiding Id reuse. This new fancy type should remain Clone though.

if you're clear about the fact that IDs are reused, I don't see why the Vec<Option<Box<Any>>> approach shouldn't work well. IDs are reused in other libraries I use (wlc, PetGraph, etc.) and I haven't ran into issues because I'm always sure to delete outstanding IDs.
The only other space efficient operation I can think of is to switch the ID over to some type of UUID and store the values in a Hashmap, but I have a feeling there's a reason why you haven't gone that route.

Hmm, I actually realized the real issue with removing handlers. In retrospect that's the real reason I didn't try to make it possible back then.
Each proxy/resource registered to a handler keeps a raw pointer to the memory location of this handler (inside the Box<_>). As such, destroying a handler means that if any proxy still exists that was registered to this handler, it will point to freed memory. Not good.
That means I have to make removing a handler unsafe. Which on the plus side, is a good way to raise awareness about the fact that you need to do it correctly I guess.
Or I could rework a large part of the internals of the library to make this safe, and it will require some runtime overhead. I much prefer the first option tbh.

I've gone the simpler route. Time will tell if it's good as is or needs to be reworked.


Backstage plugin

Hello There,
We were just about to start our own java based nx-cloud solution but I see you are progressing nicely. We have decided we would like to host the frontend as a backstage plugin.
Would you be interested in such an approach?

Hi @jbadeau
It's such a great idea!
FYI, before creating a 0.1.0 version, there is few things I would like to finish:

Implement save-metrics feature
Implement SemVer releases with GitHub Actions
Implement a very (very very) basic Helm Chart to deploy at least apps/server and a basic nginx reverse proxy

Frontend will be the next step, I'm considering to use very straight forward framework (SvelteKit?), with an existing actively maintained OIDC/OAuth2 integration (e.g. Auth.js).
Any help is more than welcome 😉


recommendation for the recovery script

Good day,
Many times, this script is used by support to create a windows VM, then we add hyper-v, mount a new disk, etc... (as you know).
It would be a GREAT time saver and huge impact if you create a custom image or something that would have Hyper-v ALREADY INSTALLED.  Think about how much time is wasted on every ticket by engineers having to install hyper-v.  The time adds up quickly.
Thanks for considering.

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

ID: 355a594a-22ef-fd15-0b58-07701dd1815c
Version Independent ID: d8356a0a-9aaf-900b-ce7a-021c9a0af509
Content: az vm repair
Content Source: latest/docs-ref-autogen/vm/repair.yml
Service: virtual-machines
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

route to service team

@Drewm3 can you please take a look at this issue?

Let me reach out to the owners of the VM repair tools to inquire about this feature request.

Moving this over to @haagha who will look into the feature request.

@mihammer Apologies for the late reply. We are looking into this issue. We will provide an update once we have more details on this.
@haagha Could you please provide an update on this once you get a chance ? Awaiting your reply.

Changing assignee to author to look at possibility of updating script


More python packages synthetic data - are these suitable to add?

Hello! I've found some more python packages for creating synthetic data. As I'm not sure what the quality is, I'm adding them here and leaving @qubixes to decide if they should be added or not :)
Found on https://www.activestate.com/blog/top-10-python-packages-for-creating-synthetic-data/:

SymPy (increasing data points)
Mesa (complex scenarios)
Zpy (Image data)
Blender (Image and video data)

And a package to check the performance of a synthetic dataset (whatever that means): https://github.com/mostly-ai/virtualdatalab

SymPy: This seems to general to me for the list, you can make synthetic data with it, but so can you with Numpy.
Mesa: Agent based modelling. Again can be used for synthetic data. I decided to keep most of the simulation packages out of the tools list, because they are not necessarily aimed at privacy, but this can be changed of course.
Zpy: This may be interesting to put in the list. It is quite specific, and very geared towards ML applications.
Blender: Too general of a package I think, can render anything for any reason.

Thanks Raoul! Closing this issue :)


Replace mysql npm module with mysql2

Our DB recently changed which auth mechanisms were allowed. We disabled the native password option (the only one that the mysql npm module supports). Thankfully, the mysql2 module is way more popular now and supports the auth we want and the api is nearly identical.

QA :+1: The dev deployment is working!


[3.x] Add Node.get_children_of_type()

New Node Method: TypedArray<Node> get_children_of_type(String type, bool recursive)
Returns all children that match or inherit from a given type.
type: Can be any native, class_name, or resource_path type, similarly to the extends keyword.
recursive: If true, will check all descendants, else will only check direct children. (false by default)
Master PR: #56032
Closes: godotengine/godot-proposals#3661
Example Project: GetChildrenOfTypeTest-3.x.zip

All suggested changes from Master PR made, and rebased to current 3.x.


ASPNET Core 3.1 OIDC validation

Hello, I am using cloud scheduler to create a CRON job that triggers an HTTP request using OIDC token as authorization mechanism.
My problem is to find  authority url and configure according the following code:
            services
                .AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
                .AddJwtBearer(options =>
                {
                    options.Authority = "https://accounts.google.com/.well-known/openid-configuration";
                    options.IncludeErrorDetails = true;

                    options.TokenValidationParameters = new TokenValidationParameters()
                    {
                        RequireExpirationTime = true,
                        RequireSignedTokens = true,
                        ValidateActor = true,
                        ValidateAudience = false,
                        ValidateIssuer = true,
                        ValidateIssuerSigningKey = true,
                        ValidateLifetime = true,
                        ValidateTokenReplay = true,
                        ValidIssuer = options.Authority,
                    };
                });

Basically, I want to validate the token we get comes from the GCP and it contains the service account specified in the cron schedule.

configure according the following code

The code you have pasted uses Microsoft's JwtBearerExtensions and I'm afraid I'm not familiar with using those extensions. You should create an issue for Microsoft if you need help on using it.

My problem is to find authority url

I'm not exactly sure what Authority URL refers to here, guessing, I would say it's either the issuer or the URL where the public key of the signing certificate lives. But what it's value should refer to is something you also need to confirm with Microsoft, taking a quick look at the reference docs, it's not clear to me.
In any case, whether it refers to the issuer, the URL of the public key or something else, the value you need to specify will depend entirely on how you are obtaining the OIDC token, and there's no info in your question about that.
I can give you some of Google's defaults if you want to try, but again, whether these work or not will depend on what Authority URL referest to and how you are obtaining the OIDC token:

For the URL where the signing public key lives:

For RS256 signed certificates, https://www.googleapis.com/oauth2/v3/certs will be used.
For ES256 signed certificates, https://www.gstatic.com/iap/verify/public_key-jwk will be used.

The issuers of some Google signed JWT are one of:

https://accounts.google.com
accounts.google.com

and it contains the service account

Usually you can use the sub and email properties of the JWT payload for extracting the identity represented by the OIDC token. But again, I don't know where you are getting your OIDC token from.
And lastly, using the Google.Apis.Auth client library you can both obtain and verify OIDC tokens. Here are some IAP based examples that might help you even if your application CRON job is not calling an IAP protected app, just use the code bits that generate and verify the OIDC token. You can use these as an alternative to JwtBearerExtensions or simply to try token validation in a console app without having to set up services etc., until you get the right values.

Obtain an OIDC token from a service account.
Verify an OIDC token

Thank you @amanda-tarafa! I am going to have a look at your useful resources 🙇  🥇
I am closing this issue for now 👍


Allow doctor to differentiate between notes in different vaults.

Please select if your request is either something new or an enhancement

[x] Enhancement of an existing Feature.
[ ] Request of a new feature.

Please select the area your request applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

[x] Workspace - VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
[ ] Lookup - Dendron's Lookup Command
[ ] Views - Dendron Preview, Tree View, Side Panels in the UI
[ ] Schema - Dendron Schemas
[ ] Pod - Data import from / export to Dendron
[ ] Publish - External Site Publish
[ ] Markdown - Markdown features, such as syntax support and features

Is your feature request related to a problem? Please describe
Allow doctor to differentiate between notes in different vaults. When I link to files across directories in my workspace, I would like to be able to use doctor to auto populate tags notes using createMissingLinkedNotes. When trying to do this I cannot specify the notes I do not want to create.
Describe the solution you'd like
Select notes that are to be  created with a drop down multi select similar to when creating hierarchy from note.
Describe alternatives you've considered
None
Additional context
None

Thanks for the suggestion @Mjvolk3 . Adding this to our backlog

@aleksey-rowan I think your regex suggestion adds more flexibility. We can add your addition suggestion under this issue if you'd like to close.


GitHub Packages: Helm Chart support (GA)

Summary
This feature tracks the GA release of support for Helm Charts available through support of the OCI standards in GitHub Packages.
Intended Outcome
You can store and manage your public and private Helm Charts as of Helm 3.0 in the GitHub Packages Container Registry alongside your containers and other packages.
How will it work?
You can add your organization's Helm charts, search the organization for charts, and also install a chart.
helm create helm-test
helm package ./helm-test

echo "$TOKEN" | helm registry login -u $USER --password-stdin https://ghcr.io
helm chart save helm-test/ ghcr.io/mona/helm-test:latest
helm chart push ghcr.io/mona/helm-test:latest

This is no longer planned due to a change in our strategic priorities and the allocation of our resources towards higher-priority initiatives.


Edit the "Fund you accounts" instructions.

Edited and updated the content by:

Removing the content related to Goerli because it's no longer accurate (https://faucet.goerli.linea.build/) is no longer available
Removed the instructions to bridge Sepolia because that content is already available in the bridging content.
Minor updates to buying tokens on MetaMask Portfolio because there's been slight updates to the interface
Removed the tabs

Closed in favour of https://github.com/Consensys/doc.linea/pull/634/


Support for VS 2022

Installed product versions

Visual Studio: 2022
This extension: 1.2.0

Description
Can you please add support for VS 2022

I second this. Any plans on this feature? This is a huge lifesaver, I have over 30 projects I have to add manually (or via VS2019), which is inconvenient.

I would really like this extension in 2022. Please update! :)

+1 from me

Really saved me 5 days in the past.
Please, provide it for VS 2022.

I miss this extension in VS 2022 too. Please update! 👍

100% agree ... need an updated version to support VS 2022

I updated the extension to new Visual Studio. You can find it under "Add Multiple Projects To Solution V2" name (there is a need to publish it separately).


changefeed (ticdc): remove status of a changefeed after it is removed

What problem does this PR solve?

Issue Number: close #9173 #9177
What is changed and how it works?
Delete the status metric of a changefeed when it is removed.
Check List
Tests

Manual test (add detailed scripts or steps below)

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
None

/merge

/merge


Fix update of OIDC provider thumbprint list with both root CA and leaf certificate thumbprints

Checklist

[x] Update changelog in CHANGELOG.md.

we need the 4 CAs
leaf cloudfront
CA cloudfron
leaf custom
CA custom

we found out leaving the CA only works and its what AWS recommends, we should be fine until 2036

I removed the leave certificates as during tests it works completely fine


feat: created container image

@rjsadow @reetasingh I have created container image for Hydrophone and tested on my machine also. Just I had one question that where to store this image in which registry? so one can pull can use it easily

/lgtm
/approve
More work to be done on providing the container to the community under https://github.com/kubernetes-sigs/hydrophone/issues/209


Incorporate Sphinx config

Install Sphinx, work through its quickstart process, review files created, and add to repo. Use the Sphinx and ReadTheDocs documentation to guide the correct creation of the files and contents in the files, including the toctree.

Completed in pre-release https://github.com/AaronMorelli/TopicalTraceFlags/releases/tag/v7.0-alpha1


Allow loading credentials from profile and default

AWS credentials file allows for using values from the "default" profile when these have not been overridden by another profile. This is, a profile that does not have a property defined, will use the default value for it.
This update fixes the code that loads credentials when a given profile is specified.
Example credentials file:
[default]
aws_session_token = TESTDEFAULT-SESSIONTOKEN
aws_access_key_id = TESTDEFAULT-AWSACCESSKEYID
aws_secret_access_key = TESTDEFAULT-AWSSECRETACCESSKEY

[test-profile]
aws_access_key_id = TESTPROFILE-AWSACCESSKEYID
aws_secret_access_key = TESTPROFILE-AWSSECRETACCESSKEY

Whit this configuration file, when test-profile profile is used, the value for aws_session_token should be TESTDEFAULT-SESSIONTOKEN.
More examples have been added as unit tests, with full code coverage.

I'll look at this sometime this weekend. One question though, is this the same functionality as aws cli?

@adam-fowler correct, that is how AWS CLI and AWS SAM work.

Here is more documentation on the AssumeRole operation, and Assume role provider in Boto3.
It seems like an API call to AWS STS service is needed to retrieve temporary credentials. I'm going to go ahead and close this PR, and open an issue instead.


IGNITE-12577: Race in checkpoint pages store can trigger erroneous as…

…sert.

This PR is associated with a resolved ticket. Closing the PR, please reopen it if you still need it.


Fixing url builder

Description
We found and issue, regarding url builder, but with this modifications is fixed

No need for this PR. Issue has been fixed via another PR: #93


Varargs in cascalog ops

Hey Sam, I need to have ArraySeq to handle the varargs vector of params in variadic parametrized ops ! :)

Thanks!


Fix error messages path sorting

This PR solves the problem with a path intersection.
Currently, the longest path can be processed a first and made this a Hash, instead of Array.
Solution: sort paths by size.
If you need a spec, please tell me where I should place it, because currently, I do not understand where I should place this case.
Example:
require 'dry/validation'

class MyForm < Dry::Validation::Contract
  params do
    required(:rules).each do
      schema do
        required(:domains).each(:str?)
      end
    end
  end

  rule(:rules).each do
    key(path.keys + [:domains]).failure('Failed')
    key.failure('Failed')
  end
end

puts MyForm.new.call(rules: [{domains: ['some']}]).errors.to_h

Expected:
{:rules=>{0=>[["Failed"], {:domains=>["Failed"]}]}}

Got:
Traceback (most recent call last):
	10: from dry-v.rb:18:in `<main>'
	 9: from /Users/bugagazavr/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/dry-validation-1.3.1/lib/dry/validation/contract.rb:94:in `call'
	 8: from /Users/bugagazavr/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/dry-validation-1.3.1/lib/dry/validation/result.rb:26:in `new'
	 7: from /Users/bugagazavr/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/dry-validation-1.3.1/lib/dry/validation/result.rb:178:in `freeze'
	 6: from /Users/bugagazavr/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/dry-validation-1.3.1/lib/dry/validation/message_set.rb:92:in `freeze'
	 5: from /Users/bugagazavr/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/dry-schema-1.4.1/lib/dry/schema/message_set.rb:67:in `to_h'
	 4: from /Users/bugagazavr/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/dry-validation-1.3.1/lib/dry/validation/message_set.rb:105:in `messages_map'
	 3: from /Users/bugagazavr/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/dry-validation-1.3.1/lib/dry/validation/message_set.rb:105:in `reduce'
	 2: from /Users/bugagazavr/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/dry-schema-1.4.1/lib/dry/schema/message_set.rb:58:in `each'
	 1: from /Users/bugagazavr/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/dry-schema-1.4.1/lib/dry/schema/message_set.rb:58:in `each'
/Users/bugagazavr/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/dry-validation-1.3.1/lib/dry/validation/message_set.rb:107:in `block in messages_map': undefined method `<<' for {:domains=>["Failed"]}:Hash (NoMethodError)
Did you mean? <

Workaround:
Change rules order
  rule(:rules).each do
    key.failure('Failed')
    key(path.keys + [:domains]).failure('Failed')
  end

If you need a spec, please tell me where I should place it, because currently, I do not understand where I should place this case.

Somewhere here would be good.

@solnic done

@Bugagazavr thank you :) This will be part of 1.3.2 bug fix release. I should be able to release it later this week.

@solnic Hello any news?

@Bugagazavr oops, it went under the radar. I'll finally push this out tomorrow.


Test EF Core 2.0 with UWP 6.0

The upcoming version of UWP comes with support for .NET Standard 2.0 and we want to test EF Core 2.0 bits on it to makes sure we...

Get a chance to identify any blockers that can be fixed in UWP or .NET Native before their release
Identify anything we could do in EF Core to improve UWP compatibility after 2.0
Understand how both technologies are working together at this stage, in particular in regards to other issues previously reported, so that we can provide clearer guidance to customers on what is supported whether to rely on EF Core 2.0 on UWP 6.0.

The plan is to test the following general areas:

[x] Query

[x] Anonymous types (see #5119)
[x] Nullable enums (see #6537, #8188)
[x] Navigation properties (see #5841, #9012)
[x] Complex queries (see #6423)

[ ] Change tracking performance (see #7582) Still an issue
[x] SaveChanges (see #7614)
[ ] Migrations Fails due to System.Globalization.CultureInfo unification failure

[x] Data Annotations (see #9141)

[ ] Reverse Engineering Not supported
[x] SQL Server
[x] Sqlite

Reverse engineering into a UWP project won't work, but I'm curious to see if we have a good error...

(In theory, it could work with a purly managed ADO.NET provider.)

@bricelam curious, why is that?
BTW, we expect to be testing fully managed SqlClient for UWP as part of this. You just reminded me I did not add it to the list :smile:

NuGet will restore for UWP, but we run the tools on .NET Framework. You'll get the "no app sandbox" error.

I've directed a few people towards using the managed SqlClient implementation for UWP on ARM, and they've all reported success, so I'm hopeful it will go well.

@bricelam

PM> Scaffold-DbContext "Data Source=Verification.db" Microsoft.EntityFrameworkCore.Sqlite
System.TypeInitializationException: The type initializer for 'Microsoft.Data.Sqlite.SqliteConnection' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: The process has no package identity. (Exception from HRESULT: 0x80073D54)
at Windows.Storage.ApplicationData.get_Current()
at SQLitePCL.SQLite3Provider_e_sqlite3..ctor()
at SQLitePCL.Batteries_V2.Init()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Data.Sqlite.Utilities.BundleInitializer.Initialize()
at Microsoft.Data.Sqlite.SqliteConnection..cctor()
--- End of inner exception stack trace ---
at Microsoft.Data.Sqlite.SqliteConnection..ctor(String connectionString)
at Microsoft.EntityFrameworkCore.Scaffolding.Internal.SqliteDatabaseModelFactory.Create(String connectionString, IEnumerable1 tables, IEnumerable1 schemas)
at Microsoft.EntityFrameworkCore.Scaffolding.Internal.RelationalScaffoldingModelFactory.Create(String connectionString, IEnumerable1 tables, IEnumerable1 schemas, Boolean useDatabaseNames)
at Microsoft.EntityFrameworkCore.Scaffolding.Internal.ModelScaffolder.Generate(String connectionString, IEnumerable1 tables, IEnumerable1 schemas, String projectPath, String outputPath, String rootNamespace, String contextName, Boolean useDataAnnotations, Boolean overwriteFiles, Boolean useDatabaseNames)
at Microsoft.EntityFrameworkCore.Design.Internal.DatabaseOperations.ScaffoldContext(String provider, String connectionString, String outputDir, String dbContextClassName, IEnumerable1 schemas, IEnumerable1 tables, Boolean useDataAnnotations, Boolean overwriteFiles, Boolean useDatabaseNames)
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.ScaffoldContextImpl(String provider, String connectionString, String outputDir, String dbContextClassName, IEnumerable1 schemaFilters, IEnumerable1 tableFilters, Boolean useDataAnnotations, Boolean overwriteFiles, Boolean useDatabaseNames)
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.ScaffoldContext.<>c__DisplayClass0_1.<.ctor>b__0()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_0`1.b__0()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)

We should look into wrapping that HRESULT. Something like...

The current provider Microsoft.EntityFrameworkCore.Sqlite can't connect to databases from UWP projects at design time. Consider running this command in a separate project targeting a supported framework.

@bricelam For SQL Server the exception is:

System.TypeLoadException: Could not load type 'System.MarshalByRefObject' from assembly 'System.Runtime, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
at Microsoft.EntityFrameworkCore.Scaffolding.Internal.SqlServerDatabaseModelFactory.Create(String connectionString, IEnumerable1 tables, IEnumerable1 schemas)
at Microsoft.EntityFrameworkCore.Scaffolding.Internal.RelationalScaffoldingModelFactory.Create(String connectionString, IEnumerable1 tables, IEnumerable1 schemas, Boolean useDatabaseNames)
at Microsoft.EntityFrameworkCore.Scaffolding.Internal.ModelScaffolder.Generate(String connectionString, IEnumerable1 tables, IEnumerable1 schemas, String projectPath, String outputPath, String rootNamespace, String contextName, Boolean useDataAnnotations, Boolean overwriteFiles, Boolean useDatabaseNames)
at Microsoft.EntityFrameworkCore.Design.Internal.DatabaseOperations.ScaffoldContext(String provider, String connectionString, String outputDir, String dbContextClassName, IEnumerable1 schemas, IEnumerable1 tables, Boolean useDataAnnotations, Boolean overwriteFiles, Boolean useDatabaseNames)
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.ScaffoldContextImpl(String provider, String connectionString, String outputDir, String dbContextClassName, IEnumerable1 schemaFilters, IEnumerable1 tableFilters, Boolean useDataAnnotations, Boolean overwriteFiles, Boolean useDatabaseNames)
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.ScaffoldContext.<>c__DisplayClass0_1.<.ctor>b__0()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_0`1.b__0()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)

Hmm... MarshalByRefObject is part of .NET Standard 2.0

@bricelam could a binding redirect help?

I don't think so. I think the facade is just missing a type forward.

@divega, @ajcvickers  These are my final findings:
EF 2.0.1 prerelease can be used with UWP 6.0.0 prerelease without major issues with InMemory, SQLite or SQL Server providers.
To get acceptable change tracking performance ChangingAndChangedNotifications strategy should be used.
To use the design time tools (Migrations and Scaffolding) the context and model should be placed in a netstandard2.0 project and the tools should be executed from a .NET Core project.

With the lastest previews of everything I am still getting
"Could not load type 'System.Globalization.CultureInfo' from assembly 'System.Runtime, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'"
when using "add-migration" with a .NET Standard 2.0 class library (I am using EF SQLite).

@IngoBleile When EF Core 2.0.1 is release, UWP projects will be blocked. You'll need to use a separate .NET Standard class library cross-targeting either .NET Framework or .NET Core.

@bricelam: You mean like that?
netstandard2.0;net462 or
netstandard2.0;netcoreapp2.0
in the .NET Standard 2.0 class library with EF? Neither of it works.

I Visual Studio just picks the first framework listed. Try swapping the order so that .NET Framework/.NET Core is listed first.
If you happen to be using dotnet ef, you can specify the desired framework using --framework.

No, not working.

@IngoBleile I just tried it with the pre-release 2.0.1 version of EF and this works:
<TargetFrameworks>netcoreapp2.0;netstandard2.0</TargetFrameworks>
You need 2.0.1 to be able to compile in release mode anyway, so please wait until it's released


bug: sozo init throws "No such file or directory"

Cairo version: bb1a042c756c4272c608a1ac51ff3a410183a847
Current behavior:
This bug occurs when you initialize a new dojo project with sozo init
This is the returned error:
Copying template from "/Users/fredtupas/cairo/dojo/crates/sozo/dojo-template" to "/Users/fredtupas/projects/test"
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', crates/sozo/src/init.rs:44:44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Expected behavior:
The expected behavior would be to create a smol working scaffold of a dojo project
Steps to reproduce:
sozo init test
Other information:
It appears that in this line, there should be a folder called dojo-template but it doesn't exist

I would like to take this one, kindly assign thanks!


How to check if a given path is a directory?

Don't support it? Or am I can't to find it?

We don't have that API, but it would be a good addition to https://docs.rs/rust-embed/6.3.0/rust_embed/struct.Metadata.html

@markijohn Could you please elaborate on your usecase, in what setting would you need to know why an entry is a directory?
The embedded files are known at compile time otherwise they are not included in the binary.

Reopening since the PR got reverted. @markijohn can you elaborate on your use case? What are you trying to achieve with an is_dir function?

I am sorry for the late comment. This was arbitrarily modified a long time ago to the following, but I wanted to know if it could be done without 'iter()' for optimization when there are a lot of embedded files and directories.
embed/somedir/file.txt
embed/somefile

#[macro_use]
extern crate rust_embed;

#[derive(RustEmbed)]
#[folder = "embed/"]
struct Asset;

fn is_exist_dir(path:&str) -> bool {
    // Asset::is_dir( path ) ?
    if path.ends_with("/") {
        Asset::iter().find( |v| v.starts_with(path) ).is_some()
    } else {
        // let added_pathsep = format!("{}/", path);
        // Asset::iter().find( |v| v.starts_with( &added_pathsep ) ).is_some()
        Asset::iter().find( |v| v.starts_with( path ) && v[path.len() ..].starts_with('/') ).is_some()
    }
}

fn main() {
    let user_input = "somedir";
    assert!( is_exist_dir(user_input) );

    let user_input = "somefile";
    assert!( !is_exist_dir(user_input) );
}


0.22 beta pin idl to <0.20

Signed-off-by: Yee Hing Tong<EMAIL_ADDRESS>TL;DR
See https://flyte-org.slack.com/archives/CREL4QVAQ/p1630351413025400
Type

[x] Bug Fix
[ ] Feature
[ ] Plugin

tests failing, makeing dev-requirements.txt


fixes: fixed json_decode(): Passing null to parameter of type string …

…is deprecated

Codecov Report

Merging #5560 (194489f) into 1.5 (9718bf3) will decrease coverage by 0.53%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                1.5    #5560      +/-   ##
============================================
- Coverage     62.88%   62.35%   -0.54%
+ Complexity     1408     1401       -7
============================================
  Files           195      195
  Lines          4149     3870     -279
============================================
- Hits           2609     2413     -196
+ Misses         1540     1457      -83

Impacted Files
Coverage Δ

src/Models/User.php
100.00% <100.00%> (ø)

src/Listeners/ClearCachedSettingValue.php
66.66% <0.00%> (-8.34%)
:arrow_down:

src/Traits/AlertsMessages.php
45.00% <0.00%> (-5.00%)
:arrow_down:

src/Database/Types/Type.php
87.87% <0.00%> (-2.68%)
:arrow_down:

src/Http/Controllers/ContentTypes/Relationship.php
83.33% <0.00%> (-2.39%)
:arrow_down:

src/Helpers/helperTranslations.php
68.75% <0.00%> (-1.84%)
:arrow_down:

src/Translator.php
56.66% <0.00%> (-1.57%)
:arrow_down:

src/VoyagerServiceProvider.php
79.68% <0.00%> (-1.34%)
:arrow_down:

src/FormFields/AbstractHandler.php
78.94% <0.00%> (-1.06%)
:arrow_down:

src/Models/MenuItem.php
84.31% <0.00%> (-0.88%)
:arrow_down:

... and 58 more

Continue to review full report at Codecov.

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


When adding a new API description, Kiota should load with no pre-selected endpoints

After creating an API Plugin/client for an specific API, one might want to create another API Plugin/client for the same API but with different endpoints.
So every time a user adds a new API description, even if it's the same OpenAPI description that was load before, Kiota should load the API explorer with no selected paths.
Today, after generating an API Plugin/client, if I try to add the same OpenAPI description to create something different, Kiota loads the previous selected paths.

@maisarissi I think this perception is biased by the fact you're running a lot of demonstrations. Arguably the answer to "are people more likely to generate more clients/plugins with fewer endpoints, or more likely to edit existing plugins/clients?" depends on the kind of work you're doing.
In my experience, unless there are different authentication requirements, or unless the user is working with multiple languages in the same project, it's usually more of a matter of adding something they were missing after generating.

I agree with you @baywet . It's more likely that one would want to edit/add something they were missing after generating and this will be done by the "edit paths" scenario, when one is editing the workspace file.
However, after generating, if one tries to add the same API using the "Add API description", which is to create a whole new thing, we should load Kiota with no pre-selected endpoints.

Ah I didn't get the fact this was specifically for the "add API description" flow, not just the auto-reload after generating. Thanks for the precision.


#450:new page (FAQ) under other-guides added

This change is

/ok-to-test
/assign @jlewi
@jlewi please would you take a look from a technical point of view, about how we want to word this FAQ.
@simmscg Please would you do a tech writer review

/assign @jlewi
/assign @simmscg

/assign @Swikar

/unassign @jlewi

/lgtm
/approve


Need to replace the cert re-ordering workaround with correct chain building logics  during the quote validation

There is a upcoming Intel root certificate update change that could create a condition that would break our current cert validation logics ( the cert root might new date than its descendant certs)

https://github.com/Microsoft/openenclave/issues/864

@soccerGB Is there any more work to be done for this issue, or can we close this out?

This is a nice to have feature - non-essential.


Is it possible to use this library with a flutter web app only ? As in, not android host platform.

I just want to develop a flutter app that can authenticate against azure ad.
I have been looking for auth libraries but they all talk about updating manifest, build gradle etc. I dont need anything else , just a web app.
Is it possible to use this library with a flutter web app only ????
I have this exception error : MissingPluginException(No implementation found for method initialize on channel azure_ad_authentication)

does not yet have web support only android, ios, macOs