routers/repo/repo.go:315:MigratePost() [E] MigratePost: pq: division by zero

Gitea version 1.9.0+rc2-16-gd789170e3 built with GNU Make 4.1, go1.12.7 : bindata, sqlite, sqlite_unlock_notify
Git version: 2.7.4
Operating system: Ubuntu 16.04 LTS
Database (use [x]):

[x] PostgreSQL
[ ] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[ ] No
[x] Not relevant

Log gist:

2019/07/28 16:21:20 ...-xorm/xorm/engine.go:329:Ping() [I] PING DATABASE postgres
2019/07/28 16:21:20 models/models.go:305:NewEngine() [W] Table user Column max_repo_creation db default is '-1'::integer, struct default is -1
2019/07/28 16:21:20 models/models.go:305:NewEngine() [W] Table user Column diff_view_style db default is '''::character varying', struct default is ''
2019/07/28 16:21:20 models/models.go:305:NewEngine() [W] Table user Column theme db default is '''::character varying', struct default is ''
2019/07/28 16:21:20 models/models.go:305:NewEngine() [W] Table gpg_key column key_id db type is VARCHAR(16), struct type is CHAR(16)
2019/07/28 16:21:20 models/models.go:305:NewEngine() [W] Table gpg_key column primary_key_id db type is VARCHAR(16), struct type is CHAR(16)
2019/07/28 16:21:20 models/models.go:305:NewEngine() [W] Table gpg_key_import column key_id db type is VARCHAR(16), struct type is CHAR(16)
2019/07/28 16:21:20 models/models.go:305:NewEngine() [W] Table commit_status column context_hash db type is VARCHAR(40), struct type is CHAR(40)
2019/07/28 16:21:20 routers/init.go:84:GlobalInit() [I] ORM engine initialization successful!
2019/07/28 16:21:21 routers/init.go:106:GlobalInit() [I] SQLite3 Supported
2019/07/28 16:21:21 routers/init.go:37:checkRunMode() [I] Run Mode: Production
2019/07/28 16:21:21 cmd/web.go:151:runWeb() [I] Listen: http://<IP_ADDRESS>:3000
2019/07/28 16:21:21 cmd/web.go:154:runWeb() [I] LFS server enabled
2019/07/28 16:21:21 ...ce/gracehttp/http.go:142:Serve() [I] Serving [::]:3000 with pid 19160
2019/07/28 16:22:00 routers/repo/repo.go:315:MigratePost() [E] MigratePost: pq: division by zero

Description
I'm trying to import a github repo with all the issues, pull requests etc.
After hitting migrate button, it shows 500 page.
The last error is routers/repo/repo.go:315:MigratePost() [E] MigratePost: pq: division by zero
...
Screenshots

I've done some testing.
The failure only happens when "Milestones" are checked to be imported, but importing with rest of the entities is ok.

@Alir3z4 could you tell me the repository URL on github?

@lunny here's the repo URL https://github.com/SavandBros/gonevis-dash

I have tested locally with mysql, but it works. I will test with postgres tomorrow.

@lunny were you able to reproduce on postgresql ?

@Alir3z4 I can confirm this with postgres.

Thanks for confirming.


Add titles to recipes authored by predoi_valeriu

Description
Adding titles to all the recipe authored by me. Also adding @alistairsellar as author to all the other Autoassess recipes which he was not an author of, since that's his work there too (historical/Met Office, but still work :grin: ). Ali man, you mind having a look at the titles and suggest any better ones if you think they need them, please? I am just an engineer and don't really know what's the best title for them sciency Autoassess recipes :beer:

Before you get started

Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.

[x] 🛠 This pull request has a descriptive title
[x] 🛠 Tests run successfully
[x] 🛠 All checks below this pull request were successful

New or updated recipe/diagnostic

[x] 🧪 Recipe runs successfully
[x] 🧪 Recipe is well documented

cheers @alistairsellar for le review :beer:


Wrong/old GOPATH used by gometalinter(?)

I am setting GOPATH and PATH in both my .profile and .bashrc as follows:
export GOPATH=$HOME/workspace/go_Darwin
PATH=/usr/local/go/bin:$PATH:$GOPATH/bin/

Furthermore I am explicitly setting GOPATH in the go-config settings to the same path, but I get the following error when I run "update and install linter" of the go-plus package:

The path shown is the one I use at my linux system and I used the sync-setting atom package to transfer my settings from a Linux system to an OS X one, so it looks like an old PATH is stuck somewhere in the config. However, I could not find an entry of the old path in the configuration. Any idea? Or should I just reinstall my atom?

Check your package settings for go-config and go-plus. Blank out the GOPATH setting in each, and use the environment to set your GOPATH instead.

I have blanked the setting in go-config, but I could not find any option in go-plus. This did not fix the error, however I manage to fix it myself.
The issue was that my old Linux $GOPATH is present on the OS X system and its bin directory somehow endet up in my $PATH (stupid c&p mistake in my .bashrc). For whatever reason, go-config decided to that this old $GOPATH with the linux binaries should be my $GOPATH and not the value I have set $GOPATH to in .profile/.bashrc.
I'll close this issue. I guess that is really a strange special case. Feel free to reopen the issue if you think it should be fixed in go-config.

go-config simply works with the environment you give it. If the environment is funky (sounds like you found out why) then your mileage will vary by the amount of funkiness. Glad you got it sorted out!


Bumping composer version to 0.20.x

Updating hyperledger to 0.14.x
Updating composer to 0.20.x

I am seeing this error:
Error: Unable to read file: /Users/raheelzubairy/Projects/Blockchain/Customer-Loyalty-Plan/Pattern/test/customer-loyalty-program/fabric-dev-servers/fabric-scripts/hlfv12/composer/crypto-config/peerOrganizations/org1.example.com/users/Admin<EMAIL_ADDRESS>Command failed
Error: Unable to read card file<EMAIL_ADDRESS>Command failed


The description of targetHost in the parameter table is wrong.

In the Query Metrics example tab it states:

TARGET_HOST - The host that you want to query data from. Use the Query endpoint from the Azure monitor workspace Overview page. For example, https://proxytest-workspace-abcs.eastus.prometheus.monitor.azure.com

But in the parameters table:

Target host where you want to forward the request to.
When sending data to an Azure Monitor workspace, use the Metrics ingestion endpoint from the workspaces Overview page.
When reading data from an Azure Monitor workspace, use the Data collection rule from the workspaces Overview page

It should be:

Target host where you want to forward the request to.
When sending data to an Azure Monitor workspace, use the Metrics ingestion endpoint from the workspaces Overview page.
When reading data from an Azure Monitor workspace, use the Query endpoint from the workspaces Overview page

The error is highlighted with bold style.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: e9e3a34a-362c-5401-4f8f-d69e04fc04eb
Version Independent ID: 189bb14b-fdf9-1140-e750-d9341614b8c4
Content: Microsoft Entra authorization proxy - Azure Monitor
Content Source: articles/azure-monitor/containers/prometheus-authorization-proxy.md
Service: azure-monitor
Sub-service: containers
GitHub Login: @EdB-MSFT
Microsoft Alias: edbaynash

@avinode-amagdy We have verified and updated the document as required. The update will go live in less than 24 hours. Thanks.


ConfigParser.NoSectionError: No section: 'LIBRARIES'

Hello,
I ran the script with the provided exome test files and got these error messages. I would greatly appreciate it if you can have a look and help me troubleshoot the issues.
[jc2545@login-0-1 exome]$ python ~/programs/OptiType-master/OptiTypePipeline.py -i NA11995_SRR766010_1_fished.fastq NA11995_SRR766010_2_fished.fastq -d -v -o .
Traceback (most recent call last):
  File "/home/jc2545/programs/OptiType-master/OptiTypePipeline.py", line 195, in <module>
ALLELE_HDF = config.get("LIBRARIES", "ALLELES")
  File "/home/jc2545/python/lib/python2.7/ConfigParser.py", line 607, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'LIBRARIES'

Here is my config.ini file
[jc2545@login-0-0 OptiType-master]$ cat config.ini
[MAPPING]
#please specify the razerS3 binary path
RAZERS3=/home/jc2545/programs/razers3-3.4.0-Linux-x86_64/bin/razers3
THREADS=8

[LIBRARIES]
RNA_REF=./data/hla_reference_rna.fasta
DNA_REF=./data/hla_reference_dna.fasta
ALLELES=./data/alleles.h5

[OPTIMIZATION]
#the solver has to be supported by Coopr
SOLVER=cbc
THREADS=1

I believe all the required softwares and libraries are installed.
[jc2545@login-0-1 exome]$ python ~/programs/OptiType-master/OptiTypePipeline.py --help
usage: OptiType [-h] --input INPUT [INPUT ...] (--rna | --dna) [--beta BETA]
            [--enumerate ENUMERATE] --outdir OUTDIR [--verbose]

OptiType: 4-digit HLA typer

optional arguments:
  -h, --help            show this help message and exit
  --input INPUT [INPUT ...], -i INPUT [INPUT ...]
                        Fastq files with fished HLA reads. Max two files (for
                        paired-end)
  --rna, -r             Specifiying the mapped data as RNA.
  --dna, -d             Specifiying the mapped data as DNA.
  --beta BETA, -b BETA  The beta value for for homozygosity detection.
  --enumerate ENUMERATE, -e ENUMERATE
                         The number of enumerations.
  --outdir OUTDIR, -o OUTDIR
                        Specifies the out directory to which all files should
                        be written
  --verbose, -v         Set verbose mode on.

Hi,
We are using relative paths within OptiType. You either have to call OptiType within ~/programs/OptiType-master/ or you have to change all relative paths to absolute paths within the config.ini and OptiTypePipeline.py.
That should resolve the exception.
Best,
Benni

Hi Benni,
Thank so much for your prompt solution.
Best,
Jungmin


Investigate potential re-ordering of events from the websocket

Crate
relayer? rpc lib?

