Enhance XPath Support for Extracting Internal Tag Parameters

Is it possible to add support for extracting any internal parameters for tags other than a/@href via xpath?
a/@title,
//div/@any_tag_parameter

What you're referring to are called attributes, and it should be possible to get any attribute using that syntax.
/@class for example is already tested here. The library doesn't care what the name of the attribute is, it works for all of them.

Didn't notice right away. There are errors in all tag attributes.
//ul[contains(@class, \"svelte-6i0owd\")]//a/@href
expected TreeNode, got NonTreeNode
Below is the working code to reproduce the error.
use reqwest;
use serde::{Deserialize, Serialize};
use skyscraper::html;
use skyscraper::xpath::{self, XpathItemTree};
use std::error::Error;
use std::fs::File;
use std::io::prelude::*;

#[derive(Serialize, Deserialize, Debug)]
struct TestXpath {
    result: String,
}
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    let mut queries: Vec<TestXpath> = vec![];

    let res = reqwest::get("https://finance.yahoo.com/?guccounter=1")
        .await?
        .text()
        .await?;

    // Parse the HTML text
    let document = html::parse(&res)?;
    let xpath_item_tree = XpathItemTree::from(&document);

    // Assuming your XPath string is static, it is safe to use `expect` during parsing
    // let title = xpath::parse("//div[@class=\"content svelte-w27v8j\"]/a/h3")
    let test_xpath = xpath::parse("//ul[contains(@class, \"svelte-6i0owd\")]//a/@data-ylk")
        .expect("xpath is invalid")
        .apply(&xpath_item_tree)?;

    for item in test_xpath.iter() {
        let res = TestXpath {
            result: item
                .extract_as_node()
                .extract_as_tree_node()
                .text(&xpath_item_tree)
                .unwrap(),
        };
        queries.push(res);
    }

    // Serialize it to a JSON string.
    let test_query = serde_json::to_string(&queries)?;

    let mut file = File::create("output.json")?;
    file.write_all(test_query.as_bytes())?;

    Ok(())
}

That's because in 0.6.0 AttributeNodes were NonTreeNodes. This has been simplified in 0.7.0-beta where there is no distinction between tree and non-tree nodes. Also note that you shouldn't be calling text() on an attribute node though. It has a value, it doesn't contain any text nodes.
Here are the docs for this exact use case for v0.7.0-beta.0.

With this example it works fine:
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
skyscraper = "0.7.0-beta.0"
reqwest = { version = "0.12.4", features = ["default", "blocking", "cookies", "json", "socks"] }
tokio = { version = "1", features = ["full"] }

use reqwest;
use serde::{Deserialize, Serialize};
use skyscraper::html;
use skyscraper::xpath::{self, XpathItemTree};
use std::error::Error;
use std::fs::File;
use std::io::prelude::*;
use tokio::time::Duration;

#[derive(Serialize, Deserialize, Debug)]
struct TestXpath<'a> {
    result: &'a str,
}
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    let mut queries: Vec<TestXpath> = vec![];

    let client = reqwest::Client::builder()
        .timeout(Duration::from_secs(30)) // Set a 30-second timeout
        .build()?;

    let res = client
        .get("https://finance.yahoo.com/?guccounter=1")
        .send()
        .await?;

    // Parse the HTML text
    let document = html::parse(&res.text().await?)?;
    let xpath_item_tree = XpathItemTree::from(&document);

    let test_xpath = xpath::parse("//ul[@class=\"story-items svelte-6i0owd\"]//a/@href")
        .expect("xpath is invalid")
        .apply(&xpath_item_tree)?;

    for item in test_xpath.iter() {
        let res = TestXpath {
            result: &item.extract_as_node().extract_as_attribute_node().value,
        };
        queries.push(res);
    }

    // Serialize it to a JSON string.
    let test_query = serde_json::to_string(&queries)?;

    let mut file = File::create("output.json")?;
    file.write_all(test_query.as_bytes())?;

    Ok(())
}


AWS Lambda uses netstandard 1.3 can we downgrade Windsor from netstandard 1.6?

The package Amazon.Lambda.Core uses netstandard1.3 from NuGet and it also has runtime dependencies on:

System.Runtime 4.1.0
System.Console
System.IO

Can we downgrade the current implementation to netstandard 1.3 and System.X 4.1?

So the problem is that AWS lambda supports only .NET Core 1.0.
Microsoft made kind of a mess with versioning so that you get automatically brought from 1.0 to 1.1 by simply referencing the package NETStandard.Library 1.6.1.
As @fir3pho3nixx wrote in this issue, System.X 4.3.0 point to .NET Core 1.1.

Can we downgrade the current implementation to netstandard 1.3 and System.X 4.1?

As I mentioned in #145: "We had to go with .NET Standard 1.6 to use Microsoft.Extensions.DependencyModel until we move to .NET Standard 2.0 in the future", other than that there are probably a heap of other missing APIs. According to the docs .NET Core 1.0 supports .NET Standard 1.6.
So it sounds like the problem is not .NET Standard 1.6 but which version of System.* packages.
Looking at the build output it is definitely testing against .NET Core 1.0:
Installing runtime.win7-x64.Microsoft.NETCore.DotNetHost 1.0.1.

However, I see NETStandard.Library 1.6.1 being added to the nuspec of the output which we didn't add. Do we just need to ensure we don't use 4.3.0 versions of System.* packages, or maybe if we manually add NETStandard.Library 1.6.0 would that work?

you get automatically brought from 1.0 to 1.1 by simply referencing the package NETStandard.Library 1.6.1

This is the part I'm still unclear about, how does this actually happen, I meant what in the package definition causes .NET Core 1.1 to be required, and how do we know which packages we can actually use?

As I mentioned in #145: "We had to go with .NET Standard 1.6 to use Microsoft.Extensions.DependencyModel until we move to .NET Standard 2.0 in the future"

Here be a skeleton.  Could perhaps flag this as a FEATURE_??? symbol and have a go at trying this?

However, I see NETStandard.Library 1.6.1 being added to the nuspec of the output which we didn't add. Do we just need to ensure we don't use 4.3.0 versions of System.* packages, or maybe if we manually add NETStandard.Library 1.6.0 would that work?

MsBuild does not like this, it says A PackageReference for 'NETStandard.Library' was included in your project. This package is implicitly referenced by the .NET SDK and you do not typically need to reference it from your project.

This is the part I'm still unclear about, how does this actually happen, I meant what in the package definition causes .NET Core 1.1 to be required, and how do we know which packages we can actually use?

+1 We should investigate more.

I'm looking forward for an issue in the aws/aws-lambda-dotnet repo about this issue. basically there is a property in the project file used to specify the version of the NETStandard.Library package to be intrinsically included. Maybe @normj can help us on the issue?
Anyway, Lambda supports .NET Core 1.0 which is an implementation of .NET Standard 1.6, that means any library written for any version of .NET Standard up to 1.6 (included) will work on Lambda.
EDIT: I found this issue that mention the implicitly added packages: https://github.com/dotnet/sdk/issues/764

I'm completely guessing here based on reading a few GitHub issues around the place, but it seems like it was a .NET Core 1.x tooling mistake for libraries to implicitly have NETStandard.Library added as a dependency, and .NET Core 2.x tooling will no longer add it for executables.

You could disable the NETStandard.Library dependency from being included as a dependency of your NuGet package without disabling the implicit reference entirely with the following:
<ItemGroup>
    <PackageReference Update="NETStandard.Library" PrivateAssets="true" />
</ItemGroup>

This will happen automatically when targeting .NET Standard 2.0 or higher: dotnet/sdk#1171

(https://github.com/Domysee/Pather.CSharp/issues/3#issuecomment-300537209)
Or we could use DisableImplicitFrameworkReferences, no idea what either actually does under the hood to cause it not to be added.

@fir3pho3nixx I still believe it is the right decision to use Microsoft.Extensions.DependencyModel rather than loading any and all DLLs in the bin directory. It doesn't appear .NET Standard 1.6 is a problem here anyway.

I might just dust off my hello world aws function, manually compile windsor from master and kick it up there to see what errors we get. Also should we raise an issue with the AWS lambda team to upgrade? (Surprised this has not been done already).

I can get a string from a resolved service here using AWS Lambda in VS2017.
This is using the same dependencies as the intended netstandard release of Windsor here.
This is my screen shot when I run it from Visual Studio:

Closing.

@fir3pho3nixx great to hear, I guess that means we don't have anything blocking a release.
@Kralizek would love to hear from you before we make the release.

@jonorossi it looks like the test done by @fir3pho3nixx is a good evidence that v4 will run on Lambda without any issue. I'll try to work on another test during the afternoon (right now it's 11:40 here in Sweden)
Anyway, thanks a lot for the attention to this specific use case :)

Late to the issue but here is what I have learned from developing the AWS Lambda libraries.
To force the project to use .NET Standard Library 1.6.0 the .NET Core 1.0 implementation add the following to the csproj. By default VS uses 1.6.1.
<NetStandardImplicitPackageVersion>1.6.0</NetStandardImplicitPackageVersion>

Thanks @normj, however it appears (@fir3pho3nixx test above) we don't need to force NETStandard.Library 1.6.0 and 1.6.1 works, unless you know something we don't.

FYI I'm going to cut the release tomorrow.

Locking to 1.6.0 would be ideal but seeing as there is a dependency to System.Runtime.Serialization.Formatters which only has versions dependent on NETStandard.Libary 1.6.1 I'm not sure that is feasible.
What happens when your project depends on 1.6.1 and is being used on a netcoreapp1.0 the publish folder will end up containing a lot of the system libraries like System.Net.HttpClient.dll and System.Threading.dll. So in @fir3pho3nixx case his simple function which should only contains his project dll and Windsor ends up being about 8 megs worth of stuff. Also I'm sure there will be cases this will fail when you get to more advanced cases because the .NET Core loader will end up loading the packaged up system dlls instead of the versions we compiled for the Lambda environment.

@normj thanks for more info, I still don't understand the underlying change Microsoft made that causes the incompatibility, however I also came across this issue (https://github.com/aws/aws-lambda-dotnet/issues/129) which provides some info on referencing the Amazon.Lambda.Tools package which is related.

seeing as there is a dependency to System.Runtime.Serialization.Formatters which only has versions dependent on NETStandard.Libary 1.6.1 I'm not sure that is feasible

That is what I've concluded too, and with Castle.Core 4.1.0 already depending on NETStandard.Library 1.6.1+ I think we just have to leave it as is. Also with so many libraries moving across to the new .NET SDK tooling (from project.json tooling) heaps of libraries are coming along with a NETStandard.Library 1.6.1+ dependency including:

https://www.nuget.org/packages/Castle.Core/4.1.0
https://www.nuget.org/packages/Newtonsoft.Json/10.0.2
https://www.nuget.org/packages/NodaTime/2.0.0
https://www.nuget.org/packages/Moq/4.7.49
https://www.nuget.org/packages/Microsoft.Extensions.DependencyInjection/1.1.0
https://www.nuget.org/packages/Microsoft.AspNetCore/1.1.0

