[Direct Line] API : 502 Bad Gateway error

Pre-flight checklist
I have tried to resolve issue using https://github.com/Microsoft/BotBuilder/issues/2201
but not able to resolve.
System Information (Required)
Bot Version 3.8.1
Deployed bot controller as Web Api micro service in service fabric with http and https enpoints
Issue Description
I am getting the response from the Bot intermittently. While sending the request, I am getting the below error.
POST https://webchat.botframework.com/v3/directline/conversations/196eda7d8f5b44dca33dd24ee6e1bf98/activities 502 (Bad Gateway)
Also I have implemented webchat in my application giving same error botchat.js:20
I have deployed webapi application in service fabric. Code works fine with emulator when deployed at local cluster. Previously I have deployed to azure cluster at west Europe datacenter. Now I have deployed to East US now still facing same issue. I have removed all my business logic and just return normal hello message from the bot . Still having same issue.
Can someone help me to resolve the same?

I have added MicrosoftAppId and MicrosoftAppPassword to the app.config still not work So I have changed implementation message controller.
Removed BotAuthentication filter from message controller. and added below code to set bot connector object
var activationContext = FabricRuntime.GetActivationContext();
var configurationPackage = activationContext.GetConfigurationPackageObject("Config");
var applicationId = configurationPackage.Settings.Sections["BotConfig"].Parameters["MicrosoftAppId"].Value;
var applicationPassword = configurationPackage.Settings.Sections["BotConfig"].Parameters["MicrosoftAppPassword"].Value;
                ConnectorClient connector = new ConnectorClient(new Uri(activity.ServiceUrl), applicationId, applicationPassword);

Still facing same issue.
Can someone help me to resolve the same?
I have created normal bot application from bot template. Above code works in the emulator but failed to run successfully when tried to deploy on azure and register bot.

We have been seeing this error about once every two weeks, but as of 11:45 EDT (~45 minutes ago), we have seen it 13 times, which represents roughly half of our chat messages. We are seeing the same rate of failure across all of our environments, and we haven't deployed new code in a month, so nothing has changed on our end.
Are there any issues with Direct Line right now?

@nishantjadhavcg @ChrisMiskowiec HTTP 502s from Direct Line mean that the bot is returning an error. The next step for investigation is to look at what’s going wrong within the bot.

@nwhitmont: I have deployed default bot template still facing same issue. It seems to me issue is related to bot authentication. Can someone tell how to authenticate using service fabric? I have deployed bot controller as stateless web API in service fabric.

@nwhitmont:: Nothing issue with bot. It is working fine with Emulator on local cluster.

@nishantjadhavcg for Azure deployment questions, please contact Azure Support

Is Bot support service fabric deployment?

@nishantjadhavcg
The bot framework is restful and "bot services use industry-standard REST and JSON over HTTPS": https://docs.microsoft.com/en-us/bot-framework/rest-api/bot-framework-rest-overview   Bots built using the Azure Bot Service are Function Apps: https://docs.microsoft.com/en-us/bot-framework/azure/azure-bot-service-overview  and "will run in a serverless environment on Azure that will scale based upon demand".  You can even deploy the bot on linux: https://blog.botframework.com/2017/04/27/Deploying-Botframework-To-Azure-On-Linux/  I haven't deployed a bot using Service Fabric, but I believe it should work alright.
I see you're using the ConnectorClient and you've removed BotAuthentication.  Have you tried calling MicrosoftAppCredentials.TrustServiceUrl ?https://github.com/Microsoft/BotBuilder/blob/master/CSharp/Library/Microsoft.Bot.Connector.Shared/MicrosoftAppCredentials.cs#LC97

As web.config is not available in service fabric. I have copied all code from BotAuthentication.cs and created new filter. override code to create provider. Fetches config values as per Service fabric support
Still not working

@EricDahlvang : I will follow those links and will get back to you

This part is all that really matters:
I see you're using the ConnectorClient and you've removed BotAuthentication. Have you tried calling MicrosoftAppCredentials.TrustServiceUrl(activity.ServiceUrl) ?https://github.com/Microsoft/BotBuilder/blob/master/CSharp/Library/Microsoft.Bot.Connector.Shared/MicrosoftAppCredentials.cs#LC97

Do you have any sample how to use MicrosoftAppCredentials.TrustServiceUrl? It would be helpful

I have tried below code still facing same issue.
_public async Task Post([FromBody]Activity activity)
{
if (activity.Type == ActivityTypes.Message)
{
try
{
var activationContext = FabricRuntime.GetActivationContext();
var configurationPackage = activationContext.GetConfigurationPackageObject("Config");
var applicationId = configurationPackage.Settings.Sections["BotConfig"].Parameters["MicrosoftAppId"].Value;
var applicationPassword = configurationPackage.Settings.Sections["BotConfig"].Parameters["MicrosoftAppPassword"].Value;
var appCredentials = new MicrosoftAppCredentials(applicationId, applicationPassword);
MicrosoftAppCredentials.TrustServiceUrl(activity.ServiceUrl);
ConnectorClient connector = new ConnectorClient(new Uri(activity.ServiceUrl), appCredentials);
// calculate something for us to return
int length = (activity.Text ?? string.Empty).Length;
                // return our reply to the user
                Activity reply = activity.CreateReply($"You sent {activity.Text} which was {length} characters");
                await connector.Conversations.ReplyToActivityAsync(reply);

            }
            catch (Exception ex)
            {
                throw ex;
            }

        }
        else
        {
            HandleSystemMessage(activity);
        }
        var response = Request.CreateResponse(HttpStatusCode.OK);
        return response;
    }_

I did some research. Created custom bot authentication Please see below filter class
using EschoBotService.Controllers;
using Microsoft.Bot.Connector;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Fabric;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
namespace EschoBotService
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false)]
public class CustomBotAuthentication: ActionFilterAttribute
{
///
/// Microsoft AppId for the bot
///
///
/// Needs to be used with MicrosoftAppPassword.  Ignored if CredentialProviderType is specified.
///
public string MicrosoftAppId { get; set; }
    /// <summary>
    /// Microsoft AppPassword for the bot (needs to be used with MicrosoftAppId)
    /// </summary>
    /// <remarks>
    /// Needs to be used with MicrosoftAppId. Ignored if CredentialProviderType is specified.
    /// </remarks>
    public string MicrosoftAppPassword { get; set; }

    /// <summary>
    /// Name of Setting in web.config which has the Microsoft AppId for the bot
    /// </summary>
    /// <remarks>
    /// Needs to be used with MicrosoftAppPasswordSettingName. Ignored if CredentialProviderType is specified.
    /// </remarks>
    public string MicrosoftAppIdSettingName { get; set; }

    /// <summary>
    /// Name of Setting in web.config which has the Microsoft App Password for the bot
    /// </summary>
    /// <remarks>
    /// Needs to be used with MicrosoftAppIdSettingName. Ignored if CredentialProviderType is specified.
    /// </remarks>
    public string MicrosoftAppPasswordSettingName { get; set; }

    public bool DisableEmulatorTokens { get; set; }

    /// <summary>
    /// Type which implements ICredentialProvider interface to allow multiple bot AppIds to be registered for the same endpoint
    /// </summary>
    public Type CredentialProviderType { get; set; }

    public virtual string OpenIdConfigurationUrl { get; set; } = JwtConfig.ToBotFromChannelOpenIdMetadataUrl;

    string StorageConnectionString = "";
    public override async Task OnActionExecutingAsync(HttpActionContext actionContext, CancellationToken cancellationToken)
    {
        SaveToAzureTable("OnActionExecutiongAsync", "OnActionExecutiongAsyncStart");
        var provider = this.GetCredentialProvider();
        var botAuthenticator = new BotAuthenticator(provider, OpenIdConfigurationUrl, DisableEmulatorTokens);
        try
        {
            SaveToAzureTable("OnActionExecutiongAsynctry", "OnActionExecutiongAsynctry");
            var identityToken = await botAuthenticator.AuthenticateAsync(actionContext.Request, GetActivities(actionContext), cancellationToken);
            // the request is not authenticated, fail with 401.
            if (!identityToken.Authenticated)
            {
                actionContext.Response = BotAuthenticator.GenerateUnauthorizedResponse(actionContext.Request, "BotAuthenticator failed to authenticate incoming request!");
                return;
            }

        }
        catch (Exception e)
        {
            SaveToAzureTable("OnActionExecutiongAsyncException", "OnActionExecutiongAsynException", e.Message.ToString());
            actionContext.Response = BotAuthenticator.GenerateUnauthorizedResponse(actionContext.Request, $"Failed authenticating incoming request: {e.ToString()}");
            return;
        }

        await base.OnActionExecutingAsync(actionContext, cancellationToken);
    }

    private IList<Activity> GetActivities(HttpActionContext actionContext)
    {
        SaveToAzureTable("GetActivitiesStart", "GetActivitiesStart");
        var activties = actionContext.ActionArguments.Select(t => t.Value).OfType<Activity>().ToList();
        if (activties.Any())
        {
            return activties;
        }
        else
        {
            var objects =
                actionContext.ActionArguments.Where(t => t.Value is JObject || t.Value is JArray)
                    .Select(t => t.Value).ToArray();
            if (objects.Any())
            {
                activties = new List<Activity>();
                foreach (var obj in objects)
                {
                    activties.AddRange((obj is JObject) ? new Activity[] { ((JObject)obj).ToObject<Activity>() } : ((JArray)obj).ToObject<Activity[]>());
                }
            }
        }
        SaveToAzureTable("GetActivitiesend", "GetActivitiesStartEnd");
        return activties;
    }

    private ICredentialProvider GetCredentialProvider()
    {
        ICredentialProvider credentialProvider = null;
        //if (CredentialProviderType != null)
        //{
        //    // if we have a credentialprovider type
        //    credentialProvider = Activator.CreateInstance(CredentialProviderType) as ICredentialProvider;
        //    if (credentialProvider == null)
        //        throw new ArgumentNullException($"The CredentialProviderType {CredentialProviderType.Name} couldn't be instantiated with no params or doesn't implement ICredentialProvider");
        //}
        ////else if (MicrosoftAppId != null && MicrosoftAppPassword != null)
        ////{
        ////    // if we have raw values
        ////    credentialProvider = new StaticCredentialProvider(MicrosoftAppId, MicrosoftAppPassword);

        ////}
        ////else
        ////{
        ////    // if we have setting name, or there is no parameters at all default to default setting name
        ////    credentialProvider = new SettingsCredentialProvider(MicrosoftAppIdSettingName, MicrosoftAppPasswordSettingName);
        ////}
        //else
        //{
        SaveToAzureTable("GetCredentialProvider", "GetCredentialProvider");
        var activationContext = FabricRuntime.GetActivationContext();
            var configurationPackage = activationContext.GetConfigurationPackageObject("Config");
            var applicationId = configurationPackage.Settings.Sections["BotConfig"].Parameters["MicrosoftAppId"].Value;
            var applicationPassword = configurationPackage.Settings.Sections["BotConfig"].Parameters["MicrosoftAppPassword"].Value;
            credentialProvider = new StaticCredentialProvider(applicationId, applicationPassword);
        credentialProvider = new StaticCredentialProvider("73d47e9e-9282-4dea-95fd-300f3c0e3ce5", "GgYQbX0miNAg05anX0HJCVa");
        //  }
        return credentialProvider;
    }