Summary of Bug
Not sure what happens but noticed that hermes listen ibc-1 sometimes shows batches with the NewBlock event interleaved with other events at same height`. In contrast the Go relayer doesn't show this problem.
While this is not of immediate concern, it would be great to understand where the order is changed and why.
Some logs here
https://gist.github.com/ancazamfir/f66fe219d038c5f71cebb0e14de78448

Version
romac/batch-events (found when reviewing #958 but probably not related)

Steps to Reproduce
Start both hermes and go relayer in listen mode. Send 2 Tx-es to ibc-1 using the patched ft-transfer that uses broadcast_tx_commit (branch anca/evets_multi_tx).
hermes tx raw ft-transfer ibc-0 ibc-1 transfer channel-0 9999 -o 1000 -n 2
Repeat a few times until the issues appears.
Logs from the relayers in the gist. The events com with the order

(NewBlock, Tx, Tx)  for the Go relayer
(Tx, NewBlock, Tx)  for hermes

Acceptance Criteria

For Admin Use

[x] Not duplicate issue
[ ] Appropriate labels applied
[x] Appropriate milestone (priority) applied
[ ] Appropriate contributors tagged
[ ] Contributor assigned/self-assigned

Now that we sort the events in each batch to have NewBlock first, do we still need to look into this?

Now that we sort the events in each batch to have NewBlock first, do we still need to look into this?

Probably not, let's close this


Help for MMD code (not related to libMMD)

Hello,
I saw in your repositories that you know MMD well.
I'm trying to compile MMD plugins, and I'm looking for MMDexport.lib, I have the header, but it's impossible to find this library needed for the link.
As you have developed a tool for MMD, perhaps you have this library or a link to find it.
Any documentation on MMD export and plugins are welcome.
Thank you in advance, Happy New Year.
Thank's Laura
Ref and link to MikuMikuDance chinese edition are welcome, I'v developped an Miku Installer , ( for young french), but now I will upgrade to other language.
https://mikumikudance.fr

You can find the required library files and header files in the Data folder of the MMD software installation directory:

I recommend referring to mmdbridge it is a relatively complete plugin, including how to set the window and so on.

Or you can just use my 926 version of data
MikuMikuDancebridge 926 Data.zip

Thank you so much.
In the English version we don't have these MMDexport files like in your capture.
In Europe (and the USA?) we can no longer access Yu Higuchi's site.
https://www.geocities.jp/higuchuu4/index.htm, it is reserved only for Japanese…
Saw MMBridge, but it doesn't have the MMDexport.lib file ;o)
But, I should have searched with bing instead of google...
In any case thank you very much, have a great new year


Allow to use first run simulations for subsequent runs of a given element space

Currently, everytime the analyze function is ran (even if the same paremeters), Xerus will re-simulate, re-query the database. This can be time consuming, and actually makes the sometimes needed iterative process of hyperparameter tuning (ie, g, delta, n_runs, provider settings and so on) time consuming. In light of this problem, the following changes are needed:

[ ] After the first run, keep track of the already simulated patterns / correlations. (should be almost there..)
[ ] If this simulations already exist, use them instead of re simulating / re - querying
[ ] Keep a 'safe' information of simulations / structures that can always be accessed to be used for filtering purposes

Also, It would be benetifial if we could pre-simulate the simulations for viz purposes only, so the pre simulated + correlation calculation can be used (for example in the Streamlit interface) before running the full analysis. Sometimes this is enough to get a good idea what is in the sample. This pre run of simulation+correlation, should be carried over then if analyze is run, it will use this pre-simulated data.


Dependency Collection For Repos

We may need to do some refinement here. Currently this won't make dependency collections for things that are just repos. It will be a fast follow. We should check this in to start the dependency collection.

Related to #504. There's a little more to do. This is being merged to start collections


Failed to build cypher project.

Today I've git cloned master branch and tried to build cypher project in it.
mvn clean install -DskipTests
in ./cypher/ directory. After that I've got this:
....
Downloaded from central: https://repo.maven.apache.org/maven2/org/neo4j/driver/neo4j-java-driver-parent/1.6.3/neo4j-java-driver-parent-1.6.3.pom (11 kB at 139 kB/s)
Downloading from ldbc: https://dl.bintray.com/ldbc/snb/com/ldbc/snb/common/0.4.0-SNAPSHOT/common-0.4.0-SNAPSHOT.jar
Downloading from ldbc: https://dl.bintray.com/ldbc/snb/org/neo4j/driver/neo4j-java-driver/1.6.3/neo4j-java-driver-1.6.3.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/neo4j/driver/neo4j-java-driver/1.6.3/neo4j-java-driver-1.6.3.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/neo4j/driver/neo4j-java-driver/1.6.3/neo4j-java-driver-1.6.3.jar (2.7 MB at 7.6 MB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  6.841 s
[INFO] Finished at: 2019-12-03T23:18:14+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project cypher: Could not resolve dependencies for project com.ldbc.snb:cypher:jar:0.4.0-SNAPSHOT: Could not find artifact com.ldbc.snb:common:jar:0.4.0-SNAPSHOT in ldbc (https://dl.bintray.com/ldbc/snb/) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Btw: and for now there is really no needed files in https://dl.bintray.com/ldbc/snb/ directory.

Btw: ... and for now there are really no needed files in https://dl.bintray.com/ldbc/snb/ location.

Run the build in the repo root not the cypher dir
Sent from my phone
On Tue, Dec 3, 2019, 21:20 dmkoltsov<EMAIL_ADDRESS>wrote:

Today I've git cloned master branch and tried to build cypher project in
it.
mvn clean install -DskipTests
in ./cypher/ directory. After that I've got this:
....
Downloaded from central:
https://repo.maven.apache.org/maven2/org/neo4j/driver/neo4j-java-driver-parent/1.6.3/neo4j-java-driver-parent-1.6.3.pom
(11 kB at 139 kB/s)
Downloading from ldbc:
https://dl.bintray.com/ldbc/snb/com/ldbc/snb/common/0.4.0-SNAPSHOT/common-0.4.0-SNAPSHOT.jar
Downloading from ldbc:
https://dl.bintray.com/ldbc/snb/org/neo4j/driver/neo4j-java-driver/1.6.3/neo4j-java-driver-1.6.3.jar
Downloading from central:
https://repo.maven.apache.org/maven2/org/neo4j/driver/neo4j-java-driver/1.6.3/neo4j-java-driver-1.6.3.jar
Downloaded from central:
https://repo.maven.apache.org/maven2/org/neo4j/driver/neo4j-java-driver/1.6.3/neo4j-java-driver-1.6.3.jar
(2.7 MB at 7.6 MB/s)
[INFO]
[INFO] BUILD FAILURE
[INFO]
[INFO] Total time: 6.841 s
[INFO] Finished at: 2019-12-03T23:18:14+03:00
[INFO]
[ERROR] Failed to execute goal on project cypher: Could not resolve
dependencies for project com.ldbc.snb:cypher:jar:0.4.0-SNAPSHOT: Could not
find artifact com.ldbc.snb:common:jar:0.4.0-SNAPSHOT in ldbc (
https://dl.bintray.com/ldbc/snb/) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ldbc/ldbc_snb_implementations/issues/92?email_source=notifications&email_token=AAKWPMPWEEB5WXQMH4SKBDLQW25SRA5CNFSM4JU57ZY2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H5ZLQLQ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKWPMMMOIRB7ZYWEXENGXDQW25SRANCNFSM4JU57ZYQ
.

I've tried just now to execute ./build.sh in the repo root and had almost the same failure:
...
Downloading from central: https://repo.maven.apache.org/maven2/junit/junit/4.12/junit-4.12.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar (45 kB at 524 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/junit/junit/4.12/junit-4.12.jar (315 kB at 2.8 MB/s)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for implementations 0.4.0-SNAPSHOT:
[INFO]
[INFO] implementations .................................... SUCCESS [  9.588 s]
[INFO] Common classes ..................................... FAILURE [  3.758 s]
[INFO] Cypher BI class .................................... SKIPPED
[INFO] PostgreSQL DB class ................................ SKIPPED
[INFO] SPARQL DB class .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  13.595 s
[INFO] Finished at: 2019-12-03T23:52:38+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project common: Could not resolve dependencies for project com.ldbc.snb:common:jar:0.4.0-SNAPSHOT: Could not find artifact com.ldbc.driver:jeeves:jar:0.4.0-SNAPSHOT in ldbc (https://dl.bintray.com/ldbc/snb/) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :common
The same result is in separate try with "mvn clean install -DskipTests" in the repo root.

Clone the dev branch of the driver and mvn install it.

szarnyasg, Thanks!

Clone the dev branch of the driver and mvn install it.

That helped.


Title is misleading

The title states Howto Add roles AND Receive them in the token. However, there is no explanation on how to receive the token.

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

ID: 9939fc33-8762-3104-eae0-08250c508100
Version Independent ID: 9c6fa664-df37-40aa-f46e-9e59f79ae215
Content: Add app roles and get them from a token - Microsoft identity platform
Content Source: articles/active-directory/develop/howto-add-app-roles-in-azure-ad-apps.md
Service: active-directory
Sub-service: develop
GitHub Login: @kalyankrishna1
Microsoft Alias: kkrishna

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

The following section has been added to the article in PR https://github.com/MicrosoftDocs/azure-docs-pr/pull/122531 and should appear on the live site after the next scheduled publish operation:

Receive roles in tokens
When the users assigned to the various app roles sign in to the application, their tokens will have their assigned roles in the roles claim.


[image_picker] preferredCameraDevice is ignored on Android (Native and Web)

Steps to reproduce

Install latest image_picker: ^0.8.5+3
Calling ImagePicker.pickImage opens camera in front mode, but I call it passing CameraDevice.rear.

Code example
await ImagePicker.pickImage(         source: ImageSource.camera,         imageQuality: 60,         preferredCameraDevice: CameraDevice.rear);

Hi @EmanueleVinci
From my understanding, you are mentioning front facing (CameraDevice.front) and would like to pass preferredCameraDevice: CameraDevice.front to pickImage(), right?

Hi @EmanueleVinci From my understanding, you are mentioning front facing (CameraDevice.front) and would like to pass preferredCameraDevice: CameraDevice.front to pickImage(), right?

It wasn't clear, sorry.

So confusing here.
The default preferredCameraDevice is CameraDevice.rear:
https://github.com/flutter/plugins/blob/40c991a710c5d458018753550275e5d8a578ddfa/packages/image_picker/image_picker/lib/image_picker.dart#L208
Future<XFile?> pickImage({
    required ImageSource source,
    double? maxWidth,
    double? maxHeight,
    int? imageQuality,
    CameraDevice preferredCameraDevice = CameraDevice.rear,
  })

As my understanding, you are trying to pass CameraDevice.front to preferredCameraDevice, right?
But when the camera opened, the rear camera opened instead of font camera, right?
Providing an image for more detail:

@huycozy No, I want to open the rear camera, but I can't. Doesn't matter what I pass, it always opens the front camera. I'm testing on a Galaxy s10 with Android 12

@EmanueleVinci, thanks for clarifying.
I found that there's an issue addressing the case you described #96114, and see https://github.com/flutter/flutter/issues/96114#issuecomment-1005435481 that explained the cause of this.
Forward information:
https://github.com/flutter/plugins/blob/6255da36c61438b96b23aabab09a163f8152c80f/packages/image_picker/image_picker/lib/image_picker.dart#L49

/// Defaults to [CameraDevice.rear]. Note that Android has no documented parameter for an intent to specify if
/// the front or rear camera should be opened, this function is not guaranteed
/// to work on an Android device.

Closing this issue as above explanation. Thanks!


Extension not working anymore

Hello Support,
I have Magento 2.3.4 version where I have installed this extension. It was working fine before but now it is not working anymore.
I havn't made any new changes.
Please check once
https://sandbox.marineparkdistribution.com/
Let me know if you need any thing from my side.
Thanks

Hi @Rajat9620, we only provide support for out of the box Magento installations. Can duplicate this issue on a clean Magento 2.3.4 installation? I'll reopen the ticket if this is indeed an OOTB issue.


ng build --prod fails with sourceMaps activated and pinch-zoom-js dependency

🐞 bug report
Affected Package
The issue is caused by package @angular-devkit/build-optimizer
Is this a regression?
Yes, this does not happen with Angular 9 and TypeScript 3.9
Description
Using the npm package pinch-zoom-js in an Angular 10 project generally works, except for when activating sourceMap for prod and running ng build --prod
🔬 Minimal Reproduction
I have created a repository with a setup where this problem occurs: https://github.com/cuddlecake/angular-pinch-zoom-sourcemap-bug
🔥 Exception or Error

ERROR in ./node_modules/pinch-zoom-js/src/pinch-zoom.js
Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):
Error: Debug Failure. False expression: Class was missing valueDeclaration -OR- non-class had no interface declarations
    at getOuterTypeParametersOfClassOrInterface (/home/cuddlecake/Development/pinch-zoom-sourcemaps/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:50187:22)
    at getDeclaredTypeOfClassOrInterface (/home/cuddlecake/Development/pinch-zoom-sourcemaps/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:50504:43)
    at createAnonymousTypeNode (/home/cuddlecake/Development/pinch-zoom-sourcemaps/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:46393:59)
    at typeToTypeNodeHelper (/home/cuddlecake/Development/pinch-zoom-sourcemaps/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:46324:28)
    at /home/cuddlecake/Development/pinch-zoom-sourcemaps/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:46101:106
    at withContext (/home/cuddlecake/Development/pinch-zoom-sourcemaps/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:46151:37)
    at Object.typeToTypeNode (/home/cuddlecake/Development/pinch-zoom-sourcemaps/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:46101:28)
    at typeToString (/home/cuddlecake/Development/pinch-zoom-sourcemaps/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:46065:40)
    at resolveCallExpression (/home/cuddlecake/Development/pinch-zoom-sourcemaps/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:67032:105)
    at resolveSignature (/home/cuddlecake/Development/pinch-zoom-sourcemaps/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:67399:28)
    at getResolvedSignature (/home/cuddlecake/Development/pinch-zoom-sourcemaps/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:67430:26)
    at checkCallExpression (/home/cuddlecake/Development/pinch-zoom-sourcemaps/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:67515:29)
    at checkExpressionWorker (/home/cuddlecake/Development/pinch-zoom-sourcemaps/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:70054:28)
    at checkExpression (/home/cuddlecake/Development/pinch-zoom-sourcemaps/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:69964:38)
    at checkPrefixUnaryExpression (/home/cuddlecake/Development/pinch-zoom-sourcemaps/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:68695:31)
    at checkExpressionWorker (/home/cuddlecake/Development/pinch-zoom-sourcemaps/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:70080:28)
 @ ./src/app/app.component.ts 2:0-38 9:16-25
 @ ./src/app/app.module.ts
 @ ./src/main.ts
 @ multi ./src/main.ts

🌍  Your Environment
Angular Version:

@angular-devkit/architect       0.1002.0
@angular-devkit/build-angular   0.1002.0
@angular-devkit/core            10.2.0
@angular-devkit/schematics      10.2.0
@angular/cli                    10.2.0
@schematics/angular             10.2.0
@schematics/update              0.1002.0
rxjs                            6.5.5
typescript                      4.0.5

This crashes deep in TypeScript when checking the isCloseTo(this.zoomFactor, 1) call inside of node_modules/pinch-zoom-js/src/pinch-zoom.js, which resolves to the isCloseTo declaration in a variable declaration list:
   /**
     * Pinch zoom
     * @param el
     * @param options
     * @constructor
     */
    var PinchZoom = function (el, options) {
            this.el = el;
            this.zoomFactor = 1;
            this.lastScale = 1;
            this.offset = {
                x: 0,
                y: 0
            };
            this.initialOffset = {
                x: 0,
                y: 0,
            };
            this.options = Object.assign({}, this.defaults, options);
            this.setupMarkup();
            this.bindEvents();
            this.update();

            // The image may already be loaded when PinchZoom is initialized,
            // and then the load event (which trigger update) will never fire.
            if (this.isImageLoaded(this.el)) {
              this.updateAspectRatio();
              this.setupOffsets();
            }

            this.enable();

        },
        sum = function (a, b) {
            return a + b;
        },
        isCloseTo = function (value, expected) {
            return value > expected - 0.01 && value < expected + 0.01;
        };

The issue here is that TS considers isCloseTo as a class constructor due to the @constructor JSDoc on the preceding variable declaration, in which case it reports an error that says that new is required (as it interprets it as a class). This is where the debug failure occurs.

This only crashes when source maps are enabled, as that triggers a slow-path that requires a full TS program which does type checking during emit. Without source maps there is a fast-path which only runs a transform, such that no type-checking occurs.

Although I believe this is ultimately a bug in TypeScript, maybe there's a way to work around this.

Update: the TS crash appears to have been fixed in 4.1 as it no longer reproduces: TS 4.1 Playground. Compare that to TS 4.0.5 which is crashing.

Thanks for the info. I reckon this issue can be closed.
I've opened a PR with pinchzoom to work around the bug.


Fix limited user cannot view himself's profile

backport #21211

Should we fix the incorrect line 1309 as well here?

Should we fix the incorrect line 1307 as well here?

Done.

Missing tests.


Correct problem with UNKNOWN READ/SEGV for incorrect PPD file

The problem occurres when an input PPD file contains a specific combination of
*PageSize keywords with incorrect types. In this case the PPD parser may cause
memory violation when one of the type is PPD_CUSTOM_PASSCODE,
PPD_CUSTOM_PASSWORD or PPD_CUSTOM_STRING.

@ppawliczek Please attach the problematic PPD file.

clusterfuzz-testcase-minimized-cups_ppdopen_fuzzer-5709920246431744.zip
The stack from SEGV:
in cfree /var/tmp/portage/cross-x86_64-cros-linux-gnu/glibc-2.27-r8/work/glibc-2.27/malloc/malloc.c:3098
in ppdClose (/usr/lib64/libcups.so.2+0xa0375)
in _ppdOpen (/usr/lib64/libcups.so.2+0xa7fc9)

[master dc00a7c3a] Fix some PPD parser issues discovered via fuzzing (Issue #5623, Issue #5624)
[master 8e048e4d3] Fix some PPD parser issues discovered via fuzzing (Issue #5623, Issue #5624)
[branch-2.2 d11af547d] Fix some PPD parser issues discovered via fuzzing (Issue #5623, Issue #5624)


Calling back the server time can cause an exception in the flow limiting mechanism

If the server time is adjusted to a previous time, the condition 'b. lastTick<currTick' will not occur, and 'b. availabilityTokens' will quickly drop to 0, and subsequent requests will be restricted from accessing

Pull Requests are welcome!


[Device Support Request] Abode / ClimaxTechnology Light, Humidity and Temperature Sensor Battery Level Support

Is your feature request related to a problem? Please describe.
The core functionality for light, humidity, and temperature of these sensors work great, however, the battery level reports as "Unknown", so this request is to specifically get that attribute working properly.
Describe the solution you'd like
Fix battery level reporting for the sensor.
{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=0, maximum_buffer_size=80, maximum_incoming_transfer_size=160, server_mask=0, maximum_outgoing_transfer_size=160, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0106",
      "in_clusters": [
        "0x0000",
        "0x0001",
        "0x0003",
        "0x0400",
        "0x0402",
        "0x0405"
      ],
      "out_clusters": [
        "0x0000",
        "0x0003"
      ]
    }
  },
  "manufacturer": "ClimaxTechnology",
  "model": "LMHT_<IP_ADDRESS>TC",
  "class": "zigpy.device.Device"
}

Additional context
Here's the Abode's documentation: https://help.goabode.com/hc/en-us/articles/360000500472-Abode-Light-Humidity-and-Temperature-Sensor-Guide
Here's the ClimateTechnology manual: https://usermanual.wiki/Climax-Technology-Co/LMHTZB/html
Here's a screenshot of how the device currently shows up after being configured:

This is still an issue in Home Assistant 2022.10.1


arch: arm: Set lpc55s69 image type in cortex-m vector table

The secure boot rom in the lpc55s69 soc uses a reserved entry in the
cm33 vector table to determine the application image type and
enable/disable a preset tz-m configuration. Zero out this entry in the
vector table to set the image type as a plain image (not signed or CRC)
and disable the preset tz-m configuration. Otherwise, the address of
z_arm_reserved can potentially cause an invalid image type that can't
boot.
Eventually we will want to support other image types and write non-zero
values to this entry in the vector table, however we don't yet have
zephyr infrastructure in place to generate these types of images.
Therefore we don't introduce any Kconfig options to configure the value.
Signed-off-by: Maureen Helm<EMAIL_ADDRESS>

Although this should be OK and safe to do, it does not look ideal that SOC-specific conditionals are present in this core ARM assembly file.
If the secure boot (i.e. another image) needs to read a special value in this address, this should be taken care of by the image building process. For example, after Zephyr is built, some script locates the address of the vector table in the generated .hex and overwrites this particular reserved entry with 0x0, or with whatever value it is needed.
Such an approach would be the right thing to do, because the presence of a special value in this address is not a requirement at all for this Zephyr image to run properly, but a requirement for a "parent" image.

I think that is overkill, we already have cases of SoC specific ifdef's in the arch code.  I don't see why it being asm vs c would make any difference.  We have things like CONFIG_CPU_HAS_NRF_IDAU and CONFIG_CPU_HAS_NXP_MPU.

I think that is overkill, we already have cases of SoC specific ifdef's in the arch code. I don't see why it being asm vs c would make any difference. We have things like CONFIG_CPU_HAS_NRF_IDAU and CONFIG_CPU_HAS_NXP_MPU already in arch/arm/core/aarch32/cortex_m

No, we should in fact do better with cleaning up the ARCH code and ideally remove everything that is not generic to ARM. That is:

remove the single occurrence of CPU_HAS_NXP_MPU from fault.c and place the fault handling function somewhere in soc/arm/nxp
remove the single occurence of CPU_HAS_NRF_IDAU from the arm linker script and include this as a linker snippet from somewhere in soc/arm/nrf

Also: your comparison is not fair because those Kconfigs are needed for the build itself to work, not for some other image that happens to co-exist with Zephyr. Zephyr core ARCH code cannot be aware of all the requirements of other co-existing images.
I could agree with adding 0 unconditionally, in the reserved ARM exception entries, if this solves the current problem. This would be a clean solution at least.

@MaureenHelm do you have a reference in the LPC55S69 manual for this feature?

Although this should be OK and safe to do, it does not look ideal that SOC-specific conditionals are present in this core ARM assembly file.
If the secure boot (i.e. another image) needs to read a special value in this address, this should be taken care of by the image building process. For example, after Zephyr is built, some script locates the address of the vector table in the generated .hex and overwrites this particular reserved entry with 0x0, or with whatever value it is needed.
Such an approach would be the right thing to do, because the presence of a special value in this address is not a requirement at all for this Zephyr image to run properly, but a requirement for a "parent" image.

This "other image" (secure boot rom) is in hardware and taped out as part of the chip. The special value is required to run "this" image (i.e., the zephyr image). I agree it's not ideal to put an soc-specific conditional in this part of the code, and at some point we will need to integrate a script into the build process that inserts nonzero values into special reserved entries in the vector table. This will be needed to support signed images, but it is nontrivial work and for now I'd at least like to reliably support plain images with this change. Without it, some applications will mysteriously fail, as I have discovered while debugging #23119.

do you have a reference in the LPC55S69 manual for this feature?

See chapter 7 and tables 183-184 (page 151) in the LPC55S69 Reference Manual

The special value is required to run "this" image (i.e., the zephyr image).

Maureen, what I meant here is that Zephyr does not need any special value written here, to run properly, in the sense that: this .text address is neither read, written, nor instruction-fetched, by the Zephyr image, itself.

opened #24012 for rfc

Closing this since we merged #24012


📝 Add generated docs in MD

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


docs: Added cordova-android@9 row for supported API levels 22-29

Platforms affected
Motivation and Context

Documentation for https://github.com/apache/cordova-android/pull/915
Description

Testing

Checklist

[ ] I've run the tests to see all new and existing tests pass
[ ] I added automated test coverage as appropriate for this change
[ ] Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
[ ] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
[ ] I've updated the documentation if necessary

Only the dev folder has been changed, so I think it's okay... but I'm not familiar with the entire deployment process of the docs.
If merging makes it difficult to publish new updates unrelated to cordova-android@9 stuff, then it makes sense to wait before merging.


Full docs of the OPC UA public beta release #1

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


How to start nvim without session when autoread is true?

Contributing guidelines

[X] I have read CONTRIBUTING.md
[X] I have read CODE_OF_CONDUCT.md

Module(s)
mini.sessions
Description
I'd like to start with session by default but to have an option to skip it without loading a file.
For example
nvim "+let g:mini_sessions_enabled = v:false"
It can also serve if one decides to condition session loading in init
Or maybe I missed the existing option?))

This can already be done two ways (well, one and a half):

All "runtime" options in every 'mini.nvim' module can be modified manually after setup to take effect. So in this case the most suitable way of doing this is to use nvim -c 'lua MiniSessions.config.autoread = false'.
Any 'mini.nvim' module have the same disabling functionality. In this case you can do nvim -c 'let b:minisessions_disable=v:true'. That is only a half-solution because it will disable mini.sessions in the first loaded buffer, requiring resetting this variable or creating new buffer in order to use 'mini.sessions'.

I think this is exactly the type of information suitable for 'wiki'. So I created new page there. Thanks for the question!

Cool, thanks. I'll try it


Array Chunk

Directions
Given an array and chunk size, divide the array into many where the subarray is of length size .Make use of functions and methods where necessory
You can code this with any language of you choice!
Examples
chunk([ 1, 2, 3, 4],  2) ----->  [ [ 1, 2 ], [ 3, 4 ] ]
chunk([ 1, 2, 3, 4, 5 ],  2) ----->  [ [ 1, 2 ], [ 3, 4 ], [5] ]
chunk([ 1, 2, 3, 4, 5, 6, 7, 8 ],  3) ----->  [ [ 1, 2, 3], [ 4, 5, 6 ], [7, 8] ]
chunk([ 1, 2, 3, 4, 5 ],  4) ----->  [ [ 1, 2 , 3, 4 ], [5] ]
chunk([ 1, 2, 3, 4, 5 ],  10) ----->  [ 1, 2 , 3, 4, 5 ]

please assign me

Assign me please

Done @Blanco237


Make it possible to host PowerShell in a custom assembly load context

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
When Microsoft.PowerShell.SDK is run from a non-default ALC in .NET, Import-Module fails silently.
You can reproduce this with the following example (.NET 6 Console project). It works only if you comment out #define USE_PLUGIN.
#define USE_PLUGIN

using System.Collections.ObjectModel;
using System.Linq;
using System.Management.Automation;
using System.Reflection;
using System.Runtime.Loader;

#if USE_PLUGIN
    var pluginAlc = new PluginLoadContext(Assembly.GetExecutingAssembly().Location);
    var pluginAssem = pluginAlc.LoadFromAssemblyName(Assembly.GetExecutingAssembly().GetName());
    pluginAssem.GetType(nameof(Test)).GetMethod(nameof(Test.Run)).Invoke(null, null);
#else
    Test.Run();
#endif

Console.ReadLine();

public class Test
{
	public static void Run()
	{
		var ps = PowerShell.Create();
		ps.AddCommand("Import-Module").AddArgument(@"International");
		ps.AddScript("Get-WinHomeLocation");

		Collection<PSObject> result = ps.Invoke();

		if (ps.HadErrors)
			Console.WriteLine(ps.Streams.Error[0].ToString());
		else
			Console.WriteLine("Success!");

		foreach (PSObject element in result)
		{
			Console.WriteLine(element);
			foreach (var prop in element.Properties.Take(10))
				Console.WriteLine("    " + prop.Name + "=" + prop.Value);
		}
		Console.WriteLine();
	}
}

// Code from https://docs.microsoft.com/en-us/dotnet/core/tutorials/creating-app-with-plugin-support
class PluginLoadContext : AssemblyLoadContext
{
	private AssemblyDependencyResolver _resolver;

	public PluginLoadContext(string pluginPath)
	{
		_resolver = new AssemblyDependencyResolver(pluginPath);
	}

	protected override Assembly Load(AssemblyName assemblyName)
	{
		string assemblyPath = _resolver.ResolveAssemblyToPath(assemblyName);
		if (assemblyPath != null)
			return LoadFromAssemblyPath(assemblyPath);
		return null;
	}

	protected override IntPtr LoadUnmanagedDll(string unmanagedDllName)
	{
		string libraryPath = _resolver.ResolveUnmanagedDllToPath(unmanagedDllName);
		if (libraryPath != null)
			return LoadUnmanagedDllFromPath(libraryPath);
		return IntPtr.Zero;
	}
}

Expected behavior
The program should print "Success" whether or not the USE_PLUGIN symbol is defined.

Actual behavior
When the USE_PLUGIN symbol is defined, the program displays the following error:

The term 'Get-WinHomeLocation' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

A possible reason for it misbehaving is that some of the same PowerShell assemblies end up being loaded into both the custom ALC and the default ALC. You can verify this with the following code:

Console.WriteLine("PowerShell assemblies loaded into plugin ALC:");
EnumeratePowerShellAssemblies(pluginAlc);

Console.WriteLine("PowerShell assemblies loaded into default ALC:");
EnumeratePowerShellAssemblies(AssemblyLoadContext.Default);

void EnumeratePowerShellAssemblies (AssemblyLoadContext alc)
{
    foreach (var a in alc.Assemblies)
        if (!a.IsDynamic && a.GetName().Name.StartsWith("Microsoft.PowerShell."))
            Console.WriteLine("    " + a.Location);
}

### Error details

```console
The term 'Get-WinHomeLocation' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Environment data
[PSVerion] 7.2.4
[OS] "Microsoft Windows 10.0.22000"
[WSManStackVersion] 3.0
[PSEdition] Core
[SerializationVersion] <IP_ADDRESS>
[PSRemotingProtocolVersion] 2.3
[GitCommitId] 7.2.4

