OLS-510: minor updates in code

Description
OLS-510: minor updates in code
Type of change

[x] Refactor
[ ] New feature
[ ] Bug fix
[ ] CVE fix
[ ] Optimization
[ ] Documentation Update
[ ] Configuration Update
[ ] Bump-up dependent library

Related Tickets & Documents

Related Issue #OLS-510
Closes #

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

Project coverage is 95.28%. Comparing base (bafb859) to head (7ec4e5c).
Report is 9 commits behind head on main.

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #986      +/-   ##
==========================================
+ Coverage   95.26%   95.28%   +0.02%
==========================================
  Files          54       54
  Lines        2134     2165      +31
==========================================
+ Hits         2033     2063      +30
- Misses        101      102       +1

see 1 file with indirect coverage changes

/lgtm

/approve


fix(Global Search): add support for is_project_resource query param

PR summary

Updated documentation about project onboarding
PR Checklist
Please make sure that your PR fulfills the following requirements:

[ ] The commit message follows the Angular Commit Message Guidelines.
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

Current vs new behavior

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

 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.

:tada: This PR is included in version 0.53.6 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


hotfix: using our own version of chroma w/out telemetry

Also narrowed scope/lifetime of client objects

bypassing branch protections as this is a hotfix


Switch to slog

Signed-off-by: Ben Ye<EMAIL_ADDRESS>Update Prometheus version to https://github.com/prometheus/prometheus/pull/14906

@harry671003 Can you help review this PR? This is a small change.
I checked the test case failure are all related to round function

Approving. Thanks Ben.

Merged the PR and I will rename the branch to update-prometheus-3.0


Build pipeline

updated to add tests

 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.:x: humer sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


[fela-plugin-prefixer] use UserAgent to avoid unnecessary style props

It would be great if fela-plugin-prefixer would use the UserAgent if available.
This should be conflict free with https://github.com/rofrischmann/inline-style-prefixer as without a proper UserAgent it would switch to static behaviour (fallback).

If using an unsupported browser or even run without any userAgent, it will use inline-style-prefixer/static as a fallback.

Because of this we had to remove fela-preset-web and create the plugin list manually.
const prefixer = new Prefixer({ userAgent: navigator.userAgent });
const renderer = createRenderer({
  plugins: [
    (style = {}) => prefixer.prefix(style),
    fallbackValue(),
    lvha(),
    unit(),
  ],
});

This is just an enhancement for better convenience

How about using the fela-plugin-dynamic-prefixer instead ;)?
I use the static version as it saves a lot of bytes. Anyways prefixing will be improved soon. While the static prefixer already adds prefixes to the atomic declarations itself, the dynamic version creates new classes for every prefixed property, due to behaviour.

I missed that, sorry for that. Make absolute sense why there are two prefixer available.
Still it might make sense to merge both prefixer into a single one.
On a sidenote:
It's a tough challenge these days to pick the right react/css solution. After several attempts at different implementations (jss, styletron, styled-components etc.) we're quiet happy about fela, great concept, great API. Thanks a lot!

Np :P Great to hear that! Feel free to join us on Gitter with any question :)


Rewrite Response I/O in terms of stream.

Now that I/O is done in terms of iterating a base connection, rather than in terms of calling read() on a file-like object, stream() becomes the more natural method to use to do I/O than read() does. This has meant both that there is a bunch of awkward code duplication in read() and that stream() became very inefficient, as it was doing buffered I/O.
This change adjusts stream so that it no longer does buffered I/O, and rewrites read() to be in terms of stream. This should help clean things up for writing an async response object in future. Along the way I've made some miscellaneous smaller changes.

Codecov Report

Merging #1145 into v2 will not change coverage.
The diff coverage is 100%.

@@         Coverage Diff          @@
##             v2   #1145   +/-   ##
====================================
  Coverage   100%    100%
====================================
  Files        22      22
  Lines      2001    1998    -3
====================================
- Hits       2001    1998    -3

Impacted Files
Coverage Δ

urllib3/util/response.py
100% <ø> (ø)
:arrow_up:

urllib3/response.py
100% <100%> (ø)
:arrow_up:

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 1c71997...b278cc4. Read the comment docs.

:clap:


Kotlin error: unknown option: -script

Describe the bug
Hi I am not sure this is a bug or not but I am trying to use kotlin language but when I try to run the code I am meeting the following error message.
error: unknown option: -script
Software Version
I am using MacOS( apple silicon)
and I have installed Kotlin through brew install kotlin and the current version of my kotlin is  1.9.24
I have set my kotlin path as /opt/homebrew/bin/kotlin
Expected behavior
I hope the Kotlinc to compile my script
Screenshots
If applicable, add screenshots to help explain your problem.

Thank you and really do hope i can use this for my studies.

Hi! When you open the plugin options and navigate to Kotlin, you should see the field "Kotlin arguments". By default, this field contains the entry -script. I don't use Kotlin and I don't know (or remember) why the argument was added, but you can change this setting however you like.
Please tell me if you know what the argument means or when it should be set and when not.


Login requirements

[x] Generate API Key
[x] API token should be more secure than a MD5
[x] Check if we could implement OAuth for other parts of Parabot, like scripts
[x] Fix issue when user is not signed into forums

Finito!


SQ-148/Deeplinks part 1

This PR implements the skeleton of the deeplink support. The schema is as follows:

droidconit://schedule for the schedule
droidconit://schedule/42 for the day with ID "42" of the schedule
droidconit://schedule/42/1234 for the day with ID "42" of the schedule scrolling to bring the event with ID "1234" into view
droidconit://event/123 for the event details with ID "123"
droidconit://speaker/456 for the speaker details with ID "456"
droidconit://favorites for the favorites
droidconit://social for the twitter stream
droidconit://venue for the venue
droidconit://debug for the debug screen

TODO (next PRs/separate stories):

