Exploration: Rework of our internal model - specifically optical elements

We need a first iteration of an API for design parts of the optical elements and light sources
Rayx-design as library for applications that need design parameters

As explained in #188, this is a blocker for the new RML format.
Before implementing a new parser, we need to have a DesignElement format - in other words something like "Element" but with all the design parameters still in there.
We'd need a DesignElement later, eg. for the GUI - the user doesn't want to interact with our Shader-internal model, but probably prefers to access it through design parameters.
As we don't require DesignElement to be accessible within the shader, we can use unrestricted c++ to implement it.
In the design-element-variadic branch, I implemented a very templatey version for the DesignElement approach - featuring an automatic parser generator for toml.
We decided against merging it, due to it's complexity - which ultimately did not seem worth it.


The file id is not same from file picker with different version

When I use v5.0 web file picker, the selected file's id type like file.AAAA.BBBB(file.1b491acce7ef54dd.1B491ACCE7EF54DD!111), but when I try to use v7.0, the file's id type is just BBBB(1B491ACCE7EF54DD!111).
I don't know why we have this change, but I need you confirm, is the v5.0 file id generated by 'file.' + ownerID + id? Or any other generate rule?

Hi @benjaminliugang, for v5.0 case, it is the format recognized by: https://apis.live.net/v5.0/ endpoint while for v7.0, we are using the newest api which is https://api.onedrive.com/v1.0/.


Fix compilation and IDE inspection warnings in dependency-management

This is quite a large set of changes, a number using auto fix from the IDE, validated by the Java compiler and test execution.

@bot-gradle test RFM

OK, I've already triggered ReadyForMerge build for you.

@bot-gradle test RFM

OK, I've already triggered ReadyForMerge build for you.

@bot-gradle test RFM

OK, I've already triggered ReadyForMerge build for you.

@bot-gradle test RFM

OK, I've already triggered ReadyForMerge build for you.


Change block/field default to None

Currently, the default value is an empty dict which is basically an invalid content state. Therefore, the editor should return None which clearly state the lack of content.