Visuals
No response

Currently, hosting PowerShell in a custom ALC is not supported, because it tightly coupled with the default assembly load context in many places, for example,

module loading uses Assembly.LoadFrom which implicitly loads an assembly into the default assembly load context.
Add-Type also depends on Assembly.LoadFrom, as well as AssemblyLoadContext.Default.LoadFromStream.
PowerShell class also depends on default load context.
the helper resolver to load an assembly from GAC is registered with the default assembly load context.

Regarding the International module used in this repro, its assembly resides in GAC, so the helper resolver is used and load the assembly into the default load context. That's why you see some PowerShell assemblies get loaded in the default load context.

I appreciate your explanation, but would like something clarified. Are you saying that this is this an acceptable or recommended way for a library to load assemblies under .NET Core and .NET 5+? Or are you saying that fixing it would be too much work (or too potentially disruptive?)
As I understand, correct standard practice is to load assemblies into the same ALC as the requesting assembly:
var myAlc = AssemblyLoadContext.GetLoadContext (typeof (<typeInMyAssembly>).Assembly);
myAlc.LoadFromAssemblyName(...)
// or myAlc.LoadFromAssemblyPath(...) if you need to specify a path

This mimics the behavior of how assemblies implicitly load in  .NET Core and .NET 5+.
Hard-coding to the default ALC saves a line of code, but is reliable only if the requesting assembly is also in the default ALC. Otherwise it introduces the possibility of the assembly loading into both the default ALC and requesting ALC. And that almost never ends well.