    private void SaveToAzureTable(string place, string method, string error ="not error" )
    {
        //StorageCredentials creds = new StorageCredentials(accountName, accountKey);
        //CloudStorageAccount account = new CloudStorageAccount(creds, useHttps: true);

        CloudStorageAccount account = CloudStorageAccount.Parse(StorageConnectionString);

        CloudTableClient client = account.CreateCloudTableClient();

        CloudTable table = client.GetTableReference("botlog");
        table.CreateIfNotExists();

        BotLogEntity entity = new BotLogEntity("botauthentication", Guid.NewGuid().ToString())
        {
            Place = place,
            ErrorDetails = error
        };

        TableOperation insertOperation = TableOperation.InsertOrReplace(entity);
        table.Execute(insertOperation);
    }
}

}
and I have added one get method to messages controller. I am using webchat from dev.botframework nothing logged to the azure table. but when I called get method messages logged to the azure table. Giving error that "BotAuthenticator failed to authenticate incoming request!". I thought problem with direct API. It is not calling my controller method when hosted on service fabric stateless web api.


[BUG] first kubectl command fails when no service account has been created

Rancher Version: 2.6.11
Issue description:
When an admin user (can access all downstream clusters without any cluster roles being assigned) creates a kubeconfig in a cluster where it does not have a serviceaccount in the cattle-impersonation-system namespace, the first kubectl command fails with the following error:
Error from server (InternalError): an error on the server ("unable to create impersonator account: error setting up impersonation for user u-hwltnppexi: failed to get secret for service account: cattle-impersonation-system/cattle-impersonation-u-hwltnppexi, error: resource name may not be empty") has prevented the request from succeeding
When the user runs a subsequent kubectl command using that kubeconfig, it will return without issue since the serviceaccount/secret is created after the first command is run.
This same behaviour existed before 2.6.10 but it is now only an issue due this change:
https://github.com/rancher/rancher/commit/f08c50fa8ea207cbd310e67c8af8cf3b6d13df72#diff-8a853a257f4c9e8e5812b706a4f6a56eaa32ff67e57f9ac5ac4f78f1e1659f04
Business impact:
User has a pipeline that implements the above process and always fails on first run (when using new clusters). Subsequent reruns are successful.
Troubleshooting steps:
adding the admin user as a cluster member/owner creates the serviceaccount/secret which alleviates this issue.
Workaround:
Is workararound available and implemented? YES
run the code again, or add the cluster member/owner role to the account.
Actual behavior:
the first command returns an error.
Expected behavior: first command runs successfully, and no error code is returned.
Additional notes:
similar to https://github.com/rancher/rancher/issues/36096

SURE-6026


helm datree test my-app/ doesn't work on Windows WSL

Describe the bug
command 'helm datree test my-test-app/'
gives the following error:
Error: unknown flag: --skip-tests
Error: plugin "datree" exited with error
To Reproduce
Steps to reproduce the behavior:

Run command 'helm create my-test-app'
Run command 'helm datree test my-test-app/'
See error:
Error: unknown flag: --skip-tests
Error: plugin "datree" exited with error

Expected behavior
Output similar to datree test my-test-app.yaml (helm template my-test-app/ > my-test-app.yaml; datree test my-test-app.yaml)
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: Windows WSL2 Ubuntu

Datree plugin version (run helm datree verion):

Version: 1.8.27

Additional context
Add any other context about the problem here.

@PaleIntrovert can you please try to pass a dir name without the dashes (-) and let us know if this is working? (e.g myTestApp/)
I suspect it is a bug related to the plunging parsing the CLI params.

@eyarz it definetely helped, but there is another bug it didn't work with 'test_app/' but worked with 'test_app/*'

Hi @PaleIntrovert , I'm trying to reproduce this but no success so far, even when using a chart name like my-test-app with dashes.
I'm running helm version 3.11.1 (I see you're running v3.2.0). Can you try to update helm and run again?

Hi @hadar-co, I installed helm version 3.11.1, looks like the problem is gone. I have one question, It says there is no internet connection, so it cannot check schema validation. How can I make it work, I have envs http_proxy, https_proxy, no_proxy configured.

@PaleIntrovert Glad to see that it fixed your issue 👍
Regarding the internet connection - since I do not know your environment, I can't say for sure what the issue is.
The schema validation step fetches the schemas from Github, so let's try that - try to curl a schema directly from your env and see if it works:
curl https://github.com/yannh/kubernetes-json-schema/blob/master/v1.22.7-standalone/deployment-apps-v1.json

@hadar-co I tried curl command, and it works, so it means my proxy envs are working, why helm datree plugin doesn't respect them? Should I add something to helm config?

Datree uses Kubeconform to perform schema validation. In their docs they show how to use an https proxy.
To understand if this is an issue on our side or theirs, please run kubeconform using the proxy as shown in the link and let us know if it works. If it does, then we have a bug and we will fix it.
We will keep this open until we get your result. Thanks

@hadar-co it seems our corporate proxy hijacks certs, and it is my issue, kubeconfig's or datree's.

@PaleIntrovert Thanks for the update:)

@hadar-co here are results:


How do i create motion config from Mixamo fbx.

I have generated the bvh from the mixamo fbx using Blender. However, I am unable to understand how to create the motion config and retarget file for this? Can I use any of the existing retaget config for Moxamo skeletons?
I when i use the retarget filr mixamo_fff.yaml and a config file pointing to the mixamo bvh, I get this error
AssertionError: Could not find BVH joint with name: None

Please try to remove all strings mixamorig: in the BVH files.

There is a doc (Retarget Config File) you need to read before you start get started.
See also: https://github.com/facebookresearch/AnimatedDrawings/issues/152#issuecomment-1537295160


slight changes in presenting custom commands

the colon between .TriggerType and .TextTrigger already helps to separate default text better and increases readability.
I added  for users who want to alter CSS styling further on their side - I know it deviates from bootstrap styling, but that  does not kill anything : )

use cc-text-trigger-span instead

hope I understood correctly, changed span class name

for the future, I guess .NextRun for .TriggerType 5 (time intervals) would be cool to implement, but probably javascript thingy


Start privileged

You will need to make two PRs, one to the js branch and one to the jvm branch to keep them both in sync. The master branch is currently not used due to differences which they both have with the frontend.


Add an API for custom test method parameter injection

I need a way to inject a custom parameter into TestNG's test methods. The parameter is my own object constructed dynamically at runtime from test method annotations. The custom parameter is not known to TestNG, it's my own type, e.g.:
@com.mypackage.MyAnnotation("someValue)"
@org.testng.Test
public void test(MyCustomObject val) {
    ...
}

It looks like right now I cannot do it easily.
Can we add such functionality/SPI? What is the current easiest way to achieve that?

I don't want to use @DataProvider annotation.

Why don't you want to use @DataProvider, it's the easiest approach by far
(just a few lines of code).
--
Cédric
On Tue, Mar 3, 2015 at 6:09 AM, Crazyjavahacking<EMAIL_ADDRESS>wrote:

I don't want to use @DataProvider annotation.
--
Reply to this email directly or view it on GitHub
https://github.com/cbeust/testng/issues/612#issuecomment-76951265.

The problem is that the object I want to inject is dynamically created based on the data inside annotations on test method.
In my initial example, I need to parse the content of @MyAnnotation and based on that I need to create an instance of MyCustomObject.

What is stopping you from doing all that in the data provider?
--
Cédric
On Tue, Mar 3, 2015 at 3:12 PM, Crazyjavahacking<EMAIL_ADDRESS>wrote:

The problem is that the object I want to inject is dynamically created
based on the data inside annotations on test method.
In my initial example, I need to parse the content of @MyAnnotation and
based on that I need to create an instance of MyCustomObject.
--
Reply to this email directly or view it on GitHub
https://github.com/cbeust/testng/issues/612#issuecomment-77060429.

The functionality is not really parameterized testing and I also don't want to use data providers, e.g.:
@Columns("col1 | col2 || val)"
@Rows  ({"a    | b    || c",
         "d    | e    || f})
@org.testng.Test
public void test1(MyCustomObject val) {
    // MyCustomerObject is created from the annotation values
    // some menipulation with val ...
}

@Columns("col1 | col2 || val)"
@Rows  ({"1    | 2    || a",
         "3    | 3    || b})
@org.testng.Test
public void test1(MyCustomObject val) {
    // MyCustomerObject is created from the annotation values
    // some menipulation with val ...
}

so I don't think data providers are a good approach here

Would be very useful I have the same needs

The idea is interesting but as @cbeust said a long time ago, a data provider is a good workaround.
According to the previous sample:
@Columns("col1 | col2 || val)")
@Rows  ({    "a    | b      || c",
                    "d    | e      || f"})
@Test(dataProvider = "dp")
public void test1(MyCustomObject val) {
    // MyCustomerObject is created from the annotation values
    // some menipulation with val ...
}

@Columns("col1 | col2 || val)"
@Rows(      {"1    | 2      || a",
                    "3    | 3      || b"})
@Test(dataProvider = "dp")
public void test1(MyCustomObject val) {
    // MyCustomerObject is created from the annotation values
    // some menipulation with val ...
}

@DataProvider
public static MyCustomObject[] dp(Method m) {
    Columns colums = m.getAnnotation(Columns.class);
    Rows rows = m.getAnnotation(Rows.class);
    MyCustomObject[] results = new MyCustomObject[rows.values().length];
    for (int i=0; i < rows.values().length; i++) {
        String value = rows.values()[i];
        // extract params with custom business
        results[i] = new MyCustomObject(/* params */);
    }
    return results;
}

this is true @juherr, i ended doing it this way. But, the only thing that misses is to set a default dataProvider for all tests, in my case, my data provider is generics and passes only if there is certain annotations
i think that  a combination of the dataProvider and adding the ability to set a default provider would do the trick and will open a hole new possibilities

@g13013 You mean something like
public class UseMyDataProvider implements IAnnotationTransformer {
  public void transform(ITest annotation, Class testClass, Constructor testConstructor, Method testMethod) {
    if (/* business logic (for example: testMethod has expected annotations) */) {
      annotation.setDataProviderClass(MyExternalClassWithDataProvider.class);
      annotation.setDataProvider("dataprovider name");
    }
  }
}

I would also love to be able to use Guice to inject parameters in tests.
DataProvider + IAnnotationTransformer is an interesting workaround but it lack flexibility (for example it is impossible to set the IAnnotationTransformer via @Listeners)

it is impossible to set the IAnnotationTransformer via @Listeners

@gjuillot It could be a feature request. Could you open an issue with that?

I'll do. But still, the best ever for me would be to have the possibility to use Guice to inject parameters in tests.


Adding time feature

Bigger steps start small. Here is a small feature being added .

Feature not required. Closing the PR


Fix project logo not showing up in "Review" section of create flow

