Builder does not update when the query prop updates

In my app I can select a query from a list and have it displayed in the query builder.
I am facing a bug with this component that occurs when it receives a new query prop. The new prop is ignored and the builder UI never updates.
I reproduced the issue in this codesandbox.
The confusing thing is that by looking at past issue this has already been reported and should have been fixed (e.g., #70 unless I'm wrong).
Can you confirm the bug is not an issue of how I am using the component?
I am using the latest available release (1.4.3), but have also tried directly using the latest master commit as a dependency.

In your sandbox you're using version 1.4.3 - latest version on NPM. Though the latest version hasn't been published to NPM yet, so the fix isn't available. If you use the latest master, you should see that this problem is fixed.
This is becoming a common concern, I'll see if I can hurry up a release with this fix.
The code sandbox POC is much appreciated by the way.

Thank you for the quick answer, @miphe!
I tried to use the latest master (I use yarn to manage deps) like this:
// first try
yarn add https://github.com/sapientglobalmarkets/react-querybuilder

// second try
yarn add https://github.com/sapientglobalmarkets/react-querybuilder#master

// third try
yarn add https://github.com/sapientglobalmarkets/react-querybuilder#a3f9ffb

but the outcome did not change. I tried to do the same on the sandbox but I think that it is not possible. A new release would be great :)

+1 I'm getting this on the latest master.
Reproducible with: git clone https://github.com/sapientglobalmarkets/react-querybuilder.git && cd react-querybuilder && yarn && yarn start
Then try adding a group/rule, doesn't reflect on the JSON preview.
What version is the live demo running?

@apswak I believe the demo has some issues. The rendered data preview might be rendering initial query instead of actual query. One of the reasons a new version hasn't been published, the demo needs a refactor.

Hi people, I've just merged PR 70 which addresses the demo issues and some other things.
@apswak Latest commit on master should work better now.
@simonedavico  Let's re-open this issue if you can still reproduce this!


Unable to locate package dotnet-sdk-2.2

Problem encountered on https://dotnet.microsoft.com/download/linux-package-manager/ubuntu18-10/sdk-current
Operating System: Linux Ubuntu 18.10 - x64
Provide details about the problem you are experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

followed instructions on https://dotnet.microsoft.com/download/linux-package-manager/ubuntu18-10/sdk-current
~$ sudo apt-get install dotnet-sdk-2.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dotnet-sdk-2.2
E: Couldn't find any package by glob 'dotnet-sdk-2.2'
E: Couldn't find any package by regex 'dotnet-sdk-2.2'

I had it working but wanted to upgrade and accidentally installed 3.0  for ARM 64. the command dotnet would only yield binary error. Tried removing and re-installing .net 2.2 --- this was the error...

# Shows the repositories you have configured. Source: https://askubuntu.com/a/741948
grep -r --include '*.list' '^deb ' /etc/apt/sources.list /etc/apt/sources.list.d/

Also, have you tried the workaround commands that show up in the 18.04 instructions? https://dotnet.microsoft.com/download/linux-package-manager/ubuntu18-04/sdk-current
(The workaround commands not being in the 18.10 instructions is, IMO, a bug: https://github.com/dotnet/core/issues/2486.)

@dagood
root@ubuntu:~# grep -r --include '*.list' '^deb ' /etc/apt/sources.list /etc/apt/sources.list.d/
/etc/apt/sources.list:deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted
/etc/apt/sources.list:deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
/etc/apt/sources.list:deb http://cn.archive.ubuntu.com/ubuntu/ xenial universe
/etc/apt/sources.list:deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe
/etc/apt/sources.list:deb http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
/etc/apt/sources.list:deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
/etc/apt/sources.list:deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security universe
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security multiverse
/etc/apt/sources.list.d/microsoft-prod.list:deb [arch=amd64] https://packages.microsoft.com/ubuntu/16.04/prod xenial main
root@ubuntu:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.6 LTS
Release:	16.04
Codename:	xenial
root@ubuntu:~#

Closing: no new info provided on the original issue for a week. The workaround instructions are now available on the 18.10 download page, so it's likely future instances of this problem will be mitigated by the workaround being easier to find.

@miaodadao if you're experiencing a similar issue, please file an issue including the commands you're running and error you're receiving and answer this question as well:

Also, have you tried the workaround commands that show up in the 18.04 instructions?

Thanks.


TS7016

Hi,
I have faced with next error:
TS7016: Could not find a declaration file for module 'angular5-csv/Angular5-csv'.
Could you add declaration in d.ts file ?
Thank you!

Hi @skuzmin
Can you please update your tsconfig.json with  "noImplicitAny": false

FYI, there's no need to import Angular5-csv in your module, just import it in your component
import { Angular5Csv } from 'angular5-csv/Angular5-csv';

@skuzmin
import { Angular5Csv } from 'angular5-csv/dist/Angular5-csv';
Solved it for me!

Please update the import statement in https://www.npmjs.com/package/angular5-csv


Update README.md to reflect that requirements.txt exists

There was originally not a requirements.txt file or other files for installing dependencies. There is one now, and the requirements.txt should say how to install the dependencies.

Fixed in pull request #9


failFast of nested validator not working

Hello,
I believe (given if I have understood the mechanics properly) that the failFast facility does not work if a validator with failFast==true is used in a nested way, e.g. either with .nest(..) or .forEach(..).
The following test demonstrates this:
record B(int x, String y) {}
record A(B b, List<B> bs) {}

Validator<B> bValidator = ValidatorBuilder.of(B.class)
    .constraint(B::x, "x", c -> c.greaterThan(0))
    .constraint(B::y, "y", c -> c.equalTo("y"))
    .failFast(true)
    .build();

var invalidB = new B(0, "not y");
var bViolations = bValidator.validate(invalidB).violations().stream().map(ConstraintViolation::messageKey).toList();
assertThat(bViolations, contains(NUMERIC_GREATER_THAN.messageKey()));

Validator<A> aValidator = ValidatorBuilder.of(A.class)
        .nest(A::b, "b", bValidator)
        .build();

var aWithInvalidBs = new A(invalidB, List.of(invalidB));
var aViolations = aValidator.validate(aWithInvalidBs).violations().stream().map(ConstraintViolation::messageKey).toList();
assertAll("should be only one violation, because greaterThan(0) fails and failFast==true",
        () -> assertThat(aViolations, not(hasItem(OBJECT_EQUAL_TO.messageKey()))),
        () -> assertThat(aViolations, contains(NUMERIC_GREATER_THAN.messageKey()))
    );

Complete JUnit 5 test source code

import am.ik.yavi.builder.ValidatorBuilder;
import am.ik.yavi.core.ConstraintViolation;
import am.ik.yavi.core.Validator;
import org.junit.jupiter.api.Test;
import java.util.List;
import static am.ik.yavi.core.ViolationMessage.Default.NUMERIC_GREATER_THAN;
import static am.ik.yavi.core.ViolationMessage.Default.OBJECT_EQUAL_TO;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.hasItem;
import static org.hamcrest.Matchers.not;
import static org.junit.jupiter.api.Assertions.assertAll;
class NestedFailFastValidator {
@Test
void failFastOfNestedValidator() {
    record B(int x, String y) {}
    record A(B b, List<B> bs) {}

    Validator<B> bValidator = ValidatorBuilder.of(B.class)
        .constraint(B::x, "x", c -> c.greaterThan(0))
        .constraint(B::y, "y", c -> c.equalTo("y"))
        .failFast(true)
        .build();

    var invalidB = new B(0, "not y");
    var bViolations = bValidator.validate(invalidB).violations().stream().map(ConstraintViolation::messageKey).toList();
    assertThat(bViolations, contains(NUMERIC_GREATER_THAN.messageKey()));

    Validator<A> aValidator = ValidatorBuilder.of(A.class)
            .nest(A::b, "b", bValidator)
            .build();

    var aWithInvalidBs = new A(invalidB, List.of(invalidB));
    var aViolations = aValidator.validate(aWithInvalidBs).violations().stream().map(ConstraintViolation::messageKey).toList();
    assertAll("should be only one violation, because greaterThan(0) fails and failFast==true",
            () -> assertThat(aViolations, not(hasItem(OBJECT_EQUAL_TO.messageKey()))),
            () -> assertThat(aViolations, contains(NUMERIC_GREATER_THAN.messageKey()))
        );
}

}

The test passes the first assertions, demonstrating the failFast works when bValidator.validate(..) is used directly. The last assertion fails however, yielding the violation for equalTo("y") even though bValidator is set to failFast==true.
Assertion error:

org.opentest4j.MultipleFailuresError: should be only one violation, because greaterThan(0) fails and failFast==true (2 failures)
java.lang.AssertionError:
Expected: not a collection containing "object.equalTo"
but: was <[numeric.greaterThan, object.equalTo]>

Changing the building of aValidator from .nest to .forEach(A::bs, "bs", bValidator) yields the same result.
YAVI version: 0.11.2

@runeflobakk
I think the behavior is as expected. Implementationally, failFast is determined by the flag of the parent Validator.
How does the below work?
Validator<A> aValidator = ValidatorBuilder.of(A.class)
        .nest(A::b, "b", bValidator)
        .failFast(true)
        .build();

Oh, I was thinking that the failFast was determined on each validator. Thank you for your answer, the code you provide would work, but in general I want to collect all violations, but for certain more heavy validations, I would like to use some lightweight "guard" validations to be able to short-circuit to avoid trying to validate if I already know that the more heavy validation will fail.
My case for using failfast is that I want some more computational heavy validations to occur only if certain preceeding light-weight validations passes.
It makes sense though, that if setting failFast on a parent validator, nested validators should also be failFast. But at the same time, it is sort of a surprise that specifying a trait (failFast=true) of a specific validator instance, to have it overridden when used by a parent validator. Or it may make sense for some cases, and not for others. In my case, I use failFast=true to achieve a certain behavior of my specific validator. Maybe the failFast property is a candidate for something more expressive than a simple boolean flag (as in true/false/unspecified)? Or maybe what I am trying to do is not applicable for the intended use of the failFast property.
What are your thoughts? Maybe there are some facility I have overlooked to combine constraints in a chain, where if one fails, the remaining one are not executed? I guess I could implement this in one CustomConstraint, but I am not sure if I will be able to produce different kinds of ViolationMessage depending on which "step" fails validation? From the top of my head, I could maybe do this with a kind of wrapper CustomConstraint which delegates to a chain of other constraints, and orchestrates this short-circuiting behaviour.

Feel free to move this to discussions to avoid cluttering the issue management, or let me know, and I can move it.

Discussing here is fine for me.
This feature is requested by a user.
https://github.com/making/yavi/issues/140
Feedback is important as I don't know how this feature will be used.
From the implementation point of view, it's simple and easy to respect failFast set in the collection validator. The collection validator is purely delegated, and the current implementation explicitly propagates the parent failFast property.
https://github.com/making/yavi/blob/0.11.2/src/main/java/am/ik/yavi/core/Validator.java#L220
The fix would only erase this line.
On the other hand, the nested validator only "flattens" the constrains in the Validator Builder, which could require major code changes to use the failedFast property of the nested validator.

From an API design perspective, it may make more sense if the Validator.failFast method is solely to turn on failFast. I.e. the invocation on Validator should read validator.failFast(), and return a new instance (as it is now) which will return maximum one constraint violation. Internally, this is most likely implemented (as it is now) to immediately yield when the first failing constraint is encountered. This also would make sense internally in Validator to propagate failFast to downstream validators, i.e. it should be invoked only in the case of the calling validator is failFast==true, and never as the current API enables as .failFast(false).
This would also make sense in a hypothetical parallel implementation of Validator. A parent validator may delegate to several sub-validators in parallel, and if failFast is turned on it will yield the first failing constraint which is encountered, even though multiple constraints may be checked. (This is just a thought experiment for rationalizing the design I am proposing. A parallel validator will probably have to deal with other challenges as well, e.g. cancelling started validator "branches" in the case of fail-fast)
The ValidatorBuilder.failFast(boolean)-method makes sense to keep as-is, because this is used at "configuration time" of a validator, and it enables parameterization if it should be fail-fast or not. If desired, a ValidatorBuilder.failFast()-method which invokes this.failFast(true) can be added, but this is not strictly necessary; it would just be a convenience.

I will consider redesign when developing 0.12. As I said earlier, it's unclear if this feature will be included, as it probably requires a lot of internal changes.

I agree some internal changes is required for this to be implemented.
As you say, nested validators are flattened/"deconstructed" into constraint predicates, and thus loosing the nested validator's original failFast-setting. In my opinion, a validator should probably maintain a tree (or trees) of actual delegated validators to be able to properly compose the behavior or multiple validators. I think this will have the potential of a cleaner design. Perhaps each individual constraint predicate should really be a tiny delegated validator? Or something along that line of thinking? I think it may be a bit problematic if the API accepts Validator instances, giving the impression that validators can be properly composed, but really only some "traits" of the given Validator is preserved. Also, properly composing tree(s) of Validators I think has the potential for easier further development of behavioral features of validators, where each validators' behavior would be preserved through traversing, and does not necessarily has to be taken into account when nesting or other compositional operations.
I had a look at the internals of the Validator code, and I also realize that the evaluation of the conditional validators is sort of "cheating" the failfast-property, as it is currently implemented. If one sets constraintOnCondition(ConstraintCondition<T>, Validator<T>) and also using failFast(true), then still all of the constraints of the conditional validator will be evaluated internally, though just the first violation is actually returned. The reason for this, I presume, is that conditional validators are collected as Validatable, which does not have any method to specify failFast on them.
https://github.com/making/yavi/blob/0.11.2/src/main/java/am/ik/yavi/core/Validator.java#L245-L255
Is this an issue you are aware of? Do you want me to register a separate issue for it?

Yeah, I noticed it when I read the code for this issue.
However, I'm not sure if I want to fix it right now as it is not determined what the behavior of failFast should be.
Are you having problems with this?

No, it is not a problem for me at this point. Just wanted to mention it :)