Are you saying that this is this an acceptable or recommended way for a library to load assemblies under .NET Core and .NET 5+? Or are you saying that fixing it would be too much work (or too potentially disruptive?)

It's not recommended to load PowerShell in a custom assembly load context as of today.
Fixing it is possible but would require non-trivial work. It's not just how loading assembly is handled in PowerShell, but also how types are resolved.

The issue has not been resolved yet, please investigate further. The problem regarding hosting PowerShell in a custom assembly load context is still persisting and is a blocker for the project. Despite the lack of activity in the past 6 months, this matter requires attention and resolution.


replace 'shortid' with 'uuid' / 'react-native-uuid'

Use 'uuid' package in place of 'shortid', and switch to 'react-native-uuid' on react-native.
Fixes a problem in Windows where react-native would not load the 'crypto' package.
See este/este#1033

Thank you very much. I have a question, why react-native in package.json? You can require platform specific dependencies in native/main and pass it to configureStore https://github.com/este/este/blob/a980dded791afc8e8e01dd260cc85733a783808b/src/native/main.js#L33 Do you have a specific reason to use package.json?
Also, are you sure uuid doesn't work in React Native? I don't see any improvement in https://github.com/eugenehp/react-native-uuid There is no documentation, nothing. Thank you!

The 'uuid' package works in React Native when running from Linux, but does not work when running from Windows.  'uuid' uses the the node core package 'crypto', which for some reason is not provided by the react packager when running in Windows.  This is the same problem that the 'shortid' package has (issue #1033).  'react-native-uuid' uses 'crypto-js' instead.
I'll try the platform dependency injection when I get back to my computer.  I used the package.json method because it was simple and straightforward, I hadn't looked too closely at the dependency injection yet (pretty new to Este and React Native), and it definitely fixed my problem (without changing too much).

Thank you. I think we should send the uuid a pull request since it's definitely better to depend on one package only. Meanwhile, your proposed solution is perfect.
Check Este injectMiddleware, it's really simple and convenient.

Also, please update readme. Thank you :-)