Fixes JB-780 (https://linear.app/peel/issue/JB-780/project-logo-missing-from-deploy-preview)

@johnnyd-eth a test is failing here and it looks like a legit failure - want to take a look?

@johnnyd-eth a test is failing here and it looks like a legit failure - want to take a look?

Fixed, just need a yarn test -u


chore: bump @types/babel__core to get rid of custom types

Summary
Following up #11192.

Test plan
Green CI

Codecov Report

Merging #11221 (f908b17) into master (420bcb7) will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #11221      +/-   ##
==========================================
+ Coverage   64.30%   64.32%   +0.01%
==========================================
  Files         309      308       -1
  Lines       13485    13484       -1
  Branches     3286     3286
==========================================
+ Hits         8672     8674       +2
+ Misses       4104     4102       -2
+ Partials      709      708       -1

Impacted Files
Coverage Δ

packages/expect/src/utils.ts
96.12% <0.00%> (+1.29%)
:arrow_up:

Continue to review full report at Codecov.

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


[FLINK-5438] Typo in JobGraph generator Exception

Thanks for contributing to Apache Flink. Before you open your pull request, please take the following check list into consideration.
If your changes take all of the items into account, feel free to open your pull request. For more information and/or questions please refer to the How To Contribute guide.
In addition to going through the list, please provide a meaningful description of your changes.

[x] General

The pull request references the related JIRA issue ("[FLINK-XXX] Jira title text")
The pull request addresses only one issue
Each commit in the PR has a meaningful commit message (including the JIRA id)

[ ] Documentation

Documentation has been added for new functionality
Old documentation affected by the pull request has been updated
JavaDoc for public methods has been added

[x] Tests & Build

Functionality added by the pull request is covered by tests
mvn clean verify has been executed successfully locally or a Travis build has passed

Just fix log typo.

Hi @mtunique , thanks for your effort.
Can't see any reason we shouldn't merge this.

Agree, merging this...


Broken world visualization; parts of buildings misplaced

Things are offset seemingly at random...

Hello, could you provide a screenshot or link where it is broken?

Is it also broken at https://osrs.world for you?

Awesome! Will check it out. You the man
Sent via my phone

From: Dennis @.>
Sent: Monday, December 11, 2023 12:19:58 PM
To: dennisdev/rs-map-viewer @.>
Cc: james-salafatinos @.>; Author @.>
Subject: Re: [dennisdev/rs-map-viewer] Broken world visualization; parts of buildings misplaced (Issue #3)
Closed #3https://github.com/dennisdev/rs-map-viewer/issues/3 as completed.
—
Reply to this email directly, view it on GitHubhttps://github.com/dennisdev/rs-map-viewer/issues/3#event-11214133890, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALHJ7K6UAKZLQMX573LA2VDYI5FE5AVCNFSM6AAAAAA73EGIGKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGIYTIMJTGM4DSMA.
You are receiving this because you authored the thread.Message ID: @.***>


How to deploy to github pages?

Hello. I have used this resource to deploy my insomnia workspaces many times in ZEIT easily using now command, as used in video tutorial. At this time, I'm trying to deploy the docs in gh-pages, but almost as expected, gh-pages services can't read cuz they don't have a server(I think...). How to deploy on gh-pages like in README.md example in this repo? This reply would be a good information for future new users that's wanna do the same.

Hello! You need to specify the custom root path as described here: https://github.com/jozsefsallai/insomnia-documenter#custom-root-paths
I think I also mentioned this in the video

Closing for inactivity.

Hey, I am trying to deploy my documentation through GitHub pages too, and am confused about how to do it. Can you add more elaborate steps in the documentation about it @jozsefsallai. It'll be really helpful, as in my deployment it just shows a blank page,


gobject-introspection: Conditionalize depsTargetTargetPropagated

Fixes ↓
nix-repl> pkgsCross.x86_64-freebsd.pkgsBuildHost.gobject-introspection
error: Don't know how to run x86_64-unknown-freebsd executables.

The unwrapped already doesn't error
nix-repl> pkgsCross.x86_64-freebsd.pkgsBuildHost.gobject-introspection-unwrapped
«derivation /nix/store/xq4q4vigy2glmfng2h6bbr4sysyk8ipz-gobject-introspection-1.82.0.drv»

https://www.github.com/NixOS/nixpkgs/blob/7b1cffdd2e13b2cdad5b37e259016efd0ea48fcd/pkgs/development/libraries/gobject-introspection/default.nix#L114
It's caused by depsTargetTargetPropagated = [ overridenTargetUnwrappedGir ]; in the wrapper
In graphene there is
PATH=${python3.withPackages (pp: [ pp.pygobject3 pp.tappy ])}/bin:$PATH patchShebangs tests/introspection.py
Which causes the Don't know error in pkgsCross.x86_64-freebsd.pkgsBuildHost.graphene
because python3 and pygobject3 will be from pkgsHostTarget
and then pygobject3 has gobject-introspection from pkgsHostTarget
and then that gobject-introspection will have pkgsCross.x86_64-freebsd.pkgsCross.x86_64-freebsd.buildPackages.pkgsTargetTarget.gobject-introspection.gobject-introspection in depsTargetTargetPropagated
To test that importing the python library gi works without depsTargetTargetPropagated
let
  pkgs =
    (import ./. {
      crossSystem = (import ./lib).systems.examples.aarch64-multiplatform;
      # On `master` uncomment this and comment `propagatedBuildInputs` below and you'll get
      # error: Don't know how to run x86_64-unknown-freebsd executables.
      #crossSystem = (import ./lib).systems.examples.x86_64-freebsd;
      overlays = [
        (_: prev: {
          pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [
            (_: pprev: {
              pygobject3-test = pprev.pygobject3.overrideAttrs {
                propagatedBuildInputs = [
                  pprev.pycairo
                  (prev.gobject-introspection.overrideAttrs { depsTargetTargetPropagated = [ ]; })
                ];
              };
            })
          ];
        })
      ];
    }).pkgs;
  pyr = pkgs.pkgsBuildHost.python3Packages.python.withPackages (pp: [ pp.pygobject3-test ]);
in
pkgs.pkgsBuildBuild.runCommand "test" { } ''
  "${pyr.interpreter}" -c "import gi" && touch "$out"
''

What's the propagation needed for in the first place?

What's the propagation needed for in the first place?

https://github.com/NixOS/nixpkgs/blob/0ab7357f140b4df44c4d5f3f6ab0af32a957c628/pkgs/development/libraries/gobject-introspection/wrapper.nix#L12
https://github.com/NixOS/nixpkgs/blob/0ab7357f140b4df44c4d5f3f6ab0af32a957c628/pkgs/development/libraries/gobject-introspection/wrapper.nix#L7
We also did it so we have to add gobject-introspection to only one dependency attribute at a time
Yeah its a hack but so far it's been working quite well invisibly.


Cannot find package 'sharp' imported from /var/task/index.mjs

I get the error when I try to get the images from the distribution at the img transformation lambda function level:
2024-08-29T20:10:01.192Z	undefined	ERROR	Uncaught Exception
{
"errorType": "Error",
"errorMessage": "Cannot find package 'sharp' imported from /var/task/index.mjs",
"code": "ERR_MODULE_NOT_FOUND",
"stack": [
"Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'sharp' imported from /var/task/index.mjs",
"    at packageResolve (node:internal/modules/esm/resolve:858:9)",
"    at moduleResolve (node:internal/modules/esm/resolve:931:18)",
"    at moduleResolveWithNodePath (node:internal/modules/esm/resolve:1173:14)",
"    at defaultResolve (node:internal/modules/esm/resolve:1216:79)",
"    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)",
"    at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)",
"    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38)",
"    at ModuleWrap. (node:internal/modules/esm/module_job:87:39)",
"    at link (node:internal/modules/esm/module_job:86:36)"
]
}
It seems like there's a bundling problem with  image-processing lambda and the related packages, can anyone take a look please ? thank you!

Hi @IhebMarnaoui, most likely the deps  were not installed correctly. Can you confirm the deployment size of your lambda function? Did you run npm run build before cdk deploy like described in the readme? If so, you should have a new node_modules directory under functions/image-processing/ with sharp. Also, what OS are you running?
You can trigger manual installation of deps by running npm run prebuild too

Thanks for the response, yes, after investigating, it turned out that my OS is the issue because it is unable to to install these linux-64x dependencies while Im using arm64 (I have an M2 mac), would you have an idea on what to do in my case ?
Thank you!

I am able to install the deps and deploy the solution from an M1 Mac. What is the output of the command npm run prebuild on your machine and what is the deployment size of the Lambda function in your AWS account?

This would be the output I get when I try to build my app:
Bundling asset hop-api-stack-backend/ob-article-media-image-optimization/Code/Stage...
npm error code EBADPLATFORM
npm error notsup Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"linux","cpu":"x64","libc":"glibc"} (current: {"os":"linux","cpu":"arm64","libc":"glibc"})
npm error notsup Valid os:    linux
npm error notsup Actual os:   linux
npm error notsup Valid cpu:   x64
npm error notsup Actual cpu:  arm64
npm error notsup Valid libc:  glibc
npm error notsup Actual libc: glibc

Please note that this is not the output of npm run build but this happens when I try to deploy (using cdk deploy), my setup is just a little more complicated than Im describing because I am building the image optimisation on an independent library and then when I publish this library locally, this happens.
I tried running all of this on the cloud and it worked like charm so nothing wrong with the setup and my issue is invalid I have to admit, but I still wanna bypass this local error because I am now unable to work locally due to it and I would like to do some of testing locally most of the time so it would be nice if I can somehow bypass this error.

@IhebMarnaoui
try to build after npm install --os=linux --cpu=x64 sharp

Tried moving from node18 to node 20 - no joy.
Tried npm install --os=linux --cpu=x64 sharp - no dice yet (didn't work)
Also using mac with apple silicon.
Lambda execution yields this error:
Could not load the \"sharp\" module using the linux-x64 runtime\nERR_DLOPEN_FAILED: libvips-cpp.so.42: cannot open shared object file: No such file or directory\nPossible solutions:\n- Ensure optional dependencies can be installed:\n    npm install --include=optional sharp\n- Ensure your package manager supports multi-platform installation:\n    See https://sharp.pixelplumbing.com/install#cross-platform\n- Add platform-specific dependencies:\n    npm install --os=linux --cpu=x64 sharp\n- Consult the installation documentation:\n    See https://sharp.pixelplumbing.com/install",
    "stack": [
        "Error: Could not load the \"sharp\" module using the linux-x64 runtime",
        "ERR_DLOPEN_FAILED: libvips-cpp.so.42: cannot open shared object file: No such file or directory",
        "Possible solutions:",
        "- Ensure optional dependencies can be installed:",
        "    npm install --include=optional sharp",
        "- Ensure your package manager supports multi-platform installation:",
        "    See https://sharp.pixelplumbing.com/install#cross-platform",
        "- Add platform-specific dependencies:",
        "    npm install --os=linux --cpu=x64 sharp",
        "- Consult the installation documentation:",
        "    See https://sharp.pixelplumbing.com/install",
        "    at Object.<anonymous> (/var/task/node_modules/sharp/lib/sharp.js:113:9)",
        "    at Module._compile (node:internal/modules/cjs/loader:1469:14)",
        "    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)",
        "    at Module.load (node:internal/modules/cjs/loader:1288:32)",
        "    at Module._load (node:internal/modules/cjs/loader:1104:12)",
        "    at Module.require (node:internal/modules/cjs/loader:1311:19)",
        "    at require (node:internal/modules/helpers:179:18)",
        "    at Object.<anonymous> (/var/task/node_modules/sharp/lib/constructor.js:10:1)",
        "    at Module._compile (node:internal/modules/cjs/loader:1469:14)",
        "    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)"
    ]
}

got the same this morning, looking to it

same error
ERR_DLOPEN_FAILED: libvips-cpp.so.42: cannot open shared object file: No such file or directory

I got it, restore to this commit: cc1eb326d2b1203cf64cda3ccf211686df6e378a

@cubatic45 I agree! That's actually the only thing that worked for me since I opened this issue

Hi @IhebMarnaoui, @cubatic45, thanks again for reporting this. Reverted the change - we're now using the Sharp installation method described here: https://sharp.pixelplumbing.com/install#npm-v10.

For context, to check if you have correct deps installed:
# check if sharp-libvips-linux-x64 and sharp-linux-x64 are present
ls functions/image-processing/node_modules/@img

# check if libvips-cpp.so.42 is present
ls functions/image-processing/node_modules/@img/sharp-libvips-linux-x64/lib

Please keep in mind that --cpu and --os flags are supported by npm v10+ only. Also, --libc is best supported on npm v10.4.0+, as it correctly drops musl deps, reducing overall size of the Lambda function.


About pretrained_model

Hi, thanks for your code!
How does the pretrained model provided on GitHub work?
Thanks!

Hi @Zzzty843,
Thanks for your interest. For using a pretrained model, you need to use --restore parameter and put --name as the model name. Let me know if you face any problem.


Update 05_text_classification.py

Updated the code by converting the string labels into numeric values using LabelEncoder.

Also this fix ensures consistent use of numeric labels for model training, preventing potential errors and enhancing code clarity.


My merge key support is broken

It worked back when it was based off 25881c4f96159b990ee9d8df12cb3e64798de8b4, but now it produces a bad conversion error when a merge key (<<) is encountered.
Adding the following tests to yaml-cpp
TEST(NodeTest, MergeKeyScalarSupport) {
    Node node = Load("{<<: {a: 1}}");
    ASSERT_FALSE(!node["a"]);
    EXPECT_EQ(1, node["a"].as<int>());
}

TEST(NodeTest, MergeKeySequenceSupport) {
    Node node = Load("<<: [{a: 1}, {a: 2, b: 3}]");
    ASSERT_FALSE(!node["a"]);
    ASSERT_FALSE(!node["b"]);
    EXPECT_EQ(1, node["a"].as<int>());
    EXPECT_EQ(3, node["b"].as<int>());
}

shows that the assertions fail.

Turns out I was calling my new merge key function from the wrong operators...


Enhanced Footer Styling

Hello there! 👋 I'm excited to contribute to this project as part of Hacktoberfest. I've made some improvements to the footer's styling to make it more visually appealing and user-friendly. Here's what I've done:

Updated the footer background color to provide a clear visual distinction from the rest of the page.
Added a subtle wave pattern to the footer to create an engaging visual effect.

I hope you find these changes valuable, and they enhance the overall aesthetics of the project. Feel free to review and provide any feedback or suggestions. I'm open to making further refinements as needed.

@fineanmol  can you review the changes i have introduced.


Add ability to use different login methods

First of all, awesome of you @jwag956 to take this library into your hands! I hope I'll be able to contribute meaningfully to it.
I'm using passwordless login in one of my projects, but I've been having issues with email deliverability. I'd like to be able to add username/password login too, but currently there's only one method allowed per app (based on the config settings). So the ability to set multiple login methods would be helpful in my case.
I understand this suggestion might be a difficult one to implement, so please don't see this as an "I need this asap"-thing. I just wanted to log it here because I'm probably not the only one with this suggestion and open up the discussion.

I think this is actually pretty easy - it just needs a new entry point since today /login is used for both. Some annoying backwards compat issues - but relatively easy.
I have a question for you  since you are using passwordless. Today, the token can have a TTL - but other than that, it can be used until expired. Is that your use case or is there reason to consider how to make these 'one-time' tokens. The same issue with reset-password token - until it expires, you can use it - which I don't think is quite correct.
Interested in your thoughts.

Are you concerned about the security aspects of passwordless login?
In any case, I am satisfied with how it works now. I haven't seen any misuse or heard feedback from users that they were experiencing problems.
In fact, I like it much better than social login or the classic login/password combo. It feels close to 2FA the way it works.
I'll look into a PR for this, but (like #77) it'll take a while. I've been having some hectic weeks and it's not over yet 😅

I am not really worried (but see below). I am interested in your use case and how you configure it. In particular, as I mentioned - flask-security currently has a 'use until expired' model for its tokens.
I was wondering if that is what you like/dislike and what you set the TTL to.
Best practice says not to send authentication tokens as query params. The rationale is that URLs, including query params are often logged - and logging anything secret is bad (and people don't necessarily take care of their logs very well and often lots of of people might have access to logs that shouldn't have access to users credentials). Oauth2 doesn't do this - sending a temporary token that is exchanged for the real one.
The current passwordless scheme (and reset password) isn't clear on this - it isn't one time so depending on your  TTL - it might be valid for a while and therefore a small security issue.
I am not certain that is a big risk for most flask-security folks - but is why I am interested in your use case.

I'm using the default configuration: tokens do not expire and the link is never invalidated. It's not invalidated:

when I request another login link (meaning I can still log in using an "old" link)
when I log in using a newer link and then log out, I can still log in with the older link.

I understand the security risks better now, thanks.
The two use cases I'm using it for are:

A tool to view and update contents of a DB. I need the login primarily to be able to log who has changed something and to provide more personalised views (i.e. only the stuff the logged in user "owns"). There's no problem if someone can see what other users "own" in the DB, so security is not a high priority.
A tool to build Kano surveys and analyses with. Here, security is more sensitive. People wouldn't want other people to be able to access their survey data and analyses.

Especially for the latter use case, invalidating tokens:

after a certain TTL
and/or after they have been used
and/or after a new token has been issued for the same user

would definitely be an improvement.

Some additional thoughts.
passwordless login is definitely a growing 'thing'.
In general, TTLs are set low so that the 'replay'/reuse issue is small (i.e. O(minutes) as opposed to 1 day which is the default for FS).
Note: current passwordless token just represents the user.id - which isn't strictly unique since some DBs will re-use primary keys - so that is a (small) security issue that should be cleaned up.
My inclination would be to set the default TTL down to say 5 minutes (always configurable) since the current 1-day definitely has some replay attack issues (and user can always ask for another link).
Actually providing a OTP (one time password) would require additional DB field that records if a token was used or not. This has some advantages - but still - if a hacker got there first they could lock out the real intended user - but better especially for email-delivered reset tokens.


Expose Def#visibility to macros

Exposes the visibility of methods as per #953 : returns either :public, :protected or :private. For instance public methods of a class may be selected with:
{% public_methods = @type.methods.select { |m| m.visibility == :public } %}

There was a discussion in #957 to have the public_methods, private_methods and protected_methods Ruby-like accessors, for simpler filtering. I can add them if we think it would be a good addition to macros.

+1 for having both Def#visibility and the convenience methods (TypeNode#<visibility>_methods)

Finally decided to merge #957. Sorry for having you create this separate pull request!

Mmh, I do would have preferred this API


vs2019 missing ironpython wpf template

[Enter feedback here]

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

ID: 40988eb4-852f-7d9c-fc5c-d84a15566446
Version Independent ID: b6257abc-658d-7f8a-d594-594734291d34
Content: Item templates for Python projects - Visual Studio (Windows)
Content Source: docs/python/python-item-templates.md
Product: visual-studio-windows
Technology: vs-python
GitHub Login: @JoshuaPartlow
Microsoft Alias: joshuapa

@asddddwww -- thank you for bringing this to our attention.  I am investigating.

@asddddwww -- there have been changes in the templates, and this WPF template is no longer available in Visual Studio 2019.  Please consider these resources:

Visual Studio on Q&A
Visual Studio MSDN Forum
Stack Overflow
Reddit

@j-martens -- please look into this documentation update.
cc @savannahostrowski @judej for awareness

These docs were updated per PR #9265, as IronPython WPF Window template has been removed from product.
#please-close
Cc: @j-martens


Error while running Power Platform Pack Solution - Azure DevOps Pipeline - Error: Cannot find required file '......Other\Customizations.xml'

Below is the error I get when the task is run
[ 'Microsoft PowerPlatform CLI' ]
[ 'Version: 1.29.11+g9e2b163' ]
[ 'Online documentation: https://aka.ms/PowerPlatformCLI' ]
[
'Feedback, Suggestions, Issues: https://github.com/microsoft/powerplatform-build-tools/discussions'
]
[ '' ]
[
"Error: Cannot find required file 'C:\almagent\vsts-agent-win-x64-3.232.0\_work\1\a\Other\Customizations.xml'."
]
[ '' ]
[ '' ]
##[error]error: 1
##[error]failed:
Packing Solution...
Packing C:\almagent\vsts-agent-win-x64-3.232.0_work\1\a to C:\almagent\vsts-agent-win-x64-3.232.0_work\1\s\packed-solution\contoso_university_core.zip and C:\almagent\vsts-agent-win-x64-3.232.0_work\1\s\packed-solution\contoso_university_core_managed.zip
Microsoft PowerPlatform CLI
Version: 1.29.11+g9e2b163
Online documentation: https://aka.ms/PowerPlatformCLI
Feedback, Suggestions, Issues: https://github.com/microsoft/powerplatform-build-tools/discussions
Error: Cannot find required file 'C:\almagent\vsts-agent-win-x64-3.232.0_work\1\a\Other\Customizations.xml'.
##[error]Error:
Packing Solution...
Packing C:\almagent\vsts-agent-win-x64-3.232.0_work\1\a to C:\almagent\vsts-agent-win-x64-3.232.0_work\1\s\packed-solution\contoso_university_core.zip and C:\almagent\vsts-agent-win-x64-3.232.0_work\1\s\packed-solution\contoso_university_core_managed.zip
Microsoft PowerPlatform CLI
Version: 1.29.11+g9e2b163
Online documentation: https://aka.ms/PowerPlatformCLI
Feedback, Suggestions, Issues: https://github.com/microsoft/powerplatform-build-tools/discussions
Error: Cannot find required file 'C:\almagent\vsts-agent-win-x64-3.232.0_work\1\a\Other\Customizations.xml'.

Hi @lapate / @bananabrann - couple issues here.

If you use pac solution unpack for this solution zip file, you will see that the folder structure & files are not at the same location as you would just simply unzip. This what's causing the pac solution pack failure.
Error is a bit misleading that we will work on improving.

With that said, please have customization.xml & solution.xml in Other folder and re-run your pipeline OR run pac solution pack command using PAC CLI, they should succeed.
Please share the outcome and let us know if we can close this issue.
Thank you.

Just an update: We're running on 2.0.5, but we're trying to determine if 2.0.47 fixes our issue. Is it possible that a new feature in Power Apps is unsupported in an older version of the build tools?


资源文件有权限或简单权限如公有资源私有资源或私有资源可授权给其它人等

资源文件有权限或简单权限如公有资源私有资源或私有资源可授权给其它人等

#404

Currently,administrator can authorize resource files to other users

Which version of escheduler  can authorize resource files to other users

You need to log in as an administrator and then authorize


Simplify _PYO3_DEF in #[pymodule] macro by no longer generating a const fn

I'm not positive this helps with the coverage issue, but it doesn't hurt, and someday when we remove function-modules, all this code can get a lot simpler.
Not sure if this needs a changelog, feels like more of an internal refactoring.


Closely match top level body to spec (fixes #28)

@yarikoptic can you check if this solves the problem for you?

@yarikoptic ping?

Thanks for the ping.  Yes, with this PR there is no crash and produced rng is identical to the one with 2.6.1

Alright, I've uploaded 2.6.3 to PyPI. Thanks for testing!

(Sorry, uploaded the wrong thing -- you should use 2.6.4.)


xp drop, align middle is not lined up with globe

> java -version
java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

Operating System: win10

Duplicate of #1857

Should be marked as duplicate of #1757

OOps, typos again


ENH: sparse.csr_matrix: parallelize dot product

Is your feature request related to a problem? Please describe.
I am not sure if I am doing something wrong but I am using scipy.sparse.csr_matrix object and contract it with a np.ndarray object using the method dot: scipy.sparse.csr_matrix.dot(np.ndarray).
I noticed that the operation is not parallelized. Is there any possibility to parallelize the sparse matrix operations (like dot/kron) in scipy?
PS: I test the execution with numpy.dot at it runs in multicore. Both my scipy and numpy are installed with conda and linked with blas/lapack
Describe the solution you'd like.
The solution I would like is the parallelization of the dot/kron products with sparse matrices.
Describe alternatives you've considered.
numpy.dot without relying in sparse matrix
Additional context (e.g. screenshots, GIFs)
No response

you may be interested in gh-19717

Thanks @lucascolley


Get xrefs from db-xrefs.yaml not GO.xrf_abbs

See: https://github.com/geneontology/go-site/issues/1570#issuecomment-725247518

That's done now.


Networking Sandbox Blueprint

Checklist

I applicable, I acknowledge that I have:

[ ] Read the contributing guide
[ ] Ran terraform fmt on all modified files
[ ] Regenerated the relevant README.md files using tools/tfdoc.py
[ ] Made sure all relevant tests pass

I would change the name to be more specific :)

I would change the name to be more specific :)