[x] Update springload/draftail package.
[x] Update springload/draftjs_exporter package.
[x] Update springload/draftail dependency for this package.
[x] Update springload/draftjs_exporter dependency for this package.
[ ] Update block accordingly
[ ] Update field accordingly (actually the field doesn't have a default value atm?)
[ ] Remove the now useless form field and validator?

@loicteixeira I've done the work in Draftail (#40) and the exporter (#36) to support this, and updated those two here – will leave the Django changes to you if you have the time.

I have re-added a default value of {} within this project (https://github.com/springload/wagtaildraftail/pull/42/commits/bb4b68ff9cd9c88985e58070b59184985afabe80) so that we can finish this later on.
Note that nothing needs to happen for the exporter, it will handle None or {} just the same.

Sorry I didn't get time to look into this before my break.
Basically, the block use a custom form field to handle the '{}' string as empty.
Now that draftail returns None, this is not needed anymore. This can probably use the same formfield as the parent class, so there is no need for the form and validator linked above in the issue.
FWIW, it looks like DraftailTextBlock and DraftailTextField don't use the same underlying form field and this should be updated to the same (but potentially removing the overwrite on the block should do the trick).


pod-network-cidr not correct for flannel

OS running on Ansible host:
Raspbian 9.4
Ansible Version (ansible --version):
2.7.1
Uploaded logs showing errors(rak8s/.log/ansible.log)
Raspberry Pi Hardware Version:
3 Model B
Raspberry Pi OS & Version (cat /etc/os-release):
Raspbian lite 9.4
Detailed description of the issue:
A container running blinkt-k8s-controller was unable to access the kubernetes API server on <IP_ADDRESS>.
This was caused by a incorrect pod-network-cidr in roles/master/tasks/main.yml. The correct pod-network-cidr for flannel is <IP_ADDRESS>/16.

I'm not sure where you're getting <IP_ADDRESS> from. The podnet variable is set to <IP_ADDRESS>/16: https://github.com/rak8s/rak8s/blob/9031d74fea51ba15d9c91d529eca230ebc59ab0b/group_vars/all.yml#L2

Please look in roles/master/tasks/main.yml. The kubeadm init command doesn't use the podnet variable.

Please check the latest release: https://github.com/rak8s/rak8s/releases/tag/v0.2.2


Why is TWP all async?

Just wondering the design decision behind using async routines within TWP.
The responses received usually do not match the requests made by a browser.
I like the OnRequest & OnResponse events to trigger my custom code, but it seems like I have to do a lot work so I can understand which response goes with which request.
Because I could, I modified all async routines so TWP behaved in a synchronous manner.  Kind of what I was expecting, so I have been wondering several months now why TWP was designed to be async?

May be I need to get a coffee in morning first can you please elaborate TWP?

If I understood this right, please note that the proxy is multithreaded, and request/response handlers will be fired as soon as we receive data from client/server asynchronously. It won't be in order. To figure out the order #136 will help, by using the RequestId property.

Regarding your why async design question, async is used to improve cpu usage in high traffic situations. Otherwise there will be a bunch of threads waiting for network I/O to complete, while in async design such threads are free to do other tasks. It is no differant than the reason why many asp.net applications use async.
Again its a design choice and in my experience if not properly understood by developers broken implementations of async can cause problems.

I kinda figured async was done for speed.  It makes sense to pass thru requests and receive whatever response, rather than waiting to receive a response before sending the next request.
What really helps is your reference to #136.  I see now how RequestId can be used to "sync" request with response, as though processing was done sequentially.  Thanks for the push in the right direction,


Help + Support Glossary

I'd like to see a glossary that lists all the issues and Help + Support terms that you find when creating an Azure ticket. There is a lot of items to chose from and the ability to link to a glossary would help. From a UI perspective, hovering over an item and providing an explanation would help our service desk as well.

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

ID: 7bb3e4b3-be5b-87f7-7d83-d62e98ccde78
Version Independent ID: fc9e170a-2fbd-5cec-dde0-2a71226d28fe
Content: Find help and open a support ticket - Azure Active Directory
Content Source: articles/active-directory/fundamentals/active-directory-troubleshooting-support-howto.md
Service: active-directory
Sub-service: fundamentals
GitHub Login: @msaburnley
Microsoft Alias: ajburnle

@vbrophy, Thank you for sharing you views. We are looking into this and will update the doc accordingly.

@msaburnley, Can you please take a look at this request and update the doc accordingly.

Hey @vbrophy,
This is a great idea. I have created a work item to include a glossary for help and support. I'm going to close this GitHub issue. Please let me know if you have any questions. Thanks!

#please-close

Hi Ajane,
Yeah, am creating a support process guide for our internal 3rd line support on how to create Azure tickets and was looking for a break down of what all the different options are in the dropdowns. Most of it is pretty straightforward, but for certain things the dropdown lists can be pretty long and I don’t expect our 3rd line support to readily understand all this stuff so I thought a glossary would help as opposed to writing an example for each and every possible scenario.
Appreciate it, thank you,
Vince
From: Ajane Burnley<EMAIL_ADDRESS>Sent: Tuesday, December 10, 2019 2:35 PM
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: Vince Brophy<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] Help + Support Glossary (#44160)
EXTERNAL: Do not click links or open attachments unless you recognize the sender and know the content is safe.

Hey @vbrophyhttps://urldefense.com/v3/__https:/github.com/vbrophy__;!!K6Tmtvzi_Q!kRrq3fB13-N12mceyUPghB66uThg1veWvBvD8GzOSBQ1Iyj-vg9v5PVS0CcEaz02$,
This is a great idea. I have created a work item to include a glossary for help and support. I'm going to close this GitHub issue. Please let me know if you have any questions. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/MicrosoftDocs/azure-docs/issues/44160?email_source=notifications&email_token=ANKFDX5R6VVTXIVVXDLZJILQYADPDA5CNFSM4JWDAZXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGRA7RA*issuecomment-564268996__;Iw!!K6Tmtvzi_Q!kRrq3fB13-N12mceyUPghB66uThg1veWvBvD8GzOSBQ1Iyj-vg9v5PVS0AExkYH8$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ANKFDX5BV3XUSDBLQBCRU73QYADPDANCNFSM4JWDAZXA__;!!K6Tmtvzi_Q!kRrq3fB13-N12mceyUPghB66uThg1veWvBvD8GzOSBQ1Iyj-vg9v5PVS0FadKnpt$.


How can I show as a secondary info an entity's state?

How can I show as secondary info an entity's state? I have my alarm panel's battery percentage (calculated through a template sensor). My mqtt sensor shows it in voltage, therefore I would like to have this info as secondary. Is this possible?

Not possible ATM - it will be possible in v3


Support concatenation of normalized strings

Fast fix at the fusion point to keep the resulting string normalized.

The higher level package https://github.com/ppelleti/normalization-insensitive addresses this.


Fix Git Push head_diff policy

what

Fix Git Push head_diff policy

why

head_diff is in input, not in input.push

/test all


Discussion around a Conditions api abstraction

This is about managing primary resource conditions not the dependent one.
Like with GenerationAware, there could be a ConditionsSetAwareStatus.
interface ConditionsSetAwareStatus {
    List<Condition> getConditions();
    void setConditions(List<Condition> conditions);
}

The idea is to have a manager for a ConditionType which is basically a wrapper around the condition property. The ConditionType will explicit a Ready condition type and dependent conditions type. When all dependent conditions are True, the Ready is True, False otherwise.
public class ConditionTypeSet
{
   private String readyConditionType;
   private String[] dependentsConditionType;
}

A manager would then use this ConditionTypeSet configuration and allow to manage the list of condition with a set of methods
public interface ConditionManager
{
    // add all conditions defined in the conditionSet
    Initialize();
   // set a condition to True and set the ready condition to True if all depedents are True
    SetTrue(String conditionType);
   // set a condition to False and set theready condition to False
    SetFalse(String conditionType);
   // some override of True/False to pass reason/message

   // some other method to get the Ready Condition, check wether Ready is True, etc... to allow for logging for eg
}

public class ConditionManagerImpl implements ConditionManager
{
    public ConditionManagerImpl (ConditionSet set, ConditionsSetAwareStatus status);
}

I think it can be used wisely with dependents. With the exemple given in https://github.com/java-operator-sdk/java-operator-sdk/issues/850, a status could be
conditions:
  - lastTransitionTime: 2022-02-04T00:00:00Z
    type: dep1
    status: TRUE
  - lastTransitionTime: 2022-02-04T00:01:00Z
    type: ser1
    status: TRUE
  - lastTransitionTime: 2022-02-04T00:02:00Z
    type: OtherResource
    status: FALSE
  - lastTransitionTime: 2022-02-04T00:02:00Z
    type: READY
    status: FALSE

I omit reason/message but they may be valued the same way.
I don't know how the ConditionTypeSet should be exposed. Should it be a getter on ConditionsSetAwareStatus. And maybe the Manager could then be made available from the context if the Resource implements the interface.
What do you think ?

thx for the issue @scrocquesel .
After the release of MVP the idea is indeed to go further and make next steps to automatically handle workflows. So I think managing conditions could be one of the features there. So we can revisit it that time.

FYI good article: https://maelvls.dev/kubernetes-conditions/

I don't see how this could be done elegantly. If you have any idea pls let us know,  closing this for now.


Jira user collection/enrichment/domainlayer

Description
Requirement from EE: collect user entity from jira and convert to domainlayer (need to consider user information merging)
Following fields are to be collected into jira_user and converted to domain layer entity user

project_id
nickname
email
avatar(url)
timezone

this domain layer is for supported ee chart Sprint Progress

PR merged, email problem would be addressed on another #582


Tested on the housing dataset with Paddle and Python plus numpy, respectively

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.孙千惠+18200100078 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Recover to Alternate location

When you fail back to an alternate location, the virtual machine is recovered to the same ESX host on which the master target server is deployed. The datastore that's used to create the disk will be the same datastore that was selected when reprotecting the virtual machine.
Alternate location Recovery, if the on-premise is gone, how do we recover to alternate location, if it need same ESXI host.
If the on-premise environment is gone, how do we re-protect from Azure to On-premise
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 184b093b-2478-1016-5655-4a2b279c0db3
Version Independent ID: a3f3ecc4-d13a-ff79-6391-81cd80b0e62c
Content: Failback during disaster recovery with Azure Site Recovery - Azure Site Recovery
Content Source: articles/site-recovery/concepts-types-of-failback.md
Service: site-recovery
GitHub Login: @ankitaduttaMSFT
Microsoft Alias: ankitadutta

@v-asymes
Thanks for your feedback! We will investigate and update as appropriate.

@v-asymes The phrase "When you fail back to an alternate location, the virtual machine is recovered to the same ESX host on which the master target server is deployed. The datastore that's used to create the disk will be the same datastore that was selected when reprotecting the virtual machine." makes sense  because If you're failing back to an alternate vCenter Server, make sure that the new vCenter Server and the master target server are discovered. Typically if they're not the data stores aren't accessible, or aren't visible in Reprotect. So failback will not be possible.
Refer to point 9: https://learn.microsoft.com/en-us/azure/site-recovery/vmware-azure-reprotect?source=recommendations#before-you-begin
Hope that clarifies!
Closing this for now. If there are still any questions, please tag me in your reply and we will gladly continue the discussion.


Hoping To Make the Topic For PolyExtended

Please confirm this pull request meets the following requirements:

I followed the contributing guidelines: https://github.com/github/explore/blob/main/CONTRIBUTING.md.
[ ] I am not the sole author or employee of a company who created the topic or collection I am changing.

Which change are you proposing?

[ ] Suggesting edits to an existing topic or collection
Curating a new topic or collection
[ ] Something that does not neatly fit into the binary options above

Editing an existing topic or collection
I'm suggesting these edits to an existing topic or collection:

[ ] Image (and my file is *.png, square, dimensions 288x288, size <= 75 kB)
[ ] Content (and my changes are in index.md)

Please replace this line with an explanation of why you think these changes should be made.

Curating a new topic or collection

[ ] I've formatted my changes as a new folder directory, named for the topic or collection as it appears in the URL on GitHub (e.g. https://github.com/topics/PolyExtended or https://github.com/collections/[NAME])
[ ] My folder contains a *.png image (if applicable) and index.md https://avatars.githubusercontent.com/u/143905551?s=200&v=4
[ ] All required fields in my index.md conform to the Style Guide and API docs: https://github.com/github/explore/tree/main/docs

Please replace this line with an explanation of why you think this topic or collection should be curated.

Something that does not neatly fit into the binary options above

My suggested edits are not about an existing topic or collection, or at least not a single one
[ ] My suggested edits are not about curating a new topic or collection, or at least not a single one
[ ] My suggested edits conform to the Style Guide and API docs: https://github.com/github/explore/tree/main/docs

Please replace this line with an explanation of your proposed changes.

aliases: polyextended, polyextend
display_name: PolyExtended
short_description: Tools and applications, for wherever you livestream
topic: PolyExtended

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

This is not an appropriate topic to curate, because it is specific to this project/product. Please read the contributing guidelines:

Avoid conflicts of interest. These should be of general community interest, not a marketing vehicle for a product or a personal project. If you are a direct employee of a company creating the project, or the creator and sole maintainer, it's unlikely to be accepted.


Web: support dragging file/files from desktop directly to editors

VSCode Version: 1.40.0-insider @ b7b2184
OS Version: Windows 10 (1903)

Steps to Reproduce:

Drag a file(s) from the desktop into the editor area
Expect that new editors would be open for the files dragged in, but nothing happens

If 2 can't happen, I would expect that there would not be drag feedback making it seem like it should work.

Does this issue occur when all extensions are disabled?: Yes
Ref: #83225

Now preventing to drop a local file into editor area as well as "open editors" view if running in web.


Spanish translation website

Context

Language: Spanish
Translator: no
Project: Website

requires #147

Hey I can snag this. Although I speak Spanish from Mexico (LATAM), would that be a problem?

Hey I can snag this. Although I speak Spanish from Mexico (LATAM), would that be a problem?

no  problem  at all :)  Thank  you!


--noImplicitAny behavior on 2.1.x

TypeScript Version:  >= 2.1.x
Code
// test 1 (the problem itself)
let x;              // no value assignment, so it's an any variable

x = 10;             // inferred as number
x = x + 5;          // valid operation
// but x remains as any, so...
x = 'rafael ' + x;  // perfect valid too
// but won't make any sense to me (see the explanation on discussion)
console.log(x);     // outputs: "rafael 15"
// I got an unexpected behavior here.
// The compiler didn't warn me about x being treated as a type any variable.

// test 2 (what I'm expecting from a typed variable)
let y = 10;         // inferred as number because of the value assignment

y = y + 5;          // valid operation
y = 'rafael ' + y;  // error: Type 'string' is not assignable to type 'number'.
// y is a number, so it can't be add to a string in this context (working as expected)

Run:
tsc --noImplicitAny code.ts
Expected behavior:
Raise error on declarations with an implied any type.
Actual behavior:
Don't raise any error and still let variables implicit declared as type any.
Discussion:
Reading the documentation, on Compiler Options it says:

--noImplicitAny
Raise error on expressions and declarations with an implied any type.

On the test 1 example x is still declared as any, so according to docs it should raise an error.
I have read the What's new for 2.1.
There is a mention about this on Improved any Inference. It says:

One great benefit of this is that you’ll see way fewer implicit any errors when running with --noImplicitAny.

I think this new "smart infer" like on the example below can be used as a default behavior as it alone is a good thing and don't affect anything else.
let x;

// You can still assign anything you want to 'x'.
x = () => 42;

// After that last assignment, TypeScript 2.1 knows that 'x' has type '() => number'.
let y = x();

// Thanks to that, it will now tell you that you can't add a number to a function!
console.log(x + y);
//          ~~~~~
// Error! Operator '+' cannot be applied to types '() => number' and 'number'.

// TypeScript still allows you to assign anything you want to 'x'.
x = "Hello world!";

// But now it also knows that 'x' is a 'string'!
x.toLowerCase();

Example extracted from What's New - TypeScript 2.1
However, in my humble opinion it is breaking the behavior of the old compiler option.
So, if you guys are planning leave it as it is right now, it at least should be added as new compiler option and leave --noImplicitAny as it was before.

However, in my humble opinion it is breaking the behavior of the old compiler option.

We generally don't consider producing fewer errors to be a breaking change. Is there a particular code pattern where you want an error, but didn't get one?

I think what he means is that something that was considered an error before, stopped being an error now. I agree with @navossoc that this could be kinda problematic if you really want to be sure that a variable is what it's intended to be.
I imagine this is done using AST analysis to infer the type of the variable and generates, but "noImplicitAny" for me (and the docs) means that you can't really have "any" unless specifiec.
A variable that is a string on line 1, and a number on line 2, its of type "any", even though on line one it's infered to be number, and on line 2 a string.

Hello @RyanCavanaugh ...
I'm not sure if I make myself clear here...

We generally don't consider producing fewer errors to be a breaking change.

I like the new way the compiler can help catch this errors and even produce "less errors" in some cases, I can't argue against that.

Is there a particular code pattern where you want an error, but didn't get one?
The first test case is a perfect example of it.
I have a variable of type any there and I want a error there.

As I said before, if the option is called noImplicitAny and the behavior on the docs says:

Raise error on expressions and declarations with an implied any type.

I want to be able to achieve that, but right now I just can't do it because the compiler option has another behavior.
I want to use that option to say to my myself:

Hey don't forget to type your variables matte. Be strict as possible!

@WoLfulus exactly, the variable still remains as type any, otherwise it would not be possible to assign a number then a string to it.

So what's key here is that you will still get an error if you use the variable in a way where we observe it as any. In that regard it's strictly "better" because it's only not-an-error in cases where the anyness wasn't used anyway. This removes the inconsistency that
let x = 10;
foo(x);

and
let x;
x = 10;
foo(x);

behaved differently.
If you want the "old" behavior, you can opt in to a TSLint rule that forces variable declarations to either have a type annotation or an initializer.

Ok, I agree to disagree here.
As you said:

So what's key here is that you will still get an error if you use the variable in a way where we observe it as any.

Then that documentation should be updated to reflect the new behavior.
To something like this:

--noImplicitAny
Raise error on expressions and declarations used with an implied any type.

At least do you agree with me on that?

Really --noImplicitAny is to "Raise an error when the compiler gives a declaration a type any implicitly".
This by definition means that the compiler can get "smarter" in the future and give less implicit any types, and thus less errors.

@mhegazy In my opinion, your sentence makes the purpose of the --noImplicitAny clearer.
I think this can be closed now...

If you want the "old" behavior, you can opt in to a TSLint rule that forces variable declarations to either have a type annotation or an initializer.

@RyanCavanaugh, what is that TSLint rule?

@F1LT3R I think he is probably talking about this one:
    "rules": {
        "no-unsafe-any": true
    },

https://palantir.github.io/tslint/rules/no-unsafe-any/
At least it is the only one I can think about.


chore: upgrade charts

updated chart jx3/jxboot-helmfile-resources from 1.0.37 to 1.0.38

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

Needs approval from an approver in each of these files:

OWNERS

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

@jenkins-x-bot-test: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

gsm-kapp
88b99d707bca9509dd17518ed8b9052866ae48d9
link
/test gsm-kapp

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

/retest


kRPC: Endpoints do not terminate when the transport does

Hello.
I don't know if it is an issue or not, but I definitely find it weird.
It seems like there is no way of telling when the client is disconnected like a status flow, or on disconnection lambda to register.
Right now when I consume flow and server goes away, the flow is now completed.
As a workaround I created my little helper flows (Also to maintain single client for my app), like so:
      internal val clientCoroutineScope = CoroutineScope(Job())

      internal val httpClientSharedFlow = channelFlow {
          val client = HttpClient { installRPC() }
          send(client)
          awaitClose {
              client.close()
          }
      }.shareIn(clientCoroutineScope, SharingStarted.WhileSubscribed(3.seconds), 1)

        internal sealed interface ClientState {
            data class Disconnected(val message: String) : ClientState
            data class Connected(val client: RPCClient) : ClientState
        }

        @OptIn(ExperimentalCoroutinesApi::class)
        internal val myServiceClientStateFlow = httpClientSharedFlow.flatMapLatest<HttpClient, ClientState> {
            val client = it.rpc {
                url("ws://<IP_ADDRESS>:3024/firstRoute")
                rpcConfig { serialization { json() } }
            }

            flow {
                emit(ClientState.Connected(client))
                client.coroutineContext.job.join()
            }.onCompletion {
                client.cancel()
                throw Throwable("Remote disconnected")
            }
        }.retryWhen { cause, _ ->
            repeat(3) {
                emit(ClientState.Disconnected("Error: $cause, retrying in ${3 - it} seconds..."))
                delay(1.seconds)
            }
            true
        }.stateIn(
            clientCoroutineScope,
            SharingStarted.WhileSubscribed(3.seconds),
            ClientState.Disconnected("Initial")
        )

        val uiClientStateFlow = myServiceClientStateFlow.map {
            when (it) {
                is ClientState.Connected -> "Connected"
                is ClientState.Disconnected -> "Disconnected - ${it.message}"
            }
        }

        @OptIn(ExperimentalCoroutinesApi::class, InternalRPCApi::class)
        val uiRpcFlow = myServiceClientStateFlow.transformLatest {
            if (it is ClientState.Connected) {
                streamScoped {
                    emitAll(
                        it.client.withService<MyService>().coldFlow(getPlatform().name)
                    )
                }
            }
        }.retryWhen { cause, attempt ->
            emit("Error - $attempt: $cause")
            delay(1.seconds)
            true
        }

I wonder if it is the intended use or am I missing something or should the interface or behavior change?
Thanks,
Shay Oinif

Hi, thank you for the question!
I'm not sure what do you want to do. If a client or a service disconnects, its corresponding CoroutineScope will cancel. If the there was an error with a flow request - it should throw.
There is no retry mechanism right now, that is true

I simply expected if a service goes away, that the flow I am consuming will end no matter on what coroutine scope I collect it.
In a normal shutdown, krpc protocol send an end message for all clients, but in case of unexpected crash, the coroutine scope of the backing - web socket with ktor krpc - end but the corresponding client flow doesn't, unless collected on the client's coroutine scope.

Hm, that sound not right. Would you be able to provide a reproducer for that behaviour, please?

Clone this:
https://github.com/ShayOinif/MyExample
It builds on your samples but with only jvm server and compose desktop.
On completion of flow it should print done.
If server is around till end if will print done.
If I stop the server process while client collecting the flow simply is stuck and not finished.

The same applies with single shot requests.
I can create client.
Connect to service through web socket with ktor krpc.
Once it succeeds, all operations simply stuck if server goes away.
They don't even throw.
Tell me if you want me to add to this repo a button to make a single shot request so you could see what happens if initial communication to server succeeds but then it goes away.

I can verify, that this is a bug, I'll rename the ticket

UPD: maybe ktor specific, see https://youtrack.jetbrains.com/issue/KTOR-7234/WebSocketSessions-job-does-not-complete-on-abrupt-closure

I guess it's specific to the webSocketSession then.
Anyway we also have the bug with flow cancellation, I verified without ktor, so it's two bugs in total

Oh, and also in your repro there is no invokeOnCompletion, which is the bug indicator. The channel completed ok, but the job does not, that's why I used invokeOnCompletion in the ticket

Any update on this?
Seems like 0.2.-2/3 got better in many areas, so kudos.
But from last attempts, seems that new requests simply get cancelation if web socket session ended, but existing flow still doesn't end.

And in general, I think exposing some api to know when backing web socket is connected would be great.
Right now I simply poll myself the connection and check that I didn't get cancelation exception on it (awkward).

OK, I see.
I guess then it is somewhat related, but for single shot rpc, if web socket session ended, you throw cancelation exception.
Any reason for that?
Inadvertently it makes calling code to get canceled as well.

And now I saw that you opened the issue for Ktor.
It is not quite accurate.
Client should be like this (and then it works):
    val ktorClient = HttpClient {
        install(WebSockets)
    }

    val session = ktorClient.webSocketSession(host = "localhost", port = 8080, path = "/test")

    session.coroutineContext.job.invokeOnCompletion {
        println("completed")
    }

    session.incoming.consumeEach {
        println((it as Frame.Text).readText())
    }

    session.coroutineContext.job.join()
    ktorClient.close()

Server easier to debug with this, but not a must:
        install(WebSockets)

        routing {
            webSocket("/test") {
                var i = 1
                while (true) {
                    delay(1.seconds)
                    outgoing.send(Frame.Text("test ${i++}"))
                }
            }
        }

But main take away from server is to install WeSockets plugin, not RPC plugin (This is your kotlinx-rpc plugin)


one to one SSE chat

This library accepts one to one SSE chat implementation (creating private rooms)??? Is it some example around it?
Thanks in advance,
Beka

This library is an implementation of Server-sent events. This is a low-level protocol that you could use to build any web application that streams data from a server to clients. Including a chat application.


ASF Crash on !stop

When I log in to my account from the phone or the Steam app on my laptop (also the Primary_Bot) and send the !stop command through the direct chat feature to my friend (Sub_Bot) it behaves in the following way:
!stop Sub_Bot = Stop OK
!stop Primary_Bot = ASF crash
It then requires me to start the ASF program as the process completely crashed.
I need to stop the Primary_Bot account in order to play on my laptop because ASF is running on PC.
System Specification:
ASF is running on:
Windows 10 x64 Professional (fully updated)
ASF commands are sent from:
Mobile App
Windows 10 x64 Professional (fully updated) Steam app

Log.

log - Error.txt
Apologies for the late reply, I was away and did not have access to the machine with the log file.
When I read through the log I can understand that my connection disconnects several times (I only have a 3G connection) but the log ends with the crash for the !stop command.

Issue is caused in SK2 codebase, so it's out of the scope of ASF, but it should be partially fixed in https://github.com/JustArchi/ArchiSteamFarm/commit/0c872b17e20ce15aa5a9f4226ea923a4dd3f2805

Let me know if you'll be able to reproduce this issue in ASF V<IP_ADDRESS>+

Just letting you know I am running the latest update and have not had any issues.
Thank you @JustArchi !

Nice to hear that, thanks :+1:


Fix new line issue

add the language to the code snippet decleration to fix new line issue

@MrRoundRobin : Thanks for your contribution! The author, @Rajeswari-Mamilla, has been notified to review your proposed change.

#sign-off


Create a staging slot to deploy to for zero-downtime

The runtime stack is still declared for the "production" slot so an incomplete deployment followed by a service restart doesn't take the service down. If not specified, the fact that we do a Complete deployment would mean that the configuration would be cleared when deploying, making the app fragile to a restart.
The app service doesn't change which version it's running unless it's restarted.
This situation might be improved by setting the main slot to use the currently live version explicitly, so configuration would match what's already live, though this wouldn't stop environment variable changes getting deployed. We could do this by querying the Azure API. I don't believe this is a good idea, however. It's better to deploy a complete configuration of the newest version accidentally than to deploy mixed configuration.
BEFORE MERGE: This requires changing both Azure DevOps deployment to (re)start the staging slot (possibly unnecessary, but it feels more reliable to be explicit), then swap staging to production.
Additional reading:

https://blogs.msdn.microsoft.com/mvpawardprogram/2017/05/16/deploy-app-azure-app-service/
https://ruslany.net/2015/09/how-to-warm-up-azure-web-app-during-deployment-slots-swap/

 Use slots to warm up app service changes without downtime


Syntax Error Grep Arguments

Need a "-" proceeding grep arguments.
https://github.com/eosnetworkfoundation/chicken-dance/blob/09496e7e9b2210d105b0a084f0b54dcc7d24fa13/replay-client/install-nodeos.sh#L7

resolved with pr #104


Failed to Deploy

** Please describe which feature you have a question about? **
Guys, We get this error on deploy.
2020-08-25T16:11:15 [INFO]: Updating Edge config
2020-08-25T16:11:16 [ERROR]: Failed to deploy
2020-08-25T16:11:16 [INFO]: Deployment finished.
I try increase BUILD_TIMEOUT, but no success.
** Provide additional details**

@brenofrodrigues There is an open bug currently which occurs when a total number of files for an app exceeds an internal limit.
We are actively working towards a solution for this and should have a fix live in the next few weeks.

Closing this issue as the fix for this bug is being tracked here #115
Please feel free to re-open if you think you are experiencing a separate issue. Thanks!


Handle large bodies

Environment

nuxt: 3.6.5
nitropack 2.5.2
h3: 1.8.0
listhen: 1.3.0

Reproduction

https://stackblitz.com/edit/nuxt-starter-hbwprt?file=app.vue,server%2Fapi%2Fupload.ts,server%2Fapi%2Fupload-formidable.ts
https://github.com/stafyniaksacha/nuxt-upload-reproduction

it seems that stackblitz apply restriction on some file upload
Describe the bug
When using readMultipartFormData from h3, request is written in a memory buffer, this result in OOM crash if uploaded file is greater than available memory max-old-space-size.
A solution would be to pipe the incoming data stream into a temp file, like formidable or busboy does.
Those libraries allow checking uploaded file size too, to prevent uploading large file.
The issue I have using those libraries is that it's impossible to write to the response after they have thrown (ex: send 413 Content Too Large error).
Additional context

#103

Logs
Uploading a zip file >1Gb (with readMultipartFormData) error:
#
# Fatal error in , line 0
# Fatal JavaScript invalid size error 169220804
#
#
#FailureMessage Object: 0x7f82a74fb230
 1: 0xbe70f1  [/home/stf/.nvm/versions/node/v18.15.0/bin/node]
 2: 0x1e4af64 V8_Fatal(char const*, ...) [/home/stf/.nvm/versions/node/v18.15.0/bin/node]
 3: 0xf0c8c8  [/home/stf/.nvm/versions/node/v18.15.0/bin/node]
 4: 0x10bbd92  [/home/stf/.nvm/versions/node/v18.15.0/bin/node]
 5: 0x10bc052  [/home/stf/.nvm/versions/node/v18.15.0/bin/node]
 6: 0x12cb06b v8::internal::Runtime_GrowArrayElements(int, unsigned long*, v8::internal::Isolate*) [/home/stf/.nvm/versions/node/v18.15.0/bin/node]
 7: 0x1707b79  [/home/stf/.nvm/versions/node/v18.15.0/bin/node]

Note that it sometime throw ERROR  [h3] write EPIPE

I think this might be rather an enahcenment to introduce:

Add options to allow limiting how much data to read

We might also consider supporting it in Nitro preset entries

Allow offloading to the disk (requires a simple storage interface as h3 does not has Node.js dependencies)

upcoming H3 v2 is based on web apis. Using event.request.body in Node.js also initiates a ReadableStream suitable for handling larger payloads.


DO NOT MERGE! Fast Forward stable to cd09a53824742219b7d14c12a8525cda0b30bbb0.

This PR will be merged automatically once checks are successful.

This change is

Jenkins job mixer/postsubmit passed


ADOT Documentation not working

Description
The ADOT documentation on the website is not working. Is this website maintained?
Reproduction Code [Required]
Visit the link: AWS Distro for OpenTelemetry, it does not work and just returns icons.
Steps to reproduce the behavior:

Expected behaviour
Clear documentation on how to use the add-on
Actual behaviour
Broken page
Terminal Output Screenshot(s)

The latest documentation is at https://aws-ia.github.io/terraform-aws-eks-blueprints/main/. If you want to see v5 documentation its at https://aws-ia.github.io/terraform-aws-eks-blueprints/v4.32.1/. EKS Observability related documentation is at https://aws-observability.github.io/terraform-aws-observability-accelerator/.

The latest documentation is at https://aws-ia.github.io/terraform-aws-eks-blueprints/main/. If you want to see v5 documentation its at https://aws-ia.github.io/terraform-aws-eks-blueprints/v4.32.1/. EKS Observability related documentation is at https://aws-observability.github.io/terraform-aws-observability-accelerator/.

Can we retire/302 redirect from the old website then? It is quite misleading.


Ajuste da tradução do termo React

Ajuste da tradução do termo React. Não acho que seja necessário traduzir o termo "React" para "Reagir".

[x] I have read freeCodeCamp's contribution guidelines.
[ ] My pull request has a descriptive title (not a vague title like Update index.md)
[ ] My pull request targets the master branch of freeCodeCamp.
[ ] None of my changes are plagiarized from another source without proper attribution.
[ ] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for your contribution and happy coding!


Clean up log listener socket during shutdown

During shutdown, we should close the logging sockets and wait for them to close before continuing.
This avoids an ObjectDisposedException thrown while resolving loggers in the socket logging loop after the IServiceProvider has been disposed.
cc @danegsta
Microsoft Reviewers: Open in CodeFlow

/azp run


[Question] VM stuck in starting, insufficient devices.kubevirt.io/kvm

I have a 1 node harvester cluster. I tried to create a new VM using openSUSE Leap 15.4 in the default namespace
When I try to start it, it becomes stuck in "Starting" state and in kubectl I see these 2 events when I describe the pod
Warning  FailedScheduling  2m38s (x3 over 2m49s)  default-scheduler  0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims. preemption: 0/1 nodes are available: 1 Preemption is not helpful for scheduling.
Warning  FailedScheduling  2m33s                  default-scheduler  0/1 nodes are available: 1 Insufficient devices.kubevirt.io/kvm. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod.
I couldn't find much info on the issues for these 2 events, could I get some help in how to fix them?
I also see two errors elsewhere in the UI
In Hosts - the disk state says "Warning" - Host has unready or unschedulable disks
and in Volumes - the VM's volume says "Not ready" - Disks are unavailable

Can you share how to enable virtual nesting?
I use pve and install two haverster node. Same issue @thooooooomas

Can you share how to enable virtual nesting?
I use pve and install two haverster node. Same issue @thooooooomas

this was on google cloud platform so may not apply to your case, sorry for late reply


Add adios2 git lab actions

I think this will not work due to limitations on memory or disk space.
I would recommend to pull a docker image instead. See https://github.com/tlestang/test_adios_docker/blob/main/.github/workflows/test.yml

This PR is closed since the testing of ADIOS within the CI will be done on the Actions/Runner and not with the Actions on GitHub


Plugin seem to not read my init.lua

my init.lua is as follow:
`
local opts = { noremap = true, silent = true }
local term_opts = { silent = true }
-- Shorten function name
local keymap = vim.api.nvim_set_keymap
--Remap space as leader key
keymap("", "", "", opts)
vim.g.mapleader = " "
vim.g.maplocalleader = " "
-- Modes
--   normal_mode = "n",
--   insert_mode = "i",
--   visual_mode = "v",
--   visual_block_mode = "x",
--   term_mode = "t",
--   command_mode = "c",
-- Normal --
-- Better window navigation
keymap("n", "", "h", opts)
keymap("n", "", "j", opts)
keymap("n", "", "k", opts)
keymap("n", "", "l", opts)
-- Resize with arrows
keymap("n", "", ":resize -2", opts)
keymap("n", "", ":resize +2", opts)
keymap("n", "", ":vertical resize -2", opts)
keymap("n", "", ":vertical resize +2", opts)
-- Navigate buffers
keymap("n", "", ":bnext", opts)
keymap("n", "", ":bprevious", opts)
-- Move text up and down
keymap("n", "", ":m .+1==gi", opts)
keymap("n", "", ":m .-2==gi", opts)
-- Insert --
-- Press jk fast to exit insert mode
keymap("i", "jk", "", opts)
keymap("i", "kj", "", opts)
-- Visual --
-- Stay in indent mode
keymap("v", "<", "<gv", opts)
keymap("v", ">", ">gv", opts)
-- Move text up and down
keymap("v", "", ":m .+1==", opts)
keymap("v", "", ":m .-2==", opts)
keymap("v", "p", '"_dP', opts)
-- Visual Block --
-- Move text up and down
keymap("x", "J", ":move '>+1gv-gv", opts)
keymap("x", "K", ":move '<-2gv-gv", opts)
keymap("x", "", ":move '>+1gv-gv", opts)
keymap("x", "", ":move '<-2gv-gv", opts)
-- Terminal --
-- Better terminal navigation
-- keymap("t", "", "<C-\>h", term_opts)
-- keymap("t", "", "<C-\>j", term_opts)
-- keymap("t", "", "<C-\>k", term_opts)
-- keymap("t", "", "<C-\>l", term_opts)
and I have set the @ext:asvetliakov.vscode-neovim > Neovim Executable Paths: Win32 as such  I cannot use the jk ` to normal mode as it set, anyone else having the same problem?

Check this in README: https://github.com/vscode-neovim/vscode-neovim#composite-escape-keys

Check this in README: https://github.com/vscode-neovim/vscode-neovim#composite-escape-keys

the <A-j> does not work as well, is that to be expected?

Have you tried explicitly adding the VSCode keybinding for it? https://github.com/vscode-neovim/vscode-neovim#adding-keybindings ?
Shortcuts are not forwarded to nvim by default.

the <A-j> does not work as well, is that to be expected?

Are you sure that isn't mapped in vscode already?
There are no repro steps here, not going to play 20 questions.


Add missing uint32_t parameters to src/app/encoder.cpp

Problem
uint32_t parameters were not generated.
Summary of Changes

generate them

@BroderickCarlin @jelderton @hawk248 @saurabhst ?


Update Manual.md

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] Unit Tests
[ ] PEP 8 Formatting Validation