Perfect. Thank you very much!


Update optimism submodule version to d2263b1

Description
Sync optimism submodule for fetching devnet config change: https://github.com/ethereum-optimism/optimism/pull/10182
Tweaked deployment scripts for

Upstream refactoring: https://github.com/ethereum-optimism/optimism/pull/10161
Dispute game clock extension: https://github.com/ethereum-optimism/optimism/pull/10182

Tweaked CIs for

Pin pnpm: https://github.com/ethereum-optimism/optimism/pull/10179

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 70.39%.  Consider uploading reports for the commit 2fc7f42 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #58   +/-   ##
=======================================
  Coverage   70.39%   70.39%
=======================================
  Files          19       19
  Lines        2810     2810
=======================================
  Hits         1978     1978
  Misses        743      743
  Partials       89       89

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


Use forEach instead of .map in promise impl (cleanup)

@lhorie Ping

@lhorie Ping

Fixed in #828


sh: python: command not found when following along with ml backend tutorial

I am following the label studio ml backend tutorial and when I try to start the ml backend it pulls up this error
sh: python: command not found
I have python3 installed and it's aliased as python. Which is confusing me a little bit.

Sorry, it's very unclear what command exactly and where you try to run commands..

I am following the label studio ml backend tutorial and when I try to start the ml backend it pulls up this error sh: python: command not found
I have python3 installed and it's aliased as python. Which is confusing me a little bit.

Same problem. How did you fix it?

Better to use docker-compose - it has all the environment ML backend needs right out of the box.

I ran into the same problem trying to run label-studio-ml start:
label-studio-ml start coco-detector --with \
config_file=mmdetection/configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py \
checkpoint_file=/absolute/path/to/downloaded/checkpoint.pth

The output is:
sh: 1: python: not found
in my bashrc I have:
alias python=python3

I fix  it  using "ln -s /usr/bin/python3.9 /usr/bin/python"


Ansible refactor rhel7 #2

This PR brings the most recent work on Piecewise to the master branch, including:

nearly all configurable values set in a global config file
deployable to Debian 8 machines (Rhel 7 still in-progress)

Bringing the code to this point before moving on will allow us to continue work with new deployments (such as Clearwater County, ID and internal OTI projects) while continuing work toward #98 and beyond.

This change is

Initial reviewer feedback is that this PR is too big. Will close and re-issue as a series of PRs.


Treat single column, unaliased selection expressions as SELECT VALUE

When a single projection expression appears in the SELECT clause, and that expression is not aliased, we should treat it equivalent to a SELECT VALUE, and not build a singleton object with "0" and the expression. This just confuses the frontend and it's not necessary in a system that can return sets of raw values (without any decoration in an object or array).

So, I agree with this in principle. I’ve made the changes and my one concern is with Mongo’s inability to return non-Map results. So, until the fallback evaluator is in place, Mongo is going to be returning { "value": <result> } instead of just <result>. And that at least makes regression tests a bit more of a pain.
So, if anyone has a solution … it’d be helpful.

@sellout Sounds like you solved this for now (magical unwrap 😄 ).


Unittest

This should be correct now

looking good!  almost there!

good work so far.  keep it up!


Is there a research paper for this repository?

Hello, I'm wondering if there is any research paper or academic publication associated with this repository.
If so, could you please share the reference?

There are currently no publicly available papers.


[material-ui] Do not generate CSS variables for a custom spacing function

closes #43378
Before: I was too optimistic that the custom spacing function from users will result will used with just number or string (see the test cases), so when creating a theme with cssVariables: true, it tries to create a spacing variable and use multiply with the user's input like this calc(var(--mui-spacing) * 2).
However, this is a breaking change for a case like #43378 if the user provide a custom value when using theme.spacing('xs').
After: If the custom spacing is a function, do not create a spacing variable and do not alter the function.

[x] I have followed (at least) the PR section of the contributing guide.

FYI this resolves our issue with CSS Vars 🎉


feat(dart-musl): download proper dart-sass for musl

dart-sass is incompatible with MUSL-based Linux, only supporting the standard GNU/glibc version. However there are other third party alternatives which can be used, such as dart-musl.
To accommodate this, if the MUSL target_env is found, the SASS download URL is changed to that of the appropriate dart-musl binary, based on the architecture for which the app is compiled.
Closes: #144

Thanks!


chore: v0.9.38

based on #174.
Notable changes:

required to install protobuf compiler
sudo apt-get install protobuf-compiler
for math repo, required to install m4
sudo apt-get install m4
pallet stuff renamed

Event → RuntimeEvent
From + IsType<::RuntimeEvent>;
Origin → RuntimeOrigin
Call → RuntimeCall

extrinsics need call_index ( otherwise depreated warning )
#[pallet::call_index(0)]
orml traits
OnDust trait move into submodule called currency
NFT pallet
InspectEnumerable trait changed - needs closer look to verify f reimplemented correcy.
pallet currencies
check if changes in orml currencies to ensure no bugs fixed ?
orml tokens
callbacks OnDust,OnNewAccoutn and OnKilledAccount combined into one CurrencyHooks.

we should make sure to include https://github.com/galacticcouncil/warehouse/pull/206 (just merged)


Fix warnings about double definition of properties in OAuth classes

After #7011, I have seen these warnings:

