Cannot authenticate docker postgres database

Bug description
Prisma cannot authenticate with a postgres database inside docker.
How to reproduce
create a yml file:
version: "3"
services:
  postgres:
    container_name: postgres
    image: postgres:13
    ports:
      - "5432:5432"
    environment:
      POSTGRES_USER: username
      POSTGRES_PASSWORD: mypassword
      POSTGRES_DB: college_db

a .env file:
DATABASE_URL="postgresql://username:mypassword@localhost:5432/college_db?schema=public"
and a schema.prisma file:
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

generator client {
  provider = "prisma-client-js"
}

run docker-compose up and then in a different terminal run npx prisma db pull
Returns error:

Error: P1000 Authentication failed against database server at localhost, the provided database credentials for  username` are not valid.

Expected behavior
Prisma should be able to authenticate and connect to the server.
Prisma information
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

generator client {
  provider = "prisma-client-js"
}

Environment & setup

OS: Windows 10
Database: Postgres
Node.js version: v12.18.4

Prisma Version
"prisma": "^2.30.0",

I've also read that you need to replace your docker service name (postgres) with the localhost in the url
services:
  postgres:

So the URL would be this: DATABASE_URL="postgresql://username:mypassword@postgres:5432/college_db?schema=public" but this returns the error:

Error: P1001 Can't reach database server at postgres:5432 Please make sure your database server is running at
postgres:5432`.

That the error message for localhost is about the password indicates that there might be another Postgres server running at localhost outside of the Docker container, which Prisma connects to but that does not have the same credentials configured as the Docker container.
From the screenshots in the related discussion #8925 it looks to me that the psql connection is made from the Docker container internally, while the connection from Prisma is attempted from the outside. So possibly the hostname just does not work, or some ports are closed or similar.
@alucardu Can you try to connect to the server from the same location you are trying to use Prisma?

I'm having similar issue but I'm not using docker. Instead it's a cloud server and it's mysql

I am having the same issue. I am using it on my MacBook intel chip. I checked my activity controller if any instance of postgres is running and it is not running.

I have the same issue, but I cannot find any postgres running on my machine.(using mac M1)

What I had to do was uninstall postgres and then reinstall it, I think this is because a previous application had set it up and the traffic was diverted to that SQL server, but I didn't have the ability to shut down the other one

I ran into a similar issue when trying out Postgres. I ended up following a guide which set a volume. Upon going into the postgres container I noticed that it was constantly restarting with a message about incorrect data (using v13 is incompatible with v15). Once I deleted the volume and restarted the container I could connect just fine.
I also had to stop my postgres13 instance that was running as Prisma would try to connect to that.
Current docker-compose:
# Use root/example user/password credentials
version: '3.1'

services:

  postgres:
    image: postgres
    restart: always
    hostname: postgres
    container_name: postgres
    environment:
      POSTGRES_DB: example
      POSTGRES_USER: user
      POSTGRES_PASSWORD: example
    ports:
      - 5432:5432

  adminer:
      image: adminer
      hostname: adminer
      container_name: adminer
      restart: always
      ports:
          - 8080:8080

Just adding my issue here as it seems to be relevant.

I have a local Docker instance running at localhost:5432

I run fly proxy 5435:5432 -a my-hosted-db to get proxy access to the Dev DB on port 5435

If I run prisma migrate deploy with an updated DATABASE_URL, on localhost:5435 it will still try to connect to my docker instance on localhost:5432

If I compose down my local instance, and re-run the scripts prisma migrate deploy will correctly run on the 5435 port.

This caught me out for AGES because it tells you that it's connecting on the right port, but actually it's looking at the local docker instance.

That sounds like your Docker instance was actually listening at 5435 and that made fly proxy not work as you intended. Prisma really just tries to connect to the port you configure in the connection string, no further logic.

That sounds like your Docker instance was actually listening at 5435 and that made fly proxy not work as you intended. Prisma really just tries to connect to the port you configure in the connection string, no further logic.

Yes you are right!  I think there that port reuse is actually possible. On Windows that would probably just error out, because that is... helpful :D

Nah, i'm, on Windows... to be honest it's a Fly.io bug that you can proxy to an "already in use" port without an error message, that's where the confusion came in!

@janpio had the same issue, thanks to you, it worked For me

The reason would probably be that Docker can not make its instance of Postgres available at localhost:5432 when something is already running there.
Great you figured this out and it now works for you.

worked for me too.

Thanks it worked for me 👏🏻

found this thread, was having an issue with docker desktop + postgres in a container + prisma
the env() function in prisma seems to not like docker, for whatever reason. This is what works and dosent work in the schema.prisma file:
datasource db {   provider = "postgresql"   //url        =env("DATABASE_URL") // nope, env() is broken   url = "postgresql://postgres:password@localhost:5432" // WORKS!!!!   //url = ${process.env.DATABASE_URL} // nope }

found this thread, was having an issue with docker desktop + postgres in a container + prisma (on a mac M2 if that matters)
the env() function in prisma seems to not like docker, for whatever reason. This is what works and dosent work in the schema.prisma file:
datasource db {
provider = "postgresql"
//url =env("DATABASE_URL") // nope, env() is broken
url = "postgresql://postgres:password@localhost:5432" // WORKS!!!!
//url = ${process.env.DATABASE_URL} // nope
}

Wow, this is also what worked for me after trying so many things! I think it was a combo of stopping my local postgres and also making this change. Thanks @JasonLough !

might sound too obvious, but I was struggling with this for days as I was using docker to run postgres and also had postgres in my native machine (windows 11).
What I did was change the port mapping from 5432:5432 -> 5433:5432
So dockers postgres running on 5432 is mapped to my machines 5433 port, and it seems to work.
Might not be the best solution but works for me at least.
Do let me know if this worked for you!!! <3

@sharabhh  I encountered a similar issue and resolved it by changing the port mapping from 5432:5432 to 5433:5432.
However, if you'd like to run PostgreSQL on port 5432 without changing the port mapping, you'll need to terminate any existing service that is currently using that port.
To do this in Command Prompt (Run as Administrator), you can use the following commands:

Check for Services on Port 5432:

For Windows:netstat -ano | findstr :5432

For Linux or Mac:sudo lsof -i :5432

Terminate the Service:

If you find a service listening on port 5432, you can terminate it using:taskkill /PID <PID_Number> /F

For example, if the output shows:TCP    <IP_ADDRESS>:5432           <IP_ADDRESS>:0              LISTENING       6244

You would use:taskkill /PID 6244 /F

This will free up port 5432 for your PostgreSQL instance.


Could not find a matching version of package

composer require avaibooksports/doctrinemigrationsmultipledatabasebundle
[InvalidArgumentException]
 Could not find a matching version of package avaibooksports/doctrinemigrationsmultipledatabasebundle.
 Check the package spelling, your version constraint and that the package is available in a  stability which matches your minimum-stability (stable).

Excuse me, the package was mispelled in the readme. This should work for you:
composer require avaibooksports/doctrine-migrations-multiple-database-bundle


IPTComShark sometimes fails to display EVC-11 (MMI_CURRENT_SR_RULES)

IPTComShark sometimes fails to interpret EVC-11 messages correctly. This seems to occur when the screen is opened for the first time. When the message is returned for validation of individual fields the message is processed correctly.

This has been fixed by my EVC-11 migration to the new format. I have already verified the packet works with MMI_N_DATA_ELEMENTS = 0.

closing based on robertvanv comment


Parse create table statement error

Got an error while parsing a create statement:
CREATE TABLE T (
    id int(4)
);

Parsing sql 'CREATE TABLE T (
        id int(4)
    );'...