Looks good to me, I don't have write access to the repository, so I guess my review doesn't count for merge.


Enable to create the instance of PayPayRestSDK

https://github.com/paypay/paypayopa-sdk-node/issues/188#issuecomment-794421323
All Submissions:

[ ] Have you followed the guidelines in our Contributing document?
[ ] Have you read and signed the automated Contributor's License Agreement?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

[ ] Does your submission pass tests?
[ ] Have you lint your code locally prior to submission?

Changes to Core Features:

[ ] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your core changes, as applicable?
[ ] Have you successfully ran tests with your changes locally?

@tilfin May I request you to please read the CLA and sign (click on the CLA bot comment above to read and agree to the same)


Create Shutdown script for Zoonotify

@dptolle commented on Wed Sep 30 2020
See jenkins/zoonotify/jobs/zoonotify-shutdown
TODO: Requires Zoonotify HOST servers and support email address

Already done


Mobile Verifier Unverified Person proof not working even though Holder has an Unverified Person Credential

Description of problem
Holder with an unverified person credential from https://openvp-candy-issuer-test.apps.silver.devops.gov.bc.ca, and the verifier with "use development verifier templates" turned on.
Scan the QR code from the verifier for any of the unverified person proof, holder wallet says the credential is "Not available"
Expected behavior
Any Unverified person credential can fulfill the proof.
Steps to reproduce
Screenshots and/or log output
Environment