@runeflobakk FYI, this is (finally) supported in YAVI 0.13.0

@making That's great! Thank you!


Can't install iqsharp if user's home directory has spaces

Arguably this is not a bug but a limitation that would not be encountered if best practices were followed (i.e. not creating users, or in fact any filenames, with spaces in them). If so, let us know and we can document this behavior.
Describe the bug
When there are spaces in the user's home directory iqsharp cannot be installed, giving errors like the ones shown in this ticket:
https://github.com/MicrosoftDocs/quantum-docs-pr/issues/617
I reproduced the error on a Windows 10 machine, with a user with spaces in the name.
To Reproduce

Create a user with spaces in the name
Follow the steps here to install the QDK for either the python or jupyter use-case: https://docs.microsoft.com/en-us/quantum/install-guide/?view=qsharp-preview

Problem
My Windows10 account folder name is 'C:\Users\Sirius B'.
But when I install it (dotnet iqsharp install), it doesn't recognize 'C:\Users\Sirius B', but it tries to recognize 'C:\Users\Sirius' Perhaps spacing is a problem.
Error message
C:\Windows\system32>dotnet iqsharp install
Traceback (most recent call last):
File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\Sirius B\AppData\Roaming\Python\Python37\Scripts\jupyter-kernelspec.EXE_main.py", line 9, in
File "C:\Users\Sirius B\AppData\Roaming\Python\Python37\site-packages\traitlets\config\application.py", line 664, in launch_instance
app.start()
File "C:\Users\Sirius B\AppData\Roaming\Python\Python37\site-packages\jupyter_client\kernelspecapp.py", line 273, in start
return self.subapp.start()
File "C:\Users\Sirius B\AppData\Roaming\Python\Python37\site-packages\jupyter_client\kernelspecapp.py", line 143, in start
replace=self.replace,
File "C:\Users\Sirius B\AppData\Roaming\Python\Python37\site-packages\jupyter_client\kernelspec.py", line 346, in install_kernel_spec
shutil.copytree(source_dir, destination)
File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\shutil.py", line 318, in copytree
names = os.listdir(src)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\Users\Sirius'

Expected behavior
IQ# should install correctly.
System information

OS: Windows
Browser N/A
Version

Windows 10
Python 3.8
QDK 0.10

Tested and verified that this works correctly on recent builds, presumably fixed by https://github.com/microsoft/jupyter-core/pull/40. Closing.

g


Interop issues between quic-go client and lsquic/quiche server

The issues are reproduced when downloading a 13MB file with quic-go example client (repeatly) from the toy servers in quiche and lsquic.
I changed a little of the example client code in quic-go as below,

make "hclient.Get(addr)" run 100 times with a for loop
specify the qconf.Versions as draft 29 because the lsquic build in the docker hub image does not support v1.

The issues are,

When using lsquic server, quic-go will report CONNECTION_ID_LIMIT_ERROR error after about 4 or 5 successful downloads.
When using quiche server, quic-go will hang and timeout after about 10 times successful downloading.

The quic servers are pulled from docker hub image: cloudflare/quiche-qns:latest and litespeedtech/lsquic-qir:latest.
The command to start lsquic sever is as:
http_server -s <IP_ADDRESS>:443 -c ${server_domain},${path_to_crt},${path_to_plainkey}  -r ${path_to_doc}

the command to start quiche server is as:
./quiche-server --listen <IP_ADDRESS>:443 --cert ${path_to_crt} --key ${path_to_plainkey} --root  ${path_to_doc}

and quic-go client command is (test.mp4 is a 13MB file under ${path_to_doc}):
./client -q --insecure=1  https://${server_domain}/test.mp4

I also tried lsquic_client <-> quiche_server and quiche_client <-> lsquic_server, there's no issue in the two scenarios.

When using lsquic server, quic-go will report CONNECTION_ID_LIMIT_ERROR error after about 4 or 5 successful downloads.

That sounds like lsquic is sending us too many connection IDs, see https://github.com/lucas-clemente/quic-go/blob/c5aeee39ad5cc62980f2835ba541d8e6b4187edd/conn_id_manager.go#L51-L59
Would you mind recording a qlog to confirm that this is actually what's happening?

When using lsquic server, quic-go will report CONNECTION_ID_LIMIT_ERROR error after about 4 or 5 successful downloads.

That sounds like lsquic is sending us too many connection IDs, see
https://github.com/lucas-clemente/quic-go/blob/c5aeee39ad5cc62980f2835ba541d8e6b4187edd/conn_id_manager.go#L51-L59
Would you mind recording a qlog to confirm that this is actually what's happening?

Thanks for the reply.
The qlog lines with "connection_id" word is as below:
{"time":0.091847,"name":"transport:parameters_set","data":{"owner":"local","initial_source_connection_id":"","disable_active_migration":true,"max_idle_timeout":30000,"max_udp_payload_size":null,"ack_delay_exponent":3,"max_ack_delay":26,"active_connection_id_limit":4,"initial_max_data":786432,"initial_max_stream_data_bidi_local":524288,"initial_max_stream_data_bidi_remote":524288,"initial_max_stream_data_uni":524288,"initial_max_streams_uni":100,"max_datagram_frame_size":0}}
{"time":3.648994,"name":"transport:parameters_set","data":{"owner":"remote","original_destination_connection_id":"096d39b36e5a3f48bdcd75d1942d8eb0","stateless_reset_token":"0dc34fce6d67cad22665c0a4223b63fc","initial_source_connection_id":"76d207d8e58dd025","disable_active_migration":false,"max_idle_timeout":30000,"max_udp_payload_size":4611686018427387903,"ack_delay_exponent":3,"max_ack_delay":25,"active_connection_id_limit":8,"initial_max_data":1572864,"initial_max_stream_data_bidi_remote":1048576,"initial_max_stream_data_uni":12288,"initial_max_streams_bidi":100,"initial_max_streams_uni":3}}
{"time":5.102384,"name":"transport:packet_received","data":{"header":{"packet_type":"1RTT","packet_number":6,"dcil":0,"key_phase_bit":"0"},"raw":{"length":63},"frames":[{"frame_type":"new_connection_id","sequence_number":1,"retire_prior_to":0,"length":8,"connection_id":"ed63d7285fb987fe","stateless_reset_token":"fbb6e119812148d1f47719e1dcef052a"},{"frame_type":"stream","stream_id":7,"offset":0,"length":1},{"frame_type":"stream","stream_id":3,"offset":0,"length":10}]}}
{"time":5.207829,"name":"transport:packet_sent","data":{"header":{"packet_type":"1RTT","packet_number":1,"dcil":8,"dcid":"ed63d7285fb987fe","key_phase_bit":"0"},"raw":{"length":39},"frames":[{"frame_type":"ack","ack_delay":0.230028,"acked_ranges":[[5,6]]},{"frame_type":"retire_connection_id","sequence_number":0},{"frame_type":"stream","stream_id":2,"offset":0,"length":3}]}}
{"time":1543.74165,"name":"transport:packet_received","data":{"header":{"packet_type":"1RTT","packet_number":10883,"dcil":0,"key_phase_bit":"0"},"raw":{"length":1452},"frames":[{"frame_type":"ack","ack_delay":0.016,"acked_ranges":[[439,442]]},{"frame_type":"new_connection_id","sequence_number":2,"retire_prior_to":0,"length":8,"connection_id":"3b07e1ec2b82a184","stateless_reset_token":"f711bffd434c8d921c3f2013312a5d41"},{"frame_type":"new_connection_id","sequence_number":3,"retire_prior_to":0,"length":8,"connection_id":"f85e412e8568b67e","stateless_reset_token":"6a31693061d091a49f0ce268562cade8"},{"frame_type":"stream","stream_id":4,"offset":1612500,"length":1365}]}}
{"time":2539.240459,"name":"transport:packet_received","data":{"header":{"packet_type":"1RTT","packet_number":17743,"dcil":0,"key_phase_bit":"0"},"raw":{"length":1452},"frames":[{"frame_type":"ack","ack_delay":0.024,"acked_ranges":[[699,705]]},{"frame_type":"new_connection_id","sequence_number":4,"retire_prior_to":0,"length":8,"connection_id":"445307cabaf10501","stateless_reset_token":"14b3ca99d58e2466a35ee8b6c9769d8e"},{"frame_type":"stream","stream_id":4,"offset":11360155,"length":1393}]}}
{"time":35345.44231,"name":"transport:packet_sent","data":{"header":{"packet_type":"1RTT","packet_number":12205,"dcil":8,"dcid":"3b07e1ec2b82a184","key_phase_bit":"0"},"raw":{"length":41},"frames":[{"frame_type":"ack","ack_delay":0.062892,"acked_ranges":[[234966,235045],[234786,234964]]},{"frame_type":"retire_connection_id","sequence_number":1}]}}
{"time":35371.802741,"name":"transport:packet_received","data":{"header":{"packet_type":"1RTT","packet_number":235088,"dcil":0,"key_phase_bit":"0"},"raw":{"length":1452},"frames":[{"frame_type":"ack","ack_delay":0.016,"acked_ranges":[[12201,12207]]},{"frame_type":"new_connection_id","sequence_number":5,"retire_prior_to":0,"length":8,"connection_id":"8c98c4b28ca71594","stateless_reset_token":"8d30c14da696a2267a037153672d38c0"},{"frame_type":"new_connection_id","sequence_number":6,"retire_prior_to":0,"length":8,"connection_id":"d888f39993258189","stateless_reset_token":"f44ee9c0dcd1477a43e3053c53e7cf56"},{"frame_type":"stream","stream_id":96,"offset":4896782,"length":1364}]}}
{"time":35371.939827,"name":"transport:connection_closed","data":{"owner":"local","connection_code":"connection_id_limit_error","reason":""}}
{"time":35371.952345,"name":"transport:packet_sent","data":{"header":{"packet_type":"1RTT","packet_number":12209,"dcil":8,"dcid":"3b07e1ec2b82a184","key_phase_bit":"0"},"raw":{"length":31},"frames":[{"frame_type":"connection_close","error_space":"transport","error_code":"connection_id_limit_error","raw_error_code":9,"reason":""}]}}