Open to suggestions!

vpc-connectivity-lab?


array except and only functions

In projects I very often need that kind of array functions and I think they will be also useful for other develpers :)
Please carefully check my tests I wrote, because they have been my first tests ever.
I also optimize a code responsible of checking the array keys type.

Hey @bluemanos ! In general, I like your suggestion, good idea! Thank you!
But what about to rename proposed methods to exceptKeys() and onlyKeys() due to work with array keys? In this way, we could use except() and only() method names to work with array values.

@bocharsky-bw I get it what you mean, but what will be the differences between only() and filter() methods if both of them will use the variables?
Only one difference will be - filter() have a callable argument, only() an array. Is that enough to create new method?
In general - for value filter I always need to use the anonymous function, because filtering by values is more complex than just passing list of values as an array.
But I will not argue if you really want the exceptKeys() and onlyKeys() :) For sure naming methods like this do not cause problems in the future.

Yes, it makes sense. OK, I'm fine to merge it as is.
Thank you for your contribution, @bluemanos !

@bocharsky-bw five days have passed and I forgot about the issue. Sorry that I didnt fix the array_fill_keys function.
Thank you for the merge.

No problem! I've tweaked array_fill_keys() ;)

It'd be great to have a new release with this update! Had to set the dep in composer.json to this commit.