Concrete\Core\Entity\OAuth\AccessToken
and
League\OAuth2\Server\Entities\Traits\EntityTrait
define the same property ($identifier) in the composition of
Concrete\Core\Entity\OAuth\AccessToken
This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed
Concrete\Core\Entity\OAuth\AuthCode
and
League\OAuth2\Server\Entities\Traits\EntityTrait
define the same property ($identifier) in the composition of
Concrete\Core\Entity\OAuth\AuthCode
This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed
Concrete\Core\Entity\OAuth\Client
and
League\OAuth2\Server\Entities\Traits\EntityTrait
define the same property ($identifier) in the composition of
Concrete\Core\Entity\OAuth\Client
This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed
Concrete\Core\Entity\OAuth\Client
and
League\OAuth2\Server\Entities\Traits\ClientTrait
define the same property ($name) in the composition of
Concrete\Core\Entity\OAuth\Client
This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed
Concrete\Core\Entity\OAuth\Client
and
League\OAuth2\Server\Entities\Traits\ClientTrait
define the same property ($redirectUri) in the composition of
Concrete\Core\Entity\OAuth\Client
This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed
Concrete\Core\Entity\OAuth\RefreshToken
and
League\OAuth2\Server\Entities\Traits\RefreshTokenTrait
define the same property ($accessToken) in the composition of
Concrete\Core\Entity\OAuth\RefreshToken
This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed
Concrete\Core\Entity\OAuth\RefreshToken
and
League\OAuth2\Server\Entities\Traits\RefreshTokenTrait
define the same property ($expiryDateTime) in the composition of
Concrete\Core\Entity\OAuth\RefreshToken
This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed
Concrete\Core\Entity\OAuth\RefreshToken
and
League\OAuth2\Server\Entities\Traits\EntityTrait
define the same property ($identifier) in the composition of
Concrete\Core\Entity\OAuth\RefreshToken
This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed
Concrete\Core\Entity\OAuth\Scope``   and League\OAuth2\Server\Entities\Traits\EntityTraitdefine the same property ($identifier) in the composition ofConcrete\Core\Entity\OAuth\Scope`
This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed

The reason of these warnings is that the League traits define the same properties as the concrete5 classes.
IMHO the only solution is to move the code of the traits to the concrete5 classes...

PS: another solution would be to introduce new intermediate classes - see https://stackoverflow.com/a/38558480/1621862

I wasn't aware of that, much better! I'll reopen another pull request.

Well, it seems that we can't override @Id and @GeneratedValue - see https://github.com/mlocati/concrete5/blob/e8cabfe032affc011e9a4353788039a597d0660f/concrete/src/Entity/OAuth/AccessToken.php#L24 and https://github.com/doctrine/doctrine2/issues/4131


[BUG] Rancher-provisioned vSphere node stuck at "Waiting to register with Kubernetes"

Rancher Server Setup

Rancher version: 2.8.2
Installation option (Docker install/Helm Chart): Helm

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): RKE1 v1.26.9

Proxy/Cert Details: Ingress for rancher.

Information about the Cluster

Kubernetes version: 1.25.14
Cluster Type (Local/Downstream):

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider): Imported

User Information

What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom)

If custom, define the set of permissions: Admin

Describe the bug
I'm trying to set up vSphere provisioning of nodes for a downstream cluster. Although the Rancher nodes and the app (downstream) cluster are in different subnets, the traffic between them is wide open. The app cluster currently has 10 nodes (3 etcd/cp, 7 worker-only). I used the Terraform provider to create a node template, node pool, etc., using the same VM template as for all the other vSphere-based nodes. It was all created correctly in Rancher, the VM gets provisioned, Docker gets installed, the rancher-agent spins up, and then... nothing. There are no errors server-side or agent-side, and the node just sits at Waiting to register with Kubernetes forever.
To Reproduce
I'm not sure, because I'm not sure what's going wrong, exactly.
Result
Expected Result
The node should register with the cluster.
Screenshots
I can provide whatever screenshots would be useful. I'm just not sure what to provide.
Additional context
It might be related or unrelated, but when I delete the node in the node pool, Rancher cleans up but the VM is never shut down/deleted in vSphere. I thought this was fixed in 2.5.x.

I guess the Rancher logs do occasionally contain:
2024/06/17 16:38:00 [DEBUG] Failed to get node for machine [m-lx5x4], preparing to delete

That's the machine ID of the node that I'm trying to get to join the cluster.

If it helps, here is the (redacted) rancher-agent log.
INFO: Arguments: --server https://rancher.<domain> --token REDACTED --ca-checksum e9bc407434efb1aaf9a3ddbb1155bc767718e444cdc2521a5311243102ec9798 -r -n m-92tbq
INFO: Environment: CATTLE_ADDRESS=<IP_ADDRESS> CATTLE_AGENT_CONNECT=true CATTLE_INTERNAL_ADDRESS= CATTLE_NODE_NAME=m-92tbq CATTLE_RANCHER_WEBHOOK_VERSION=103.0.1+up0.4.2 CATTLE_SERVER=https://rancher.<domain> CATTLE_TOKEN=REDACTED
INFO: Using resolv.conf: nameserver <IP_ADDRESS> options edns0 trust-ad search crl.local
WARN: Loopback address found in /etc/resolv.conf, please refer to the documentation how to configure your cluster to resolve DNS properly
INFO: https://rancher.<domain>/ping is accessible
INFO: rancher.<domain> resolves to <IP_ADDRESS>
INFO: Value from https://rancher.<domain>/v3/settings/cacerts is an x509 certificate
time="2024-06-17T18:35:18Z" level=info msg="Listening on /tmp/log.sock"
time="2024-06-17T18:35:18Z" level=info msg="Rancher agent version v2.8.2 is starting"
time="2024-06-17T18:35:18Z" level=info msg="Option worker=false"
time="2024-06-17T18:35:18Z" level=info msg="Option requestedHostname=m-92tbq"
time="2024-06-17T18:35:18Z" level=info msg="Option dockerInfo={d68df0f8-1d98-473f-a0c8-7c8e2fd6ff42 1 1 0 0 1 overlay2 [[Backing Filesystem extfs] [Supports d_type true] [Using metacopy false] [Native Overlay Diff true] [userxattr false]] [] {[local] [bridge host ipvlan macvlan null overlay] [] [awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog]} true false true true true true true true true true true true false 31 true 41 2024-06-17T18:35:18.283447585Z json-file cgroupfs 1 0 5.4.0-182-generic Ubuntu 20.04.6 LTS 20.04 linux x86_64 https://index.docker.io/v1/ 0xc00037b500 24<PHONE_NUMBER>6 [] /var/lib/docker    app-cluster1 [provider=vmwarevsphere] false 24.0.9   map[io.containerd.runc.v2:{runc [] <nil>} runc:{runc [] <nil>}] runc {  inactive false  [] 0 0 <nil> []} false  docker-init {d2d58213f83a351ca8f528a95fbd145f5654e957 d2d58213f83a351ca8f528a95fbd145f5654e957} {v1.1.12-0-g51d5e94 v1.1.12-0-g51d5e94} {de40ad0 de40ad0} [name=apparmor name=seccomp,profile=builtin]  [] [WARNING: No swap limit support]}"
time="2024-06-17T18:35:18Z" level=info msg="Option customConfig=map[address:<IP_ADDRESS> internalAddress: label:map[] roles:[] taints:[]]"
time="2024-06-17T18:35:18Z" level=info msg="Option etcd=false"
time="2024-06-17T18:35:18Z" level=info msg="Option controlPlane=false"
time="2024-06-17T18:35:18Z" level=info msg="Connecting to wss://rancher.<domain>/v3/connect with token starting with <REDACTED>"
time="2024-06-17T18:35:18Z" level=info msg="Connecting to proxy" url="wss://rancher.<domain>/v3/connect"
time="2024-06-17T18:35:18Z" level=info msg="Starting plan monitor, checking every 120 seconds"

I'm not sure why all three of the etcd/controlPlane/worker options are set to false... the node template specifies worker to be true.
apiVersion: management.cattle.io/v3
kind: Node
<snip>
spec:
  controlPlane: false
  customConfig: null
  desiredNodeTaints: null
  displayName: ''
  etcd: false
  imported: false
  internalNodeSpec: {}
  metadataUpdate:
    annotations: {}
    labels: {}
  nodePoolName: c-p8tjx:devops-worker
  nodeTemplateName: cattle-global-nt:nt-8s9mx
  requestedHostname: app-cluster1
  worker: true

I've pretty much ruled out issues on the node and network... deleting the node pool but keeping the VM around, and then adding it with rke up adds it to the cluster without a problem.


fix: 修复样式错误

如题

Codecov Report
Patch coverage: 100.00% and project coverage change: -0.02% :warning:

Comparison is base (1870db3) 87.43% compared to head (02ff8b3) 87.41%.
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #92      +/-   ##
==========================================
- Coverage   87.43%   87.41%   -0.02%
==========================================
  Files         339      339
  Lines       21855    21824      -31
  Branches      981      979       -2
==========================================
- Hits        19109    19078      -31
  Misses       2746     2746

Files Changed
Coverage Δ

src/FieldTitle/demos/description.tsx
100.00% <ø> (ø)

src/FieldTitle/index.tsx
100.00% <100.00%> (ø)

src/FieldTitle/style.ts
100.00% <100.00%> (ø)

src/SortableTree/container/index.tsx
100.00% <100.00%> (ø)

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

@ONLY-yours 合一个


one PC, 4 kinect  sensor,  The maximum number of body tracking supported?

I have 4 kinect sensor, use body tracking in Unity, now i can tracking 6 body . But I want to be able to tracking 15-20 body, what should i do? thanks!

You can run each Kinect sensor on separate networked computers and use multiplayer HLAPI to handle merging all of the tracked skeletons. Note that you would then need to ensure that each cameras covered area does not overlap otherwise you may get duplicated skeletons. Additionally each camera zone will still only be able to track up to 6 skeletons. This is probably the simplest way to increase tracked bodies

You can run each Kinect sensor on separate networked computers and use multiplayer HLAPI to handle merging all of the tracked skeletons. Note that you would then need to ensure that each cameras covered area does not overlap otherwise you may get duplicated skeletons. Additionally each camera zone will still only be able to track up to 6 skeletons. This is probably the simplest way to increase tracked bodies

thanks for your reply！
Are there other ways to increase body tracking count？

thanks for your reply！
Are there other ways to increase body tracking count？


Fix ssl3_do_write() to correctly handle retries

A BIO is documented to return -1 on write retry - but sometimes they return
0. ssl3_do_write() was incorrectly handling a 0 response.
Fixes https://github.com/openssl/openssl/issues/21422

Actually this is only really a problem in the 3.1/3.0 branches. By accident of the record layer refactor this doesn't actually impact the master branch. But the code is still wrong so I think we should apply the fix here anyway.

Ping for second review?

and merged.


fix: do not allow deprecated methods

Our eslint config checks to make sure we don't use deprecated APIs, and throws in that case.  Our tslint config does not.  This bit us in real life, where an assert.equal was allowed to get checked in, and it didn't properly check strictness.

Codecov Report

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

@@           Coverage Diff           @@
##           master     #233   +/-   ##
=======================================
  Coverage   98.52%   98.52%
=======================================
  Files          12       12
  Lines         814      814
  Branches       65       65
=======================================
  Hits          802      802
  Misses         12       12

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 7c0c107...62c8470. Read the comment docs.


Switch from i18n to intl

fixes #137

I think I addressed all the changes, I squashed the commits down as well.

Thanks a lot!


[BE] Filter by seen/not_seen not working

The endpoint is functioning as expected in swagger. However, in the 'seen' request, it's blending the 'not seen' with the 'seen'."


[Feature] - Nested sql generation and mapping (in dev)

Hi !
Initial problem :
Support nested mapping & query generation :
First part : Query Generation
The method did not support generic type parsing on a list.
This modification takes into account the properties of type list and comes to analyze the generic type by doing it by recursion on this same extension.
We are careful not to add the same properties so as not to have a key exception
-- MSSQL !
Unit test :
    [Fact]
    public static void SelectByIdJoinNested()
    {
        var generator = new SqlGenerator<ProviderOrder>(_sqlConnector, true);
        var sqlQuery = generator.GetSelectById(1, null, q => q.ProviderOrderLines, q => q.ProviderOrderLines.First().ProviderOrderStatus);
        Assert.Equal("SELECT [S_Cfo].[CommandeFournisseur_CoFo].[CoFo_ID], [CFLI].[CfLi_ID], [CFLI].[CoFo_ID], [CFLS].[CfLs_ID], [CFLS].[CfLi_ID] FROM [S_Cfo].[CommandeFournisseur_CoFo] INNER JOIN [S_Cfo.CommandeFournisseurLignes_CfLi] AS [CFLI] ON [CommandeFournisseur_CoFo].[CoFo_ID] = [CFLI].[CoFo_ID] INNER JOIN [S_Cfo.CommandeFournisseurLignesStatut_CfLs] AS [CFLS] ON [CommandeFournisseurLignes_CfLi].[CfLi_ID] = [CFLS].[CfLi_ID] WHERE [S_Cfo].[CommandeFournisseur_CoFo].[CoFo_ID] = @CoFo_ID", sqlQuery.GetSql());
    }

    public static List<PropertyInfo> FindClassProperties<TEntity>(this Type objectType, List<PropertyInfo> allProperties)
    {
        if (_reflectionPropertyCache.TryGetValue(objectType, out var cachedEntry))
        {
            allProperties.AddRange(cachedEntry.Where(c => !allProperties.Any(a => a.Name == c.Name)));
            return allProperties;
        }

        allProperties.AddRange(objectType.GetProperties()
            .OrderByDescending(x => x.GetCustomAttribute<IdentityAttribute>() != null)
            .ThenByDescending(x => x.GetCustomAttribute<KeyAttribute>() != null)
            .ThenBy(p => p.GetCustomAttributes<ColumnAttribute>()
                .Select(a => a.Order)
                .DefaultIfEmpty(int.MaxValue)
                .FirstOrDefault()).Where(o => !allProperties.Any(a => a.Name == o.Name)));

        _reflectionPropertyCache.TryAdd(objectType, allProperties.ToArray());
        foreach (var pi in allProperties)
        {
            var type = pi.PropertyType;
            if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(List<>))
            {
                type = type.GetGenericArguments()[0];
                return type.FindClassProperties<TEntity>(allProperties);
            }
        }
        return allProperties;
    }

Mapping test :
[Table(name: "CommandeFournisseur_CoFo", Schema = "S_Cfo")]
public class ProviderOrder
{
    [Key, Identity]
    public int CoFo_ID { get; set; }

    [InnerJoin("S_Cfo.CommandeFournisseurLignes_CfLi", "CoFo_ID", "CoFo_ID", TableAlias = "CFLI")]
    public List<ProviderOrderLine> ProviderOrderLines { get; set; }
}

[Table(name: "CommandeFournisseurLignes_CfLi", Schema = "S_Cfo")]
public class ProviderOrderLine
{
    [Key, Identity]
    public int CfLi_ID { get; set; }

    public int CoFo_ID { get; set; }

    [InnerJoin("S_Cfo.CommandeFournisseurLignesStatut_CfLs", "CfLi_ID", "CfLi_ID", TableAlias = "CFLS")]
    public ProviderOrderStatus ProviderOrderStatus { get; set; }
}

[Table(name: "CommandeFournisseurLignesStatut_CfLs", Schema = "S_Cfo")]
public class ProviderOrderStatus
{
    [Key, Identity]
    public int CfLs_ID { get; set; }

    public int CfLi_ID { get; set; }
}

@MehdiKacim Sql Generation is not a problem here. Problem with Mapping.

Okey !! Sorry ! I'm confuse !
Nested SQL genaration was already supported ? In this case : how ?
I'm looking for nested mapping at morning.
Thanks for your review.
I'ts draft, I'm going clean UP code before merge request
Mehdi.

@MehdiKacim Sql Generation is not a problem here for this feature. Problem with Mapping.

Okey !! Sorry ! I'm confuse !
Nested SQL genaration was already supported ? In this case : how ?
I'm looking for nested mapping at morning.
Thanks for your review.
I'ts draft, I'm going clean UP code before merge request
Mehdi.

@MehdiKacim Nested SQL generation no sense without Mapping. I worked with Nested Mapping 4-5 years ago and didn't merge.

@MehdiKacim I just expect SQL Generation + Mapping in PR and jumped for review, sorry if misunderstanding. You can keep it as Draft or re-open later with Mapping logic.


Add .editorconfig

Would it be ok to add a .editorconfig file to make the code style more consistent?

Just added the default .editorconfig for .NET


Feature Request: 'Add to Test Set' Functionality in Playground

Is your feature request related to a problem? Please describe.
We've noticed a common use case where users would like to augment their test sets with data points from the playground. As an example, while developing a summarization application, manually creating a test set can prove to be challenging. The current workflow requires users to individually visit each article in the test set, read it, write a summary, and add it as ground truth. Alternatively, a more streamlined process would be to initially develop the LLM app for summarization, experiment with different prompts, and then use an 'add to test set' option to include the output of your LLM app. This output could then be minimally edited before it's added to the test set.
Describe the solution you'd like
We propose the addition of an 'add to test set' button within the data point boxes (input/output) in the playground. On clicking this button, a modal or a drawer could be launched displaying the data point elements in a larger format. This layout would allow users to edit the output of the LLM and also provide a multi-select feature to choose the desired test set for inclusion.
Proposed Tasks

[ ] Design a wireframe for this feature.
[ ] Consider refactoring the existing test set code if necessary.
[ ] Implement the proposed feature.

Wireframe: https://app.excalidraw.com/s/6rfBpfMgkCb/9lBkRnH2p8c
@mmabrouk


docs: Keptn Metrics tutorial. KeptnMetricsProvider and KeptnMetric metrics.keptn.sh/v1beta1 incorrect

Applies to:

KeptnMetricsProvider
KeptnMetric

This page shows the following snippet:
apiVersion: metrics.keptn.sh/v1beta1
kind: KeptnMetricsProvider
metadata:
  name: <data-source-instance-name>
  namespace: <namespace>
spec:
  type: prometheus | dynatrace | dql | datadog
  targetServer: "<data-source-url>"
  secretKeyRef:
    name: <secret-name>
    key: <secret-key-that-holds-token>
    optional: true | false

Attempting to apply that results in this error:
kubectl apply -f keptnmetricsprovider.yml
error: resource mapping not found for name: "local-prometheus" namespace: "default" from "keptnmetricsprovider.yml": no matches for kind "KeptnMetricsProvider" in version "metrics.keptn.sh/v1beta1"
ensure CRDs are installed firs

Reason
This is because after installing v0.9.0 using helm. The command kubectl api-resources shows
keptnmetricsproviders             kmp          metrics.keptn.sh/v1alpha3              true         KeptnMetricsProvider

Fix
So the documentation fix is to change (for both KeptnMetricsProvider and KeptnMetric):
apiVersion: metrics.keptn.sh/v1beta1

to:
apiVersion: metrics.keptn.sh/v1alpha3

Hi @agardnerIT I believe that version v1beta1 is correct to be used in the documentation, as it is the latest version of the API. I will investigate the issue and try to find the real cause of this problem. It may be a misconfiguration in the helm charts or in some other place. I will keep you updated!

The reason is that the helm charts containing v1beta1 API versions were not released yet https://github.com/keptn/lifecycle-toolkit-charts/pulls. We will try to fix it ASAP.

Do we have any update since using v1alpha3 required a key for secretKeyRef even though in the doc it self state that you won't need to specify it

Hi @tuananh2508 we are working on releasing the fix ASAP

Hi @tuananh2508 not sure, can we maybe get in sync on CNCF slack and you can give me more info?

Issue of @tuananh2508 was resolved on the private chat - the problem was with creating the Secret. Users should use --from-literal option to create it.

+1, while evaluating the project had to update spec to alpha3 vs. beta1 (pulled in latest helm chart as of 1/11/2024)

This issue is already resolved by the release of the newest version of Keptn, as well as the latest docs version


OSX: Fix linking with osxcross for arm64

~Edit: Doesn't seem to work for my issue, investigating further. Might still be a good cleanup for the previous hacky check for env["CXX"] == "clang++" though.~
Works fine on osxcross now.

Cherry-picked for 3.2.4.


Typed property Vonage\Client\Credentials\Container::$credentials must not be accessed before initialization

Verifying a user with Vonage client package on Laravel, everything works fine on local but once I update to the server it throws
"Typed property Vonage\Client\Credentials\Container::$credentials must not be accessed before"
I have updated my .env with
VONAGE_API_KEY='XXXXXX' VONAGE_API_SECRET='XXXXXXXXXXXXXX'
My Controller
`      $basic  = new Basic(env('VONAGE_API_KEY'),env('VONAGE_API_SECRET'));
$client = new Client(new Container($basic));
$otpRequest = new OtpRequest($inputData['mobile_number'], "COMPANY");
        // choose PIN length (4 or 6)
        $otpRequest->setCodeLength(4);

        // set locale
        // $otpRequest->setCountry('ng');

        $response = $client->verify()->start($otpRequest);