Error: sql parser error: Expected ',' or ')' after column definition, found: (

But the sql can be successfully executed on MySQL.

Thanks for creating the issue. The parser doesn't support the int(4) part yet.


Add raw light spectrum to XYZ conversion

Hi!
Would it be interesting to add support for spectrum to XYZ conversions?
The spectrum can be represented as a [f32; XXX] (XXX depending on the sampling of the spectrum).  Where the f32 values are the intensities (in arbitrary units), for each wavelength from ~400 to ~800 nm. Then the XYZ coordinates are a matter of simple matrix multiplication, given the XYZ weights.
The weights are available on different websites (http://www.cvrl.org/cie.htm)
There is also analytic aproximations (http://jcgt.org/published/0002/02/01/paper.pdf)
I've already started a POC, so I might submit a pull request (the code is not that clean yet though).
Tell me what you think about this.

Hello, and sorry for my late response! I was at work and wanted to take my time to write a proper answer. Anyway, this sounds like something that could perhaps fit in. It could also work as a separate library. I did a similar implementation once, and I think it was relatively small, so I guess it won't be a maintenance problem, but it depends on how it will work. (Just thinking about the practical details :smile:) Speaking of which, a few things I'm going to request is that it's:

self contained, meaning that it keeps track of its own limits and parameters,
should catch user mistakes as early as possible (preferably at compile time),
fault tolerant, when it can't catch the mistake,
at least generic over the float type (preferably as generic as the XYZ type),
reasonably bare bones.

I realize that it's tricky and it's no big deal if the POC doesn't fulfill it. Take it one step at the time. It's a POC, after all, and I'm happy to give feedback when I have the time. The reason for this is that I want it to be as easy to use as possible, without relying om too many assumptions (it's a balance act), and I want it to be easy to overlook and maintain in the future. Part of the new order here is also that I'm trying to be more clear with my expectations, and these are the things I can think of right now that I'm usually working towards. Feel free to ask if you want me to elaborate.
Also a few question, out of curiosity: Is the idea that the input spectrum has to match the number of weights, or is there some kind of interpolation in place? Would it make sense to to combine it with the built in gradient code?
I would also love to see the POC, even if it isn't finished. I don't mind, and I have nothing against using pull requests for feedback and as a scratch space. It would also make it easier for me to make a proper decision sooner, rather than later.

Ok so here's the POC, but I couldn't get the generic type working (I can't find a way to convert from Float back to f32)...
For the moment, the input spectrum has to match the number of weights, but we could also add a sparse spectrum (for example using a hashmap<wavelength,intensity> ?)

Just to give an update on this feature request, since it pops up now and then. My current stance is that this is probably not going to be 100% covered by Palette. There are a few parts to the problem:

Represent a spectrum. How is the data stored and represented? Interpolation? On stack? Heap?
Working with a spectrum. Operations, like multiplying, adding, analyzing, what not. Depends a lot on the point above.
Converting a spectrum to other color representations. Which observer? How to interpret the representation?

I think (1) representing a spectrum is beyond the scope for this crate at the moment. Different needs require different representations, and that is probably one of the reasons why this hasn't been implemented yet. Working with a spectrum (2) should be possible to support, to some extent, if the spectrum can be abstracted in a nice way. The conversion support (3) is probably the easiest to implement, if the spectrum can be abstracted to the point where we just need to read its values and output a color.


Gradient penalty interpolation is wrong

Hi, I really like your code.
I found a little detail in line 94
https://github.com/LynnHo/CycleGAN-Tensorflow-2/blob/master/tf2gan/loss.py
the operation should be inter = b + alpha * (a - b) no inter = a + alpha * (b - a), doing this fixes the training with gradient penalty

@iszotic Thank you. Actually, both inter = b + alpha * (a - b) and inter = a + alpha * (b - a) are correct, since alpha is a random number sampled from [0,1].

mmm does the gradient between one and the other computed differently?, I'm not very knowledgeable about backprop but maybe the order changes the gradient.

@iszotic

b + alpha * (a - b) = alpha * a + (1 - alpha) * b
a + alpha * (b - a) = (1 - alpha) * a + alpha * b = beta * a + (1 - beta) * b, here we let beta = 1 - alpha

the same thing.


[DM-27978] Switch from nginx-ingress to ingress-nginx

The nginx-ingress chart is no longer maintained in favor of an
ingress-nginx chart maintained by the same team as the ingress
code itself.  Switch Roundtable to the latest version of that
chart.  Switch the chart to Helm v3 in the process, since this is
required by the upstream chart.

Remaining documentation failures are from the documentation moves in this PR.

Remaining documentation failures are from the documentation moves in this PR.

The doc breakage seems to be just a chicken-and-the-egg type situation with a self-referential GitHub link. It'll work out.
(line   33) broken    https://github.com/lsst-sqre/roundtable/blob/master/deployments/ingress-nginx/values.yaml - 404 Client Error: Not Found for url: https://github.com/lsst-sqre/roundtable/blob/master/deployments/ingress-nginx/values.yaml
569
(line   11) broken    https://github.com/lsst-sqre/roundtable/tree/master/deployments/ingress-nginx - 404 Client Error: Not Found for url: https://github.com/lsst-sqre/roundtable/tree/master/deployments/ingress-nginx

The doc breakage seems to be just a chicken-and-the-egg type situation with a self-referential GitHub link. It'll work out.
(line   33) broken    https://github.com/lsst-sqre/roundtable/blob/master/deployments/ingress-nginx/values.yaml - 404 Client Error: Not Found for url: https://github.com/lsst-sqre/roundtable/blob/master/deployments/ingress-nginx/values.yaml
569
(line   11) broken    https://github.com/lsst-sqre/roundtable/tree/master/deployments/ingress-nginx - 404 Client Error: Not Found for url: https://github.com/lsst-sqre/roundtable/tree/master/deployments/ingress-nginx


publish with npm provenance.

as title 😄

Im currently publishing the npm package manually, so this would require a publish action


Inconsistent capacity handling in HeaderMap::with_capacity

https://github.com/hyperium/http/blob/9c05e391e00474abaa8c14a86bcb0fc5eff1120e/src/header/map.rs#L473
https://github.com/hyperium/http/blob/9c05e391e00474abaa8c14a86bcb0fc5eff1120e/src/header/map.rs#L635
https://github.com/hyperium/http/blob/9c05e391e00474abaa8c14a86bcb0fc5eff1120e/src/header/map.rs#L1592
HeaderMap::with_capacity reserves the entry vector with Vec::with_capacity(raw_cap), while other functions reserves the same entry with Vec::with_capacity(usable_capacity(raw_cap)).

@Qwaz could you provide some additional details on why this is incorrect? Thanks!

@hawkw This is not an incorrect code in terms of correctness, but we can improve the consistency of the code and save a bit of memory by changing HeaderMap::with_capacity to use Vec::with_capacity(usable_capacity(raw_cap)) instead of Vec::with_capacity(raw_cap).

@Qwaz ah, okay, I misunderstood — I thought that since this was linked in the "Audit http" issue on safety-dance, this was part of the security audit. Thanks for clearing that up.


Game will not launch after install

I got a checksum error installing vcrun2019 so used --force to install anyway, now can't launch at all
Running Garuda (Arch) KDE with 5.15.11-tkg-cacule, Steam non-beta, Proton-GE 6.21-2, everything else bleeding edge

Not enough information, also linux is a grey area, we don't officially support it.
I would say having a bad vcruntime likely has something to do with it


[Query]: 0.01 balance should be seen in the "Total balances" section after User B downloads and registers on the app via invite link

Frequency : 100%
Repro on build version: Android Internal Build V1.22.1 , iOS Test flight Build V:1.22.1
Repro on devices: OnePlus 7T(11.0), iPhone12(15), iPhone 6+(12.5.4), Redmi Note 8(9.0). Redmi Note 8(10.0), iPhone 12(15)
Pre Condition:
1] User must have cUSD & cEUR balance in account
2] User A must have shared invite link with amount "0.01" to User B
Repro steps :
1] User B downloads the app via invite link and registers on the application
2] User B is redirected to homepage and is able to see "funds transferred into your account" toast
3] User B is able to see transaction in recent activity feed
4] Observe "total balance" section seen on homepage
Current behavior : "Total balance" is seen as 0.00 although there is "0.01" amount available in user B wallet
Expected behavior : "Total balance" should be seen updated as "0.01" after the transaction is seen in recent activity
Impact :

Bad user experience as user B has received amount "0.01" in the wallet however it is not appearing on the "total balance" section

Attachments: balance1.mp4, balance2.mp4

@gnardini should we change gt to gte? https://github.com/valora-inc/wallet/blob/5420e5c6ea4acdf66b2fbf6ffa3558659ba616fd/packages/mobile/src/tokens/selectors.ts#L32-L36

Yup, that sounds good to me

Hey @MuckT , we have observation related to CELO wherein if the CELO is less than "0.001" it is not seen in the asset page
Refer attachment : celo_not_seen.mp4
Observation : If the CELO balance is more than "0.001" then it is visible on the asset page
Verified on Device : OnePlus 7T(11.0)


[PE-D][Tester C] Vague user stories

I feel that the parts that I underlined are a bit vague because things like "increase productivity" and "reduce workload" can be applied to every user story and feature. Maybe, you can look into the exact problem that you are trying to solve here.

Labels: type.DocumentationBug severity.Low
original: ZweZeya/ped#22

Resolved


Fix codecov badge.

Current coverage is 0.00%

Merging #1 into master will not affect coverage as of 9d7bb08

@@            master    #1   diff @@
====================================
  Files            4     4
  Stmts          148   148
  Branches         0     0
  Methods          0     0
====================================
  Hit              0     0
  Partial          0     0
  Missed         148   148

Review entire Coverage Diff as of 9d7bb08

Powered by Codecov. Updated on successful CI builds.

Thanks for the contribution


Dismiss currently visible or upcoming tooltips when pressing Escape

This is standard UI behavior in most applications out there.
Preview
The editor inspector's documentation tooltips already have a special case for being dismissable, but prior to this PR, the node would always be deselected when pressing Escape while a tooltip is visible.
https://github.com/godotengine/godot/assets/180032/e901e332-ebb6-43fc-aa2e-22cc1d57aac7

Please move the whole block a bit down after the drag-cancelling section, so that drag-cancelling takes precedence over tooltip-cancelling.

Done :slightly_smiling_face:

Thanks!


Google-style functions using "Args:" are inherited with "Parameters:"

This is a minor quibble, but I thought it would be good to note.

Yeah, that was actually intentional - I decided to abide by the napoleon specification, which considers Args and Arguments to be aliases of Parameters. I map all aliases in this way

Okay, just wanted to be sure. Thank you.


Added the source code from almighty/keycloak

Initial commit with the current code from almighty/keycloak master branches

Closing this PR! This repo will contain the deployment scripts.


fix: updates to authentication and onboarding flows

QA and DevOps Checklist:

[ ] QA the code
[ ] Rebase and merge.
[ ] Takedown www and learn for maintainance
[ ] Merge https://github.com/freeCodeCamp/auth0-templates/pull/6
[ ] Setup the application keys from below on the management dashboard

[ ] Facebook
[ ] Google
[ ] GitHub

[ ] Sanity testing
[ ] Switch to production

if (!identity) {
            user = User.findOne$({ where: { email } })
              .flatMap(user => {
                return user ?
                  Observable.of(user) :
                  User.create$({ email }).toPromise();
              })
              .flatMap(user => user);
          }


Why does a new Weblogic Plugin keeps using Tomcat icon?

Description
I am creating a new plugin for Weblogic, and have updated the htIcon portion in jquery.ServerMap2.js:
'WEBLOGIC': 'WEBLOGIC.png',
'WEBLOGIC_GROUP': 'WEBLOGIC.png'
But my plugin continues to use the TOMCAT icon (and yes, I do have the WEBLOGIC servicetype defined and WEBLOGIC.png is added to both the icon and the servermap directories)
What else should I do to get the WEBLOGIC icon to show up?
Environment

Pinpoint version: 1.5.2
OS, WAS, affected library, etc:  My OS is Windows 10, Weblogic version is 10.3.6
Additional details (e.g. how your collector/web is set up): I use quickstart to start up my web and collector after I rebuild with the new plugin as it is the most convenient way for me to run my dev cycle.

Additional Info