Handle cases where deeplinks contain invalid IDs (see #167 and #165 et al.)
Handle selecting day and event in the schedule
Put deeplink examples in the debug activity (in the meantime, I ❤ Chrome remote debugging)

Deeplink example 🌈

(yes the favorites were empty, it's ok we don't have an empty state yet, see #166)

Another concern I have right now is that we do the login in HomeActivity so if we don't have a logged in user (even anonymously) that could break things, in that case the solution would be to have the same thing we have in HomeActivity in EventDetailsActivity

I'll move the login to the RoutingActivity, forgot to yesterday. Nice catch!

5c30946604c991a16739adbc0aac1c9452725259
Done, it works (as I'd expect). For now it's in SignInService but I would move it away—or rename SignInService to AuthService, or something. I wonder if it's even worth putting this in SquanchyApplication#onCreate()?


Hygieia - Jenkins publisher error

Hygieia: Failed Publishing Build Complete Data. Response Code: 400.
Hygieia Build Artifact Publisher - Looking for file pattern '*.jar' in directory /var/lib/jenkins/workspace/scan-HybrisExtensions-QA/target
Hygieia Artifact Publisher: Processing  file: /var/lib/jenkins/workspace/scan-HybrisExtensions-QA/target/HybrisTmp-1.2.jar
Hygieia: Failed Publishing Build Artifact Data. HybrisTmp-1.2.jar, Name=HybrisTmp, Version=1.2, Group=comergent. Response Code: 400.

Please help to fix the issue..
Response Code: 400.

@smsuresh You have 2 jenkins, one of them working ..one not. Compare the options for the two.
Jenkins -> Manage Jenkins -> Configure System
Jenkins -> Manage Jenkins -> Manage Plugins (check plugin version for hygieia)
And compare your job config.


chromocenter (GO:0010369)

A region in which centric, heterochromatic portions of one or more chromosomes form a compact structure.
I never came across this term in a paper. How does it differ from
pericentric heterochromatin (GO:0005721)
Heterochromatin that is located adjacent to the CENP-A rich centromere 'central core' and characterized by the modified histone H3K9me3.

I ask because I am getting PAINT annotation. I will filter this, and only request an annotation fix  if the term remains

chromocenter 68 EXP
pericentric heterochromatin  104 EXP
If they are the same I prefer the primary term name  'pericentric heterochromatin' because this is universal

I don't think they're identical.
'chromocenter' has 479 hits in PubMed
From a quick skim, I think the distinction is that a chromocenter is a bunch of constitutively heterochromatic regions (some abstracts seem to differ on whether it can include non-centromeric hc, but they seem to consistently say that it can contain more than one centromere), piled together within the nucleus. They're found in various species including plants, flies, and mammals, but the term may well be irrelevant to fungi, or at least fission yeast.
sample PMIDs: 29458329, 29626931, 32182352, 32393416, 32161227

OK I will check on this... the chromosomes do attach but I have never heard anyone use a component erm for this, and a single annotation looks odd (presumably all  centromere components would be a part of it).

OK here is the first one:

A chromocenter is not part of a single chromosome. I'll leave it there for now...

Adding obsoletion label. I hope nobody objects...

abstract of the first paper in @mah11  list above
Chromocenters are defined as a punctate condensed blocks of chromatin in the interphase cell nuclei of certain cell types with unknown biological significance. In recent years a progress in revealing of chromocenters protein content has been made although the details of DNA content within constitutive heterochromatin still remain unclear. It is known that these regions are enriched in tandem repeats (TR) and transposable elements. Quick improvement of genome sequencing does not help to assemble the heterochromatic regions due to lack of appropriate bioinformatics techniques.
This definition indicates that "chromocenter"  is slightly orthogonal to a GO component.

So the children will need to go if there is no such thing?

Oh. It has kids !!!!???

For one
GO:0005701   polytene chromosome chromocenter
A region at which the centric regions of polytene chromosomes are joined together.
I'm pretty sure there is an existing consensus to get rid of polytene chromosome. Checking with @hattrill  @pgaudet
Did I remember this correctly? If not, is this a good idea?
Now I am confused if this is an inter or intra chromosome term
@hdrabkin  I did not look at the other child yet...

This article https://academic.oup.com/nar/article/48/8/4161/5809156 was written in 2020, and describes chromocentres and does not appear to be synonymous with pericentric heterochromatin.
"Molecularly, chromocenters are composed of pericentromeric heterochromatin and CenpA containing centromeric chromatin, which are both rich in repetitive DNA and evolutionarily highly dynamic "
As this structure is actively being studied and seems to have biological relevence, I would like to keep it. If the structure of the ontology is a problem, perhaps that is where the fix should lie.
(as for the polytene issue - on my radar, but it's big sized project for me to do at some other time - more pervassive than just GO annotation.)

From what little perusing I was able to do at Pubmed, I too am reluctant to have it obsoleted. Perhaps if yeast/fungi do not have them, might want to just add a taxa restriction? However, I see your point about not having a suggestion in the ontology that they are part of a single chromosome.

OK good to move it because  it isn't part of a single chromosome.
I'm not saying that yeast don't have them (they do) but I will probably avoid using it because  to me it doesn't totally make sense as a component...."chromocentres" are chromosome organizations, This  would be similar to a term for say "Rabl configuration" in Interphase, or for the "telomere bouquet". We do not have a cellular componet term for these "multi-chromosome arrangement"
although we have process terms to describe  their formation.
i.e.
centromere clustering at the mitotic interphase nuclear envelope
http://amigo.geneontology.org/amigo/term/GO:0072766
(I'm also struggling to imagine how you would usefully annotate a gene product to a 'chromocentre')
If kept it needs to be re-housed somewhere near the root node.

Any suggestions as to where to move it would be appreciated. @hattrill, any ideas?

You can only put it under "cellular componet"

Seems to fit with the bunch of misfits under:
GO:0043232 | intracellular non-membrane-bounded organelle

Ah, @hattrill Iike that idea.

OK makes sense if it's isolated.

Definition (GO:0010369 GONUTS page)
A region in which centric, heterochromatic portions of one or more chromosomes form a compact structure. PMID:12384572 PMID:15053486 PMID:16831888
Is this definition correct? Can a single chromosome really be a chromocentre?

My understanding is that they are formed by the bundling together of chromosomes.

So the current definition is incorrect?
It seems that it would make sense to define as  more than one chromosome kinetochore?
That way we can justify it not being housed under a "chromosomal region"
which would cause problems for the common usage of more than one kinetochore piled together.
Also, I don't understand how a kinetochore on its own (or a pair of kinetochores) from a single chromosome could be  a "chromocentre" . Thats just a  duplicated pre-segregated chromosome ?
So  actions, if in agreement

Fix definition

A region in which centric, heterochromatic portions from more than one chromosomes form a compact structure.

Move to  GO:0043232 | intracellular non-membrane-bounded organelle

Not that:
Although the structure technically exists,  because the centromers are clustered at specific points in the cell cycle, I'm not going to use it for fission yeast. It would be a headache because to annotate consistently all of the 100's of constitutive kinetochore  components would need to be co-annotated to "chromocentre", and this would not add anything for our users. Anything which is part of the kinetochore at specific point in the cell cycle is necessarily  part of a cluster/chromocentre. I don't think of this as a "cellular component" but a construct to enable researchers to talks about "all of the kinetochores clustered together in interphase"
By analogy, we could aslo invent a similar componet term to talk about all of the chromosomes at the same time during clustering "genome center?".
I would rather represent the 'process' of clustering
i.e GO:0072766    centromere clustering at the mitotic interphase nuclear envelope
where specific genes enable the clustering process.
Of course this might be different for higher eukaryotes.... so I would be happy with the above clarification...

Sorry, this is a bit picky  I'm a teeny bit precious about the fission yeast  chromosome segregation and kinetochore annotation (accuracy and completion)

Having a look at this https://academic.oup.com/nar/article/48/8/4161/5809156, looks like it may also be within an individual chromosome:"In Arabidopsis, similar to humans or mice, chromocenters are composed of the pericentric heterochromatin of individual chromosomes, which sometimes but not regularly associate".
Perhaps I have missed the kinetochore link. Can't see that there is one in the GO, but think that I am not understanding your point.

I'm probably misunderstanding what it is (and obviusly  most vertebrate centromeric regions are lots larger)
If a chromocentre can be a single chromosome (kinetochore  plus pericentric region' how does that differ
from
"chromsome centromeric region (which includes the kinetochore and the pericentromeres).
I am more convinced that 'chromocentre' is not a fungal feature so I will request a taxon restriction for fungi.

I haven't come across any examples in fungi, so I think that you'd be ok putting a taxon restriction there.
Think I'd have to have a look at the non-fly examples e.g. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4663263/
D.mel refer to bundles and the suggestion is that the composition differs from centromeric/pericentromeric regions.
https://elifesciences.org/articles/34122
Where the line is drawn between higher-order domains/compartments/complexes/organisation is not easy to see here and most articles contain the word 'enigmatic'.

So I'm good to
Fix definition
A region in which centric, heterochromatic portions from more than one chromosomes form a compact structure.
Move to GO:0043232 | intracellular non-membrane-bounded organelle

?


Accept data URIs for images

Namely for slide.background and image. They're both OptsDataOrPath so we can have a single function accepting pathOrData and map it to either one based on existence of the base64 prefix.
Implementation steps:

In renderer, check if image layer's url has the base64 prefix
If it has the prefix, we can just use the url as is (no need to fetch anything)

URL is currently a required field. If I wanted to use data for the field instead of url in order to pass the ${contentType};base64,${data} would you see this as a valid option? I'd like to pick this issue up if you're not actively working on it.

Fixed in #180 with great work by @mckdanoventa :)


[1.12.x]  a few cherry-picks

return an empty stats if the container is restarting #28026
re-vendor syslog log driver #28670

ping @vdemeester @tonistiigi

ping @cpuguy83

LGTM


  The scenario I'm working with now is webhook catching....if there is a concurrency error while committing the webhook event, the command can fail and the webhook event will not be stored.  Any recommendation for a scenario like this?  Could something like this be handled by the framework or should I build a custom express endpoint with retry or some sort of dead letter mechanism built there?

You should always design your system around potential command failures. Events represent the things that already "happened", commands are the things you are trying to accomplish. Integration reliability (like when using webhooks) is achieved by consuming from a persistent event stream. Some producers will provide this functionality with retries, etc but sometimes you have to store the input stream and implement this mechanism somehow, you can find examples in the broker service (not a finished product though)


Adding linear algebra and other array operations

It looks like this is still missing many matrix operations like QR, SVD, einsum, etc. Is there a clear path to using these with or without MLX?
This has been a similar issue with the PyTorch MPS backend. While there is a long tail of these operations to support, they are essential to many machine learning models. As can be seen in the PyTorch issue, not including them limits the utility of packages like this.

Hi! I am quite interested to work on this but not really sure how to start. Would someone be able to push me in the right direction?
I would be even open to have a short meeting if required.
I work from a M2 Max. Thank you :)
@awni

matrix factorizations aren't easy parallelizable on the gpu. would QR factorization only have cpu implementation for now? @awni

We would love to have these operations available directly in MLX.  It's not our top top priority but something we intend to add in the future or even better accept contributions for.
If you are interested in contributing, here are some thoughts:

To the extent that we can avoid writing these from scratch that is good.
For the CPU we can use LAPACK and/or Accelerate depending on what's available in each. A good starting point would be to wrap an op from one of those just for the CPU (and throw for the GPU).
On the GPU there are also some pre-written kernels we can use from MPS for example: (cholesky)[https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdecompositioncholesky?language=objc].
You can see an example of how to wrap MPS matmul. The others could be done similarly.
For ops not supported by MPS, we'd need kernels which is a bigger project, but a fun one for those up for a challenge!

Thoughts on wrapping these linalg specific functions to a separate module on Python frontend?

So you can look at how mlx.core.random works. We could do something similar for mlx.core.linalg. Basically it's a nested namespace on the C++ side mlx::core::random and then we make it a submodule in the pybind11 bindings. Then you can do:
import mlx.core as mx
mx.linalg.< >

Any thoughts on implementing at least vector/matrix norm methods such as torch.linalg.vector_norm?

Something like np.linalg.norm for vectors and for a matrix Frobenius norm should be very easy to do.. that's also a good place to start just to get the packaging setup.

note to self: almost all LAPACK routines are col-major
@awni would Transpose on an mlx array before sending it to LAPACK routines work here, or is there an alternative way?

No I wouldn't deal with that using a transpose. You can usually call the routine with the right arguments and avoid a transpose. For example a row-major [M, N] matrix is the same as a col major [N, M] matrix in terms of its memory layout.

Hi @awni, may I ask is there any learning resources of Apple Metal and Accelerate Framework? I want to contribute to LinAlg module but I do not know where to start with. For instance, if I want to build mx.linalg.eig , how can I use LAPACK from apple accelerate framework?

matrix factorizations aren't easy parallelizable on the gpu.
would QR and SVD only have cpu implementation for now? @awni

SVD support would be great.

The CPU versions of these are pretty doable. See the QR factorization as an example https://github.com/ml-explore/mlx/blob/main/mlx/backend/common/qrf.cpp
GPU support is more involved as I don’t think there are many open source Metal implementations

I'm going to close this and open specific issues for specific ops / back-ends.


Fix CSP for google analytics

Google analytics requires the CSP policies mentioned in https://www.bounteous.com/insights/2017/07/20/using-google-analytics-and-google-tag-manager-content-security-policy/ to work properly.
Due wrong CSP policies mentioned in our netlify.toml the google analytics might not work properly. It may report some wrong metrics. CSP needs to be updated to correct params for GA.

@gautamkrishnar i am not seeing any errors related to CSP

We can ignore this for now then. We can fix this on the fly via sentry as they pops up,

@tomahawk-pilot Just found this as well https://content-security-policy.com/faq/ looks like we are good to go.


[BUG] hyperf/tracer 升级2.2.17报错

hyperf/tracer 升级2.2.17报错
➜  php-service git:(master) ✗ uname -a && php -v && composer info | grep hyperf && php --ri swoole
Darwin tangweideMacBook-Air.local 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:20 PDT 2021; root:xnu-7195.141.6~3/RELEASE_ARM64_T8101 arm64
PHP 8.0.12 (cli) (built: Oct 21 2021 06:07:28) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.12, Copyright (c) Zend Technologies
with Yasd v0.3.9-alpha, Our Copyright, by codinghuang
with Zend OPcache v8.0.12, Copyright (c), by Zend Technologies
hyperf/amqp                             v2.2.14   A amqplib for hyperf.
hyperf/cache                            v2.2.15   A cache component for hyperf.
hyperf/circuit-breaker                  v2.2.6    A circuit breaker component for hyperf.
hyperf/command                          v2.2.9    Command for hyperf
hyperf/config                           v2.2.0    An independent component that provides configuration container.
hyperf/config-center                    v2.2.5    The abstraction component of config center
hyperf/config-nacos                     v2.2.4    A nacos adapter for config center component.
hyperf/consul                           v2.2.0    A Consul Client for Hyperf.
hyperf/contract                         v2.2.8    The contracts of Hyperf.
hyperf/crontab                          v2.2.10   A crontab component for Hyperf.
hyperf/dag                              v2.2.0    Dag runner for hyperf
hyperf/database                         v2.2.17   A flexible database library.
hyperf/db                               v2.2.1
hyperf/db-connection                    v2.2.0    A hyperf db connection handler for hyperf/database.
hyperf/db-pgsql-incubator               v0.2.0
hyperf/devtool                          v2.2.5    A Devtool for Hyperf.
hyperf/di                               v2.2.16   A DI for Hyperf.
hyperf/dispatcher                       v2.2.0    A HTTP Server for Hyperf.
hyperf/elasticsearch                    v2.2.0    Elasticsearch client for hyperf
hyperf/engine                           v1.1.6
hyperf/event                            v2.2.0    an event manager that implements PSR-14.
hyperf/exception-handler                v2.2.0    Exception handler for hyperf
hyperf/filesystem                       v2.2.17   flysystem integration for hyperf
hyperf/framework                        v2.2.14   A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.
hyperf/grpc                             v2.2.0    A GRPC basic library for Hyperf.
hyperf/grpc-client                      v2.2.7    A GRPC Client for Hyperf.
hyperf/grpc-server                      v2.2.0    A GRPC Server for Hyperf.
hyperf/guzzle                           v2.2.0    Swoole coroutine handler for guzzle
hyperf/http-message                     v2.2.12   microservice framework base on swoole
hyperf/http-server                      v2.2.13   A HTTP Server for Hyperf.
hyperf/ide-helper                       v2.2.5    IDE help files for Hyperf.
hyperf/json-rpc                         v2.2.14   A JSON RPC component for Hyperf RPC Server or Client.
hyperf/kafka                            v2.2.14   A kafka client for Hyperf
hyperf/load-balancer                    v2.2.0    A load balancer library for Hyperf.
hyperf/logger                           v2.2.14   A logger component for hyperf.
hyperf/macroable                        v2.2.13   Hyperf Macroable package which come from illuminate/macroable
hyperf/memory                           v2.2.0    An independent component that use to operate and manage memory.
hyperf/metric                           v2.2.14   hyperf metric component
hyperf/model-listener                   v2.2.14   A model listener for Hyperf.
hyperf/nacos                            v2.2.17   Nacos SDK
hyperf/paginator                        v2.2.0    A paginator component for hyperf.
hyperf/pool                             v2.2.0    An independent universal connection pool component.
hyperf/process                          v2.2.3    A process component for hyperf.
hyperf/rate-limit                       v2.2.0    A rate limiter implemented for Hyperf or other coroutine framework
hyperf/redis                            v2.2.9    A redis component for hyperf.
hyperf/resource                         v2.2.17   A api resource component for hyperf.
hyperf/rpc                              v2.2.0    A rpc basic library for Hyperf.
hyperf/rpc-client                       v2.2.16   An abstract rpc server component for Hyperf.
hyperf/rpc-server                       v2.2.0    An abstract rpc server component for Hyperf.
hyperf/scout                            v2.2.13   Hyperf Scout provides a driver based solution to searching your Eloquent models. Inspired By Laravel Scout.
hyperf/server                           v<IP_ADDRESS> A base server library for Hyperf.
hyperf/service-governance               v2.2.4    A service governance component for Hyperf.
hyperf/service-governance-nacos         v2.2.4    A nacos adapter for service governance.
hyperf/snowflake                        v2.2.0    A snowflake library
hyperf/socketio-server                  v2.2.8    Socket.io implementation for hyperf
hyperf/super-globals                    v2.2.0    A superglobals library for Hyperf.
hyperf/task                             v2.2.14   A task library for Hyperf.
hyperf/testing                          v2.2.11   Testing for hyperf
hyperf/tracer                           v2.2.17   A open tracing system implemented for Hyperf or other coroutine framework
hyperf/translation                      v2.2.13   An independent translation component, forked by illuminate/translation.
hyperf/utils                            v2.2.17   A tools package that could help developer solved the problem quickly.
hyperf/validation                       v2.2.13   hyperf validation
hyperf/watcher                          v<IP_ADDRESS>  Hot reload watcher for Hyperf
hyperf/websocket-server                 v2.2.14   A websocket server library for Hyperf.
swoole
Swoole => enabled
Author => Swoole Team<EMAIL_ADDRESS>Version => 4.8.1
Built => Nov  5 2021 16:13:16
coroutine => enabled with thread context
kqueue => enabled
rwlock => enabled
sockets => enabled
openssl => OpenSSL 1.1.1l  24 Aug 2021
dtls => enabled
http2 => enabled
json => enabled
curl-native => enabled
pcre => enabled
zlib => 1.2.11
mysqlnd => enabled
async_redis => enabled
Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => Off => Off
swoole.unixsock_buffer_size => 262144 => 262144

```bash
2021-11-22 05:34:51.680 [ERROR] [AppExceptionHandler::handle] Error: Typed property ZipkinOpenTracing\Span::$scope must not be accessed before initialization(0) in /vendor/jcchavezs/zipkin-opentracing/src/ZipkinOpenTracing/Span.php:72
Stack trace:
#0 /vendor/hyperf/tracer/src/Middleware/TraceMiddleware.php(78): ZipkinOpenTracing\Span->finish()
#1 /vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): Hyperf\Tracer\Middleware\TraceMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#2 /vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#3 /vendor/hyperf/dispatcher/src/HttpDispatcher.php(40): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#4 /vendor/hyperf/http-server/src/Server.php(116): Hyperf\Dispatcher\HttpDispatcher->dispatch(Object(Hyperf\HttpMessage\Server\Request), Array, Object(Hyperf\DTO\Middleware\CoreMiddleware))
#5 {main}

https://github.com/jcchavezs/zipkin-php-opentracing/pull/60


Missing input file '//tools/jdk:SingleJar_deploy.jar'

I'm trying to play around with the Android stuff (which I realize is very alpha at best right now), and I'm hitting an error about a missing input file: '//tools/jdk:SingleJar_deploy.jar'.  This appears to be an implicit dep when using android_binary rules.
Is this something that is supposed to be checked in, or can I grab it from somewhere?

This is normal '//tools/jdk:SingleJar_deploy.jar' is built by bazel compile script. It should be in the tools directory of your bazel install. What do you have in your package path? (bazel info package_path)

It's %workspace%.
80 bazel  (master) $ ls tools/jdk/
BUILD

Are you running in a clean copy of the github repository? If so, do "./compile.sh tools $(which bazel)" to bootstrap only the tools part.

Ah, I think I missed a compile error before, which is likely the cause here:
82 bazel  (master) $ ./compile.sh
INFO: You can skip this first step by providing a path to the bazel binary as second argument:
INFO:    ./compile.sh build /path/to/bazel
🍃  Building Bazel from scratch...........
🍃  Building Bazel with Bazel.
.WARNING: Output base '/home/sdwilsh/.cache/bazel/_bazel_sdwilsh/019bdcb464c09203676cd7463f866545' is on NFS. This may lead to surprising failures and undetermined behavior.
Extracting Bazel installation...
Sending SIGTERM to previous Bazel server (pid=203272)... done.
........
INFO: Found 1 target...
INFO: From Compiling src/main/cpp/util/port.cc:
gcc: unrecognized option '-no-canonical-prefixes'
INFO: From Compiling src/main/cpp/util/errors.cc:
gcc: unrecognized option '-no-canonical-prefixes'
INFO: From Compiling src/main/native/process.cc:
gcc: unrecognized option '-no-canonical-prefixes'
INFO: From Linking src/main/tools/namespace-sandbox:
gcc: unrecognized option '-no-canonical-prefixes'
INFO: From Linking src/main/tools/process-wrapper:
gcc: unrecognized option '-no-canonical-prefixes'
INFO: From Compiling src/main/cpp/blaze_util_linux.cc:
gcc: unrecognized option '-no-canonical-prefixes'
src/main/cpp/blaze_util_linux.cc: In function 'std::string blaze::GetProcessCWD(int)':
src/main/cpp/blaze_util_linux.cc:135: error: call of overloaded 'to_string(int&)' is ambiguous
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/basic_string.h:2604: note: candidates are: std::string std::to_string(long long int)
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/basic_string.h:2610: note:                 std::string std::to_string(long long unsigned int)
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/basic_string.h:2616: note:                 std::string std::to_string(long double)
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-free-nonheap-object"
ERROR: /data/users/sdwilsh/bazel/src/main/cpp/BUILD:12:1: C++ compilation of rule '//src/main/cpp:client' failed: gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -DBLAZE_OPENSOURCE -iquote . ... (remaining 20 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
Target //src:bazel failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 4.440s, Critical Path: 1.40s

Building output/bazel

I just updated, and the only modification I've got is a change to WORKSPACE:
diff --git a/WORKSPACE b/WORKSPACE
index 33a42b6..f708813 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -41,3 +41,15 @@ maven_jar(
     name = "easymock",
     artifact = "org.easymock:easymock:3.1",
 )
+
+android_sdk_repository(
+  name = "androidsdk",
+  path = "/opt/android_sdk",
+  api_level = 19,
+  build_tools_version="21.1.1",
+)
+android_ndk_repository(
+  name = "androidndk",
+  path = "/opt/android_ndk/r10c",
+  api_level = 19,
+)

Plus I've got a symlink for my project at the top level because I has having difficulties using Bazel otherwise.

I'm using a pretty new version of gcc:
87 bazel  (master) $ gcc --version
gcc (GCC) 5.2.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Is Bazel maybe picking up a version from somewhere else?

resolved on IRC. The problem was the path to GCC. Fixing it in the CROSSTOOL file fixed the problem.

Hi, I'm facing similar issues. Could you provide some detail on the change in tool/cpp/CROSSTOOL?  I've opened an issue: https://github.com/google/bazel/issues/402


Add more typing to catch a bug

There was a bug in the last version I released where I did not create the DownloadableArtifact with the right set of arguments.
I fix the bug in the very last commit below. Sorbet should have caught this for us, so in this case I backfilled the types so that sorbet would have caught this.
Commits

bundle update --conservative sorbet sorbet-runtime tapioca
bin/tapioca require
bundle update tapioca
bin/tapioca gem dry-cli
bin/tapioca gem ruby-progressbar
rm sorbet/rbi/todo.rbi
bin/tapioca gem graphql
bin/tapioca gem graphql-client
bin/tapioca gem pastel
bin/tapioca gem tty-box tty-markdown tty-pager tty-spinner tty-color tty-cursor tty-screen
bin/tapioca gem kramdown
bin/tapioca gem parallel
fix the bug

@technicalpickles I'm going to go ahead and merge this so I can unblock our team, but let me know if you want to make any changes and I can open a new PR!

This is a big enough change I'd like to discuss before this kind of change lands. @alexevanczuk is reverting the typing in https://github.com/Gusto/buildkite-cli/pull/13


Opening diagram files results in ETIMEDOUT message

Preflight Checklist

[x] I agree to follow the Code of Conduct that this project adheres to.
[x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug
After updating the diagrams desktop for Mac application, it won't open files created a few weeks back with a previous version. It directly displays a popup showing the error: ETIMEDOUT: connection timed out, read.
I don't know what time is set until time out is reached, but it happens as soon as I select a file and click open.
To Reproduce
Steps to reproduce the behavior:

Go to 'File->Open...'
Select prefered diagrams file and click 'Open'
See error

Expected behavior
The file being opened and showing the diagrams created before.
Screenshots

draw.io version (In the Help->About menu of the draw.io editor):
diagrams.net 20.8.16

draw.io version [e.g. 12.6.7]

Desktop (please complete the following information):

OS: MacOS Ventura 13.1
Browser [NA]
Version [NA]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Is there anything else about the folder you're opening from? Is it a cloud sync'ed drive?

@davidjgraph Thanks for this. Yes, my files are on a synced onedrive. However the helper function was not loaded hence the actual data was not on my disk. I started the onedrive helper and now it works!


Automatically inject GPU resources and node selector for NIM deployment

closing in favor of https://github.com/NVIDIA/k8s-nim-operator/pull/142


[fix][sec] Upgrade Zookeeper to 3.8.3 to address CVE-2023-44981

Motivation
OWASP dependency check reports CVE-2023-44981 for Zookeeper.
Modifications
Upgrade Zookeeper to 3.8.3.
Release notes: https://zookeeper.apache.org/doc/r3.8.3/releasenotes.html
Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Codecov Report

Merging #21398 (38fd3bc) into master (b1bca56) will increase coverage by 0.05%.
Report is 5 commits behind head on master.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master   #21398      +/-   ##
============================================
+ Coverage     73.27%   73.32%   +0.05%
+ Complexity    32581    32580       -1
============================================
  Files          1888     1888
  Lines        140282   140279       -3
  Branches      15415    15416       +1
============================================
+ Hits         102790   102861      +71
+ Misses        29415    29338      -77
- Partials       8077     8080       +3

Flag
Coverage Δ

inttests
24.19% <50.00%> (+0.03%)
:arrow_up:

systests
24.77% <0.00%> (+0.06%)
:arrow_up:

unittests
72.60% <100.00%> (+0.02%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files
Coverage Δ

...sar/broker/service/persistent/PersistentTopic.java
79.64% <100.00%> (+0.35%)
:arrow_up:

... and 69 files with indirect coverage changes

Out of curiosity, because of the severity of CVE-2023-44981, will this cherry picked to fix the recent release of 3.1.1? Or will 3.1.2 be expedited?

Out of curiosity, because of the severity of CVE-2023-44981, will this cherry picked to fix the recent release of 3.1.1? Or will 3.1.2 be expedited?

@compuguy Unfortunately, this didn't make it to 3.1.1. . The release decisions are made on the dev mailing list. I have started this email thread: https://lists.apache.org/thread/czjtyxhfdbowptf34qs7r4o1qdpql5kh . I think it could justify expediting 3.1.2 release.

I understand @lhotari. I honestly think that's a great justification for pushing that before 3.2. Plus fixing #21280, #21397, and #21395 would be beneficial. 👍

@lhotari Because of severity we cherry-picked to pulsar 2.10.4 , facing many issues during compile time Itself.  Could you please suggest, whether It is applicable for 2.10.4 ? Seeing 2.10.6 labels is being added .


ART-1812: Deprecate el8-rebuilds

It is handled by Doozer once https://github.com/openshift/doozer/pull/320 and https://github.com/openshift/ocp-build-data/pull/742 are merged.

/hold
only merge this after the mentioned PRs are merged.


UI cosmetic failure

Elasticsearch version:
5.6.3
Moloch version:
0.19.2
OS name and version:
RedHAT Enterprise Linux 7.3
How was Moloch built/installed: (rpm, deb, singlehost built, ...)
rpm
Provide logs, stack traces and steps to reproduce:
Go to viewerhost:8005/stats
Click the plus sign in front of the node name to expand the stats
Click above on the elasticsearch column/page
Click the Nodes column/page again and the node is expanded but doesn't show you have to click the now red cross and then presss again to have it display the stats again.


[Question] how to use nlohmann/json in c++?

I am working on an application where two process exchange data through shared memory. So instead of using structs to pack the data, I choose to use JSON so that I won't face any issues due to compilers.
My sender side is written in C++14 and the receiver side is written in C
On the reciver side, which is C, how do I read  the json data?
I really appreciate the help.

You want to know how to access a C++ data structure in C?

Do you know of any other library that can fulfil my need?

Sorry, I do not. Maybe check on http://json.org which C libraries are suitable.

Thanks a ton @nlohmann

You could, theoretically, write a C-wrapper around this library. Losing basically every flexibility gained by using modern C++. But, with the advantage, that you could share the data-structure (and the same allocated memory) between C and C++ without reparsing JSON several times within the same application.

The library has a function dump() that serializes to a std::string. That string is returned and note stored in the library (if this is what you mean with "preserves the serialization").

So serialisation means putting all the data in the form of plain old
string? So that it can be transmitted easily?
On Wed, 16 May 2018 at 1:21 PM, Niels Lohmann<EMAIL_ADDRESS>wrote:

The library has a function dump() that serializes to a std::string. That
string is returned and note stored in the library (if this is what you mean
with "preserves the serialization").
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/nlohmann/json/issues/1088#issuecomment-389428060, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AIuXdddidgq8tsabvpLRknzUHTiFv3xHks5ty9qJgaJpZM4T9QyN
.

I guess so.


YAML front matter support

Looking at my hakyll blog posts (e.g. this) I see the following structure
---
title: [title]
...
---

## Heading 1
## Heading 2

Since there's no 1st level heading there's no clash between yaml's title and a potential markdown # Title.
I guess the question for me is: in the presence of a front matter do we want to
a) treat front matter's title as a level 1 heading and therefore prohibit the use of # ... in the body of the document.
---
title: Front matter
---

# I am prohibited <-- this will be flagged as a duplicate title

## Why

## When

b) treat front matter's title as a level 0 heading and level 1 headings will be just regular document headings and there can be multiple of those, e.g.
---
title: Front matter
---

# What is front matter <-- OK

# Why front matter <-- Also OK

@keynmol thoughts?

My opinion is that a markdown file without a level 1 heading would feel wrong. There should be an option to still use it without showing an error.

Support for YAML front matter was enabled in #22. The front matter is parsed but its contents are not interpreted in any way. This will do until we have a good use-case for interpreting the front matter.

How about being abble to query it from the cli (it would be nice if we could query links and backlinks too)? Something like what https://github.com/mickael-menu/zk does - giving access to the graph that the zettels form


[OneExplorer] Use extensionKind to know whether extensions' remote

This commit uses extensionKind instead of remoteName
to know if the extension is remote or not.
ONE-vscode-DCO-1.0-Signed-off-by: dayo09<EMAIL_ADDRESS>
For #1209
/cc @jyoungyun @hyunsik-yoon

I checked this in my SSH-extension env and also in a single Linux box env.
In both case, _extensionKind has value described by @dayo09.


Add distant.nvim

Adds distant.nvim plugin and renames section Remote Container Development -> Remote Development

Thanks for the PR!
There are 2 problems that need to be resolved, you can see them both in the failing CI. If you fix those, I can merge your PR.

@tversteeg think it's good to go, but need to see the litter pass, first :)


Doesn't work with a new repo when using npm [turborepo]

What version of Turborepo are you using?
1.10.3
What package manager are you using / does the bug impact?
npm
What operating system are you using?
Mac
Describe the Bug
npm run dev

> dev
> turbo run dev

• Running dev
• Remote caching disabled
**root task dev (turbo run dev) looks like it invokes turbo and might cause a loop**

No tasks were executed as part of this run.

 Tasks:    0 successful, 0 total
Cached:    0 cached, 0 total
  Time:    739ms

 ERROR  run failed: command  exited (1)

Expected Behavior
Obviously, a freshly generated project should work after "npm run dev" or any other npm or turbo command.
I checked with pnpm - and it works well with it.
To Reproduce

npx create-turbo@latest
select npm as a package manager
go into the project dir and run "npm run dev" (or "npx turbo run dev")

Reproduction Repo
No response

Hi @AmirL, could you provide the package.json that got generated? I tried to reproduce following your steps and was unable to.

https://github.com/AmirL/turborepo-bug-test
I tried it on codesandbox and it works. But it doesn't work on my mac.
node version v20.2.0
npm version 8.19.2
PS Also, there is another case with the same problem:
https://github.com/vercel/turbo/discussions/5290

I have this problem on a Mac using yarn with versions 1.10.3 and 1.10.6. I don't see the issue on 1.10.4 though.

Also breaks for me with yarn 1.22.19 and turbo > 1.10.4 . As @gabriellet, pinning turbo 1.10.4 works

I am experiencing the same issue:
node --version
v18.16.1

yarn --version
1.22.19

turbo --version
1.10.8

Request bot : to return
Return errors : import from turbo/Vercel errors
throw errors: echo tools/ways to resolve issues
Import resolvers
-inspect: resolver’s resolving issues
-Create new files for Resolved issues
-throw resolved issues back to code
-fix issues

any solutions?

I'm seeing this issue on my mac, using the "latest" turbo in package.json.
I started with the basic example project, then I renamed the "web" app to something else and that's when it broke for me with the error listed above.
Per other comments, I tried reverting back to Turbo 1.10.4 and the issue went away.
Interesting...I then set turbo back to "latest" in my root package.json and reinstalled turbo (which appears to be 1.10.9) and it works. So reverting fixed it, then enabled me to go back to latest? As if the latest version doesn't like changes to a top-level within the apps directory.

Also breaks for me with yarn 1.22.19 and turbo > 1.10.4 . As @gabriellet, pinning turbo 1.10.4 works

This worked for me too, but it is concerning that breaking changes like this have been introduced 😬

same problem

having the same issue! not npm tho, using yarn berry.

Same issue here with
"packageManager"<EMAIL_ADDRESS>and
"turbo": "^1.10.12",

Same issue with :
"packageManager"<EMAIL_ADDRESS>and
"turbo": "^1.10.12"

I found a workaround. Run each app separately with :
yarn dev --filter [app_name]
And after run all the apps with yarn dev

Same issue with : "packageManager"<EMAIL_ADDRESS>and "turbo": "^1.10.12"

same issue with:
yarn: 1.22.19
turbo: 1.10.12

I have the same issue.... ONLY WHEN I added 'turbo build' in the script. Idk, it create kind of conflict. I remove that, and run turbo build without the script. And it work.
Turbo time.

I have same issue. after 1.10.5
1.10.4 is fine

Same issue with :
"packageManager"<EMAIL_ADDRESS>and
"turbo": "^1.10.12"

I'm seeing this issue on my mac, using the "latest" turbo in package.json.
I started with the basic example project, then I renamed the "web" app to something else and that's when it broke for me with the error listed above.
Per other comments, I tried reverting back to Turbo 1.10.4 and the issue went away.
Interesting...I then set turbo back to "latest" in my root package.json and reinstalled turbo (which appears to be 1.10.9) and it works. So reverting fixed it, then enabled me to go back to latest? As if the latest version doesn't like changes to a top-level within the apps directory.
Edit: If it helps, my packageManger is<EMAIL_ADDRESS>
this beautifully worked for me too with yarn. Thanks

change your version.
eg,1.9.1

The solution for now is to fix the turbo package version to 1.10.4
{
  "devDependencies": {
    "turbo": "1.10.4"
  }
}

• Running start
• Remote caching disabled

No tasks were executed as part of this run.

 Tasks:    0 successful, 0 total
Cached:    0 cached, 0 total
  Time:    995ms

newbie advice: in my case i forgot to run pnpm(or npm or yarn) install first to install the dependencies, rerun turbo dev and it works

I was hitting this issue and didn't have a root turbo.json, in my case I was on docker and hadn't copied it over. It didn't throw an error but the pnpm build command called turbo build which threw the above error. Adding COPY turbo.json ./ resolved my issue

I have same issue. after 1.10.5 1.10.4 is fine

Same here; Using 1.10.4 is fine, but after 1.10.5 turbo repo gives me the loop error. "looks like it invokes turbo and might cause a loop"

+1 - weirdest part about this is if I re-clone my repo using latest version of turbo, the turbo builds start to work again. Can't figure out why...

https://github.com/AmirL/turborepo-bug-test
I tried it on codesandbox and it works. But it doesn't work on my mac.
node version v20.2.0 npm version 8.19.2
PS Also, there is another case with the same problem: #5290

Thanks for the repro @AmirL, I'm not able to reproduce with this config. Any chance there's something else going on with your local setup? The other comments on this repo seem varied and suggest different problems, but if you're able to reproduce with this sample repo without any changes, I'd love to see turbo dev -vvv logs to figure out if this an issue with global+local version mismatches or what. I tried pinning your reproduction's turbo in the root package.json to 1.10.13 to reproduce and also tried with the existing latest config (which is now 1.10.14).

I have the same issue.... ONLY WHEN I added 'turbo build' in the script. Idk, it create kind of conflict. I remove that, and run turbo build without the script. And it work.

@booi-dev this may or may not be related, you should open another issue with your turbo.json.

Just a heads up, I had this same issue/same error in a yarn workspaces monorepo -
turns out I forgot to add "version" in the root package.json.
After that, all my turbo commands worked

Same here, I'm using pnpm ver 8.8.0 and node ver 18. I've already downgrade turbo to 1.10.4 and 1.9.1 but it still not work. Can't figure out why...

I got this error when I was in a yarn project but it got package-lock.json file in it by accident. Removing extra lock file helped

I was using package.json5 - works for pnpm, but turbo doesn't see them, had to change them to json.

I had two lock files installed with pnpm.
Downgrading to tubo 1.10.4 made the project work and returned a warning about two lock files. After deleting the second lock file, I could update back to the latest turbo version and it worked.

╭───────────────────────────────────────────────────────────────────────╮
│                                                                       │
│                  Update available v1.10.12 ≫ v1.13.0                  │
│    Changelog: https://github.com/vercel/turbo/releases/tag/v1.13.0    │
│               Run "npx @turbo/codemod update" to update               │
│                                                                       │
│     Follow @turborepo for updates: https://twitter.com/turborepo      │
╰───────────────────────────────────────────────────────────────────────╯
• Running build:webui:byoc:zh_CN
• Remote caching disabled
No tasks were executed as part of this run.
Tasks:    0 successful, 0 total
Cached:    0 cached, 0 total
Time:    21ms

Hey, folks. I'm seeing a lot of different types of reports on this issue. I'm seeing everything from using invalid .json extensions to multiple lockfiles to missing dependencies - and much more.
We want to keep each individual issue focused just one actionable thing for Turborepo. In the interest of that, I'm going to close and lock this issue. if you have an issue report that you'd like to put on the team's radar, please feel free to open an issue with a reproduction so we can investigate.


How to use webchat in rasa_core 0.11.1

Hi, thanks for your rasa-addons. I hope to use the webchat UI for rasa core but encounter some issues.
My rasa_core version is 0.11.1.
1. 'HttpInputChannel' is not existed in rasa_core 0.11.1.
Traceback (most recent call last):
  File "webchat.py", line 4, in <module>
    from rasa_addons.webchat import WebChatInput, SocketInputChannel
  File "/data/coulson/prj/WeatherBot/rasa_addons/webchat/__init__.py", line 4, in <module>
    from rasa_core.channels import InputChannel, OutputChannel, HttpInputChannel, UserMessage
ImportError: cannot import name 'HttpInputChannel'

After I delete the import 'HttpInputChannel' and use 'InputChannel' for the SocketInputChannel
class SocketInputChannel(InputChannel), this issues disappeared but a new issue come out.
2. How to use "SocketInputChannel"?
from rasa_addons.webchat import WebChatInput, SocketInputChannel
agent = Agent.load(...)
input_channel = WebChatInput(static_assets_path=os.path.join(os.path.dirname(os.path.realpath(__file__)), 'static'))
agent.handle_channel(SocketInputChannel(5500, "/bot", input_channel))

I follow the instruction above to use webchat channel but the channel has been modified in the new rasa core.  It seems I need to use in this way.
agent.handle_channels([input_channel],2690,serve_forever=True)
I don't know how to use the SocketInputChannel then... My code is as follows.
from rasa_addons.webchat import WebChatInput, SocketInputChannel
from rasa_core.agent import Agent
current_path = "/data/coulson/prj/WeatherBot/static"
agent = Agent.load("/data/coulson/prj/_rasa_chatbot/projects/dialogue", "/data/coulson/prj/_rasa_chatbot/projects/ivr_nlu/demo")
input_channel = WebChatInput(static_assets_path=os.path.join(current_path, 'static'))
agent.handle_channels(SocketInputChannel(5500, "/", input_channel))

or do I need to modify "SocketInputChannel" class to make it?
Traceback (most recent call last):
  File "webchat.py", line 14, in <module>
    SocketInputChannel(5500, "/", input_channel)
TypeError: object() takes no parameters

Hope for your reply. Thanks in advance!

I have found the solution in Issue #16 but it still not works. Maybe I have missed something.
The log is
message handler error
Traceback (most recent call last):
  File "/data/coulson/env/conda/envs/chatbot/lib/python3.6/site-packages/engineio/server.py", line 423, in _trigger_event
    return self.handlers[event](*args)
  File "/data/coulson/env/conda/envs/chatbot/lib/python3.6/site-packages/socketio/server.py", line 522, in _handle_eio_message
    self._handle_event(sid, pkt.namespace, pkt.id, pkt.data)
  File "/data/coulson/env/conda/envs/chatbot/lib/python3.6/site-packages/socketio/server.py", line 458, in _handle_event
    self._handle_event_internal(self, sid, data, namespace, id)
  File "/data/coulson/env/conda/envs/chatbot/lib/python3.6/site-packages/socketio/server.py", line 461, in _handle_event_internal
    r = server._trigger_event(data[0], namespace, sid, *data[1:])
  File "/data/coulson/env/conda/envs/chatbot/lib/python3.6/site-packages/socketio/server.py", line 490, in _trigger_event
    return self.handlers[namespace][event](*args)
  File "/data/coulson/prj/testBot/rasa_core/channels/socketio.py", line 142, in handle_message
    message = UserMessage(data['message'], output_channel, sid,
TypeError: string indices must be integers

My code is
#!/usr/bin/env python
import os
from rasa_core.channels.socketio import SocketIOInput
from rasa_core.agent import Agent
agent = Agent.load("/data/coulson/prj/_rasa_chatbot/projects/dialogue", "/data/coulson/prj/_rasa_chatbot/projects/ivr_nlu/demo")
agent.handle_channels([SocketIOInput()], 2690, serve_forever=True)

and in the static file
<div id="webchat"/>
<script src="webchat.js"></script>
<script>
    WebChat.default.init({
        selector: "#webchat",
        initPayload: "hello",
        socketUrl: "http://localhost:2690/",
        title: "Title"
        subtitle: "Subtitle"
        profileAvatar: "robotic.png",
        showCloseButton: true,
        fullScreenMode: false
    })
</script>

The webpage is served by python -m http.server 8250, within the static folder.
Hope for your reply. Thanks in advance!

Are you resolved this issue?

Are you resolved this issue?

@cooelf  please could you please explain more what is in static file ? i tried what you did but nothing appeared as UI

@satishAarbor @Noarah Thank you all! I have resolved the issue, it is because I was using the old webchat.js. After I change it to https://storage.googleapis.com/mrbot-cdn/webchat-latest.js, it works fine. Thanks!


Add docs to describe how to install HA katib-controller

Add docs to describe how to install HA katib-controller.
Ref: https://github.com/kubeflow/katib/pull/1713
/assign @andreyvelich @gaocegege @johnugeorge

Thank you for the update @tenzen-y!
@shannonbradshaw @gaocegege @johnugeorge Please take a look

Can you comment with @googlebot I consent.. please? @andreyvelich

@googlebot I consent.

/lgtm

We are ready to merge it.
Thank you for your contribution @tenzen-y!
/lgtm
/approve


[DOCS]: How I setup DATABASE_CONNECTION_STRING for weaviate?

Description
How I setup DATABASE_CONNECTION_STRING for weaviate?

Use the user interface to connect to weavaite instances. That ENV is for the attached postgres DB for the app itself. VectorDB connections are stored in that DB as records and are not in the ENV


Prevent unnecessary creation of migrations when not using "en" as the main language in Django

When you set LANGUAGE_CODE in Django's settings.py to anything but "en", the next time you ran python manage.py makemigrations it created a new migration inside the wagtailmenus app like this:
/usr/local/lib/python3.6/site-packages/wagtailmenus/migrations/0023_auto_20171023_1200.py
    - Alter field max_levels on flatmenu
    - Alter field use_specific on flatmenu
    - Alter field max_levels on mainmenu
    - Alter field use_specific on mainmenu

The reason was that the help_text for max_levels and use_specific contains HTML markup and thus was wrapped in mark_safe(). The result of this was that the originally lazy translation string was not lazy anymore but evaluated (and translated) while the file was parsed. In our case this lead to a migration with these four help_texts translated to German.
The fix is taken directly from the Django translation docs.

Hi @philippbosch. Really good of you to contribute!
I'll get this rolled into a bug-fix release soon and make sure you're credited.
Thanks a lot :)

@ababic thanks for the quick response and merge!


Add a JWK Source that allows random keys to be created

A new JWK Source that allows random keys to be created should be added.
This source should generate oct, RSA, EC or OKP keys depending on parameters (key size, curve...) and additional parameters.
The kid should be a random string.
The key should be stored in a file and have a TTL for key rotation.
This source should also be able to create definitions for both public and private keys (if needed).

Done


One video not playing in sign recognition results

When I looked up VICARS/z1-HELP.mp4
I get these results:

but the last video does not play.

closing for now


Emoji skin tone colors aren't working/updating

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

Action Performed:

Change skin tone for emoji
Send emoji

Expected Result:
New skin tone to show
Actual Result:
Old skin tone shows
Workaround:
unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] MacOS / FF
[ ] MacOS / Desktop

Version Number: 1.2.65-2
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/217068520-4c53721e-2e80-462b-9ae4-2a89bccc4820.mp4
Expensify/Expensify Issue URL:
Issue reported by: @mallenexpensify
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1675437076355079
View all open jobs on GitHub

Triggered auto assignment to @adelekennedy (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

Bug0 Triage Checklist (Main S/O)

[ ] This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
[ ] This bug is not a duplicate report (check E/App issues and #expensify-bugs)

If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead

[ ] This bug is reproducible using the reproduction steps in the OP. S/O

If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
If the reproduction steps aren't clear and you determine the correct steps, please update the OP.

[ ] This issue is filled out as thoroughly and clearly as possible

Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.

[ ] I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

I was able to reproduce this, but it is not consistent. I also noticed that when searching in the picker, skin tone is not reflected (hand was the easiest example).

Job added to Upwork: https://www.upwork.com/jobs/~01fcdc6fa826648131

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

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (External)

Current assignee @stitesExpensify is eligible for the External assigner, not assigning anyone new.

Proposal
Problem
In https://github.com/Expensify/App/blob/f8d7a3a8e291cd216b26b22e9e8a69c93bb15e9e/src/components/EmojiPicker/EmojiPickerMenu/index.js#L449-L452
We need types to render the emojiCode with preferredSkinTone
But in https://github.com/Expensify/App/blob/f8d7a3a8e291cd216b26b22e9e8a69c93bb15e9e/src/libs/EmojiTrie.js#L20-L30
when add emoji to emojisTrie but we don't pass the types
Solution
In EmojiTrie.js

                if (!keywordNode) {
-                    emojisTrie.add(emojis[i].keywords[j], {suggestions: [{code: emojis[i].code, name: emojis[i].name}]});
+                    emojisTrie.add(emojis[i].keywords[j], {suggestions: [{code: emojis[i].code, name: emojis[i].name,types:emojis[i].types}]});

                } else {
-                    emojisTrie.update(emojis[i].keywords[j],
                        {...keywordNode.metaData, suggestions: [...keywordNode.metaData.suggestions, {code: emojis[i].code, name: emojis[i].name}]});
+                       {...keywordNode.metaData, suggestions: [...keywordNode.metaData.suggestions, {code: emojis[i].code, name: emojis[i].name,types:emojis[i].types}]});

                }

Result

I will not be able to get this sooner, so unassigning it.  Please reapply External label  @stitesExpensify @joekaufmanexpensify

Current assignee @joekaufmanexpensify is eligible for the External assigner, not assigning anyone new.

Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (External)

Current assignee @stitesExpensify is eligible for the External assigner, not assigning anyone new.

I was able to reproduce this, but it is not consistent.

@stitesExpensify Are there specific steps you were able to follow to reproduce what Matt sent in the video? I can't reproduce the aspect where we show emojis with the default skin tone in the emoji picker after changing the skin tone setting.

I also noticed that when searching in the picker, skin tone is not reflected (hand was the easiest example).

I can reproduce this specific aspect of the issue though.

Are there specific steps you were able to follow to reproduce what Matt sent in the video?

No. I had it happen to me on a new account and then it went away. That's the only direction I can give unfortunately

Here's a vid of how it's acting for me on Desktop v1.2.68-0 (latest/staging)
https://user-images.githubusercontent.com/22508304/217702829-913c8e51-9347-48d9-a49e-b34229aeab3a.mp4

@mallenexpensify Interesting. So actually changing the default skin tone is working (when you scroll down to the People & Body section of the Emoji picker?
It's just in the Frequently Used section and when searching where changing the default is not being applied?

If so, I cannot reproduce the Frequently used aspect of that on web staging v1.2.68-0. However, I can reproduce the part where searching for an emoji results in displaying the default skin tone for emojis, rather than a manual selection.
Happy to try and reproduce the first part further. However, if we aren't able to, perhaps we just focus on the reproducible part in this issue?

It's just in the Frequently Used section and when searching where changing the default is not being applied?

Mostly correct but some frequently used are being updated and others not. Bizarre.
https://user-images.githubusercontent.com/22508304/217967036-77237116-ad51-466b-8c42-00844018f518.mp4

Thanks @fedirjh , we also have this issue which I put on holding pending an outcome here

https://github.com/Expensify/App/issues/14644

Updated Proposal
As the first proposal that I pushed before has outdated template. And my proposal above can fix @mallenexpensify's report
Please re-state the problem that we are trying to solve in this issue.
When user changes the skin tone, and then searches for emojis, the skin tone of result is not updated.
The skin tone of frequentlyUsedEmojis are't changed as well.
##What is the root cause of that problem?
In https://github.com/Expensify/App/blob/f8d7a3a8e291cd216b26b22e9e8a69c93bb15e9e/src/components/EmojiPicker/EmojiPickerMenu/index.js#L449-L452
We need types to render the emojiCode with preferredSkinTone
But in https://github.com/Expensify/App/blob/f8d7a3a8e291cd216b26b22e9e8a69c93bb15e9e/src/libs/EmojiTrie.js#L20-L30
when add emoji to emojisTrie but we don't pass the types
##What changes do you think we should make in order to solve the problem?
The best way is to add types:emojis[i].types into emojisTrie when we add or update.
Here's my suggestion
change  https://github.com/Expensify/App/blob/14ebe26b6af9c19b7debedb25bcbdf976cb57c5e/src/libs/EmojiTrie.js#L11-L32
to

for (let i = 0; i < emojis.length; i++) {
    if (emojis[i].name) {
        const node = emojisTrie.search(emojis[i].name);
        if (!node) {
            emojisTrie.add(emojis[i].name, {code: emojis[i].code, suggestions: [],types:emojis[i].types});
        } else {
            emojisTrie.update(emojis[i].name, {code: emojis[i].code, suggestions: node.metaData.suggestions,types:emojis[i].types});
        }

        if (emojis[i].keywords) {
            for (let j = 0; j < emojis[i].keywords.length; j++) {
                const keywordNode = emojisTrie.search(emojis[i].keywords[j]);
                if (!keywordNode) {
                    emojisTrie.add(emojis[i].keywords[j], {suggestions: [{code: emojis[i].code, name: emojis[i].name,types:emojis[i].types}],types:emojis[i].types});
                } else {
                    emojisTrie.update(emojis[i].keywords[j],
                        {...keywordNode.metaData, suggestions: [...keywordNode.metaData.suggestions, {code: emojis[i].code, name: emojis[i].name,types:emojis[i].types}]});
                }
            }
        }
    }
}

We also need to pass types to matching
I change https://github.com/Expensify/App/blob/14ebe26b6af9c19b7debedb25bcbdf976cb57c5e/src/libs/EmojiUtils.js#L231
to
                matching.push({code: nodes[j].metaData.code, name: nodes[j].name,types:nodes[j].metaData.types});

Result
https://user-images.githubusercontent.com/113963320/218069309-a73bd788-4098-403f-b951-56fc1dec65f5.mp4

Still reviewing proposals here.

@parasharrajat thanks for your feedback, but i want to update my proposal to be more correct, because, i want to add types in many places not just in this line emojisTrie.add(emojis[i].name, {code: emojis[i].code, suggestions: []}) . Thanks

Reverting back as we have proposals here.

Upwork job price has been updated to $1000

Next step here is @stitesExpensify to give sign off on proposal.

Agree, @fedirjh proposal looks good to me! Let's get him hired :smile:

📣 @fedirjh You have been assigned to this job by @stitesExpensify!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖

Reviewing label has been removed, please complete the "BugZero Checklist".

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

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

If no regressions arise, payment will be issued on 2023-02-28. :confetti_ball:
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

[ ] External issue reporter
[ ] Contributor that fixed the issue
[ ] Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

Merged PR within 3 business days of assignment - 50% bonus
Merged PR more than 9 business days after assignment - 50% penalty

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

[ ] [@parasharrajat / @stitesExpensify] The PR that introduced the bug has been identified. Link to the PR:
[ ] [@parasharrajat / @stitesExpensify] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[ ] [@parasharrajat / @stitesExpensify] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[ ] [@fedirjh] Propose regression test steps to ensure the same bug will not reach production again.
[ ] [@joekaufmanexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

Regression test steps look good to me! I'll work on adding it. Besides that, all that's left before we can issue payment is for @parasharrajat / @stitesExpensify to complete the other BZ checklist items.

Regression test is here!

All that's left before we can issue payment here are the remaining engineering BZ checklist steps.

bump @parasharrajat @bstites, could you fill out the remaining portion of the BZ checklist when you have a chance?

Still pending completion of remaining BZ checklist.

All set to issue payment here. @fedirjh was assigned to this issue on 2023-02-15 and the PR was merged on 2023-02-17, so this qualifies for a 50% speed bonus. Great job! We need to issue the following payment:

@fedirjh $1,500 ($1,000 for bug, and $500 speed bonus).
@parasharrajat $1,500 ($1,000 for C+ review, and $500 speed bonus).

@fedirjh offer sent for $1,000 (we'll add $500 as a bonus when paying)!

@parasharrajat offer sent for $1,000 (we'll add $500 as a bonus when paying)!

@parasharrajat $1,500 sent and contract ended!

@fedirjh $1,500 sent and contract ended!

Upwork job closed.

Bug is fixed, BZ checklist complete, and all payment issued. This is all set. Thanks everyone!


CRJ-7 Map

I was just wondering how to get the CRJ7 map.

The crj700 is divided into three texture files. You can find every information in this issue: #21

thanks


[ABC] Fix abc.net.au/news and introduce abc.net.au/btn

Before submitting a pull request make sure you have:

[x] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[x] Bug fix
[ ] Improvement
[x] New extractor
[ ] New feature

The first commit fixes abc.net/au/news (i. e. TestDownload.test_ABC_2), the second one introduces support for abc.net.au/btn (i. e. #21254).

Superseded by #27850.

Superseded by #27850.


Fix distro detection for raspberry pi

Bug description
I found that starting from version 2.14.0 Prisma support ARM64.
Source: https://github.com/prisma/prisma/releases/tag/2.14.0 and https://github.com/prisma/prisma/issues/861#issuecomment-764867224
I need to run project on Raspberry Pi4 8Gb with Ubuntu 20.04.2 Server LTS.
Project runs in docker image based on arm64v8/node:14.15.4-buster.
Command prisma generate running okay.
Project can't start with the same error as prisma --version shows error:
prisma --version
Error: Could not find introspection-engine binary. Searched in /root/node_modules/prisma/introspection-engine-linux-arm-openssl-1.1.x and /root/node_modules/introspection-engine-linux-arm-openssl-1.1.x

How to reproduce
docker run --rm -it arm64v8/node:14.15.4-buster /bin/bash
root@2682f203a74a:/# npm i -s<EMAIL_ADDRESS>+<EMAIL_ADDRESS>added 2 packages from 1 contributor and audited 2 packages in 11.691s
found 0 vulnerabilities

root@2682f203a74a:/# npm i -s<EMAIL_ADDRESS>warning The postinstall script automatically ran `prisma generate` and did not find your `prisma/schema.prisma`.
If you have a Prisma schema file in a custom path, you will need to run
`prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client.
If you do not have a Prisma schema file yet, you can ignore this message.

+<EMAIL_ADDRESS>added 2 packages from 1 contributor and audited 4 packages in 7.799s
found 0 vulnerabilities

root@2682f203a74a:/# export PATH="/node_modules/.bin:./node_modules/.bin:${PATH}"
root@2682f203a74a:/# prisma --version
Error: Could not find introspection-engine binary. Searched in /node_modules/prisma/introspection-engine-linux-arm-openssl-1.1.x and /node_modules/introspection-engine-linux-arm-openssl-1.1.x
root@2682f203a74a:/#

Expected behavior
prisma version
Prisma information
Project runs in docker image based on arm64v8/node:14.15.4-buster
Prisma installed as
npm i -s<EMAIL_ADDRESS>npm i -s<EMAIL_ADDRESS>
Prisma schema is using native
generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native"]
  output        = "./src/generated/db-client"
}

Environment & setup
uname -a
Linux ubuntu 5.4.0-1028-raspi #31-Ubuntu SMP PREEMPT Wed Jan 20 11:30:45 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

docker version
Client: Docker Engine - Community
 Version:           20.10.3
 API version:       1.41
 Go version:        go1.13.15
 Git commit:        48d30b5
 Built:             Fri Jan 29 14:33:47 2021
 OS/Arch:           linux/arm64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.3
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       46229ca
  Built:            Fri Jan 29 14:32:03 2021
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.4.3
  GitCommit:        269548fa27e0089a8b8278fc4fc781d7f65a939b
 runc:
  Version:          1.0.0-rc92
  GitCommit:        ff819c7e9184c13b7c2607fe6c30ae19403a7aff
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Docker image arm64v8/node:14.15.4-buster uses
docker run --rm -it arm64v8/node:14.15.4-buster /bin/bash
root@2682f203a74a:/# node -v
v14.15.4
root@2682f203a74a:/# npm -v
6.14.10

Hey @sfoxdev
Can you please share output of npx prisma -v?

Hey @pantharshit00
docker run --rm -it arm64v8/node:14.15.4-buster /bin/bash
root@a8aa75927295:/# npx prisma -v
internal/modules/cjs/loader.js:883
  throw err;
  ^

Error: Cannot find module '/root/.npm/_npx/8/lib/node_modules/prisma/scripts/preinstall-entry.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>preinstall: `node scripts/preinstall-entry.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!  There is likely additional logging output above.
97 verbose exit [ 1, true ]
root@a8aa75927295:/#

I am having the same problem on jetson board. Gonna try building them with https://github.com/jcmcneal/prisma-arm64

Hey @pantharshit00 any info/update when Prisma will have native support for ARMv8 (Raspberry Pi4)?
@ACAVJW4H thank you for advice to use https://github.com/jcmcneal/prisma-arm64 but I want to use native binaries.

Possibly related: https://github.com/prisma/prisma/issues/5497

@tomhoule Unrelated to #5497 since @sfoxdev is using 64bit OS.
 Problem here is inside docker in pi we are downloading our x86 based debian binaries for ubuntu which doesn't work. Can you please try this generator block:
generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native","linux-arm-openssl-1.1.x"]
  output        = "./src/generated/db-client"
}

This will ensure we download the arm64 bins regardless of detection problem because of docker interop.

@pantharshit00 Made test with configuration
generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native","linux-arm-openssl-1.1.x"]
  output        = "./src/generated/db-client"
}

got the same error
root@93dc0ffaa336:~# prisma version
Error: Could not find introspection-engine binary. Searched in /root/node_modules/prisma/introspection-engine-linux-arm-openssl-1.1.x and /root/node_modules/introspection-engine-linux-arm-openssl-1.1.x
root@93dc0ffaa336:~# find / -name linux-arm-openssl-1.1.x
/root/.cache/prisma/master/854c8ba7f0dce66f115af36af24e66989a8c02a1/linux-arm-openssl-1.1.x
root@93dc0ffaa336:~#

@tomhoule Unrelated to #5497 since @sfoxdev is using 64bit OS.
We do ship arm64 binaries now. Problem here is inside docker in pi we are downloading our x86 based debian binaries for ubuntu which doesn't work. Can you please try this generator block:
generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native","linux-arm-openssl-1.1.x"]
  output        = "./src/generated/db-client"
}

This will ensure we download the arm64 bins regardless of detection problem because of docker interop.

I found<EMAIL_ADDRESS>download debian binaries on raspberry because here parseDistro parsed os as debian not arm。 and  here is the /etc/os-release output
➜  engines git:(master) ✗ pwd
/home/pi/vault-1/node_modules/@prisma/engines
➜  engines git:(master) ✗ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
➜  engines git:(master) ✗ uname -a
Linux raspberrypi 5.10.11-v8+ #1399 SMP PREEMPT Thu Jan 28 12:14:03 GMT 2021 aarch64 GNU/Linux

That makes sense, I am marking this as confirmed and we should improve that script.

Is there any workaround for this issue? Like, can I fetch the ARM build of prisma engine in somewhere?

Hey @pantharshit00 any update?

@sfoxdev Unfortunately, no updates here. I will candidate this now.

I made a repository which build the engines for Pi in the meantime while it is not officially supported. You can check it out here: https://github.com/pantharshit00/prisma-rpi-builds

Thanks Harshit!
Harshit provided the binaries in: https://github.com/pantharshit00/prisma-rpi-builds
There's some instructions on how to use it in the link's Readme.
You can learn more about bringing your own binary here: https://www.prisma.io/docs/concepts/components/prisma-engines#using-custom-engine-binaries
Closing since I don't see us officially supporting this binary for the foreseeable future, but we do encourage community-driven binaries!

@matthewmueller This issue ain't about support but correct detection of OS inside of docker in raspberry pi.
I think we need to still look into this one.

Hello! Is there any update on this ? Or any reliable workaround I can follow ?
Thanks.

Potentially related: https://github.com/prisma/prisma/issues/17284

I can reproduce this with the reported Prisma version 2.16.0. However, this is not reproducible starting with Prisma 2.18.0 and in modern Prisma 4.x, so I'm going to go ahead and close this issue.
Generally Prisma on ARM64 is widely used nowadays (including during development of Prisma itself) at least because of Apple Silicon (but we also have users running on ARM in production on Ampere A1 and AWS Graviton) so we would definitely know if there still were any issues with platform detection there.


[DF] Support SHOW COLUMNS

Is your feature request related to a problem? Please describe.
This currently fails with:
SHOW COLUMNS is not supported unless information_schema is enabled

Describe the solution you'd like
Do we want to try and use DataFusion's implementation of information_schema?
Describe alternatives you've considered
None
Additional context
None

@jdye64 I think that the easiest solution here is for Dask SQL to override parsing of the SHOW COLUMNS command and then implement its own code to produce the expected results.
If we wanted to use DataFusion's information_schema support then we would have to add the DataFusion execution engine as a dependency and we would need to register the user's tables with a SessionContext and this would likely cause file access to happen (e.g. reading parquet footers) which seems undesirable.

I agree. I will get working on that parsing logic here in the next few days.

fixed via #721


How to work with Getters and Setters in Java

Proposed title of the article
How to work with Getters and Setters in Java
Introduction paragraph (2-3 paragraphs):
When creating classes in Java, it is very important to use Getters and Setters to protect your data.
Getters and Setters play an important role in retrieving and updating the value of a variable outside the encapsulating class. A setter updates the value of a variable, while a getter reads the value of a variable.
Getters and Setters are also called accessors and mutators, respectively.
By convention, getters start with the word "get" and setters with the word "set", followed by a variable name. In both cases, the first letter of the variable's name is capitalized.
In this tutorial, we will look at everything that the reader needs to know on Getters and Setters which include the key takeaways below.
Key takeaways:

Review field variables
Reasons for having getter and setters methods
Learn how to write getter and setter methods
See getters and setters methods working in code demonstration

References:
N/A
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

@mussooo
Good afternoon and thank you for submitting your topic suggestion.
Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it.

@mussooo, great topic. Make sure you provide a good number of hacks and go into lots of detail to provide enough value and uniqueness to our readers. Topic approved 🚀.
Also, template literals might be a nice thing to cover also.

@louisefindlay23, I have changed my topic to this. Please make your views.
Thank you.
cc @hectorkambow

@louisefindlay23, I have changed my topic to this. Please make your views.
Thank you.
cc @hectorkambow

The link links back to this topic??
🤔

@hectorkambow, Sorry for that. I have changed the whole topic. I wanted you to give me the way forward. Should I continue with the new topic?


Performance issues with large databases

Description
I am back :) After #28, I can now successfully connect to my DB. However, I have noticed some performance degradation when the target DB has a lot of data.
For context, I have a TimescaleDB database for storing IOT sensor data. Currently, the table has around 25 000 entries, and is only growing by the hour.
I saw in the tauri code, that the data is being retrieved by doing a SELECT * , which does make sense for smaller amounts of data. Now I do realise that this might not be the exact "target market" / use case for TableX (to view data in DBs with large amounts of data), but it would still be cool to use it.
Now I must confess, I'm not super well versed in Rust, so at this stage I don't have a proposed solution, apart from ideas:

Perhaps the get_rows data retrieval function can somehow be paginated? I am not sure if SQLx even provides a way to do this. Even so, I assume it would require a bit of a rethink on the data retrieval queries/functions.
This could be applied to the frontend as well, as the frontend seems to struggle with such large amounts of data. Perhaps some form of virtualisation in the rendering of the table rows could be a possible solution? Or at the very least, having paginated data being retrieved from Tauri could also help with initial performance concerns.

I am definitely keen to helping come up with solutions/doing research on possible solutions, so let me know :) Or, if this is out of scope of your vision for TableX, that is also (obviously) perfectly fine :)
For debugging purposes, here is my docker-compose.yml setup:
version: "3"
  db:
    container_name: pih-rs-db
    image: timescale/timescaledb:latest-pg16
    environment:
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
    ports:
      - "5439:5432"
    restart: always
    volumes:
      - db:/var/lib/postgresql/data

volumes:
  db:
    driver: local

I have a (still very, very incomplete) Axum project that uses the docker setup mentioned above. If you want/need more information on the DB schemas & structure of the tables to help with creating/setting up a similar DB setup, you can check the initial migration file

Hmmm, that all sounds like a solid plan.
I would be keen to try and help out with code if you decide to split up the work into different tasks/PRs. So I will keep an eye on this issue and the repo in general and then will let you know if I'm planning to pick anything up :)
Otherwise I'm happy to just help test stuff :)

