ShadPopover doesn't work correctly with BackdropFilter

Steps to reproduce
I want to be able to blur/darken the background when a ShadPopover is open. However if I try to add a BackdropFilter to blur the background the container of the popover itself is blurred.
Please either add a way to blur/darken the background behind the popover or fix this bug so we can add the blur/darken ourselves.
As you can see from the image it almost works as some of the elements of the popover are unblurred but the container itself also gets blurred.
ShadPopover(
                    controller: popoverController,
                    popover: (context) => BackdropFilter(
                      filter: ImageFilter.blur(sigmaX: 3, sigmaY: 3),
                      child: SizedBox(
                        height: 200,
                        width: 200,
                        child: Column(
                          children: [
                            Text("Menu 1"),
                            Text("Menu 2"),
                            Text("Menu 3"),
                          ],
                        ),
                      ),
                    ),
                    child: OutlinedButton(
                      child: Text("Press"),
                      onPressed: () {
                        popoverController.show();
                      },
                    ),
                  )

Expected results
The background should be blurred while the popover should be unblurred.
Actual results
The background and the popover container are blurred
Platform
iOS
Code sample
Code sample
ShadPopover(
                    controller: popoverController,
                    popover: (context) => BackdropFilter(
                      filter: ImageFilter.blur(sigmaX: 3, sigmaY: 3),
                      child: SizedBox(
                        height: 200,
                        width: 200,
                        child: Column(
                          children: [
                            Text("Menu 1"),
                            Text("Menu 2"),
                            Text("Menu 3"),
                          ],
                        ),
                      ),
                    ),
                    child: OutlinedButton(
                      child: Text("Press"),
                      onPressed: () {
                        popoverController.show();
                      },
                    ),
                  )

Screenshots or Video
None
Logs
None
Flutter Doctor output
N/A

Do you like this result?

That looks perfect, is that possible with how the code is at the moment?

Forgot to mention in the OP that I may have just been using the widget incorrectly.

No I'm going to release a new version soon, adding a new parameter filter to the Popover and Select components


Importers and external storage don't stay connected

Issue description:
Importers and external storage don't stay connected to network.
What happens:
I have a crafting grid, solderer and two importers and an external storage connected to a controller. The importers and external storage routinely disconnect, but only seem to do so when chunks are reloaded.
I have broken and reattached the importers, and lost items.
I have broken and reattached cable, and the external storage will show in the controller, but none of the external items appear in my crafting grid.
What you expected to happen:
They remain in my network.
Steps to reproduce:

Use importer and external network
Go to nether, or far enough away to get chunks to reload
I can't reproduce every time, so hope that 1+2 worked. But I can reproduce easily enough so I am happy to try somethings to help track this down.
...

Version (Make sure you are on the latest version before reporting):

All The Mods Lite: 1.7
Minecraft: 1.10.2
Forge: <IP_ADDRESS>5
Refined Storage: 1.1.2

Does this issue occur on a server? [yes/no]
don't know
If a (crash)log is relevant for this issue, link it here:
[pastebin/gist/etc link here]

Duplicate of #370


Is CSS in JS the only way to go?

I have no final opinion on this question. Will just list my thoughts on subject.
In section "What about styling things in React?" default option is CSS in JS. I see where it goes it is hype technology.  But there are definitely downsides.
Overhead:

memory: css in js will leave in JS memory
parser: JS parser have enough to parse already with 100kb JS pages. It will parse JS and then render CSS (or set Inline styles of element?).

Dan Abramov recommends styled-components for CSS in JS. He also says that plain old CSS is good option too. styled-components supports theming and maybe will support Server Side Rendering.
Good articles on other than CSS in JS options:

http://andrewhfarmer.com/how-to-style-react/
http://andrewhfarmer.com/css-modules-by-example/

This section needs to be reworked.
Your correct it should point to the basics first plain CSS and go from there.
I've pretty much settled on styled-components myself.
Again I'll tackle this next week.  Thanks for pointing out the 'hype by default' defiantly want to point out more options.

Found some time today - let me know what you think https://github.com/timarney/react-faq/blob/master/README.md#css-and-react

it is definitely improvement. I also like decision diagram from one post

But this diagram also need emphasize, that styled-components does not support SSR and CSSModules doesn't work good for theming.
I'm imagine series of decision diagrams (SVG which can have html links inside).
Do you want zero-config? Choose: CRA or Next.js. Do you want SSR? Then Next.js will not work for you just yet - link to pending issue. Styled components will not work for you too. And blueprint.js.
Diagrams can something like this. My imagination gone wild.

Closing this issue - at least for now.  Using a diagram like that would be nice ... can revisit this moving forward.


How To Use The Model Wrappers?

I've read through the docs, and I've seen examples trying to figure out why when I use --model I keep getting this error.
AttributeError: module 'memgpt.personas.personas' has no attribute 'DEFAULT_PRESET'
I use these commands:
set OPENAI_API_BASE=http://localhost:1234
set BACKEND_TYPE=lmstudio
Then:
python -m memgpt --model zephyr-7B-beta

Will push a patch for this soon, but for now run it with the flag --persona sam

Closing as this has been rolled into the newest release -- pip install -U pymemgpt


multi gpu inference

Thanks for your great work. I tried to inference on a machine with multiple gpu, it could detect all gpu (I also set the n_gpus as the number of gpu). it works fine on dlib, after running dlib part, it halts on just after "Model Created" and  "Model Loaded".
Could I have some hints how I could try on multi gpu machine? Thanks for your help!

Hi,
I think inference works pretty fast with single-GPU itself.  Any reason you specifically want to use multi-GPU?

Hi @prajwalkr , I am trying to make a real time chat bot for fun, but she reply me slow as she has to reply me in 10 seconds :D
For your fun (I will add the citation when really launch it) :
https://www.twitch.tv/monalisalive

Hi @prajwalkr , when I run it on multiple gpu machine, I observed that all GPU allocate the same amount of ram , no matter it is one gpu or 8 gpu. E.g. When I run it on single gpu machine, it use up 7GB gpu ram. I run the same thing on 8 gpu machine, each gpu also use up 7GB ram.

@chikiuso noticed the bot is following facial movements while lipgan for a single image only follows mouth movements are you using some other model as well?

Hi @ak9250 , yes I use other model as well, the speech input is normal tts

Hi @prajwalkr , when I run it on multiple gpu machine, I observed that all GPU allocate the same amount of ram , no matter it is one gpu or 8 gpu.