An update...
An update:
I do get this from the agent log...
...DefaultClassNameMatcher{org/apache/catalina/connector/RequestFacade}
...DefaultClassNameMatcher{org/apache/catalina/connector/Request}
...DefaultClassNameMatcher{org/apache/catalina/core/StandardHostValve}
...DefaultClassNameMatcher{org/apache/catalina/core/StandardService}
...DefaultClassNameMatcher{org/apache/catalina/connector/Connector}
...DefaultClassNameMatcher{org/apache/catalina/loader/WebappLoader}
...DefaultClassNameMatcher{org/apache/catalina/core/AsyncContextImpl}
INFO  Configured ApplicationServerType : TOMCAT
While I don't believe TOMCAT classes are being loaded the log does say they are.  But in any case, the ApplicatonTypeDetector  for TOMCAT would certainly not have been satisfied because there is definitely not a  "catalina.home" in the system parameters.
I am pretty sure, however, the Weblogic ApplicationTypeDetector will detect true as its detect method is very simple (only looks for a REQUIRED_MAIN_CLASS)

Hi @jclu123
Are you using the quickstart agent for your weblogic application?
The INFO Configured ApplicationServerType : TOMCAT means that the profiler.applicationservertype=TOMCAT has been set in pinpoint.config. This option disables overrides the application type detection so this is why your application is showing up as TOMCAT.
The quickstart agent has this property set as it was only meant to be used with the quickstart's testapp.
If you're using the quickstart agent, either

Use the proper agent - should be under $PINPOINT/agent/target/pinpoint-agent-$VERSION
Edit the quickstart agent's pinpoint.config by commenting out the profiler.applicationservertype=TOMCAT option

Please give the above a try and let me know how it goes.
Thanks

Hi @Xylus
Thanks for writing back.
I removed the profiler.applicationservertype=TOMCAT from pinpoint.config in the quickstart agent and did eliminate the TOMCAT icon from showing up, however, the WEB now uses the
 icon instead of the weblogic icon I had put in /images/icon and /images/servermap
I did make sure that htIcon portion in jquery.ServerMap2.js is updated with my weblogic portion...
                'USER': 'USER.png',
                'USER_GROUP': 'USER.png',
	    'WEBLOGIC': 'WEBLOGIC.png',
                'WEBLOGIC_GROUP': 'WEBLOGIC.png'
            },

But that didn't help.  i also noticed that on startup, the WEB does not load my WEBLOGIC.png from the servermap directory (i.e. there is NO
.... GET /images/servermap/WEBLOGIC.png ....
In TOMCAT's access log while that log shows all other images in that directory being loaded in.
And the weblogic server is indeed being discovered since I do see this in the agent log

The worst part is,  without using the TOMCAT icon (i.e. not setting the profiler.applicationservertype parameter in pinpoint.config) PINPOINT is no longer profiling (i.e. no stack trace, no instrumentation is shown).
Is there something else that I am missing/not doing?
Thanks in advance

For the image part, you'll have to rebuild pinpoint web after editing the server-map2/jquery.ServerMap2.js file. Give this a go and let me know if it works or not.
As for the Weblogic classes not being traced when profiler.applicationservertype is not set, it might happen if your Weblogic plugin is transforming the same classes as Tomcat (such as org.apache.catalina.core.StandardHostValve etc).
I'm not familiar with the classes in Weblogic, could you check if you're modifying the same classes in your Weblogic plugin as the ones in the Tomcat plugin? (You can check com.navercorp.pinpoint.plugin.tomcat.TomcatPlugin for this)
Please let me know of your findings.
Thanks!

Hello sir:
After some looking around, I did manage to get part of weblogic working, that 1 out of 2 icon works and the tracing works.  So what is left is this particular puzzle...  Please see.

As you can see the small icon shows up, but the server map icon does not.  I did re-build the web portion after updating jquery.ServerMap2.js.  And I do see in pinpoint-quickstart-web-1.5.2.war   both a 25x25 png in the icon directory and a 80x40 png in the servermap directory.  Of course I also see the same in pinpoint-web-1.5.2.war as well.
To be sure, I am still running everything from quickstart, and I have commented out profiler.applicationservertype in quickstart\agent\target\pinpoint-agent\pinpoint.confg
Thank you very much for your help, I think we are getting pretty close.