@ajfranzoia Yes, sure! I've just tagged new release https://github.com/bocharsky-bw/Arrayzy/releases/tag/v0.6.0


Fix France region

Hello,
Currently the France page is not working, this PR modifies the intial PR #365 by focusing on Metropolitan France .
Thank you @jbelien  and @LaoshuBaby  for the help

Hello,
I just made the modifications, is it ok ?
Thank you

I just made the modifications, is it ok ?

Not it's still a FeatureCollection instead of just Geometry.
Here is the area generated via https://polygons.openstreetmap.fr/?id=1403916
{"type":"GeometryCollection","geometries":[{"type":"MultiPolygon","coordinates":[[[[-5.49,48.5],[-5.44,48.59],[-5.38,48.65],[-5.29,48.7],[-4.92,48.79],[-4.65,48.89],[-4.09,49],[-3.76,49.11],[-3.51,49.15],[-3.19,49.15],[-3.17,49.21],[-3.1,49.28],[-2.97,49.34],[-2.71,49.31],[-2.53,49.25],[-2.49,49.1],[-2.49,48.96],[-2.25,48.91],[-2.02,48.92],[-2.02,48.96],[-1.96,49],[-1.89,49.1],[-1.87,49.23],[-1.9,49.27],[-2.02,49.33],[-2.1,49.4],[-2.15,49.46],[-2.18,49.53],[-2.1,49.69],[-2.09,49.94],[-2.07,49.96],[-1.83,49.97],[-1.68,49.93],[-1.57,49.93],[-1.45,49.96],[-1.21,49.95],[-1.08,49.91],[-0.98,49.85],[-0.9,49.74],[-0.88,49.66],[-0.83,49.62],[-0.79,49.62],[-0.73,49.59],[-0.27,49.59],[-0.23,49.66],[-0.23,49.71],[-0.16,49.82],[-0.01,49.91],[0.27,50],[0.44,50.08],[0.74,50.12],[0.86,50.16],[1,50.17],[1.08,50.23],[1.12,50.24],[1.14,50.31],[1.18,50.36],[1.18,50.43],[1.21,50.48],[1.2,50.74],[1.23,50.81],[1.22,50.83],[1.24,50.91],[1.28,50.95],[1.53,51.08],[1.71,51.13],[1.85,51.23],[1.96,51.24],[2.02,51.27],[2.13,51.29],[2.17,51.32],[2.24,51.34],[2.37,51.35],[2.41,51.32],[2.45,51.25],[2.6,51.09],[2.61,51.03],[2.64,51.02],[2.67,50.97],[2.65,50.87],[2.69,50.85],[2.74,50.85],[2.82,50.76],[2.9,50.75],[2.91,50.78],[2.97,50.79],[2.99,50.81],[3.16,50.83],[3.23,50.77],[3.23,50.75],[3.27,50.75],[3.3,50.72],[3.3,50.63],[3.32,50.61],[3.32,50.57],[3.36,50.54],[3.41,50.54],[3.45,50.57],[3.52,50.57],[3.56,50.54],[3.64,50.53],[3.7,50.48],[3.71,50.38],[3.81,50.4],[3.92,50.37],[3.95,50.39],[4.04,50.4],[4.14,50.33],[4.23,50.31],[4.26,50.28],[4.26,50.24],[4.24,50.21],[4.2,50.19],[4.2,50.17],[4.24,50.15],[4.24,50.12],[4.27,50.09],[4.27,50.05],[4.22,50.02],[4.22,50],[4.33,50.01],[4.36,49.99],[4.45,49.98],[4.51,49.99],[4.59,50.03],[4.65,50.03],[4.64,50.09],[4.68,50.13],[4.79,50.2],[4.84,50.21],[4.86,50.19],[4.9,50.19],[4.94,50.15],[4.91,50.07],[4.88,50.05],[4.88,50.02],[4.86,50.01],[4.86,49.99],[4.93,49.93],[4.93,49.89],[4.9,49.86],[4.91,49.83],[5.02,49.84],[5.04,49.81],[5.12,49.8],[5.15,49.76],[5.19,49.74],[5.3,49.73],[5.38,49.66],[5.44,49.64],[5.49,49.59],[5.5,49.55],[5.54,49.57],[5.59,49.56],[5.62,49.59],[5.73,49.58],[5.74,49.6],[5.8,49.6],[5.86,49.58],[5.88,49.54],[5.99,49.53],[6.01,49.49],[6.05,49.51],[6.08,49.5],[6.16,49.55],[6.28,49.55],[6.34,49.51],[6.41,49.52],[6.48,49.51],[6.58,49.46],[6.64,49.38],[6.63,49.34],[6.7,49.31],[6.77,49.21],[6.8,49.21],[6.8,49.23],[6.84,49.26],[6.96,49.26],[7.07,49.22],[7.07,49.19],[7.11,49.2],[7.15,49.17],[7.28,49.16],[7.3,49.18],[7.33,49.18],[7.34,49.21],[7.47,49.22],[7.51,49.21],[7.54,49.18],[7.55,49.13],[7.65,49.11],[7.66,49.09],[7.76,49.09],[7.8,49.11],[7.87,49.08],[7.95,49.1],[8.09,49.03],[8.21,49.01],[8.23,49.02],[8.26,49],[8.27,48.95],[8.16,48.86],[8.14,48.79],[8.09,48.75],[8.06,48.75],[8.03,48.72],[8.01,48.72],[7.97,48.67],[7.85,48.59],[7.84,48.57],[7.85,48.51],[7.81,48.47],[7.77,48.39],[7.79,48.34],[7.78,48.3],[7.76,48.28],[7.73,48.28],[7.7,48.19],[7.67,48.18],[7.61,48.08],[7.61,48.05],[7.66,48],[7.66,47.95],[7.64,47.92],[7.62,47.92],[7.6,47.82],[7.57,47.78],[7.59,47.72],[7.56,47.68],[7.63,47.63],[7.62,47.55],[7.57,47.53],[7.56,47.49],[7.52,47.45],[7.4,47.39],[7.3,47.4],[7.23,47.38],[7.21,47.4],[7.14,47.41],[7.13,47.46],[7.04,47.46],[7.03,47.42],[7.01,47.41],[7.05,47.41],[7.09,47.38],[7.1,47.32],[7.04,47.27],[6.99,47.26],[7,47.24],[6.96,47.19],[6.92,47.18],[6.89,47.13],[6.87,47.13],[6.84,47.1],[6.79,47.09],[6.76,47.06],[6.76,47.03],[6.72,47],[6.68,47],[6.67,46.97],[6.63,46.95],[6.5,46.93],[6.5,46.84],[6.48,46.82],[6.5,46.8],[6.5,46.77],[6.48,46.74],[6.36,46.67],[6.3,46.66],[6.25,46.61],[6.19,46.58],[6.18,46.57],[6.2,46.55],[6.19,46.51],[6.13,46.47],[6.13,46.44],[6.19,46.41],[6.21,46.37],[6.23,46.4],[6.32,46.44],[6.41,46.45],[6.51,46.5],[6.83,46.47],[6.86,46.44],[6.84,46.35],[6.89,46.32],[6.9,46.25],[6.85,46.2],[6.85,46.17],[6.92,46.16],[6.94,46.14],[6.94,46.11],[7.01,46.04],[7.04,46.03],[7.09,45.92],[7.03,45.84],[6.87,45.78],[6.85,45.79],[6.85,45.75],[6.87,45.72],[6.92,45.72],[6.94,45.69],[7.02,45.68],[7.04,45.66],[7.03,45.55],[7.08,45.53],[7.09,45.51],[7.12,45.51],[7.15,45.46],[7.2,45.45],[7.23,45.4],[7.2,45.34],[7.17,45.32],[7.17,45.23],[7.11,45.18],[7.01,45.18],[6.96,45.13],[6.93,45.13],[6.93,45.11],[6.88,45.09],[6.83,45.09],[6.81,45.11],[6.7,45.1],[6.7,45.06],[6.78,45.05],[6.81,44.96],[6.8,44.93],[6.82,44.93],[6.83,44.91],[6.87,44.89],[6.97,44.9],[7.06,44.85],[7.05,44.79],[7.06,44.75],[7.1,44.74],[7.12,44.67],[7.09,44.64],[7,44.65],[7.01,44.6],[6.97,44.58],[6.96,44.54],[6.91,44.52],[6.99,44.44],[6.97,44.39],[6.94,44.39],[7,44.32],[7.03,44.31],[7.04,44.27],[7.1,44.27],[7.21,44.24],[7.22,44.22],[7.28,44.19],[7.35,44.19],[7.38,44.16],[7.52,44.18],[7.56,44.2],[7.6,44.19],[7.62,44.22],[7.69,44.22],[7.72,44.2],[7.72,44.13],[7.76,44.09],[7.75,44.04],[7.68,43.94],[7.6,43.91],[7.6,43.88],[7.55,43.85],[7.58,43.75],[7.65,43.67],[7.67,43.56],[7.56,43.5],[7.53,43.5],[7.51,43.47],[7.49,43.47],[7.48,43.45],[7.46,43.45],[7.45,43.43],[7.43,43.43],[7.42,43.41],[7.4,43.41],[7.39,43.39],[7.37,43.39],[7.36,43.37],[7.27,43.33],[7.24,43.3],[7.01,43.2],[6.99,43.12],[6.95,43.06],[6.85,42.98],[6.76,42.88],[6.61,42.8],[6.46,42.75],[6.15,42.74],[5.83,42.81],[5.76,42.81],[5.59,42.87],[5.49,42.93],[5.33,42.93],[5.06,42.99],[4.93,43.09],[4.78,43.08],[4.71,43.11],[4.52,43.12],[4.29,43.22],[4.17,43.22],[4,43.26],[3.89,43.19],[3.8,43.17],[3.73,43.09],[3.66,43.05],[3.54,43.02],[3.44,43.03],[3.37,42.96],[3.35,42.69],[3.42,42.63],[3.48,42.51],[3.49,42.43],[3.47,42.4],[3.06,42.39],[3.02,42.43],[2.95,42.43],[2.87,42.42],[2.79,42.37],[2.72,42.38],[2.71,42.37],[2.72,42.34],[2.69,42.3],[2.57,42.31],[2.55,42.29],[2.46,42.3],[2.41,42.35],[2.28,42.39],[2.16,42.38],[2.13,42.34],[2.09,42.32],[1.99,42.31],[1.93,42.36],[1.91,42.41],[1.87,42.41],[1.8,42.45],[1.7,42.46],[1.68,42.51],[1.7,42.56],[1.69,42.58],[1.52,42.61],[1.49,42.57],[1.43,42.56],[1.39,42.59],[1.38,42.63],[1.32,42.68],[1.15,42.67],[1.11,42.69],[1.08,42.74],[0.96,42.76],[0.91,42.75],[0.87,42.78],[0.71,42.82],[0.7,42.76],[0.72,42.74],[0.72,42.68],[0.69,42.65],[0.63,42.66],[0.41,42.65],[0.36,42.67],[0.35,42.65],[0.29,42.63],[0.25,42.65],[0.23,42.68],[0.18,42.69],[-0.01,42.64],[-0.09,42.66],[-0.1,42.68],[-0.15,42.7],[-0.15,42.72],[-0.18,42.75],[-0.24,42.76],[-0.3,42.8],[-0.34,42.79],[-0.37,42.76],[-0.5,42.77],[-0.53,42.74],[-0.58,42.74],[-0.66,42.82],[-0.77,42.87],[-0.77,42.93],[-0.8,42.91],[-0.95,42.91],[-1.05,42.96],[-1.16,42.97],[-1.22,43.01],[-1.27,43],[-1.31,43.03],[-1.32,43],[-1.34,42.99],[-1.44,43],[-1.51,43.06],[-1.51,43.11],[-1.45,43.16],[-1.42,43.23],[-1.48,43.23],[-1.53,43.25],[-1.54,43.22],[-1.56,43.21],[-1.62,43.21],[-1.66,43.24],[-1.67,43.27],[-1.76,43.26],[-1.77,43.29],[-1.83,43.34],[-1.81,43.48],[-1.84,43.62],[-1.76,43.7],[-1.75,43.78],[-1.65,44.08],[-1.59,44.36],[-1.58,44.48],[-1.6,44.51],[-1.6,44.62],[-1.54,44.9],[-1.52,45.14],[-1.49,45.29],[-1.49,45.46],[-1.57,45.52],[-1.61,45.59],[-1.62,45.69],[-1.6,45.73],[-1.62,45.77],[-1.7,45.85],[-1.75,46.01],[-1.8,46.04],[-2.06,46.31],[-2.44,46.46],[-2.56,46.49],[-2.64,46.54],[-2.71,46.61],[-2.74,46.67],[-2.71,47],[-2.88,47.07],[-3.03,47.04],[-3.28,47.05],[-3.37,47.07],[-3.47,47.12],[-3.54,47.18],[-3.69,47.41],[-3.9,47.44],[-3.98,47.42],[-4.07,47.42],[-4.19,47.45],[-4.3,47.52],[-4.52,47.56],[-4.56,47.59],[-5.08,47.81],[-5.24,47.86],[-5.32,47.93],[-5.32,47.95],[-5.35,47.98],[-5.36,48.09],[-5.48,48.37],[-5.49,48.47],[-5.49,48.5]]],[[[8.23,42.19],[8.23,42.43],[8.25,42.48],[8.33,42.56],[8.37,42.58],[8.38,42.62],[8.4,42.63],[8.43,42.69],[8.5,42.76],[8.6,42.81],[8.84,42.87],[8.93,42.93],[9.01,42.95],[9.03,42.97],[9.03,43.04],[9.06,43.11],[9.16,43.2],[9.27,43.25],[9.45,43.27],[9.54,43.25],[9.63,43.19],[9.69,42.94],[9.8,42.83],[9.8,42.74],[9.78,42.7],[9.82,42.66],[9.83,42.54],[9.85,42.5],[9.84,42.37],[9.87,42.28],[9.86,42.23],[9.87,42.13],[9.85,42.03],[9.82,41.98],[9.71,41.87],[9.71,41.63],[9.69,41.47],[9.66,41.4],[9.46,41.37],[9.33,41.3],[9.28,41.25],[9.12,41.28],[8.85,41.22],[8.75,41.24],[8.65,41.31],[8.62,41.35],[8.59,41.36],[8.51,41.44],[8.46,41.53],[8.44,41.54],[8.44,41.56],[8.42,41.57],[8.42,41.59],[8.37,41.64],[8.34,41.72],[8.28,41.81],[8.28,41.95],[8.23,42.19]]]]}]}