This really is just something AWS will have to solve if they want their customers using .NET Core on Lambda, or I guess they wait until .NET Core 2.0 is out as it'll be an LTS release.


Check in CI that poetry lockfile is up to date

It's easy to forget to poetry lock after you make a change to pyproject.toml. But if you don't, CI will run with the wrong versions installed. Worst case, a bad change to pyproject.toml won't even be noticed until the PR is already merged and someone runs poetry lock in the future.
Add a CI step (or ideally pre-commit, if it's fast enough) to validate that the lockfile is up to date.
Ideally we'd use https://github.com/python-poetry/poetry/pull/1954, but who knows when it'll be released. So other workarounds may be necessary.

@gjoseph92 I'm having a similar requirement, have you found any workaround to handling this ? Am in poetry 1.1.13 and still the option isn't available.

The same question from my side. I am on poetry 1.1.13 and it is a pain for team of 5 developers multiplied to 9 microservices to keep in sync pyproject.toml and poetry.lock.
I see that PR was merged for "poetry lock --check" but there is no such command in 1.1.13.

Exactly my confusion too, the PR is merged but still i get an error no such command

Exactly my confusion too, the PR is merged but still i get an error no such command

Poetry doesn't release directly off the tip of the master branch. Until they decide to release at least 1.2.0, this won't be released AFAIU https://github.com/python-poetry/poetry/pull/1954#issuecomment-826835330.

have you found any workaround to handling this?

I did once a while ago, but that was on a private repo I no longer have access to, and I forget how I did it. Probably some variant of just running poetry lock and seeing if the lockfile changes.


Add a DisMax option for Query Parsing

Idea is (from the DisjunctionMaxQuery.java java doc)
A query that generates the union of documents produced by its subqueries, and that scores each document with the maximum score for that document as produced by any subquery, plus a tie breaking increment for any additional matching subqueries.  This is useful when searching for a word in multiple fields with different boost factors (so that the fields cannot be combined equivalently into a single search field).  We want the primary score to be the one associated with the highest boost,
not the sum of the field scores (as BooleanQuery would give).

If the query is "albino elephant" this ensures that "albino" matching one field and "elephant" matching another gets a higher score than "albino" matching both fields.

To get this result, use both BooleanQuery and DisjunctionMaxQuery:  for each term a DisjunctionMaxQuery searches for it in each field, while the set of these DisjunctionMaxQuery's is combined into a BooleanQuery.

The tie breaker capability allows results that include the same term in multiple fields to be judged better than results that include this term in only the best of those multiple fields, without confusing this with the better case of two different terms in the multiple fields.

LumongoWorkPool lumongoWorkPool = new LumongoWorkPool(new LumongoPoolConfig().addMember("localhost"));
QueryResult queryResult = lumongoWorkPool
				.query(new Query("index", "term1 term2", 10).addQueryField("title", "abstract").setDismax(true).setDismaxTie(0.1f));

Rest
localhost:32192/query?index=someIndex&q=term1 term2&qf=title&qf=abstract&dismax=true&dismaxTie=0.1&pretty=true&rows=10


Removal of tooling dependencies have not been released

Our automated dependency managers are still running into issues from this package due to tooling previously added to the go.mod which has been since fixed.
Could we please have a release made of those changes such that we do not pin on a commit sha?

@mbobakov ?

sorry for the delayed answer =( Released


Model request dolphin-2.8-experiment26-7b

What model would you like?
dolphin-2.8-experiment26-7b

https://ollama.com/wojtek/dolphin ?


etcdctlv3: optionally display full response header

etcdctlv3 doesn't return revision data so it's impossible to implement many recipe-style algorithms without using a full-fledged etcd client.

Now etcdctlv3 supports json and proto output, which includes full headers. Closing.


Fix hardcoded knowledge base path

I wanted to try out the latest RC in order to understand if #230 has been resolved.
Unfortunately, the test failed, as the knowledge base has not been found.
The reason seems to be that the knowledgebase path is hardcoded to /home/thesp0nge/src/hacking/dawnscanner/db.
References

https://github.com/thesp0nge/dawnscanner/blob/kb_revamp_in_yaml/lib/dawn/cli/dawn_cli.rb#L20
https://github.com/thesp0nge/dawnscanner/blob/kb_revamp_in_yaml/lib/dawn/engine.rb#L177

I am also not sure if the necessary data exist at https://dawnscanner.org/data/

Sorry for being so late :)


License

Hi, just a small thing: I think the license referenced in build.sbt is not correct, it references LGPL and not ASL.
Best regards,
Jan

Thanks for reporting, I've just fixed it.


Backport 2.8: Prevent mutating yaml when a header isn't found

Summary
Fixes #10310
backports #10168
This prevents dumpBlock() from mutating parsed yaml when a header can't be located. More investigation might be warranted to discover why the regex used by getBlockHeader() isn't matching the keys when parsing the example yaml:
 apiVersion: v1
data:
  a: "a\nb\tc"
  b: "a\nb\tc"
kind: ConfigMap
metadata:
  name: yaml-tab-test

but the crux of the issue still comes down to the fact that dumpBlock() will indiscriminately mutate yaml output when a key can't be located; it's important that this behavior is corrected.

Occurred changes and/or fixed issues

Stop mutating parsed yaml if the header can't be located.
Technical notes summary

Areas or cases that should be tested

Follow the repro steps left in comments on the issue:
https://github.com/rancher/dashboard/issues/9841#issuecomment-1745771047
Areas which could experience regressions

Any yaml editor used throughout Rancher Desktop, but I doubt there are scenarios where it would ever be valid to attempt a replace when the header is an empty string.
Screenshot/Video

This will require a rebase after #10309 merges


PORTALS-2690 - OrientationBanner for Cohort Builder

Add OrientationBanner to cohort builder page in EL Portal
Fix issue where the nav menu would block content at small (but not xs) screen sizes
Replace undesirable whitespace (margin) with padding on explore pages header at small screen sizes

OrientationBanner:

CSS changes

Before
After

Whitespace on Explore header, xs size

Nav menu content cutoff on small size

Merging since copy has been fixed


Add metadata to allow us to compare task performance in different types of scenes

We want to be able to compare performance in subsets of scenes, e.g. photorealistic vs CAD model, normal vs off-distribution, etc. Either we could hack this together by using e.g. video path in the visualization script and grouping the trajectories based on that, or we could add support for some general kind of metadata that would somehow be accessible in the visualization script.

Seems like one way to do this is to simply create several input files with respective subsets of the data.
E.g. data/havitat/data_photorealistic.csv and data/havitat/data_cad.csv.
Then we

put plots from different groups side by side
or do grouped bar plots with an additional script.

First requires essentially zero effort; second can be done in an hour or two, and I would do it when we understand clearly, what kind of plots do we need, as visualization code is rarely generic enough.
As for general metadata, it looks to me that for each video (e.g. bathroom_11.mp4 we could have metadata file bathroom.json with several fields like "type: realistic/cad, OOD: true/false" and so on). This approach is probably more general, although I don't think we strive for generality now.

Current solution: take a look at _metadata_columns in the notebook. The metadata are specified in the data.csv file together with the task labels, and are passed through the evaluator so that the notebook also sees them.


Add coloration behind clusters

The "number of points in this cluster" numbers on the map don't currently have any coloration behind them. The default behavior for a MarkerCluster is to have coloration; we should figure out how to restore that (and, perhaps, change coloration dynamically so smaller clusters have less intense color as you zoom in further)
The example image from Leaflet is
 (which there is now a copy of in our repo)

It looks like there are two basic ways to do this:

Change global settings in styles.css for entire app by adding CSS selectors for MarkerCluster
https://stackoverflow.com/questions/49538465/changing-leaflet-markercluster-icon-color-inheriting-the-rest-of-the-default-cs

Explicitly set style when declaring the markerClusterGroup, as in:

var markers = L.markerClusterGroup({
    // Other options...
    styles: [{
        // Customize the cluster icon style
        textColor: '#fff',  // Text color
        iconSize: [30, 30],  // Icon size
        backgroundColor: '#007bff'  // Background color
    }]
});

(code suggestion from ChatGPT 3.5)
Unfortunately, in early attempts to apply each of these, neither of them worked. The additions to styles.css didn't even work when flagged as !important. Figure out what's going on here

consider map.css


"Automatically show and hide the menu bar" option makes indicator invisible

Indicator won't be shown when "Automatically show and hide the menu bar" option is checked in SystemPreferences -> General.

same problem on me


refactor CLI parsing with clap

as in:
https://github.com/Kindelia/Kind2/blob/master/src/main.rs#L25
https://github.com/Kindelia/Kind2/blob/master/src/cli.rs

hey, can I help with this or someone is already doing this refactor?


Adding regions on line charts

Added a new directive to allow regions http://c3js.org/reference.html#data-regions

Thank you @marton987, I like your addition especially the documentation and the sample.


Misspelled storage provider

I believe the following statement is incorrect "A composite storage provider can be used with SharedStorageProvider.". I think that it should be ShardedStorageProvider instead. Although I've read somewhere that ShardedStorageProvider is no longer available which is sad because I badly needed a composite storage provider.

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

ID: 767d60a2-9aeb-7d33-64b7-8cf989175175
Version Independent ID: f8b885af-c74c-8e87-d1f7-60845f28bb53
Content: Best practices in Orleans
Content Source: docs/orleans/resources/best-practices.md
Product: dotnet-orleans
GitHub Login: @IEvangelist
Microsoft Alias: dapine

I don't think I ever saw a sharded/shared implementation of the storage provider... I think we should remove this from the documentation.
@miroslavp I think a sharded storage implementation should not be too hard to write. I would be happy to review it if you have time to develop something.

@benjaminpetit I think it was referencing this https://docs.microsoft.com/en-us/dotnet/api/orleans.storage.shardedstorageprovider?view=orleans-1.0 .
Is there anywhere I can see the source code of it?

Found it: https://github.com/dotnet/orleans/blob/v1.5.10/src/OrleansProviders/Storage/ShardedStorageProvider.cs


Update terraform db.tf to remove unneeded lines

Slack Reference: https://flexion.slack.com/archives/C055XTF22B0/p1710251746219469
Update terraform db.tf to remove azuread_service_principal as it's not needed

Reopened as #1425


Feature Request: Template variable that evaluates standard SQL data types

It would be really useful to have a variable that evaluates standard SQL data types for use in our custom templates.
For example: ${datatype} would suggest - integer, bool, varchar2(${cursor}) etc.

New template variable ${type} will be added in 3.8.1


Remove KEPRIMSGenerator and KEPRIMSVisitor

Never implemented. I propose to remove them from the code.

Done on Version 581

Can you check your commit. Your fix remove a lot of classes like Composition, Scenario, etc ...
Not integrated at the moment.

Done in Kendrick-SergeStinckwich.587


fix(handler): add playthrough support

Hey @valendres, I'd love to see this published. The library is very cool, it only lacks this minor thing for me to use it <3.


Feedback for “Q&A”

I was able to launch it initially, but later encountered the following error.
Here's what happened:

Unable to install on the C drive (due to write permission issues), I reinstalled on the E drive.
After confirming successful launch, I deleted the folder on the C drive (though installation wasn't possible, a folder had been created)

[Error details]
Fatal error in launcher: Unable to create process using '"C:\Program Files\IOPaint\installer\python.exe"  "E:\IOPaint\installer\Scripts\iopaint.exe" start --config "E:\IOPaint\win_start.bat"..\installer_config.json': ??????????????????

Can you try extracting the zip package again on drive E and then reinstall it?
By the way, the model is downloaded to the C drive by default. You can specify the desired download path on the configuration page.

Thank you. I was able to install it. By the way, I have one more question.
In the previous version, I could make multiple edits by holding down the Ctrl key. Can I do the same operation in the current version?

Regarding the JPG files being output, I can't open them in the paint software (Clip Studio). There was no problem with the previous version. What is different about the output format in the latest version? They are both JPG files, but for some reason I can't open them. It's very inconvenient to use.

Thank you. I was able to install it. By the way, I have one more question. In the previous version, I could make multiple edits by holding down the Ctrl key. Can I do the same operation in the current version?

You can "Enable Manual Inpainting"  in settings, I recorded a demo video.
https://github.com/Sanster/lama-cleaner-docs/assets/3998421/a0adcf79-90e2-44a5-9e66-a72a3aec2442

Regarding the JPG files being output, I can't open them in the paint software (Clip Studio). There was no problem with the previous version. What is different about the output format in the latest version? They are both JPG files, but for some reason I can't open them. It's very inconvenient to use.

The saved format hasn't changed, did Clip Studio give any error messages?

Thank you for the reply.
I thought the "manual inpainting" was more user-friendly before.
Regarding the issue of not being able to load in a specific painting software, the following error message is displayed:
-error message
The file format is not supported.(対応していないファイル形式です)

On a different note, I find it counterintuitive and difficult to use that the zooming actions for the canvas and brush are opposite.
*To increase the size of each, the scroll wheel operation while holding down the designated modifier key is reversed.

The brush size automatically increases after editing (occurs fairly often)

The cause has been identified. When editing and exporting the JPG image, it seems the structure becomes PNG but is output as JPG.
So if it's changed to PNG, the relevant paint software (Clip Studio) should be able to read it.
Will this fix the issue?


best way to populate session user without server?

I'm working on implementing a token auth and wondering what would be the most straight forward and minimal approach.
Storing token in cookie and populating during nuxtServerInit. I know that population is not necessary but there is a 4k cookie limit and additional data may be needed.
The question I have with this approach is, what happens if I want to nuxt generate. I know nuxt generate works for static content, but for things dynamic like the user, I'm assuming it not to be generated. Meaning, nuxtServerInit cannot be the solution for this scenario.
I've read in another thread about introducing nuxtClientInit. The thread doesn't seem to talk specifically about user token population but I feel is a great solution. https://github.com/nuxt/nuxt.js/issues/240
Now since, nuxtClientInit is not available yet, my next thoughts are to use plugins or a middleware. Given the user only needs to be populated on initialization, I'm thinking plugin. Can I however, have the app wait on async operations from the plugin? If not, I guess the middleware is always available.
Would love to get some guidance here.

Hi @uptownhr, you should use fetch in that case. It will be call on client-side on the generated and will update the generated data (from nuxt generate) by the newest (from the cookie detected).

When using fetch, should this go into the layout file or on all pages?
On Sun, Jul 23, 2017, 10:52 AM Alexandre Chopin<EMAIL_ADDRESS>wrote:

Hi @uptownhr https://github.com/uptownhr, you should use fetch in that
case. It will be call on client-side on the generated and will update the
generated data (from nuxt generate) by the newest (from the cookie
detected).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nuxt/nuxt.js/issues/1141#issuecomment-317270001, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA-UtoBo2o3ii6EzCN6vcISQ1g0mYXPZks5sQ4hHgaJpZM4Ogg9l
.

Layout file in your case.

@uptownhr,  you can see the new examples in the branch rc6  specially the new features mode:'spa' with vuexpersitedstate it`s awesome!


Rewrite-yaml: ChangePropertyKey not working correctly

I have found a case where the ChangePropertyKey method of rewrite-yaml is not working correctly.
I have a main recipe to which I am adding other recipes with the doNext() method as follows:
public class MainRecipe extends Recipe {

  public MainRecipe () {
    this.doNext(
        new ChangePropertyKey("app.foo.change.from", "app.bar.change.to", null,
            null));
  }
}

In this case I'm just adding the ChangePropertyKey recipe.
Based on this recipe, I show below some results of its execution according to the source .yml:

Test
Yml source
Yml result
Result

1

app:
  foo.change.from: hi

app.bar.change.to: hi

OK

2

app:
  foo.change.from: hi
  bar.other.property: bye

app:
  bar.change.to: hi
  bar.other.property: bye

OK

3

app:
  foo.change.from: hi
  bar:
    other:
      property: bye

app:
  foo.change.from: hi
  bar:
    other:
      property: bye

KO!!!!!!

As you can see, cases 1 and 2 the change is made correctly, but in case 3 no change is made since part of the namespace of the final app.bar property has identations..
I am using version 7.22.0

Oh interesting... I imagine we got tripped up by the fact that there is some overlap in the namespaces of old and new. Will take a look at this. Thanks for the detailed report!


Getting Hired in Turbulent Times

Opinion piece on things that helped my job search.
And, of course, a new announcement.

Will include changes for footer support in CSS


Power Buffer shows up as Item Buffer in WAILA

Tested on <IP_ADDRESS>7

all the buffers have the same problems they all shows up as item  buffers on the latest version of EIO +
WAILA


Merge my fork?

Hello,
I made changes to the LTSP script. I forked it then made changes. Can you merge them?
Also, there is an issue with the vdi script. my script deals with X, so I had to remove "startx" from the start of the commands in your vdi script <-- not sure the best way to resolve this.
Also, have you heard of: http://www.foss-cloud.org/

Merged.
Also, i'm familiar with foss-cloud, but I do not see any positive perspectives in that. There are more robust solutions for a VDI-enabled services (like oVirt). Having said that, I see huge potentional in OpenStack, so this year, after our team will finish its deplyment, I will make KVM-VDI more module-alike and hopefully  we will  make this project use OpenStack VM pools.

Cool.


Can we create a new database file using this plugin ?

@pratiksan45  the answer is yes for sure. What is the issue?

@pratiksan45 as you did not come back i close the issue


Add option to auto accept on scroll (implied consent if you keep browsing the website)

Is there any option or way to modify code to allow implied consent where by the message is removed automatically if you keep browsing the website?
Also is there way to show cookie only on first visit. If you browse to another page of the website cookie will be automatically accepted?
Thanks

+1

This feature does not exist in CookieConsent V2. It does however exist in CookieConsent V3. There is an option called dismissOnScroll. Simply set it to the scroll value that it must exceed before the popup is dismissed.
I.E. dismissOnScroll: 1000
If the scrollTop of the parent container exceeds 1000, then the popup is dismissed.


Rename Not Functioning

Version
1.15.0
What happened?
Renaming columns using version 2 of the configuration does not seem to work. Running sqlc generate after setting the desired rename values does not create structs with the proper names.
Relevant log output
type Interface struct {
    ID           int64
    IpAddress    string
    Endpoint     string
    ListenPort   int64
    PrivateKey   string
    PublicKey    string
    Dns          string
    SearchDomain string
    Mtu          int64
    FwMark       int64
}

Database schema
-- interfaces contain global settings that apply to either clients or server connections
CREATE TABLE Interfaces (
    id BIGINT PRIMARY KEY AUTOINCREMENT, -- identifier
    ip_address VARCHAR(255) NOT NULL, -- ip
    endpoint VARCHAR(255) NOT NULL DEFAULT '', -- remote ip or fqdn
    listen_port INTEGER NOT NULL DEFAULT 0, -- local port to listen on
    private_key VARCHAR(50) NOT NULL DEFAULT '', -- private portion of the key
    public_key VARCHAR(50) NOT NULL, -- public portion of the key
    dns VARCHAR(255) NOT NULL DEFAULT '', -- dns server (ips)
    search_domain VARCHAR(255) NOT NULL DEFAULT '', -- local search domain
    mtu INTEGER NOT NULL DEFAULT 0, -- maximum transmission unit
    fw_mark INTEGER NOT NULL DEFAULT 0 -- for iptables
);

SQL queries
No response
Configuration
version: 2
sql:
- schema: "schema.sql"
  queries: "queries.sql"
  engine: "sqlite"
  gen:
    go:
      package: "db"
      out: "wvg/db"
      rename:
        dns: "DNS"
        mtu: "MTU"
        ip_address: "IPAddress"

Playground URL
No response
What operating system are you using?
macOS
What database engines are you using?
No response
What type of code are you generating?
Go

Duplicate.
For anyone looking, the correct syntax for version 2 should be:
version: 2
sql:
- schema: "schema.sql"
  queries: "queries.sql"
  engine: "sqlite"
  gen:
    go:
      package: "db"
      out: "wvg/db"
overrides:
  go:
    rename:
      dns: "DNS"
      mtu: "MTU"
      ip_address: "IPAddress"


Laravel 6+

Any plans to update this package for Laravel 6+?

There seems not to be any breaking changes regarding to this package so this should be pretty straightforward.

Laravel 6 is now supported in v5.0.0


Response status code does not indicate success: BadRequest (400); Substatus: 1001; ActivityId: 68af0c72-ff2d-4055-8898-b94a08f18ead; Reason: ();

While creating new item I am getting below error
"Response status code does not indicate success: BadRequest (400); Substatus: 1001; ActivityId: 68af0c72-ff2d-4055-8898-b94a08f18ead; Reason: ();"
Stack Trace:
at Microsoft.Azure.Cosmos.ResponseMessage.EnsureSuccessStatusCode()
at Microsoft.Azure.Cosmos.CosmosResponseFactoryCore.ProcessMessage[T](ResponseMessage responseMessage, Func2 createResponse)    at Microsoft.Azure.Cosmos.CosmosResponseFactoryCore.CreateItemResponse[T](ResponseMessage responseMessage)    at Microsoft.Azure.Cosmos.ContainerCore.<CreateItemAsync>d__541.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()    at Microsoft.Azure.Cosmos.ClientContextCore.<RunWithDiagnosticsHelperAsync>d__391.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()    at Microsoft.Azure.Cosmos.ClientContextCore.<OperationHelperWithRootTraceAsync>d__301.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()    at Microsoft.Azure.CosmosRepository.DefaultRepository1.d__7.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Threading.Tasks.ValueTask1.get_Result()    at System.Runtime.CompilerServices.ValueTaskAwaiter1.GetResult()
at CardGroupEventSubscriber.Publishers.UINotificationPublisher.d__2.MoveNext() in C:\notification-subscribers\dev\Notification-Microservices\CardGroupEventSubscriber\CardGroupEventSubscriber\Publishers\UINotificationPublisher.cs:line 49
Below is my code:
public class UINotificationPublisher : IUINotificationPublisher
{
   private readonly IRepository<Notifications> _uiNotificationsRepository;

    public UINotificationPublisher(
        IRepositoryFactory factory

        )
    {
        _uiNotificationsRepository = factory.RepositoryOf<Notifications>();

    }

    public async Task PublishAsync(IEnumerable<UserSubscriptions> userSubscriptions, CardGroupEvent @event, ILogger logger)
    {
        try
        {
            var uiSubscriptions = userSubscriptions
                .Where(x => x.Events.Any(y => y.EventType == (int)EventType.CARD_GROUP_CHANGED && y.Channels.Contains((int)ChannelType.UI)));

            if (uiSubscriptions.Any())
            {
                logger.LogInformation($"UI notification subscriptions found, requestID:{@event.RequestID}");

                List<Notifications> uiNotifications = new List<Notifications>();

                foreach (var item in uiSubscriptions)
                {
                    logger.LogInformation($"creating UI notification for UUID:{item.UUID}. requestID:{@event.RequestID}");

                    uiNotifications.Add(CreateItemAsync(item, @event));

                    logger.LogInformation($"successfully created UI Notification for UUID:{item.UUID}: {@event.RequestID}");
                }
                await _uiNotificationsRepository.CreateAsync(uiNotifications);
            }
            else
                logger.LogInformation($"No UI notification subscriptions found: requestID:{@event.RequestID}");
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }

    private Notifications CreateItemAsync(UserSubscriptions userSubscription, CardGroupEvent @event)
    {
        Notifications notifications = new Notifications
        {
            Id = Guid.NewGuid().ToString(),
            Created = DateTime.UtcNow,
            RequestID = @event.RequestID,
            NotificationType = (int)EventType.CARD_GROUP_CHANGED,
            SubType = @event.EventSubType,
            UserUUId = userSubscription.UUID,
            Payer = @event.PayerNumber,
            PayerName = @event.PayerName,
            Account = @event.AccountNumber,
            AccountName = @event.AccountName,
            MetaData = GetMetaData(@event),
            Status = (int)NotificationStatus.UnRead

        };

        return notifications;

    }

    private Dictionary<string, string> GetMetaData(CardGroupEvent @event)
    {

        var metaData = new Dictionary<string, string>();

        metaData.Add(nameof(@event.AccountNumber), @event.AccountNumber);
        metaData.Add(nameof(@event.AccountName), @event.AccountName);

        return metaData;
    }
}

Hi @rakeshbimra would you be able to share the full error? Cosmos DB usually logs a JSON body with some more details on the 400 response.

I tried with another object, But I am getting same error.
Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: BadRequest (400); Substatus: 1001; ActivityId: 62f88a7a-952f-41ef-9bd3-1c09df77df0d; Reason: ();
at Microsoft.Azure.Cosmos.ResponseMessage.EnsureSuccessStatusCode()
at Microsoft.Azure.Cosmos.CosmosResponseFactoryCore.ProcessMessage[T](ResponseMessage responseMessage, Func2 createResponse)    at Microsoft.Azure.Cosmos.CosmosResponseFactoryCore.CreateItemResponse[T](ResponseMessage responseMessage)    at Microsoft.Azure.Cosmos.ContainerCore.CreateItemAsync[T](T item, ITrace trace, Nullable1 partitionKey, ItemRequestOptions requestOptions, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.ClientContextCore.RunWithDiagnosticsHelperAsync[TResult](ITrace trace, Func2 task)    at Microsoft.Azure.Cosmos.ClientContextCore.OperationHelperWithRootTraceAsync[TResult](String operationName, RequestOptions requestOptions, Func2 task, TraceComponent traceComponent, TraceLevel traceLevel)
at Microsoft.Azure.CosmosRepository.DefaultRepository1.CreateAsync(TItem value, CancellationToken cancellationToken)    at Microsoft.Azure.CosmosRepository.DefaultRepository1.CreateAsync(IEnumerable1 values, CancellationToken cancellationToken)    at lambda_method5(Closure , Object )    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
--- Cosmos Diagnostics ---{"Summary":{"DirectCalls":{"(207, 0)":1},"RegionsContacted":1,"GatewayCalls":{"(200, 0)":1}},"name":"CreateItemAsync","id":"8cc57a15-4351-4eae-862d-ce5ef0b705a6","caller info":{"member":"OperationHelperWithRootTraceAsync","file":"ClientContextCore.cs","line":244},"start time":"08:44:40:366","duration in milliseconds":511.5327,"data":{"Client Configuration":{"Client Created Time Utc":"2022-05-14T08:44:37.4047086Z","NumberOfClientsCreated":1,"User Agent":"cosmos-netstandard-sdk/3.23.0|3.23.1|1|X64|Microsoft Windows 10.0.22000|.NET 6.0.5|N|F 00000011|","ConnectionConfig":{"gw":"(cps:50, urto:10, p:False, httpf: True)","rntbd":"(cto: 5, icto: -1, mrpc: 30, mcpe: 65535, erd: True, pr: ReuseUnicastPort)","other":"(ed:False, be:True)"},"ConsistencyConfig":"(consistency: NotSet, prgns:[])"}},"children":[{"name":"ItemSerialize","id":"a18e2702-d242-408f-8d42-b2a413ddd533","caller info":{"member":"ExtractPartitionKeyAndProcessItemStreamAsync","file":"ContainerCore.Items.cs","line":941},"start time":"08:44:40:372","duration in milliseconds":9.3449},{"name":"Get Collection Cache","id":"b5cb7ba0-b762-4126-88c1-edd0a79beee5","caller info":{"member":"GetCollectionCacheAsync","file":"DocumentClient.cs","line":546},"start time":"08:44:40:446","duration in milliseconds":0.0092},{"name":"Batch Dispatch Async","id":"2d3fc9e8-025f-4c38-800e-207f061df215","caller info":{"member":"DispatchAsync","file":"BatchAsyncBatcher.cs","line":124},"start time":"08:44:40:591","duration in milliseconds":284.0741,"children":[{"name":"Using Wait","id":"115599cf-99b7-4304-b566-8e9642869a9b","caller info":{"member":"UsingWaitAsync","file":"Extensions.cs","line":189},"start time":"08:44:40:740","duration in milliseconds":0.0505},{"name":"Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler","id":"24552172-b290-4d46-a477-fcefe15f855c","start time":"08:44:40:740","duration in milliseconds":104.7389,"children":[{"name":"Microsoft.Azure.Cosmos.Handlers.DiagnosticsHandler","id":"df46c23f-ac0b-4b19-8965-05a9cf927111","start time":"08:44:40:741","duration in milliseconds":103.7768,"data":{"System Info":{"systemHistory":[{"dateUtc":"2022-05-14T08:44:39.4818499Z","cpu":6.211,"memory":6575452.000,"threadInfo":{"isThreadStarving":"no info","availableThreads":32765,"minThreads":8,"maxThreads":32767}}]}},"children":[{"name":"Microsoft.Azure.Cosmos.Handlers.RetryHandler","id":"ae7996aa-2277-4bb3-b12c-9a4130741ccd","start time":"08:44:40:741","duration in milliseconds":103.762,"children":[{"name":"Microsoft.Azure.Cosmos.Handlers.RouterHandler","id":"f61dcd1d-765e-4b33-a678-93ea62b2eb72","start time":"08:44:40:741","duration in milliseconds":103.7365,"children":[{"name":"Microsoft.Azure.Cosmos.Handlers.TransportHandler","id":"4a72fbf9-e09b-4aba-bd97-4695a570c233","start time":"08:44:40:741","duration in milliseconds":103.7301,"children":[{"name":"Microsoft.Azure.Documents.ServerStoreModel Transport Request","id":"9e5b3de7-8546-450d-8310-f6dc6ef504e5","caller info":{"member":"ProcessMessageAsync","file":"TransportHandler.cs","line":109},"start time":"08:44:40:742","duration in milliseconds":103.4108,"data":{"Client Side Request Stats":{"Id":"AggregatedClientSideRequestStatistics","ContactedReplicas":[{"Count":12,"Uri":"rntbd://<IP_ADDRESS>:10253/apps/DocDbApp/services/DocDbServer0/partitions/a4cb494c-38c8-11e6-8106-8cdcd42c33be/replicas/1p/"}],"RegionsContacted":["https://<IP_ADDRESS>:8081/"],"FailedReplicas":[],"AddressResolutionStatistics":[{"StartTimeUTC":"2022-05-14T08:44:40.7532755Z","EndTimeUTC":"2022-05-14T08:44:40.7636993Z","TargetEndpoint":"https://<IP_ADDRESS>:8081//addresses/?$resolveFor=dbs%2F0DAwAA%3D%3D%2Fcolls%2F0DAwAMV-5Uc%3D%2Fdocs&$filter=protocol eq rntbd&$partitionKeyRangeIds=0"}],"StoreResponseStatistics":[{"ResponseTimeUTC":"2022-05-14T08:44:40.8391066Z","ResourceType":"Document","OperationType":"Batch","LocationEndpoint":"https://<IP_ADDRESS>:8081/","StoreResult":{"ActivityId":"62f88a7a-952f-41ef-9bd3-1c09df77df0d","StatusCode":"MultiStatus","SubStatusCode":"Unknown","LSN":25,"PartitionKeyRangeId":"0","GlobalCommittedLSN":-1,"ItemLSN":-1,"UsingLocalLSN":false,"QuorumAckedLSN":25,"SessionToken":"-1#25","CurrentWriteQuorum":1,"CurrentReplicaSetSize":1,"NumberOfReadRegions":0,"IsValid":true,"StorePhysicalAddress":"rntbd://<IP_ADDRESS>:10253/apps/DocDbApp/services/DocDbServer0/partitions/a4cb494c-38c8-11e6-8106-8cdcd42c33be/replicas/1p/","RequestCharge":1.24,"RetryAfterInMs":null,"BELatencyInMs":"0.48","transportRequestTimeline":{"requestTimeline":[{"event": "Created", "startTimeUtc": "2022-05-14T08:44:40.8058064Z", "durationInMs": 0.0281},{"event": "ChannelAcquisitionStarted", "startTimeUtc": "2022-05-14T08:44:40.8058345Z", "durationInMs": 26.0951},{"event": "Pipelined", "startTimeUtc": "2022-05-14T08:44:40.8319296Z", "durationInMs": 5.9906},{"event": "Transit Time", "startTimeUtc": "2022-05-14T08:44:40.8379202Z", "durationInMs": 0.7719},{"event": "Received", "startTimeUtc": "2022-05-14T08:44:40.8386921Z", "durationInMs": 0.3489},{"event": "Completed", "startTimeUtc": "2022-05-14T08:44:40.8390410Z", "durationInMs": 0}],"requestSizeInBytes":516,"requestBodySizeInBytes":170,"responseMetadataSizeInBytes":239,"responseBodySizeInBytes":47},"TransportException":null}}],"HttpResponseStats":[{"StartTimeUTC":"2022-05-14T08:44:40.7533210Z","DurationInMs":9.3191,"RequestUri":"https://<IP_ADDRESS>:8081//addresses/?$resolveFor=dbs%2F0DAwAA%3D%3D%2Fcolls%2F0DAwAMV-5Uc%3D%2Fdocs&$filter=protocol eq rntbd&$partitionKeyRangeIds=0","ResourceType":"Document","HttpMethod":"GET","ActivityId":"62f88a7a-952f-41ef-9bd3-1c09df77df0d","StatusCode":"OK"}]}}}]}]}]}]}]},{"name":"Create Trace","id":"f65c9368-245a-4eca-bd97-f66f69512cee","caller info":{"member":"FromResponseMessageAsync","file":"TransactionalBatchResponse.cs","line":214},"start time":"08:44:40:847","duration in milliseconds":18.8027}]}]}
HEADERS
Accept: text/plain
Host: localhost:7181
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36
:method: POST
Accept-Encoding: gzip, deflate, br
Accept-Language: en-IN,en-GB;q=0.9,en-US;q=0.8,en;q=0.7,gu;q=0.6
Content-Type: application/json
Cookie: ai_user=fORwRI0L0LQcEctOyzOyUi|2022-05-07T16:12:00.509Z,ai_session=tdE5IBQbOrst14LPkyHQK7|1652516398291|1652517805283
Origin: https://localhost:7181
Referer: https://localhost:7181/swagger/index.html
Content-Length: 90
sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="101", "Google Chrome";v="101"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
sec-fetch-site: same-origin
sec-fetch-mode: cors
sec-fetch-dest: empty

Okay I think @IEvangelist ran into this problem as well a few months back.
Have you tried setting the serialised options on RepositoryOptions if you see here https://github.com/IEvangelist/azure-cosmos-dotnet-repository/blob/fe87219fd93cd28087f92473e1bafae055f6378f/src/Microsoft.Azure.CosmosRepository/Options/RepositorySerializationOptions.cs#L31
It defaults to camel case unless overridden.

I tried but still getting the same issue
builder.Services.AddCosmosRepository(options =>
{
    options.SerializationOptions = new Microsoft.Azure.CosmosRepository.Options.RepositorySerializationOptions
    {
        PropertyNamingPolicy = Microsoft.Azure.Cosmos.CosmosPropertyNamingPolicy.Default
    };
});

Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: BadRequest (400); Substatus: 1001; ActivityId: af83319b-ef2b-4abc-93ec-357f214a1f48; Reason: ();
at Microsoft.Azure.Cosmos.ResponseMessage.EnsureSuccessStatusCode()
at Microsoft.Azure.Cosmos.CosmosResponseFactoryCore.ProcessMessage[T](ResponseMessage responseMessage, Func2 createResponse)    at Microsoft.Azure.Cosmos.CosmosResponseFactoryCore.CreateItemResponse[T](ResponseMessage responseMessage)    at Microsoft.Azure.Cosmos.ContainerCore.CreateItemAsync[T](T item, ITrace trace, Nullable1 partitionKey, ItemRequestOptions requestOptions, CancellationToken cancellationToken)
at Microsoft.Azure.Cosmos.ClientContextCore.RunWithDiagnosticsHelperAsync[TResult](ITrace trace, Func2 task)    at Microsoft.Azure.Cosmos.ClientContextCore.OperationHelperWithRootTraceAsync[TResult](String operationName, RequestOptions requestOptions, Func2 task, TraceComponent traceComponent, TraceLevel traceLevel)
at Microsoft.Azure.CosmosRepository.DefaultRepository1.CreateAsync(TItem value, CancellationToken cancellationToken)    at Microsoft.Azure.CosmosRepository.DefaultRepository1.CreateAsync(IEnumerable1 values, CancellationToken cancellationToken)    at lambda_method5(Closure , Object )    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
--- Cosmos Diagnostics ---{"Summary":{"DirectCalls":{"(207, 0)":1},"RegionsContacted":1,"GatewayCalls":{"(200, 0)":1}},"name":"CreateItemAsync","id":"2fad8e01-215e-4ab9-abcc-4c602bd22eab","caller info":{"member":"OperationHelperWithRootTraceAsync","file":"ClientContextCore.cs","line":244},"start time":"04:23:14:564","duration in milliseconds":511.9447,"data":{"Client Configuration":{"Client Created Time Utc":"2022-05-14T16:23:11.8202242Z","NumberOfClientsCreated":1,"User Agent":"cosmos-netstandard-sdk/3.23.0|3.23.1|1|X64|Microsoft Windows 10.0.22000|.NET 6.0.5|N|F 00000011|","ConnectionConfig":{"gw":"(cps:50, urto:10, p:False, httpf: True)","rntbd":"(cto: 5, icto: -1, mrpc: 30, mcpe: 65535, erd: True, pr: ReuseUnicastPort)","other":"(ed:False, be:True)"},"ConsistencyConfig":"(consistency: NotSet, prgns:[])"}},"children":[{"name":"ItemSerialize","id":"787e87d1-6842-4d9a-9c36-fe2fb04e8612","caller info":{"member":"ExtractPartitionKeyAndProcessItemStreamAsync","file":"ContainerCore.Items.cs","line":941},"start time":"04:23:14:569","duration in milliseconds":18.2076},{"name":"Get Collection Cache","id":"5b7fed76-4b1f-4550-bd27-5fb200fd2159","caller info":{"member":"GetCollectionCacheAsync","file":"DocumentClient.cs","line":546},"start time":"04:23:14:647","duration in milliseconds":0.007},{"name":"Batch Dispatch Async","id":"dd4506e8-6abf-4880-bdd6-1879919584d0","caller info":{"member":"DispatchAsync","file":"BatchAsyncBatcher.cs","line":124},"start time":"04:23:14:802","duration in milliseconds":271.6853,"children":[{"name":"Using Wait","id":"96445465-1301-4594-a764-7603288d4aab","caller info":{"member":"UsingWaitAsync","file":"Extensions.cs","line":189},"start time":"04:23:14:944","duration in milliseconds":0.0429},{"name":"Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler","id":"0a1be41d-9815-4aca-9948-c683e483ca19","start time":"04:23:14:944","duration in milliseconds":94.0321,"children":[{"name":"Microsoft.Azure.Cosmos.Handlers.DiagnosticsHandler","id":"69abaa22-1db9-417e-976f-d68ee7afb54e","start time":"04:23:14:945","duration in milliseconds":92.7605,"data":{"System Info":{"systemHistory":[{"dateUtc":"2022-05-14T16:23:13.9006712Z","cpu":6.263,"memory":5479204.000,"threadInfo":{"isThreadStarving":"no info","availableThreads":32765,"minThreads":8,"maxThreads":32767}}]}},"children":[{"name":"Microsoft.Azure.Cosmos.Handlers.RetryHandler","id":"2dbede1d-d52f-4e28-9659-029859ea65a9","start time":"04:23:14:945","duration in milliseconds":92.7151,"children":[{"name":"Microsoft.Azure.Cosmos.Handlers.RouterHandler","id":"5954432d-ee8b-4d7f-88ba-7f42650d61e7","start time":"04:23:14:945","duration in milliseconds":92.6554,"children":[{"name":"Microsoft.Azure.Cosmos.Handlers.TransportHandler","id":"9b5e14e2-6984-4d8c-a958-b5affce0be7b","start time":"04:23:14:945","duration in milliseconds":92.6376,"children":[{"name":"Microsoft.Azure.Documents.ServerStoreModel Transport Request","id":"7efb3b93-0bcb-4dcd-a221-53fa58d6600e","caller info":{"member":"ProcessMessageAsync","file":"TransportHandler.cs","line":109},"start time":"04:23:14:945","duration in milliseconds":92.1329,"data":{"Client Side Request Stats":{"Id":"AggregatedClientSideRequestStatistics","ContactedReplicas":[{"Count":12,"Uri":"rntbd://<IP_ADDRESS>:10253/apps/DocDbApp/services/DocDbServer0/partitions/a4cb494c-38c8-11e6-8106-8cdcd42c33be/replicas/1p/"}],"RegionsContacted":["https://<IP_ADDRESS>:8081/"],"FailedReplicas":[],"AddressResolutionStatistics":[{"StartTimeUTC":"2022-05-14T16:23:14.9648854Z","EndTimeUTC":"2022-05-14T16:23:14.9755754Z","TargetEndpoint":"https://<IP_ADDRESS>:8081//addresses/?$resolveFor=dbs%2F0DAwAA%3D%3D%2Fcolls%2F0DAwAKEhSb0%3D%2Fdocs&$filter=protocol eq rntbd&$partitionKeyRangeIds=0"}],"StoreResponseStatistics":[{"ResponseTimeUTC":"2022-05-14T16:23:15.0331138Z","ResourceType":"Document","OperationType":"Batch","LocationEndpoint":"https://<IP_ADDRESS>:8081/","StoreResult":{"ActivityId":"af83319b-ef2b-4abc-93ec-357f214a1f48","StatusCode":"MultiStatus","SubStatusCode":"Unknown","LSN":36,"PartitionKeyRangeId":"0","GlobalCommittedLSN":-1,"ItemLSN":-1,"UsingLocalLSN":false,"QuorumAckedLSN":36,"SessionToken":"-1#36","CurrentWriteQuorum":1,"CurrentReplicaSetSize":1,"NumberOfReadRegions":0,"IsValid":true,"StorePhysicalAddress":"rntbd://<IP_ADDRESS>:10253/apps/DocDbApp/services/DocDbServer0/partitions/a4cb494c-38c8-11e6-8106-8cdcd42c33be/replicas/1p/","RequestCharge":1.24,"RetryAfterInMs":null,"BELatencyInMs":"0.43","transportRequestTimeline":{"requestTimeline":[{"event": "Created", "startTimeUtc": "2022-05-14T16:23:15.0069415Z", "durationInMs": 0.0121},{"event": "ChannelAcquisitionStarted", "startTimeUtc": "2022-05-14T16:23:15.0069536Z", "durationInMs": 19.8772},{"event": "Pipelined", "startTimeUtc": "2022-05-14T16:23:15.0268308Z", "durationInMs": 5.2694},{"event": "Transit Time", "startTimeUtc": "2022-05-14T16:23:15.0321002Z", "durationInMs": 0.6716},{"event": "Received", "startTimeUtc": "2022-05-14T16:23:15.0327718Z", "durationInMs": 0.3268},{"event": "Completed", "startTimeUtc": "2022-05-14T16:23:15.0330986Z", "durationInMs": 0}],"requestSizeInBytes":516,"requestBodySizeInBytes":170,"responseMetadataSizeInBytes":239,"responseBodySizeInBytes":47},"TransportException":null}}],"HttpResponseStats":[{"StartTimeUTC":"2022-05-14T16:23:14.9649610Z","DurationInMs":9.8268,"RequestUri":"https://<IP_ADDRESS>:8081//addresses/?$resolveFor=dbs%2F0DAwAA%3D%3D%2Fcolls%2F0DAwAKEhSb0%3D%2Fdocs&$filter=protocol eq rntbd&$partitionKeyRangeIds=0","ResourceType":"Document","HttpMethod":"GET","ActivityId":"af83319b-ef2b-4abc-93ec-357f214a1f48","StatusCode":"OK"}]}}}]}]}]}]}]},{"name":"Create Trace","id":"d0954eb9-105e-490c-8973-fafc4b8a27a4","caller info":{"member":"FromResponseMessageAsync","file":"TransactionalBatchResponse.cs","line":214},"start time":"04:23:15:040","duration in milliseconds":18.2378}]}]}

It starated working when I am using CosmosPropertyNamingPolicy.Default
 builder.Services.AddCosmosRepository(options =>
            {
                options.SerializationOptions = new Microsoft.Azure.CosmosRepository.Options.RepositorySerializationOptions
                {
                    PropertyNamingPolicy = CosmosPropertyNamingPolicy.Default
                };
            });

Closing this issue, as the matter of configuring serialization is the known solution.


Improve TS

To avoid people like me from spending a long time trying to understand why this fails, this line could be changed from
precondition?: Precondition
to
precondition?: Omit<Precondition, 'exists'>
https://github.com/googleapis/nodejs-firestore/blob/319adc3ff6fdcd0ab61766d4eb8301fc8ac5431b/types/firestore.d.ts#L1469C22-L1469C34

Thank you for the suggestions. I will bring this up for team discussion.


Path normalization causes more accepted file paths

I have a feeling this will be a wontfix but figure I should raise this anyway in case there's interest in converging with other runtimes on this behavior.
Describe the bug
Due to the path.Clean() call in the atPath() implementation, some paths that are rejected by other runtimes are OK in Wazero.  For example, given a preopen directory fd and the path a/../a, path.Clean() would normalize away the .. and produce a as the final path. In runtimes such as Wasmtime and WAMR, since the first a/ does not exist, a call involving that path returns noent (44).
To Reproduce
This snippet will fail with Wasmtime, WAMR, WasmEdge, Wasmer. But Wazero creates the link a pointing to link successfully.
fn main() {
    unsafe {
        let base_fd = 3;

        wasi::path_symlink("link", base_fd, "a/../a").unwrap();
    }
}

Environment (please complete the relevant information):

Go version: 1.22.3
wazero Version: bf42c25657484ba65ec2a4c39adfba43b2666680
Host architecture: amd64
Runtime mode: compiler

Additional context
The only other runtime that has the same behavior is Node with uvwasi. That's because uvwasi uses libuv which doesn't have an openat(2) equivalent (yet!).
The wasi-filesystem spec describes a path resolution implementation that conflicts with the usage of path.Clean and similar path normalization strategies.

well, personally I am not against converging with other implementations, I suppose this used to be underspecified

I can take a stab at it.


Gang min cardinality

Context:

This PR allows jobs in a gang to successfully schedule if a minimum number of jobs are deemed schedulable (previously we required that the entire gang was schedulable)
In the case that the minimum threshold is schedulable, and the minimum is less than the maximum gang size, the remainder of jobs are failed back to the client for them to do with what they please
This paves the way for clients such as DogeFarm to re-submit jobs to an existing gang in a different batch

Looks good to me


C# tutorials - expression trees

SHow how to use expression trees to enable dynamic modification of executable code in C#.
Tutorials should include one or more code examples, each example should also show expected output and should include an explanation of the code where it isn't obvious. Examples shouldn't be dependent on a specific IDE or target platform.

I'll work on this. Will someone please assign it to me?

Done - should be assigned to you now. Thanks!

This should be closed, as it was addressed in PR #205


[BUG] - OpenAI API not working

Description
Whenever I put working (checked with other apps) OpenAI API key either to .env or to YAML in the app's interface Im getting the error below.  Tried different brackets, quotation marks etc. but Im still unable to use openai api. Thanks for any help
Reproduction steps
1. Go to Resources settings in the app.
2. Click on Specification of the LLM in YAML format
3. Enter openAI API key
4. See error:  Connection failed. Got error: Error code: 401 - {'error': {'message': 'Incorrect API key provided: openai_key. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}.

Screenshots
![DESCRIPTION](LINK.png)

Logs
No response
Browsers
No response
OS
MacOS
Additional information
No response

I export the api key and then I run by terminal the app.py:
export OPENAI_API_KEY=sk-
export GRAPHRAG_API_KEY=sk-pr

Can you test a quick curl command to see if API key is correct or is there any networking issue:
curl "https://api.openai.com/v1/chat/completions" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $OPENAI_API_KEY" \
    -d '{
        "model": "gpt-4o-mini",
        "messages": [
            {
                "role": "system",
                "content": "You are a helpful assistant."
            },
            {
                "role": "user",
                "content": "Write a haiku that explains the concept of recursion."
            }
        ]
    }'

Something happened, probably the new app update, and it is working now. Thanks anyways!:)

Same error here

any updates to this ?


fix chunked data when appending new chunks to a group

related to [BUG] chunked Compound size is incorrect. #192

[BUG] chunked Compound size is incorrect. Fix #192


Suppress the warning in rootless mode containers

This is going to change the confusing feedback we give to users when they are working with our images in rootless mode.

What do you need here?

@angerson Can you please review this PR ? Thank you!

Can you explain this more in the file, please? The comment should explain what rootless mode is and why this check works.

Can you explain this more in the file, please? The comment should explain what rootless mode is and why this check works.

Let me know exactly what string you want and I will put it there.
Rootless is: Run the Docker daemon as a non-root user as in the official Docker terminology https://docs.docker.com/engine/security/rootless/.
If you are running Docker in rootless mode I suppose what it means.
The check it is explained as on the host (initial user namespace)  in /proc/self/uid_map we have<PHONE_NUMBER>. This is the same approach as referenced and used in Kubernetes/kind

@angerson Can you please take a look on the above comment from @bhack. Thank you!

@angerson Any update on this PR? Please. Thank you!

@angerson Any update on this PR? Please. Thank you!

This seems very hardcoded. Can you explain why<PHONE_NUMBER> is there, for example?

https://man7.org/linux/man-pages/man7/user_namespaces.7.html

Yes, I know it's an unsigned -1, but the comments should make it clear why it is there

What do you want to specify? Something like this?

The initial user namespace has no parent namespace, but, for consistency, the kernel provides dummy user and group ID mapping files for this namespace on a range starting 0 to 32-bit unsigned integer.

LG now, leaving to Austin for approval.

Hi @bhack Can you please resolve conflicts? Thank you!

This is 11 months old. I will invest time again if there are reviewers resources

What kind of activity?

What kind of activity?

Hi @bhack It means, this PR does not have recent updates. Thank you!

Yes I know I was the one that introduced this GitHub action in the repo with a PR.
What I meant after more then 1 year and a review what do you want to do with this PR.
If you are not interested close it but I don't want that it will be closed as stale.

Hi @angerson Can you please review this PR ? Thank you!

I think a whole year is probably enough.
Thanks.


get_EntityQueryableExpressionVisitorFactory does not have an implementation.

I've just updated all my projects to beta7, and i'm getting this on EF.

For some reason it was downloading EntityFramework.Core as beta8. Closed.


Upload on file select doesn't send files with the request

I'm using the upload on file select and sending multiple files to the server which is written in grails. However, I can't get a hold of the files on the server side.
app.js
//inject angular file upload directives and services.
var app = angular.module('fileUpload', ['ngFileUpload']);

app.controller('MyCtrl', ['$scope', 'Upload', '$timeout', function ($scope, Upload, $timeout) {
    $scope.uploadFiles = function (files) {
        $scope.files = files;
        if (files && files.length) {
            Upload.upload({
                url: 'http://localhost:8080/classifydemo/request/create',
                data: {
                    files: files
                }
            }).then(function (response) {
                $timeout(function () {
                    $scope.result = response.data;
                });
            }, function (response) {
                if (response.status > 0) {
                    $scope.errorMsg = response.status + ': ' + response.data;
                }
            }, function (evt) {
                $scope.progress =
                    Math.min(100, parseInt(100.0 * evt.loaded / evt.total));
            });
        }
    };
}]);

Index.html

Upload on file select

  <button ngf-select="uploadFiles($files, $invalidFiles)" multiple
          accept="image/*" ngf-max-height="1000" ngf-max-size="1MB">
      Select Files</button>

  Files:

{{f.name}} {{f.$errorParam}}
      = 0">

{{f.name}} {{f.$error}} {{f.$errorParam}}

  {{errorMsg}}

My server side grails action:
import org.springframework.web.multipart.*
class RequestController {
	def create() {
		request.headerNames.each{
		   println it
		}
		println params
		String content = request.getContentType()
		println "Content is: " + content //this prints null

		//does not enter here
		request.fileNames.each {
			println "came here"
			println it
		}
		render "test"
	}
}

This is what the request header looks like on the upload

How would I get access to the files on the server side?

Please disregard. issue was CORS


Don't fail on 500 errors when forwarding STDIN

This happens when the container exits before the call to attach the
container input is done, in such case Mesos will return a 500 error
when the call is done later on, we should fail silently in such cases
and continue to consume the container output.
This was handled in Python here:
https://github.com/dcos/dcos-core-cli/blob/793c47ce90f49a4cdf6b3b47d9f358ede510a4ca/python/lib/dcos/dcos/mesos.py#L1569-L1576
https://jira.mesosphere.com/browse/DCOS_OSS-5432

@mesosphere-ci run mac integration tests

@mesosphere-ci run all integration tests


upload gets passed a buffer, not the html

IndexAdapter.upload gets a buffer and not the Index HTML: http://nodejs.org/api/fs.html#fs_fs_readfile_filename_options_callback
This doesn't have to be a problem, but either the functionality should be updated, or the README.

thx i will look into this

This no longer is relevant in 0.5.0.


Run OfflineClusterIntegrationTest test with both query engines.

Like #11404, but only modifying OfflineClusterIntegrationTest
@xiangfu0

Codecov Report

Merging #11412 (7b7be4a) into master (027943b) will decrease coverage by 48.42%.
Report is 19 commits behind head on master.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master   #11412       +/-   ##
=============================================
- Coverage     62.89%   14.48%   -48.42%
+ Complexity     1079      201      -878
=============================================
  Files          2301     2302        +1
  Lines        123666   124025      +359
  Branches      18798    18901      +103
=============================================
- Hits          77776    17960    -59816
- Misses        40364   104547    +64183
+ Partials       5526     1518     -4008

Flag
Coverage Δ

integration
?

integration1
?

integration2
?

java-11
14.47% <ø> (-48.40%)
:arrow_down:

java-17
?

java-20
14.47% <ø> (-48.29%)
:arrow_down:

temurin
14.48% <ø> (-48.42%)
:arrow_down:

unittests
14.48% <ø> (-48.41%)
:arrow_down:

unittests1
?

unittests2
14.48% <ø> (-0.05%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1477 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Empty catalog view

Currently, the catalog just displays an empty view when no class has been selected. Instead, figure out a way to do the following:

[ ] Save recent searches to localStorage and display (this might take some extra consideration; I would suggest displaying the search and the semester but save all filters)
[ ] Display saved classes
[ ] Add an "X" button so the user can deselect any class they have selected and return to the empty view with recent searches, recent classes, etc.

Hello what is the plan for this? Is this a duplicate of #624? I have work on this in progress already

@Jdyn oh icic. Matt and I just synced about this yesterday so I didn't know you were already working on it. @mathhulk should Jayden handle this task then?


Using multiple plugins in tsconfig.json

How do I use the exlcude param and multiple plugins in tsconfig.json? Really stuck.

If your tsconfig has a typedocOptions plugin, TypeDoc will read options from that in same way as if you specified them in typedoc.json, for example:
{
    "$schema": "http://json.schemastore.org/tsconfig",
    "compilerOptions": {
        "target": "ESNext"
    },
    "typedocOptions": {
        "plugin": ["typedoc-plugin-markdown", "./local_plugin.js"]
    }
}

If your tsconfig has a typedocOptions plugin, TypeDoc will read options from that in same way as if you specified them in typedoc.json, for example:
{
    "$schema": "http://json.schemastore.org/tsconfig",
    "compilerOptions": {
        "target": "ESNext"
    },
    "typedocOptions": {
        "plugin": ["typedoc-plugin-markdown", "./local_plugin.js"]
    }
}


Update kpi_inference_curator.py

df_single loc referencer should reference df_single, not predecessor dataframe.
Signed-off-by: MichaelTiemann<EMAIL_ADDRESS>

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign erikerlandson after the PR has been reviewed.
You can assign the PR to them by writing /assign @erikerlandson in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@MichaelTiemannOSC: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

aicoe-ci/prow/pre-commit
78faa235dc9f89ba6a965450ebf08064299982df
link
true
/test pre-commit

Full PR test history. Your PR dashboard. Please help us and open an issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Regarding the first question, I don't know how to interact with the test cases, but I have observed this coding error many times (sometimes in my own code) and recognize it as an idiomatic pandas problem that has an idiomatic pandas solution.  For the instant case, one can compute two dataframes and assert their equality, but that's not something that can go into a squashed change, only an intermediate step.
Regarding the comment about the pre-comment errors, as explained in other issues, I cannot apply the answers from this StackExchange thread because pre-commit is not in my path, nor does the bash solution work: https://stackoverflow.com/questions/48301280/how-can-i-manually-run-a-git-pre-commit-hook-without-attempting-a-commit
[1000630000@jupyterhub-nb-michaeltiemannosc preprocessing]$ pre-commit run --files kpi_inference_curator.py
bash: pre-commit: command not found
[1000630000@jupyterhub-nb-michaeltiemannosc preprocessing]$ bash .git/hooks/pre-commit
bash: .git/hooks/pre-commit: No such file or directory
[1000630000@jupyterhub-nb-michaeltiemannosc preprocessing]$ bash ../.git/hooks/pre-commit
bash: ../.git/hooks/pre-commit: No such file or directory
[1000630000@jupyterhub-nb-michaeltiemannosc preprocessing]$ bash ../../.git/hooks/pre-commit
bash: ../../.git/hooks/pre-commit: No such file or directory
[1000630000@jupyterhub-nb-michaeltiemannosc preprocessing]$ bash ../../../.git/hooks/pre-commit
bash: ../../../.git/hooks/pre-commit: No such file or directory

Regarding the first question, I don't know how to interact with the test cases, but I have observed this coding error many times (sometimes in my own code) and recognize it as an idiomatic pandas problem that has an idiomatic pandas solution. For the instant case, one can compute two dataframes and assert their equality, but that's not something that can go into a squashed change, only an intermediate step.

I don't think there is any testing framework defined here. With changes like this, we just make sure, like you said that the two dataframes are equal so that it doesn't result into any unwanted change in the model output. If we check for equality during development, we can mention that in the PR description (what did we test and how) and optionally add a screenshot.

Regarding the comment about the pre-comment errors, as explained in other issues, I cannot apply the answers from this StackExchange thread because pre-commit is not in my path, nor does the bash solution work: https://stackoverflow.com/questions/48301280/how-can-i-manually-run-a-git-pre-commit-hook-without-attempting-a-commit
[1000630000@jupyterhub-nb-michaeltiemannosc preprocessing]$ pre-commit run --files kpi_inference_curator.py
bash: pre-commit: command not found
[1000630000@jupyterhub-nb-michaeltiemannosc preprocessing]$ bash .git/hooks/pre-commit
bash: .git/hooks/pre-commit: No such file or directory
[1000630000@jupyterhub-nb-michaeltiemannosc preprocessing]$ bash ../.git/hooks/pre-commit
bash: ../.git/hooks/pre-commit: No such file or directory
[1000630000@jupyterhub-nb-michaeltiemannosc preprocessing]$ bash ../../.git/hooks/pre-commit
bash: ../../.git/hooks/pre-commit: No such file or directory
[1000630000@jupyterhub-nb-michaeltiemannosc preprocessing]$ bash ../../../.git/hooks/pre-commit
bash: ../../../.git/hooks/pre-commit: No such file or directory

If you do a "pip install pre-commit" I think you should be able to run the command.

Thanks for the pre-commit tip!  I was able to run the pre-commit, and see how black chose to format one line of code differently.  I can commit that.  I'll pick up the testing question when I can (likely next week).

/test pre-commit


meta query

We should replace the various "scan" methods in the lake API to instead use the query endpoint extended to query meta data structures.  This can be done by extending the pool naming conventions in the from directive to refer to various metadata sources.
Putting this in MVP0 since it will make #2538 easier since we can define a meta-query for $partitions.

This is a little involved for MVP0 since we need to emulate the pool-key of the meta streams and muck with the Adaptor API etc.  We want to emulate the pool-key because the commit log will eventually be stored optionally as a sub-pool when it gets large and we need to do efficient range queries over this sub-pool.

I put this back in MVP0 because I want it for branches...


Support iOS 12 simulator

This pull adds support for the iOS 12 simulator by changing the following:

Removing the i386 architecture from simject and respring_simulator to allow building (fixes #38)
Changing the deployment target from iOS 5.0 to 7.0 so that the deprecated, and now removed in IOS 12, libstdc++ is no longer used in favour of libc++
Codesigning simject.dylib after copying setup to allow for loading in iOS 12

The solution has been included in the recent commits.


Fix multi connects

Testing ongoing.  Please wait for feedback on whether this solves our issue

So this isn't going to work due to the fact that if the connection doesn't happen on first attempt it simply does not work. We're removing the req.on('error', onConnectionClosed); as well.
I'm going to selectively remove end and close.

The tests control both the server and the client, so whatever situation you've run into it should be reproducible with a test.
I'm afraid I won't accept pull requests without tests.

Yeah I get it.  See what I can do

@philstrong I think a test that has the server return a redirect (307) will test this out.

I'll close this PR soon unless someone adds tests for it

I'm running into the same issue.  Basically, when the server drops the socket, both "close" and "event" fire.  Since onConnectionClosed handler also does a connect, you double the number of connections.
Subsequently, when both connections are closed, that gets doubled again (4 connects) and so forth 2^x

Please look at my PR #61 for tests

closed in favor of #61


[Intel MKL] Upgrading MKL DNN to 0.18 RC

@penpornk Thanks for the quick review. I modified the PR based on your comments.

@agramesh1 Merging is blocked because your workspace.bzl is now out of date. Could you please sync? Thank you!

@penpornk  I re-based the code.


Invalid column name 'content_reference'

Hi. in version 2.2.6 when click on "Images & documents" in "CONTENT" page and click "Add new -> Standard post" in "Post" page the error page coming!
error :
Server Error in '/' Application.
Invalid column name 'content_reference'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Invalid column name 'content_reference'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Same error. For some reason the column does not exist. I see where it should be inserted with script 35.sql (it is worth noting that I did have [post_excerpt] from 36.sql). Strange that it skipped 35, or it somehow failed. I just found the DB update code and am looking for a reason that it might not run 35, or somehow skip over it.
a workaround is to manually run the contents of 35.sql in your database to add the column:
ALTER TABLE [content] ADD [content_reference] BIT NOT NULL default(0);

I just uploaded service release <IP_ADDRESS> to NuGet. The error was that the new column from 35.sql was not included in the initial create script. This meant that updating an existing database would be successful, but creating a new from scratch would result in the error you submitted.
<IP_ADDRESS> amends this and includes the column in the create script.

there is no version <IP_ADDRESS>


Inspector tab goes totally blank when clicking on a request

Clicked on a request and the inspector tab goes totally blank. No errors in the console.

Thanks for raising this issue. Did you have the search panel open at the time of the error?

I didn't even know there was a search tab lol. I just installed the extension and only bothered to take the time to create this because it has great reviews. :)

Appreciate you raising the issue. I'll try to recreate the bug and push a fix.

Fix is ready for this. I'll release an update today
https://github.com/warrenday/graphql-network-inspector/pull/30

Nice work, thank you. Looking forward to trying out the extension.

Hey @rocketraman hopefully your issue is now resolved with release 2.3.5

Hey @rocketraman hopefully your issue is now resolved with release 2.3.5

It is, thank you!


:tada: Add leaflet-vue-amplify

Hi,
This example demonstrates how to use Leaflet with Amazon Location Service and AWS Amplify within a Vue.js application.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Hello, thanks again for contributing to this repo. I will review the PR this week and provide feedback.

@dreamorosi
Hi, Thanks for the suggestion to use maplibre-gl-js-amplify and amplify geo.
I have checked and fixed the code. I also checked that it works.

Thank you!
Happy holidays!


update mxtools to v0.0.9

further updates to try to get Bluesky rastering working completely. still having issues when exposure time is changed

Are you still OK with just one single Python 3.8 env?

yes, for now. need to see the ISPyB project move forward, which should help move up the ispyb requirement and resulting mysql-connector-python dependency - https://github.com/nsls2-conda-envs/lsdc-server/commit/75afffe9e450b5f4983874b02b32f03a6327eb7f


Specify current limits in arm calculator is a stator current limit

Make tooltip for current limit in the arm calculator page specifically say "Stator current limit".

Any thoughts on if this pr should be expanded to clarify current limits on other pages as well? If that's preferred I can probably also look through the linear mechanism, flywheel, etc.. pages (or is it known that all the current limits are stator current limits?)

Also was debating between updating the name of the field itself from "Current Limit" to "Stator Current Limit", but ultimately decided against it, but if doing that would make it even more clear what type of current limit it is, that's also a dead easy change.

Deploy preview for recalc ready!
✅ Preview
https://recalc-hbt4xwpwz-tervay.vercel.app
Built with commit cf986d1fe43fa1e3adce245e5714ce73ed9689c9.
This pull request is being automatically deployed with vercel-action

Also was debating between updating the name of the field itself from "Current Limit" to "Stator Current Limit", but ultimately decided against it, but if doing that would make it even more clear what type of current limit it is, that's also a dead easy change.

I think its fine as is. On my to-do list is support stator and supply limit inputs.

Any thoughts on if this pr should be expanded to clarify current limits on other pages as well? If that's preferred I can probably also look through the linear mechanism, flywheel, etc.. pages (or is it known that all the current limits are stator current limits?)

All current limits currently are stator limits. I'll keep this PR as just arm calc but you're welcome to open other PRs to clarify other tooltips!


Add modality to computed_file

Context
In the long term we will be moving away from pre-computing downloadable files. In the mean time we need to break up the values that are captured by the type attribute.
Problem or idea
We want to add a modality attribute on the computed_file model. This value will be either SINGLE_CELL, MULTIPLEXED, or CITE_SEQ
Example of expected values:
PROJECT_MULTIPLEXED_ZIP = MULTIPLEXED
PROJECT_SPATIAL_ZIP = SPATIAL
PROJECT_ZIP = SINGLE_CELL
Solution or next step

Add the attribute
Add a migration
Add a test to ensure population of the value

closed with #514


3.0.0 and Typescript

Hi :wave: I'm not sure if you have used this library with TypeScript project, but this is how I have to import your function:
// @ts-ignore
import * as isPlainObject from 'is-plain-object/index.cjs.js';

You should add that to readme, because I spend almost 30 minutes to investigate what is going on :dizzy_face:

You need to add esModuleInterop: true to your config and import as default. import * as cannot be function. TypeScript is wrong here due legacy reasons.

I didn't know that option, thank you. I'm closing this issue :ok_hand:


Fix adapter macro namespacing (#2548)

resolves #2548
Description
Fix adapter macros so they can override core (and one another) in consistent ways.
Generally, macros from plugins that aren't actively in use are no longer available, and macros follow a name resolution hieirarchy within dbt: dbt-global-project macros have a lower precedence than dependency plugins have a lower precedence than the current plugin. If the adapter type is unknown, dbt loads all the plugins it knows about in an undefined order, except that the internal global project is guaranteed to have the lowest priority.
To make this effective without doing tons of imports inside functions/methods, I had to refactor a bit. Some functions moved out of dbt.utils to remove its dependencies, and some base type definitions moved from adapters into contracts. I also (finally) moved node runners into their non-rpc tasks, which allowed me to move some common logic into dbt.task, and consolidated dbt.ui.* into a single dbt.ui.
Most of these changes are rewritten imports and files moved. The changes that require the most attention are the changes to adapter/factory.py (plugin loading, path determination) and context/configured.py (macro resolution)
This does not convert adapter_macro into a python function, but I think it should make it unnecessary.
Checklist

[X] I have signed the CLA
[X] I have run this code in development and it appears to resolve the stated issue
[X] This PR includes tests, or tests are not required/relevant for this PR
[x] I have updated the CHANGELOG.md and added information about my change to the "dbt next" section.

It's not clear to me why I have to do this, but: @cla-bot check


MarkLogic runtime typechecks

Implement runtime typechecks (i.e. MapFunc.Guard) in the MarkLogic planner.

Ideally this would happen after the move to TypeOfdue to the ease of implementation.

If your data is non-uniform:
e.g. name field is String in 90% cases and Integer in 10% + you try to concat a string to this name filed -> in case of Integer you get "undefined", so that you still get a result back (instead of failing). Today you fail. That is what this change is about.
Waiting on the underlying QScript Changes (move to TypeOf) - since this will get easier to implement, so pushing to June.


ENH: Improve error when using predict

Prodice a better exception when exog has issues
closes #291
closes #292

Hello @bashtage! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file linearmodels/panel/model.py:

Line 202:55: W291 trailing whitespace
Line 203:67: W291 trailing whitespace
Line 204:67: W291 trailing whitespace


how to use vue-snotify in vue-typescript

Hi
May u help me how to use Vue-snotify in  Vue-typescript project
if u can give me a sample

Thank you for your question.
Actually, I did not try it before. I generated typings only
Now I see that there were some bugs inside this.
So I resolved them and created new github repo with typescript example
https://github.com/artemsky/vue-snotify-typescript-example
make sure yo update latest version npm i vue-snotify@latest
Have fun!

Thank for reply


(SERVER-438) Change version back to 2.0.0-SNAPSHOT

As we have not released 2.0.0 officially, the version identifier needs to
switch back to a snapshot version to facilitate things in CI.  Mainly Maven and
Nexus.
Please merge this only after
https://github.com/puppetlabs/puppet-server/pull/435 is merged into master and
has flown through CI.

You should be able to version it as 2.0.0-rc2-SNAPSHOT.

Um ... this PR has an empty diff?

Oh, I see there is a dependency between PRs.  Never mind me.  :zzz:


Fix e2e tests following the removal of the Restricted Admin role

Setup

Rancher version: 2.11-head
Rancher UI Extensions:
Browser type & version:

Describe the bug

Our e2e tests are failing on the auth part: https://github.com/rancher/dashboard/actions/runs/12036272266/job/33593793662?pr=12681

Seems the culprit is the removal of the Restricted Admin role

To Reproduce

Result

pipeline is failing

Expected Result

pipeline should succeed

Screenshots

Additional context

seems that the backend has done the removal of the Restricted Admin role

@aalves08 should this warning be removed from the Role Templates list page?

This should have been removed with https://github.com/rancher/dashboard/pull/12708 @yonasberhe23

ah okay, thanks @aalves08. i'll track this in that ticket then. closing this out


Create Design Brief and User Story

Design brief completed Thursday 19th January, project day #1. README file was created from our brief which can be found in the images file and includes a wireframe document.


How to validate conditions

What happened:
I could not find docs to assert conditions on a object
What you expected to happen:
documentation for asserting status conditions
How to reproduce it (as minimally and precisely as possible):
i have an object with following conditions in status
status:
  conditions:
  - lastProbeTime: "2020-05-07T11:27:38Z"
    lastTransitionTime: "2020-05-07T11:27:43Z"
    status: "True"
    type: ProvisionRBAC
  - lastProbeTime: "2020-05-07T11:27:41Z"
    lastTransitionTime: "2020-05-07T11:27:43Z"
    status: "True"
    type: CheckAgent
  - lastProbeTime: "2020-05-07T11:27:43Z"
    lastTransitionTime: "2020-05-07T11:27:43Z"
    status: "True"
    type: SyncComponent
  health:
    phase: Healthy
    updated_at: "2020-05-07T11:28:45Z"
  lastUpdate: "2020-05-07T11:28:45Z"
  nodes: 1
  status: Success

How can i create an assertion what checks  if SyncComponent (array element) status is true

thanks for creating the issue!
it is unclear what specifically you would want to assert on...

you shouldn't assert on times (it would be interesting to consider if time expression is something we should assert on... meaning assert that it is a time format (without specific time info)
we may need better support to assert in arrays... for instance conditions: contains and object.  may need an expressive language like rego.

it should be possible to assert:
# Expect the CRD to exist
apiVersion: <apiversion>
kind: <kind>
status:
  conditions:
  - type: ProvisionRBAC
    status: "True"
  - type: CheckAgent
    status: "True"
  - type: SyncComponent
    status: "True"

we have an example similar to this in our test suite: https://github.com/kudobuilder/kuttl/blob/master/pkg/test/test_data/crd-in-step/00-assert.yaml
we will need to take a look at this.
TODO:

look at assert array support
document this

/cc: @debianmaster

tested... order of arrays (order of conditions in this example) matter.  It would be worth creating a KEP to consider enhancing this so array order doesn't matter.

Closing... this is a duplicate of #76
Please follow that issue


Storybook is displaying component names as 't' when clicking show info button

DateRangePicker (DRP)
Story Source

"t" Component

This likely means we’re doing the storybook build in production mode instead of dev mode. It probably broke during the Babel 7/storybook 4 upgrade.


Please confirm: asset system require() must use absolute positioning?

Referring to your docs on using the RN asset system (https://github.com/react-native-community/react-native-video#load-files-with-the-rn-asset-system), I wanted to confirm that it's not possible to use flexGrow: 1 with videos linked in this manner?
I can't get flexGrow to work in my current project, and that does make sense according to the original commit where Facebook added support for non-image types (https://github.com/facebook/react-native/commit/81fb985335a8ee3657905177abe32380b6b5fdc0) in which they describe how no size information is passed for non-images.
I'm submitting a PR to FB to update their docs to include non-image types, and I included mention that absolute positioning is required, but I wanted to check here and be sure. Please let me know if I'm wrong and flexGrow does work on videos using require! Thanks

Confirmed.


Revert "Fix active design selection behavior for Emit designs"

Reverts ansys/pyaedt#4587

Codecov Report
Attention: Patch coverage is 0% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 76.58%. Comparing base (388de1d) to head (0ecf652).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4616      +/-   ##
==========================================
- Coverage   81.50%   76.58%   -4.92%
==========================================
  Files         110      110
  Lines       53845    53848       +3
==========================================
- Hits        43885    41241    -2644
- Misses       9960    12607    +2647

@myoung301 Is there a reason to revert those changes ?

@myoung301 Is there a reason to revert those changes ?

We noticed a test failure after the original PR. I created a couple draft PRs to evaluate different approaches. The other approach was successful and allowed the fix to remain so I will abandon this PR and publish the other.

Found another approach that worked and left the fix intact.


typescript error of decimals in getReserves.ts file

I found typescript error at this code line:
https://github.com/element-fi/elf-sdk/blob/1d85370eda22d4526799281ca4b5b291990d87a1/src/helpers/getReserves.ts#L56
it should be fixed like this
const decimals: number[] = [];

This shouldn't result in an error, but perhaps your linter doesn't like it.  Easy enough to fix