That looks very similar to what happens when the updated jquery.serverMap2.js isn't deployed properly. To make sure, could you open the Chrome Developer Tool and check the source for 'WEBLOGIC': 'WEBLOGIC.png' code you've added?
(You might need to check pinpoint-component.min.js under lib/js if it's quickstart web)

You are right, WEBLOGIC.png is NOT in pinpoint-component.min.js when running in quickstart mode.
Thanks for pointing me in the right direction; any hints on how to fix?
From: HyunGil Jeong<EMAIL_ADDRESS>Sent: Monday, December 5, 2016 8:51 PM
To: naver/pinpoint<EMAIL_ADDRESS>Cc: jclu123<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [naver/pinpoint] Why does a new Weblogic Plugin keeps using Tomcat icon? (#2293)
That looks very similar to what happens when the updated jquery.serverMap2.js isn't deployed properly. To make sure, could you open the Chrome Developer Tool and check the source for 'WEBLOGIC': 'WEBLOGIC.png' code you've added?
(You might need to check pinpoint-component.min.js under lib/js if it's quickstart web)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/naver/pinpoint/issues/2293#issuecomment-265037140 , or mute the thread https://github.com/notifications/unsubscribe-auth/AV30L6yr_G2sUvjoOK1vrO4N34qD2hWkks5rFL-HgaJpZM4K-0tp .  https://github.com/notifications/beacon/AV30L_FB9wzLQ1nsh6GoDvEMUyAFki-_ks5rFL-HgaJpZM4K-0tp.gif

A follow up: I updated   ..\pinpoint-1.5.2\web\src\main\webapp\lib\js\pinpoint-component.min.js, to include "WEBLOGIC: "WEBLOGIC.png", rebuilt the entire distribution and now quickstart web works and the server icon shows up correctly.
It looks like simply updating "..\pinpoint-1.5.2\web\src\main\webapp\components\server-map2\jquery.ServerMap2.js and adding the png files don't seem to be sufficient.  Going forward, should we modify pinpoint-component.min.js if we produce another plugin ?
Again, thanks for pointing me in the right direction.

@jclu123 Thanks for your efforts. Very happy to hear you've worked out the issue.
Modifying web\src\main\webapp\components\server-map2\jquery.ServerMap2.js and rebuilding (mvn clean package) should be enough, as the javascript files are combined and minified during maven build.
Could you double check and see if you haven't missed the rebuilding step?

I have used mvn install -Dmaven.test.skip=true to build and also  tried mvn package and neither seem to work; should I have done something else instead?
thank you

@jclu123 Thanks for the update, we'll keep an eye out on maven building web issue.

Hi @jclu123 ,
I'm also working on developing a sample weblogic plugin for pinpoint.
My weblogic plugin is able to detected by the pinpoint, but i coudn't trace the weblogic application requests.
Can you please tell me the weblogic class which you have used for request and response transformation?
I've used the below code for transformation which failed..
` transformTemplate.transform("weblogic.servlet.http.AbstractAsyncServlet", new TransformCallback() {
@Override
public byte[] doInTransform(Instrumentor instrumentor, ClassLoader classLoader, String className,
Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer)
throws InstrumentException {
InstrumentClass target = instrumentor.getInstrumentClass(classLoader, className, classfileBuffer);
			InstrumentMethod handleMethodEditorBuilder = target.getDeclaredMethod("service",
					"javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse");
			if (handleMethodEditorBuilder != null) {
				handleMethodEditorBuilder
						.addInterceptor("it.sella.pinpoint.plugin.weblogic.interceptor.ServerHandleInterceptor");
				return target.toBytecode();
			}

			return target.toBytecode();
		}
	});`

Thanks,
Godwin

@godwingrs22  webloigc 12c is very special！I'm also working on developing a sample weblogic plugin for pinpoint，it can work in weblogic 10 but not weblogic 12c


Concurrent relation upserts conflict

Bug description
Running multiple upserts concurrently and receiving the error:
PrismaClientKnownRequestError3 [PrismaClientKnownRequestError]:
Invalid `prisma.post.upsert()` invocation:

  Unique constraint failed on the fields: (`name`,`type`,`userId`)
    at cb (C:\PROJECTFOLDER\node_modules\@prisma\client\runtime\index.js:36063:17)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Promise.all (index 5) {
  code: 'P2002',
  clientVersion: '2.30.2',
  meta: { target: [ 'name', 'type', 'userId' ] }
}

How to reproduce

https://github.com/dariusj18/prisma_playground/tree/prisma_9751

Initialize database
Run npm start

Expected behavior
No errors, upserts happen as expected
Prisma information
datasource db {
  url      = env("DATABASE_URL")
  provider = "postgres"
}

generator client {
  provider = "prisma-client-js"
  // previewFeatures = ["interactiveTransactions", "selectRelationCount", "referentialActions"]
}

model User {
  id       String @id @default(uuid()) @db.Uuid
  username String @unique

  type UserType

  profiles Profile[]
  tags     Tag[]

  publishedPosts Post[]

  @@unique([username, type])
}

enum UserType {
  PUBLISHER
  AUTHOR
  EDITOR
}

model Profile {
  id  String @id @default(uuid()) @db.Uuid
  bio String

  user   User   @relation(fields: [userId], references: [id])
  userId String @db.Uuid
}

model Tag {
  id   String @id @default(uuid()) @db.Uuid
  name String

  type TagType

  user   User   @relation(fields: [userId], references: [id])
  userId String @db.Uuid

  posts PostTag[]

  @@unique([name, type, userId])
}

enum TagType {
  CATEGORY
  POSTTYPE
  LANGUAGE
}

model Post {
  id    String @id @default(uuid()) @db.Uuid
  title String

  user   User   @relation(fields: [userId], references: [id])
  userId String @db.Uuid

  tags PostTag[]
}

model PostTag {
  post   Post   @relation(fields: [postId], references: [id])
  postId String @db.Uuid

  tag   Tag    @relation(fields: [tagId], references: [id])
  tagId String @db.Uuid

  @@id([postId, tagId])
}

Environment & setup

OS: Windows
Database: PostgreSQL
Node.js version: 14.16.0

Prisma Version
prisma                : 2.30.2
@prisma/client        : 2.30.2
Current platform      : windows
Query Engine (Binary) : query-engine b8c35d44de987a9691890b3ddf3e2e7effb9bf20 (at<EMAIL_ADDRESS>Migration Engine      : migration-engine-cli b8c35d44de987a9691890b3ddf3e2e7effb9bf20 (at<EMAIL_ADDRESS>Introspection Engine  : introspection-core b8c35d44de987a9691890b3ddf3e2e7effb9bf20 (at<EMAIL_ADDRESS>Format Binary         : prisma-fmt b8c35d44de987a9691890b3ddf3e2e7effb9bf20 (at<EMAIL_ADDRESS>Default Engines Hash  : b8c35d44de987a9691890b3ddf3e2e7effb9bf20
Studio                : 0.422.0

Since it's all in one block, you should be able to stick this in a transaction prisma.$transaction([...])
We do have a problem when you're unable to stick the code in a block and the block is concurrent, see #3242 .

So, this must be a fundamental flaw with Prisma and how it works, because I get this error when I run this across multiple requests and the actual upsert is inside a transaction.  And the idea that "Hey folks, this is expected behavior" is the response in #3242 is pretty ridiculous.
This was also added as a milestone for 2.19 and seems to have been left behind?

Reproduction: https://github.com/prisma/reproductions/tree/main/gh-9751

Can still reproduce this with 4.3.1. Logs:
https://gist.github.com/pimeys/f3831809ac388a6c9b6ef8a720d8dce9

Prisma Upserts are very powerful and support very nested upserts. This can lead to a Unique constraint error being thrown. We have updated our docs with why this happens and what to do in that situation.
We have also added support for INSERT .. ON CONFLICT .. UPDATE see the docs on when it will be used.

Just wrap the upsert with a  $transaction:
[settings] = await prisma.$transaction([
  prisma.settings.upsert({
    where: { sub },
    update: {},
    create: { sub },
  }),
]);

Open a new issue or discussion please instead of commenting on a closed bug report. Thanks.

For those who are reporting concurrency issues, it would help if you noted what isolation level you're running in. Obviously that has a big effect on concurrency in general, and that needs to be used when reproducing your problems.


Add testing-apikit-with-munit sample

Purpose

Add testing-apikit-with-munit sample.

This PR has the server-side fixes of this sample. https://github.com/wso2/wso2-synapse/pull/1528
Therefore, this sample only works in MI 1.2.0 or higher version products.

This PR has the Integration Studio testing client fixes for this sample https://github.com/wso2/maven-tools/pull/63.
Therefore, this sample only works in Integration Studio 7.1.0 or higher version products.


Make %id and %length adjustable and set defaults (80% id over 60% length)

This was implemented in #43


Integrate doctest into cmake

Calls doctest helper function to register tests with cmake. This enables the ability to filter / extract more information while using ctest.
Now running ctest you can now see a test count and progressions system vs previous blank terminal.
        Start   1: test simple allocations
  1/173 Test   #1: test simple allocations ......................   Passed    0.05 sec
        Start   2: test large allocations
  2/173 Test   #2: test large allocations .......................   Passed    0.04 sec
        Start   3: test arg reduce small
  3/173 Test   #3: test arg reduce small ........................   Passed    0.09 sec
        Start   4: test arg reduce against cpu
  4/173 Test   #4: test arg reduce against cpu ..................   Passed    0.07 sec
        Start   5: test arg reduce bool

Also can now run the following to filter tests
ctest -R array

That's very cool, thank you!!


Inform about dependency loader method being potentially asynchronous

An update to docs of [BackgroundDependencyLoader].
To me it wasn't so obvious that it was asynchronous, and I spent maybe 15 minutes figuring out why my API Request throws before even being sent.
I have a request manager inside the application, and one request was being started inside a load method. This caused the manager to try and add the request outside of the update thread for not a completely obvious reason at the time.

As an aside,
https://github.com/ppy/osu-framework/wiki/Dependency-Injection is probably worth a read.


mariadb galera: fix build

Motivation for this change
Plugins mariadb galero error build with asio 1.12.1
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Need this PR asio 1.10.8 https://github.com/NixOS/nixpkgs/pull/41822

@GrahamcOfBorg eval

Thanks


Configure Azure Pipelines

This pipeline configuration builds the application and produces a build for the Release configuration.

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


A frequent error (runpod)

Hello. After several correct generations (img2img+controlNet) I always get smth like this, and then there is no chance to continue without restarting of SD:
Task exception was never retrieved
future: <Task finished name='ex4lk9z704l_305' coro=<Queue.process_events() done, defined at /usr/local/lib/python3.10/dist-packages/gradio/queueing.py:343> exception=WebSocketDisconnect(1006)>
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/gradio/queueing.py", line 347, in process_events
    client_awake = await self.gather_event_data(event)
  File "/usr/local/lib/python3.10/dist-packages/gradio/queueing.py", line 220, in gather_event_data
    data, client_awake = await self.get_message(event, timeout=receive_timeout)
  File "/usr/local/lib/python3.10/dist-packages/gradio/queueing.py", line 453, in get_message
    data = await asyncio.wait_for(
  File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.10/dist-packages/starlette/websockets.py", line 133, in receive_json
    self._raise_on_disconnect(message)
  File "/usr/local/lib/python3.10/dist-packages/starlette/websockets.py", line 105, in _raise_on_disconnect
    raise WebSocketDisconnect(message["code"])
starlette.websockets.WebSocketDisconnect: 1006

Config:
1 x RTX A4000
6 vCPU 24 GB RAM
20 GB Disk
50 GB Pod Volume

try adding the argument --no-gradio-queue

try adding the argument --no-gradio-queue

Thank you for the answer! To the last section? I have no any coder experience.

in the last cell, right after $fconfig

I've got the next message right after start or generation:
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/websockets/websockets_impl.py", line 225, in run_asgi
    result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
  File "/usr/local/lib/python3.10/dist-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 270, in __call__
    await super().__call__(scope, receive, send)
  File "/usr/local/lib/python3.10/dist-packages/starlette/applications.py", line 124, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 149, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py", line 25, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py", line 25, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/cors.py", line 76, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/gzip.py", line 26, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/usr/local/lib/python3.10/dist-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/usr/local/lib/python3.10/dist-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 706, in __call__
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 341, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 82, in app
    await func(session)
  File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 287, in app
    await dependant.call(**values)
  File "/usr/local/lib/python3.10/dist-packages/gradio/routes.py", line 517, in join_queue
    if blocks._queue.server_path is None:
AttributeError: 'Blocks' object has no attribute '_queue'

use the latest A1111 notebook, you'll find it inside the folder latest_notebooks

The same thing again, now with --no-gradio-queue argument in the latest A1111 notebook from latest_notebooks.
✔ Connected
Startup time: 6.1s (import torch: 2.4s, import gradio: 0.9s, setup paths: 0.9s, other imports: 0.3s, load scripts: 0.7s, create ui: 0.3s, gradio launch: 0.3s, add APIs: 0.1s).
DiffusionWrapper has 859.52 M params.
Applying attention optimization: sdp... done.
Model loaded in 3.8s (load weights from disk: 0.6s, create model: 0.6s, apply weights to model: 0.8s, apply half(): 0.9s, move model to device: 0.9s).
Task exception was never retrieved
future: <Task finished name='7wf45pwaupn_305' coro=<Queue.process_events() done, defined at /usr/local/lib/python3.10/dist-packages/gradio/queueing.py:343> exception=WebSocketDisconnect(1006)>
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/gradio/queueing.py", line 347, in process_events
    client_awake = await self.gather_event_data(event)
  File "/usr/local/lib/python3.10/dist-packages/gradio/queueing.py", line 220, in gather_event_data
    data, client_awake = await self.get_message(event, timeout=receive_timeout)
  File "/usr/local/lib/python3.10/dist-packages/gradio/queueing.py", line 453, in get_message
    data = await asyncio.wait_for(
  File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.10/dist-packages/starlette/websockets.py", line 133, in receive_json
    self._raise_on_disconnect(message)
  File "/usr/local/lib/python3.10/dist-packages/starlette/websockets.py", line 105, in _raise_on_disconnect
    raise WebSocketDisconnect(message["code"])
starlette.websockets.WebSocketDisconnect: 1006

try updating controlnet extension and does the error prevent the generation ?

does the error prevent the generation ?
Yes, 'cause I can't get any result today. Could it be because of a 'bad' config or unstable connection?

try updating controlnet extension
Oh, I thought it's up to day in your adaptations. But I'm not particularly in tech theme in this case.


Feature: Introducing GKE Provisioner in Devtron as Plugin

🔖 Feature description
Add a seamless one-click GKE cluster provisioning capability to Devtron, empowering users to effortlessly setup GKE clusters for iterative testing.
🎤 Pitch / Usecases
Imagine your infrastructure relies on GKE, and you frequently need to test your application in various scenarios. This plugin becomes your go-to tool, allowing you to effortlessly provision a GKE cluster with a single click. Whether you need to perform multiple tests or simply want to set up clusters for different purposes, the GKE Provisioner simplifies the entire process, enhancing your testing and development workflows.
🔄 Alternative
No response
👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Potential duplicates:

[#4403] Feature: Integrate Cloudanix ImageScanner into Devtron Plugin (65.66%)

Potential duplicates:

[#4403] Feature: Integrate Cloudanix ImageScanner into Devtron Plugin (65.66%)

Potential duplicates:

[#4403] Feature: Integrate Cloudanix ImageScanner into Devtron Plugin (65.66%)


Else if's

Still haven't gotten round to these, yet they're so simple.
P.S. sorry for issue spam, just dumping all of my previous ideas/todo's before I forget them...

@raoulvdberge remember to close the issues that you complete ^_^

Implemented in 7ed3ff9dee2b8aa7b83cace90016f0042a472274.


Add prometheus/grafana performances sample in test-network directory

add the ability to separate start a prometheus and grafana server either in the fabric docker network test or as a separate network
provide a sample prometheus configuration that connects to the fabric test network to collect metrics
provide a sample grafana dashboard to collect some of the more interesting statistics
provide a README explaining how to setup this environment

We may want to let folks know that they can get metrics directly from Prometheus by going to localhost:9090. (I think I left this comment somewhere but I cannot find it).


Some elements do not have offsetParent

https://github.com/SAP/openui5/blob/master/src/sap.ui.core/src/sap/ui/core/delegate/ScrollEnablement.js#L244

Could you please add more information about the circumstances under which this happens.
If you could provide a minimal example in jsbin that would be perfect.

@DenisSiemens: Could it be that oElement is an SVGElement in your case?
According to spec SVG Elements do not have the property offsetParent. Chrome differed from the spec and had offsetParent implemented for SVGs but removed it with a recent release, see this discussion.

No. That was Standard OpenUI5 Control. m.Wizard

Hi Denis,
please refer to the answer from sirion. Without a minimal example in jsbin we cannot help you.
Kind regards

No Problem. I just wanted to help you. Because the solution is rather simple: just check if offsetParent is not null.
But with new 1.32.9 Version i cannot reproduce it.


[BUG] Messages are still put into the queue twice

EVM relay messages are still put into the consensus queue twice. I've seen this in the logs several times, here is an example from querying the queue.
Steps to reproduce:
Trigger a logic call

related to https://github.com/VolumeFi/paloma/issues/1432

From the mainnet logs, it seems to only get triggered when scheduling jobs, possibly by a bot. The messages are slightly different, with different deadline field, so the job execution is being called multiple times with the same payload.
I couldn't reproduce it locally by triggering job executions, though. The only way to achieve a similar result was to change the codebase to call ExecuteJob concurrently, using the same context. The context gets rewritten between calls, so we get the same ID applied more than once.
Could a smart contract be doing be doing multiple calls within the same context? How can I apply one locally to test this?

@maharifu I'm convinced it's a smart contract who's issuing these calls, yes. It's possible that the event handler is getting fired more than once. Depending on how that is handled (I imagine it's like just a for event in all_events: handle(ctx)), it could mean executing the function twice with the same context, yes.
@verabehr We had a different ticket the last time I looked into this, where we also linked the contracts responsible for sending those messages. Can you find it?

@byte-bandit (@maharifu) I think you're referring to this one here https://github.com/VolumeFi/paloma/issues/1432.

Closing as a bug. This will require a feature to handle over-eager CW submits.


Kafka manager was failed to start with error AdminClient not initialized yet, cannot process request.

Hi Guys,
Is there anyone know how to solve this issue ?  kafka manager can not be started with error "2017-05-09 22:33:45,442 - [ERROR] - from kafka.manager.actor.cluster.KafkaAdminClientActor in kafka-manager-system-akka.actor.default-dispatcher-6
AdminClient not initialized yet, cannot process request : KAGetGroupSummary(ArrayBuffer(fjord-integration-group1, RawChangeConsumer),[])"
=====================>>>>>>>>>>>>>>>copying more log here for further checking>>>>>>>>>>
2017-05-09 22:33:43,444 - [INFO] - from kafka.manager.actor.cluster.BrokerViewCacheActor in kafka-manager-system-akka.actor.default-dispatcher-10
Updating broker view...
2017-05-09 22:33:45,425 - [INFO] - from kafka.manager.actor.cluster.KafkaManagedOffsetCache in KafkaManagedOffsetCache
Backfilling group metadata for ArrayBuffer(fjord-integration-group1, RawChangeConsumer)
2017-05-09 22:33:45,442 - [ERROR] - from kafka.manager.actor.cluster.KafkaAdminClientActor in kafka-manager-system-akka.actor.default-dispatcher-6
AdminClient not initialized yet, cannot process request : KAGetGroupSummary(ArrayBuffer(fjord-integration-group1, RawChangeConsumer),[])
2017-05-09 22:33:45,451 - [INFO] - from kafka.manager.actor.cluster.KafkaAdminClientActor in kafka-manager-system-akka.actor.default-dispatcher-6
Creating admin client with broker list : <IP_ADDRESS>:9092,<IP_ADDRESS>:9092,<IP_ADDRESS>:9092,<IP_ADDRESS>:9092,<IP_ADDRESS>:9092,<IP_ADDRESS>:9092

the kafka version: <IP_ADDRESS>
the kafka manager version  : <IP_ADDRESS>

Just read the log... It says it isn't initialized, then it goes and initialize it.....
Creating admin client with broker list : <IP_ADDRESS>:9092,<IP_ADDRESS>:9092,<IP_ADDRESS>:9092,<IP_ADDRESS>:9092,<IP_ADDRESS>:9092,<IP_ADDRESS>:9092

I meet this problem too,however the init logs didn't disappear.It seems that something has been stuck.

This issue has been solved after I re-deploy kafka manager on AWS, so if you have the similar deployment on AWS, please have a try to re-deploy.
About the root cause, I am still trying to figure out, when I have progress, I will keep updated here.

怎么解决啊，总是timeout

是不是因为 kafka 频繁reblance,   kafka-manager监听zk节点，刷topic相关的监控数据有关系

hi, I used the following version and same issue happened.
cmak: <IP_ADDRESS>
kafka: 2.4.0
any clues to fix it ?


Can you provide Wheel type installation package of slimpy?

Hi,I install always fail.
 Using cached slmpy-0.3.0.tar.gz (11 kB)
    ERROR: Command errored out with exit status 1:
     command: 'C:\ProgramData\Anaconda3\envs\python3.7\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\dell\\AppData\\Local\\Temp\\pip-install-m74qp5cb\\slmpy_72136caa5ac443cbb317d7db9e7f1086\\setup.py'"'"'; __file__='"'"'C:\\Users\\dell\\AppData\\Local\\Temp\\pip-install-m74qp5cb\\slmpy_72136caa5ac443cbb317d7db9e7f1086\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\dell\AppData\Local\Temp\pip-pip-egg-info-9bqfgarm'
         cwd: C:\Users\dell\AppData\Local\Temp\pip-install-m74qp5cb\slmpy_72136caa5ac443cbb317d7db9e7f1086\
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\dell\AppData\Local\Temp\pip-install-m74qp5cb\slmpy_72136caa5ac443cbb317d7db9e7f1086\setup.py", line 46, in <module>
        with open('VERSION') as fversion:
    FileNotFoundError: [Errno 2] No such file or directory: 'VERSION'

Obviously. it don't find VERSION file from slmpy-0.3.0.tar.gz.
I download source code, manual install python setup.py sdist. but fail again!
install error message:
(python3.7) PS C:\Users\dell\Desktop\slmpy> python .\setup.py sdist
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\python3.7\lib\site-packages\pkgconfig\pkgconfig.py", line 91, in _wrapper
    return func(*args, **kwargs)
  File "C:\ProgramData\Anaconda3\envs\python3.7\lib\site-packages\pkgconfig\pkgconfig.py", line 125, in exists
    return call(cmd) == 0
  File "C:\ProgramData\Anaconda3\envs\python3.7\lib\subprocess.py", line 339, in call
    with Popen(*popenargs, **kwargs) as p:
  File "C:\ProgramData\Anaconda3\envs\python3.7\lib\subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "C:\ProgramData\Anaconda3\envs\python3.7\lib\subprocess.py", line 1207, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".\setup.py", line 181, in <module>
    pkgconfig.parse("eigen3")["include_dirs"],
  File "C:\ProgramData\Anaconda3\envs\python3.7\lib\site-packages\pkgconfig\pkgconfig.py", line 248, in parse
    _raise_if_not_exists(package)
  File "C:\ProgramData\Anaconda3\envs\python3.7\lib\site-packages\pkgconfig\pkgconfig.py", line 102, in _raise_if_not_exists
    if not exists(package):
  File "C:\ProgramData\Anaconda3\envs\python3.7\lib\site-packages\pkgconfig\pkgconfig.py", line 93, in _wrapper
    raise EnvironmentError("pkg-config probably not installed: %r" % e)
OSError: pkg-config probably not installed: FileNotFoundError(2, '系统找不到指定的文件。', None, 2, None)
(python3.7) PS C:\Users\dell\Desktop\slmpy>

Hi @jtyoui
Thanks for writing. I don't really have time to maintain this anymore, it's also kind of pointless since Leiden was published. Leiden is implemented in igraph now.
Feel free to make a PR if you want this bug fixed.


[Bug]: Default value 0 is not supported

What happened?
When adding default value 0 to a TextInput with currencyMask added the field is just empty instead of showing 0.
\Filament\Forms\Components\TextInput::make('full_commission_amount')               ->numeric()               ->readOnly()               ->disabled()               ->currencyMask(thousandSeparator: '.', decimalSeparator: ',', precision: 2)               ->label('100 % Commissie Bedrag')               ->prefix('€')               ->minValue(0)               ->default(0)               ->live(),

How to reproduce the bug
See 'What happened'
Package Version
2
PHP Version
8.2
Laravel Version
11.4
Which operating systems does with happen with?
No response
Notes
No response

what is the exact package version that you use?

I can't reproduce this bug.
When the default value is set to 0 in the create page it's get populated without any problem.
In the edit page it's not getting loaded but that's not related to our package if you create a simple TextInput in the edit page the default value is not getting populated.

According to the doc https://filamentphp.com/docs/3.x/forms/fields/getting-started#setting-a-default-value
That's intentional behavior. the default value only works if the form is not getting filled from the model, thus creating a page.


mqadmin updateBrokerConfig 更新配置参数，配置文件写入了过多的默认配置内容

Before Creating the Bug Report

[X] I found a bug, not just asking a question, which should be created in GitHub Discussions.

[X] I have searched the GitHub Issues and GitHub Discussions  of this repository and believe that this is not a duplicate.

[X] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment
maxos, linux
RocketMQ version
4.9.7一下版本
JDK Version
1.8.0
Describe the Bug
更新brokerPermission参数之后
把内存的参数都写入了配置文件了
Steps to Reproduce
更新之前的conf文件内容
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.

brokerClusterName = DefaultCluster
brokerName = broker-a
brokerId = 0
deleteWhen = 04
fileReservedTime = 48
brokerRole = ASYNC_MASTER
flushDiskType = ASYNC_FLUSH

执行更新命令
./bin/mqadmin updatebrokerconfig  -n namesrv:9876 -b 3f5ca737fb49:10911 -k brokerPermission -v 4
配置文件多出很多内容
...
deleteWhen=04
bitMapLengthConsumeQueueExt=112
fastFailIfNoBufferInStorePool=false
enableMultiDispatch=false
defaultTopicQueueNums=8
flushConsumeQueueThoroughInterval=60000
notifyConsumerIdsChangedEnable=true
fileReservedTime=48
brokerPermission=4
transferMsgByHeap=true
pullThreadPoolQueueCapacity=100000
brokerId=0
maxTransferCountOnMessageInDisk=8

What Did You Expect to See?
更新brokerPermission参数，只添加brokerPermission本身的kv值
What Did You See Instead?
配置文件写入了过多的默认参数值
Additional Context
No response

almost configs are default，and the default configs are necessary.
for example:deleteWhen=04 mean schedule thread execute time.
it is better if we can get more detail;


refactor: consistency and cleanup

Made a couple improvements.

Replaced outdated fx_version with cerulean.
Fixed notify type and removed position so user setting gets used.
Fixed consistent use of quote type.
Removed unused es_extended and oxmysql imports.
Added ox_lib to dependencies.
Used of ox_libs instead of lib.locale() function.

Also just committed a fix for restricted on the command.

thanks Skryptific ❤


Issue converting the generated tiles to MBtiles

Hi! I’ve used the sectional chart shapes from your repository and successfully generated the tiles. They are structured in the Tiles directory. and they turned out great! My goal is to eventually convert them into MBTiles. However, I keep running into errors. What’s the best method to convert them to MBTiles?
Here’s the script I’m currently using:
#!/bin/bash
set -e

# Change to the directory where the script is located
cd "$(dirname "$0")"

CHARTS=("Albuquerque" "Anchorage" "Atlanta" "Bethel" "Billings" "Brownsville" "Cape_Lisburne" "Charlotte" "Cheyenne" "Chicago" "Cincinnati" "Cold_Bay" "Dallas-Ft_Worth" "Dawson" "Denver" "Detroit" "Dutch_Harbor" "El_Paso" "Fairbanks" "Great_Falls" "Green_Bay" "Halifax" "Hawaiian_Islands" "Houston" "Jacksonville" "Juneau" "Kansas_City" "Ketchikan" "Klamath_Falls" "Kodiak" "Lake_Huron" "Las_Vegas" "Los_Angeles" "McGrath" "Memphis" "Miami" "Montreal" "New_Orleans" "New_York" "Nome" "Omaha" "Phoenix" "Point_Barrow" "Salt_Lake_City" "San_Antonio" "San_Francisco" "Seattle" "Seward" "St_Louis" "Twin_Cities" "Washington" "Western_Aleutian_Islands" "Wichita")

rm -f all_charts.vrt || true
rm -rf webviewer/tiles || true

# Print the current working directory and list files for debugging
echo "Current working directory: $(pwd)"
echo "Files in the current directory:"
ls -l

process_chart() {
  local CHART=$1
  CHART_DIR="${CHART//_/ }"
  SHAPEFILE_NAME=$(echo "${CHART}" | tr '[:upper:]' '[:lower:]' | tr '-' '_')
  echo "Processing chart: $CHART"

  if [ "$CHART" == "Western_Aleutian_Islands" ]; then
    for PART in "East" "West"; do
      SOURCE_FILE="${CHART}/${CHART_DIR} ${PART} SEC.tif"
      DEST_FILE="${CHART}/${CHART_DIR} ${PART} cropped.tif"
      SHAPEFILE_PART_NAME="${SHAPEFILE_NAME}_$(echo ${PART} | tr '[:upper:]' '[:lower:]')"
      echo "Source file: $SOURCE_FILE"
      echo "Destination file: $DEST_FILE"
      echo "Shapefile: sectional_chartmaker/${SHAPEFILE_PART_NAME}.shp"

      if [ ! -f "$SOURCE_FILE" ]; then
        echo "Error: Source file $SOURCE_FILE does not exist."

        The Tiling operation produces redundant tiles where charts overlap at their boundaries, and this will end up being many thousands of individual images due to the multiple zoom levels. The tiles need to go through a merging operation to merge these duplicate images into a single image, and then processed into an mbtiles database using another python utility named mbutil, you can find that in this project's directories.  Look at the code in make.js to see how this is being done.


PL: Add v2 protocols to PL

Migrate key protocols into v2 and add to APIv2 subdomain and branch (apiv2)

cc @umbhau Need a specific list of what protocols need to be migrated for launch

Done


support empty string value (#430)

#430
if the key exist in consul, convert value=NULL to "".
if you need NULL value, you have to remove the key in consul.

@takeseem Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@takeseem Thank you for signing the Contributor License Agreement!

[INFO] Spring Cloud Consul Sample ......................... FAILURE [ 16.761 s] ???
it is like javadoc error.

[INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:javadoc' has not been previously called for the module: 'org.springframework.cloud:spring-cloud-starter-consul-all:jar:2.0.0.BUILD-SNAPSHOT'. Trying to invoke it...
Picked up _JAVA_OPTIONS: -Xms1024m -Xmx2048m
[WARNING] Creating fake javadoc directory to prevent repeated invocations: /home/ubuntu/spring-cloud-consul/spring-cloud-starter-consul-all/target/apidocs
[ERROR] Error fetching link: /home/ubuntu/spring-cloud-consul/spring-cloud-starter-consul-all/target/apidocs/package-list. Ignored it.
[WARNING] Javadoc Warnings
[WARNING] Picked up _JAVA_OPTIONS: -Xms1024m -Xmx2048m

[INFO] spring-cloud-consul-dependencies ................... SUCCESS [ 11.654 s]
[INFO] Spring Cloud Consul ................................ SUCCESS [ 29.856 s]
[INFO] Spring Cloud Consul Core ........................... SUCCESS [ 22.360 s]
[INFO] Spring Cloud Consul Config ......................... SUCCESS [01:16 min]
[INFO] Spring Cloud Consul Discovery ...................... SUCCESS [02:57 min]
[INFO] Spring Cloud Consul Binder ......................... SUCCESS [ 15.150 s]
[INFO] Spring Cloud Starter Consul ........................ SUCCESS [  0.104 s]
[INFO] Spring Cloud Starter Consul Bus .................... SUCCESS [  0.108 s]
[INFO] Spring Cloud Starter Consul Config ................. SUCCESS [  0.217 s]
[INFO] Spring Cloud Starter Consul Discovery .............. SUCCESS [  0.156 s]
[INFO] Spring Cloud Starter Consul All .................... SUCCESS [  0.290 s]
[INFO] Spring Cloud Consul Sample ......................... FAILURE [ 16.761 s]
[INFO] Spring Cloud Consul Docs ........................... SKIPPED

If the value of the key returned from the api is null, I don't want to change it.


Update aws-java-sdk-core to 1.12.373

Updates com.amazonaws:aws-java-sdk-core from 1.12.336 to 1.12.373.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.amazonaws", artifactId = "aws-java-sdk-core" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "com.amazonaws", artifactId = "aws-java-sdk-core" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #174.


Nix CI: run integration tests

Run integration tests from the Nix CI
Closes https://github.com/MinaProtocol/mina/issues/11126

Closes #11126

@balsoft It appears that CI is red. Likely, no reviewer wants to review a broken branch. Please mark this as 'draft' if you are not working on it. Please make the CI green if you are working on it and want a review; please then obtain the review.
/cc @mzajda0mina

@balsoft Merging something into a branch that is not 'develop' does not close the associated issue, FYI.

It appears that CI is red
Yes, sorry, my mistake. I pushed a broken merge commit.

Both the failing integration tests (opt-block-prod and peers-reliability) succeed when I trigger them locally. This is really weird.

Integrations assumes that the artifacts are deployed on the specific cluster: gke_o1labs-192920_us-west1_mina-integration-west1 on GCP before running the test executive. I understand this aims to map the current workflow. However, it creates a strong coupling between the code base and the cloud provider.

!ci-build-me

!ci-build-me

!ci-build-me


Feature Request: Sidebar Filter

Feature Request: Ability to filter the list of symbols in the sidebar view.

Hi, can you describe in more detail how this feature works? Is it a 'live' filtering, by fzf? by kind?
Note that at the moment we do have the symbols.filter config option, just that you can't do it live on the sidebar.

Yes, It would be a live filter, by symbol name. As you type, it would narrow down the list of symbols in the sidebar.
Could maybe be similar to how how neo-tree does fuzzy_finder


[RESOLVED] Unavailable by ICMP ping

Problem started at 13:35:14 on 2022.09.16
Problem name: Unavailable by ICMP ping
Host: ZO-FG
Severity: High
Operational data: Down (0)
Original problem ID: 3699
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23123&eventid=3699

Problem has been resolved in 49m 0s at 14:24:14 on 2022.09.16
Problem name: Unavailable by ICMP ping
Host: ZO-FG
Severity: High
Original problem ID: 3699


KeyboardAwareListView failed propType renderScrollComponent

When using the KeyboardAwareListView I get the following warning:

This happens because the propType renderScrollComponent is required in the RN ListView component.
I solved the warning by overriding the renderScrollComponent and marking is as not required in the KeyboardAwareListView component.
/* @flow */

import React, { PropTypes } from 'react'
import { ListView } from 'react-native'
import KeyboardAwareMixin from './KeyboardAwareMixin'

const KeyboardAwareListView = React.createClass({
  propTypes: {
    ...ListView.propTypes,
    viewIsInsideTabBar: React.PropTypes.bool,
    resetScrollToCoords: PropTypes.shape({
      x: PropTypes.number,
      y: PropTypes.number,
    }),
    renderScrollComponent: React.PropTypes.func, //Added this line
  },
  mixins: [KeyboardAwareMixin],

  componentWillMount: function () {
    this.setViewIsInsideTabBar(this.props.viewIsInsideTabBar)
    this.setResetScrollToCoords(this.props.resetScrollToCoords)
  },

  render: function () {
    return (
      <ListView
        ref='_rnkasv_keyboardView'
        keyboardDismissMode='interactive'
        contentInset={{bottom: this.state.keyboardSpace}}
        showsVerticalScrollIndicator={true}
        {...this.props}
      />
    )
  },
})

export default KeyboardAwareListView

Is this a valid solution?

Please use v0.2.7 and test again your issue. I will reopen if the issue is still present.


Support routing to non K8s upstream services

Envoy Gateway intends to support upstream services & endpoint running in all environments as highlighted here. This issue tracks how this can be
achieved using the Gateway API

possible today by creating EndpointSlice and linking them to a Service
https://gateway.envoyproxy.io/latest/user/traffic/routing-outside-kubernetes/


Extensions very slow to install when attached to Docker container

Type: Bug
When trying to install an extension to a session attached to a running Docker container (from MacOS), the installation takes a long time -- sometimes up to a half an hour for the Python extension, for example. I notice that it also causes the Virtual Machine Service process to peg the CPUs during this time. None of these issues arise when installing extensions under the host OS.
VS Code version: Code 1.78.2 (b3e4e68a0bc097f0ae7907b217c1119af9e03435, 2023-05-10T15:00:40.428Z)
OS version: Darwin arm64 22.4.0
Modes:
Sandboxed: No
Remote OS version: Linux x64 5.4.0-1104-gcp

System Info

Item
Value

CPUs
Apple M1 Max (10 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
5, 5, 4

Memory (System)
64.00GB (0.27GB free)

Process Argv
--crash-reporter-id 57711574-f0db-4702-a245-8b56bbeb7d3a

Screen Reader
no

VM
0%

Item
Value

Remote
SSH: ProdCPU-10

OS
Linux x64 5.4.0-1104-gcp

CPUs
Intel(R) Xeon(R) CPU @ 2.60GHz (128 x 2600)

Memory (System)
503.87GB (494.00GB free)

VM
0%

Extensions (20)

Extension
Author (truncated)
Version

quitcontrol-vscode
art
4.0.0

stan-vscode
iva
0.2.4

jupyter-keymap
ms-
1.1.0

remote-containers
ms-
0.292.0

remote-ssh
ms-
0.102.0

remote-ssh-edit
ms-
0.86.0

remote-wsl
ms-
0.78.5

vscode-remote-extensionpack
ms-
0.24.0

remote-explorer
ms-
0.4.0

remote-server
ms-
1.2.2023051509

material-product-icons
PKi
1.5.0

isort
ms-
2022.8.0

python
ms-
2023.8.0

vscode-pylance
ms-
2023.5.20

jupyter
ms-
2023.4.1011241018

jupyter-keymap
ms-
1.1.0

jupyter-renderers
ms-
1.0.15

vscode-jupyter-cell-tags
ms-
0.1.8

vscode-jupyter-slideshow
ms-
0.1.5

r
REd
2.8.0

(2 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
3biah626:30602489
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
showlangstatbar:30737416
azdwalk:30721579
pythonms35:30701012
pythonfmttext:30731395
fixhidewlkth:30730051
showsbindicator:30730056

Can you please share following logs while you reproduce the issue?

F1 > Developer: Set Log Level... > Trace
Reproduce the issue
F1 > Open View > Remote
F1 > Open View > Window

Looks like you have only share Window log. Can you also please share remote log - F1 > Open View > Remote

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Add lua-MessagePack to the benchmark

Is it possible to have a comparison to this: https://github.com/fperrad/lua-MessagePack

Went ahead and did it myself.


Difference between original Matice-package and yours

Hello,
Could you explain to me what the biggest difference is between the original matice and yours?
I'm having problems to use yours, since I can't access your repo to pull:
<EMAIL_ADDRESS>Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I ended up fixing this issue by using yarn add matice

Hi
It was only for dependecies updates because package was not update with his dependecies
if now it’s okey we can re set the original repository for matice. I have done it temporary only for that

Hi, thanks for the quick response. I don't know what the (biggest) problems were with the out-of-date dependencies, but in normal use I don't feel any effect of the original matice.

No biggest problem. Github bot security show alert for dependencies (js) issues. But cant update so warning stay here continually…
But no problem if you think it was not a biggest problem we can go back to the original repo.

Or maybe, if we want to keep our dependencies up to date, we need to fix the errors is get:
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads<EMAIL_ADDRESS>Directory: /var/www/html
Output:
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I found out that using npm install can handle it "correctly":
$ npm install
npm WARN skipping integrity check for git dependency<EMAIL_ADDRESS>

I was using yarn because nom gave me some problems at first, but I was mixing up now.
After I reverted the package-lock.json to its original state and throw away my node_modules, I could use npm install correctly. The only thing is that it replaces the name on line 2 from "budget" to "html"

Thanks for your feeback, i dont use yarn, i will see shortly it for make it working with github repo
Strange thing your rename, i make the same thing and it's the good name on line 2


Fix InteractsWithContainer::withoutMix

Original mix() returns HtmlString instance, fake-mix should return the same in case if a developer uses toHtml() explicitly. Example:
mix('asset.css')->toHtml()

It seems that this breaks the test suite.


[QUESTION] Tax now fixed in mollie plugin ?

I just saw that you merged a PR that fixes the tax calculation by doing it as mollie expects it to for mollie API.
Does this now fix all tax related issues? And if so, I thought you wanted to have this fixed in the Shopware core, was there a reason against it?
By doing this I guess using AvaTax would also work correctly as you will recalculate the taxes according to the mollie?
When can we expect an official release with this fix?

I also added on comment to the merged commit:
https://github.com/mollie/Shopware6/commit/3afbf7730d36d79c85ef10ec85fc2083144be24e#r47026188

Some further questions regarding tax caluclation:
https://github.com/mollie/Shopware6/commit/3afbf7730d36d79c85ef10ec85fc2083144be24e#diff-630924269304a2416293cdd4e6de58d4fbfb1e5f75d00f397491229f2c815d50R409
Why only if the calculated tax is not the same as the calculated gross price? That would mean we have a taxation of 100% which is kind of unlikely?
Don't you want to check againt the order line item amount to determine the full amount was taxed?
And here https://github.com/mollie/Shopware6/commit/3afbf7730d36d79c85ef10ec85fc2083144be24e#diff-630924269304a2416293cdd4e6de58d4fbfb1e5f75d00f397491229f2c815d50R415
I think you should first do the * 100 and then round with 2 decimals because otherwise it is possible to have floating point imprecisions.

hi
there is a reason for this.
shopware calculates hoizontal and vertical taxes depending on the config.
also sometimes the values make problems with rounding
mollie only supports one tax calculation and is very strict with the values
this is for the orders api on line item level
the only way to bring payments through in edge cases is to use the correct rounding and algorithm
also this is not the total amount itself but for cross checks.
it shouldnt create wrong capture values. if you find a case let us know please
im not deeply involved in mollie sw6 but in 5 where also rounding problems had to be solved
cheers
christian

@boxblinkracer
I am fine with it being fixed in the plugin and to send different taxes to mollie.
However, the line I referenced, changes the unit line item price ($unitPrice *= ((100 + $vatRate) / 100);). Isn't mollie's total calculated from those? Or is the total provided separately?
If so, wouldn't mollie also throw an error as the expected total does not match?
Personally, I am a actually surpsied they do those checks as I think the payment provider really should not care about the tax calculation but use the same one as provided by the shop but that is an altogether different issue 😄

i think that looks like converting from net to gross price
that also in sw5
im on the phone now. well check it out tomorrow at work on the desktop screen :)

Yes with Shopware 6.3.5 there is a fix for the calculation of tax amounts for promotion lineItems. My tests with this version showed that now same vat amounts in shopware and in mollie are calculated in certain edge cases.
But: All merchants with pre 6.3.5 shopware also need a fix.
And: There are different tax calculation ways (horizontal and vertical calculation) which lead to different tax amounts in edge cases.
We have to address the problem like the mollie api awaits that tax calculation is done.
So we decided to take the gross prices from shopware (this is what the customer has to pay) and recalculate the tax amounts for each lineitem that has to be given to mollie api with the mollie api algorithm.
I added a comment in your PR statement to point out why the unit price has to be calculated with net price configuration

@boxblinkracer @schmitzcarsten Ah yes, I re-checked the code and after explanation it makes sense.
One final question though: mollie does not have a problem with unitPrice * quantity != orderlineItemPriceWithTax?  Because due to this calculation this could happen I guess - didn't check the whole code.
Actually I am fine with adding it, I just mentioned it as there were two previous tax related issues that were closed as Shopware was supposed to fix it, see https://github.com/mollie/Shopware6/issues/49 and https://github.com/mollie/Shopware6/issues/28
However, I think ensuring the values are correct before sending it to mollie is the better solution anyway because in theory there could be a lot of different ways taxes are calculated (e.g. third party plugins) that might otherwise fail it.
So I am all for this being in the plugin. I was just wondering.

Ah sorry, Of course, the order line item total can be different to unitPrice * quantity. After all that is to be expeced with horizontal tax calculation 😄

One last question. With your fix, if I were to implement e.g. Avalara AvaTax for US tax calculation which is quite tricky, it would still work as you prepare the taxes as Avalra needs them, correct?

Some last question - probably just an error from my understanding but in this part of the tax code (not the changes):
https://github.com/mollie/Shopware6/blob/master/src/Service/OrderService.php#L409
Why is that line there? what is it supposed to check because it looks like it checks the calculated tax against the price for which the tax was calculated and those should nearly always be different ?

@schmitzcarsten
Ah and thanks for your effort in getting this fixed. As mentioned personally I think it is weird that mollie actually does those checks as various countries do tax calculations differently, there is no universal way to do it for all.

@AndreasA As I do not know AvaTax I may only give limited answers for this. If AvaTax manipulates the orderLineItems for tax calculation, than there may be a problem because calculation is done via the orderLineItems. As long the taxes (rates) and gross prices keep correct in the orderLineItem, this should work without any problems.
line 409:
The TaxCollection is a collection and therefore there may be different tax rates for one item (think about a promotion that discounts of a 7% and a 19% product). To get this in a correct way for calculation a mixed taxrate is calculated because mollie api may only accept one tax rate for an item. In line 409 there is only a check if price and tax are not equal and if so the mixed tax rate is calculated. But to be honest, there could not be any circumstance where tax amunt and price are equal because tax amount is percentage of price. It is used legacy code. We have to refactor some code step by step
The release is planned for next Monday (planned revision tag 1.3.12)

Hi @schmitzcarsten I know that it is done due to multiple tax rates which makes sense and those can happen more often than one might expect (AvaTax).
However, I just meant that the check in line 409 does not make any sense. You should just calculate it, if their is more than one tax rate I guess but from what you said you will adjust this anyway.
Regarding AvaTax, there is currently no plugin available. However, where I work we implemented it for Shopware6 for one of our customers. Their API basically returns tax amount and tax rates per line item which we then store per line item.
The prices themselves are shown as net as the tax is only calculated at the end and added to the net taxes. We adjust the calculated taxes and the tax rates. So I guess it would work? Not an issue yet, as none of our customer uses mollie and AvaTax so far but it would be nice to know if it works. The gross/net prices would of course have been adjusted too.
One issue might be that AvaTax might have the same tax rate for the same line item twice. In order to fix this, I created a child line item that has the second tax rate. However, that should be propogated to the parent correctly too I guess?
I guess I could try to install it in our test setup for that one customer.

P.S. you can close the issue, after your answer to the last question regarding AvaTax 😄

We get the orderlineitems from shopware. If this lineitem is correctly prepared regarding prices and taxes (gross / net price configuration of customer), then it will be calculated correctly. Even if there is the same tax rate more than one time it should be no issue because we would recalculate taxrate by price tax amount in these cases.


No typescript support

Tying to use the package in a typescript project:
Could not find a declaration file for module 'vuetify-daterange-picker'

Hey!
So, I no longer maintain the project but if it still works for you you can do the following workaround to get past through TS.
If you have scaffolded your project using vue-cli, you should have a shims-vue.d.ts file where you can add the following line
declare module 'vuetify-daterange-picker';

This should make TS warning go away.


Initialize with a sequence?

Hi, thank you for your fantastic visualization package! What's the best way to initialize the process w/ a seed sequence, such that you iteratively modify that initial sequence based on the target? I saw in the documentation that you can specify an init_sequence - would this be the best way? When I try to initialize with this parameter to a predetermined string, I get the following error:
~/anaconda3/envs/deeptoehold/lib/python3.6/site-packages/seqprop-0.1-py3.6.egg/seqprop/generator/seqprop_generator.py in build_generator(seq_length, n_sequences, n_samples, sequence_templates, init_sequences, p_init, batch_normalize_pwm)
197
198         if init_sequences is not None :
--> 199                 initialize_sequences(generator, init_sequences, p_init)
200
201         #Lock all generator layers except policy layers
NameError: name 'generator' is not defined
Thanks for any assistance!

Hi, I'm glad you're finding the package useful, and thanks a bunch for finding and reporting this bug!
A variable was not named properly in the initialisation script. It has been fixed and committed to the master branch now.
I also added a new notebook example showing how to use the 'init_sequences' parameter. You pass a list with as many sequences as the 'n_sequences' parameter is set to (e.g. n_sequences=10 --> pass a list with 10 initial sequences). Also, the p_init parameter specifies the PWM probability each initial nucleotide should be set to (i.e. p_init closer to 1.0 means lower initial PWM entropy).
Let me know if you have any other questions or find additional issues!
Best,
Johannes


Knowing when to wait before fetching

Suppose you have two loaders, one which loads some featured photos and one which loads photos for a particular user:
async function loadFeaturedPhotos() {
  let ids = SV_FEATURED_PHOTO_IDS;
  let photos = await photoLoader.loadMany(ids);
  return photos;
}

async function loadUserPhotos(userId) {
  let user = await userLoader.load(userId);
  let photos = await photoLoader.loadMany(user.photoIds);
  return photos;
}

Let's say you run them at the same time:
let ... = Promise.all([
  loadFeaturedPhotos(),
  loadUserPhotos(4),
]);

If my understanding here is right, the featured photos and current user will fetch simultaneously, then the photos loader will fetch separately to get the user's photos. If the photos loader was really expensive and you'd save significantly by batching the two photos requests together, is there any recommendation for how to make that happen using DataLoader? Specifically, somehow realizing that there'd be another photos request and deferring the fetch until then.
It seems like this would be hard to codify without the full data dependencies known statically but I'm hoping there's a smart technique I haven't thought of.

I think there is missing information in order to do this programmatically, but also some bad corner cases to solve.
The primary question here - the missing information - is how long photoLoader should wait to run it's batch. To avoid latency, DataLoader's answer to this question is "until the call stack unwinds", but we could make a different decision if we wanted to. Maybe the right thing to do if batching is really that valuable is always add 100ms of latency because in aggregate the opportunity to batch will make that latency worth it. Waiting 100ms maybe catches the second call to photoLoader after userLoader returns.
That's probably not the best we can do in this scenario though. Adding latency atop an already expensive operation is probably not the best user experience, and maybe userLoader only takes 2ms so 100ms of latency was an awful choice, or maybe it takes 102ms in which case we spent the cost but got no benefit. Also, this mechanism would have us wait another 100ms after the second call to photoLoader just in case there are any other calls, even though we know there won't be based on reading this example, so it's more wasted latency.
Another way to solve this might be explicitly declaring that you want to wait for another call to load() but you just don't have the ids yet. In this example we could maybe declare that the call is coming. DataLoader just cares about what in frame of execution the call to load() occurs. If we can ensure that something is called on the loader instance in that frame, then we have enough info to know to wait to coalesce a batch.
Maybe: waitFor(Promise<any>): void
async function loadUserPhotos(userId) {
  let userPromise = userLoader.load(userId);
  photoLoader.waitFor(userPromise);
  let user = await userPromise;
  let photos = await photoLoader.loadMany(user.photoIds);
  return photos;
}

Or maybe: load(K | Promise<K>): Promise<V>
async function loadUserPhotos(userId) {
  let photos = await photoLoader.loadMany(loadUserPhotoIDs(userId));
  return photos;
}

async loadUserPhotoIDs(userId) {
  let user = await userLoader.load(userId);
  return user.photoIds;
}

Thoughts?

(Now I don't remember what actual situation I was pondering that prompted me to file this issue.)
I like the waitFor idea, though I wonder if that requires a breach of encapsulation in the general case. The photo loader might live at a relatively low level of the stack, but this sequence of fetches might be coordinated at a higher level.
The load(promise) API feels less intuitive and clunkier at a first glance, but it might have the potential to accommodate this use case if this structure was idiomatic and fetching was always performed bottom-up. Ultimately it seems like this also can't work in every case because your first fetch could determine whether you want to do a second fetch at all.
Both good ideas though; thank you! I suppose there's probably no magic bullet. :)


Make downgrade warnings more detailed

...and detect when the warning is not needed, aka empty folders as described below
https://github.com/Fabulously-Optimized/vanilla-installer-python/issues/80

paigaldaja_meta.json contains a list of files installed by the installer and whatever metadata frontend provides; frontend reads back the metadata to check if it is a downgrade. If you remove the file, the installer behaves as if it was a fresh install.


YCSB-401 Introduce multiGet workload in HBaseclient like the PE tool in

Allows multiGet options to be specified while doing read only workloads specifically gets.

Needs a README change explanung how and when to use the option.

nit: please update commit messages to start with "[hbase]" to indicate that you're only making changes to the hbase datastore binding.

We now have some minicluster based tests courtesy of @cmccoy.
@ramkrish86 could you add some tests that flex this proposed functionality. I think it'll give a better sense of the impact in practice.


Move optional path components to the end for [Debian] and [Ubuntu]

Refs https://github.com/badges/shields/pull/3372

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @scop!

  Generated by :no_entry_sign: dangerJS against 312505ebde29149c69afcdefb954b39e58536204

Thanks for this! Much appreciate it, especially since we disagreed.


really slow on firefox android browser

Using nexus 5 with firefox browser. the effect is really slow . not on desktop firefox though.

https://www.netmarketshare.com/browser-market-share.aspx?qprid=2&qpcustomd=1
I would close this ticket. Firefox mobile has feeble marketshare


ufshcd_ioctl: User buffer is NULL

journal is full of messages like
ufshcd-qcom 1d84000.ufshc: ufshcd_ioctl: User buffer is NULL!

Hi rinigus :
Have you found the root cause of the question.
I have encountered the same problem. If you have resolved it, can you please share some experience to me ?
Thanks

No, not really. For you, is it with using this port?

Yes, the log is the same as yours.

Apparently its cause by this line:
https://github.com/sonyxperiadev/kernel/blob/d8fd4ac9efb7fa69a7be4da7444b25d42ae8af42/drivers/scsi/ufs/ufshcd.c#L9551

The question is: is it a hardware bug which is not fixable and making this better to be a warning than an error or its a software bug somewhere else requiring a fix.

 I had those in Android as well, if I remember correctly.

I'm getting these in my Halium port on the Xiaomi Redmi K20 Pro, too.

Same on Android, closing


Updated Readme file

Updated the README.md file.
please review.

So can you please check all script by yourself?
I typed
$ smtc -h
but nothing happend....
so please confirm everything again

also
https://github.com/rakutentech/StateDesignEngine/pull/5/commits/023d09327e08f1f485920f2b791f76d2ac6c22ab#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R25
Don't put your local repository link on the README
so please put the official link like
https://github.com/rakutentech/StateDesignEngine/blob/main/__tests__/testdata1.txt

Line 79
=====
needed?