If that geometry is correct, please use it as france.geojson.

I just modified, it is now with the right format

Thank you for value my work in https://github.com/osmbe/osm-welcome-tool/commit/b05eb255f817f13223b2c06eb304edc70927e206 and https://github.com/osmbe/osm-welcome-tool/commit/4fa7982fe99cdf5fdca1b47ac447b00ded79a040, but looks like I've also made geojson mistake that trouble you all.
By the way I want to know, how can I get a osmcha id with specific geojson? (In https://github.com/osmbe/osm-welcome-tool/blob/2.x/CONTRIBUTING.md#add-a-new-region this was not mentioned, but I want to try)


Move all data source endpoints to [dsId] instead of [name]

Description

Move all data source related endpoint to [dsId] instead of [name] requiring changing the re.query extraction.
Changes a few call sites to start using dataSource.sId instead of dataSource.name.
Replace call to getDataSource to direct call to the DataSourceResource to depreate getDataSource and get better tracking of use of name/sId

Risk
Low in theory but somewhat high given the number of files it touches
Testing:

[x] Create a Folder
[x] Upsert by product
[ ] Upsert by API
[x] Create a Website
[x] Search
[x] Delete Folder
[x] Delete Website
[x] Create a Connection
[ ] Use in one assistant
[x] poke operations

Deploy Plan

deploy front

Deploying on front-edge to verify it builds + running final tests
@philipperolet addressed most of your comments :+1:


Implemented Netlify CMS into the site

This a big change for the site. There is a bug with rendering images uploaded into the project from netlifycms on episode.js. Have not figured out how to get around it yet. There is some console.log statements in there that will also need to be deleted once fixed.

@domsbytes Got error as below
Generating development JavaScript bundle failed

Can't resolve 'remark-html' in '/Users/RAFNA/returnship-everydayheroes/src/templates'

If you're trying to use a package make sure that 'remark-html' is installed. If you're trying to use a local file make sure that the path is correct.

File: src/templates/episode.js

failed Building development bundle - 12.634s

I am going to merge this now, because I want to to test live master CMS hook up :)

Went site went live this is the path the image is using, could be a clue to fix:


Fixes eval parsing error in direnv-hook for zsh

Recent addition that moves hook into precmd_functions introduced a syntax error, one that's easily fixed with the addition of a semicolon.

Found another error. Will issue another pull req. in a minute.


[elasticsearch] Make master sidecar container optional