`
It breaks at the very second line.
I will appreciate any help rendered

I solved this by changing
the variable in vonage/client-core/src/Client/Credentials/Container.php from
protected array $credentials;
to
protected array $credentials = []
Hope it helps!

This isn't a bug, more of an implementation problem.
The reason the error is thrown is because you haven't passed in environment variables on your server - so the "fix" isn't actually a fix (PHP8 errors if you attempt to initialize a property before it is set, if there is no default).
This means all of your verifications will actually be erroring on the server, and I expect it is because you are using env(). It is not recommended to use env() over the Laravel config() helper - I'd suggest moving these over.
At any rate, the root of the problem is not the library, it's how you fetch credentials.


Emmet Abbreviation Suggestions works inconsistently in HTML and tsx file.

Emmet Abbreviation Suggestions works inconsistently in HTML and tsx file.

VS Code Version:  1.69
OS Version: windows11 21H2
Does this issue occur when all extensions are disabled?: Yes

Examples
The suggestion disappear after I type * character.

The suggestion didn't show up for ! character as well.

NOTE: However, I can still expand Emmet with tab when Emmet: Trigger Expansion On Tab is toggled on.
I can still expand ! character to create boilerplate with tab.

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.69.1. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

Sorry, I typed the version number wrong the first time. My VSCode version is 1.69.1.

/duplicate of https://github.com/microsoft/vscode/issues/154375
Will be fixed in Insiders tomorrow and also in upcoming 1.69.2 recovery release.

Oh, sorry, I didn't notice someone has opened the same issue. Thanks for replying.


not getting notification when app closed

The app works when app opens and the devices sleep. But when the app closed, it cannot get notification. Could you pls help me resolve the issue?
Bug Information
Version Number of Plugin:
Device Tested On:
Simulator Tested On:
Version of VS:
Version of Xamarin:
Versions of other things you are using:
Steps to reproduce the Behavior
Expected Behavior
Actual Behavior
Code snippet
Screenshotst

Are you initializing the plugin on an Application class?
In what android device are you testing?

Not sure if you checked the FAQ section:

Android initialization should be done on and Android Application class to be able to handle received notifications when application is closed. Since no activity exist when application is closed.

You won't receive any push notifications if application is stopped while debugging, should reopen and close again for notifications to work when app closed. This is due to the application being on an unstable state when stopped while debugging.

On some phones android background services might be blocked by some application. This is the case of ASUS Zenfone 3 that has an Auto-start manager, which disables background services by default. You need to make sure that your push notification service is not being blocked by some application like this one, since you won't receive push notifications when app is closed if so.

I initialized the plugin on an Application class.
I tested with the LG ver 6.0, Samsung ver 7.0 and OxygenOS 4.1.6 ver 7.1
And with the OxygenOS 4.1.6 ver 7.1, it cannot receive the notification when the app sleep.
So I add the code below and it works  for me. Tks so much!!!
[BroadcastReceiver(Name = "com.google.android.c2dm.NotificationReceiver", Enabled = true)]
[IntentFilter(new[] { Intent.ActionBootCompleted })]
public class NotificationReceiver : WakefulBroadcastReceiver
{
public override void OnReceive(Context context, Intent intent)
{
StartWakefulService(context, intent);
}
}
[Service]
public class NotificationIntentService : IntentService
{
    protected override void OnHandleIntent(Intent intent)
    {
        try
        {
            HandleMessage(ApplicationContext, intent);
        }
        finally
        {
            WakefulBroadcastReceiver.CompleteWakefulIntent(intent);
        }
    }

    private void HandleMessage(Context context, Intent intent)
    {
        Toast.MakeText(context, "Hello from Handle Message", ToastLength.Short).Show();

        var extras = intent.Extras;

        var message = string.IsNullOrEmpty(extras.GetString("message")) ? "NEW MSG" : extras.GetString("message");

        var trip = string.IsNullOrEmpty(extras.GetString("trip")) ? "NEW TRIP" : extras.GetString("message");

        var title = "Notification: " + (message.Length > 10 ? message.Substring(0, 10) + "..." : message);

        if (!string.IsNullOrEmpty(message))
        {
            //title = App.GetValueFromKey(37); // "New Message!"
        }
        else if (!string.IsNullOrEmpty(trip))
        {
            //title = App.GetValueFromKey(36); // "Trip Update!"
        }

        intent.AddFlags(ActivityFlags.SingleTop); // origin --> .ClearTask
        var pendingIntent =
            PendingIntent.GetActivity(context, 0, intent, PendingIntentFlags.CancelCurrent); // origin --> OneShot

        var builder = new NotificationCompat.Builder(context)
            .SetSmallIcon(Resource.Drawable.icon)
            .SetContentTitle(title)
            .SetContentText(intent.GetStringExtra("message"))
            .SetAutoCancel(true)
            .SetContentIntent(pendingIntent)
            .SetSound(Settings.System.DefaultNotificationUri);

        var notificationManager =
            (NotificationManager)context.GetSystemService(Context.NotificationService);
        notificationManager.Notify(1, builder.Build());
    }
}


cannot get demo working

What did you do?
$ ./deploy-infra.sh

What did you expect to happen?
A successful infrastructure deploy.
What actually happened?
I received errors.
...
Connect to Parca by running: kubectl port-forward -n parca svc/parca 7070
go install -v github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest
jb install
go install -v github.com/google/go-jsonnet/cmd/jsonnet@latest
golang.org/x/sys/unix
# golang.org/x/sys/unix
/Users/josh/go/pkg/mod/golang.org/x/sys@v0.0.0-20200223170610-d5e6a3e2c0ae/unix/syscall_darwin.1_13.go:25:3: //go:linkname must refer to declared function or variable
/Users/josh/go/pkg/mod/golang.org/x/sys@v0.0.0-20200223170610-d5e6a3e2c0ae/unix/zsyscall_darwin_amd64.1_13.go:27:3: //go:linkname must refer to declared function or variable
/Users/josh/go/pkg/mod/golang.org/x/sys@v0.0.0-20200223170610-d5e6a3e2c0ae/unix/zsyscall_darwin_amd64.1_13.go:40:3: //go:linkname must refer to declared function or variable
/Users/josh/go/pkg/mod/golang.org/x/sys@v0.0.0-20200223170610-d5e6a3e2c0ae/unix/zsyscall_darwin_amd64.go:28:3: //go:linkname must refer to declared function or variable
/Users/josh/go/pkg/mod/golang.org/x/sys@v0.0.0-20200223170610-d5e6a3e2c0ae/unix/zsyscall_darwin_amd64.go:43:3: //go:linkname must refer to declared function or variable
/Users/josh/go/pkg/mod/golang.org/x/sys@v0.0.0-20200223170610-d5e6a3e2c0ae/unix/zsyscall_darwin_amd64.go:59:3: //go:linkname must refer to declared function or variable
/Users/josh/go/pkg/mod/golang.org/x/sys@v0.0.0-20200223170610-d5e6a3e2c0ae/unix/zsyscall_darwin_amd64.go:75:3: //go:linkname must refer to declared function or variable
/Users/josh/go/pkg/mod/golang.org/x/sys@v0.0.0-20200223170610-d5e6a3e2c0ae/unix/zsyscall_darwin_amd64.go:90:3: //go:linkname must refer to declared function or variable
/Users/josh/go/pkg/mod/golang.org/x/sys@v0.0.0-20200223170610-d5e6a3e2c0ae/unix/zsyscall_darwin_amd64.go:105:3: //go:linkname must refer to declared function or variable
/Users/josh/go/pkg/mod/golang.org/x/sys@v0.0.0-20200223170610-d5e6a3e2c0ae/unix/zsyscall_darwin_amd64.go:121:3: //go:linkname must refer to declared function or variable
/Users/josh/go/pkg/mod/golang.org/x/sys@v0.0.0-20200223170610-d5e6a3e2c0ae/unix/zsyscall_darwin_amd64.go:121:3: too many errors
make: *** [jsonnet] Error 2

Next steps
After this I did have services deployed to the cluster.  I then proceeded to run $ ./deploy-apps.sh.  The apps were deployed but the images were not recognized.  I then ran eval $(minikube -p minikube docker-env) to build the images inside minikube rather than on my local docker and that solved the image pull issue but when looking at the parca app at localhost:7070 no profiles were available.  I suspect there's some step in the failure above that I needed for the full flow to work.

@swtch1 Thanks for trying it out and reporting the bug.
It seems like jsonnet has some problems with Darwin. We should check it out.
It's weird that the second step has failed.
https://github.com/parca-dev/parca-demo/blob/d79bc143c646cc35e3752ba1c01e7df9a4e6f3c9/deploy-apps.sh#L3
We already have the line to build containers in minikube. We just specify a profile. I'll double-check if we missed putting the profile in some command.

I’ve found @master to work for me on Darwin to install jsonnet.

@swtch1 Have you tried this again?


DataTable: Add custom header row

Fixes #2676. Allow custom rendered multi-column headers to be inserted into rows.

CONTRIBUTOR checklist (do not remove)
Please complete for every pull request

[ ] First-time contributors should sign the Contributor License Agreement.  If you haven't before, wait a few minutes and a bot will comment on this pull request with instructions.
[ ] npm run lint:fix has been run and linting passes.
[ ] Mocha, Jest (Storyshots), and components/component-docs.json CI tests pass (npm test).
[ ] Tests have been added for new props to prevent regressions in the future. See readme.
[ ] Review the appropriate Storybook stories. Open http://localhost:9001/.
[ ] Review tests are passing in the browser. Open http://localhost:8001/.
[ ] Review markup conforms to SLDS by looking at DOM snapshot strings.

REVIEWER checklist (do not remove)

[ ] TravisCI tests pass. This includes linting, Mocha, Jest, Storyshots, and components/component-docs.json tests.
[ ] Tests have been added for new props to prevent regressions in the future. See readme.
[ ] Review the appropriate Storybook stories. Open http://localhost:9001/.
[ ] The Accessibility panel of each Storybook story has 0 violations (aXe). Open http://localhost:9001/.
[ ] Review tests are passing in the browser. Open http://localhost:8001/.
[ ] Review markup conforms to SLDS by looking at DOM snapshot strings.

Required only if there are markup / UX changes

[ ] Add year-first date and commit SHA to last-slds-markup-review in package.json and push.
[ ] Request a review of the deployed Heroku app by the Salesforce UX Accessibility Team.
[ ] Add year-first review date, and commit SHA, last-accessibility-review, to package.json and push.
[ ] While the contributor's branch is checked out, run npm run local-update within locally cloned site repo to confirm the site will function correctly at the next release.

@jonnyl This is the latest need of the Composer app. Mentioning you, since I think this UX pattern will continue to be used across the platform when connectors have nested data. A TreeGrid pattern seemed like overkill and typically requires opening child nodes. Also, this pattern isn't in SLDS. They are aware of it though via Chatter.

@garygong This is ready for review. I can get someone from my team to review if you are OOO this week.


[docs] Make npm init @open-wc more prominent

Unless I'm missing something, when you go to https://open-wc.org/ we don't really mention npm init @open-wc anywhere prominently.

It is the first command you get in the docs, but that is a click or two past FIRST THING... Would it make sense to change the button on the home page:
[ Get Started -> ]

To something like:
[ Get Started | `npm init @open-wc` ] [ Learn More -> ]

We could add a bit of click to copy interaction on the command side to make it even easier. So maybe a hover state of:
[ Click to copy...             | OR ] [ Learn More -> ]

I'd say put it in the body of the page instead
something like this:

I like that ^

to get that effect we will need to extend the default theme

Iirc we already extend it a bit: https://github.com/open-wc/open-wc/blob/master/docs/.vuepress/styles/index.styl 😊

OHAI. k that makes things significantly easier

Looking to work on this today