[x] Occurs on Android (holder)
[x] Occurs on iOS (verifier)

Build #: 1087
Android Device Model:  UMIDIGI A3S Android 10
iOS Device Model: iPhone 6S iOS 15.7.1
Workaround
None
Severity

[ ] High
[x] Medium
[ ] Low

The proof request template "Unverified Person full name and Birth date" doesn't work with any un-verified person credential (tried person credential from demo and prod showcase and revocable unverified person credential)

Verified fixed on build 1179. Closing.


Resume an experiment

Is your feature request related to a problem? Please describe.
If an experiment stops due to some reason (network issue etc which causes yival to terminate), we lose all the experiment results, and have to run it again. This would be costly when we are running gpt-4 based evaluation for many data points.
Describe the solution you'd like
Save the experiment state and results on disk when running experiment, and add the ability to resume the experiment to yival.
Describe alternatives you've considered
It might help if we keep a cache of LLM calls. But I think a cache is not always favorable as sometimes we want LLM to generate new output on every request.

get , good idea!
we'll thinking on how to resume an experiment


Edit file-extensions list in Syntax Coloring dialog

The Syntax Coloring dialog is great but we still have to edit the XML file to add/remove file extensions that are mapped to a particular syntax.
Edition within the Syntax Coloring dialog would be ideal.

Will be managed somehow in the UI as in #627.


README typo

In the section Profiles, creating with profile file should pass codetainer-config-id in the request, not container-config-id.

fixed


Massage data in new pipeline

Mentioned by @darkk in https://github.com/TheTorProject/ooni-pipeline/pull/62:

[ ] scripts to manage redundant copies of data in Amazon S3
[ ] check mismatches between sanitized and autoclaved
[ ] re-run whole pipeline as shovel:0.0.6 had a bug possibly producing duplicates at features table on two successful executions of centrifugation.py with same arguments (no idempotence here)
[ ] check if any reports/measurements were lost due to JOIN instead of LEFT JOIN on metadata tables