Describe the feature:
is master sidecar container needed for all versions? as I understand it should have been fixed as mentioned in https://github.com/elastic/helm-charts/issues/63#issuecomment-472339526, maybe it makes sense to introduce additional value and add this container optionally?
I've tried to reproduce the issue as described here https://github.com/elastic/helm-charts/issues/63
For version 7.2.0 I can't reproduce
{"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}

and during the re-election API call
$ watch -n1 time curl -s http://localhost:9200/_cat/master?v
doesn't hang.

is master sidecar container needed for all versions? as I understand it should have been fixed as mentioned in #63 (comment)

If it really has been fixed in #63 then we can disable it by default.

maybe it makes sense to introduce additional value and add this container optionally?

Yup!

and during the re-election API call
$ watch -n1 time curl -s http://localhost:9200/_cat/master?v
doesn't hang.

Were you able to reproduce the problem with this test on versions before 7.2? If I recall correctly the issue with using _cat/master is that it doesn't have a timeout and only returns once the new master has been elected. The best way to reproduce it (and to test if it is fixed) seems to be doing lots of writes while the currently active master is being shut down.
I'm going to do some testing with 7.2.0 to see if it is indeed fixed or not. If so then we can disable this workaround!

Yup it's fixed for good! I'll disable it by default and add a value to re-enable it for Elasticsearch < 7.2.0.

@Crazybus thank you! It was really fast 👍


Bump environ version to 1.1.0

This was failing in jar-jar tests when run with puppetserver
Possibly confusing dependencies found:
[puppetlabs/pe-puppetdb-extensions "6.20.3-20220314.225728-4"] -> [environ "1.0.2"]
 overrides
[puppetlabs/pe-puppetserver "2<IP_ADDRESS>" :classifier "test"] -> [puppetlabs/code-manager "2<IP_ADDRESS>"] -> [environ "1.1.0"]
 and
[puppetlabs/pe-puppetserver "2<IP_ADDRESS>"] -> [puppetlabs/code-manager "2<IP_ADDRESS>"] -> [environ "1.1.0"]

Consider using these exclusions:
[puppetlabs/pe-puppetserver "2<IP_ADDRESS>" :classifier "test" :exclusions [environ]]
[puppetlabs/pe-puppetserver "2<IP_ADDRESS>" :exclusions [environ]]

Longer-term, since it is a shared dependency, it should be moved into
clj-parent

removed the dependency instead


endTime should be next day when endTime is less than startTime

This is ok, it was 4:45am, it was showing the next start time which was at 6.


🐛 BUG: unstableDev is exposed in default project scaffold/boilerplate

Which Cloudflare product(s) does this pertain to?
Wrangler
What version of Wrangler are you using?
2.15.1
What operating system are you using?
Mac
Describe the Bug
When I scaffold a new project via wrangler init, the following prompt defaults to "Y":

? Would you like us to write your first test with Vitest? › (Y/n)

and results in the index.test.ts being created with the following content:
import { unstable_dev } from "wrangler";
import type { UnstableDevWorker } from "wrangler";
import { describe, expect, it, beforeAll, afterAll } from "vitest";

describe("Worker", () => {
  let worker: UnstableDevWorker;

  beforeAll(async () => {
    worker = await unstable_dev("src/index.ts", {
      experimental: { disableExperimentalWarning: true },
    });
  });

  afterAll(async () => {
    await worker.stop();
  });

  it("should return Hello World", async () => {
    const resp = await worker.fetch();
    if (resp) {
      const text = await resp.text();
      expect(text).toMatchInlineSnapshot(`"Hello World!"`);
    }
  });
});

Note that the test file depends on unstableDev which as the name suggests is an unstable API.
We won't be maturing this API any time soon, and exposing it in all newly created projects only creates a liability for us and sets wrong expectations with developers.
I recommend that we change the default to N as part of v3.

Closing since wrangler init has been deprecated in wrangler v3 and project scaffolding has been deferred to create-cloudflare


Do not send logs to API on every call, but send in batches

Doing an API call on every log / tag statement is fine for demo and MVP purposes, but not for real use cases.

Cache the log / tag / info events in the ray, and send when the ray is destroyed, or when a certain threshold is reached.
Make sure to send all logged data in case of an exception!

Done in #19

Done in #19


mergen 1.0 crashes a few seconds into the scan (all)

macOS 13.3.1 (22E261) MacMini M1 2020
Where can I send the crash-log?

Also crashes on CIS Benchmark. Privacy and Security scans run ok.

Hi, I have the same problem, CIS benchmark thus All, makes merger crash. While Privacy and security is ok.

Can you send me the logs by using Pastebin? or you can directly send it to my email -><EMAIL_ADDRESS>I'm trying understand the reason.

I'll send the log via email.

Can you share it here? @Thomas-U Another one is already reported caused by NSFileHandleOperationException.

I sent it to you via email already. I'd never post logs on a public site.


kpmcore fails to build

Steps to reproduce
I have this happens on a snapshot of master:
$ nix-env -iA pkgs.libsForQt5.kpmcore

results in the following (excerpted):
-- Checking for module 'blkid>=2.30'
--   No package 'blkid' found
CMake Error at /nix/store/9hmhxgj4jk6jmxihgavj6gm0p759misc-cmake-3.10.2/share/cmake-3.10/Modules/FindPkgConfig.cmake:415 (message):
  A required package was not found
Call Stack (most recent call first):
  /nix/store/9hmhxgj4jk6jmxihgavj6gm0p759misc-cmake-3.10.2/share/cmake-3.10/Modules/FindPkgConfig.cmake:593 (_pkg_check_modules_internal)
  CMakeLists.txt:81 (pkg_check_modules)

Technical details

system: "x86_64-linux"
host os: Linux 4.14.29, NixOS, 18.09pre133640.ea145b68a01 (Jellyfish)
multi-user?: yes
sandbox: no
version: nix-env (Nix) 2.0
channels(mickk): ""
channels(root): "nixos"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs

Try adding utillinux to the buildInputs.

That does indeed do the trick and build.

Any chance you can whip up a PR? If so, please ping me in it.


[ASK] How to save the model after training? How to call the saved model, thank you.

How to save the model after training? How to call the saved model, thank you.

It can be realized with surprise!
import os
from surprise import dump
Dump algorithm and reload it.
file_name = os.path.expanduser('./dump_file')
dump.dump(file_name, algo=model)
_, loaded_algo = dump.load(file_name)
loaded_algo.recommend_k_items(test)


Add example 2D model

Description

Added an example 2D model.
Motivation and Context

This model is useful for a quick test of new code, and for workshops/demos.
How Has This Been Tested?

I have used this model for over a year to test code or give demos.
Suggested tests for reviewers

In main.m, set [S] = initializeSettings('gait1018'); and S.subject.name = 'gait1018';, and check that the simulation starts.

Model tested as proposed. No issues with convergence. Only issue with automatically plotting the results; see attached figures.

Adapting the plotting functions to manage 'all_coords' or 'muscles_r' when plotting models with different coords/muscles together
needs a lot of implementation changes.
Since this does not break the actual simulations, I created issue #146 so we can update the plotting functions later.


IpyWidget tests are very slow (hence disabled)

@rchiodo  @IanMatthewHuff I'm disabling the tests
They are timing out on CI, each test takes 60 seconds, i guess this is because of the 55mb file that needs to be loaded in the browser.
Disabling here https://github.com/microsoft/vscode-python/pull/10887

Maybe we should only run these with full jupyter

Then we wouldn't need the log files

Tests seem to pass for me. At least on a PR


[FEATURE] create User Information component

User Info component for Profile page (default view of page).
Should have an edit button so info can be changed and saved.

included in #151


Add: Los Rios Community College District

@ittikorns This domain is blacklisted because the college allows to register an email address there even if you are not a student of the college. If you are the student of this college, please apply with official document ("OFFICIAL DOCUMENT" tab at https://www.jetbrains.com/shop/eform/students).


[Feature request] Added pid option for setActivity function

Would it be possible to add the pid option in the setActivity function?

Thank for your request :heart:!  How about adding it to the riche.create function? Makes more sense to me.

Finally, I thought it would be better to add setter for process id, see pull request.


Add cookie subject extractor

Description
Add cookie subject extractor, specifically trying to work with https://developers.cloudflare.com/cloudflare-one/identity/authorization-cookie/application-token/, and assuming that zero trust already did the validation of the jwt, and in this PR, we simply need to extract the subject (i.e. email from the cookie).
Motivation and Context

How Has This Been Tested?

unit test.
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

Codecov Report

Merging #536 (dd2a603) into main (347a36d) will increase coverage by 0.06%.
The diff coverage is 92.85%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##             main     #536      +/-   ##
==========================================
+ Coverage   80.96%   81.02%   +0.06%
==========================================
  Files          28       28
  Lines        2222     2235      +13
==========================================
+ Hits         1799     1811      +12
- Misses        334      335       +1
  Partials       89       89

Impacted Files
Coverage Δ

pkg/handler/subject.go
96.55% <92.85%> (-3.45%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Bump the version to include recent PR in PyPI package

@jdebacker. This PR updates the version of OG-Core so that the most recent PR can be included in the PyPI.org package. This PR updates the version number to 0.10.2 in setup.py and __init__.py. I also made a small change in the Python versions referenced in contributor_guide.md.

Codecov Report

Merging #845 (0164b54) into master (39e2bf5) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files

@@           Coverage Diff           @@
##           master     #845   +/-   ##
=======================================
  Coverage   82.24%   82.24%
=======================================
  Files          18       18
  Lines        3981     3981
=======================================
  Hits         3274     3274
  Misses        707      707

Flag
Coverage Δ

unittests
82.24% <100.00%> (ø)

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

Impacted Files
Coverage Δ

ogcore/__init__.py
100.00% <100.00%> (ø)

Thanks for the version bump, @rickecon.


[BUG] Deployment fails at last step with LR 7.9 SIEM

Describe the bug
When deploying, user keeps getting the last step (Add LS Virtualisation to OpenCollector Log Source) to fail.
To Reproduce
Steps to reproduce the behavior:

Go to Pipeline
Open open Pipeline
Click Add new Deployment
Click (+) button for selected Open Collector
All steps work fine, but it keeps failing on the Add LS Virtualisation to OpenCollector Log Source

Expected behavior
Deployment should be done fully.
Screenshots

Desktop (please complete the following information):

OS: Windows
Browser: chrome
Version: ??

Additional context
Thanks @hackdefendr for spotting this one.
User runs LogRhythm SIEM v7.9.
Response from the API is:
{
  "stillChecking":false,
  "errors":[
    {
      "message":"Column name or number of supplied values does not match table definition.",
      "code":"EREQUEST",
      "number":213,
      "state":7,
      "class":16,
      "serverName":"xxxxxxxxxxxxxx",
      "procName":"LogRhythm_EMDB_GetMessageSources_SelectAll",
      "lineNumber":39
    }
  ],
  "outputs":[
    "3 row(s) returned"
  ],
  "payload":[

  ]
}

@hackdefendr, please download this version of 20210720.16 - Create Stored Procedure - upsert_Log_Source_Virtualisation_To_OpenCollector_LogSource.sql from here and run it on the XM against the EZ database.
This will fix the issue for you (and anyone with SIEM v7.9.0 and above).

Tested against old SIEM (v7.5.x):

Tested against new SIEM (v7.10.x):


feat/contentlayer

This PR adds Contentlayer — which transforms the docs into type-safe JSON data.
Please don't merge yet, this is a WIP.

Success! ✨

Hey @multiplehats thanks for this! We don't want to put api-reference in lib since we don't want it being exported from the package! Also if you could open this branch to merge into the api-reference branch that would be great!

Ah oops @huntabyte didn't thought one through.
As in, I should merge with that existing branch and commit again?

Yeah merge that branch in and then open the PR to that branch instead of main!


cudaError: wrong memory accessed

I am using flash-attention to speed up my experiments.
I am using fairseq and pytorch 1.9.0 and python 3.7.13.
I am training a transformer-tts base model and replace the encoder self-attention with flash attention.
And I encounter a cuda error which throws such exception when I evaluate the model:
Warning: CUDA warning: an illegal memory access was encountered (function destroyEvent)
terminate called after throwing an instance of 'c10::CUDAError'

Before adopting flash attention, the whole training process does not suffer from invalid memory access.
I set causal=False.
Is there anything incompatible in your implementation with transformer-tts?

There was a memory bug that I fixed recently. Did you use a version before or after this fix?
If you have more information on the input shapes (batch size, seqlen, nheads, headdim),  and which GPUs, that would be helpful!


embed OpenSpeedTest arguments

What arguments can be sent fo iframe embeded link? (I found just about Run=x)
Looking to pass mode (ligh/dark). On my mobile device is allways start in dark mode, despite on clicking at the light mode button. Upon refresh it is again dark mode.

@velepost That is a bug; it will be fixed soon. Additionally, there will be more options, such as forcing dark mode, changing colors, etc.

Any update on this? Wondering the same thing. :)


Helm: have Ingress as configurable option

Ingress as configurable option within chart itself
Similar to how other charts handle Ingress as a configurable option via ingress.enabled: true/false, it would be operationally helpful if the helm deployment of Stratos had Ingress as a configuration option included in the chart rather than requiring it to be configured/added on as an external file
Context p1: my personal use-case
As a proof of concept I installed SUSE/scf (CF on k8s) as a helm chart & leveraged an Ingress rather than multiple Service: LoadBalancer's. I wanted to leverage Stratos for the UI using the cluster-wide Ingress Controller rather than setting up new DNS entries for the LoadBalancer services that would get generated. I thought about installing Stratos as an app on CF Docker app instead, but sadly I don't think it's possible to run docker images on the k8s CF deployment model yet.
Context, p2: general use-case
When deploying helm charts, either manually with the helm-cli or with a declarative helm tool like helmfile, it's beneficial to have the deployments be as declarative as possible. Any steps required outside of what can be defined statically makes the deployment "snowflake-y" (hate that term, but whatever).
In order to use an Ingress I need to go manually download the ingress.yml, which breaks the workflow of:
helm repo add stratos https://cloudfoundry-incubator.github.io/stratos
helm repo update

# setup a stratos-values.yml with all the options you want enabled, including Stratos version + Ingress config and such...

helm upgrade stratos/console --install --namespace=console --name my-console --values stratos-values.yml

and means people need to add in manual steps, like maybe having to wget https://github.com/cloudfoundry-incubator/stratos/blob/v2-master/deploy/kubernetes/ingress/ingress.yml or something. And even then, since it's not part of the versioned Chart.yml, there's no guarantee that it'll work with the version of Stratos you're using.
Possible Implementation
~Stealing from~ drawing inspiration from other helm charts on how they do Ingress? e.g. like Concourse or  minio or artifactory, etc. I'm by no means a helm expert, so I apologize for opening an issue rather than a PR with the suggested improvement. I can take a crack at it, but someone smarter than I + w/ more context might be more appropriate.
Thoughts?
Thanks for your time & consideration 👍

Hi @aegershman, I'm current reviewing our open community issues to assess their liveness - I see you opened this one in May - I assume this feature is still relevant to you? Please let me know. Thanks!

It is, but to be honest it's not a huge priority for me. No worries, will close this out.
In general, thanks for helping making Stratos OSS & a quality UI 👍

@aegershman You're welcome. Should this feature become more of a priority in the future please let us know and we can re-open it. And feel free to contact us about anything else you'd like to see in Stratos or any issues you encounter.

SUSE CAP has had ingress creation via the helm chart since the 1.4 release and it has proved extremely convenient and useful for deployments where Kubernetes-provided load balancers are not available.
This will be a requirement for SUSE/stratos downstream (for consistency), so we might as well do this upstream so everyone deploying with Helm can use this. :)


bad naming of manifest.json when fingerprints = false

When the option fingerprints is set to false, the output name of manifest is manifest..json instead of  manifest.json (double dot)

Not sure if this helps but it was not occurring on 3.4.1. I've only seen this on 3.6.2 so far.

Happening for me on 3.6.2 too

Duplicate of #64


Tscn

Changes to work with github's json struct, now it brings all repos from an specific user

Thanks for your contribution @tscndev , but it's not necessary for my main purpose of API consuming for this project. But I'll update de documentation to include your purposed scenario for someone who wants to take advantage of it.
Once again, thanks for your contribution.


Not compatible with BungeePerms

The Plugin eZProtector is not compatible with any version of BungeePerms und disables itself on startup.

eZProtector is not a BungeeCord plugin and never has been. That's why it's not working.

BungeePerms will be installed on BungeeCord and on Bukkit to synchronisize their permissions.

Well, try the latest version and let me know how it goes.


Add validation for builders

When calling .buildx() it should give a typescript validation for if the required methods have been provided.

Decided that this won't be implemented because we are implement #32 .
The builders we be moved to internal use only in Q1 2024, which means we do not need the builder validation.


Deployment status returned Error 403

I use Asynchronous zip deployment.
And the status is polled every 30 seconds.
The status sometimes returns an error 403.
However, looking at the ZipDeployUI, it seems to be successful.
Is it possible that auto-swap is the cause?

if you are using site cred to poll, yes it could.  Since you may start polling on the recently swapped site which has a different password.

This is the response.
Is there a possibility of rebooting by swap?

Error 403 - This web app is stopped.

The web app you have attempted to reach is currently stopped and does not accept any requests. Please try to reload the page or visit it again soon.

If you are the web app administrator, please find the common 403 error scenarios and resolution here. For further troubleshooting tools and recommendations, please visit Azure Portal.

The 403 often times meant wrong credentials.  If you provided the exact UTC time of the 403 request and site name here or indirectly.   We can help pinpoint.

UTC time: 23 September 2020, 01:08:28 UTC to 23 September 2020, 01:10:39 UTC
site: ssk**********************************ase.scm.azurewebsites.net
Is this enough?

Also .. share partial info about your subscription GUID. For instance, if your subscription is 30dd879c-ee2f-11db-8314-0800200c9a66, you can share part of prefix and suffix like 30dd...9a66 as your subcription...

This is part of the subscription GUID.
1bfb****3c0f

umm.. we can't locate the site nor the sub.   could you ping your site hostname and share the CName (which should be in form of waws-prod-xxx.cloudapp.net)?

Sorry, the subscription ID was wrong. This is correct.
1b00****b3a4
Site: ssk--prod.azurewebsites.net
Slot: ssk--prod-release.azurewebsites.net
CName: waws-prod-ty1-015.cloudapp.net
Deploying to the release slot. After that, it auto-swap to the production slot.

there were many sites starting with ssk and ended with prod - please make sure to Share partial info about your site name (enough to uniquely identify within the subscription.

I don't know the names of all the sites in subscription...
How's this? ssk-por****in-prod.azurewebsites.net

Do you own the subscription?  Due to security reason, we can't assist if you are not the owner.

I have confirmed my role in the subscription. My role is the owner.
Maybe this is unique. ssk-por****nd-win-prod.azurewebsites.net

This had to do with race condition with auto-swap.  Your last poll for latest deployment happened after the deployment completion and autoswap was on-going.   Depending on what stage of auto-swap, you could be polling on the swapped slot which will give you wrong information.   The 403 was the quirk due to swapping cred during swap.
Unfortunately, this is the combination (polling and autoswap) which does not work well.  If you need to poll the status, either poll and do swap explicitly upon deployment completion (meaning no using auto-swap).

I will think about changing to explicit swap.
I am grateful for your support.


Color of footer not changing on theme.

Expected behaviour:
When creating a child theme of the current theme and then going into it's settings and changing the footer colour, the footer is meant to change to the colour that you choose.
Actual behaviour:
Footer colour doesn't change and stays brown, no matter what colour you try and change it to.
Reproduce steps:
Create a child theme of the default theme, go into the theme's settings & change the colour of the footer. Then save and refresh your store front.
Version:
Latest version? Unsure of number.
Additional Information:
(Additional information, if any)

Not reproducible in the latest release. Please reopen this issue if it still occurs, with a set of reproducible steps.


Firestore Delete Issue (Not Deleting Doc Within Collection)

Angular:
angular/core": "^4.0.0"
Firebase:
"firebase": "^4.5.0",
AngularFire:
angularfire2": "^5.0.0-rc.2"
Other (e.g. Ionic/Cordova, Node, browser, operating system):
MacOS, Chrome
Expected behavior
When I click the "x" icon the document found within the collection should delete.
Actual behavior
Absolutely Nothing. I can console log the announcement that needs to deleted to ensure I can get the ID and other data. Thats working fine. However, the delete action never gets called.
###Code Sample
import { Component, OnInit } from '@angular/core';
import { AngularFirestore, AngularFirestoreCollection, AngularFirestoreDocument } from 'angularfire2/firestore';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';

export interface Announcement { title: string; body: string }
export interface AnnouncementId extends Announcement{ id?: string };

@Component({
  selector: 'app-announcement-list',
  templateUrl: './announcement-list.component.html',
  styleUrls: ['./announcement-list.component.css']
})
export class AnnouncementListComponent implements OnInit {

  private announcementCollectionRef: AngularFirestoreCollection<Announcement>;
  announcements: Observable<AnnouncementId[]>;

  constructor(private afs: AngularFirestore) {
    this.announcementCollectionRef = afs.collection<Announcement>('announcements', ref => ref.orderBy('createdAt', 'desc'));
    this.announcements = this.announcementCollectionRef.snapshotChanges().map(actions => {
      return actions.map(a => {
        const data = a.payload.doc.data() as AnnouncementId;
        const id = a.payload.doc.id;
        return { id, ...data };
      });
    });
  }

  ngOnInit() {
    //console.log("Hello");
  }

  removeAnnouncement(announcement: AnnouncementId){
    console.log(announcement);
    this.announcementCollectionRef.doc(announcement.id).delete();
  }

}

		{{ announcement.title }}

			{{ announcement.createdAt }}

Signed: {{ announcement.signedBy }}

{{ announcement.body }}

Hey @callen5914 is this still broken in rc3?

Yes indeed. I’m glad you mentioned that. I did the update thinking maybe I was behind in release. So at least I am thinking like others. Is there a good plugin for chrome that I can debug click events?

I think I might be onto something here.
When I console log the announcement it gives the whole object. I can clearly see the ID of document I wish to delete. However when I console log out this:
console.log(this.announcementCollectionRef.doc(announcement.id));

I get something completely different. The ID is way different!

When I try this:
 console.log(this);

I get this in the console:
Operator: MapOperator {thisArg: undefined, project: ƒ}

Does this mean anything to you guys? Is it possible the ID of the Doc is never being passed?

Ooh even better!
When I use:
console.log(this.announcementCollectionRef.ref.doc().path);

I get back:
announcements/GB1MWkVsFHY4tKZj4w2M

Which if this is actually supposed to be the ID, it should have been:
VqnGFugIvLLGTuajg85q

So if I "Hard Code" in the ID like:
this.announcementCollectionRef.doc('VqnGFugIvLLGTuajg85q').delete();

The Announcement will indeed be deleted! So maybe there is an issue with how the metadata is being stored somehow. Like it's not matching what Firebase has.

Can anyone verify whether this is actually an AngularFire2 issue by trying this with the vanilla SDK? Wondering where this should be getting reported and whom should get pinged to investigate.

Okay, so I have figured it out. I feel so foolish for not catching this. In my app I have a parent component with two children one child is the form used to create a doc and the other child is the list of all docs within a collection. The form component was using valueChanges() with a field generated id. The listing component was built using the snapshotChanges(). So the id's were never lining up.

Glad to see you sorted it out.
I'll put create, update, and delete in the examples; that way it's demonstrated.


Revert change to version in package.json

The version should not have been bumped. We will do that when we release a new version.

Related: changes in 2.1.0 version appear to be breaking https://github.com/MetaMask/jazzicon/issues/10#issuecomment-1751563269


Inherit OwnableBehaviorArgs into DiamondWritableBehaviorArgs

Sharing these behavior arguments is probably ideal in most situations, but it might be more strictly correct to define new arguments diamondCutter and nonDiamondCutter, in case that role is not the same as the owner role.

Might address the concerns above in a future PR, but it's not important.


Add Wireguard Address in Deployment Table

Since we added wireguard connection for Full Vm and micro VM, we could also add the wireguard address in the deployment table.
The work is done in this PR and could be tested by the dev team before it is merged.

Closing this issue as the changes were merged in this PR


add 'extensible-effects' package

resolves suhailshergill/extensible-effects#57

Sorry, can you rebase? or I can merge this by hand if you prefer...

@juhp not sure what happened previously; just rebased, however.

i imagine the failure is due to extensible-effects limiting HUnit to 1.2.*
will reopen once suhailshergill/extensible-effects#61 is merged

kkkkk

@juhp could you help me understand the build failure?
on my local machine i'm able to compile against HUnit <IP_ADDRESS> and run the extensible-effects test suite just fine

Thanks -- you might have been "too quick" sometimes it takes a little while before the travis job can see the new release.

understood, thanks.


Hooks classes

Is there away to add cookie accepts etc in the hooks class before running the test?
If we are injecting the context into the test how do we interact with that context outside of the test?

Hi, you can just inject it into the hook:
@BeforeEach
public void beforeEach(BrowserContext context) {
  // do something with the context
}

Hi,
Thanks for that, if I inject the context them into a test it's the same context? It'll have those cookies accepted?

Yup same one. And if it's not, it's a bug so if you find that is the case please let me know.

Would love to understand more about how you did it!

Feel free to ask any questions about the code.
I built class-level parallel tests directly into playwright-java (should be out soon). But I will keep this library going until method-level parallel is achieved in playwright-java directly.

I'll come back to you when I go through the code some more!
I did try method level parallel testing with JUnit and playwright but I couldn't get the thread safety to work.Seemed to still conflict even when I added instance per method. Be cool to see it in playwright natively be advantage over sequential testing!
You library solves this though!


concurrency: make the startAsyncLet closure no-escaping

The closure does not escape the startAsyncLet - endAsyncLet scope. Even though it's (potentially) running on a different thread.
The substantial change in the runtime is to not call swift_release on the closure context if it's a non-escaping closure.
It also needs a change in ClosureLifetimeFixup: the captured values (= the partial_apply arguments) must be kept alive until the endAsyncLet builtin. ClosureLifetimeFixup adds the generated mark_dependence as a second operand to endAsyncLet, which keeps all the arguments alive until this point.

@swift-ci test

@swift-ci test

Super cool, late LGTM!

This broke minimal swift builds (i.e. as few dependencies on other projects as possible). I'd like to keep that config working as long as possible if you don't mind. Please see #36990


[T2A2][T16-A2]Chan Khai Ern Edwin

Ready for Review

@EdwinChanSingapore some comments added, please take a look. please ack and close the PR.
on an unrelated note, please add a photo to your github profile to help us identify better


QOL: Running Balance

Running Balance added a custom property to the transaction obejcts. Typescript was sad about this and threw a warning. This gets rid of that warning.
There was also a problem where Running Balance wouldn't always load on the first refresh, using Ember.run.later aims to fix that.

Thanks!


Add iOS platform version

We use SyntaxSparrow for creating protocol mocks with macros. This protocols are needed for our swiftUI Previews for iOS.
If the platform version for iOS is missing, we will get the following error message:
"The package product 'SwiftSyntax' requires minimum platform version 13.0 for the iOS platform, but this target supports 12.0."

Hi, sorry for delay as was on holidays. No issue with this PR, however, you should also add the support to the other package files<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(which provides support for older sift versions too).

Changing the base branch to develop as will include this with some other bits and bobs tonight in the same release.

Will add the additional platform support to the other swift packages in another PR to get this in with the privacy manifest updates.

Last Spam - have also added a dedicated iOS unit test run to the workflow for a sanity check moving forward 👍


Change ${{ github.sha }} to extract tag (or branch) from repository

At the moment, the image is being created using github.sha
docker build -t ghcr.io/${{ github.actor }}/${GITHUB_REPOSITORY#obervinov/}:${{ github.sha }}
This behavior needs to be changed to a repository tag (or a branch if the tag does not exist)

done
https://github.com/obervinov/_templates/pull/25/commits/c9b0f88c686ffa7fa162e77daffafb7431eec7d5