By default Tensorflow uses up all GPUs available. Run it as:
CUDA_VISIBLE_DEVICES=0 python batch_inference.py .... to use gpu:0 and CUDA_VISIBLE_DEVICES=1 python batch_inference.py .... to use `gpu:1 and so on.

Hi @prajwalkr , I am trying to make a real time chat bot for fun, but she reply me slow as she has to reply me in 1min and 20 sec :D

Are you taking inference on a single static image or a video? Static image would be faster, as it does not have to do face detection in each frame.

Closing due to inactivity. Please re-open if needed.


Use relative directories to simulation.json file

Allow use of ~ in simulation.json or config.json.


Render Tasklist depending on the key of the selected Tab

Get tasklist of the tab that is currently selected

Merged in #460 PR


Create new document is not working with objective c

you can add another swift layer between this component and your app and use the swift layer instead in your objective-c code.


feat: add a 1:1:1 playbook

I've been meaning to do this for a while. There aren't really any playbooks on management topics, but it seems like this is a good thing thing to write about, and a good place to put it.

Great topic to cover. Thanks for writing this up and then, even if it's not a blog post, should we tweet this from ArtsyOpenSource account?

Question to consider, that I wondered about myself in participating in 1-on-1-on-1s: should the "artifacts" of management relationships (like written reviews, feedback, or goals) be handed off as part of this process?

That's a good question. Maybe it depends on whether the written artefacts have been shared between the manager and report, or whether they are just the manager's notes? In the former case then I would say yes, in the latter no.

THat's an interesting idea - we have playbook subdirs for agile, support and technology_radar, so maybe we could add one for management?

Does this look OK to everyone?

How do we go about tweeting this from ArtsyOpenSource account?


Add winston

Added Winston logging.
This is the bare minimum for Winston.
Questions:

Where should we pipe logs, currently it's the Console however should we potentially do a file?
What else needs to be logged?

Let's leave this PR open until those questions are answered and this PR is a bit more substantial.

We might consider throwing logs to /var/log? Since you bring up logging, what is worth tracking under the auspices of #60? It's not really a log, but would go the same place, potentially. Something like /var/log/world might be appropriate in the way that a software like Apache has error, auth, and other misc logs.
Mostly, I think we're concerned with things that are of the different levels: warn, error and info, but what constitutes each is an open question. There have been a couple of moments recently when the daemon has gone down. I'd like to at least start with those.


Update README and some :lipstick:

💄 :allthethings:

This is the documentation PR to go along with all the organization changes from the last stretch of PRs. In addition to some simple documentation, also needed to move fromPairs out of the Pair namespace and into helpers. It does not construct a Pair and as such does not need to 🚢 with it.

Coverage remained the same at 100.0% when pulling 42d747dc2f2482b161cef63b14ba89c28f76401e on update-docs into cce0adb23247626be0c1ae7797a245d6766e6bba on master.


ILI9341 LCD display support for ESP32-WROVER

Hi devs,
Is there any ongoing development of an officle SPI Driver for the LCD Display? Espressif is selling the DevKitJ aka ESP32-WROVER-Kit without any offical drivers or api for the onboard display.
I already used the "spi_master" example by rudi but this is very very complex and not even fast enough to do "good" stuff on it. Even to draw text or something is very hard because you have to render it and provide the RGB values of every pixel, line by line.
It would be nice if someone could integrate the Adafruit solution of the ili9341 display.
Have a nice day!

Hi @Byteschmiede,
A high level API for the ILI9341 is coming, and will be supported in ESP-IDF.
There is low-level ILI9341 support in the NESEMU code, and using Arduino libraries (either via the arduino-esp32 esp-idf component or the Arduino IDE) also works but is slow as you note.
We'll update this issue once an integrated option is available.

Hi @projectgus
Thank you !

Hi @projectgus,
you wrote that high-level API for the ILI9341 is coming. Can you tell me when the API will be ready.
Thank yuo

@Byteschmiede Have you tried this one? Since it says ILI9341 is supported.
https://github.com/loboris/ESP32_TFT_library
By next week I will be testing it... Waiting for my ESP32 to arrive :)


Test for nulls function

Added unit test for the nulls function

@yegor256 This the same PR as #182, but now all tests are ok

@rultor merge

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@yegor256 Done! FYI, the full log is here (took me 12min)


Vector fields

Purpose:
#438
New functionality (code):
Provide a code example demonstrating new functionality achieved with this pull request (if applicable)
plt.PlotVectorField(vectors, xs, ys);

New functionality (image):

I think this looks pretty good, the only thing is it doesn't use colour to show magnitude, which I feel would be a nice feature. I don't want to duplicate code that's already in the heatmap PR however.

The example in #438 shows the size of the arrowhead scaling with the magnitude of the vector... perhaps this would make the gap at X=0 look less awkward? Maybe something similar for line width? 🤔

Matplotlib calls these "quiver plots". Makes sense since a quiver is a collection of arrows 😄
https://pythonforundergradengineers.com/quiver-plot-with-maatplotlib-and-jupyter-notebooks.html
I think PlotVectorField() like you have it reads better...

Makes sense since a quiver is a collection of arrows 😄

Oooooohhh... that's why it's called that. I was thinking quiver the verb, and I couldn't think of any way that it made sense.

I added the pendulum example, because it is the canonical example of vector fields, at least for physics:

I'm curious what your thoughts would be on having LaTeX axis labels? For example, the y axis in the pendulum screenshot is a little bland in comparison to
\dot{\theta}

Or if you insist on Leibniz's notation:
\frac{d\theta}{dt}

I know you aren't keen on dependencies, and this isn't exactly something that's fun or easy to implement on your own. Especially when it's just to make labels and titles look a little spicier.

I'm curious what your thoughts would be on having LaTeX axis labels?

I like the concept... but I don't see System.Drawing being able to keep up. We'd have to bring in a tight dependency to another package, and right now ScottPlot is dependency-free and I'd love to keep it that way.
If a user really wants that level of customization, the way to go is probably for them to use their tex package to render a Bitmap then draw it on top of an existing plot.

I just committed another quiver plot pull request, Wasn't aware that this exists already.

I just committed another quiver plot pull request (#440), Wasn't aware that this exists already.

no worries! I'll close that PR, merge this one shortly, and we can continue to experiment with alternative implementations in new PRs as ideas pop up

@Benny121221 it might be cool to make a variant of this like PlotFunction, where you pass in a formula and the lines are generated programmatically...

I really want to find something more elegant than passing in a Vector2[,] and two double[] arrays. This feels convoluted, and it's weirdness is apparent in the quickstart code...
I'm surprised how few structs system.numerics actually offers. I don't want to make my own struct here, but I'm really limited. Vector4 is close but no cigar 😝
I could make an array of tuples or something that pairs a System.Drawing.PointF with a System.Numerics.Vector2 but that seems like a weird mash-up of libraries.
Going the other direction, I'm looking at what matplotlib does. https://matplotlib.org/3.1.0/api/_as_gen/matplotlib.pyplot.quiver.html This is interesting. Their quiver method takes in the equivalent of 4 double[]... I might like this 🤔 It inherently supports non-rectangular grids too, though I can't think of a use case there.
plt.PlotVectorField(posXs, posYs, vecX, vecY);

perhaps an optional argument could be used to scale how long the arrows are
plt.PlotVectorField(posXs, posYs, vecX, vecY, vecScale);

I'm between this or writing my own struct to hold these values. Perhaps PointVector?

I really want to find something more elegant than passing in a Vector2[,] and two double[] arrays. This feels convoluted, and it's weirdness is apparent in the quickstart code...

I think the weirdness comes from how there are two competing ideas of vectors. The CS perspective where they are points defined by the position of their tail, and the Physics perspective where they are quantities defined by their direction and magnitude.
The CS perspective is most convenient for the evolution of a phase space under a differential equation, which is why the pendulum example is so simple, there's no trig required to convert between the two interpretations.
The Physics perspective is more convenient for situations where you care about the direction, not the position of the tail, which is why the slope field example feels klunky.
Personally, my recommendation would be to keep with the CS perspective, and offer a function to convert between, something like Tools.GetTailPosition()

Ah, I misunderstood you, you meant argument list weirdness. My only idea that you didn't already bring up was to do the same as heatmaps, where they take Vector2[,], and then optional parameters to move or scale the axis: double[] axisOffsets, double[] axisMultipliers. I don't think that really solves the problem though :/

Going the other direction, I'm looking at what matplotlib does. https://matplotlib.org/3.1.0/api/_as_gen/matplotlib.pyplot.quiver.html This is interesting. Their quiver method takes in the equivalent of 4 double[]... I might like this 🤔

That's what the other vector field PR did, it's what I'd lean towards personally. Plus I liked his demo, I think electromagnetism is a lot simpler when you see it as a phase space.

The reason why my demo looks 'nice' is because I removed the CustomEndCap and drew the arrow head myself. I encountered nothing but pain when I tried to make scaling work nicely with a CustomEndCap.
There is quite a bit more work involved in doing all the trig calculations. However, this shouldn't be much of an issue. Quiver plots with more than 10,000 vectors are usually way too crowded to be useful.

The reason why my demo looks 'nice' is because I removed the CustomEndCap and drew the arrow head myself. I encountered nothing but pain when I tried to make scaling work nicely with a CustomEndCap.
There is quite a bit more work involved in doing all the trig calculations. However, this shouldn't be much of an issue. Quiver plots with more than 10,000 vectors are usually way too crowded to be useful.

@hhubschle is referring to #440
I didn't notice that before! This is good to take note of. I agree the System.Drawing caps are pretty lousy. Thanks for pointing it out!

I ran dotnet-format so idk what that's about

I ran dotnet-format so idk what that's about

This just started happening! #452 was affected too. I think a recent update to dotnet changed the behavior of dotnet format to now sort using statements (#425).
I just started working on ScottPlot again tonight, so I'm free to merge this if/when you think it's ready. Want me to leave it as it is for you to keep poking at it or do you think it's ready for a merge now?

I think I'll add hhubschle's demo, to me it looked like two opposite charges but looking at the source I didn't recognize the math.
Other than that I can't think of much which needs adding, idk how you feel about changing the parameter list, I remember you bringing that up earlier?


<EMAIL_ADDRESS>hash check failed

sudo scoop install php74 -g
Installing 'php74' (7.4.8) [64bit]
php-7.4.8-Win32-VC15-x64.zip (24,9 MB) [=================================================================================================] 100%
Checking hash of php-7.4.8-Win32-VC15-x64.zip ... ERROR Hash check failed!
App:         versions/php74
URL:         https://windows.php.net/downloads/releases/php-7.4.8-Win32-VC15-x64.zip
First bytes: 50 4B 03 04 14 00 00 00
Expected:    e992a4fda898ed2dda9b84b86b3c02e3f3644daebf817bc74609583ffe79bdce
Actual:      553767b9f8c4b55a23141e78b449cdd4a460e21521d3734fe91012ca715df4bf

This was probably fixed by the automated update to version 7.4.9 and 7.4.10


In UI Gallery, select box is below other elements.

When I open the select box in the UI gallery, it appears to open the list behind all of the elements in the subsequent rows.
I've attempted to use a stack, and run :toFront on the select box, but it still shows up behind.

I also looked through the api, and I wasn't able to find a way to add a row to a specified index after the fact, in order to attempt to get the dropdown to be at the end of the list of child entities.

I finally fixed this issue here.

I had to revert the change due to unforeseen issues, so I'll re-open this until I find a new solution.

Is there any update on fixing this? (Or what were the unforseen issues?)

@WickedShell @compmstr I just fixed the issue here:
https://github.com/oakes/play-clj/commit/bb7de511154dca3ba735ef1bfe28983196d62eed
I'm embarrassed for ignoring this problem for so long, but 2015 was a year of many distractions =)

I just pushed 0.4.8-SNAPSHOT to clojars if you'd like to test it.

Ah, guys, I know exactly why I reverted this last time. The fix I provided causes actor entities to be drawn before all other entities, so if you try to mix them with (for example) texture entities, they will always be drawn in the background. This would really confuse people. Unfortunately I think I need to revert my fix again. If there is a way I can fix this without causing that, I'll do it.

I found a simpler and lower-impact way of fixing this problem. I simply changed the UI gallery project so it calls the 1-arity version of render!. This prevents the entities from being drawn twice, which was the root of the problem. Here's the fix:
https://github.com/oakes/play-clj-examples/commit/2c65404d01589e35e2f17b364431ef20ec3c8ec4

Thanks! That actually explains why when I copied the demo UI code into my exsisting project I didn't see the error, as I was already using the 1-arity version, I just figured I'd trip over the problem later :)


Resolve syncing conflicts from repo_sync_working_branch to master

Pull request opened by Docs to resolve syncing conflicts from repo_sync_working_branch to master.

@pubdesktech - I resolved the merge conflict so this should be set to merge. thanks


Use ValidateMembers decorator in all Grid Client workloads

Which package/s are you suggesting this feature for?
grid_client
Is your feature request related to a problem? Please describe
Workloads' validation doesn't work properly.
Describe the solution you'd like
Use the decorator implemented in this PR

Work completed:
Validated all workloads using ValidateMembers.


[netgen] no abolute paths

Have been a long time since my last absolute paths PR 😆

Would you mind adding issue case, or effect of the fix?

Would you mind adding issue case, or effect of the fix?

warning: There should be no absolute paths, such as the following, in an installed package:
  /Users/leanderSchulten/git_projekte/vcpkg/packages/netgen_arm64-osx
  /Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed
  /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/netgen
  /Users/leanderSchulten/git_projekte/vcpkg/downloads
Absolute paths were found in the following files:
  /Users/leanderSchulten/git_projekte/vcpkg/packages/netgen_arm64-osx/debug/lib/python3.11/site-packages/netgen/config.py
error: Found 1 post-build check problem(s). To submit these ports to curated catalogs, please first correct the portfile: /Users/leanderSchulten/git_projekte/vcpkg/ports/netgen/portfile.cmake

warning: There should be no absolute paths, such as the following, in an installed package:
  /Users/leanderSchulten/git_projekte/vcpkg/packages/netgen_arm64-osx
  /Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed
  /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/netgen
  /Users/leanderSchulten/git_projekte/vcpkg/downloads
Absolute paths were found in the following files:
  /Users/leanderSchulten/git_projekte/vcpkg/packages/netgen_arm64-osx/debug/lib/python3.11/site-packages/netgen/config.py
error: Found 1 post-build check problem(s). To submit these ports to curated catalogs, please first correct the portfile: /Users/leanderSchulten/git_projekte/vcpkg/ports/netgen/portfile.cmake

Sorry there was no failure in my local vcpkg install and this log was not found in buildtress. And my local test building failed with not occ_libs.
Could you please give some reproduce steps and a simple example case?

vcpkg x-set-installed 'netgen[python]'


Fix title tag

Pull request overview
Flagged in the accessibility audit that the current title isn't appearing.
Pull request checklist
Please check if your PR fulfils the following:

[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been reviewed and added / updated if needed (for bug fixes / features)
[x] Tests have been run locally and are passing (run_tests_locally())
[x] Code is styled according to tidyverse styling (checked locally with tidy_code())

What is the current behaviour?
Currently you get a blank confused title

What is the new behaviour?
The title pulls through, there's no extra blank title

Anything else
Prompted in part by our conversation this morning @jen-machin

 Make title pull through to HTML in shiny template

Theoretically I have no issue with this change, but have you checked it works as expected with NVDA or similar? Is the plan to always have the title in the header and then have the top level page title as a h1, or is the plan to remove those individual page titles? See the attendance dashboard here:

The bit in the red circle is the bit I'm referring to. Slightly off track from this PR but if the plan is to keep those page titles then I think we need to make sure they're more descriptive about the actual page that the user is on.

I think I agree - in my head, those titles you've circled would be h1s and separate to the overall title of the app. So more like the title of the tab as we have it now, so in the attendance one that particular view I'd make the h1 'User guide' if that makes sense.
The hope is they'd announce whenever the page changes h1, but the title would stay static. So like in EES where the title is EES, but there's different publication titles as h1s.
(with all the plans to update the UI for the template we can update it to how we want to later)

And I've not tested this myself with any software, just checked that we no longer had a blank title in the head of the html


Epic: API evolution

[ ] Define alpha annotation(s) (conversion.apis.kcp.dev/v1alpha2) on APIResourceSchema that contain CEL that is called during CRD conversion
[ ] Add CEL converter to apiextensions-apiserver
[ ] Bound CRDs will need a way to point back at the actual CEL (annotation?)
[ ] Conversions must go through a single hub version
[ ] Feature gated

Demo:

kubectl apply yaml with v1alpha1
kubectl get returns v1alpha2, see results of conversion

0.8 Check in here.  I don't see anything scoped per milestone, can we break down this epic more to see what is expected when?  Thanks!

I started looking into this before my PTO. I will get it updated this week. Going to move to 0.9 for the time being.
/milestone v0.9

Started some API brainstorming https://hackmd.io/_EnPemBUTF-b7WFs8o6Gjw

This has been subsumed by https://github.com/kcp-dev/kcp/issues/2014
/close


allow for disabling strict parameter checking for diagnostic purposes

Sometimes users want to test activity parameter expansion in new ways but are disallowed from doing so with the strict parameter checking rules. An option should be provided which allows for extraneous parameters to emit warnings instead of exceptions.

This looks like a duplicate if #12

duplicate of #12


More explication on the set-up please?

Hi,
Could you precise more the set-up, at the end, what does one have to do, after adding the environment variables?
Is it some code to run by yourself on your own laptop, every week?
Is it running somewhere on some cloud? Is it going to run by itself thanks to GitHub "actions" or something automatic like this?
Thanks for the details!
@Naereen
PS it looks very nice, good job :+1:

GitHub Actions automatically runs waka-box on on the cloud as a scheduled action at regular intervals. There should be no need to do anything else once the instructions have been followed. 👍


[iOS] shouldOverrideUrLoading issue with intercepting link to open a new window using url launcher

Environment

Technology
Version

Flutter version
3.13.8+

Plugin version
6.0.0

iOS version
17.x+

Xcode version
15.2

Url launcher
6.1.14

Issue was introduced on v6.0.0-beta.26 by this commit
https://github.com/pichillilorenzo/flutter_inappwebview/commit/e62348adc7efae3ce38dc6c84729ed17c0f361c2
Last worked on v6.0.0-beta.25
Device information:  iPhone 15
public func webView(_ webView: WKWebView,
                 decidePolicyFor navigationAction: WKNavigationAction,
                 decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) {
        var decisionHandlerCalled = false
        let callback = WebViewChannelDelegate.ShouldOverrideUrlLoadingCallback()
        callback.nonNullSuccess = { (response: WKNavigationActionPolicy) in
            decisionHandlerCalled = true
            decisionHandler(response)
            return false
        }
        callback.defaultBehaviour = { (response: WKNavigationActionPolicy?) in
            if !decisionHandlerCalled {
                decisionHandlerCalled = true
                decisionHandler(.allow)
            }
        }
        callback.error = { [weak callback] (code: String, message: String?, details: Any?) in
            print(code + ", " + (message ?? ""))
            callback?.defaultBehaviour(nil)
        }

        let runCallback = {
            if let useShouldOverrideUrlLoading = self.settings?.useShouldOverrideUrlLoading, useShouldOverrideUrlLoading, let channelDelegate = self.channelDelegate {
                channelDelegate.shouldOverrideUrlLoading(navigationAction: navigationAction, callback: callback)
            } else {
                callback.defaultBehaviour(nil)
            }
        }

        if windowId != nil, !windowCreated {
            windowBeforeCreatedCallbacks.append(runCallback)
        } else {
            runCallback()
        }
    }

When shouldOverrideUrlLoading intercepts a link to launch using url launcher package the windowId here is not always null and then never executes the runCallback causing the link to not open. In testing introducing a delay around the following piece caused the issue to happen more frequently:
 if windowId != nil, !windowCreated {
    windowBeforeCreatedCallbacks.append(runCallback)
} else {
     runCallback()
 }

Expected behavior:
shouldOverrideUrlLoading should execute every time so that the url launcher can open the link
Current behavior:
runCallback is never executed(because windowId is not null,  and windowBeforeCreatedCallbacks adds the runCallback but is not executed until webview is destroyed). so the link does not open. The windowId gets removed / reset when the webview is destroyed.
Steps to reproduce

Create a webview utilizing the shouldOverrideUrlLoading
Intercept links to launch a url
Open and close that link rapidly. If this doesn't work, use a page with two links and alternate between them.
3.1. Another option is to update the runCallback check in a delay which increases the problem:

DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) {
       if windowId != nil, !windowCreated {
            windowBeforeCreatedCallbacks.append(runCallback)
        } else {
            runCallback()
        }
}

See below example of the issue.
Where you see UrlLauncherService see
import 'package:injectable/injectable.dart';
import 'package:url_launcher/url_launcher_string.dart';

@lazySingleton
class UrlLaunchService {
  Future<bool> launchUrl(String url) async {
    if (await canLaunchUrlString(url)) {
      return launchUrlString(url);
    } else {
      return Future.value(false);
    }
  }
}

This url launcher is another package that when we intercept a path in shouldOverrideUrlloading we tell it when to allow opening an external browser, or telephone functionality.
/// Webview options.
          final InAppWebViewSettings initialSettings = InAppWebViewSettings(
            isInspectable: state.appContextModel.showDebugConsole,
            allowFileAccessFromFileURLs: true,
            allowUniversalAccessFromFileURLs: true,
            useShouldOverrideUrlLoading: true,
            mediaPlaybackRequiresUserGesture: false,
            applicationNameForUserAgent: widget.applicationNameForUserAgent,
            transparentBackground: true,
            useHybridComposition: true,
            forceDark: ForceDark.AUTO,
            allowsInlineMediaPlayback: true,
            disallowOverScroll: widget.preventBounce,
            sharedCookiesEnabled: true,
            allowsBackForwardNavigationGestures: false,
            allowingReadAccessTo: widget.url == null &&
                    (widget.initialFile != null &&
                        widget.initialFile!.startsWith('file'))
                ? WebUri(widget.initialFile!)
                : null,
          );

          return MediaQuery.removePadding(
              context: context,
              removeTop: true,
              child: Scaffold(
                resizeToAvoidBottomInset:
                    getIt.get<PlatformService>().isAndroid,
                appBar: widget.title != null
                    ? SecondaryAppBarWidget(
                        title: widget.title!,
                        closeAction: () async {
                          await widget.webviewIntegrationService
                              .onLoadWebviewShellClosed();
                        },
                      )
                    : null,
                body: FutureBuilder(
                      future: _webviewBridgeJsFile,
                      builder: (BuildContext context,
                          AsyncSnapshot<String> snapshot) {
                        if (snapshot.connectionState == ConnectionState.done &&
                            snapshot.hasData) {
                          return InAppWebView(
                            key: _webViewKey,
                            initialUrlRequest: widget.url != null
                                ? URLRequest(
                                    url: WebUri(getIt
                                        .get<DebugManager>()
                                        .addDebugOverridesToUri(
                                          widget.url?.rawValue,
                                          appContextModel:
                                              state.appContextModel,
                                        )!),
                                  )
                                : (widget.initialFile != null &&
                                        widget.initialFile!.startsWith('file'))
                                    ? URLRequest(
                                        url: WebUri(widget.initialFile!))
                                    : null,
                            initialFile: (widget.initialFile != null &&
                                    !widget.initialFile!.startsWith('file'))
                                ? widget.initialFile
                                : null,
                            gestureRecognizers: gestureRecognizers,
                            initialUserScripts:
                                UnmodifiableListView<UserScript>(
                              [
                                UserScript(
                                  source: snapshot.data!,
                                  injectionTime:
                                      UserScriptInjectionTime.AT_DOCUMENT_START,
                                ),
                              ],
                            ),
                            initialSettings: initialSettings,
                            onWebViewCreated: (controller) async {
                              _webViewController = controller;

                              widget.webviewIntegrationService
                                  .setWebViewController(controller);

                              widget.webviewIntegrationService
                                  .injectJavaScriptHandlers(context);
                            },
                            shouldOverrideUrlLoading:
                                (controller, navigationAction) async {
                              _logger.info(
                              'shouldOverrideUrlLoading: $navigationAction',
                              stackTrace: StackTrace.current,
                            );
                            bool allowNavigation = false;
                            Uri? url = navigationAction.request.url;

                            if (url?.scheme == 'blob') {
                              _logger.info('download request.url $url', stackTrace: StackTrace.current);
                            } else if (url?.scheme == 'https') {
                              if (url != null &&
                                  (url.host == initialWebviewHost ||
                                      url.host == 'www.youtube.com' ||
                                      url.host.endsWith('.plaid.com') ||
                                      url.host.endsWith('.driftt.com'))) {
                                allowNavigation = true;
                              } else {
                                _logger.info('BLOCKED navigating within app, url: $url',
                                    stackTrace: StackTrace.current);
                                _urlLaunchService.launchUrl(url.toString());
                              }
                            } else if (url?.scheme == 'tel') {
                              _urlLaunchService.launchUrl(url.toString());
                            } else if (url?.toString() == 'about:blank') {
                              allowNavigation = true;
                            } else {
                              _logger.info('BLOCKED navigating within app, url: $url',
                                  stackTrace: StackTrace.current);
                            }

                            return Future<NavigationActionPolicy>.value(allowNavigation == true
                                ? NavigationActionPolicy.ALLOW
                                : NavigationActionPolicy.CANCEL);
                            },
                          );
                        } else {
                          return const SizedBox.shrink();
                        }
                      },
                    )
                  ],
              ));

I cannot reproduce the issue using the latest plugin version.
https://github.com/user-attachments/assets/5ada50ba-2885-41a1-a13a-db52ccf3bf18
Here is my test code:
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'package:url_launcher/url_launcher.dart';
import 'dart:developer' as developer;

WebViewEnvironment? webViewEnvironment;

Future main() async {
  WidgetsFlutterBinding.ensureInitialized();

  PlatformInAppWebViewController.debugLoggingSettings.enabled = false;

  if (!kIsWeb && defaultTargetPlatform == TargetPlatform.windows) {
    final availableVersion = await WebViewEnvironment.getAvailableVersion();
    assert(availableVersion != null,
        'Failed to find an installed WebView2 Runtime or non-stable Microsoft Edge installation.');

    webViewEnvironment = await WebViewEnvironment.create(
        settings:
            WebViewEnvironmentSettings(userDataFolder: 'YOUR_CUSTOM_PATH'));
  }

  if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) {
    await InAppWebViewController.setWebContentsDebuggingEnabled(kDebugMode);
  }

  runApp(const MaterialApp(home: MyApp()));
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final GlobalKey webViewKey = GlobalKey();

  InAppWebViewController? webViewController;
  InAppWebViewSettings settings = InAppWebViewSettings(
      isInspectable: true,
      allowFileAccessFromFileURLs: true,
      allowUniversalAccessFromFileURLs: true,
      mediaPlaybackRequiresUserGesture: false,
      applicationNameForUserAgent: "Test", // JUST FOR TESTING
      transparentBackground: true,
      useHybridComposition: true,
      forceDark: ForceDark.AUTO,
      allowsInlineMediaPlayback: true,
      disallowOverScroll: true,
      sharedCookiesEnabled: true,
      allowsBackForwardNavigationGestures: false);

  String url = "";
  double progress = 0;
  final urlController = TextEditingController();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: const Text("Official InAppWebView website")),
        body: SafeArea(
            child: Column(children: <Widget>[
          TextField(
            decoration: const InputDecoration(prefixIcon: Icon(Icons.search)),
            controller: urlController,
            keyboardType: TextInputType.url,
            onSubmitted: (value) {
              var url = WebUri(value);
              if (url.scheme.isEmpty) {
                url = WebUri("https://www.google.com/search?q=$value");
              }
              webViewController?.loadUrl(urlRequest: URLRequest(url: url));
            },
          ),
          Expanded(
            child: Stack(
              children: [
                InAppWebView(
                  key: webViewKey,
                  webViewEnvironment: webViewEnvironment,
                  initialUrlRequest: // JUST FOR TESTING
                      URLRequest(url: WebUri("https://inappwebview.dev/")),
                  initialSettings: settings,
                  onWebViewCreated: (controller) {
                    webViewController = controller;
                  },
                  shouldOverrideUrlLoading:
                      (controller, navigationAction) async {
                    developer.log(
                      'shouldOverrideUrlLoading: $navigationAction',
                      stackTrace: StackTrace.current,
                    );
                    bool allowNavigation = false;
                    Uri? url = navigationAction.request.url;

                    if (url?.scheme == 'blob') {
                      developer.log('download request.url $url',
                          stackTrace: StackTrace.current);
                    } else if (url?.scheme == 'https') {
                      if (url != null &&
                          (url.host == 'inappwebview.dev' || // JUST FOR TESTING
                              url.host == 'www.youtube.com' ||
                              url.host.endsWith('.plaid.com') ||
                              url.host.endsWith('.driftt.com'))) {
                        allowNavigation = true;
                      } else {
                        developer.log(
                            'BLOCKED navigating within app, url: $url',
                            stackTrace: StackTrace.current);
                        launchUrl(url!);
                      }
                    } else if (url?.scheme == 'tel') {
                      launchUrl(url!);
                    } else if (url?.toString() == 'about:blank') {
                      allowNavigation = true;
                    } else {
                      developer.log('BLOCKED navigating within app, url: $url',
                          stackTrace: StackTrace.current);
                    }

                    return allowNavigation == true
                        ? NavigationActionPolicy.ALLOW
                        : NavigationActionPolicy.CANCEL;
                  },
                  onProgressChanged: (controller, progress) {
                    setState(() {
                      this.progress = progress / 100;
                      urlController.text = url;
                    });
                  },
                  onLoadStop: (controller, url) async {
                    // JUST FOR TESTING
                    await Future.delayed(Duration(seconds: 1));
                    await controller.evaluateJavascript(
                        source:
                            '''window.open('https://google.com', '_blank');''');
                  },
                ),
                progress < 1.0
                    ? LinearProgressIndicator(value: progress)
                    : Container(),
              ],
            ),
          ),
          ButtonBar(
            alignment: MainAxisAlignment.center,
            children: <Widget>[
              ElevatedButton(
                child: const Icon(Icons.arrow_back),
                onPressed: () {
                  webViewController?.goBack();
                },
              ),
              ElevatedButton(
                child: const Icon(Icons.arrow_forward),
                onPressed: () {
                  webViewController?.goForward();
                },
              ),
              ElevatedButton(
                child: const Icon(Icons.refresh),
                onPressed: () {
                  webViewController?.reload();
                },
              ),
            ],
          ),
        ])));
  }
}

Hi, I retested and I am still able to reproduce. It seems like some race condition. If you open the link wait for the webview to load then it doesn't seem as reproducible as when I open the webview close it and try to open again. It happens after repeated attempts of opening different links and closing them before they open.

Here is my test updated:
https://github.com/user-attachments/assets/89312692-5fa0-447c-afb5-b32cf15f130c
Opening 5 times quickly https://google.com as a test, I end up with only 2 URLs opened with the url_launcher plugin.
Instead, waiting for 1 second after each opening, I end up with all 5 URLs.
But as you can see, the shouldOverrideUrlLoading event is called every time 5 times correctly as expected, so I suppose it is a limitation of the url_launcher plugin or of the Operating System itself that is not capable of opening quickly enough the URLs.
If you have useful logs and a screen recording of the problem, it may be helpful in understanding the circumstances and whether the problem can actually be solved in some other way.

I found this more difficult to replicate on simulator. I built to device and was able to replicate the issue. See here inside of the InAppWebview class in this scenario the windowId and windowCreated values cause it to execute
windowBeforeCreatedCallbacks.append(runCallback)
Instead of runCallback()
In this scenario the link is not opened because windowBeforeCreatedCallbacks are only executed at a different time not right inside of shouldOverrideUrlLoading.

Sorry, but I'm not able to replicate or to understand the steps to reproduce the issue.
windowId will not be null only if the current WebView is a "popup" window webview and windowCreated is a flag used in order to give the developer a chance to capture and manage the events if the created popup window WebView is created on Flutter side. After the new window WebView is created, windowCreated will be true. This happens only when the "onCreateWindow" event is fired from the "main" WebView that is trying to open a new window.
In your case, if the current WebView is not a popup window WebView, it will have a windowId that is null as it is your main WebView and not created on an "onCreateWindow" event.
When you click a link to open a new window, it will call your main "shouldOverrideUrlLoading" event on the Flutter side because windowId is nil as it is your main WebView and not a window, so, the "shouldOverrideUrlLoading" event should be fired correctly for your main WebView.
In your "shouldOverrideUrlLoading" implementation, you are canceling the navigation request based on a specific logic, so "onCreateWindow" won't be fired for those links.
If the WebView that is firing the "shouldOverrideUrlLoading" has a windowId that is not null, then you are running a WebView that is a window and not your main WebView.
In this case, your main WebView is firing the "onCreateWindow" event and you should manage the new window creation request, creating or not a new WebView.
In the newly created WebView, you can use the "shouldOverrideUrlLoading" event and get whatever you want.
If the "onCreateWindow" is fired but you didn't want to be fired, then you should update the "shouldOverrideUrlLoading" event of the main WebView and block the request also for the other URLs.
I tested both scenarios using a real iOS device and it is working as expected.
If you think it is really a bug, at this point, I must have this info:

A project with full code to replicate the issue with steps
A screen recording showing the steps of the unexpected behavior compared to the expected one

Without this info, I cannot go further with this issue as I'm not able to reproduce it unfortunately.
Thanks!


feat: add option to disable user signup on login flow page

Related Issue or Design Document

Checklist

[x] I have read the contributing guidelines and signed the CLA.
[ ] I have referenced an issue containing the design document if my change introduces a new feature.
[x] I have read the security policy.
[x] I confirm that this pull request does not address a security vulnerability.
If this pull request addresses a security vulnerability,
I confirm that I got green light (please contact<EMAIL_ADDRESS>from the maintainers to push the changes.
[x] I have added tests that prove my fix is effective or that my feature works.
[ ] I have added necessary documentation within the code base (if appropriate).

Further comments

See also: https://github.com/ory/elements/pull/108

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

Great stuff, @Benehiko can you PTAL?


Add pre-commit

Closes https://github.com/Diaoul/subliminal/issues/1075
Probably we need to add a PR to clean the code one last time before accepting this PR.

Or maybe is it possible to split the pr and add first the repos that are not failing? Happy to help 😄

thanks but all the errors have been fixed now. This can be merged.


Dark Mode / Light Mode not translated in German language version

ℹ Computer information

PowerToys version: 0.25
PowerToy utility: PowerToys Launcher
Language: German

📝 Provide where the issue is / 📷 Screenshots

Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form
❌ Actual phrase(s)
Chooes a mode

Dark
Light
Windows default
Windows color settings

✔ Expected phrase(s)
Darstellungsmodus auswählen

Dark-Mode
Light-Mode
Standart Windows-Einstellung verwenden
Windows Farbeinstellungen

ℹ Why is the current translation wrong
It's not translatde at all.

Duplicate of https://github.com/microsoft/PowerToys/issues/7632


Flatpak: export a correct list of rpms to Koji

This PR makes the list of RPMs that make up the archive that is sent to Koji correct for Flatpaks - previously it was the list of RPMs for the "base image" that is used to install RPMs into /var/tmp/flatpak-build.
Flatpak-specific checks and post-processing on the rpm -qa output are needed, so rather than extending the rpmqa plugin to be able to run rpm -qa on /var/lib/flatpak-build, logic is added into the flatpak_create_oci plugin instead, and the rpm list is moved to workflow.image_components, so different plugins can fill it in.

OK, after some adventures in git rebasing, I think this covers all the requested changes.


CORS error

Server Information
Cannot fetch the server information.
http://xxxx:8222/varz
this request status is 200
but cors error
not found any result data

NATS server versions prior to v2.9.22 do not support CORS requests, but you can enable JSONP requests from the settings (Click on the top right gear icon).
If this does not resolve your problem please provide more details.

thanks. problem solved

problem solved


Support Tier 1 Cluster API Cloud Providers

Arlon requires testing and certification for each clusterAPI cloud provider.
Background is here
Tier 1

[ ] 🚧  AWS   #55
[ ]  Azure
[ ]  Azure Stack HCI
[ ]  Metal3
[ ]  GCP
[ ]  KubeVirt
[ ]  vSphere
[ ]  Openstack

Aha! Link: https://pf9.aha.io/features/ARLON-154

@cre8minus1 , @bcle   We should create subtasks for each provider and estimate, plan for each separately.
Do we need to add support for any in in near future/ v0.11?


Vim/Neovim version, please?

This is looking really good. Any plans to add a vim/neovim version?
Thanks! ❤💛💚💜💙🖤🧡

Thank you for being so supportive, my dear friend :heart: @kassio :heart:
I plan to create versions for Vim/Neovim, JetBrains' IDEs, and some major terminal emulators like Alacritty.
I'll keep you posted :)


Request for guides / tutorials / documentation

I am looking into improving the documentation for this project and a part of that is creating guides for using Prisma Client Python with existing frameworks.
This issue serves as the place to request that I write a tutorial / guide for any framework, please leave a comment if there is any specific framework you would like me to write a tutorial for!
Guides:

[ ] How to share the same schema between frontend and backend

Hi,
Can we documentation on how to set up tests using the client? I'm using pytest and I have no clue if there an easy way to tear down the created objects after the tests. Moreover, is there a way to configure the client to use a mock instance of the database for testing?
Thank you.

Hey @HOZHENWAI! Thanks for the suggestion, this definitely needs good documentation. In the meantime you can take a look at the conftest.py that we use internally: https://github.com/RobertCraigie/prisma-client-py/blob/main/lib/testing/shared_conftest/_shared_conftest.py
This shows how you can automatically connect to the client and cleanup the database. Let me know if anything else isn't clear / if you have any questions!

Moreover, is there a way to configure the client to use a mock instance of the database for testing?

I'd highly recommend not mocking the Prisma Client. By mocking you are leaving an important layer in your application untested. In my opinion your tests should use as little mocking as possible, only doing so when it would be difficult / expensive to not mock.
If you mock the client you could easily introduce bugs that are not caught by your tests. For example, consider the car where you're running a find_many query where you want all of the records that have a field with a value greater than the given input. By mocking the client, this interaction is never tested. You could accidentally change the query from a gt to a lt or you could be assuming the input is always positive but a negative input is given and your tests would pass.

Hello @RobertCraigie. I have some issues understanding some part of the shared_conftest, so if you don't mind, I'll try to write what I understood and if you could correct me I'd be grateful:

it seems to me that the cleanup is done is the cleanup_client async function, what I don't understand is the process as batch_ "groups write queries into a single transaction". So I have to two questions, if we use a create or a create_many, does the result both get stored into the batch?
about the client_fixture, it looks like the cleanup is always done before returning the client, shouldn't it be after a yield to cleanup the database?
it seems to me that setup_client_fixture is actually the one cleaning up the database after each test, is it right?
how does the persist_data marker work, set it up for a test and the next test will have the created objects in database from the last test?
if i'm not wrong the event_loop should only be used for low level functions used by prisma, right, I am not sure of it's importance for high level testing.
Thank you for your remark. TIL about mocking client.

it seems to me that the cleanup is done is the cleanup_client async function, what I don't understand is the process as batch_ "groups write queries into a single transaction". So I have to two questions, if we use a create or a create_many, does the result both get stored into the batch?

I'm not sure I understand what you mean by "does the result both get stored into the batch?".  The query batching is done so that there is only one internal HTTP call (how we communicate with the Prisma Query Engine) for a slight performance improvement.
This documentation might be helpful for you if you haven't already read it: https://prisma-client-py.readthedocs.io/en/stable/reference/batching/

about the client_fixture, it looks like the cleanup is always done before returning the client, shouldn't it be after a yield to cleanup the database?

For our internal tests we don't really care what the result of the database is, just that before each test the database is clean. If you wanted to perform cleanup after a test is ran, that would be perfectly fine but you'd also want to cleanup before as well, otherwise the first test in your test suite would not have a clean database.

it seems to me that setup_client_fixture is actually the one cleaning up the database after each test, is it right?

Yes that is right, apart from that it is cleaning up the database before each test.

how does the persist_data marker work, set it up for a test and the next test will have the created objects in database from the last test?

The persist data marker works by skipping the database cleanup we do, the way it does this here: https://github.com/RobertCraigie/prisma-client-py/blob/49f54002050b04dad2a846be7c2c7af9072173b2/lib/testing/shared_conftest/_shared_conftest.py#L55
The way I use it is by defining a fixture that will be automatically ran and then decorating every test in the file with persist_data, you can see an example of this here: https://github.com/RobertCraigie/prisma-client-py/blob/main/databases/tests/test_group_by.py
I'd also like to point out that this is purely used for convenience / test speedup, you can completely omit using this in your tests.

if i'm not wrong the event_loop should only be used for low level functions used by prisma, right, I am not sure of it's importance for high level testing.

No you are completely right. The only wwreason it is there is to change the default behaviour of pytest-asyncio which will close the event loop and re-create it for each test. This is a perfectly reasonable default but it means we wouldn't be able to re-use the same Prisma client for each test and would have to connect() again which makes the tests much slower.

Thank you for your remark. TIL about mocking client.

Always happy to help!

Could the custom generator be expanded, I think it's possible but can you use custom generator like "extension" in prisma nodejs? I'd like to add methods to all my models and partials.

Yes you could use a custom generator to generate models that inherit from the default. But it should be noted that you'd have to update your code to use that everywhere which may be a bit annoying.
Unfortunately an equivalent of client extensions isn't possible due to the limitations of the Python type system.
Also unfortunately I don't have the capacity to provide an example right now but I'm happy to help if you run into any issues :)

I'd love a tutorial for working with FastAPI Dependency Injection with a class.
class Commons:
    def __init__(self) -> None:
        self.settings = Settings()
        self.prisma = Prisma()
        self.blob_storage = BlobStorage(self.settings)
        self.metrics = Metrics(self.settings)

    async def _init(self):
        await self.prisma.connect()
        self.user_storage = self.prisma.user

async def get_commons() -> Commons:
    commons = Commons()
    await commons._init()
    return commons

and then
router = APIRouter(
    prefix="/test",
    dependencies=[
		...
    ],
)

as well as
@router.post("/create_user")
async def create_user(
    request: Request,
    background_tasks: BackgroundTasks,
    commons=Depends(get_commons),
):
    await commons.prisma.user.create(data={...})

I'm almost certain there's a better way to do this without re-initing every request but I'm not familiar enough with python prisma to do it.

More documentation on updating arrays. I’m not quite sure how to append to an array with a reference to another object.

Docs on how to use npm based generators alongside the python ones

https://github.com/luisrudge/prisma-generator-fake-data
https://github.com/dangchinh25/prisma-models-graph
https://github.com/samchon/prisma-markdown
https://github.com/pantharshit00/prisma-docs-generator
https://github.com/notiz-dev/prisma-dbml-generator


[BUG][WEBJS] - GET /sessions list takes long if a WebJS is "starting" or scan qr

[BUG][WEBJS] - GET /sessions list takes long if a WebJS session is in "STARTING" or right after scanning QR

Will be fixed in 2025.6.7


Button configured with 'Submit All' only executing automation request for one VM object

When selecting an automation request for multiple VMs using a button configured with 'Submit All', only the first VM has the request carried out (e.g. only the first target_object_id in the array is delivered from evm to the automate domain).
The others VMs remain unchanged. It is worth noting that we recently upgraded our MIQ release to Najdorf.
In these logs, we submit automation requests on 3 VMs simultaneously using the configured 'Submit All' button. (88181, 88182, and 88346). The automation request only occurs on the first VM (88181).
Evm Delivery Log:
INFO -- evm: MIQ(MiqAeEngine.deliver) Delivering {"request"=>"request_retire_extend", :target_object_type=>"VmOrTemplate", "Array::target_object_ids"=>"Integer::88181,Integer::88182,Integer::88346", "result_format"=>"ignore"} for object [.] with state [] to Automate
Automation Log:
INFO -- automation: <automation_request> noguid: #011 Attribute: target_object_ids = [88181]

I'm surprised the Array::target_object_ids has Integer:: in it...I would have expected "88181,88182,88346".  How is this array being constructed?
Also what version is this?


error when docker-compose build

ERROR: Service 'iis' failed to build: The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; PowerShell -Command (Set-ItemProperty -Path 'H
KLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord)' returned a non-zero code: 1

service IIS  docker file :
FROM microsoft/aspnet
REMARK: Temporary workaround for Windows DNS client weirdness
RUN PowerShell -Command (Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord)
COPY ./websrc c:/inetpub/wwwroot

`FROM microsoft/aspnet
REMARK: Temporary workaround for Windows DNS client weirdness
RUN PowerShell -Command (Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord)
COPY ./websrc c:/inetpub/wwwroot
`

service IIS docker file :
FROM microsoft/aspnet
REMARK: Temporary workaround for Windows DNS client weirdness
RUN PowerShell -Command (Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord)
COPY ./websrc c:/inetpub/wwwroot

sollution is to comment the Run powershell command

I've the similar problem and can't figure what to do with it. Thank you aliarousyoucef for the solution.

Thanks for reporting this guys. Apparently the -command argument used with powershell.exe now requires a script block. This was not a requirement in the past which is why it worked with an older container images.
I wrapped the command in curly braces {} instead of parenthesis (see Dockerfile.iis). Works fine now.


Trouble with django guide

Summary
What support task would you like completed by the team?
Hello, I wanted to learn django so I used your guide but can't find how to solve this error below
Rationale
What problems would this solve?
This is the error I get when I try to go to http://<IP_ADDRESS>:8000/catalog/books/

Due Date
When would you like this task completed by?
As soon as possible
Additional context
Is there anything else we should know?
My code is at https://github.com/rynlu/django_projects

What page on https://developer.mozilla.org was it that got you confused?
By the way, compare your code
https://github.com/rynlu/django_projects/blob/c35034d3b85266a2bcd134bc58e19dc7e2f1bece/locallibrary/catalog/urls.py#L6-L7 with the final full tutorial code: https://github.com/mdn/django-locallibrary-tutorial/blob/master/catalog/urls.py
Unless you can pinpoint something specific in the tutorial perhaps you just need to take a closer look at your own code and try to learn from the error messages to see if you can figure it out.


[#1196] improvement: rss.client.assignment.shuffle.nodes.max should not be less than rss.data.replica

What changes were proposed in this pull request?
Add check for rss.client.assignment.shuffle.nodes.max and rss.data.replica
Why are the changes needed?
Fix: #1196
Does this PR introduce any user-facing change?
No.
How was this patch tested?
current testing

Codecov Report

Merging #1200 (25b1a12) into master (10e8e3d) will increase coverage by 0.51%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master    #1200      +/-   ##
============================================
+ Coverage     53.68%   54.19%   +0.51%
+ Complexity     2588     2113     -475
============================================
  Files           391      319      -72
  Lines         22425    14468    -7957
  Branches       1875     1315     -560
============================================
- Hits          12038     7841    -4197
+ Misses         9682     6208    -3474
+ Partials        705      419     -286

Files Changed
Coverage Δ

.../java/org/apache/uniffle/common/util/RssUtils.java
55.33% <0.00%> (-0.55%)
:arrow_down:

... and 75 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


[Workflows] How to author and manage workflows

Need to verify/fill in the following:

[ ] How to author a workflow

[ ] Make sure terminology is correct (ie "Write a workflow"?)
[ ] Make sure procedure/order is correct/clear
[ ] Make sure code example is correct/clear
[ ] Make sure this article flows well from authoring to next article, managing

[ ] How to manage a workflow

[ ] Add example of managing workflows in .NET using example workflowComponentName, workflowName, instanceID from authoring a workflow example

[ ] Both article need diagrams?

/assign:@cgillum

@RyanLettieri


Default configuration of requirements.txt installs Molecule 2.0.4

Changing to "molecule<2.0.0" in the requirements.txt file restores functionality.

Thanks!


[Event Change] table table 5406 "Prod. Order Line" - OnAfterCalcBaseQty

I would like parameters FromFieldName and ToFieldName of CalcBaseQty added to existing event: OnAfterCalcBaseQty
local procedure CalcBaseQty(Qty: Decimal; FromFieldName: Text; ToFieldName: Text) Result: Decimal
begin
    Result := UOMMgt.CalcBaseQty("Item No.", "Variant Code", "Unit of Measure Code", Qty, "Qty. per Unit of Measure", "Qty. Rounding Precision (Base)", FieldCaption("Qty. Rounding Precision"), FromFieldName, ToFieldName);
    OnAfterCalcBaseQty(Rec, xRec, Result, FromFieldName, ToFieldName);
end;

[IntegrationEvent(false, false)]
local procedure OnAfterCalcBaseQty(var ProdOrderLine: Record "Prod. Order Line"; var xProdOrderLine: Record "Prod. Order Line"; var Result: Decimal; FromFieldName: Text; ToFieldName: Text)
begin
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 51294.


[Android] Minor code cleanup

Remove unused variables and fields
Fix compiler warnings (unchecked, deprecation, etc)

@spikebrehm this should be a simple one I guess?


feat: add support for job_options argument

In Que v1.2, it was deprecated to pass top level keyword args in the
enqueue method. This is to prepare for Que v2. This causes warnings
such as:
Passing job options like (tags) to `JobClass.enqueue` as top level keyword args has been deprecated and will be removed in version 2.0. Please wrap job options in an explicit `job_options` keyword arg instead.

These warning logs can cause on a lot of noise on monitoring tools.
The keyword arguments that must be wrapped around  job_options are:
queue, priority, run_at, tags, and job_class.

@ahayworth
Yes it is. Sorry for the delay. The tests weren't working locally, but I got them to work in Docker.
I tested in the example app and my work app that the changes are as desired.

delayed_job error from test:
LoadError: Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? sqlite3 is not part of the bundle. Add it to your delayed_job_4.1.gemfile.
The sqllite3 gem does exist in the gemfile.
activerecord error from test:
NoMethodError: undefined method full_name' for nil:NilClass`
This seems like its supposed to be fixed.
No idea why these failures are happening on my PR.