mismatches between sanitized and autoclaved

There are some mismatches still left, but they're minimal and it was considered (long time ago) that those are irrelevant.
Everything else was done as a one-shot (natural/left joins have actually caught an interesting case of an empty report: 220417f8aa57360fcb94eae2e1d6caf7d48a36b2). Maybe there should be some monitoring code comparing the number of reports & measurements submitted to collector with the number ingested by the pipeline, but that's unclear to me.
I think this issue may be closed now.


Multi Chart Support

What do you mean with 'multi chart'? Many lines on same chart view? Or support other kind of chart (like bar chart)?

Multiple carts meaning to compare 2 line charts 🙂

Closed? Why?


Add more wave colors

Fixes #76
Changes
art.py

add new wave color white
add bold versions of existing wave colors

help.txt

update Color Options section to include newly added wave colors

Hey @SeanAverS, looks great! However, the linter is failing... can you run make format and make lint to make sure these are resolved? (if you don't have make installed, use the commands in the makefile)
You can ignore Pytest failing for Windows, thats an unrelated issue

Sorry for the delay. Here are the test results. Let me know if you there's anything else that needs to be done and i'd be happy to help with it.

Hey @SeanAverS,
Good work! I like the bold colors, I think I'll use them myself going forward.
One last thing - you commited the .python-version file, which we don't need. Can you remove that from the PR? Once that happens, I'll merge your changes.
Bonus points if you add .python-version to the .gitignore!

@all-contributors please add @SeanAverS for code


How do I create a NSG and associate it with my Subnets in hub VNet?

I want to know a way how can I create NSG's in my connectivity.settings.tf file under configure_connectivity_resources local block. I tried few ways but it's not resulting in any output related to NSG's in terraform plan command.
I have referred https://github.com/Azure/terraform-azurerm-caf-enterprise-scale/blob/main/modules/connectivity/locals.tf, however couldn't find much information on the topic. I don't want to disable the policy of creating the subnet without NSG and need NSG in my environment.
Code snippet for creating the NSG:

@matt-FFFFFF @krowlandson Kindly guide on how to create NSG's in landing zone.

Hi!
Please see the documentation for the configure_connectivity_resources.
There is no capability to create NSGs with this module.
https://github.com/Azure/terraform-azurerm-caf-enterprise-scale?tab=readme-ov-file#input_configure_connectivity_resources

Hi @matt-FFFFFF,
Thanks for confirming it.
Then what is the best way to create NSG's and associate with Subnets that are being created as part of Landing zone through terraform?

Create the NSGs outside the module in the normal way. Use the module outputs to obtain the resource group ids.

Good to close the issue.


Gh 2761 federatedstore federated operation merge mapping

Related Issue

Resolve #2761

Codecov Report

:exclamation: No coverage uploaded for pull request base (v2-alpha@e892bbe). Click here to learn what that means.
The diff coverage is n/a.

:exclamation: Current head bf958e1 differs from pull request most recent head ed8a4ff. Consider uploading reports for the commit ed8a4ff to get more accurate results

@@             Coverage Diff             @@
##             v2-alpha    #2797   +/-   ##
===========================================
  Coverage            ?   69.17%
  Complexity          ?      487
===========================================
  Files               ?       78
  Lines               ?     1502
  Branches            ?      119
===========================================
  Hits                ?     1039
  Misses              ?      380
  Partials            ?       83

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


[azservicebus] Recreate the ATOM client using the autorest generator

The ATOM client in the azservicebus package was generated from an older client, and is not standardized like the rest of our autogenerated libraries (for instance, it has it's own "custom" retry policy, etc..).
We need to regenerate this, based on the swagger for the API.
My first pass at this has shown that it does generate some parts of the client correctly. This has been done in Python and Java, so this might be a case of some limitation of our current autorest generator.
Swagger link: sb-swagger
If the generation is correct, it should fix:

[ ] #15972 (make pagers recreatable),
[ ] #15917 (add support for MaxMessageSizeInKilobytes)
[ ] #16692 (missing fields in data models)
[x] #16045 (manage subscription rules in the ATOM client)

At this point we're far past GA. Regenerating might have some utility now but it's far less needed than it would have been before. Closing for now.


Fix types in README

Thank you for your contribution!
Please make sure to send your Pull Request to the develop branch.

We've got our message!!

Good spot..


implement standalone version

I'm interested to in your pom visualization (the standalon one without yuml dependencies)
http://www.alternatecomputing.com/node/11
Will you upload it (as a branch) to your existing github repo? I have already forked
https://github.com/albfan/jschnizzle
but want to ask you before implementing changes mentioned on your post.

Alberto,
The pom visualization is simply a python script that uses the Maven
dependency plugin, Graphviz and Image Magic to generate the diagram.  The
python script is here:
http://www.alternatecomputing.com/static/pomViz.py
The python script needs a minor change to get it to work with the latest
versions of Maven.
The pom visualization is separate from the JSchnizzle project.  It was more
of an experiment to see what is needed to generate diagrams locally
(instead of using yuml.)  I have not started on implementing the "offline
rendering engine".  If you're interested in contributing code, please let
me know.
Thanks.
David Golpira
President / CTO
Alternate Computing Solutions Inc.
<EMAIL_ADDRESS>http://www.alternatecomputing.com/
On Fri, Sep 4, 2015 at 5:55 AM, Alberto Fanjul<EMAIL_ADDRESS>wrote:

I'm interested to in your pom visualization (the standalon one without
yuml dependencies)
http://www.alternatecomputing.com/node/11
Will you upload it (as a branch) to your existing github repo? I have
already forked
https://github.com/albfan/jschnizzle
but want to ask you before implementing changes mentioned on your post.
—
Reply to this email directly or view it on GitHub
https://github.com/golpira/jschnizzle/issues/1.

That's enough. Just want to be sure I do not the job twice.


Test

Describe the bug, including details regarding any error messages, version, and platform.
This is a test issue
Component(s)
Continuous Integration

take

take


fix: Accepted swaps appearing in wrong filters

Bug Report
Swaplace version
9ebb99f
Current behavior
When accepting a swap in the Offers page, the swap changes its expiry date to 31 dez 1969 and it shows in the filter All Offers

Expected behavior
The accepted swap should not appear in other filters than the accepted filter
Steps to reproduce

Accept a swap
Check it in the All Offers filter

Closed by #373


Request for new features

Hello Thank you for your job. I think it's very pretty and smart.
Could you add follow features:

Web page for resume all watering info
A dummy rain stop switch in case of not forecasted rain (this night happened)
Possibility to set different number of cycles for each zone

Thank you

@MTry Please could you add features UP?

web page with follow info for each zone (Homebridge IP:XXXX)

Day
Zone name
Start watering
Stop watering
Duration

VIrtual rain sensor
In case of forecast rain fails the dummy (connected to automation) could allow watering

Custom cycles
Possibility add a custom number of watering

I hope in your reply
Thank you


add version sub command

Add go mod and version subcommand to display the version of the CLI that is currently installed.
Command : gofr-cli version

Linter needs to be added.

Yeah, the github pipeline will be added in the next PR


Hello, there are some errors in the code.

Hello, thank you for your code sharing, I think it will be very helpful for me.
But I found some errors in the code:
SentenceParser.cs(114,79): error CS0246: The type or namespace name 'FirstOrderLogicParser' could not be found (are you missing a using directive or an assembly reference?)
SentenceParser.cs(74,48): error CS0246: The type or namespace name 'FirstOrderLogicBaseVisitor<>' could not be found (are you missing a using directive or an assembly reference?)
SentenceParser.cs(3,42): error CS0234: The type or namespace name 'Antlr' does not exist in the namespace 'SCFirstOrderLogic.SentenceCreation' (are you missing an assembly reference?)
Also, the FirstOrderLogicLexer is not found.

Hello! No problem!
So, what appears to have gone wrong here is that ANTLR has failed to generate some source code from the grammar file in the solution. What is supposed to happen is that a target added by the Antlr4BuildTasks NuGet package processes the FirstOrderLogic.g4 file (in SentenceCreation) to output the source code for the classes you mention here. Then they get compiled along with everything else - ultimately giving you the SentenceParser.Parse("∀ x, ..") functionality.
I have explicitly excluded these generated files from the repo (see the top of the .gitignore file) because they shouldn't need to be checked in - the grammar file and the ANTLR setup in the project file should suffice for them to be generated for you whenever you build. If I need to, I suppose I could be persuaded to add them to the repo so that it doesn't matter if the ANTLR build task isn't working for you - but of course this wouldn't anyone who wants to play with the grammar definition - so it's not my preferred solution.
Could I possibly ask you for some more information? I'm looking for any errors that the ANTLR build task produced in the build output. I can give in-depth instructions if you need them, but, if you are using build output verbosity of at least "normal", very early in your build output you should see a line that reads 1>Target Antlr4Compile:. Below that, there will be output from it trying to generate these classes. I strongly suspect that you will see some errors here.
As mentioned in the README, ANTLR is ultimately a Java tool - so it might need to download an instance of the "Java Runtime Environment" in order to run it. My initial guess is that something is going wrong with that - an access failure or somesuch. To be clear, what this will help me decide is if I can just add some more content to the readme to help people like you get ANTLR working, or if I should just add the latest generated files to the repo (which as mentioned above, is not a "complete" solution).

Hmm. Actually, I've just been experimenting with this and noticed something..
If you do a full rebuild (i.e. "Rebuild" instead of "Build" if you're using VS, or include "--no-incremental" if you're using the CLI), does it work then?

Oh, I think I got it. Thank you for your fast reply.
I just use the code in one of my Unity (a game engine) projects, so I don't open the solution but just copy the code to the Unity project folder.
I am not familiar with ANTLR, I am not sure how to use it in Unity.
If you are familiar with Unity, could you offer some advice on getting your code into Unity, if possible?
Thank you so much!

Please forgive me if I don't make myself clear, my English is not good.

Thank you very much, I have solved the problem!
------------------ 原始邮件 ------------------
发件人: "Simon @.>;
发送时间: 2023年5月31日(星期三) 晚上8:20
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [sdcondon/SCFirstOrderLogic] Hello, there are some errors in the code. (Issue #1)
Hmm. Actually, I've just been experimenting with this and noticed something..
If you do a full rebuild (i.e. "Rebuild" instead of "Build" if you're using VS, or include "--no-incremental" if you're using the CLI), does it work then?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Glad to hear it. Good luck, have fun!
(Closing as not an issue)


Change Tags format

I realised there might be some confusion regarding the tags.
Should it be case:

[#/TAGS...]...

means that each tag can have multiple words but to have multiple tags it should be
add task #/hello world #/bye
so task is in the group hello world and bye

[#/TAGS...]

allow each tag to only have one word
add task #/hello world
so task is in group hello and world

Alternate interpretation of 2

each tag can have multiple words but one task can only have 1 tag
add task #/hello world
task is in group hello world.

[#/TAGS]...

each tag is single word
add task #/hello #/world
task is in group hello and world

Overwhelming vote to 1

@cadmusthefounder it's called unanimity

Implemented. Can I close this issue now or do you still need it for the docs?

can close alr


feat: create open api spec on build

Description
Generate open api spec on build of the issuer service
Why
To align with TRG 1.08
Issue
#64
Checklist

[x] I have followed the contributing guidelines
[x] I have performed IP checks for added or updated 3rd party libraries
[x] I have created and linked IP issues or requested their creation by a committer
[x] I have performed a self-review of my own code
[x] I have successfully tested my changes locally
[x] I have added tests that prove my changes work
[x] I have checked that new and existing tests pass locally with my changes
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added copyright and license headers, footers (for .md files) or files (for images)

This PR will fail until https://github.com/eclipse-tractusx/portal-backend/pull/1030 is merged, until than it only works with building the nuget packages locally


Expected valence violations do not raise

Describe the bug
There are a number of cases from https://github.com/rdkit/rdkit/issues/6242 where RDKit does not flag an expected valence violation:
"[C+5]",
"[C+](C)(C)(C)C",
"[C](C)(C)(C)C |^1:0|",  //  pentavalent due to unpaired electron
"[H+] |^1:0|",  // same as [H]
"[H+] |^2:0|",  // non-physical radical count
"[H-2]",
"[He+]",
"[He+2]",
"[He][He]",
"[O+7]",
"[F+2]",

To Reproduce
See this test: https://github.com/rdkit/rdkit/blob/560e11e25719303c34ce63f701903c041c2f273c/Code/GraphMol/test1.cpp#L1624

Has the bug been fixed?


Issue with org mode

I just installed nikola and enabled the org mode plugin but its not working.
nikola build
Scanning posts........done!
.  render_archive:output/2016/index.html
.  render_posts:timeline_changes
.  render_posts:cache/posts/fetch-jira-summary-from-jira-id-under-cursor-with-emacs.html
Loading 00debian-vars...
Loading /etc/emacs/site-start.d/50autoconf.el (source)...
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...
Loading /etc/emacs/site-start.d/50python-docutils.el (source)...
Cannot fontify src block (htmlize.el >= 1.34 required)
Saving file /tmp/nik/do_blog/cache/posts/fetch-jira-summary-from-jira-id-under-cursor-with-emacs.html...
Wrote /tmp/nik/do_blog/cache/posts/fetch-jira-summary-from-jira-id-under-cursor-with-emacs.html
########################################
TaskError - taskid:render_posts:cache/posts/fetch-jira-summary-from-jira-id-under-cursor-with-emacs.html
PythonAction Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/doit/action.py", line 372, in execute
    returned_value = self.py_callable(*self.args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/nikola/post.py", line 489, in compile
    self.is_two_file),
  File "/tmp/nik/do_blog/plugins/orgmode/orgmode.py", line 75, in compile_html
    post = self.site.post_per_input_file[source]
AttributeError: 'Nikola' object has no attribute 'post_per_input_file'

Any ideas on why, i created the file with nikola new_post and have no other files yet.

You are probably running an ancient version of Nikola. Please upgrade.

Okay i will try using from master, I am currently on 7.6.4 from an apt repository

Just install from pip in a virtualenv. The Debian package is unsupported.

yeah I have installed via pip, may use docker image or build my own if yours does not container org mode.
that's for another day, thanks for the help :)

Installing with pip in a virtualenv is the way we recommend the most for ease of use; using OS packages is also fine as long as they aren’t outdated by 14 months.


Inspector high severity findings on this solution's Lambdas

Describe the bug
AWS Inspector detects high severity findings on the Lambdas deployed by this solution
To Reproduce
Enable Inspector and watch the output
Expected behavior
AWS to patch and maintain libraries used in the Lambdas
Please complete the following information about the solution:

Version: v.2.6.0
Region: eu-central-1

Additional context

Name: StateMachineLambda
File path: codebuild_scripts/merge_baseline_template_parameter.py
Line: 28, 47, 99
CWE-22 - Path traversal: Constructing path names with unsanitized user input can lead to path traversal attacks (for example, ../../..) that allow an attacker access to file system resources.

Name: StateMachineLambda
File path: config_deployer.py & cfct/lambda_handlers/config_deployer.py
Line: 47
CWE-409 - Zip bomb attack: Expanding input archive files without any validation could make your code vulnerable to zip bomb attacks, which could potentially cause denial of service (DoS). We recommend that you sanitize input archive files before extracting them.

Name: CustomControlTowerLELambda
File path: codebuild_scripts/find_replace.py
Line: 28, 47, 99
CWE-22 - Path traversal: Constructing path names with unsanitized user input can lead to path traversal attacks (for example, ../../..) that allow an attacker access to file system resources.

Name: CustomControlTowerLELambda
File path: config_deployer.py & cfct/lambda_handlers/config_deployer.py
Line: 47
CWE-409 - Zip bomb attack: Expanding input archive files without any validation could make your code vulnerable to zip bomb attacks, which could potentially cause denial of service (DoS). We recommend that you sanitize input archive files before extracting them.

@RutgerBeyen thank you for reaching out
Please may you update to CFCT v2.7..2 and check if that resolves the findings for you?

The referenced findings (CWE-22 and CWE-409 in various files) are resolved through CfCT release v2.7.2.  Thank you for the report!


window.devToolsExtension is deprecated in favor of `window._REDUX…

…DEVTOOLS_EXTENSION__`, and will be removed in next version of Redux DevTools
Changing the 'devToolsExtension' to 'REDUX_DEVTOOLS_EXTENSION' in light of deprecation in the next version of redux devtools

Any news regarding this? My OCD wants this warning to go away. Thanks


SignalR support

Will this client work with signalR on the back-end side?

I have never used signalR, so I can't say. From the quick search I did, it can use WebSockets as a transport, so Starscream could help you get started build a SignalR iOS library if there isn't one already. I would suggest searching Github and seeing if there is already a SignalR library to use or using Starscream to write your own.

Hey @lehovsepyan did you end up trying this out? My server team is about to start using SingalR and I was wondering if I will be able to use this or not.


istio policy bot repeatedly closes things that have been reopened

https://github.com/istio/istio/issues/6593

I think this was fixed.


It doesn't work for vite 4.0.0

[v0.0.7-beta.0] doesn't work for vite 4.0.0.
Rollback to ^0.0.5-beta.6 is OK

[v0.0.7-beta.0] doesn't work for vite 4.0.0. Rollback to ^0.0.5-beta.6 is OK

Thanks for your feedback, I'll take a look😉

@velly  Can you provide the Error info or a minimal reproduction,  thanks!

ok the issues was fixed.

ta.1 to resolve this issue.

Thank you liulinboyi, and take care of yourself.


Custom Certs changed since Ubuntu

https://github.com/elastic/synthetics/issues/170
Step 5/6 : RUN update-ca-certificates
 ---> Running in 108d98caecbe
Updating certificates in /etc/ssl/certs...
1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.

:grey_exclamation: Build Aborted

Either there was a build timeout or someone aborted the build.

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Start Time: 2022-02-07T13:12:58.275+0000

Duration: 29 min 57 sec

Test stats :test_tube:

Test
Results

Failed
0

Passed
144

Skipped
2

Total
146

:robot: GitHub comments
To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.


Parent directives options dont seem to work

When trying to set datepicker-options on this extension the original functionality doesnt seem to work... ie setting a minDate with
scope.options = {minDate: new Date()}

doesnt work...
Im not sure if theres some additional logic in the linking that needs to be added?
Ill look into it and see if i can find out unless anyone else knows?

Can you post a demo? This directive shouldn't affect datepicker-options.

I have the same issue. Trying to make weeks start from monday with
datepicker-options='{startingDay: 1}'
, but they still start from sunday.

As I said, I need to see a demo to help. It works fine for me:
http://plnkr.co/edit/4xgeDQ?p=preview

I'm not able to show a demo but I do have the same issue in my project. datepicker-options='{startingDay: 1}' is just ignored.
One thing that might be related, I can't use the uib-datepicker directive:
<uib-datepicker ng-model="activeDate" multi-select="model.days" show-weeks="false" min-date="minDate" datepicker-options="{startingDay: 1}"></uib-datepicker>

won't show anything
If I use datepicker instead, it works fine, with multiselect, etc.
Do you have any idea of what might cause this behavior? Any conflict with original datepicker or something?
FYI:
"angular": "1.5.6",
"angular-ui-bootstrap": "1.3.3",
"gm.datepickerMultiSelect": "gm.datepicker-multi-select#1.0.10"

Thanks!

If you can't show a demo, I can't help.
See my plunk above for a working example with startingDay and uibDatepicker.


Added option to fail if no tests are run

I was having an issue where errors thrown by my test.html would cause mocha tests to not run.
This would cause my CI to report a successful build, perhaps incorrectly.
This PR adds an option failOnNoTests which will cause the task to fail if no tests are run.

Might be nice to have the option, but default to true?


Multiple multi-line comments leads to parts of a file going missing

MWE:
{- First line comment needs to be here -}

bad : Int
bad = |1|

{- Break -}

ok : Int
ok = 1

This type checks. If you look at the debugger, what is happening is that the first (bad) definition is not even being parsed. Instead the AST contains just the second (fine) definition.

Quick fix during my break from my Haskell day job :)


Send USDC on Solana network

Hi there!
I got an issue when trying to send USDC on Solana network
Source code for create transaction:
`async function transactionItem(fromKeyPair: solWeb3.Keypair, toAddress: string) {
const toPubKey = new solWeb3.PublicKey(toAddress)
if (tokenInfo.symbol === SOL_SYMBOL) {
  // send SOLANA token
  return new solWeb3.Transaction().add(
    solWeb3.SystemProgram.transfer({
      fromPubkey: fromKeyPair.publicKey,
      toPubkey: new solWeb3.PublicKey(toPubKey),
      lamports: solWeb3.LAMPORTS_PER_SOL * +(amount || 0),
    })
  )
} else {
  // send other tokens Example: USDC
  const mint = new solWeb3.PublicKey(`${tokenInfo.address}`)

  const fromTokenAccount = await splToken.getOrCreateAssociatedTokenAccount(
    SOL_CONNECTION,
    fromKeyPair,
    mint,
    fromKeyPair.publicKey
  )

  const toTokenAccount = await splToken.getOrCreateAssociatedTokenAccount(
    SOL_CONNECTION,
    fromKeyPair,
    mint,
    new solWeb3.PublicKey(`${toAddress}`)
  );

  return new solWeb3.Transaction().add(
    splToken.createTransferInstruction(
      fromTokenAccount.address, // source address
      toTokenAccount.address, // dest address
      fromKeyPair.publicKey,
      Number(amount)*Math.pow(10, tokenInfo.decimals),
      [],
      undefined
    )
  )

}

}`
Response ERROR: [RangeError: Maximum call stack size exceeded.]
Evirontment:
"react-native": "0.68.2",  "@solana/spl-token": "0.2.0"<EMAIL_ADDRESS>"1.35.1",
In this case, it onlu able to send Solana but not for USDC. I try to upgrade solana/web3.js to 1.44.0 but still got same error.
I'm also try a lot of solution but nothing can help. Please help this case. Thanks a lot

Hi there, we don't use GitHub for support! Instead we invite you to ask a question on StackOverflow with the "solana" tag or join us on Discord in #developer-support https://discord.gg/solana.
To quickly answer your question, there's probably an issue in the amount parameter, so it's creating something too big.  More info at https://stackoverflow.com/questions/22123769/rangeerror-maximum-call-stack-size-exceeded-why


Extract selection set fields into an IEnumerable

Greetings lads,
Not sure if this has already been implemented?
I am trying to extract all the selected direct fields inside the resolver so that I can optimize my SQL queries with only the requested fields. I only need original field names (not aliases), but this should be after resolving all fragments.
Any clue how this can be implemented? Or planned for future release?
Here is a similar library for JS folks:
https://www.npmjs.com/package/graphql-fields
Turns GraphQLResolveInfo into a map of the requested fields.
Flattens all fragments and duplicated fields into a neat object to easily see which fields were requested at any level.
Takes into account any @include or @skip directives, excluding fields/fragments which are @include(if: $false) or @skip(if: $true).

Thank you.

I believe what you are looking for is being implemented in #1446, assuming you are using the IQueryable type to optimize the SQL query.  If you want to get the fields directly, this can be done with the CollectFields method.  The mentioned pull request uses CollectFields and translates it to a visitor, while my example at https://github.com/TheJayMann/HotChocolate/blob/master/HotChocolate.Types.Projections/QueryableProjectionMiddleware.cs iterates over the results recursively storing them in a tree structure.

Hi @TheJayMann. Thank you for your reply.
Yes, I need to get the list of all child fields selected within the currently resolving parent field.
Also, this needs to include fields from fragments and exclude skipped/ignored fields.
When do you think this feature will be available?

@geekox86 it is in the latest 10.4 preview
@TheJayMann  it would be cool when you can give it a go and  give us feedback :)

@PascalSenn Awesome! I am using v11-preview.106
Is it also available in this version?
Would you please give some hints on how to use it? Which class at least?

@geekox86  it's not yet available in 11 previews. In 11 it will work differently :)
In 10.4 previews you can either do
descr.Field(x=>x.Name).UseSelection()
Or you can do
public class Foo {
     [UseSelection]
     public IQueryable<Bar>(
           [Service]DbContext ctx)=>ctx.Bars);
}

You can use filtering and sorting also nested if you initialize it on a field that has no custom resolver.
public class BarType : ObjectType<Bar>{
    public override Configure(
        IObjectTypeDescriptors<Bar> desc) {
    desc.Field(x=> X.NestedList)
          .UsePaging()
           .UseFiltering()
           .UseSorting();
    }
}

@PascalSenn I do not use IQueryable with my database. I actually use Dapper.
Is there a way to access the selection fields from within the resolver?
Currently, I managed to inject the IResolverContext and it has the CollectFields method.
What should I do with it to get a list of all child fields for the resolver field (after fragment and skip/ignore directive resolution)?

Sorry didn't mean to close the issue, it's difficult to use github on the phone though 👍
Custom resolvers, called computed fields, that depends on the parent are also not supported.
public class User{
    public string Name {get;set;}
    public string LastName {get;set;}

//NOT SUPPORTED
 public string DisplayName()
         => Name + LastName;

//NOT SUPPORTED
 public string DisplayName2([Parent]User user) => user.Name +user.LastName;

}

@geekox86 This is what collect fields does
You have to pass in the type + the selection set :)
You find everything on the resolver context

@PascalSenn Thank you so much :)
I always get error on the first line saying:
Unable to cast object of type 'HotChocolate.Types.NonNullType' to type 'HotChocolate.Types.ObjectType`1[System.Collections.Generic.IEnumerable`1[OeMis.OrganizationModule.Organization]]'.