Something that could be cool could be to have similar behaviour to JetBrains DataGrip, where the results are paginated by default, and you can navigate through the different pages

Yoo!
Sorry for the delay, been a little busy.
I implemented Pagination and Virtualization 🎉.
Now it should feel smoother, I have pushed a minor release 🚀

Yoo! Sorry for the delay, been a little busy.
I implemented Pagination and Virtualization 🎉. Now it should feel smoother, I have pushed a minor release 🚀

Insanely cool. It works flawlessly! Thanks for the awesome updates


Looks like it doesn't work now

Chrome Version 80.0.3987.132 (Official Build) (64-bit)

Seems like it is still working fine.
Tested on Chrome 80 (Linux).
if its still not working for you, can you share more details?

Does not work on Macos 76.0.1 (64-bit) too

@ismailyenigul Try the filename ends with .md. Eg: test.md.

Thanks @revathskumar
I was trying with .yml extension. It works fine with .md


Cosy Octopus incorrect tariff information

Describe the bug
I am seeing the inverse of the rates for the cosy octopus tariff. I see a graph that is inverted, the times and costs are correct but don't match. I should be seeing an off-peak rate of 0.17 between 04 -> 07, 13-> 16, and a peak rate of 0.44 between 16 -> 19. All other times should be the standard tariff.