@bautrey37 Thank you again for following up. The gem install errors for sqlite3 and nokogiry is happening on our main release branches as well. It's something I have on my list to look into today.
I will update your branch once I have a fix in.

All of the CI checks pass on this PR.
Can I get a review from one of the maintainers?

Thanks for approving @arielvalentin ! :)
Since the merge button was not available, I selected Update Branch, which now it needs to run CI again. Hopefully, the merge button will appear after that.


UI Styleguide

Create an visual reference (styleguide) for the project's UI.

[ ] Shapes
[ ] Color Palette
[ ] Typography
[ ] Casing
[ ] Buttons
[ ] Iconography
[ ] Material

Acceptance Criteria:

[ ] One screen showcasing all parts
[ ] All parts as separate elemets

Reference:

@psyfreak please add you comments of that referenced style from Dota is something you'd like. If no, specifically state your wishes here.


API lack in chardev version

I am try to migrate a chardev version edison mraa lib.
In my prototype, it does not work well.
I was set chardev_capable to 1 in constructor.

my customized adv_func->gpio_dir_post was never called, I need manipulate tristate line in this function.
in mraa_gpio_init_internal, no routine for chardev_capable == 1 , so my mux/bias line was not got init.
how to set meaningful consumer name instead of "O".

	line  12:      unnamed          "O"  output  active-high [used]
	line   2: "DIG2_PU_PD"       unused   input  active-high
	line   3:  "MUX27_DIR"          "O"  output  active-high [used]
	line  14: "TRI_STATE_ALL" "O" output active-high [used]