Code:
public async Task<IEnumerable<Organization>> Organizations(
            [Service] IOrganizationRepository organizationRepository,
            IResolverContext context,
            HashId? parentOrganizationId
        )
        {
            var fields = context.CollectFields((ObjectType<IEnumerable<Organization>>) context.Field.Type, context.FieldSelection.SelectionSet);
            return await organizationRepository.GetByParentOrganizationId(parentOrganizationId);
        }

@geekox86  Close ;)
Try this:
        public static bool TryCollectFields(
            this IResolverContext context,
            out IReadOnlyList<IFieldSelection> selection)
        {
            if (context.Field.Type.NamedType() is ObjectType objectType)
            {
                selection = context.CollectFields(objectType);
                return true;
            }
            selection = null;
            return false;
        }

@PascalSenn Fantastic! Thank you :)
So, this should take into consideration fragments, @skip, and @ignore, correct?
But for interfaces and unions, then I have to figure out the result type myself.
Any near plan to include this useful feature in v11-preview?

@PascalSenn Just out of curiosity, where is the difference between these:
Field.Type
Field.Type.NamedType
Field.DeclaringType
Also, between these:
Field.ClrType
Field.DeclaringType.ClrType

@geekox86

So, this should take into consideration fragments, @Skip, and @ignore, correct?