Reproduction steps
I've tried to remove and add the integration back in but this error persists. I'm not sure where it's an API problem or an integration problem. Unfortunately, I don't know anyone else on Cosy to compare against.
Expected behaviour
The correct rates at the correct time
Tariff Code
E-1R-COSY-22-12-08-H
Integration Version
8.4.4
Home Assistant Version
2023.9.3
Fresh Install?
Not specified
Home Assistant Logs
N/A

Thanks for looking into this, I've checked this morning and I'm still seeing the same problem. I've been seeing this error since installing it but could never figure out why I was getting the wrong prices. I switched to this tariff at the start of October. Thinking that it was cached data, I removed the integration and reinstalled yesterday and saw the same problem again.
I also only have a single off-peak sensor, when I should probably have an off-peak and super-peak sensor. The off-peak sensor is 'on' at the correct times.

Hmm the fact the off peak sensor is coming on at the correct time suggests the data is correct. I haven't got round to testing this locally yet
Please forgive my silly question, but this is looking at the current rate sensor rather than the next rate sensor, as the shown behaviour is what I would expect the next rate sensor to appear as?
 I only expose sensors that are useful across multiple tariffs, or provide functionality that cant be mimicked by HA features. A super peak sensor could be created via a template sensor where current rate is bigger than previous and next rate sensor.