my temporary hack is.

add call adv_func->gpio_dir_post in mraa_gpio_chardev_init.
init my chardev line inside adv_func->gpio_init_internal_replace, then memcy to first param *dev,
it works but will lead memory leak, since the new created mraa_gpio_context is not release. if I free it after memcy, the program runs to segment error.
hardcode a name into struct gpioline_info.  I hope it can be set to program name dynamic, then I can know which app occupation that gpio line.

Hi @xlla, it's been a while since I last looked at the GPIO APIs but from what you are suggesting adv_func->gpio_dir_post() needs to be called in your case and it isn't. However, this is a function hook for setting the pin direction and it's not typically tied to init/constructor, which can be custom too by platform and features. So the best practice to use it from an application is to call the
mraa_result_t mraa_gpio_dir (mraa_gpio_context dev, mraa_gpio_dir_t dir)

function instead with the custom defined behavior you need for the tristate. The platform chardev capability is independent of the GPIO mode you are setting for a pin.

@Propanu , OK, I am understand. how about question 2 & 3.

and missing hook for gpio_close_pre in chardev version.
when call mraa_gpio_close , it is just invoke _mraa_free_gpio_groups, so there is no chance to release additional resource corresponding to that pin such as bias/mux.


Getting the tests to run on Actions

@bshapiroalbert A fresh set of eyes would be helpful here. I have no idea why the tests aren't importing with pytest.


