[FLINK-31530] support oracle catalog

related to FLINK-31530
Implement OracleCatalog for the Oracle dialect

@complone Are you still planning to work on this PR, given that CI has failed?

@complone Are you still planning to work on this PR, given that CI has failed?

Due to busy work, I will fix CI in the near future

Any plan for this PR?


Changes towards support of the gossip service.

Rename methods and introduce generic functions for
convertion gossip id's and types.

Needs rustfmt.

Codecov Report

Merging #506 into master will increase coverage by 0.06%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #506      +/-   ##
==========================================
+ Coverage   44.48%   44.55%   +0.06%
==========================================
  Files         166      166
  Lines       15208    15173      -35
==========================================
- Hits         6765     6760       -5
+ Misses       8443     8413      -30

Impacted Files
Coverage Δ

network-grpc/src/service.rs
0% <ø> (ø)
:arrow_up:

network-grpc/src/client.rs
0% <ø> (ø)
:arrow_up:

network-core/src/server/gossip.rs
0% <ø> (ø)
:arrow_up:

chain-impl-mockchain/src/update.rs
78.57% <0%> (-1.03%)
:arrow_down:

chain-impl-mockchain/src/setting.rs
24.77% <0%> (-0.61%)
:arrow_down:

chain-impl-mockchain/src/key.rs
79.13% <0%> (ø)
:arrow_up:

...tocol-tokio/src/network_transport/response_code.rs
60.6% <0%> (ø)
:arrow_up:

cardano/src/block/block.rs
23.77% <0%> (+0.69%)
:arrow_up:

chain-impl-mockchain/src/block/header.rs
59.88% <0%> (+0.99%)
:arrow_up:

chain-core/src/property.rs
96.77% <0%> (+1.61%)
:arrow_up:

... and 2 more

Continue to review full report at Codecov.

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


Support for multiple simulcast configurations for published streams in one connection

Description
This PR moves simulcast configuration from the Stacks to Streams. That allows for publishing multiple simulcast streams with different configurations in the same connection.
[] It needs and includes Unit Tests
Changes in Client or Server public APIs

[] It includes documentation for these changes in /doc.

Better version of this in #1726


Add 2.12.9 support

This requires a launcher generated by a coursier version that includes https://github.com/coursier/coursier/pull/1325 (a coursier version supporting --scala-version is needed not to end up with some artifacts ending with both _2.12.8 and _2.12.9, and the current coursier 2.0.0-RC3-2 misses some JARs because of https://github.com/coursier/coursier/pull/1325).


Simulation store

A unit test produces this error message. It should get suppressed with @test_logs.
Error: Requested time does not match available results
└ @ PowerSimulations ~/sandboxes/PowerSimulations.jl/src/core/simulation_results.jl:409

A unit test produces this error message. It should get suppressed with @test_logs.
Error: Requested time does not match available results
└ @ PowerSimulations ~/sandboxes/PowerSimulations.jl/src/core/simulation_results.jl:409

A unit test produces this error message. It should get suppressed with @test_logs.
Error: Requested time does not match available results
└ @ PowerSimulations ~/sandboxes/PowerSimulations.jl/src/core/simulation_results.jl:409

Is this error message fixed?

A unit test produces this error message. It should get suppressed with @test_logs.
Error: Requested time does not match available results
└ @ PowerSimulations ~/sandboxes/PowerSimulations.jl/src/core/simulation_results.jl:409

Is this error message fixed?

A unit test produces this error message. It should get suppressed with @test_logs.
Error: Requested time does not match available results
└ @ PowerSimulations ~/sandboxes/PowerSimulations.jl/src/core/simulation_results.jl:409

Is this error message fixed?

Yes, 3b8c587

A unit test produces this error message. It should get suppressed with @test_logs.
Error: Requested time does not match available results
└ @ PowerSimulations ~/sandboxes/PowerSimulations.jl/src/core/simulation_results.jl:409

Is this error message fixed?

Yes, 3b8c587


Python 3.7 - RuntimeError: generator raised StopIteration

Hello,
following the change in the way StopIteration works (https://www.python.org/dev/peps/pep-0479/), running bin/run_test.py results in a RuntimeError.
Traceback:
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/bilm-0.1.post5-py3.7.egg/bilm/data.py", line 410, in get_sentence
    self._ids = self._load_random_shard()
  File "/usr/lib/python3.7/site-packages/bilm-0.1.post5-py3.7.egg/bilm/data.py", line 358, in _load_random_shard
    raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "bin/run_test.py", line 42, in <module>
    main(args)
  File "bin/run_test.py", line 29, in main
    test(options, ckpt_file, data, batch_size=args.batch_size)
  File "/usr/lib/python3.7/site-packages/bilm-0.1.post5-py3.7.egg/bilm/training.py", line 1015, in test
    data.iter_batches(batch_size, 1), start=1):
  File "/usr/lib/python3.7/site-packages/bilm-0.1.post5-py3.7.egg/bilm/data.py", line 454, in iter_batches
    num_steps, max_word_length)
  File "/usr/lib/python3.7/site-packages/bilm-0.1.post5-py3.7.egg/bilm/data.py", line 284, in _get_batch
    cur_stream[i] = list(next(generator))
RuntimeError: generator raised StopIteration

Locally I replaced line 358 in bilm/data.py raise StopIteration with Return and line 285 in bilm/data.py except StopIteration with except Exception. I'm guessing the latter might not be necessary. I haven't thoroughly tested it, but it did work for my use case. I also don't know how this affects Python versions <=3.6.

@MatejUlcar this worked for me.  thanks!

@MatejUlcar this worked for me too. thanks!


pkg/multierror: switch to golang's native multi-error wrapping

Bump the Go version to 1.20 so that we benefit from standard
library multi-error wrapping instead of using building our own.
Stop building our own multi-error handling package and instead use
go's standard library error package for wrapping multiple errors.
Currently it passes our e2e but I guess we want to wait containerd&
cri-o to switch to go 1.20 too. Actually, cri-o master branch is already
indicating 1.20 but there is no release with that version yet. As such,
I will keep it as a draft for now. If you think we can go ahead please
let me know.

Cool :+1:  this is ready when we move to 1.20

Looks good, apart from a few minor nits. Let's wait for golang 1.20 to land in the runtimes then review this a bit more carefully to get it merged.


Draft: tmt/steps/prepare/init.py: add typing

@ukulekek looking into what is missing here, does not seem to be really a draft anymore as you requested review

After starting to look into this, I believe we want to move to the same approach as in #1247 and move StepData to tmt.utils.SerializableContainer to be able to reasonably finish this. Adding to Needs Discussion items.


Use concrete models when filtering event models by proxy models

When core.event_models function filters event models by proxy references_model or tracks_model, it should use the concrete model for filtering.
It will allow showing correct results in the Events admin when checking events for ProxyModel in this example:
@pghistory.track()
class BaseModel(models.Model):
    ...

class ProxyModel(models.Model):
    ...

    class Meta:
        proxy = True

N.B.: Filtering by obj works correctly because _filter_event_models uses obj.__class__ for that.
Type: bug

nice! I will write a test case for this before doing the release. Will report back when this is released

Released in 3.3.0


Support for Twin Builder Excitations Coupling

Request PyAEDT support for the below feature pushing Simplorer/TwinBuilder excitations into Maxwell A-Phi solver

Not a scriptable feature.


feat: add more social icon

add more some common social media icon

Facebook & Twitter in that case maybe too?

Telegram 🙏

Facebook, Twitter, Whatsapp, Threads in that case maybe too?

@Netail isn't Twitter icon already reserved here as 'X'? Do we need legacy logo?

Woops, you're right hahaha. Still didn't got used to it being called X now

Terima kasih 🙏

thanks, but I don't think I would like to merge it, I would like to keep icons minimal and would suggest you to use icons library or copy-paste needed icons directly for your project


finder-app/writer.sh

Write a shell script finder-app/writer.sh as described below

Accepts the following arguments: the first argument is a full path to a file (including filename) on the filesystem, referred to below as writefile; the second argument is a text string which will be written within this file, referred to below as writestr
Exits with value 1 error and print statements if any of the arguments above were not specified
Creates a new file with name and path writefile with content writestr, overwriting any existing file and creating the path if it doesn’t exist. Exits with value 1 and error print statement if the file could not be created.
Example:
   writer.sh /tmp/aesd/assignment1/sample.txt ios

Creates file:
/tmp/aesd/assignment1/sample.txt

        With content:

        ios

Finished implementation.


Fix misspelled variable name in docs example

@Tahul Hello!
Could you help me address netlify deploy failed issue?
The node version is incompatible but I didn't find node version specified in code (maybe it's in env?).
10:35:05 AM: Installing NPM modules using Yarn version 1.22.4
10:35:05 AM: yarn install v1.22.4
10:35:05 AM: [1/4] Resolving packages...
10:35:05 AM: [2/4] Fetching packages...
10:35:19 AM: info<EMAIL_ADDRESS>The platform "linux" is incompatible with this module.
10:35:19 AM: info<EMAIL_ADDRESS>is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:19 AM: error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version ">=v12.22.1". Got "12.18.0"
10:35:19 AM: error Found incompatible module.
10:35:19 AM: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
10:35:19 AM: Error during Yarn install
10:35:19 AM: Build was terminated: Build script returned non-zero exit code: 1

Thanks!

Taking advantage of your opened PR to add that the handle function in use-wheel is the wrong function name.
scrollHandler should be wheelHandler as this is the actual function in the script setup.
Could you add it to your PR so we don't open multiple "typo" PR? :D


Ansible 2.9.11 molecule 2.22 python 3.6

Update to Ansible 2.9 and Molecule 2.22 (the last version before the recently released 3.0).
These are the versions that happen to be in conda-forge right now.
In conjunction with https://github.com/ome/ome-ansible-molecule/pull/19 this could be released as 0.5.0

Overall, I am in favor of initiating the work to bump our production version of Ansible to a more recent version. Primary questions are about the roadmap and the next steps to get there:

testing: with the current infrastructure, https://github.com/ome/ansible-roles/issues/13 will need to be tackled to have a this change successfully tested against as many production Ansible roles as possible  - see https://travis-ci.org/snoopycrimecop/ansible-roles/builds/658494731 for the nightly run.
version: is ome-ansible-molecule 0.5.0 the next target together with the Python 3 change in #19 ? In this case, the README as well as all places in our codebase capping this package will need to be reviewed.

In the short term I'd consider supporting both 0.4.0 (Ansible 2.6) and 0.5.0 (Ansible 2.9) in the main public roles (omero-web, omero-server, and dependencies). Since we'll soon have support for two operating systems in those roles we can test one OS with 0.4.0 and the other with 0.5.0

See https://travis-ci.org/github/snoopycrimecop/ansible-roles/builds/663321803 for the first Travis build effectively testing the impact of this proposed change across our Ansible roles. Looking quickly at them, many of the failures seem to be syntactic or related to deprecated features.
I am unclear how the dual version testing would work both at the level of individual roles as well as in ansible-roles but happy to read more about that. Additionally, if we don't feel like committing to a full 0.5.0 but want to gain some more experience, we could always create a 0.5.0.dev0 pre-release and start consuming it.