Sorry, I should have been more specific. This is the next and previous rates, the current rate 'has no data' (though looking into this more, it does appear to have data which is correct).
Current rate:

Actual current rate when I try and explore the data:

Previous rate:

Next rate:

You will have to forgive me, what would be the reason the next and previous rates would be incorrect and the current rate would be correct? I was initially alerted to this problem because I was trying to use the 'previous rate' to calculate how much my energy was costing me (since my smart meter has no idea).

This looks correct based on how the next/previous rate sensors work, but this description could be more specific. These sensors have been built to show what the next/previous different rate is, which is why they expose the valid_from/valid_to attributes as they can span a short or long period of time depending on the users tariff. This was done so that the sensors could be as versatile and useful as possible across a range of tariffs.
For example, given your screenshots
Normal rate = around 27p
Super peak = around 44p
Off peak = around 17p
..so at 4pm on your screenshots
Current rate - around 44p (super peak)
Previous rate - around 17p (off peak)
Next rate - around 27p (peak)
which is correct based on this diagram.
What are you trying to achieve with these sensors?


chore: remove internal-workshop project from canarist

The internal-workshop repository hasn't been used/updated for a while
and causes dependency issues.
Since the tests in the workshop repository are focused on teaching
testing and are quite few, I don't think they offer much benefit over
the existing tests in internal-hops.
Therefore I'm disabling the internal-workshop canarist tests.