Visualize a SAS7BDAT Dataset in VSCode with the SAS Extension Connected to SAS Viya

Hello,
I would like to know if it's possible to visualize a SAS7BDAT dataset within Visual Studio Code using the SAS extension and SAS Viya. If this feature is already available, could you please guide me on how to enable it? If not, is this a feature that could be considered for a future update of the extension?
Thank you in advance for your help!
Plugin versio: v1.5.0-sanofi
SASVAYA: Long-Term Support 2024.03

Hi Nicolas,
Currently the Table Viewer can only be opened against tables shown in the Libraries panel shown inside the SAS extension. When I remember the discussion from before my long vacation correctly, you have dragged and dropped a VCode Folders panel "inside the SAS extension panel showing SAS Explorer tree and the SAS Libraries tree", so it looks similar to this:

When you double click on a .sas7bdat in that VSCode Folders panel, in the generic VSCode on Windows or MacOS use case the SAS extension would then have to upload that file to a temporary location that is mounted on the SAS Viya compute server, so it can be addressed using a libname and then open table viewer on it. Potentially that table could be large, so something that requires further thought on how the user experience should be and what level of control the user should have when they accidently click on a really large table.
When I remember correctly, in your scenario VSCode runs as a webapp, and the VSCode Folders panel has been configured to show a folder structure that is directly available on the SAS Viya Compute Server using the exact same path. Right?
If so, then my thinking is that when you double-click on the .sas7bdat, VSCode would know the fully-specified path, and that fully specified path would be addressable from the SAS Viya Compute Server with the same name. So if a SAS libname already exists with that path, we could open Table Viewer immediately on that libname.tablename. Otherwise, we would have to create a temporary libname to point to that path and then open Table Viewer. But in both approaches we would avoid having to move data. But somehow the SAS extension would need to know that what is shown in the VSCode Folders panel is directly addressable on the SAS Server, so there needs to be a mechanism for the user to convey that info to the SAS extension in order to avoid having to move the data.
Sorry to go into that much level of detail, but would like to understand your specific setup and expectations.
One more question: what is "plugin version: v1.5.0-sanofi"? Did you customize the plugin and if so can you say more about how/what you customized?