I also added some fmt print code to the function connIDManager.Add, and the out out is:
Got response for https://meerkat.localhost/test.mp4: &http.Response{Status:"200 OK", StatusCode:200, Proto:"HTTP/3", ProtoMajor:3, ProtoMinor:0, Header:http.Header{"Content-Type":[]string{"application/oct
et-stream"}}, Body:(*http3.body)(0xc0006acf30), ContentLength:-1, TransferEncoding:[]string(nil), Close:false, Uncompressed:false, Trailer:http.Header(nil), Request:(*http.Request)(nil), TLS:(*tls.Connect
ionState)(0xc0005500b0)}
Response Body: 13717355 bytes
Got response for https://meerkat.localhost/test.mp4: &http.Response{Status:"200 OK", StatusCode:200, Proto:"HTTP/3", ProtoMajor:3, ProtoMinor:0, Header:http.Header{"Content-Type":[]string{"application/oct
et-stream"}}, Body:(*http3.body)(0xc000728c60), ContentLength:-1, TransferEncoding:[]string(nil), Close:false, Uncompressed:false, Trailer:http.Header(nil), Request:(*http.Request)(nil), TLS:(*tls.Connect
ionState)(0xc0005500b0)}
####### trying add new conn id #############
Existing conn id: f85e412e8568b67e, seq: 3
Existing conn id: 445307cabaf10501, seq: 4
New frame: conn id: 8c98c4b28ca71594, seq: 5
********new conn id successfully added********
####### trying add new conn id #############
Existing conn id: f85e412e8568b67e, seq: 3
Existing conn id: 445307cabaf10501, seq: 4
Existing conn id: 8c98c4b28ca71594, seq: 5
New frame: conn id: d888f39993258189, seq: 6
length of h.queue:4, max:4
client Closing session with error: CONNECTION_ID_LIMIT_ERROR
client Connection 096d39b36e5a3f48bdcd75d1942d8eb0 closed.
CONNECTION_ID_LIMIT_ERROR
Response Body: 4895819 bytes

The lsquic debug option was also turned off, the conn ids related logs are,
14:49:19.082 [DEBUG] conn: generated and assigned SCID 8C98C4B28CA71594
14:49:19.082 [DEBUG] tokgen: generated stateless reset token 8D30C14DA696A2267A037153672D38C0 for CID 8C98C4B28CA71594
14:49:19.082 [DEBUG] engine: add 8C98C4B28CA71594 to the list of SCIDs
14:49:19.082 [DEBUG] [QUIC:3B07E1EC2B82A184] conn: generated 28-byte NEW_CONNECTION_ID frame (CID: 8C98C4B28CA71594)
14:49:19.082 [DEBUG] [QUIC:3B07E1EC2B82A184] event: generated NEW_CONNECTION_ID frame: seqno: 5; retire prior to: 0; cid: 8C98C4B28CA71594; token: 8D30C14DA696A2267A037153672D38C0
14:49:19.082 [DEBUG] [QUIC:3B07E1EC2B82A184] conn: can issue CIDs: 1 (n_cces 8; mask: 0xF; active: 3; limit: 4)
14:49:19.082 [DEBUG] conn: generated and assigned SCID D888F39993258189
14:49:19.082 [DEBUG] tokgen: generated stateless reset token F44EE9C0DCD1477A43E3053C53E7CF56 for CID D888F39993258189
14:49:19.082 [DEBUG] engine: add D888F39993258189 to the list of SCIDs
14:49:19.082 [DEBUG] [QUIC:3B07E1EC2B82A184] conn: generated 28-byte NEW_CONNECTION_ID frame (CID: D888F39993258189)
14:49:19.082 [DEBUG] [QUIC:3B07E1EC2B82A184] event: generated NEW_CONNECTION_ID frame: seqno: 6; retire prior to: 0; cid: D888F39993258189; token: F44EE9C0DCD1477A43E3053C53E7CF56
14:49:19.082 [DEBUG] [QUIC:3B07E1EC2B82A184] conn: can issue CIDs: 0 (n_cces 8; mask: 0x1F; active: 4; limit: 4)
14:49:19.082 [DEBUG] [QUIC:3B07E1EC2B82A184] conn: All 8 SCID slots have been assigned
14:49:19.082 [DEBUG] [QUIC:3B07E1EC2B82A184] conn: Log SCID array: (n_cces 8; mask: 0x1F; active: 4; limit: 4)
14:49:19.082 [DEBUG] [QUIC:3B07E1EC2B82A184] conn:   0: flags rs  ; seqno: 4; 445307CABAF10501
14:49:19.082 [DEBUG] [QUIC:3B07E1EC2B82A184] conn:   1: flags rsu ; seqno: 2; 3B07E1EC2B82A184
14:49:19.082 [DEBUG] [QUIC:3B07E1EC2B82A184] conn:   2: flags rs  ; seqno: 5; 8C98C4B28CA71594
14:49:19.082 [DEBUG] [QUIC:3B07E1EC2B82A184] conn:   3: flags rs  ; seqno: 3; F85E412E8568B67E
14:49:19.082 [DEBUG] [QUIC:3B07E1EC2B82A184] conn:   4: flags rs  ; seqno: 6; D888F39993258189
14:49:19.082 [DEBUG] [QUIC:3B07E1EC2B82A184] conn:   5: flags     ; <empty>
14:49:19.082 [DEBUG] [QUIC:3B07E1EC2B82A184] conn:   6: flags     ; <empty>
14:49:19.082 [DEBUG] [QUIC:3B07E1EC2B82A184] conn:   7: flags     ; <empty>

From the qlog you posted, quic-go sets a limit of 4, lsquic sends 5 connection IDs. It is therefore correct that quic-go closes the connection with an error. This looks like a bug in lsquic.

From the qlog you posted, quic-go sets a limit of 4, lsquic sends 5 connection IDs. It is therefore correct that quic-go closes the connection with an error. This looks like a bug in lsquic.

Thanks. I've created a related issue in lsquic.


Create and publish symbols nupkg

Types of Changes
Create and publish snupkg.
Prerequisites
Please make sure you can check the following two boxes:

[X] I have read the CONTRIBUTING document
[X] My code follows the code style of this project

Contribution Type
What types of changes does your code introduce? Put an x in all the boxes that apply:

[ ] Bug fix (non-breaking change which fixes an issue, please reference the issue id)
[ ] New feature (non-breaking change which adds functionality, make sure to open an associated issue first)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] My change requires a change to the documentation
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] All new and existing tests passed

Description
Create and publish snupkg.
Example: https://www.myget.org/feed/campersau/package/nuget/AngleSharp/0.16.1-alpha-27

Fixes https://github.com/AngleSharp/AngleSharp/issues/982

Strange here it did not push the snupkg automatically:
https://github.com/AngleSharp/AngleSharp/runs/2859635799?check_suite_focus=true#step:3:409
In my runs it worked:
https://github.com/campersau/AngleSharp/runs/2857608276?check_suite_focus=true#step:3:413

Looks like we need to set the Source to https://api.nuget.org/v3/index.json to upload symbols. @FlorianRappl should I do another PR for it?

Would be superb - thanks for your efforts @campersau !


Adding 4th device says failed to connect

When I try to add a 4th device it says failed to connect. I have confirmed that I can ping the ip address. Modbus is enabled on the raspberry pi. I used victron grafana docker and connected it via ip address and that worked it can pull data. I have restarted the raspberry pi and home assistant with no luck

I have enabled debug logging it say connection refused error 111 but the rapsberry pi does not show any errors on the modbus page


Add security policy and EOL info to older-versions

Reached out to @agup006 (Anurag Gupta) regarding security update support period for older releases and learned that security updates for older releases end three months after a new version is released. This change updates the older versions page to reflect this policy.
See https://deploy-preview-48--stoic-goldberg-e3a26b.netlify.app/announcements/older-versions/ for preview.
Bonus: corrected release dates for v2.1.1 and v2.1.2
Signed-off-by: Doupamo Eradiri<EMAIL_ADDRESS>

Closed and created new pull request after registering my github account to comply with Google's OSS policy


Hey, listen!

Fixed issue when gathering fastlane.verbose.log
Fixed issue when gathering fastlane.log
Fixed issue with retry

Have a nice weekend!

Lol. Thank you! Will test it out today. Have a great weekend 🏖🐐

Please make sure to not forget to update the PR title to the actual title 👍

It was a Legend of Zelda joke 😄


Need confirmation on brave zipkin working

Hi,
I am trying to use zipkin to trace the inter micro service calls.
my applications are based on Jersey (1)
I am doing following steps:

Zipkin services configured:

executing zipkin-collector-service
executing zipkin-query-service
executing zipkin-web

Configured brave to trace the application calls

Configured brave jersey implementation

initialized  com.github.kristofa.brave.jersey.ServletTraceFilter
configured ScribeSpanCollector in the ServletTraceFilter
added brave-jersey and brave-spancollector-scribe dependency

To verify the trace

I have configured request interceptors in my Jersey client