Bors merge bot cheat sheet
We are using bors-ng to automate merging of our pull requests. The following table provides a summary of commands that are available to reviewers (members of this repository with push access) and delegates (in case of bors delegate+ or bors delegate=[list]).

Syntax
Description

bors merge
Run the test suite and push to master if it passes. Short for "reviewed: looks good."

bors merge-
Cancel an r+, r=, merge, or merge=

bors try
Run the test suite without pushing to master.

bors try-
Cancel a try

bors delegate+
Allow the pull request author to merge their changes.

bors delegate=[list]
Allow the listed users to r+ this pull request's changes.

bors retry
Run the previous command a second time.

This is a short collection of opinionated commands. For a full list of the commands read the bors reference.

bors merge

bors retry


classic arg

To add the method V GetOrAdd<TArg>(K key, Func<K, TArg, V> valueFactory, TArg factoryArgument) to ICache, all implementations must have this method. Implement for ClassicLru.

Coverage: 96.111% (-0.4%) from 96.548% when pulling 6e7fd8aaaf8191d676e8bc1789adaf15e644d053 on users/alexpeck/classicarg into 84655883b3cc70250e7e4e7bc15d6b4d6ab54a47 on main.


how to use ICommand in viewmodel  for flexlayout. ContentView will be iterated using RepeaterView (similar to datatemplate)