interactive login | add logout and clear H2s

@daro / @jiasli , Do you want to add more information on logging out or clearning your subscription cache? We have a GitHub issue 4213 where there seems to be some confusion on the logout and/or login with different tenant topics.


Error in print

I faced an error in a write statement. By default the script end on the error you need to check your file :
(isschecker) [mathiotp@irene195 ISM_SimulationChecker]$ python compliance_checker.py
-> Checking ./ismip6/

  6%|███████                                                                                | 1/18 [00:36<10:17, 36.34s/it]
Something went wrong with your dataset. Please, check your file(s) carrefully.

I dug a bit and found it comes from a write statement:
 - ERROR: the experiment ends on  2300-06-01 . The date should be comprised between  2300-06-30  and  2301-01-01
Traceback (most recent call last):
  File "/ccc/workflash/cont003/gen6035/mathiotp/TOOLS/ISM_SimulationChecker/compliance_checker.py", line 432, in <module>
    f.write(' - ERROR: the experiment ends on ' + end_exp.item() + '. The date should be comprised between ' + experiments[index_exp]['endinf'].strftime('%Y-%m-%d') + ' and ' + experiments[index_exp]['endsup'].strftime('%Y-%m-%d')+'\n')
TypeError: can only concatenate str (not "datetime.date") to str