brave = builder.spanCollector(collector).traceFilters(Arrays. asList(new   FixedSampleRateTraceFilter(1))).build();
StringServiceNameProvider srvProvider = new StringServiceNameProvider("testClient");
SpanNameProvider snapProvider = new DefaultSpanNameProvider();
final Client client = ClientBuilder.newClient().register(new BraveClientRequestFilter(srvProvider, snapProvider, brave.clientRequestInterceptor()))
.register(new BraveClientResponseFilter(srvProvider, snapProvider, brave.clientResponseInterceptor())`
the trace which I am getting from this client do not have the traces from server.

So I wanted to understand following

Is  it the RESTAPI client registered span collector will collect all of the trace from server side and push it to zipkin collector service or each of the application/server configured with brave filter will send their trace to zipkin collector service through there own span collectors?
How the inter service call graph is generated in zipkin web UI? if each of the services will send their trace alone and not send the entire call graph? Or the client which consume the service will capture all of the call graph in its own span collector and push it to zipkin collector service?

Request you to please confirm on these concepts.

Hello,

Every client and server configured with the required interceptors / filters will push trace information to the zipkin collector service through their own SpanCollector instances.
Zipkin web is able to generate the full call graph because eventually all information (spans) get together in the same back-end store.

I would advise you to read the Architecture and Data Model sections of the zipkin.io website if you haven't done that yet.
I have no experience myself with using the jersey implementation. If you can't get the server side integration to work it might help if you make the code available.

Hi Kristofa,
Thanks for your reply!
I am attaching my sample Jersey application and modified brave-jersey along with this comment.

To initialize the server side servlet I have updated the web.xml to directly register the filer
Also to reduce the variable for troubleshooting the issue I have hard code the brave instance initialization and scribe span collector initialization in the brave-jersey filter itself.

package com.github.kristofa.brave.jersey;
@Singleton
public class ServletTraceFilter extends BraveServletFilter {
// create a servertracer
private static Brave brave = new Brave.Builder("myservicename").spanCollector(new ScribeSpanCollector("localhost", 9410)).traceFilters(Arrays. asList(new FixedSampleRateTraceFilter(1))).build();
private static SpanNameProvider spanNameProvider = new DefaultSpanNameProvider();
public ServletTraceFilter() {
	super(brave.serverRequestInterceptor(), brave.serverResponseInterceptor(), spanNameProvider);
  }

}

On application startup the filter is getting registered and on hit the API url it is getting triggered but the traces are not getting to zipkin collector service and hence not coming up in web-ui.

Request you help to troubleshoot the issue.

Thanks for your support!!

[brave-jersey.zip](https://github.com/openzipkin/brave/files/316280/brave-jersey.zip)
[jersey-app.zip](https://github.com/openzipkin/brave/files/316281/jersey-app.zip)

Closing this and creating a new one with screen shot and sample application.
Now the traces are being logged and can be seen from web ui but the tree structure is not getting generated.


Pass timestamp_column as a test param

Task Overview

Currently timestamp_column is the only configuration that is needed to be configured globally in the model config section (usually it's being configured in the properties.yml under elementary in the config tag).
Passing the timestamp_column as a test param will enable running multiple tests with different timestamp columns. For example running a test with updated_at column which represents the update time of the row or running a test with event_time which represents the time the event was sent.

Design

There are three main files where the test macros are implemented - test_table_anomalies.sql, test_column_anomalies.sql and test_all_columns_anomalies.sql (please note that currently there is some code duplication in these files and in the future we will probably fix it).

All of these test macros should receive a new parameter (defined at the end) with a default value 'none', called 'timestamp_column'.

In each test currently there are two lines of code which are responsible for extracting the timestamp_column from the global model config
{%- set table_config = elementary.get_table_config_from_graph(model) %}
{%- set timestamp_column = elementary.insensitive_get_dict_value(table_config, 'timestamp_column') %}

The macro 'get_table_config_from_graph' returns the timestamp_column and its normalized data type (called 'timestamp_column_data_type')

The following code in the macro 'get_table_config_from_graph' that is responsible for finding the timestamp column data type should be extracted to a macro called find_normalized_data_type_for_column -
{% set columns_from_relation = adapter.get_columns_in_relation(model_relation) %}                           {% if columns_from_relation and columns_from_relation is iterable %}                               {% for column_obj in columns_from_relation %}                                   {% if column_obj.column | lower == timestamp_column | lower %}                                       {% set timestamp_column_data_type = elementary.normalize_data_type(column_obj.dtype) %}

Then in the test itself if the received timestamp_column new param is not none, use this extracted macro to find the column normalized data type and pass this timestamp_column and timestamp_column_data_type to the relevant functions (get_is_column_timestamp, column_monitoring_query, table_monitoring_query).

If the timestamp_column is none, use the global timestamp column as it is implemented today

Added by @elongl in version 0.3.16 of the package.
Thanks @elongl :star2:


Add identity feature value to causal hover over

Description
Adding identity feature value to hover over in scatter plot in causal section.
Screenshot:-

Checklist

[ ] I have added screenshots above for all UI changes.
[ ] I have added e2e tests for all UI changes.
[ ] Documentation was updated if it was needed.

Codecov Report

Merging #1633 (c2dccb1) into main (7a94840) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1633   +/-   ##
=======================================
  Coverage   85.58%   85.58%
=======================================
  Files          58       58
  Lines        2977     2977
=======================================
  Hits         2548     2548
  Misses        429      429

Flag
Coverage Δ

unittests
85.58% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Google Play detects non-compliant code.

I've this package included in my App, Today I received an email from Google: "Your app contains content that doesn’t comply with the Device and Network Abuse policy. We found your app is using a non-compliant version of Huawei Mobile Services SDK which contains code to download or install applications from unknown sources outside of Google Play."
This can be solved, or I've to stop using this package?

Got the same issue today

Checking build.gradle, I saw a quite old dependency: com.huawei.hms:hwid:<IP_ADDRESS>0, the current version is: <IP_ADDRESS>1. I already had troubles with Android 12, where previous huawei_push package caused immediate app crash at start. I think that we have to ditch this package and find another method

Huawei has provided plugin to check hms-gms capability:
https://github.com/HMS-Core/hms-flutter-plugin/tree/master/flutter-hms-availability
You can also find plugin for other service which is up to date.
About the non-compliant issue, huawei team is analyzing reason now.
https://github.com/HMS-Core/hms-flutter-plugin/issues/175
I think there will be solution provided.

Huawei has provided Base (HMS Availability) flutter plugins new version for this issue. You can find the latest versions on: https://pub.dev/publishers/developer.huawei.com/packages


Springs.CurveLoop.Simplify

Hi Dimitar
I've been using this node for a while and it always worked perfectly. Now I am running it on Revit 2018 and Dynamo 1.3.1 and the node is failing. There is no error message and my coding isn't good enough to pin point the issue. However, I'm wondering if the issue is due to the new 'geometry working range' setting in Dynamo and the precision.
Thanks

I don't think anything on the Revit side will affect it - it's using only Dynamo entities. I last remember using it in 1.21, so it could be some minor change around the geometry in 1.3/ 1.31. I'll have a look this weekend.

@ParametricMonkey

does the below work for you:

and if not, what packages do you have installed

@dimven. No, neither work for me.

Here are the installed packages

@ksobon's archi-lab has a List class that is causing this:
https://github.com/ksobon/archilab_Grimshaw/blob/master/archilabTypes.cs/List/List.cs
As a quick fix, you'll need to prefix each "List" usage with "DSCore."

This seems to be a known issue that can't be resolved at this time:
https://github.com/DynamoDS/Dynamo/issues/7697
I'm in the process of fixing all namespace clashes and removing all references to the list class in all imperative blocks. I should have a new version out soon.

Could you give with ver. 121.0.2 ?

thanks @dimven. That seems to have worked.


Update to latest fabric?

I would prefer merging other upstream changes: https://github.com/FabricMC/fabric-example-mod/commit/453617dda05c92f6431bfaa053533f9b7b8d0ae2 as well, you can skip the Gradle bump (I'll do that myself) but everything else should be also included in here.


Adding authorization header to PHP file v2 Mailsend

Issue Summary
When replacing basic authentication with API key, it's resulting in a "Bad username/ password error". Unable to successfully add authorization header to PHP file (per support ticket 5279587) and require help configuring. See below code snippet currently used. Thank you.
Steps to Reproduce

Updated user / password with API credentials
Resulted in Bad Username / Password

Code Snippet
    $user='XXXX'; //sendgrid user
$pass='XXXX'; //sendgrid password

$url="https://api.sendgrid.com/api/mail.send.json";

$subject=urlencode($subject);
$body=urlencode($body);

$tos=vmail_mailparts($to);
$to=$tos['email'];
$toname=urlencode($tos['name']);

$froms=vmail_mailparts($from);
$from=$froms['email'];
$fromname=$froms['name'];

$data="api_user=$user&api_key=$pass&to=$to&subject=$subject&html=$body&from=$from";

if ($returnpath!='') $data.="&replyto=$returnpath";
if ($toname!='') $data.="&toname=$toname";
if ($fromname!='') $data.="&fromname=$fromname";

$curl=curl_init($url);
curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,0);
curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,0);
curl_setopt($curl,CURLOPT_POST,1);
curl_setopt($curl,CURLOPT_POSTFIELDS,$data);
$res=curl_exec($curl);

$obj=json_decode($res,1);

return $obj['message'];

Technical details:

sendgrid-php version: v2 mailsend
php version:

Hello @1stnamewalker,
Thanks for submitting a GitHub issue! We are very sorry that you are running into this problem. In order to better serve you, as this does not present itself as a library specific issue, we would like to ask that you reach out to our support team at https://support.sendgrid.com.
Thank you!
SendGrid DX Team

@thinkingserious I did reach out to support and they directed me here — can you please assist?

@thinkingserious I did reach out to support and they directed me here — can you please assist?


add iterator protocol

we should be able to wrap an ExactSizeIterator:
for item in Bar::from(some_vec.iter()) {
    do_stuff(item);
}

Hi, this sounds great and quite useful function. It's doable and I'll find a better way to make it happened in the near future!
Also, I'm really really sorry about the super lated respond. This was a toy project I made to "practice" my Rust programming skill and never thought it would be used widely (more than 7K downloads, that's crazy!). I believe currently progress is poorly implemented in both coding style and API design. So, yeah, after one years of practice, I strongly want to rewrite this library and see how much I could improve it in several way :)
Anyway, thanks for suggestion again!


Error with load_solution "failed to read inputs of provider operator"

from ansys.dpf import post
solution = post.load_solution("file.rst")

Traceback (most recent call last):
  File "c:/Users/d57151/Repos/Test/test_dpf_post.py", line 3, in <module>
    solution = post.load_solution("Blisk.rst")
  File "C:\Users\d57151\Miniconda3\envs\pyansys\lib\site-packages\ansys\dpf\post\post_utility.py", line 29, in load_solution
    _model = Model(data_sources)
  File "C:\Users\d57151\Miniconda3\envs\pyansys\lib\site-packages\ansys\dpf\core\model.py", line 52, in __init__
    self._metadata = Metadata(data_sources, self._server)
  File "C:\Users\d57151\Miniconda3\envs\pyansys\lib\site-packages\ansys\dpf\core\model.py", line 229, in __init__
    self._cache_result_info()
  File "C:\Users\d57151\Miniconda3\envs\pyansys\lib\site-packages\ansys\dpf\core\model.py", line 233, in _cache_result_info
    self.result_info = self._load_result_info()
  File "C:\Users\d57151\Miniconda3\envs\pyansys\lib\site-packages\ansys\dpf\core\model.py", line 351, in _load_result_info
    result_info = op.get_output(0, types.result_info)
  File "C:\Users\d57151\Miniconda3\envs\pyansys\lib\site-packages\ansys\dpf\core\errors.py", line 103, in wrapper
    raise DPFServerException(details) from None
ansys.dpf.core.errors.DPFServerException: ResultInfoProvider<-mapdl::rst::ResultInfoProvider<-mapdl::rst::ResultInfoProvider<-TimeFreqSupportProvider<-mapdl::rst::TimeFreqSupportProvider<-mapdl::rst::TimeFreqSupportProvider<-Unable to open the following file: file.rst, failed to read inputs of provider operator

The file is readable with this
from ansys.mapdl import reader as pymapdl_reader
rst = pymapdl_reader.read_binary("file.rst")
rst.plot_principal_nodal_stress(rnum=0, comp="SEQV")

file.zip

Try using an absolute file path when loading the file since the server doesn't know of the relative file location from python.
This is a feature we should add.

Absolute path seems to have fixed that issue because I am able to load "ASimpleBar.rst" from the example files.
But now I get this error (with my file.rst):
ansys.dpf.core.errors.DPFServerException: ResultInfo_GetUnitSystemName error : -Unknown exception occured-

@maxotar  please could you tell us what is the version of ansys.dpf.post that you are using?

@rlagha
ansys-dpf-core            0.3.0
ansys-dpf-post            0.2.0

@maxotar may I ask you to share your rst file if this is possible? I created a rst file without units but this worked on my side.

@rlagha The rst is zipped and in my first post. The rst is from a solved Workbench model.

thanks @maxotar for finding this, there is an issue in the server side, we will fix it and keep you updated.
As a workaround you can do it this way:
**import ansys.dpf.core as dpf
ds = dpf.DataSources(r"C:\temp\file.rst")
streamP = dpf.operators.metadata.streams_provider(ds)
s = dpf.operators.result.stress_von_mises()
s.inputs.streams_container.connect(streamP.outputs)
field = s.outputs.fields_container()[0]
field.data**
if you want to plot the countour:
meshP = dpf.operators.mesh.mesh_provider()
meshP.inputs.streams_container.connect(streamP.outputs)
mesh = meshP.outputs.mesh()
mesh.plot(field)
please do not hesitate if you have any question.

Hi @maxotar @rlagha . I could not reproduce the error with the latest versions of PyDPF-Core and PyDPF-Post so considering the date I assume this has been solved.
If OK with all I will be closing this issue.


Can't use ampersand.

I am trying to copy a URL to a config file and the "&" character and everything behind it gets cut off.
Example URL:  https://example.com/data/?id=6969&token=1A2B3C4D5E6F7G8H9
"--usedUrl=https://example.com/data/?id=6969&token=1A2B3C4D5E6F7G8H9"
The result is: https://example.com/data/?id=6969 and he rest behind it is missing.
I have tried using \& \\& wrapping the entire URL in "https://example.com/data/?id=6969&token=1A2B3C4D5E6F7G8H9\" and many combinations of it.

Hello, thank you for report, I will take a look what is going on as soon as I get free)

@TatsuUkraine I'm generating a dart class.

@DeepSeaPlain what OS are you using? I tried to run command with your value in the example project and all works

My Platform is Windows.
I'm using a yaml file to generate a dart class.
var arguments = [
'--var1=${package.var1}',
'--var2=${package.var2}',
'--var3=${package.var3}',
];
Im using the command:
Process.runSync(
'flutter.bat',
arguments,
runInShell: false,
);
It gets cut off when im running it with Proccess.runSync()

Ok, I will try to create shell file. Could you try to run generate command straight from the terminal? I'm just thinking that it may not necessary related to the package, but simply because something happens with the value when you passing it in *.bat file.

Maybe you need to encode URI string before you passing it in bat file? It's just an assumption, since I don't have windows to check if it works(

Another option probably (if you didn't try it yet), wrap value with quotes
var arguments = [
'pub',
'run',
'environment_config:generate',
'--config=some_config.yaml',
'--var1="${package.var1}"',
'--var2="${package.var2}"',
'--var3="${package.var3}"',
];


Use "AG-xx" or "AG xx"?

The standard number is rendered in the top-right of the document e.g. "SMPTE AG 18".
However, it is often common practice to use the form "AG-18" for AGs i.e. with a hyphen.
The definition in AG 02 gives the un-hyphenated form.
However, the hyphenated form is used on https://www.smpte.org/2020-standard-policies-and-governance (which links to all the rendered AGs).
And AG 02 itself refers to "AG-03" and "AG-04"...
Should the un-hyphenated form be used throughout?

Should the un-hyphenated form be used throughout?

Yes in my opinion, just like ST 2001 is not written ST-2001.


yii session is not active when log message to file

Hi,
I find that yii session component is inactive when the work flow process to log messages. In file yii/web/log/Target.php, line 286:
 $sessionID = $session && $session->getIsActive() ? $session->getId() : '-';

The asset $session->getIsActive() always returns false and thus sessionID is '-' in the log files. Where in controllers, function getIsActive returns true. I guest that session component calls close() method before logger logs messages.

I can confirm it with dbTarget:

Unable to reproduce.
Creating and accessing following controller action:
public function actionLog()
{
    Yii::$app->session->open();
    Yii::error('testlog');
    return 'logged';
}

produces valid log results:
2015-04-24 13:47:53 [<IP_ADDRESS>][-][juiqkaoo19h7ogis0lpafd2325][error][application] testlog

No, issue confirmed.

See #8174


Assessment: Refactor tutor complaint side

Checklist
General

[ ] I tested all changes and their related features with all corresponding user types on a test server.
[ ] This is a small issue that I tested locally and was confirmed by another developer on a test server
[ ] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.

Server

[ ] I followed the coding and design guidelines.
[ ] I added multiple integration tests (Spring) related to the features (with a high test coverage).
[ ] I added @PreAuthorize and checked the course groups for all new REST Calls (security).
[ ] I implemented the changes with a good performance and prevented too many database calls.
[ ] I documented the Java code using JavaDoc style.

Client

[ ] I followed the coding and design guidelines.
[ ] I added multiple integration tests (Jest) related to the features (with a high test coverage), while following the test guidelines.
[ ] I added authorities to all new routes and checked the course groups for displaying navigation elements (links, buttons).
[ ] I documented the TypeScript code using JSDoc style.
[ ] I added multiple screenshots/screencasts of my UI changes.
[ ] I translated all newly inserted strings into English and German.

Changes affecting Programming Exercises

[ ] I tested all changes and their related features with all corresponding user types on Test Server 1 (Atlassian Suite).
[ ] I tested all changes and their related features with all corresponding user types on Test Server 2 (Jenkins and Gitlab).

Motivation and Context

Description

Steps for Testing

Prerequisites:

1 Instructor
2 Students
1 Programming Exercise with Complaints enabled

Log in to Artemis
Navigate to Course Administration
...

Review Progress

Code Review

[ ] Review 1
[ ] Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Test Coverage

Screenshots

Currently, no further resources for this refactoring.


[Python] Build & Test with PyPy

At the moment, we only build with CPython in our CI matrix and only do releases for it. As reported in https://github.com/apache/arrow/issues/2089#issuecomment-393126040 not everything is working yet. This may either be due to problems on our or PyPy's side.
Reporter: Uwe Korn / @xhochy
Assignee: Matti Picus
PRs and other links:

GitHub Pull Request #14539

Note: This issue was originally created as ARROW-2651. Please see the migration documentation for further details.

Also see the failing conda-forge build for PyPy 3.8, 3.9 conda-forge/arrow-cpp-feedstock#717

What is the easiest way to build/test Arrow with PyPy on Ubuntu22.04? Is there a recipe somewhere?

What is the easiest way to build/test Arrow with PyPy on Ubuntu22.04? Is there a recipe somewhere?

@mattip as far as I know, no one has successfully done this.

Is there a way to build and test a CPython version?

Is there a way to build and test a CPython version?

I'm not entirely sure I understand.
Arrow is built today with cython (and both Arrow and cython use CPython).  The instructions on how to build and test are here.
The ask here is (I think) to use Arrow-C++ in a PyPy project and then have that project speak with pyarrow.  However, since this issue has been filed, we have come a lot further on the C data API, which is generally a better way to solve this problem.
flowchart TD
    A[Python Interpreter] --> B
    A --> C
    B[pymylib] -->|pybind11| E
    C[pyarrow] -->|cython| D
    D[Arrow-C++]
    E[MyC++Lib] --> F
    F[Arrow-C++]

In the above case, to move data from MyC++Lib to pyarrow you should export the data using the C data interface (since you're using Arrow-C++ you can use arrow::ExportArray in bridge.h.  Then you can pass that pointer along to pyarrow and call pyarrow.Array._import_from_c to get a pyarrow Arrow.
Since the above should work pretty well, there is not much motivation to try and integrate Arrow-C++ into pybind11 directly.


UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from v3.16 to before v4.4.276",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=058504edd02667eef8fac9be27ab3ea74332e9b4",
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3533e50cbee8ff086bfa04176ac42a01ee3db37d"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "058504edd02667eef8fac9be27ab3ea74332e9b4",
      "note": "introduced"
    },
    {
      "type": "commit",
      "value": "3533e50cbee8ff086bfa04176ac42a01ee3db37d",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "seq_file: disallow extremely large seq buffer allocations\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v4.4.276 by commit 3533e50cbee8ff086bfa04176ac42a01ee3db37d, it was introduced in version v3.16 by commit 058504edd02667eef8fac9be27ab3ea74332e9b4. For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1001472


Clear mBytesToByteBuffer to prevent out of memory exceptions

Currently when stopping and starting the camera multiple times on the same screen you will run into a OOM exception because mBytesToByteBuffer grows by each start. Clearing the buffer when stoping prevents this.

I signed It!

Need to recreate the PR as the email associated with that commit is not recognized by the github cla page.


Promote panel changes

This is in conjunction with PR #6774
This new documentation references new changes that are reflected in this PR.

Awesome, thanks for checking this out @tomdyson
I'll merge in that docs PR into this one and reconnect with that team around wording and clarity.

Notes for @phildexter and @LisaBallam — we should make it extra clear in the docs that the Title tag and Meta description are the responsibility of the developer. The rationale is: just because it's what wagtail suggests, doesn't mean the developers will necessarily follow that guideline, or that it will "just magically work".

@tomdyson I guess you're talking here about search on the frontend of the website?
Here I think I (we) meant, search engines such as google or bing. These things should get picked up automatically I think?

Here I think I (we) meant, search engines such as google or bing. These things should get picked up automatically I think?

No, they won't get picked up automatically - that's the point I want to make. Setting them in the back end has no effect unless a front-end developer (either using Wagtail templates, or possibly something completely separate in the case of a headless site) chooses to output them with the appropriate <meta name="description" ...> etc. tags.

I see, thanks Tom. I'll make some amends to the docs!

This has been updated now @tomdyson and ready for your re-review.


Favicon is Missing

Favicon is not showing up on final build

Favicon was accidently moved to assets folder
fixed


Hotloading imported css styles

At the moment it seems that the post-css loader combined with ReactHotLoader and the postcss-import plugin does not auto-reload any stylesheets that get imported in a main css file.
I've created an example case in the following repo:
https://github.com/0nn0/hotloader-postcss-imports/tree/postcss-import-plugin
You can produce the problem using the following steps.

Check out Branch postcss-import-plugin
Run npm install
Run npm run start
Open http://localhost:3000/
Change background-color in styles.css (change will be directly visible)
Change background-color in component.css (change will NOT be visible until you restart the app)

Is there a way that this can be solved?
@MoOx offered a suggestion here that the postcss-loader perhaps can make use of onImport like here if postcss-import is detected?
https://github.com/postcss/postcss-import/issues/40

Sorry, but I am not webpack user anymore, so I have no skills to fix hotloading.
@0nn0 maybe you can ask somebody in webpack team?

Hi @gaearon, do you by any chance have an idea how solve solve this problem?
I've checked other repo's like react-hot-postcss-boilerplate, but haven't found one that has this workflow with webpack, postcss and react hotloader working...

I checked it out but I can't figure out what exactly postcss-import plugin does and how it's different from running without it :-(.
Does it make a real difference, or is it an optimization? Do you need it enabled in development?

@0nn0 I think postcss-import is a bad way to use postcss-loader. Webpack already has good dependency system. So it is better to load CSS dependencies by webpack.

I think the problem is that Webpack is ignorant of PostCSS dependencies. Generally loaders should tell Webpack what files the processed file depends on, so that when dependant files change, the parent is recompiled. addDependency might (or might not :-) be the API for this.
I don't know if PostCSS exposes the dependency tree after compiling a file. If not, there's no way to make postcss-import work with hot reloading because Webpack is unaware of internal dependencies.

Maybe we can ask postcss-import team for some config to set addDependency, but it seems like to complicated. I really doesn’t see a point of using postcss-import when you have webpack to concat files.

Agreed, this seems like overcomplication.

I will add some notice about postcss-import to this project README.md

Don't do that. postcss-import can already handle this. Like said in the description or the linked issue, cssnext-loader already handle this using postcss-import onImport option.
css-loader (which handle import) is using an old and deprecated parser and break in a multitudes of cases if it is run before postcss/cssnext-loader.
So, since this can be handled here (like cssnext-loader does) you should totally handle it in this loader.

@MoOx yeap, css-loader is one of the reason why I migrated away from webpack. But postcss-import will not fix issue, because anyway some files will be processed by css-loader.
@MoOx can you set a PR with recommendations for postcss-import users? What onImport they need to set?

@gaearon BTW, wh webpack uses so bad parser in css-loader and not PostCSS parser?
For example, PostCSS parser has a safe mode to load legacy CSS with any mistakes.

@gaearon BTW, why webpack uses so bad parser in css-loader and not PostCSS parser?

I can't speak for @sokra but I'm sure that it is only for historical reasons? If you port it to use a better parser, I think that would be awesome.

This has already been mentioned here https://github.com/webpack/css-loader/issues/36
@ai I don't really know what they should put in onImport, probably something like this https://github.com/cssnext/cssnext-loader/blob/c7b79f5281a5e63adca933fc4ec434f965e686e3/index.js#L25-L27 and chaging this by webpack. This need some work to try and check it works.

Without the use of the postcss-import plugin the reloading does work, however then the PostCSS plugins get applied solely to the main stylesheet (styles.css) but to none of the css files that get imported in there (component.css). You can see that in the postcss branch.

Indeed. And you cannot use postcss after css-loader since this one return js code. So this must be handled when calling postcss-loader.

Released in 0.5

Seems like you forgot to publish new version to npm.

@faergeek oops :) fixed

Did anyone test that this worked? I don't think it's working for me.

@matthewmueller do you use postcss-import? Do you add hook for it from docs?

correction: it works, sort of. if there's a syntax error, it stops compiling and you have to restart the webpack server.

Open a new issue with all output and plugin list

I'm having a bit of trouble getting webpack to watch the imported css files. They're being processed on the first run, but webpack does not recompile when I modify these files.
I have a colors.css with some vars (w/ postcss-simple-vars) that I want to import in my other css files to use the $vars. Like in a SCSS project. So I set up my webpack config with postcss and postcss-import and everything is working as expected, except for the file watch on my color.css.
Here is my postcss config:
  config.postcss = function(webp) {
    let cssnanoOpt = {
      discardUnused: false,
      zindex: false
    };
    let rucksackOpt = { autoprefixer: true };

    let devPlugins = [
      postcssImport({ addDependencyTo: webp }),
      mixins,
      nested,
      simpleVars,
      rucksack(rucksackOpt),
      cssnext
    ];
    let prodPlugins = [cssnano(cssnanoOpt)];

    let plugins;
    if (BUILD) {
      plugins = devPlugins;
    } else {
      plugins = devPlugins.concat(prodPlugins);
    }

    return plugins;
  };

Any hints on what I'm doing wrong?

Do you use style-loader?

Yes, with extract-text-webpack-plugin. But I disable the extract-text plugin in development for hot loading.
  const cssLoader = {
    test: /\.css$/,
    // Reference: https://github.com/webpack/extract-text-webpack-plugin
    // Extract css files in production builds
    //
    // Reference: https://github.com/webpack/style-loader
    // Use style-loader in development for hot-loading
    loader: ExtractTextPlugin.extract('style', 'css?sourceMap!postcss'),
  };

Can you show how you disable the ExtractTextPlugin ?

I've set up a repo where you can reproduce this behavior: https://github.com/luisfontes/webpack-postcss-import-hotload
Just npm install and npm run dev. Thanks for the help :+1:

@luisfontes I had also issues and I realized that it only works if this line postcssImport({addDependencyTo: webpack}), is the first in the array of
postcss: function(webpack) {
    return []

In my case I use cssnext and autoprefixer and the postcssImport need to be the first entry!

Reminders:

it's mentionned as the first note in bold https://github.com/postcss/postcss-import#readme
cssnext includes autoprefixer.

@MoOx
Oh, you're right about the first note in bold.
I meant cssnext and precss, not autoprefixer, thanks :)
@luisfontes
I checked out the repo, there are really lot of plugins, It think you need to turn some of them off to figure out which is not working in combination with postcss/potscss-import

+6 months and precss still does not support this.  Ridiculous  😠

Use<EMAIL_ADDRESS>(https://github.com/postcss/postcss-import/issues/207)

@mummybot It does not work for me, I'm using<EMAIL_ADDRESS>and<EMAIL_ADDRESS>does this matter?

@hustcer yeap, webpack 2 issue is here https://github.com/postcss/postcss-loader/issues/92

@ai Thanks, maybe I have to wait.


Add category support

Add categories sorting for posts and show category w/ upvote count in post details.

Categories sorting is useless as posts other than tech category are very rare. Thus instead of using only tech category, which is currently used btw, the application should use all for the category to show all of the posts irrespective of their categories.


LocalPartitionTest.blockingOnLocalExchangeQueue fails in CircleCI

Bug description
https://app.circleci.com/pipelines/github/facebookincubator/velox/24879/workflows/432bdb69-b5be-40c4-880d-b492423a4806/jobs/157735/tests#failed-test-0
System information
CircleCI
Relevant logs
../../velox/exec/tests/LocalPartitionTest.cpp:339
Expected equality of these values:
  exec::toPlanStats(task->taskStats()) .at(nodeId) .customStats["blockedWaitForConsumerTimes"] .sum
    Which is: 0
  test.numBlocked
    Which is: 1
Google Test trace:
../../velox/exec/tests/LocalPartitionTest.cpp:317: inputBatchBytes: 98208, numBlocked: 1

I cannot reproduce this error on devserver.


Base DNS server implementation

For trello backlog item: https://trello.com/c/DrlOCEm9
Uses 3rd party library from https://github.com/kapetan/dns (nuget package)
Given some deficiencies in the library, the DnsServer class has been rewritten to allow a custom master file and to support dig DNS requests (which it failed with during integration testing).
Updates DnsFeature to start the DNS server and restart it if it fails, also responds to the cancellation token ApplicationStopping in the INodeLifetime object.
Updates to NodeSettings to support dnslistenport and dnsfullnode options
Updates to DataFolders to support a location for the cached DNS masterfile
Added DnsSeedServer class (and interfaces) that implements DNS request resolver using 3rd party library
Added DnsSeedUdpClient class (and interfaces) to wrap the .NET UdpClient class to make the DnsSeedServer class unit testable
Added unit tests
Added code to register services for the DnsFeature when building the full node

 [DNS] Integrate embedded DNS service

I've got it.

That looks really good.
What's going to be the format of the masterfile.dat file?

if it's going to be a json file, you can probably use Stratis.Bitcoin.Utilities.FileStorage.FileStorage (hmm why is the namespace like that?).

Actually likely to be a JSON file now so extension may well change to reflect that.

James is working on the load/save functionality so will let him know.

Thanks.
Comment for next PR: add dots at the end of comments.
@dangershony do you want to have a quick look before I push this in?

Ok, will do.

hmm why is the namespace like that?

@bokobza, fixed that and some others, here is the PR

Thanks @noescape00 :-)


DATE comparison in WHERE does not work as expected

OrientDB Version: 3.0.14
OS: Mac OS X 10.14.2
Expected behavior
SELECT dateField FROM TableA WHERE dateField=date("2019-02-01 05:00:00.000", "yyyy-MM-dd HH:mm:ss.SSS", "UTC")
Some of the records has value in field dateField = "2019-02-01T05:00:00.000Z", so these records should be found.
My config
timezone = GMT-05:00
dateTimeFormat = yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
dateFormat = yyyy-MM-dd
Btw.. this "date("2019-02-01 05:00:00.000", "yyyy-MM-dd HH:mm:ss.SSS", "UTC")" is generated using "orientjs".
Actual behavior
But : Query executed in 0.064 sec. Returned 0 record(s).
Thanks.

Hi @petervavro
I did the following
create class TableA
create property TableA.dateField DATETIME

insert into TableA set dateField = date("2019-02-01 05:00:00.000", "yyyy-MM-dd HH:mm:ss.SSS", "UTC")
SELECT dateField FROM TableA WHERE dateField=date("2019-02-01 05:00:00.000", "yyyy-MM-dd HH:mm:ss.SSS", "UTC")

and it seems to work fine. I also tried to define an index on dateField and it still works fine.
Any clue on how to reproduce?
Thanks
Luigi

But, I'm inserting DATETIME following way :
insert into TableA set dateField = DATE("2019-02-05T05:00:00.000Z")
I guess my problem here is the timezone. I am inserting time in default DB timezone "GMT-05:00" and then I am trying to compare it against "GMT-00:00" ? Might this be my case ?

Hi @petervavro
yes, I'd say it could be the case
Thanks
Luigi


question about your demo

I running your web demo of face verification. And there have two result which are sim old and sim new. what is that meaning?

@DickyQi They are different mapping strategies from cos distance to similarity score of two faces.

could you share those kind of strategies? It is very interesting result for me.

Thank you for attention, you can refer to #11.


It is not possible to customize the extraction of the properties of a pojo that is represented as a model

Describe the bug
BeanUtils creates a new ObjectMapper in method extractProperties. Since this ObjectMapper is not configured with JavaTimeModule, it throws exceptions on Java 8 date/time classes.
java.lang.IllegalArgumentException: Java 8 date/time type java.time.LocalDate not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (through reference chain: com.swacorp.cbna.poc.documentdb.adapter.primary.rest.resource.LineSolutionResource["startDate"])
To Reproduce
Return an object that contains a property of LocalDate
Expected behavior
I would expect that this class would use the configured ObjectMapper.
Environment:

Spring HATEOAS Siren version 1.2.0
Spring Boot version 2.5.2
Spring Framework version 5.3.8

Hi @marcuslange! Thank you for creating the ticket. I will look at the problem in detail and then give you feedback. :)

@marcuslange You can expect to get this bug fixed this weekend! :)

Hey @marcuslange, I just took a closer look at the problem.
I haven't quite understood the behavior yet. But it looks like you just need to make sure that the library mentioned in the error message is part of the classpath. It doesn't seem to be necessary to explicitly configure the ObjectMapper you mentioned, which is used in the BeanUtils class.
I have adapted the corresponding samples project here so that the data model there uses a property of type LocalDate. The samples project uses the current SNAPSHOT version of the Spring HATEOAS Siren library (which I did not change yet). The Samples project contains the library mentioned in the error message in the classpath. When I remove the library from the classpath, I get an error message similar to the one you got.
So can you please first check if your project has the library mentioned in the error message in the classpath? And can you please add the library to the classpath if not and check again how the project behaves?

I just verified that the fat jar does contain the jsr310 jar. I did notice that I use the hateoas starter and that you are not. I changed that, and am still receiving the same error.
this is my current deps set up:
		                 implementation(platform("org.springframework.boot:spring-boot-dependencies:${springBootV}")) 		compileOnly(platform("org.springframework.boot:spring-boot-dependencies:${springBootV}")) 		annotationProcessor(platform("org.springframework.boot:spring-boot-dependencies:${springBootV}")) 		implementation 'org.springframework.boot:spring-boot-starter-data-jdbc' 		implementation 'org.springframework.boot:spring-boot-starter-web' 		implementation 'org.springframework.hateoas:spring-hateoas' 		implementation 'org.springframework.boot:spring-boot-starter-actuator' 		implementation 'de.ingogriebsch.hateoas:spring-hateoas-siren:1.2.0' 		implementation 'org.springframework.boot:spring-boot-starter-aop' 		implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310' 		implementation 'org.flywaydb:flyway-core' 		implementation 'javax.inject:javax.inject:1' 		compileOnly 'org.projectlombok:lombok' 		runtimeOnly 'org.postgresql:postgresql' 		annotationProcessor 'org.projectlombok:lombok' 		testImplementation 'org.springframework.boot:spring-boot-starter-test'

I pulled the code and tested locally.
Adding .findAndRegisterModules() fixed the issue in my configuration. Below are the changes to BeanUtils.
`
static Map<String, Object> extractProperties(Object object, String... excludes) {
Map<String, Object> properties = new ObjectMapper()
.findAndRegisterModules()
.convertValue(object, new TypeReference<Map<String, Object>>() {
});
    for (String exclude : excludes) {
        properties.remove(exclude);
    }

    return properties;
}

`

Hey @marcuslange I still do not completely understand the root of the problem. Using the starter mainly helps to ease which dependencies are part of your project. In this case it should not make a difference if the starter is used or not because the starter is not responsible for adding Jackson related dependencies to a project.
But even if I still need to understand why my samples project is working without any code change but yours is not, I refactored the code so that is is now using an ObjectMapper instance that can be customized by the client.
Means, you can add a @Bean of type SirenConfiguration to your application-context and use method withObjectMapperCustomizer to customize the ObjectMapper instance that is used to extract the properties.
You should be able to request the latest SNAPSHOT dependency from the SonaType Snapshots Repository.
It would be really nice if you would let me know if this approach works for you! :)

Hey @marcuslange I would like to ask if you already had the chance to check if the current SNAPSHOT is working fine for you. It would be really nice to hear from you! :)

Hey @marcuslange do you have any feedback for me?

Sorry to leave you hanging. We decided not to use siren. There an issue with the specification that HAL-Forms solved, so went that direction.

Done!


Update issue list when done creating an issue

When I add issues using GitPoint, I have to exit to the repo landing page and then click on “view all issues” again. It should auto update the list once one is created because for convenience and because someone might think it didn’t accept the issue.

AFAIK this was already fixed in #236
After submitting a new issue, you have to go back to the repo landing page, the issue list can't be displayed before that.


FIX RandomApply probability (p versus 1-p)

RandomApply should apply randomly a list of transformations with a given probability p.
But with the previous implementation, the probability was (1-p).
It is also more consistent to other random transformations.

You're absolutely right, sorry.

No worries, thanks for the PR anyway! :-)


feat: postgrest-js 1.17.0

No changes in code, just uses a stable version of postgrest-js in preparation for a new stable version on supabase-js

Pull Request Test Coverage Report for Build<PHONE_NUMBER>4
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 66.038%

Totals

Change from base Build<PHONE_NUMBER>7:
0.0%

Covered Lines:
99

Relevant Lines:
129

💛  - Coveralls


Add leaderElection.namespace option to helm chart

What this PR does / why we need it:
Previously, a ConfigMap in the kube-system namespace was used to perform leader election. This updates the chart to use the same namespace as cert-manager is deployed into for leader election.
Release note:
Use cert-manager deployment namespace by default for leader election

Cancelling lgtm to save retests until LE staging outage is resolved this evening
/lgtm cancel

/retest

/retest


Magic AI Configuration is disable, still we are able to see the Magic AI details in Products Descriptions and UI is not appropriate.

Terms

[X] Before you openning this issue, i have checked if the issue has already been reported.

Bagisto Version(s) affected
2.0.0
Issue Description
When we check the magic AI options, there we have disabled the Feature and when we check the admin end Products description,  , there we can see that the Magic AI option is still appearing and also the UI is not appropriate.
Preconditions

Admin Should be Logged In.

Steps to reproduce

Go to Admin -> Configure -> General -> Magic AI -> Status -> Disable -> Save.
Go to Catalog -> Products -> Create/Edit any product -> Check the Magic AI option.
It should not appear if the feature is disabled.

Expected Result
It should be disable when the feature is  not active and also if enabled UI should be accurate.
Actual Result
Currently we can see that the UI is not apparopriate and also the It should be disabled when not in use.
Screenshots
Admin End  - https://prnt.sc/fapLo45UVK0P
Product Page - https://prnt.sc/yvrf6G8Dvjw1
Additional context
No response

Duplicate of #9077


Error parsing triggers: Cannot find module 'modelo'

I am getting a very weird issue while trying to run the sample for stripe-firebase
I have spent hours searching for this but I cant find that I have used 'modelo' module anywhere. I am really stuck.
I simply used the index.js , package.json file that was used in the example, recreated my directory but the same error again.

Seams it was a problem with my npm installation.


Stuck in "Checking for heartbeat"

after I installed the helm chart, it seems there is no data sent by my pod
following is the log

<IP_ADDRESS> - - [26/Oct/2022:09:02:26 +0000] "GET /api/health HTTP/1.1" 200 74 "-" "kube-probe/1.23+" 2
<IP_ADDRESS> - - [26/Oct/2022:09:02:36 +0000] "GET /api/health HTTP/1.1" 200 74 "-" "kube-probe/1.23+" 4
<IP_ADDRESS> - - [26/Oct/2022:09:02:46 +0000] "GET /api/health HTTP/1.1" 200 74 "-" "kube-probe/1.23+" 2
2022-10-26 09:02:50,532 [healthMonitor-8] INFO  io.harness.delegate.service.DelegateAgentServiceImpl - Current performance [cpu-system=2.08, taskExecutor=0, maxExecutingTasksCount=0, non-heap-max=-1, heap-committed=504889344, heap-used=129583616, timeoutEnforcement=0, non-heap-used=158070816, cpu-process=2.09, maxExecutingFuturesCount=0, heap-max=3817865216, maxValidatingTasksCount=0, non-heap-init=7667712, heap-init=67108864, non-heap-committed=162177024]
2022-10-26 09:02:50,727 [healthMonitor-1] INFO  io.harness.delegate.service.DelegateAgentServiceImpl - Delegate bAGykrtdTFS9uERV-ZkQxA received heartbeat response 0s after sending. 50s since last response.
<IP_ADDRESS> - - [26/Oct/2022:09:02:56 +0000] "GET /api/health HTTP/1.1" 200 74 "-" "kube-probe/1.23+" 3
2022-10-26 09:03:00,840 [ChronicleQueueMonitor RUNNING] INFO  io.harness.event.client.impl.appender.ChronicleQueueMonitor - eventQueue fileCount: 0
2022-10-26 09:03:01,826 [ChronicleEventTailer RUNNING] INFO  io.harness.event.client.impl.tailer.ChronicleEventTailer - Checking for messages to publish
2022-10-26 09:03:01,826 [ChronicleEventTailer RUNNING] INFO  io.harness.event.client.impl.tailer.ChronicleEventTailer - Reached end of queue
2022-10-26 09:03:01,827 [ChronicleEventTailer RUNNING] INFO  io.harness.event.client.impl.tailer.ChronicleEventTailer - Skipping message publish as batch is empty
2022-10-26 09:03:01,827 [ChronicleEventTailer RUNNING] INFO  io.harness.event.client.impl.tailer.ChronicleEventTailer - index.read-tailer=0,  index.sent-tailer=0, index.end=0, excerptCount=0
2022-10-26 09:03:01,827 [ChronicleEventTailer RUNNING] INFO  io.harness.event.client.impl.tailer.FileDeletionManager - Checking for old queue files to be deleted
2022-10-26 09:03:03,779 [PerpetualTaskWorkerService RUNNING] INFO  io.harness.perpetualtask.PerpetualTaskWorker - Refreshed list of assigned perpetual tasks for accountId Xo07yMluSv6em7Saw75oiw, []
<IP_ADDRESS> - - [26/Oct/2022:09:03:06 +0000] "GET /api/health HTTP/1.1" 200 74 "-" "kube-probe/1.23+" 3
<IP_ADDRESS> - - [26/Oct/2022:09:03:16 +0000] "GET /api/health HTTP/1.1" 200 74 "-" "kube-probe/1.23+" 3
<IP_ADDRESS> - - [26/Oct/2022:09:03:26 +0000] "GET /api/health HTTP/1.1" 200 74 "-" "kube-probe/1.23+" 3
<IP_ADDRESS> - - [26/Oct/2022:09:03:36 +0000] "GET /api/health HTTP/1.1" 200 74 "-" "kube-probe/1.23+" 3
2022-10-26 09:03:40,532 [healthMonitor-8] INFO  io.harness.delegate.service.DelegateAgentServiceImpl - Current performance [cpu-system=2.61, taskExecutor=0, maxExecutingTasksCount=0, non-heap-max=-1, heap-committed=504889344, heap-used=132746400, timeoutEnforcement=0, non-heap-used=158430704, cpu-process=2.61, maxExecutingFuturesCount=0, heap-max=3817865216, maxValidatingTasksCount=0, non-heap-init=7667712, heap-init=67108864, non-heap-committed=162701312]
2022-10-26 09:03:40,721 [healthMonitor-10] INFO  io.harness.delegate.service.DelegateAgentServiceImpl - Delegate bAGykrtdTFS9uERV-ZkQxA received heartbeat response 0s after sending. 49s since last response.

<IP_ADDRESS> - - [26/Oct/2022:09:03:46 +0000] "GET /api/health HTTP/1.1" 200 74 "-" "kube-probe/1.23+" 2
<IP_ADDRESS> - - [26/Oct/2022:09:03:56 +0000] "GET /api/health HTTP/1.1" 200 74 "-" "kube-probe/1.23+" 3
2022-10-26 09:04:00,841 [ChronicleQueueMonitor RUNNING] INFO  io.harness.event.client.impl.appender.ChronicleQueueMonitor - eventQueue fileCount: 0
2022-10-26 09:04:01,846 [ChronicleEventTailer RUNNING] INFO  io.harness.event.client.impl.tailer.ChronicleEventTailer - Checking for messages to publish
2022-10-26 09:04:01,847 [ChronicleEventTailer RUNNING] INFO  io.harness.event.client.impl.tailer.ChronicleEventTailer - Reached end of queue
2022-10-26 09:04:01,847 [ChronicleEventTailer RUNNING] INFO  io.harness.event.client.impl.tailer.ChronicleEventTailer - Skipping message publish as batch is empty
2022-10-26 09:04:01,847 [ChronicleEventTailer RUNNING] INFO  io.harness.event.client.impl.tailer.ChronicleEventTailer - index.read-tailer=0,  index.sent-tailer=0, index.end=0, excerptCount=0
2022-10-26 09:04:01,847 [ChronicleEventTailer RUNNING] INFO  io.harness.event.client.impl.tailer.FileDeletionManager - Checking for old queue files to be deleted
<IP_ADDRESS> - - [26/Oct/2022:09:04:06 +0000] "GET /api/health HTTP/1.1" 200 74 "-" "kube-probe/1.23+" 2
<IP_ADDRESS> - - [26/Oct/2022:09:04:16 +0000] "GET /api/health HTTP/1.1" 200 74 "-" "kube-probe/1.23+" 3
<IP_ADDRESS> - - [26/Oct/2022:09:04:26 +0000] "GET /api/health HTTP/1.1" 200 74 "-" "kube-probe/1.23+" 2
2022-10-26 09:04:30,532 [healthMonitor-8] INFO  io.harness.delegate.service.DelegateAgentServiceImpl - Current performance [cpu-system=2.21, taskExecutor=0, maxExecutingTasksCount=0, non-heap-max=-1, heap-committed=504889344, heap-used=133545304, timeoutEnforcement=0, non-heap-used=158618000, cpu-process=2.19, maxExecutingFuturesCount=0, heap-max=3817865216, maxValidatingTasksCount=0, non-heap-init=7667712, heap-init=67108864, non-heap-committed=162832384]
2022-10-26 09:04:30,721 [healthMonitor-12] INFO  io.harness.delegate.service.DelegateAgentServiceImpl - Delegate bAGykrtdTFS9uERV-ZkQxA received heartbeat response 0s after sending. 50s since last response.
<IP_ADDRESS> - - [26/Oct/2022:09:04:36 +0000] "GET /api/health HTTP/1.1" 200 74 "-" "kube-probe/1.23+" 2
<IP_ADDRESS> - - [26/Oct/2022:09:04:46 +0000] "GET /api/health HTTP/1.1" 200 74 "-" "kube-probe/1.23+" 2
2022-10-26 09:04:53,845 [delegate-file-manager] INFO  io.harness.delegate.service.DelegateFileManagerImpl - Max Cached Artifacts from Delegate Configuration: 2
2022-10-26 09:04:53,845 [delegate-file-manager] INFO  io.harness.delegate.service.DelegateFileManagerImpl - Max Cached Artifacts set to: 2
<IP_ADDRESS> - - [26/Oct/2022:09:04:56 +0000] "GET /api/health HTTP/1.1" 200 74 "-" "kube-probe/1.23+" 3
2022-10-26 09:05:00,841 [ChronicleQueueMonitor RUNNING] INFO  io.harness.event.client.impl.appender.ChronicleQueueMonitor - eventQueue fileCount: 0

Could you let me know what is the issue or how to debug?

It looks to be a delegate issue, unrelated to helm installations. Please post it in community slacks channel for more visibility.


Designer set to readonly should not allow changing connection

Describe the Bug with repro steps
Currently when the designer is set to readonly users can still get to the "Select connection" panel (or if they were already on it) and change the used connection.
We have a specific scenario where we prepare to load a new/updated copy of a workflow, at this time the designer is readonly. If the user changes their connection this change will be ignored (so the UI is misleading).

What type of Logic App Is this happening in?
Consumption (Portal)
Are you using Preview Designer or GA Designer
Preview
Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg
Yes
Workflow JSON
No response
Screenshots or Videos
No response
Browser
Chrome
Additional context
No response
AB#24315286

Thanks for disabling the link!
What about the selectConnectionTab, for example in the case where the user already has that panel open when the designer changes to readonly

Setting the designer to readOnly is not something we intend to support fully. Why would we? Maybe they want to make another change whilet he save is happening because they forgot something? Why should that not be allowed?
For the second case, I still don't see that as a reason to switch to readOnly, readOnly for hte entire designer is a very very heavy handed thing to do. It's really designed for a case of either monitoring view or user has read permissions but not write permissions.

I'm ok with Power Automate making changes, but I do think changes at that level should be discussed before a PR is created to avoid wasting time.
I actually think for copilot the overlay would be a better experience to tell the customer the readOnly context has switched. Switching it to just readOnly can actually be quite confusing

Sounds good, I suppose this behavior is sufficient for now


[SWOC'24] Add logo to Header and fix title logo

Prerequisites

[X] I am an Open Source Contributor
[X] I checked to make sure that this issue has not already been filed

Description
Hello @Rakesh9100  , I want to add a logo to the Header and fix the title logo to make it consistent, details you can check on the screenshot below. Thank you
Screenshots

Code of Conduct

[X] I follow Contributing Guidelines of this project.

can you please assign me this issue under SWOC.

Not needed. Pls work on other good issues @rizkisepriadi


Add account_version to RPC ledger, wallet_ledger

Right now the account version is an internal artifact -- do we want to expose it and make that part of our public interface ?

Yes, I guess it won't be required after epoch blocks propagation.


Fake News Classification using DL

Problem Description:
Fake News Detection using Deep Learning
This project aims to identify whether the given news is fake or not by extracting meaning and semantics of the given news.
Model-1: "sequential"
.The model-1 showed high validation accuracy of 96.11% and loss of 0.1350.Thus the model-1 worked fairly well identifying 2874 fake articles from a total of 3044.The first model performed better.The second model had good training accuracy but less test accuracy hinting towards overfitting.Maybe the key reason being in fake news it is important to capture overall sentiment better than individual word sentiment.

hey @ananyag309 please assign this issue to me as i already done a poject on the fake news classification

I believe I can improve the accuracy of the fake news detection model using several techniques. These include using pre-trained embeddings like BERT to better capture the context of news articles, adjusting the model architecture to include Bi-LSTM or attention mechanisms, and applying regularization methods such as dropout and L2 regularization to reduce overfitting. Additionally, I can perform hyperparameter tuning, explore data augmentation, and use ensemble methods for better results. I am confident that these changes will enhance the model’s performance. Please assign this task to me, and I will ensure to deliver the best possible improvements.
@ananyag309


WorkerTaskMonitor: stop() waits for mainLoop to exit.

Fixes #2637.

Suggest adding sanity check in start to ensure latch hasn't already fired, like if getCount is not 1 throw ISE on start.

that way noone in the future can start this twice.

@drcrallen I think the sanity checks already there will prevent starting twice. (ISE gets thrown if "started" or "exec.isShutdown" is true)

ah, good call, :+1:  then

:+1:


return backfill to order by date, batch size 1000

Backfill job was ordered in such a way as to not work with cursoring. There was a filtering condition removed which also needed to be reinstated. I also upped the batching size to 1000 for the TFM backfill.

Unsure about the validating packages addition.
@joelverhagen note that this is removed code that I reintroduced. It could be an implementation detail (i.e. a flag) set in the subclasses if we like, defaulting to false.


Migrate to eslint, upgrade dependencies

Migrate from TSLint to ESLint. Fix lint issues in existing code.
Upgrade angular, font-awesome and other library dependencies.

@jhipster/developers, This PR is ready for review.

@deepu105, would you be able to review this? If it looks good, then, I also need a new release of this library so that I can upgrade dependencies on main.

@wmarques would you be able to do patch release?


Add method select row, single and column

Added method select only one row, only field, and column from a datebase and added method prepare sql.
Added fetch and fetchColumn.

You can get one record already:
public function getPet($petid)
    {
        return $this->db->select("SELECT * FROM " . PREFIX . "pets WHERE petid =:petid",
         array('petid' => $petid));
    }

and binding is taking place already: for example:
public function insert($table, $data)
    {
        ksort($data);

        $fieldNames = implode(',', array_keys($data));
        $fieldValues = ':' . implode(', :', array_keys($data));

        $stmt = $this->prepare("INSERT INTO $table ($fieldNames) VALUES ($fieldValues)");<---here

        foreach ($data as $key => $value) {
            $stmt-> bindValue(":$key", $value);<-----------------------here------------
        }

        $stmt->execute();
        return $this->lastInsertId();
    }

and
public function select($sql, $array = array(), $fetchMode = PDO::FETCH_OBJ, $class = '')
    {
        $stmt = $this-> here here here prepare($sql);<--------here-----------------------------
        foreach ($array as $key => $value) {
            if (is_int($value)) {
                $stmt->bindValue("$key", $value, PDO::PARAM_INT);<-------here-----------------
            } else {
                $stmt->bindValue("$key", $value);<------------here------------------------
            }
        }

        $stmt->execute();

        if ($fetchMode === PDO::FETCH_CLASS) {
            return $stmt->fetchAll($fetchMode, $class);
        } else {
            return $stmt->fetchAll($fetchMode);
        }
    }

I feel the database helper is fine as is.

Yes this is already implemented in helper

@volter9 how about some input here.

Or aa single field
public function getPet($petid)
    {
        return $this->db->select("SELECT petname FROM " . PREFIX . "pets WHERE petid =:petid",
         array('petid' => $petid));
    }

You can get any field and any record, just implement it n your own model

I agree with the others the class does everything it needs to do I don't see that adding anything needed, as @geomorillo suggested you can alter your methods within your helper/view.

@jimgwhit I think I'm late to share with my thoughts. :cry:
Although, I think that raw should have return statement before it, so people could use returned PDOStatement for fetching custom result, etc.

just to be clear is this what you mean:
$data = $this->query($sql);
return $data->fetchAll(PDO::FETCH_OBJ);

@daveismyname yeah, something like that.

ah that code results in an error just a simple return does the job.
return $this->query($sql);

I'll update the class.

@daveismyname thanks! :+1:


[Bug Report] Bot crash at playback (NullPointer Exception)

Describe the bug
Bot crashes everytime I try to play a track from youtube
[19:46:04] [ERROR] [LocalAudioTrackExecutor]: Error in playback of Sf1ss6n_rO4
com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something broke when playing the track.
	at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:43)
	at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:117)
	at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$1(DefaultAudioPlayerManager.java:349)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: null
	at java.util.concurrent.ConcurrentHashMap.get(Unknown Source)
	at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeSignatureCipherManager.getCipherKeyFromScript(YoutubeSignatureCipherManager.java:136)
	at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeSignatureCipherManager.resolveFormatUrl(YoutubeSignatureCipherManager.java:103)
	at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.loadBestFormatWithUrl(YoutubeAudioTrack.java:87)
	at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.process(YoutubeAudioTrack.java:42)
	at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:105)
	... 4 common frames omitted

To Reproduce
<prefix>play <url>
Expected behavior
Should playback audio in current channel
Screenshots
/
Debug Info
System Properties:
  java.version = 1.8.0_271
  java.vm.name = Java HotSpot(TM) 64-Bit Server VM
  java.vm.specification.version = 1.8
  java.runtime.name = Java(TM) SE Runtime Environment
  java.runtime.version = 1.8.0_271-b09
  java.specification.version = 1.8
  os.arch = amd64
  os.name = Windows 10

JMusicBot Information:
  Version = 0.3.1
  Prefix = @mention
  AltPrefix = !!
  MaxSeconds = 0
  NPImages = false
  SongInStatus = false
  StayInChannel = false
  UseEval = false
  UpdateAlerts = true

Dependency Information:
  JDA Version = 4.2.0_212
  JDA-Utilities Version = 3.0.4
  Lavaplayer Version = 1.3.59

Runtime Information:
  Total Memory = 378
  Used Memory = 111

Additional context
Replace this text with any other context about the problem.

Duplicate of #531

It is indeed, closing


Rebuild website

DESCRIPTION

Reorder some items
Add DOI to author (will render nicely)
Add issue report link

_pkgdown.yml

Remove home link from nav
Link nav twitter to LifeWatchINBO
Add twitter link to author
Update link to team

Other

Clean some markdown in vignettes

Build website
Because of #30 I had to cheat a bit, and remove the following line to have a valid Rmd check:
https://github.com/inbo/wateRinfo/blob/199e426b18b4957584cd54d935607b7d1dff25f2/R/get_timeseries.R#L35
That change was not committed and I left the original example in the documentation

Note that some figures have changed. @stijnvanhoey I think it is best if you rebase master and rebuild website to resolve issues.