I think it's fine to commit to 0.5.0. For dual version testing I'd restrict it to just the main user-facing roles, i.e. test one scenario in each of omero-server and omero-web using 0.4.0, and use the new 0.5.0 for all other tests and roles including this repo. This provides a basic test of backwards compatibility so we're not forcing users of our main roles to immediately upgrade, whilst emphasizing that the OME is moving to Ansible 2.9.
For a role-level example see https://github.com/ome/ansible-role-python3-virtualenv/blob/0.1.1/.travis.yml#L8-L17 (this was required to test a remote Python 3 environment, Ansible 2.6 has bugs)

Conflicting PR. Removed from build ANSIBLE-ROLES-merge#1016. See the console output for more details.
Possible conflicts:

Upstream changes

setup.py

--conflicts

See https://github.com/ome/ansible-roles/pull/27 for the results

Given the number of places which are starting to hardcode more recent Ansible versions (https://github.com/ome/ansible-role-ice/pull/13, https://github.com/ome/ansible-role-python3-virtualenv/commit/11af8c8993c8f7e783d01deed9cbbf4095e9efb5), is this something we should start pushing once/while the Ansible role GitHub Actions migration is sorted?
https://github.com/ome/ansible-roles/pull/27 suggested the impact on the roles/playbooks might be fairly minor. Is there a way to pre-test a new ome-ansible-molecule version which does not involve opening N PRs against each Ansible repo?

Given the number of places which are starting to hardcode more recent Ansible versions (https://github.com/ome/ansible-role-ice/pull/13, https://github.com/ome/ansible-role-python3-virtualenv/commit/11af8c8993c8f7e783d01deed9cbbf4095e9efb5), is this something we should start pushing once/while the Ansible role GitHub Actions migration is sorted?
https://github.com/ome/ansible-roles/pull/27 suggested the impact on the roles/playbooks might be fairly minor. Is there a way to pre-test a new ome-ansible-molecule version which does not involve opening N PRs against each Ansible repo?

Maybe add a modified version of https://github.com/ome/action-ansible-molecule-list-scenarios to find all submodule/molecule/* scenarios, then run the molecule tests in a second matrix job in this repo?

Maybe add a modified version of https://github.com/ome/action-ansible-molecule-list-scenarios to find all submodule/molecule/* scenarios, then run the molecule tests in a second matrix job in this repo?

One additional question: in all the places mentioned in https://github.com/ome/ome-ansible-molecule/pull/20#issuecomment-756708051, you have used Ansible 2.8. Is this a safer version increment if you have already gained experience with it?

One additional question: in all the places mentioned in https://github.com/ome/ome-ansible-molecule/pull/20#issuecomment-756708051, you have used Ansible 2.8. Is this a safer version increment if you have already gained experience with it?

I used 2.8 because it's what I've been using for ages. The reason for choosing 2.9 here is it's more recent, which means we can put off the next upgrade for slightly longer 😄, but as you say no-one's used it for daily use yet.

I used 2.8 because it's what I've been using for ages. The reason for choosing 2.9 here is it's more recent, which means we can put off the next upgrade for slightly longer 😄, but as you say no-one's used it for daily use yet.

If you have already extensive deployment experience with Ansible 2.8, my vote would be to update this PR to capture the version you have been using and getting this released as 0.5.0 (or rc1 if we think it is safer). /cc @joshmoore
I can look into getting the roles tested with this major version while keeping in mind the need to easily test new Ansible versions given the velocity of the Ansible project.

If you have already extensive deployment experience with Ansible 2.8, my vote would be to update this PR to capture the version you have been using and getting this released as 0.5.0 (or rc1 if we think it is safer). /cc @joshmoore
I can look into getting the roles tested with this major version while keeping in mind the need to easily test new Ansible versions given the velocity of the Ansible project.

I can switch to 2.8 if that's the consensus.
Is it required that we test all roles before bumping the version of Ansible? It seems like unnecessary coupling and I suspect it's one of the reasons the ansible version here never gets bumped- whoever bumps it has to take on the responsibility of fixing all roles.
https://github.com/ome/action-ome-ansible-molecule has no tags, but if we add semver tags to it we could instead upgrade roles one at a time.

I can switch to 2.8 if that's the consensus.
Is it required that we test all roles before bumping the version of Ansible? It seems like unnecessary coupling and I suspect it's one of the reasons the ansible version here never gets bumped- whoever bumps it has to take on the responsibility of fixing all roles.
https://github.com/ome/action-ome-ansible-molecule has no tags, but if we add semver tags to it we could instead upgrade roles one at a time.

Is it required that we test all roles before bumping the version of Ansible? It seems like unnecessary coupling and I suspect it's one of the reasons the ansible version here never gets bumped- whoever bumps it has to take on the responsibility of fixing all roles.

I agree about the downsides about such strong coupling and moving towards a more rapid bumping cycle would be beneficial for the reasons you are mentioning.

I can switch to 2.8 if that's the consensus.

For me the main advantage of creating an intermediate state with Ansible 2.8 is that you have already established it is working with all our playbooks.

https://github.com/ome/action-ome-ansible-molecule has no tags, but if we add semver tags to it we could instead upgrade roles one at a time.

With regards to testing, I think this is the reason why we had previously pip install "ome-ansible-molecule<0.5" in Travis CI confiugration and ~/venv/bin/pip install "ome-ansible-molecule==0.4.*" in the OME Molecule action. My expectation is that it should ensure roles are all tested with a defined Ansible version while we are bumping this meta-package for preliminary testing.
Tagging the action would make sense for upgrading the roles workflows. Alternatively/in addition, I was considering extending the role to support an environment variable e.g. OME_ANSIBLE_MOLECULE_VERSION that could be overriden at the repo/organization level

Is it required that we test all roles before bumping the version of Ansible? It seems like unnecessary coupling and I suspect it's one of the reasons the ansible version here never gets bumped- whoever bumps it has to take on the responsibility of fixing all roles.

I agree about the downsides about such strong coupling and moving towards a more rapid bumping cycle would be beneficial for the reasons you are mentioning.

I can switch to 2.8 if that's the consensus.

For me the main advantage of creating an intermediate state with Ansible 2.8 is that you have already established it is working with all our playbooks.

https://github.com/ome/action-ome-ansible-molecule has no tags, but if we add semver tags to it we could instead upgrade roles one at a time.

With regards to testing, I think this is the reason why we had previously pip install "ome-ansible-molecule<0.5" in Travis CI confiugration and ~/venv/bin/pip install "ome-ansible-molecule==0.4.*" in the OME Molecule action. My expectation is that it should ensure roles are all tested with a defined Ansible version while we are bumping this meta-package for preliminary testing.
Tagging the action would make sense for upgrading the roles workflows. Alternatively/in addition, I was considering extending the role to support an environment variable e.g. OME_ANSIBLE_MOLECULE_VERSION that could be overriden at the repo/organization level

I've updated this to Ansible 2.8.18 (the last in the 2.8 series)

I've updated this to Ansible 2.8.18 (the last in the 2.8 series)

Thanks. As discussed today, merging and tagging as 0.5.0. I will look into testing it first against the various playbooks then against the roles.

Thanks. As discussed today, merging and tagging as 0.5.0. I will look into testing it first against the various playbooks then against the roles.


Client_Access_Token

Hey Abhi,
I made an chatbot last year through dialogflow API V1, and the android implementation works,
now i am trying to make V2 chatbot and hence looked at your code, i went ahead and downloaded the file but the app doesn't build inthe initial stage only, the file doesnt open. the error comes Client_Access_Token not found.
when i click on open file it takes me this file.
please help what needs to be done in this regard.

@karansharma28 please see the Readme. I have shared the Medium post on how to move from V1 to V2. Client Access Token is only used in V1. For V2 you will need Google Account Credentials in JSON which I have explained in my medium post.

yeah i have the json key with me the only issue is that i dont know where to put that key in order for your source code to run.
like i said the gradle is not even building.
and your code does not have that gradle.properties file.

put the json in raw folder. Just rename it as per the code. You will see the error. Gradle properties are only required for hidding client token

put the json in raw folder. Just rename it as per the code. You will see the error. Gradle properties are only required for hidding client token

but it then shows error ? Application closes unfortunately ?


can Event be posted between process

EventBus is "only" thread-safe. Doing inter-process communication is out of scope for this library.
Closing. Please re-open if your question was not answered.
-ut


Firebase API NexusLowRes,version=29, emulator flaky. Re-enable when possible.

More details are available at [ https://console.firebase.google.com/project/flutter-infra-staging/testlab/histories/bh.f93c781079d437/matrices/4629674857943472580 ].
WARNING: Need help for test execution [NexusLowRes-29-en-portrait]? Please join the #test-lab Slack channel at https://firebase.community// and include test matrix ID [matrix-3i93ff86mb1gb] with your question.

outcome
test_axis_value
test_details

Passed
Nexus5-21-en-portrait
--

Passed
Nexus5-22-en-portrait
--

Passed
Nexus5-23-en-portrait
--

Passed
Nexus6P-26-en-portrait
--

Passed
Nexus6P-27-en-portrait
--

Inconclusive
NexusLowRes-29-en-portrait
Infrastructure failure

Current open issue with the FTL team regarding fixing this: https://buganizer.corp.google.com/issues/302753598

@reidbaker Do we still need this testbed from firebase lab for test validation?

I think we should assume yes unless there is evidence otherwise.

Reenabling this and one other.


Question: Model Metadata

Does EF Core support expressing model metadata in a standard format?
Tooling for EF classic expressed model metadata as CSDL (part of EDMX), so that tools could read the metadata and perform things like code generation based on the metadata.
OData, for example, exposes the CSDL as an endpoint, and VS Code has an extension that reads it in order to generate TypeScript files, as does Breeze.  And OData does has a spec for JSON-formatted CSDL.

@tonysneed EF Classic was built around the Entity Data Model (EDM) specification, which is why it used CSDL. EDM made a lot of things hard/costly to implement, so one of the main architecture changes for EF Core was to not use EDM, which means CSDL is not native to EF Core.
That being said, it should be possible to build something on top of EF Core to create CSDL, possibly as part of adding support for OData. This is something we would likely not do in the main code base--it would likely be better to have an external extension do it. I'm not aware of anything like this existing at the moment, but @divega may know more.

@ajcvickers OData's port to .NET Core could benefit from work on this.  Also, I imagine tools on the npm side could consume the CSDL for things like code-gen, which would be great for SPA's and the like.

@tonysneed We discussed this in triage and we certainly agree that this could be useful. However, it's not something we plan to implement and it seems like it should be something that is driven by demand from the community and probably implemented as a community project. We might re-consider this, but for now we're going to close this as something we won't do directly in EF Core.
(@divega pointed out that it may be difficult to map to CSDL given that EF Core has a very open type-system--that is, any CLR type can be in the model.)

@ajcvickers Got it ... thanks for answering!


Try to use navigator experimental based navigation solution

NavigationExperimental based router and navigation methods can be driven by declarative way of changing the routes instead of directly accessing the navigation state by pushing and poping.
In short, solutions like react-native-router-flux and ex-navigation can simplify the navigation logic just like we use redux to simplify the application state.
Let's try to learn and understand these solutions and try to integrate them into this project.

+1

I will try. Thx~~

Currently,which component is the best navigator for redux method?

@phpsmarter Maybe react-native-router-flux

When I learn rn code ,I read a lot about redux-frame work.iReading App is a excellent work.But I thought still have some questions.Firstly,in component,still have some functions to proceed logic,especially
in didMount. I thought this is a init process,so can not find a good place to perform function. But when I read redux-saga examples:Async.I find  Async  has a code in the saga ,yield fork(startup),you can learn about this code meaning from it's name. I thought all props including function must be injected  from  container,but I can find a way about init's function.Async's method maybe it is a good way.

Now reading used redux-saga instead of redux-thunk, I will learn more about redux-saga.

reading use react-native-router-flux now.

Awesome job


Disallow hashes (#) in username during register

To avoid conflicts with the randomly generated anonymous names which contain "#"

auth.py, register route


Replace quotes in title with escaped quotes

Great tool you've built here, it saved me lots of time migrating my WordPress site to 11ty. Many thanks! 🙏
I came across an issue where if I had quotes in my title, it would output something like:
title: "Day 23:  "Nobody can hurt me without my permission." -Gandhi."
date: "2013-11-01"

This was causing 11ty to not be happy so this PR adds a simple .replace to the getPostTitle function to escape quotes, resulting in
title: "Day 23:  \"Nobody can hurt me without my permission.\" -Gandhi."
date: "2013-11-01"

After I made this change I had no issue importing my posts into 11ty.

Thanks Joe! Sorry for the long delay.


How the Bundle intercept the token and what's /login_check ?

And how with your default config you create the token ?
Because if I follow just what you writed, you indicate that we need to put in the routing.yml :
login_check:
path:     /login_check
But this path refer to which controller ?
And after that, when the client send me the token, how this one will be "analyze" to know which user is it ?
I'm lost :(
Thanks for your help

Hi @Namiro,

I'm certainly stupid but, it's some hours that I'm looking to understand how the security layer will get the token when the client send it.

There's nothing stupid here :) Looks like a support issue that is more about Symfony in general than this bundle, but let's take it as a good reminder.

Because if I follow just what you writed, you indicate that we need to put in the routing.yml :
login_check:
path: /login_check

But this path refer to which controller ?

In fact, it doesn't refer to a controller.
Instead, any request to this endpoint is intercepted by the Symfony's security layer (provided by the symfony/security component), because you configured a form_login listener on your firewall.
The magic happens here and here.

And after that, when the client send me the token, how this one will be "analyze" to know which user is it ?

This part is handled from our side.
When you configure your JWT protected firewall (using lexik_jwt (1.x legacy) or guard (2.x stable), our authenticator first tries to find a token in the current request using the configured token extractors (default in an Authorization header with Bearer prefix, using the AuthorizationHeaderTokenExtractor).
Then, it uses our built-in token encoder/decoder for decoding the token  through our JWTManager. The encoder performs all validity checks that are needed (expiration, signature verification, .. see the encoder itself for details) and, if all is ok, the token's payload is returned, containing the configured user_identity_field as key.
Finally, the value of this key is used for retrieving the user, and if it can be found, it is authenticated.

I'm lost :(

I hope you're less now. Or at least, not more :)
Do not hesitate if you still have some interrogations.

Thanks a lot for your help.
But I miss something, I don't know what...
Fot the api/check_login (and for the token decode)
What's wrong in this config :
app/config/security.yml
`
To get started with security, check out the documentation:
http://symfony.com/doc/current/book/security.html
security:
# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
providers:
main:
entity:
class:    SOSVelo\RepositoryBundle\Entity\User
property: email
role_hierarchy:
    ROLE_PARTNER:     [ROLE_USER]
    ROLE_MEMBER:      [ROLE_USER]
    ROLE_ADMIN:       [ROLE_PARTNER, ROLE_MEMBER, ROLE_USER]
    ROLE_SUPER_ADMIN: [ROLE_ADMIN]

encoders:
    SOSVelo\RepositoryBundle\Entity\User:
        algorithm:        sha1
        encode_as_base64: false
        iterations:       1

firewalls:
    # disables authentication for assets and the profiler, adapt it according to your needs
    dev:
        pattern: ^/(_(profiler|wdt)|css|images|js)/
        security: false

    main:
        anonymous: ~
        #provider:  main
        # activate different ways to authenticate

        # http_basic: ~
        # http://symfony.com/doc/current/book/security.html#a-configuring-how-your-users-will-authenticate

        # form_login: ~
        # http://symfony.com/doc/current/cookbook/security/form_login_setup.html

    login:
        pattern:  ^/api/login
        stateless: true
        anonymous: true
        form_login:
            check_path: /api/login_check
            success_handler: lexik_jwt_authentication.handler.authentication_success
            failure_handler: lexik_jwt_authentication.handler.authentication_failure
            require_previous_session: false
            username_parameter: email
            password_parameter: password

    api:
        pattern:   ^/api
        stateless: true
        lexik_jwt:
            authorization_header:
                enabled: true
                prefix:  Bearer
            query_parameter:
                enabled: true
                name:    bearer
        guard:
            authenticators:
                - lexik_jwt_authentication.jwt_token_authenticator

access_control:
    - { path: ^/api/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
    - { path: ^/api,       roles: IS_AUTHENTICATED_REMEMBERED }

`
I suppose that my problems comes from this config file, but I try a lot combination and no one is ok..
My current error is :
Unable to find the controller for path "/api/login_check". The route is wrongly configured.
And I suppose my routing is ok because if I dedicate a Controller to this url, it works.
(I would to work with you lastest version because I saw that you deprecated many thing about the oldest versions.)

I see two issues in your config:

You are combining the legacy security configuration with the new one, you need to remove the lexik_jwt key with all its content and keep only guard
Your have a main firewall which doesn't have a pattern specified (thus covering ^/, the default value) and allowing anonymous, so you have to either remove it or move it after the login and api patterns. The security component takes the first matching firewall from the configured ones, in the same order you set them

After fixing them, it should work

@Namiro can you close this if my previous comment solved your issue?

Hi,
Excuse me for the time to answer but I work on some projects and so I didn't work on my symfony project the last days.
I try with what you told me but it does'nt yet work. But it's not the same problem now. I think the problem is from the password.
I mean, when I save a user with his password, this one is encrypted. (I'm suprise that symfony do it because I configured nothing for it, but it's cool.
So when the autenticator need to check the password, how can it know how was encrypted the password ? Is it something with your encorder ?
My request and the error :

I give my current configuration.
security.yml
`
To get started with security, check out the documentation:
http://symfony.com/doc/current/book/security.html
security:
# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
providers:
main:
entity:
class:    SOSVelo\RepositoryBundle\Entity\User
property: email
role_hierarchy:
    ROLE_PARTNER:     [ROLE_USER]
    ROLE_MEMBER:      [ROLE_USER]
    ROLE_ADMIN:       [ROLE_PARTNER, ROLE_MEMBER, ROLE_USER]
    ROLE_SUPER_ADMIN: [ROLE_ADMIN]

encoders:
    SOSVelo\RepositoryBundle\Entity\User:
        algorithm:        sha1
        encode_as_base64: false
        iterations:       1

firewalls:
    # disables authentication for assets and the profiler, adapt it according to your needs
    dev:
        pattern: ^/(_(profiler|wdt)|css|images|js)/
        security: false

    #main:
    #    anonymous: ~
        #provider:  main
        # activate different ways to authenticate

        # http_basic: ~
        # http://symfony.com/doc/current/book/security.html#a-configuring-how-your-users-will-authenticate

        # form_login: ~
        # http://symfony.com/doc/current/cookbook/security/form_login_setup.html

    login:
        pattern:  ^/api/login
        stateless: true
        anonymous: true
        form_login:
            check_path:               /api/login_check
            success_handler:          lexik_jwt_authentication.handler.authentication_success
            failure_handler:          lexik_jwt_authentication.handler.authentication_failure
            require_previous_session: false

    api:
        pattern: ^/api
        stateless: true
        guard:
            authenticators:
                - lexik_jwt_authentication.jwt_token_authenticator

access_control:
    - { path: ^/api/login_check, roles: IS_AUTHENTICATED_ANONYMOUSLY }
    - { path: ^/api,       roles: IS_AUTHENTICATED_REMEMBERED }

`
config.yml
`
imports:
- { resource: parameters.yml }
- { resource: security.yml }
- { resource: services.yml }
- { resource<EMAIL_ADDRESS>}
- { resource<EMAIL_ADDRESS>}
- { resource<EMAIL_ADDRESS>}
Put parameters here that don't need to change on each machine where the app is deployed
http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:
locale: fr
framework:
#esi:             ~
translator:      { fallbacks: ["%locale%"] }
secret:          "%secret%"
router:
resource: "%kernel.root_dir%/config/routing.yml"
strict_requirements: ~
form:            ~
csrf_protection: ~
validation:      { enable_annotations: true }
#serializer:      { enable_annotations: true }
templating:
engines: ['twig']
default_locale:  "%locale%"
trusted_hosts:   ~
trusted_proxies: ~
session:
# handler_id set to null will use default session handler from php.ini
handler_id:  ~
fragments:       ~
http_method_override: true
Twig Configuration
twig:
debug:            "%kernel.debug%"
strict_variables: "%kernel.debug%"
Doctrine Configuration
doctrine:
dbal:
driver:   pdo_mysql
host:     "%database_host%"
port:     "%database_port%"
dbname:   "%database_name%"
user:     "%database_user%"
password: "%database_password%"
charset:  UTF8
# if using pdo_sqlite as your database driver:
#   1. add the path in parameters.yml
#     e.g. database_path: "%kernel.root_dir%/data/data.db3"
#   2. Uncomment database_path in parameters.yml.dist
#   3. Uncomment next line:
#     path:     "%database_path%"
orm:
    auto_generate_proxy_classes: "%kernel.debug%"
    naming_strategy: doctrine.orm.naming_strategy.underscore
    auto_mapping: true

Swiftmailer Configuration
swiftmailer:
transport: "%mailer_transport%"
host:      "%mailer_host%"
username:  "%mailer_user%"
password:  "%mailer_password%"
spool:     { type: memory }
#Sonata Configuration
sonata_block:
default_contexts: [cms]
blocks:
# enable the SonataAdminBundle block
sonata.admin.block.admin_list:
contexts: [admin]
sonata_admin:
title:      SOSVelo Admin
monolog:
handlers:
console:
type:   console
fos_rest:
param_fetcher_listener: true
body_listener: true
format_listener: true
view:
view_response_listener: 'force'
formats:
xml: true
json : true
templating_formats:
html: true
force_redirects:
html: true
failed_validation: HTTP_BAD_REQUEST
default_engine: twig
routing_loader:
default_format: json
lexik_jwt_authentication:
# ssh private key path
private_key_path: %jwt_private_key_path%
# ssh public key path
public_key_path:  %jwt_public_key_path%
# ssh key pass phrase
pass_phrase:      %jwt_key_pass_phrase%
# token ttl
token_ttl:        %jwt_token_ttl%
# key under which the user identity will be stored in the token payload
user_identity_field: email
# token encoding/decoding settings
encoder:
    # token encoder/decoder service - default implementation based on the namshi/jose library
    service: lexik_jwt_authentication.encoder.default
    # crypto engine used by the encoder service
    crypto_engine: openssl
    # encryption algorithm used by the encoder service
    signature_algorithm: RS256

# token extraction settings
token_extractors:
    authorization_header:      # look for a token as Authorization Header
        enabled: true
        prefix:  Bearer
        name:    Authorization
    cookie:                    # check token in a cookie
        enabled: false
        name:    BEARER
    query_parameter:           # check token in query string parameter
        enabled: false
        name:    bearer

`
Thanks yet for your help

Ok, your first issue has indeed be fixed as it is no more a Route wrongly configured error.
However I'm unable to reproduce your last issue. Would you consider forking https://github.com/chalasr/lexik-jwt-authentication-sandbox for reproducing it? So we could investigate directly.

Okay. I close this one and thanks for your help.


Pip install fails from master

I can no longer install django flatblocks due to an error during pip install.
The pip install command used was -e git+git://github.com/jazzband/django-flatblocks.git@master#egg=django-flatblocks
I'm installing from a github URL as I need the latest updates, for compatibility with Django 2. I have pinned the requirement now to an older commit to get it working -e git+git://github.com/jazzband/django-flatblocks.git@41a037959f05ad666ee9a1645db1907c81e4bd78#egg=django-flatblocks.
ERROR: Command errored out with exit status 1:
     command: /Users/xxxxxx/.virtualenvs/eb-3-dev/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/xxxxxx/.virtualenvs/eb-3-dev/src/django-flatblocks/setup.py'"'"'; __file__='"'"'/Users/xxxxxx/.virtualenvs/eb-3-dev/src/django-flatblocks/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/ph/3jc2sm6d611c76mjzj8crfj80000gn/T/pip-pip-egg-info-t312zlun
         cwd: /Users/xxxxxx/.virtualenvs/eb-3-dev/src/django-flatblocks/
    Complete output (34 lines):
    WARNING: The wheel package is not available.
    /Users/xxxxxx/.virtualenvs/eb-3-dev/src/django-flatblocks/.eggs/setuptools_scm-5.0.1-py3.7.egg/setuptools_scm/version.py:88: UserWarning: tag 'release/0.9.4' no version found
      warnings.warn("tag {!r} no version found".format(tag))
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/Users/xxxxxx/.virtualenvs/eb-3-dev/src/django-flatblocks/setup.py", line 50, in <module>
        "Django (>=2.2)",
      File "/Users/xxxxxx/.virtualenvs/eb-3-dev/lib/python3.7/site-packages/setuptools/__init__.py", line 144, in setup
        return distutils.core.setup(**attrs)
      File "/Users/xxxxxx/.pyenv/versions/3.7.9/lib/python3.7/distutils/core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "/Users/xxxxxx/.virtualenvs/eb-3-dev/lib/python3.7/site-packages/setuptools/dist.py", line 426, in __init__
        k: v for k, v in attrs.items()
      File "/Users/xxxxxx/.pyenv/versions/3.7.9/lib/python3.7/distutils/dist.py", line 292, in __init__
        self.finalize_options()
      File "/Users/xxxxxx/.virtualenvs/eb-3-dev/lib/python3.7/site-packages/setuptools/dist.py", line 717, in finalize_options
        ep(self)
      File "/Users/xxxxxx/.virtualenvs/eb-3-dev/lib/python3.7/site-packages/setuptools/dist.py", line 724, in _finalize_setup_keywords
        ep.load()(self, ep.name, value)
      File "/Users/xxxxxx/.virtualenvs/eb-3-dev/src/django-flatblocks/.eggs/setuptools_scm-5.0.1-py3.7.egg/setuptools_scm/integration.py", line 26, in version_keyword
        dist.metadata.version = _get_version(config)
      File "/Users/xxxxxx/.virtualenvs/eb-3-dev/src/django-flatblocks/.eggs/setuptools_scm-5.0.1-py3.7.egg/setuptools_scm/__init__.py", line 173, in _get_version
        parsed_version = _do_parse(config)
      File "/Users/xxxxxx/.virtualenvs/eb-3-dev/src/django-flatblocks/.eggs/setuptools_scm-5.0.1-py3.7.egg/setuptools_scm/__init__.py", line 127, in _do_parse
        version = _version_from_entrypoints(config) or _version_from_entrypoints(
      File "/Users/xxxxxx/.virtualenvs/eb-3-dev/src/django-flatblocks/.eggs/setuptools_scm-5.0.1-py3.7.egg/setuptools_scm/__init__.py", line 65, in _version_from_entrypoints
        version = _call_entrypoint_fn(root, config, ep.load())
      File "/Users/xxxxxx/.virtualenvs/eb-3-dev/src/django-flatblocks/.eggs/setuptools_scm-5.0.1-py3.7.egg/setuptools_scm/__init__.py", line 46, in _call_entrypoint_fn
        return fn(root, config=config)
      File "/Users/xxxxxx/.virtualenvs/eb-3-dev/src/django-flatblocks/.eggs/setuptools_scm-5.0.1-py3.7.egg/setuptools_scm/git.py", line 139, in parse
        branch=branch,
      File "/Users/xxxxxx/.virtualenvs/eb-3-dev/src/django-flatblocks/.eggs/setuptools_scm-5.0.1-py3.7.egg/setuptools_scm/version.py", line 212, in meta
        assert parsed_version is not None, "Can't parse version %s" % tag
    AssertionError: Can't parse version release/0.9.4
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Could this be related to https://github.com/pypa/pip/issues/7554? Does this error disappear if you use a "git+https" URL instead?

Using -e git+https://github.com/jazzband/django-flatblocks.git@master#egg=django-flatblocks does work. Thanks @martey


"oblique" button when rendering a plane stopped working in 0.4.18

🐛 Bug
In an Image layer, when there is a 3D image and 'depiction' is 'plane, the oblique button does not work anymore.
The keyboard shortcut 'O' still works.
There is a post in image.sc showing the bug.
To Reproduce
Steps to reproduce the behavior:

Add a 3D image to napari
Change 'depiction' to 'plane'
Click the 'oblique' button

Expected behavior
The plane should be shown in a orthogonal view regarding the camera position.
Environment

Please copy and paste the information at napari info option in help menubar here:

Environment details in the image.sc post.

Any other relevant information:

It used to work in 0.4.17
Additional context
This may impact a new feature in the napari-crop plugin 0.1.9, Cut with plane, which uses these buttons to change the plane normal interactively.

Hi, gave this a check and I think there is a need to define two different functions (one that will be triggered by the button click and one that will be triggered by the shortcut keystroke press and release). Seems like changing the code that defines de action logic from this:
https://github.com/napari/napari/blob/1335634c6b5701107fd4f47b371cf01c5d3c1dcc/napari/layers/image/_image_key_bindings.py#L37-L57
to something like this:
@register_image_action(trans._('orient plane normal along view direction'))
def orient_plane_normal_along_view_direction(layer: Image):
    viewer = napari.viewer.current_viewer()
    if viewer is None or viewer.dims.ndisplay != 3:
        return

    layer.plane.normal = layer._world_to_displayed_data_ray(
        viewer.camera.view_direction, [-3, -2, -1]
    )

@Image.bind_key(KeyCode.KeyO, overwrite=True)
def dynamic_orient_plane_normal_along_view_direction(layer: Image):
    viewer = napari.viewer.current_viewer()
    if viewer is None or viewer.dims.ndisplay != 3:
        return

    def sync_plane_normal_with_view_direction(event=None):
        """Plane normal syncronisation mouse callback."""
        layer.plane.normal = layer._world_to_displayed_data_ray(
            viewer.camera.view_direction, [-3, -2, -1]
        )

    # update plane normal and add callback to mouse drag
    sync_plane_normal_with_view_direction()
    viewer.camera.events.angles.connect(sync_plane_normal_with_view_direction)
    yield
    # remove callback on key release
    viewer.camera.events.angles.disconnect(
        sync_plane_normal_with_view_direction
    )

Makes things work:

Not totally sure why but, maybe is due to the yield usage that is only usable when the action trigger comes from a keystroke that I guess handles pressed and released events instead of just clicked as with the button?

@dalthviz napari 0.4.18 still uses string defined shortcuts, not app model one.
It looks like all generator actions are broken (also on main).


[9] System error: exec format error. when running docker image on raspberry pi

Make sure you run the latest version before reporting an issue. Feature requests should go in the forum: https://community.home-assistant.io/c/feature-requests
Home Assistant release (hass --version):
0.20.1
Python release (python3 --version):
3.4.4
Component/platform:
raspberry pi 3
Description of problem:
I have a swarm of raspberry pis that I'm trying to run home-assistant and it fails with the following error:
[9] System error: exec format error.
Expected:
I expect there should be a docker image that can run on a raspberry pi.
Problem-relevant configuration.yaml entries and steps to reproduce:

Traceback (if applicable):

Additional info:

This should be resolved in the just released 0.20.0. Sorry about that.

Thanks for checking into this, but I must be doing something wrong.  Before I was just running latest, so perhaps it wasn't getting what I thought it was.  I was explicit today so when I run
docker run -d --name="home-assistant" -v /home/pi/home-assistant:/config -v /etc/localtime:/etc/localtime:ro --net=host -e constraint:rpi==3 homeassistant/home-assistant:0.20.2
I get the failure of
docker: Error response from daemon: 500 Internal Server Error: Cannot start container 13fe97daebf1c727479386aed8d3ce3b793575429cbc5047aff443d00360f732: [9] System error: exec format error.
This is with docker 1.10.3 running on Linux clayton-ravine 4.1.17-hypriotos-v7+ #2 SMP PREEMPT Fri Feb 12 08:10:38 UTC 2016 armv7l GNU/Linux


Use prop map from the past + revert usage_end_date

As hail batch jobs can appear in the past, good to expand this range. We should make the prop map handle this case more gracefully.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (main@63f8278). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #177   +/-   ##
=======================================
  Coverage        ?   88.04%
=======================================
  Files           ?        4
  Lines           ?      393
  Branches        ?        0
=======================================
  Hits            ?      346
  Misses          ?       47
  Partials        ?        0

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


使用表单组件时,编辑器提示 Angular: Identifier 'userName' is not defined. '__type does not contain such a member

直接copy的官网例子
webstorm vscode下报错一样

Form 表单有很多例子，请问你说的是那个？

Hi @leeziiAtCn , it is an unanswerable question https://zhuanlan.zhihu.com/p/25795393.

@leeziiAtCn your userName is not defined, please make sure you already understand angular reactive form before you copy code from the website.

@vthinkxie
ok bro, What's the point of your document if I have the error of copying the code according to the document?

@leeziiAtCn you can not boot angular only with single component, the demo code assumed that you have corrected angular base environment.

@vthinkxie  emmm,I still think it's inappropriate for zorro to do it, Because I  think is not the user's responsibility.
I try copy your code on step form 'get started'--->'form',I still get a error.
Of course if you think  user in not too smart , so we are is not too smart,haha

and my Ng-app is can running , no error in my page and console,
only get a error in my IDE,
so I think that error is not easy to catch

If there is only error in your ide, you may not config your tslint.json or other config properly, there is nothing todo with the code itself.


test-network-k8s: ./network kind error creating cluster should be reported in the terminal

I have docker and kubectl installed as snaps, and since I'm running a VPN I needed to add a manual network using brctl per docker/for-linux #1105.
My ./network kind command is only getting a little further however:
$ ./network kind
Initializing KIND cluster "kind":
✅ - Pulling docker images for Fabric 2.3.2 ...
⚠  - Creating cluster "kind" ...
$

This is pretty, but not that helpful. At the very least the user should get a message to check out the file network-debug.log, but publishing the error message to the console would be even better. I've attached that file (network-debug.log) for reference (and maybe for help with whatever my config issue is), but here are the relevant lines from it too (which look similar to my earlier VPN issue):
Status: Downloaded newer image for hyperledger/fabric-tools:2.3.2
docker.io/hyperledger/fabric-tools:2.3.2
Deleting cluster "kind" ...
Creating cluster "kind" ...
 • Ensuring node image (kindest/node:v1.21.1) 🖼  ...
ERROR: failed to create cluster: failed to ensure docker network: command "docker network create -d=bridge -o com.docker.network.bridge.enable_ip_masquerade=true -o com.docker.network.driver.mtu=1500 --ipv6 --subnet fc00:f853:ccd:e793::/64 kind" failed with error: exit status 1

Command Output: Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network

@jkneubuh

Fixed in PR #729


Expand regular XCM tests

Related to / dependent on #54 .
Expand tests to check that:

[ ] actual XCM fees were below estimated fees

Blocked until #54 is done, or can be done in conjunction with that work.

The actual script to test this is completed with #57


Implement bit operators for Expr

With Expr representing a boolean logic expression, it makes sense to implement the bit operators (&,&=,|,|=,!) to simplify expression creation. This pull request does just that.

Thanks!

Published as v0.4.1 on crates.io.


Increase xstack to 512 bytes

512 bytes will allow for rename to have two full-length strings. read_xstack and write_xstack can take advantage of this too.

RIA is updated. Need to update both SDKs still.


Client sometimes sends REQ filter with empty filter list

While debugging an issue with a relay i encountered the following: the client sometimes sends requests like:
["REQ","OJ957lpN",{"#e":["..."],"kinds":[9735]},{"#a":[],"kinds":[9735]}]

As i understand the "#a":[] here is not accordance with BIP-01:
"Filter attributes containing lists (ids, authors, kinds and tag filters like #e) are JSON arrays with one or more values."

@laanwj also it can be reproduced by using wss://relay.jellyfish.land.
And a small note: NIP-01, not BIP. (;

I think i found the bug

Seems so... i've deployed that commit locally and haven't seen the issue since!


Rename operation aborted without user interaction in 1.54.1

VS Code Version: 1.54.1
OS Version: Mac OS 10.15.7

Hi,
I just upgraded to 1.54.1 and I'm still experiencing the same problem as in:

https://github.com/microsoft/vscode/issues/112555
https://github.com/microsoft/vscode/issues/111652
https://github.com/microsoft/vscode/issues/112438
https://github.com/microsoft/vscode/issues/111652

Thanks for your help

/needsMoreInfo can you reproduce the issue after running the command to reload with all extensions disabled? If so please provide clear steps.

Arg, can't reproduce it anymore with extensions disabled or not...


Different results when loading Chroma() vs Chroma.from_documents

System Info
langchain==0.0.217
python=3.10
Who can help?
@hwchase17
Information

[ ] The official example notebooks/scripts
[X] My own modified scripts

Related Components

[ ] LLMs/Chat Models
[ ] Embedding Models
[ ] Prompts / Prompt Templates / Prompt Selectors
[ ] Output Parsers
[ ] Document Loaders
[X] Vector Stores / Retrievers
[ ] Memory
[ ] Agents / Agent Executors
[ ] Tools / Toolkits
[ ] Chains
[ ] Callbacks/Tracing
[ ] Async

Reproduction
Hi! I am working on a 'question answering' use case. I am loading PDF docs which I am storing in the Chroma vectorDB along with the instructor embeddings. I use the following command to do that:
vectordb = Chroma.from_documents(documents=texts,
                                 embedding=embedding,
                                 persist_directory='db')

Here I am storing the vectordb on my local machine in the 'db' folder.
When I use this vectordb as retriever and then use RetrievalQA to ask questions I get 'X' answers.
After storing the vectordb on my local, the next time I directly load the db from the directory:
vectordb = Chroma(persist_directory='db', embedding_function=embedding)
When I use this vectordb as retriever and then use RetrievalQA to ask the same questions, I get different answers.
I hope I was able to explain the issue properly.
Expected behavior
My understanding is that I should get the same answer after loading the vectordb from my local. Why am I getting different answers?  Is this an issue with langchain or am I doing this incorrectly? Can you please help me understand?

Hi! Can I please get some help on the above? Thanks

@adityakadrekar16 There are two likely culprits

Normal model output variance (expected)

What is the temperature of the LLM? Variance in answers is expected especially if the temperature is higher than 0.0. Models are also sensitive to document ordering. It's possible that the retriever is fetching the documents in slightly different order which impacts the LLMs output.

Data discrepancies between saving and loading the data (potential bug)

Did you verify the data is the same in Chroma when loading from documents and when loading from disk?

Thanks for your response, @devstein

I am using the same temperature (0) in both cases.
I did this and I get the same data only when I do db.persist(). If I don't perform this step, then I get different results.

The trick is to use db.persist().
Found this in the langchain documentation which helped to debug this issue.

Hi, did you solve the issue or did you just close it? I create a new dir everytime, but I'd link to find a solution

the bug is still not solved


table and figure sources: https://github.com/metanorma/metanorma-iec/…

…issues/198
Metanorma PR checklist

[ ] Breaking changes (list related PRs)
[ ] Documentation update required (create task for this)
[ ] External dependency introduced (documentation update need)
[ ] Gem with native library introduced

merged into doc20230606


Generate record link JSON at query time

The CSV DictWriter was writing the JSON for the record_link column
using a single quote instead of a double quote around the JSON key names
and values. This was causing a json.loads error in html_links.py.
With this change, we don't store the JSON in the table. Instead,
at query time, the SQL concatenates to build the JSON. The two components
that go into the JSON are record_url which was already a column
and a new column named record_link_label.

Deployed


input event regression elinux 2.5.0 -> (2.5.1 & 2.5.2 & 2.5.3)

HW: IMX8 mini quad  (variscite hw with debian bullseye image)
steps to reproduce:
generate simplest flutter app ->  flutter-elinux create testapp
test:

application works on elinux 2.5.0
on elinux 2.5.1, 2.5.2, and 2.5.3 the application builds.  When running the application runs it  does not react to touch-input or mouse input. On rare occasions it will accept a few (1-5) input events just after launch, but will then no longer respond.

Thank you for your report. This is a known issue and is due to https://github.com/sony/flutter-embedded-linux/issues/230. Thanks a lot.


Version 1.5.9 crash with "type 'Null' is not a subtype of type 'String' in type cast"

After updating tdlib to 1.5.9 it crashes with the error:
Oops; flutter has exited unexpectedly: "type 'Null' is not a subtype of type 'String' in type cast".
A crash report has been written to C:\Projects\telegramnews\flutter_03.log.

log:
flutter_03.log
tdlib version is tdlib: 1.5.9+1
Version 1.5.0 works correctly with no crashes

update the plugin and enjoy tdlib: 1.8.15


clearRegions() after zoom causes error

Hi.
Using zoom and region plugin simultaneously and trying to redraw regions after zooming.
In that case get error "TypeError: Cannot read property 'style' of null" in drawer.js:82:19
80.    style: function (el, styles) {
81.        Object.keys(styles).forEach(function (prop) {
82.            if (el.style[prop] !== styles[prop]) {
83.                el.style[prop] = styles[prop];
84.            }
85.        });
86.        return el;
86.    }

Any idea how to fix it?

Fix regarding issue I found https://github.com/katspaugh/wavesurfer.js/issues/598.
Please take a look on it. Not sure that this is the best solution but it work for me


Add missing setter override

thanks @misslester, was going to get around to this eventually, but forgot. :+1:


New Feature: Forward unknown command line arguments to jest.config.js

🚀 Feature Proposal
Forward unknown command line arguments to jest.config.js file. Right now, jest will respond with "unknown argument'. The proposal is to instead allow these unrecognized arguments so they can be used in the jest.config.js file to modify the config.
Tor-051496:my-project ben$ yarn jest --unit
yarn run v1.5.1
$ /Users/ben/Projects/my-project/node_modules/.bin/jest --unit
● Unrecognized CLI Parameter:

  Unrecognized option "unit".

  CLI Options Documentation:
  https://facebook.github.io/jest/docs/en/cli.html

Motivation
Sometimes you want to slightly change the jest config based on some variable. For example, I might want to only run my unit tests or integration tests instead of all my tests. Or I might want to only test a certain project in a monorepo.
Example
Your cli command would look like this:
jest --integration
And you config might look like this:
const argv = require('yargs').argv;
function getTestRegex() {
  if(argv.integration) {
    return `__tests__/integration/\.(ts|js)x?$`;
  }

  return 'test\.(ts|js)x?$';
}

module.exports = {
  "testRegex": getTestRegex(),
}

Alternatives
Alternatively, you could also somehow specify this is a custom flag. The advantage here is that you can keep the "unknown flag" check. The disadvantage is that it becomes a little more verbose.
jest --known-jest-flag --custom-flags --integration
or maybe
jest --known-jest-flag -f --integration
Right now, you can also use environment variables, but they're more verbose.
TEST_TYPE=integration jest
Pitch
This involves a direct change to the jest cli, and there's no way to do this outside the core as far as I know.

I'm also willing to submit a PR for this if the proposal is accepted.

Disabling unknown CLI commands was a conscious decision, to align Jest with a lot of UNIX tools, and we're not going back. We believe this makes sense.
As you already mentioned, this is possible using env variables and I don't see it being more verbose than a CLI flag. I can't see any added value by this proposal, but even more config options to maintain.
Sorry to be a bearer of bad news, but I'm going to close this.
Thanks for taking the time to prepare a nice feature request, appreciated! Looking forward to more proposals or bug fixes :)

Just for the one who come across this and needs to use custom arguments for their tests. I wrote an article on how to bypass the check and allow this functionality: "Jest: Passing custom arguments"

Imagine you are using jest-puppeteer to run e2e tests. You might want to supply options like headless=false and slowmo=250, or even other start-up options for Puppeteer.
If a preset like jest-puppeteer could add it's own commands directly to the Jest CLI, would that not be good? It makes sense to me at least, as long as they are namespaced and validated by the preset.

if you need in continuos integration i propose my solution
https://stackoverflow.com/questions/59502578/jestjs-how-to-parametrize-test-execution-from-cli-in-ci/59502579#59502579


Playbook needs password set or verified for user running the playbook

Describe the Issue
The playbook needs password set for the user that is running the pipeline and ansible_become_password needs to be set in the playbook vars.
Recommended approach
Make this a fail safe for the user experience as well as the pipeline. The password needs to be verified early on in the playbook OR the password needs to be set before the password requirement is implemented in the playbook to ensure user is not locked out of system.
TASK [/github/workspace : MEDIUM | RHEL-07-010344 | PATCH | The Red Hat Enterprise Linux operating system must not be configured to bypass password requirements for privilege escalation.] ***
fatal: [centos7]: FAILED! => {"msg": "Missing sudo password"}

Expected Behavior
Password is verified in earlier tasks, or is set, in the playbook prior to this task failing. Task and follow on tasks complete.
Actual Behavior
Task fails. User is potentially locked out of system. User needs to restore system.

Something like this may get 1/3 of the way there, but still does not verify the password. Not sure there is a safe way to pass in a password to be verified in Ansible, but at least this will fail if you don't have one at all...
- name: PREREQ | Fail hard if current user does not have a password
  become: true
  shell: |
    #!/bin/bash
    has_pass=$(getent shadow | grep $(whoami) | cut -d ":" -f 2)
    if [ $has_pass = "!!" ]; then
      echo "true"
    else
      echo "false"
    fi
  register: ansible_user_has_password
  failed_when: ansible_user_has_password.stdout | bool == false

hi @bordenit
Thank you for raising this issue. The control causing this is RHEL-08-010340. I have now added this at two levels.
README has it listed individually rather than under a generic statement.
I have also made the control 010340 added to disruption_is_high variable, so this needs to be specifically set.
Very best
uk-bolly

hi @whitehat237
Thank you for the feedback, these side cases are rarely covered by any of the documentation and its great to get feedback like this.
I am sure there are other controls that an externally managed authentication system wouldn't require other items to be adjusted also e.g. cyberark
Would it be worth adding a new variable for external user management and then working through each control. This allows to be alot more specific and could provide more options when and when not to use?
We would appreciate any feedback on this and we would require testing also.
best regards
uk-bolly

Yes, I think it's an interesting idea, and would be worthwhile.
For this particular task in prereq.yml, a variable could be used to specify if the user account being used to run the role, is an externally authenticated user or not.  More specifically, is the password attribute for the account provided locally or is it sourced from a remote provider?  (Since the control seems to be primarily concerned with whether or not the user invoking the role has an established password attribute set.  In this case by looking in /etc/shadow)
Perhaps one of the following variable names would work?
rhel7stig_role_applying_user_remotely_authenticated: false

rhel7stig_role_applying_user_remote_pw_attribute: false

With the default role shipped value set as false.
When set to true, the task should be skipped:

- name: PREREQ | Fail hard if current user does not have a password
  become: true
  shell: |
    #!/bin/bash
    has_pass=$(getent shadow | grep $(whoami) | cut -d ":" -f 2)
    if [ $has_pass = "!!" ]; then
      echo "true"
    else
      echo "false"
    fi
  register: ansible_user_has_password
  failed_when: ansible_user_has_password.stdout | bool == false
  when: not rhel7stig_role_applying_user_remotely_authenticated

Regarding your idea of having a variable for external user management.
I think it's sensible to determine if the user account is defined in /etc/passwd, and /etc/shadow, and if it isn't, exclude it from the list of discovered local users used later on by other role tasks.
If a local account is present, all of the usual role controls should still be applied for that account, and setting the variable in question to true should not disable the implementation of applicable controls for real local accounts.
In our use case there is a single local account present (defined in /etc/passwd and /etc/shadow), but this account is not used to "apply" the RHEL7-STIG role, and it's not needed solely for the purpose of running the role.
We also have a couple of organizational security policy requirement that affect this:

all "local" accounts have to be documented and approved by the org security team.
local accounts are not allowed to be present in the wheel group.  (The local account is not allowed to elevate via some method like sudo or ksu, but can still use su with root password.)

One can install RHEL 7 and have no local account present.  (Excluding root) by just not creating the local account in the installer / kickstart file in order to be compliant with this control by default.
In that case,  users authentication requests to the system may be handled by an external identity provider such as IPA, ldap, AD, etc.
One question might be, how should the role reliably determine if an external identity provider is connected and used?
sssd seems to be the standard lookup provider on most (all?) enterprise Linux 7 systems.
We first considered looking at /etc/nsswitch.conf to see if sss is specified, however it does not seem to be sufficient to just look at whether or not sss is used in nsswitch, because on a default install of RHEL 7 with no connected identity provider, it appears that sss is still present in the passwd line in nsswitch.conf (based on our testing)
One idea we have, and method we're going to test is to recursively check if an identity provider is configured in /etc/sssd/*
(Due to it being possible to have /etc/sssd.d/50-ad.conf or a similar numbered config snippet, where a provider could be configured)
grep -i "id_provider" /etc/sssd* -R

If an id_provider is configured, this could be registered in a task, and used to set a corresponding ansible variable like use_sssd to true, and be subsequently used by other role tasks to implement a control or not.
Another task in prereq.yml could perform lookup on discovered users (when an external identity provider is in use) to validate that the account is actually defined in /etc/passwd and /etc/shadow before producing the final list of discovered users.
Thoughts?

Thank you @whitehat237
I have tried a different way, based upon the feedback which is very much appreciated.
I have created a new branch issue_#414 while we don't want to deviate from the official requirements by making other changes, This hopefully covers off the majority of cases? At the same time keeping it simple and user controlled?
It may also be worth extending a nsswitch lookup as mentioned order dependant to see if files are first of if getent UID returns local account?
Any further feedback or thoughts, testing to you could assist with is appreciated.
best regards
uk-bolly

I finally had a chance to test branch 414.
I implemented the changes from your commits on my local RHEL7-STIG role and ran the role against a RHEL 7.9 physical system.
It works as intended.
I ran it twice, the first run had rhel7stig_role_applying_user_remotely_authenticated set as true
The second run through had it set to false.
On the second run through, your changes worked properly and the assertion task to ensure that a password is set for {{ ansible_user }} if local account showed as skipped.
In both runs I used an external IDM authenticated account to run the role.

@uk-bolly
As a side note, I also tested these changes with RHEL8-STIG on a RHEL 8.6 system as they relate to the task for RHEL-08-010380 in tasks/main.yml
The changes work for RHEL8-STIG as well, without issue.

all merged and sorted thanks for your feedback.


Use rootProject SDK versions if available; bump defaults

Fixes: https://github.com/Expensify/react-native-share-menu/issues/261
This updates to use the rootProject SDK versions if available similar to react-native-screens. It also bumps the default SDK versions up to match RN 0.68+

@AndrewGable This is another PR needed for current React Native versions.


BACKPORT: Add nodev to options of bind mounts from kube

Signed-off-by: Antonio Murdaca<EMAIL_ADDRESS>
- What I did
- How I did it
- How to verify it
- Description for the changelog

/test all

/test e2e_rhel

/test kata-containers

Need to rebase this I guess

/test all

@mrunalp this is ready


Rate limit inttests

This is very basic tests for Ibc rate limit module to ensure it works as expected in our enviroment

IBC transfers made by smart contracts via the ibc-transfer module are also limited

This is a very good point.
But i don't think we need to implement others if they are covered in unit-tests in Neutron


[ixigua] Add Extractor

Before submitting a pull request make sure you have:

[x] At least skimmed through contributing guidelines including yt-dlp coding conventions
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8 and ran relevant tests

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Fix or improvement to an extractor (Make sure to add/update tests)
[x] New extractor (Piracy websites will not be accepted)
[ ] Core bug fix/improvement
[ ] New feature (It is strongly recommended to open an issue first)

Description of your pull request and other information
Explanation of your pull request in arbitrary form goes here. Please make sure the description explains the purpose and effect of your pull request and is worded well enough to be understood. Provide as much context and examples as possible.
Add Extractor for ixigua.com
example url :
https://www.ixigua.com/6996881461559165471
close #2840

Other overall comments:
Try to use sensible variable names which are self describing
Use single quotes everywhere

Also given how much data tiktok and douyin provides, i think more data can be obtained here aswell.
Try to see if u can do it (especially subs, thumbnails, uploader, date, channel, etc etc)

It seems the test always failling because there's no cookie. How to add cookie to the test ?

just add a skip saying cookies are needed.
See this in discoveryPlusIndia i think

@HobbyistDev Sorry to be a pain in the butt, but can you please fix the following flake8 errors:

@HobbyistDev Please see https://github.com/yt-dlp/yt-dlp/pull/3948#issuecomment-1145329298
Obviously I don't have a time machine, and I doubt you do either, but please avoid force pushing in future

@gamer191 This kind of force-pushing is fine. It becomes annoying only when commits that have already been reviewed are overwritten

Hello, I have some question :

How to set a stream as audio only or video only ?
The audio track seems give mp4a extension, does mp4a same as m4a ?

Note to self :
playlist json url : https://www.ixigua.com/api/videov2/pseries_more_v2?pSeriesId=&rank=0&tailCount=30&msToken=&X-Bogus=&_signature=<_signature>

How to set a stream as audio only or video only ?

audio only:
{
  'vcodec': 'none',
  'acodec': any codec here in str or None,
}

The string 'none' means it's not existing, but None means the codec is unknown.

@Ashish0804 Don't forget to remove pending-fixes once your comments have been addressed

The url give 2 bitrate value, here's the json
{
  "definition": "480p",
  "quality": "normal",
  "vtype": "dash",
  "vwidth": 854,
  "vheight": 480,
  "bitrate": 1081003,
  "real_bitrate": 881974,
  "fps": 30,
  "size": 113563044,
  "codec_type": "h264",
  "file_hash": "df379f008021f766a289008a736bfdde",
  "main_url": "aHR0cDovL3Y5LXhnLXdlYi1kZWZhdWx0Lml4aWd1YS5jb20vOWFmMzQyMTA4N2Y4MTRlZWU3ZGUzYWQ3OTE2MDlkNTAvNjJhMTI5MGIvdmlkZW8vdG9zL2NuL3Rvcy1jbi1vLTAwMDQvZjk3ZWRjNmM4ZDZiNDYyMmJmNDM1ZjRmNDk4ZGM3MDMvbWVkaWEtdmlkZW8tYXZjMS8\u002FYT0xNzY4JmNoPTAmY3I9MCZkcj0wJmVyPTAmbHI9ZGVmYXVsdCZjZD0wJTdDMCU3QzAlN0MwJmN2PTEmYnI9ODYxJmJ0PTg2MSZjcz0wJmRzPTImbWltZV90eXBlPXZpZGVvX21wNCZxcz0wJnJjPU5EazFaR2s4T21ZOFptaGtNemc0UEVCcE16dHlhbVU2WmpvME56TXpORGN6TTBBeExqQXhZMkZmTlRNeFhqRmdNRE5lWVNOZk5UQXhjalJuY1dGZ0xTMWtMV0Z6Y3clM0QlM0QmbD0yMDIyMDYwOTA1MzkwMTAxMDE1MDE3NjAyOTAwQTJERUJE",
  "backup_url_1": "aHR0cDovL3Y5LXhnLXdlYi1kZWZhdWx0Lml4aWd1YS5jb20vOWFmMzQyMTA4N2Y4MTRlZWU3ZGUzYWQ3OTE2MDlkNTAvNjJhMTI5MGIvdmlkZW8vdG9zL2NuL3Rvcy1jbi1vLTAwMDQvZjk3ZWRjNmM4ZDZiNDYyMmJmNDM1ZjRmNDk4ZGM3MDMvbWVkaWEtdmlkZW8tYXZjMS8\u002FYT0xNzY4JmNoPTAmY3I9MCZkcj0wJmVyPTAmbHI9ZGVmYXVsdCZjZD0wJTdDMCU3QzAlN0MwJmN2PTEmYnI9ODYxJmJ0PTg2MSZjcz0wJmRzPTImbWltZV90eXBlPXZpZGVvX21wNCZxcz0wJnJjPU5EazFaR2s4T21ZOFptaGtNemc0UEVCcE16dHlhbVU2WmpvME56TXpORGN6TTBBeExqQXhZMkZmTlRNeFhqRmdNRE5lWVNOZk5UQXhjalJuY1dGZ0xTMWtMV0Z6Y3clM0QlM0QmbD0yMDIyMDYwOTA1MzkwMTAxMDE1MDE3NjAyOTAwQTJERUJE",
  "url_expire":<PHONE_NUMBER>,
  "file_id": "a96535c04aae4c698cb7d9ff4a321641",
  "init_range": "0-953",
  "index_range": "954-3469",
  "check_info": "a:v0d004g10000c4d1t7jc77ub4g3o88b0|b:0-3469-4f6d5fb43410583b5e94bf7e8c737af3|c:0-3469-1ae0",
  "fitter_info": null,
  "quality_type": 30,
  "language_id": 0
}

On this json, which one that could be used as vbr is it bitrate or real_bitrate ?

If you are having trouble with the merge conflict, just ignore it. I'll fix it up before merging the PR

❯ yt-dlp -v https://www.ixigua.com/6996881461559165471
[debug] Command-line config: ['--ignore-config', '-v', 'https://www.ixigua.com/6996881461559165471']
[debug] Encodings: locale cp65001, fs utf-8, pref cp65001, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.05.18 [b14d52355] (source)
[debug] Lazy loading extractors is disabled
[debug] Plugins: ['SamplePluginIE', 'SamplePluginPP']
[debug] Git HEAD: 1d42d7137
[debug] Python version 3.10.4 (CPython 64bit) - Windows-10-10.0.22000-SP0
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg N-106550-g072101bd52-20220410 (fdk,setts), ffprobe N-106624-g391ce570c8-20220415, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome-3.14.1, brotli-1.0.9, certifi-2021.10.08, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.1
[debug] Proxy map: {}
[debug] [Ixigua] Extracting URL: https://www.ixigua.com/6996881461559165471
[Ixigua]<PHONE_NUMBER>55916547: Downloading webpage
ERROR: [Ixigua]<PHONE_NUMBER>55916547: Failed to get SSR_HYDRATED_DATA; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\extractor\common.py", line 642, in extract
    ie_result = self._real_extract(url)
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\extractor\ixigua.py", line 65, in _real_extract
    json_data = self._get_json_data(webpage, video_id)['anyVideo']['gidInformation']['packerData']['video']
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\extractor\ixigua.py", line 38, in _get_json_data
    raise ExtractorError('Failed to get SSR_HYDRATED_DATA')

This is expected if we didn't give cookie, i think the website maybe have some sort of js rendering (or http redirect) that not display the correct html when we just call the webpage and not render the js, not sure thought.
Here's the log:
(python_proj2) D:\USER\Computer\python_proj\python_proj2\yt-dlp>python -m yt_dlp -v -s "https://www.ixigua.com/6996881461559165471" --add-header "Cookie: __ac_nonce=062ae8a1a00aa92b49ad5; __ac_signature=_02B4Z6wo00f012nigigAAIDDU5WaFcfIfxtp04aAALjh76; __ac_referer=__ac_blank; MONITOR_WEB_ID=ab6dddcb-638e-4bd3-9111-d71eeb801f28; ttwid_date=1"
[debug] Command-line config: ['-v', '-s', 'https://www.ixigua.com/6996881461559165471', '--add-header', 'Cookie: __ac_nonce=062ae8a1a00aa92b49ad5; __ac_signature=_02B4Z6wo00f012nigigAAIDDU5WaFcfIfxtp04aAALjh76; __ac_referer=__ac_blank; MONITOR_WEB_ID=ab6dddcb-638e-4bd3-9111-d71eeb801f28; ttwid_date=1']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.05.18 [b14d52355] (source)
[debug] Lazy loading extractors is disabled
[debug] Plugins: ['SamplePluginIE', 'SamplePluginPP']
[debug] Git HEAD: c4d0a6207
[debug] Python version 3.10.4 (CPython 64bit) - Windows-10-10.0.19044-SP0
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 5.0.1-full_build-www.gyan.dev (setts), ffprobe 5.0.1-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.14.1, brotli-1.0.9, certifi-2<IP_ADDRESS>, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] [Ixigua] Extracting URL: https://www.ixigua.com/6996881461559165471
[Ixigua]<PHONE_NUMBER>55916547: Downloading webpage
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info]<PHONE_NUMBER>55916547: Downloading 1 format(s): 0-4+0-10

my bad. I forgot about that

When I firstly tried this branch at the very beginning, it works without feeding in any cookies. Is it just a video by video thing?

You must have tried it at fcbece323e51adee107af184d057a91af4d00597 where they hard-coded their own cookies (which no longer works either)


eval $(thefuck --alias) is slow

Hello,
I'm cleaning up my zshrc/aliasrc & with the help of https://github.com/ohmyzsh/ohmyzsh/issues/5327#issuecomment-455763912 I've noticed that eval $(thefuck --alias) slows down my shell by a lot!
The startup time changed from ~140ms to ~50ms once I disabled the evaluation of the alias.
Wouldn't it be faster to just paste the output of thefuck --alias into my aliasrc to avoid the slowdown?
Or wouldn't it later be compatible etc?
Thanks!
$ thefuck --version
The Fuck 3.29 using Python 3.8.0 and ZSH 5.7.1

$ uname -a
Linux arch-usb 5.4.1-arch1-1 #1 SMP PREEMPT Fri, 29 Nov 2019 13:37:24 +0000 x86_64 GNU/Linux

Reproducing:
Enable / disable the alias evaluation & measure startup times.
echo "eval $(thefuck --alias)" >> ~/.zshrc

I measure my startup time with this:
# start of ~/.zshrc

# measure boot time (see also the last line)
bootTimeStart=$(date +%s%N)

# end of ~/.zshrc
bootTimeDuration=$((($(date +%s%N) - $bootTimeStart)/1000000))
printf "$bootTimeDuration ms\n"

The same happens with
source <(kubectl completion zsh)

So now I have 300ms = 60ms + 120ms + 120ms startup time.

It sounds like this could be just implemented as part of the installation.


DCOS-11482: Backport fix for unknown values wipe

Fix the wipe of unknown values from the job form.
Closes DCOS-11482

Looks good dude. Is this commit in master too? And if not; should it be?

Merging as integration tests aren't really working for 1.8

@mlunoe yep this commit is already on master 😄

👍🏼


Cannot install in local to develop

Hi,
I wanted to work on the bug I found and exposed in #98 but I sadly cannot install the package locally using the command python3 -m pip install -e . as the Github Actions workflow file is suggesting. I also try to run the CI on a fork of the repo but the same error occured (i.e., the package scalpel is not found when importing).
I also try to simply install it locally (without the -e option) but it does not work. It is install under the Scalpel name with version 0.0.1 (as stated in pyproject.toml and thus different from setup.py)
Do you have any input on that? How are you testing the tool locally?
Thanks a lot!

Hi,
A simple way is Just cloning the project, use the scalpel folder only, and importing.
---Scapel
| - --- src
|- scaple
|- your script here.
We changed the folder structure because we will follow the new packing guideline.

Hi @Jarvx ,
Thanks for your quick reply! I just tried this solution but I still get this error:
  File ".../Scalpel/src/scalpel/test_cfg.py", line 2, in <module>
    from scalpel.cfg import CFGBuilder
ModuleNotFoundError: No module named 'scalpel'

Hi @Jarvx , Thanks for your quick reply! I just tried this solution but I still get this error:
  File ".../Scalpel/src/scalpel/test_cfg.py", line 2, in <module>
    from scalpel.cfg import CFGBuilder
ModuleNotFoundError: No module named 'scalpel'

your test_cfg.py should appear under  src folder.

No problem!


my-element.js 404 in starter-kit

Which package(s) are affected?
Starter Kits (@lit/lit-starter-js / @lit/lit-starter-ts)
Description
I went from https://lit.dev/docs/tools/starter-kits/ to https://github.com/lit/lit-element-starter-ts
Reproduction
git clone https://github.com/lit/lit-element-starter-ts
cd lit-element-starter-ts
npm i
npm serve

Open http://localhost:8000/
Click component demo link
404 on my-element.js
Workaround
I have not found a workaround
Is this a regression?
No or unsure. This never worked, or I haven't tried before.
Affected versions
3.0.2
Browser/OS/Node environment
Ubuntu wsl2
npm 9.8.0

I needed to npm run build before/npm run build:watch in another tab..
I will leave it here if you want to consider documentation improvements.
The npm run build command did give an error: src/test/my-element_test.ts:10:9 - error TS2724: '"lit"' has no exported member named 'UncompiledTemplateResult'. Did you mean 'CompiledTemplateResult'?

Thank you for filing this issue. The error error TS2724: '"lit"' has no exported member named 'UncompiledTemplateResult' has uncovered version skew between the starter kits and the main repo.
Making a PR to fix now.

Closing as fixed. Thanks for the report!


url redirect adding multiple path

I have this simple function to route traffic equally to two APIGW as origin. I see few requests works but after that it starts giving me 403. Looks this function is adding same literal multiple times or in some way function cache is messing it up.
function handler(event) {
    var randomnumber = Math.floor(Math.random() * 100)
    if (randomnumber < 50) {
        var reg = 'east'
        console.log({
            statusCode: 302,
            statusDescription: 'Found',
            headers: {
                "location": {
                    "value": `https://${event.request.headers.host.value}//${reg}${event.request.uri}`
                }
            }
        })
        return {
            statusCode: 302,
            statusDescription: 'Found',
            headers: {
                "location": {
                    "value": `https://${event.request.headers.host.value}//${reg}${event.request.uri}`
                }
            }
        };
    }
    return event.request
}

Correct redirect url would be something like this -
_https://XXXXXXXXXX.cloudfront.net//east/p1/p2/p3/p4_
But when it gives 403 and i check function log, i see these as return - (essentially "east" multiple times in path, which explains why i am getting 403). But I am unable to figure out what i am doing wrong. This function is associated with distribution as "Viewer request".
_https://XXXXXXXXXX.cloudfront.net//east//east/p1/p2/p3/p4
https://XXXXXXXXXX.cloudfront.net//east//east//east/p1/p2/p3/p4_

From your code I assume the redirect is pointing to the the same CloudFront distribution. This means you can be redirected many times, e.g.:

request:  XX.cloudfront.net/foo  ==> 50% chance of being redirected to XX.cloudfront.net/east/foo
request:  XX.cloudfront.net/east/foo  ==> 50% chance of being redirected to XX.cloudfront.net/east/east/foo
request: XX.cloudfront.net/east/east/foo => 50% chance of no redirect => origin request of /east/east/foo returns 403 and is returned to viewer.


Document views workaround for MongoDB

https://www.prisma.io/docs/guides/database/advanced-database-tasks/sql-views-postgres should also exist for MongoDB (at least if https://github.com/prisma/prisma/discussions/12021#discussioncomment-2251376 is not lying)
When the page is available, make sure to update https://github.com/prisma/prisma/issues/678 to mention it as well.

👋 we're cleaning up our backlog of issues and are closing everything older than two years. If you still feel that this issue is relevant, please feel free to re-open and our team will take a look. Thank you!


Unable to input certain characters on Scandinavian keyboard

On a Scandinavian keyboard with Danish layout you have to press Ctrl + Alt (or just AltGr) + one of <, 2, 8, 9 to type one of \, @, [, ] respectively. In Neovide none of these characters can be typed. Trying to type \ results in ^\ appearing in the bottom right corner and insert/replace/command mode is exited.
I have never encountered this anywhere else.

This is a repeat of https://github.com/Kethku/neovide/issues/445. The current solution would be to contribute a keyboard layout similar to this one https://github.com/Kethku/neovide/blob/main/src/window/sdl2/layouts/qwerty.rs, but eventually we will rely on winit to handle keyboard layouts correctly as outlined in the keyboard handling issue

I would be happy to give pointers for how to contribute a Danish keyboard layout if you are interested in doing that

I looked into it, but I don't think I can justify doing it if that winit pr is merged soon, which it looks like it is.


Cant find a way to get 'consumes' to work

Is it possible to include docs on this subject, or rather then leaving it up to developers to implement as a custom filter, why cant we create annotations for this that work like the others do?

What specifically are you having trouble with? As of v4.0.0, the following should work just fine:
[HttpPost("/api/products")]
[Consumes("application/vnd.api+json")]
public IActionResult CreateProduct([FromBody]Product product)
{
    ...
}

All good I found a way  👍


Add paperwork. Fixes #75

This is a preliminary PR so that we can talk about it. The tests fail as of yet.
I'll add some comments, please review them.

:+1: good from me now

:+1:
Awesome, thank you @zsoltk!

@vanniktech thank you for review and comments, as always :+1:

@zsoltk ah, forgot to say that will be great to mention Paperwork in README! Feel free to submit a PR for that!

Happy to contribute, thanks for the opportunity!
As for the README, I would feel a lot better if it were written in your own words, just as other mentions are, if I may ask.

Sure, no problem :)


normalize.css on a config level?

I guess it's a good choice to always reset or normalize styles before start creating new ones, but I guess including normalize.css as a default is kind of opinionated.
I mean that I understand this things as a part of the end product and I guess Hops goes a little too far including normalize.css as a default way of reseting styles. I may prefer sanitize.css (which I do) or a plain old reset.css, or even a custom solution.
Maybe it's better to let the users chose the best for their app? What do you think?

I think you're absolutely right. Does @matthias-reis fix from the first pr work for you?

Just to give some more context: https://github.com/xing/hops/pull/1 removed the default add of normalize css and allowed you to include those in your own project
A possible variant could be to install the normalize.css package and use it like so:
file src/base-styles/normalization.css:
@import 'normalize.css';

body {
  /* my other main styles */
}

and reference it in .hopsrc.js:
module.exports = {
  /* other configs */
  cssShared: ['./src/base-styles/normalization.css']
};

Why not just use postcss-import (or postcss-simple-import) to handle the importing from the node_modules folder? I know it adds another dependency, but I find it quite simpler to
npm install sanitize.css

and then just
@import 'sanitize.css'

from my styles.

@rudeworks Yes ... that's exactly what our pull request does. Instead of having a fixed normalize.css, you can handover any core style you want including e.g. bootstrap, sanitize or the xing globals coming from an internal npm and of course own styles on top.


Improve error messages for StringDecoder

The current error messages, at least for "standard" types, are of the form Not acceptable: 'VALUE'.
It would be better to have something like 'VALUE' is not an acceptable TYPE.

Already done, my mistake.


Dedicated remarks section in tonals page

@IanMayo, I see some dedicated "REMARKS" section in tonals page. Should these be parsed and assigned to "CLASS"."REMARKS" field?

Close. Should come clear once we have DITA target schema


Add HdrHistogram file plotter.

I think this ought to work...
Output on the HdrHistogram site at 3 nines...

Output from the script at 3 nines...

Thanks SO much!!


Footnotes causes mistletoe to hang

>>> import mistletoe
>>> input = "foo bar [1]:\r\nfoo bar\r\n\r\n[1]: https://example.org/\r\nhttps://example.org"
>>> mistletoe.markdown(input)

This never returns, or at least does not return within the limits of my patience.

Hi, it looks like this is caused by mistletoe not quite expecting CRLF line-endings in the input - see #64. From my quick testing, it freezes because of the last \r\n. The stacktrace is like this (after pressing ctrl+c):
$ python issue-124.py
Traceback (most recent call last):
  File "issue-124.py", line 3, in <module>
    print(mistletoe.markdown(input))
  File "d:\projects\my-forks\mistletoe\mistletoe\__init__.py", line 22, in markdown
    return renderer.render(Document(iterable))
  File "d:\projects\my-forks\mistletoe\mistletoe\block_token.py", line 150, in __init__
    self.children = tokenize(lines)
  File "d:\projects\my-forks\mistletoe\mistletoe\block_token.py", line 49, in tokenize
    return tokenizer.tokenize(lines, _token_types)
  File "d:\projects\my-forks\mistletoe\mistletoe\block_tokenizer.py", line 51, in tokenize
    return make_tokens(tokenize_block(iterable, token_types))
  File "d:\projects\my-forks\mistletoe\mistletoe\block_tokenizer.py", line 67, in tokenize_block
    result = token_type.read(lines)
  File "d:\projects\my-forks\mistletoe\mistletoe\block_token.py", line 734, in read
    match_info = cls.match_reference(lines, string, offset)
  File "d:\projects\my-forks\mistletoe\mistletoe\block_token.py", line 754, in match_reference
    match_info = cls.match_link_dest(string, label_end)
  File "d:\projects\my-forks\mistletoe\mistletoe\block_token.py", line 793, in match_link_dest
    offset = shift_whitespace(string, offset+1)
  File "d:\projects\my-forks\mistletoe\mistletoe\core_tokens.py", line 381, in shift_whitespace
    for i, c in enumerate(string[index:], start=index):
KeyboardInterrupt

So I would classify this as an enhancement with a workaround: use simple \n if you need to create an input string with line-endings programmatically (or possibly use a multi-line string).
OK for now?

I would not classify a problem in which any input causes the library to hang forever as in need of an enhancement, but rather suffering from a bug. Consider that this is a DoS vector.
I will apply an appropriate workaround (converting CRLF to LF) in my software, but this is definitely a bug and probably an urgent one at that.

Good news, it looks like I found the culprit in the Footnote.backtrack() method / call. I guess I can come with a fix soon.

Fixed in the master branch. It has shown that any whitespace character before \n can break the parsing, not just \r.

Thanks!


WIP: Feat/support line area label

[中文版模板 / Chinese template]
🤔 This is a ...

[x] New feature
[ ] Bug fix
[ ] TypeScript definition update
[ ] Bundle size optimization
[ ] Performance optimization
[ ] Enhancement feature
[ ] Refactoring
[ ] Update dependency
[ ] Code style optimization
[ ] Test Case
[ ] Branch merge
[ ] Release
[ ] Site / documentation update
[ ] Demo update
[ ] Workflow
[ ] Other (about what?)

🔗 Related issue link
#1088

🔗 Related PR link

🐞 Bugserver case id

💡 Background and solution

📝 Changelog

Language
Changelog

🇺🇸 English

🇨🇳 Chinese

☑ Self-Check before Merge
⚠ Please check all items below before requesting a reviewing. ⚠

[ ] Doc is updated/provided or not needed
[ ] Demo is updated/provided or not needed
[ ] TypeScript definition is updated/provided or not needed
[ ] Changelog is provided or not needed

🚀 Summary
copilot:summary
🔍 Walkthrough
copilot:walkthrough

依赖：

<EMAIL_ADDRESS><EMAIL_ADDRESS>


assigning claims mapping policy to the service principal does not work in step 3

step 3 of this guidance uses the following Graph call:
Assign claims mapping policy to service principal
Request
HTTP
POST https://graph.microsoft.com/v1.0/servicePrincipals/f47a6776-bca7-4f2e-bc6c-eec59d058e3e/claimsMappingPolicies/$ref
Content-type: claimsMappingPolicies/json
{
"@odata.id":"https://graph.microsoft.com/v1.0/policies/claimsMappingPolicies/6b33aa8e-51f3-41a6-a0fd-d660d276197a"
}
The above does not work and results in the following error:
Response:
{
"error": {
"code": "BadRequest",
"message": "The request URI is not valid. $ref cannot be applied to the segment 'claimsMappingPolicies' since $ref can only follow an entity segment or entity collection segment.",
"innerError": {
"date": "2020-06-11T23:09:49",
"request-id": "c002f3ba-7e2c-44cd-a73f-3c456240b6ef"
}
}
}
The above technique only works for the beta endpoint:
POST https://graph.microsoft.com/beta/serviceprincipals/SP Object ID/claimsMappingPolicies/$ref
body:
{"@odata.id":"https://graph.microsoft.com/beta/policies/claimsMappingPolicies/policy id"}

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

ID: aa04cf91-e1eb-5b59-f85f-1cb46a08f40b
Version Independent ID: a4aff3ba-9c3f-71c5-bf8b-a4101b94b073
Content: Use Microsoft Graph APIs to configure SAML-based single sign-on - Azure Active Directory
Content Source: articles/active-directory/manage-apps/application-saml-sso-configure-api.md
Service: active-directory
Sub-service: app-mgmt
GitHub Login: @kenwith
Microsoft Alias: kenwith

@bachoang Thanks for your feedback! We will investigate and update as appropriate.

@bachoang The PR for the fix has been created and it will be merged soon. Thanks again for pointing this out, I am closing the issue based on this update, please let us know if there is something else that we can help you with.


Execution is failing when a config file is specified at run-time

This error happens when a config file is specified, even if I don't refer to any configuration variables in my test cases or test routines

Hi @brogreenmoon
Please attach run-test.log
Thanks.


different result of transformation each time on same content

I have an example of complex transformation where kazaam demonstrates inconsistent behaviour. I ran https://go.dev/play/p/yVCIkyphvNJ several times and each time it drops section, returning them to correct positions, loses them again... on the same ruleset and input data.
I guess it's because of random order somewhere inside app and the only way i can think of it is a map order of which is undetermined.
You can run code several times too and watch yourself that event.payload.order.delivery: { expectedTo:.., expectedFrom:...} section either in place, partially in place with one of key-value pair or completely lost. All these outcome are on static data with same input and same output

i've made test that runs 1000 times and measures existance of key vs non existance
https://go.dev/play/p/mDwJoep9JfJ
Aprox 700 times key exists in outputted structure and aprox 300 times it missing.
###What am i missing?

event.payload is not an array in that example, just an object, so you don't need the over specifier.


Add denied message in create entry in workbook dialog

Added support operationDeniedMessage in CreateEntryInWorkbookDialog

i18n-check
Please merge the Pull Request with the changes from Weblate into your branch.

i18n-check
Please merge the Pull Request with the changes from Weblate into your branch.