I am wondering if a .strftime('%Y-%m-%d') is missing when try to write end_exp.item()

Could be usefull to add the error message in the exception with something like:
>>> def this_fails():
...     x = 1/0
...
>>> try:
...     this_fails()
... except ZeroDivisionError as err:
...     print('Handling run-time error:', err)
...
Handling run-time error: division by zero


Is it possible to configure the name of the report generated?

no

If you are using the parallel runner as described in the docs, you can. Look into file DemoTestParallel.java - "demo" on line 41 is the name of the report.


The" edit your seed phrase" popup is not visible when all tabs with nodes are open

When all the tabs with nodes(BTC,LTC,QTUM) are open and click on the "edit your seed phrase" button, the popup is located at bottom.
Step:

go to settings screen
open all the tabs with node
switch to electrum in Bitcoin node
click generate new seed phrase
click Edit your seed phrase

Expected: pop-up is in the center.
Actual: popup is located at bottom

fixed in https://github.com/BeamMW/beam-ui/commit/c2ea6060e109da3f623ba87f64cad6660523a84c

Checked


[otbn] Better specify and describe errors

Introduce a list of all errors that OTBN detects and improve their
description to better describe what caused the error. Reference this
list as "authorative source" in other places, e.g. in the register
table.
Fixes #8238

@GregAC @rswarbrick I left a couple comments for discussion items. PTAL if you have a moment and let me know what you think. Particularly contentious items can be discussed in the Monday sprint meeting :-)

And one more topic that came up when reviewing #8146:
How about calling all current "recoverable errors" "software errors" instead? A software error is an error which (in the absence of an attacker) is present in the software code that OTBN runs, e.g. a wrong encoding, an out of bounds DMEM access, etc. Software errors are recoverable by default, but can be promoted to be fatal (#8203). All "software errors" are listed in the ISA spec (as extended in #8146).

Also, I like the recoverable -> software change. Sounds like a good idea to me!

@GregAC @rswarbrick I made the changes as discussed. Would you mind having another look? Thanks!


Installing operators from the KUDO repo fails (since 333e1fb3)

What happened:
Since 333e1fb3, attempting to install any operator via the KUDO operator repository fails with:
kubectl kudo install kafka --instance=kafka -p BROKER_MEM=1024Mi
Error: failed to resolve package CRDs for operator: kafka: could not download repository index file: unmarshalling index file: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal number into Go struct field PackageVersion.appVersion of type string
Usage:
  kubectl-kudo install <name> [flags]

What you expected to happen:
That the KUDO operator installs successfully, which it does if you take another approach i.e installing from local files.
How to reproduce it (as minimally and precisely as possible):
Build the CLI from code which includes 333e1fb3
Environment:

Kubernetes version (use kubectl version):

Server Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.0", GitCommit:"e8462b5b5dc2584fdcd18e6bcfe9f1e4d970a529", GitTreeState:"clean", BuildDate:"2019-06-25T23:41:27Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}

Kudo version (use kubectl kudo version):
master
Operator: Tested with ZooKeeper and Kafka
operatorVersion: Latest

Thanks @kensipe!


MP LRA calls are not happening periodically anymore

I noticed this tweet yesterday - https://twitter.com/MicroProfileIO/status/1424626707781365762 which is promoting MP LRA call on Monday which is not happening for quite some time so I don't want people from the community joining when there will be no one from the spec group. I asked in out gitter channel and no one objected to deleting both this tweet and call info from the MP calendar.
Can you take down this tweet, please?
@jclingan can you remove this call from the calendar, please?

Martin,
Thank you for the update.
I have deleted the external event sequence.
@jclingan or @Emily-Jiang will help with internal zoom deletion.
@rstjames will help with media deletion. I tried but we moved mpMedia from buffer to Hootsuite and I don't know where the schedule happen. :)
Thanks to everyone,

Great Emily. Thanks for checking that!
Lets wait for Ryan to delete the 2021 events. :)

@aeiras social media posts have been deleted.

Thank you, Ryan!

Thanks!


fix: forward watchOptions to fs watcher.

watchOptions is not correctly forwarded to webpack's watcher.
Summary
It is currently not possible to set watchOptions. With this fix, it will be correctly forwarded.
Test plan
Add the following lines (or similar) to haul.config.js:
  watchOptions: {
    ignored: /.*\.tsx?$/
  }

When you touch a .ts/.tsx file, Haul shouldn't recompile.

Thank you for your PR @tido64. We really appreciate your contribution 👍
I'll release the updated package soon.

<EMAIL_ADDRESS>released. To make sure yarn uses it instead of 0.4.2 add:
"resolutions": {
    "@haul-bundler/core-legacy": "0.4.3"
  }

to your package.json or install it manually:
yarn add<EMAIL_ADDRESS>npm install --save-dev<EMAIL_ADDRESS>

Thanks, @zamotany. Can we use @haul-bundler/cli as well or is it not ready yet?

@haul-bundler/cli is at 0.4.2. I'm not sure if bumping the version and releasing it as 0.4.3 with the same source code is a good idea, just to have it aligned with core-legacy.


withdrawal

how can i withdrawal with the api key?

a withrawal method is implemented:
bittrex.withdraw({ currency : 'BTC', quantity : '1.5112', address : 'THE_ADDRESS' }, function( data ) {
    console.log( data );
});

you may also use a custom request:
var url = 'https://bittrex.com/api/v1.1/account/withdraw?apikey=API_KEY&currency=EAC&quantity=20.40&address=EAC_ADDRESS';

bittrex.sendCustomRequest( uri, function( data ) {
    console.log( data );
});

you'll find more information on the specific API calls in the Bittrex documentation.
https://bittrex.com/Home/Api

how does that work with URL as your key example is ppppp and secret key ccccccc

Please consult the documentations as everything is described there.


Plugin ID mismatch

This plugin can not be installed via Obsidian due to a "Plugin ID mismatch".

Sorry for the bug, the newer version was uploaded, please refresh Obsidian and install this plugin, note that should be v1.7.2 now.


How to use exclude function

I have a repo with files and directories , where in i need to exclude one directory, i would like to know how this can be achieved using this action.
With:
Filters: |