yes it does.

Any near plan to include this useful feature in v11-preview?

you mean with handling interfaces and unions? If so this is already in. You just ask the schema for the possible types and get the possible selections for the possible types.

Field.Type => The type of the field for instance [String]
Field.Type.NamedType => The named type component... if the type is [String] than the named type component is String.
Field.DeclaringType => The schema type that declares the field.
Also, between these:
Field.ClrType => The .NET CLR Type Representation ... so basically the .NET type that represents the GraphQL Type in the runtime.
Field.DeclaringType.ClrType => Like for the field just now this is the runtime type representation for the type that declares the field.

Can we close this issue?

Sure. I really appreciate your time and knowledge sharing (f)

@PascalSenn The only thing currently preventing me from trying it out is that nuget.org doesn't have 10.4.0-preview-17 yet (though it does appear to have 11.0.0-preview-107 which was release after), and I'm not entirely certain the proper command for easily building the source of the release into a list of nuget packages.  I could build each project specifying to create a package for each, but didn't want to go through the trouble if there were a simpler way.

10.4 preview 17 is now available

@TheJayMann  btw. are you on our slack channel?
It's the fastest way to get feedback through :)

https://join.slack.com/t/hotchocolategraphql/shared_invite/enQtNTA4NjA0ODYwOTQ0LTViMzA2MTM4OWYwYjIxYzViYmM0YmZhYjdiNzBjOTg2ZmU1YmMwNDZiYjUyZWZlMzNiMTk1OWUxNWZhMzQwY2Q

@PascalSenn This one works in V13
    public static IEnumerable<FieldNode> CollectFields(this IEnumerable<ISelectionNode> nodes)
    {
        foreach (var field in nodes.OfType<FieldNode>())
        {
            yield return field;

            if (field.SelectionSet != null)
                foreach (var subField in field.SelectionSet.Selections.CollectFields())
                    yield return subField;
        }
    }

Use with IResolverContext
        // collect all selected fields from resolver context
        var fields = resolverContext.Selection.SyntaxNode.SelectionSet!.Selections
            .CollectFields();

        Console.WriteLine(string.Join(", ",
            fields.Select(x => x.Name)
        ));

I also wanted the full path of each field. Not sure if there is a way to do this from the FieldNode itself.
Anyhow, I solved it using the following function:
    public static IEnumerable<(FieldNode Field, string Path)> CollectFieldAndPath(this IEnumerable<ISelectionNode> nodes, string parentPath = "")
    {
        string path;
        foreach (var field in nodes.OfType<FieldNode>())
        {
            path = parentPath == ""
                ? field.Name.Value
                : parentPath + "." + field.Name.Value;

            yield return (field, path);

            if (field.SelectionSet != null)
                foreach (var subField in field.SelectionSet.Selections.CollectFieldAndPath(path))
                    yield return subField;
        }
    }

Usage
      // collect a tupple with field + field path
      var fields = resolverContext.Selection.SyntaxNode.SelectionSet!.Selections
          .CollectFieldAndPath();

      foreach (var (_, path) in fields)
          Console.WriteLine($"Full path: {path}");

Output
Full path: items
Full path: items.id
Full path: items.updatedBy
Full path: items.updatedBy.email

@geekox86 . Have you come up with a solution for dapper ? as you mentioned in your comments . I want to generate performant sql queries including selects , skip , take . Wonder to know what you have come with

Salam @MohammadYSF and sorry for the very late reply.
Although, I have transitioned to another architectural style, this was my code for pulling the selected fields.
Feel free to ask questions regarding this snippet.
using HotChocolate.Language;
using HotChocolate.Resolvers;
using HotChocolate.Types;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;

namespace OperationalExcellence
{
	internal sealed class GenericResolver
	{
		private readonly FieldDelegate _next;

		public GenericResolver(FieldDelegate next)
		{
			_next = next;
		}