Hi @rajamaheshwarsingh
Unfortunately we cannot respond to support questions here; these issues are for tracking documentation feedback. Other channels you can use to seek help include Developer Community, the Xamarin Forums, and Stack Overflow.


Add Persistence model

Currently, every time the protocol starts, it begins with a brand-new blockchain from scratch. We should instead opt to store the current block hash whenever we mine a new block and then push that blockhash to IPNS so that peers can also start from that blockhash. This patch begins to implement that strategy.

This patch makes some changes to our persistence system to make it more stable. Specifically, publishing is a very slow process (takes currently around 60 seconds), so we need to change the direction of our publishing. That is, instead of the minter occausionally publishing new blocks, we have a new Publisher which every so often asks the Minter to mint a completed block and then the Publisher goes off to publish the block. During this time, the Minter now can add to the next block and it will mint that one as soon as the Publisher asks for it. This flow is significantly more stable.
Additionally, we now have keys managed by IPFS and allow in the config the user to pass a given key. This means that a user can use whatever key he/she wants to publish, so long as it's been loaded into the IPFS keychain.


cartao:0.1.0

I am submitting

[x] a new package
[ ] an update for a package

Description: Create simple flashcards in Typst.
Cards are defined each with a header, footer, question, and answer, and functions can be be created to loop over these definitions and dump their content into a custom layout. Cartao comes builtin with 3 functions with useful layouts for cards.

I have read and followed the submission guidelines and, in particular, I

[x] selected a name in conformance with the guidelines
[x] added a typst.toml file with all required keys
[x] added a README.md with documentation for my package
[x] have chosen a license and added a LICENSE file or linked one in my README.md
[x] ensured that my submission does not infringe upon the rights of a third party
[x] tested my package locally on my system and it worked
[x] named this PR as name:version of the submitted package
[x] agree that my package will not be removed without good reason

Thanks!