**/*.yml
!roles/*.yml
This is code which i used , but this is not working . Kindly help thanks

There is is warning to .. set-output command is deprecated how this can be remediated?

The set-output command is indeed deprecated and will start throwing errors from 31st may if i'm not wrong. You can just change this to echo "ECR_REPO_URL=$(cd terraform_ecr && terraform output ecr_repository_url)" >> $GITHUB_OUTPUT
and you can still access this by ${{ steps.id.outputs.ECR_REPO_URL. Hope this fixes your set-output problem

@vasagirisai solved by leveraging this fork: https://github.com/dorny/paths-filter/issues/106#issuecomment-1055848325


runtime.connect only accepts two arguments

According to the MDN docs for runtime.connect the first parameter extensionId is optional, and there is even an example of calling this function with the "second" parameter only:
var myPort = browser.runtime.connect({name:"port-from-cs"});

The current types however prevent omitting the first parameter while providing the second one (Argument of type '{ name: string; }' is not assignable to parameter of type 'string'.). Could you please change that?

Thanks for the report. Fixed in 0.26.0.

Thanks!


AudioDraft

Checklist

[X] I'm reporting a new site support request
[X] I've verified that I'm running yt-dlp version 2022.04.08 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that none of provided URLs violate any copyrights or contain any DRM to the best of my knowledge
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and am willing to share it if required

Region
USA, North America, Earth, Solar System, The Milky Way galaxy, The Frontrooms, the multiverse
Example URLs
http://nokiatune.audiodraft.com/
Description
Please also support all metadata
Verbose log
Not attempted

By the way, if you want to get an actual link to a specific audio track, you have to add /entry to the end of the URL, followed by a / and the number to the left of the name of the audio track. For example: http://nokiatune.audiodraft.com/entry/708
Here's a verbose log:
[debug] Command-line config: ['http://nokiatune.audiodraft.com/entry/708', '--verbose']
[debug] User config "C:\Users\redacted\AppData\Roaming\yt-dlp\config.txt": ['--ffmpeg-location', 'C:\\Users\\redacted\\ffmpeg\\bin', '--update', '-P', 'C:\\Users\\redacted\\youtube.dl', '--audio-quality', '0', '--write-subs', '--write-auto-subs', '--embed-subs', '--compat-options', 'no-keep-subs']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, err utf-8, pref cp1252
[debug] yt-dlp version 2022.04.08 [7884ade] (win_exe)
[debug] Compatibility options: no-keep-subs
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19043-SP0
[debug] Checking exe version: "C:\Users\redacted\ffmpeg\bin\ffmpeg" -bsfs
[debug] Checking exe version: "C:\Users\redacted\ffmpeg\bin\ffprobe" -bsfs
[debug] exe versions: ffmpeg N-106498-g854615adf2-20220405 (setts), ffprobe N-106498-g854615adf2-20220405
[debug] Optional libraries: brotli, certifi, Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.04.08, Current version: 2022.04.08
yt-dlp is up to date (2022.04.08)
[debug] [generic] Extracting URL: http://nokiatune.audiodraft.com/entry/708
[generic] 708: Requesting header
WARNING: [generic] Falling back on generic information extractor.
[generic] 708: Downloading webpage
[generic] 708: Extracting information
[debug] Looking for video embeds
ERROR: Unsupported URL: http://nokiatune.audiodraft.com/entry/708
Traceback (most recent call last):
  File "yt_dlp\YoutubeDL.py", line 1408, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1478, in __extract_info
  File "yt_dlp\extractor\common.py", line 641, in extract
  File "yt_dlp\extractor\generic.py", line 4039, in _real_extract
yt_dlp.utils.UnsupportedError: Unsupported URL: http://nokiatune.audiodraft.com/entry/708

Duplicate / related : #4028


Do not return end time when job is running.

Use empty string instead of random valued of JobEnded to prevent user misinformation when job is still running.
Remove JobDurtion from diagnosticsJob – it could be calculated in getBundleReportStatus().
Fixes: https://jira.mesosphere.com/browse/DCOS_OSS-5254

Codecov Report

Merging #118 into master will increase coverage by 0.04%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master    #118      +/-   ##
=========================================
+ Coverage   63.46%   63.5%   +0.04%
=========================================
  Files          23      23
  Lines        2288    2291       +3
=========================================
+ Hits         1452    1455       +3
  Misses        692     692
  Partials      144     144

Impacted Files
Coverage Δ

api/diagnostics.go
77.35% <100%> (+0.11%)
:arrow_up:

Continue to review full report at Codecov.

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


Allow data field in button

Allow data field in button

Not sure we need this?
I think data should always be used like: data-foo="bar"


feat: Documentation on the creation of custom assets

Also fix to two tiny typos.
Best used after #2527 but we can merge it already, most of it works

Thank you @Eideren!


defineProps using an interface that extends a base interface does not pick up the props from the base interface

Environment

Operating System: Linux
Node Version:     v16.14.2
Nuxt Version:     3.4.1
Nitro Version:    2.3.3
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      -
Runtime Modules:  -
Build Modules:    -

Reproduction
https://stackblitz.com/edit/github-voetqy-p6tmsz?file=components/VTestExtends.vue
Describe the bug
If you have
interface BaseProps {
  size?: 'small' | 'medium' | 'large';
}

interface Props extends BaseProps {
  variant?: 'primary' | 'secondary' | 'default';
}

and try to define the properties using
const props = withDefaults(defineProps<Props>(), {
  size: 'medium',
  variant: 'default',
});

Only variant is picked up as property, size is not.
Additional context
No response
Logs
No response

According to a user in Discord, this is a known limitation of Vue which is going to be addressed in Vue 3.3. Closing,


Example to run on Google compute engine

Glow should be very suitable to run on the cloud. It'll be nice to see that we can run a simple driver program and invoke the google compute engine.
Some benefits I can see:

the ingress data transportation is free.
GCE's cost is per second. Glow is very fast to start and stop.

Suggestions:

Starting a globally accessible glow master may make it easier.
Glow just need local SSD.

Found this blog post about running glow on Kubernetes (not integrating):
<EMAIL_ADDRESS>It might be straightforward to replicate the steps on GKE, which is a managed Kubernetes service.

I am not really familiar with Kurbernetes. But I want to have some script or even Go code to do this:

start a glow master and multiple glow agents on kurbernetes. (May need to provide some Kurbernetes credentials here. May need to return a cluster id.)
start a glow flow on the master and agents. (Maybe this would also need to credential file and the cluster id)
wait for the glow flow to finish
shutdown the master and agents.

The details should be encapsulated inside the script or go code. I prefer that a common user do not even need to know the details.


p5.js reference points to textMode() which doesn't yet exist

While parsing the offline p5.js reference (data.js) and discovered that push() + pop() both link to a non-existant textMode() in their descriptions. Of course would be great to have a textMode(), but until then, should drop it from linkable references.

Good catch, not sure why this gone unnoticed for such a long time. To clarify this also applies to the live reference on https://p5js.org/reference as well. There doesn't seem to ever have been a textMode() in p5.js, it's likely a remnant from Processing when copying the reference over. The fix will need to be applied over at the main p5.js repo

This issue was moved to processing/p5.js#3572


[SPARK-49177][INFRA][DOCS] Make GA's build_error_docs run only once

What changes were proposed in this pull request?
The pr aims to make GA's build_error_docs run only once.
Why are the changes needed?

At present, from observing the logs of GA, we have found that build_error_docs has run twice, which is unnecessary, as follows:

Additionally, in step Run documentation build of GA, some environment variables (eg: SKIP_PYTHONDOC, SKIP_RDOC) are dynamic. I propose printing their values before executing bundle exec jekyll build to facilitate developer debugging.

Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manually check.

Before

After

Was this patch authored or co-authored using generative AI tooling?
No.

cc @HyukjinKwon @dongjoon-hyun

SKIP_ERRORDOC

Makes sense, I have already updated it, thanks!

Merged to master.


[SMALLFIX] Remove wire.ThriftUtils

ThriftUtils doesn't serve much purpose except making code longer. It's cleaner to have each wire type be responsible for defining how it should be serialized to/from Thrift.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/19678/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/19679/
Test PASSed.


Newsfeed New Pattern Issue

I have a model called 'POSTNEWS' and it has been registered with actstream alongside USER model. I want to achieve the same or similar newsfeed pattern like Twitter.
I created a template that shows all item in 'POSTNEWS', so when a user visits url '/timeline/', all items in 'POSTNEWS' model will be displayed in template 'allnews.html'.
Now, I want this-  when a user lets call the user 'Jack', visits /timeline/, he should only see his items and items of people he is following and items of people who are following him.
Can I achieve this process with this package? I read through the docs but I'm yet to understand or know how to go about this.

yes you should. to get more faster response for your support queries post on the gitter chat channel first


Switch: create all cases - comments from enum are inserted mid-through generated cases

Describe the bug
When using quick fix: create all cases for switch with enum variable, which enum had comments between members, comments from enum are inserted mid-through generated switch cases (screenshot).
How to reproduce

Create an enum that has comments inside
Use create all cases for switch

Expected behavior
Comments are omitted, and if not, then they at least shouldn't be inserted mid-case (screenshot)
Screenshots

Additional information

Version of the extension impacted: v1.7.0

I have a lot of other extensions installed, but now I don't have the time to disable them all and try to reproduce this again.

Hey, thanks for reporting but it's been a while since I updated this extension and I'm not planning to do this in the foreseeable future. I'm archiving the extension 👍


Add macros that are included only in debug build

I think this can be a common thing to use rtt only for debug and remove it in release.
I wanted to hide this debug macros behind debug module but as far as I know this is currently not supported by rust.
I would consider to hide this macros behind debug feature that is enabled by default.

Hey @xoac I'm not a maintainer but  you might want to look into using the log crate to do all printing, then rtt-logger to output to RTT. Then you can keep a const LOG_LEVEL that is different for debug and release.
If you do that, you can use the error! warn! info! debug! trace! macros from the log crate to get some fine grained control over printing.


PS-1784 Add system metadata tags to files

https://keboola.atlassian.net/browse/PS-1784

right on, thanks man, I'll update accordingly

seems ok (when the tests pass)


Badge employee list endpoints

Coverage decreased (-0.5%) to 33.553% when pulling 910a438b3e746616099a6918895d1fc5863c0b36 on development into 71380632a71ce2ce888333489b03467b801272ab on master.


bastion target subnet for workload expansion

There is an entry to enable bastion to the web subnet of default workload spoke.
Similar construct is missing for workload expansion.
"bastion_target_subnet_id             = module.network.spoke_web_subnet_ocid"
How to enable bastion to new workloads?

Hey @sivachunduru  we're tracking this issue under LANZ-1571. We will keep you updated with progress.


Add swift-futures

Pull Request Description
Adds swift-futures: https://github.com/dfunckt/swift-futures
Futures is a relatively large library, makes heavy use of value types and generics (which seem to be stressing the compiler quite a bit) and also includes a C target, which overall I think make for a valuable addition to the source compatibility suite.
Acceptance Criteria
To be accepted into the Swift source compatibility test suite, a project must:

[x] be an Xcode or swift package manager project
[x] support building on either Linux or macOS
[x] target Linux, macOS, or iOS/tvOS/watchOS device
[x] be contained in a publicly accessible git repository
[x] maintain a project branch that builds against Swift 4.0 5.0 and passes any unit tests
[x] have maintainers who will commit to resolve issues in a timely manner
[x] be compatible with the latest GM/Beta versions of Xcode and swiftpm
[x] add value not already included in the suite
[x] be licensed with one of the following permissive licenses:

BSD
MIT
Apache License, version 2.0
Eclipse Public License
Mozilla Public License (MPL) 1.1
MPL 2.0
CDDL

[x] pass ./project_precommit_check script run

Ensure project meets all listed requirements before submitting a pull request.

@swift-ci test

Thanks @dfunckt!


Command to configure Jupyter server is unavailable after trusting a workspace and before reloading window

Testing #10183

Start in restricted mode
Create notebook
Trust current workspace
Run Specify Jupyter server command
:bug: command fails with:

Requires a window reload before the command works

I think we likely need to watch for workspace trust changed event?
https://github.com/microsoft/vscode/blob/14a7dfa47625f4e385bd17b8b8953e5a8b7faae9/src/vscode-dts/vscode.d.ts#L12165

Are you conditionally registering the command only when the current workspace is trusted? Maybe instead we could unconditionally register the command but prompt for trust in the handler if it's needed?

Fixed with the new kernel picker UI.


Add sidebar to the lobby page which contains search box, the adding button, online user lists and friend list on the sidebar.

21368a7bcac624492523b7b55711aea17cc0fc5d