		public async Task InvokeAsync(
      IMiddlewareContext context,
      IGenericRepository repository,
      GenericAsyncStoredProcedureExecutor asyncStoredProcedureExecutor,
      GenericEmailer emailer
    )
		{
      var storedProcedure = context.Field.Directives
				.Where((directive) => directive.Name == "storedProcedure")
        .SingleOrDefault();

      if (!(storedProcedure is null))
			{
        var schema = storedProcedure.GetArgument<string>("schema");

        var name = storedProcedure.ToNode().Arguments
          .Where((argument) => argument.Name.Value == "name")
          .Select((argument) => argument.Value.Value as string)
          .SingleOrDefault() ?? context.Field.Name.Value;

        var parentParameters = storedProcedure.ToNode().Arguments
          .Where((argument) => argument.Name.Value == "parameters")
          .Select((argument) => argument.Value.Value as string)
          .SingleOrDefault();

				var parameters = context.Field.Arguments.ToDictionary(
					(argument) => argument.Name.Value,
					(argument) =>
					{
						var value = context.ArgumentValue<object>(argument.Name.Value);
						var converters = argument.Directives
							.Where((directive) => directive.Name == "convert")
							.Select((convertDirective) =>
								context.GetConverter(convertDirective.GetArgument<string>("by"))
							);

						foreach (var converter in converters)
						{
							value = converter(value);
						}

						return value;
					}
				);

        if (!(parentParameters is null)) {
          foreach (var parentParameter in parentParameters.Split(" "))
          {
            var parentParameterNames = parentParameter.Split(":");

            parameters.Add(
              parentParameterNames[0],
              repository.GetObjectFieldScalar(
                context.Parent<object>(),
                parentParameterNames[1]
              )
            );
          }
        }

				var login = (ClaimsPrincipal)context.ContextData["ClaimsPrincipal"]!;

				parameters.Add("loginId", login.Identity.Name!.Substring(7));
				parameters.Add("loginRoles", "");

				if (context.Field.Type.NamedType() is ObjectType objectType)
				{
					parameters.Add("loginSelections",
						string.Join(
							',',
							context
								.GetSelections(objectType)
								.Where((selection) => !selection.Field.IsIntrospectionField)
								.SelectMany((selection) => {
                  var subStoredProcedure = selection.Field.Directives
                    .Where((directive) => directive.Name == "storedProcedure")
                    .SingleOrDefault();

                  if (!(subStoredProcedure is null))
                  {
                    return subStoredProcedure.ToNode().Arguments
                      .Where((argument) => argument.Name.Value == "parameters")
                      .Select((argument) => argument.Value.Value as string)
                      .SelectMany((parameters) => parameters!.Split(" ")
                        .Select((parameter) => $"[{parameter.Split(":")[1]}]")
                      );
                  }

                  return new[] { $"[{selection.Field.Name}]" };
								})
						)
					);
				}

				if (!context.Field.Type.IsListType())
				{
					context.Result = !context.Field.Type.IsObjectType() ?
						await repository.ExecuteSingleScalarAsync(schema, name, parameters) :
						await repository.ExecuteSingleObjectAsync(schema, name, parameters);
				}
				else
				{
					context.Result = !context.Field.Type.ElementType().IsObjectType() ?
						await repository.ExecuteMultipleScalarsAsync(schema, name, parameters) :
						await repository.ExecuteMultipleObjectsAsync(schema, name, parameters);
				}
			}
			else
			{
				context.Result = repository.GetObjectFieldScalar(
					context.Parent<object>(),
					context.Field.Name.Value
				);
			}

      var asyncStoredProcedures = context.Field.Directives
				.Where((directive) => directive.Name == "storedProcedureAsync")
        .ToList();

      foreach (var asyncStoredProcedure in asyncStoredProcedures)
			{
        var schema = asyncStoredProcedure.GetArgument<string>("schema");
        var name = asyncStoredProcedure.GetArgument<string>("name");
        var parentParameters = asyncStoredProcedure.ToNode().Arguments
          .Where((argument) => argument.Name.Value == "parameters")
          .Select((argument) => argument.Value.Value as string)
          .SingleOrDefault();

        var parameters = new Dictionary<string, object>();

        if (!(parentParameters is null)) {
          foreach (var parentParameter in parentParameters.Split(" "))
          {
            var parentParameterNames = parentParameter.Split(":");

            parameters.Add(
              parentParameterNames[0],
              repository.GetObjectFieldScalar(
                context.Result,
                parentParameterNames[1]
              )
            );
          }
        }

        var login = (ClaimsPrincipal)context.ContextData["ClaimsPrincipal"]!;

				parameters.Add("loginId", login.Identity.Name!.Substring(7));
				parameters.Add("loginRoles", "");

        asyncStoredProcedureExecutor.Execute(schema, name, parameters);
      }

      var emailStoredProcedures = context.Field.Directives
				.Where((directive) => directive.Name == "email")
        .ToList();

      foreach (var emailStoredProcedure in emailStoredProcedures)
			{
        var schema = emailStoredProcedure.GetArgument<string>("schema");
        var name = emailStoredProcedure.GetArgument<string>("name");
        var parentParameters = emailStoredProcedure.ToNode().Arguments
          .Where((argument) => argument.Name.Value == "parameters")
          .Select((argument) => argument.Value.Value as string)
          .SingleOrDefault();

        var parameters = new Dictionary<string, object>();

        if (!(parentParameters is null)) {
          foreach (var parentParameter in parentParameters.Split(" "))
          {
            var parentParameterNames = parentParameter.Split(":");

            parameters.Add(
              parentParameterNames[0],
              repository.GetObjectFieldScalar(
                context.Result,
                parentParameterNames[1]
              )
            );
          }
        }

        var login = (ClaimsPrincipal)context.ContextData["ClaimsPrincipal"]!;

				parameters.Add("loginId", login.Identity.Name!.Substring(7));
				parameters.Add("loginRoles", "");

        var email = await repository.ExecuteSingleObjectAsync(schema, name, parameters);
        var to = repository.GetObjectFieldScalar(email!, "to") as string;
        var cc = repository.GetObjectFieldScalar(email!, "cc") as string;
        var bcc = repository.GetObjectFieldScalar(email!, "bcc") as string;
        var subject = repository.GetObjectFieldScalar(email!, "subject") as string;
        var body = repository.GetObjectFieldScalar(email!, "body") as string;

        emailer.Send(to, cc, bcc, subject, body);
      }

			await _next(context);
		}
	}
}


I submit a file:
curl -F<EMAIL_ADDRESS>http://localhost:9333/submit
{"fid":"4,0100679e06","fileName":"hello.txt","fileUrl":"<IP_ADDRESS>:8082/4,0100679e06","size":39}
the file is stored in volume 8082(dc1) and 8083(dc2) as expected.
I am trying to get the file through leader master(9334) and it works:
$ curl -L http://<IP_ADDRESS>:9334/4,0100679e06
hello weed-fs!
Then I tried get the file through master 9333(not the leader):
$ curl -L http://<IP_ADDRESS>:9333/4,0100679e06
{"error":"volume id 4 not found"}
It seems that the 9333 master does not forward the request to leader. if so, the client should always know who is the leader.
Is this a problem? why do not all masters(not only the leader) know the file position?

Fix typo error:
9034 -> 9334, 9093 -> 9334

@yanyiwu I don't understand what you mean. Pls give more details!

@bigwhite
I mean I am trying to get the file through leader master(9034) and it works: is wrong,
it should be I am trying to get the file through leader master(9334) and it works:

@yanyiwu already fix it,3ks. And what's your opinion about this issue? it is a issue about design tradeoff?

@yanyiwu already fix it,3ks. And what's your opinion about this issue? it is a issue about design tradeoff?

@bigwhite
I dont know the implement about it.
so I dont know the real reason of your issue.
But in my situation,
I use 3 master and 2 volume, and defaultReplication=001, it works fine.
I am curious about your issue too.

Fixed in https://github.com/chrislusf/seaweedfs/issues/154

Your version does include this fix yet.

@chrislusf  you mean 0.69 version does not include #154 fix yet. I see. 3ks


fixed #176 bug

dict 是无序数据结构，每次实例化随机排序，导致布局问题。使用list解决

This breaks using inlines within a form. They always get rendered at the end. Instead of a list it should use a collections.OrderedDict which does both.


Nested enums

Thanks for continuing to maintain this important crate.  Do you plan to add new features, too?  If so, I'd like you to consider support for nested enums.  There were some good ideas over here.
https://github.com/dtolnay/serde-yaml/issues/363

@asomers Thanks for your help and support. I will look into this.

@asomers Changes merged to v0.0.7. Thanks!


Update counter-accessible.py

fix for issue #36 (page.KeyboardEventData is now page.KeyboardEvent)

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


Dark theme card list-group not styled.

Select one ... (check one with "x")
[x] bug
[ ] feature request
[ ] enhancement

Expected behavior
The card list group should match the dark theme.
Actual behavior

Reproduction of behavior
https://stackblitz.com/edit/clarity-dark-theme-v012-sy9yhu
Environment details

Angular version: 6.0.4

Clarity version: 0.12.8

OS and version: Windows 10

Browser: [all]

Here are the color specs for styling to dark theme:
background: #22343C
Border: #0F171C
Should look like this:

(Approved by Red and Scott)

Fixed by #2620


Refine exclude

The setup.py is excluding tests, but not tests/* as well, which causes tests/testapp to be installed as testapp:
yes n | pip uninstall django-js-asset|grep testapp |tail -1

/home/melvyn/.local/py-env/testbed/lib/python3.6/site-packages/testapp/urls.py

Thanks for the report!
This repository does not seem to have a testapp/urls.py file, but for example https://github.com/matthiask/django-admin-ordering/ does. Can I ask you to look inside the file to determine which package installs the testapp app?
My understanding of exclude is that excluding tests should be sufficient to also exclude contained packages, but maybe that's not correct.

You're absolutely right. The pip uninstall command will also uninstall packages required by it, and so this one is fine, but django-admin-ordering isn't. Sorry for the noise.


Add title feature

A "title" changes depending on the picker and on the page

For DatePicker, it's the name of the month in given localization
For MonthPicker, it's the year
For YearPicker, it's the decade in this format 2000-2010

Add overridable BasePicker.getTitle()
Add DatePicker.getWeekdays()


Clock Project

A perfect HTML, CSS, JavaScript  project for beginners to learn and boast up their confidence by adding this to their resume.

https://github.com/DhanushNehru/Ultimate-Web-Development-Resources/pull/133
@DhanushNehru could you review my PR. Looking forward to your feedback.

@DhanushNehru Can you please take a review of my PR & merge it under HACTOBERFEST 2023.

@jeevanshib Please don't ping more than once .

Thanks for your contribution @jeevanshib

Thanks for your contribution @jeevanshib , Looks great


[3pt]  - Display comments for a given item on the Comments pop-up - Student B

When the popup loads, the webapp retrieves data from the Involvement API to show the item comments.

This task does not include the counter of the comments.

https://github.com/mikemtzp/PokemonAPI/pull/24


Engine builds for Android on Mac always look for gen_snapshot in the default clang_x64 directory

The paths for gen_snapshot are hard-coded in src/flutter/sky/tools/create_macos_gen_snapshots.py to be expected in the clang_x64 subdirectory, but will be found in the clang_arm64 directory on builds on Apple Silicon machines.

Duplicate of https://github.com/flutter/flutter/issues/105651


Update kuttl to v0.11.0

kuttl v0.11.0 has just been released, and we should update our tests to use it.

@rubenvp8510 I would like to work on this one


Add GitHub PR template

This pull request a GitHub template for Pull Requests
This PR is created automatically by Matks PrestaShop Repositories Bulk Editor

Thanks @matks


Adding localStorage support

Adding data response when 206 responseCode
Fixes #31

Codecov Report

Merging #39 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #39   +/-   ##
=======================================
  Coverage   93.54%   93.54%
=======================================
  Files           7        7
  Lines         511      511
  Branches       72       72
=======================================
  Hits          478      478
  Misses         26       26
  Partials        7        7

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 e362067...d27b6f0. Read the comment docs.