toggle widget: autoHideContainer option not respected

See example: https://jsfiddle.net/timkelty/gov4cwhb/1/
I've explicitly set autoHideContainer to true (even though it is supposed to be the default).
There are 0 matched items, but the widget container still shows.
The autoHideContainer option seems to work fine in other widgets (e.g. refinementList)

The issue here is that autoHide is calculated based on the total number of hits for both on and off states.  Switching to using facetValue.count seems reasonable to me but I'm not convinced that behavior will fit every use case.  What do you all think?


Not working anymore with Chromedriver 87.0.4280.88 on bet365

Im making my proper DB with result from this site but using python 3.6 with selenium and selenium_stealth this code is not working anymore, the page always appears empty.

options = webdriver.ChromeOptions()
options.add_argument("start-maximized")
options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option('useAutomationExtension', False)
browser = webdriver.Chrome(options=options, executable_path=r"chromedriver.exe")
stealth(browser,
languages=["en-US", "en"],
vendor="Google Inc.",
platform="Win32",
webgl_vendor="Intel Inc.",
renderer="Intel Iris OpenGL Engine",
fix_hairline=True,
)

@apulidoc Hello, how did you solve this problem?, I have the same problem


'main': Highlight hyphen options as files when so-named files are present

E.g., «echo -foo» when «./-foo» exists.

I think this would be a regression.
touch -n
cat -n ~/.zshrc

Would highlight the -n as path not single-hyphen-option. cat doesn't care if a -n file exists; it interprets -n as an option.
It would be preferable for cat -- -n to highlight the -n as path since options may not occur after --.

Agree. I think my goal was to be clued to such files' existence, but that's not z-sy-h's job.


Error in getting climate data in parallel

get_climate returns a serialization error when run in parallel with a pmap.  For now the workaround is just to run it in serial with a map, but we should investigate what is the issue behind this.

This seems to be working now with a pmap and a batch size of 10.


flash messages are not shown in admin area

I've added some scaffolding to my app with:
rails g comfy:scaffold Location name:string distance:integer
but flash messages are not shown by creating or updating records!!

@hafidi sorry for the very late reply. Is this still an issue?

@hafidi quick reminder to my question. If this is not an issue, would you please close the issue?
Thx Andy

I've solved the problem.
Thanks


Remove locale from MS Learn link

Remove locale from MS learn link in test-locally-with-service-bus-emulator.md

#sign-off


⚠ ClamAV has degraded performance

In 425473a, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 455 ms

Resolved: ClamAV performance has improved in afb80ce.


UX controls don't work when rigid body is attached to parent object

Bug description
I use UX controls (buttons in this case) to controll something in my menu hierarchy. A rigid body is attached to the top game object of the menu to trigger OnTriggerEnter events.
It seems that buttons and other UX controls won't work if there's a rigid body attached to any of their parent objects.
Is there any solotion for this problem?
Kind regards.
To reproduce
Steps to reproduce the behavior:

Add a game object to the scene and apply a rigid body to it.
Attach a button as a child of the game object with this rigid body.
Try to click the button in play mode with the hand simulation.
OnClick event won't be fired.

Expected behavior
Button should be clickable although there's a rigid body attached to a parent object.
My setup

Unity Version: 2019.3.0f6]
MRTK Version 2.4

Target platform

HoloLens 2

Hi @AWSi-DR-TS To resolve this issue, check the Focus Individual Compound Collider setting in the Input Profile:

The rigid body as a parent of a button interferes with the main hit result.  When Focus Individual Compound Collider is true, the main raycast hit object will be the child button game object.
This detail needs to be documented for other users, as this issue came up with our Bounding Box component: #4901


Fix checkver error

Try to fix https://github.com/ScoopInstaller/Versions/pull/356 and https://github.com/ScoopInstaller/Extras/pull/7586

Could also use something like "$manifest.Basename: \n$($object.version)" for -match regex to match manifest name and version

It's worked, check this:
https://github.com/LazyGeniusMan/Extras/pull/1#issuecomment-1000921479
https://github.com/LazyGeniusMan/Extras/actions/runs/1620056599/workflow

Ahh, I see why it's failed, $object.version value is old version, what's the variable for new version detected by checkver?

Alright, it's done, sorry it's a messed up commits in PR. What I did is:

Make a new variable that convert $outputV from multi line (array) into single line (string)
Try to match those converted output with regex of <manifest-name>: <version>

Test 1
Positive test (must passed)

https://github.com/LazyGeniusMan/Extras/actions/runs/1621822668
https://github.com/LazyGeniusMan/Extras/pull/1#issuecomment-1001018174

Test 2
Negative test (must failed), wrong version

https://github.com/LazyGeniusMan/Extras/actions/runs/1621823212
https://github.com/LazyGeniusMan/Extras/pull/2#issuecomment-1001018227

Test 3
Negative test (must failed), wrong URL

https://github.com/LazyGeniusMan/Extras/actions/runs/1621823509
https://github.com/LazyGeniusMan/Extras/pull/3#issuecomment-1001018228

Let me know if $outputV.Count -ge 2 is still necessary

I appreciate your effort, but I don't think removing this check entirely is a good thing. The proper way to solve the problem is to determine errors by another means (e.g. return code of a function).
Before we fix this, our maintainers can just ignore PR check fails for checkver, if we know what is going on.

but I don't think removing this check entirely is a good thing

Could you elaborate removing which check? I replaced it with another check which passed test all scenario that I can think of:

Correct URL and correct version found
Correct URL but wrong version found (not latest version)
Wrong URL so version not found

Could you elaborate removing which check? I replaced it with another check which passed test all scenario that I can think of:

Correct URL and correct version found
Correct URL but wrong version found (not latest version)
Wrong URL so version not found

Sorry I was wrong. I did not think thoroughly. If Wrong URL so version not found is the case, then package: version will not appear at all. So there is no problem removing this part.
# If there are more than 2 lines and second line is not version, there is problem
$checkver = ((($outputV.Count -ge 2) -and ($outputV[1] -like "$($object.version)")))


pylyzer: 0.0.34 -> 0.0.37

Diff: https://github.com/mtshiba/pylyzer/compare/v0.0.34...v0.0.37
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.37
Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.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

[x] Fits CONTRIBUTING.md.

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

1 package built:

pylyzer


arXiv '16: Training Deep Nets with Sublinear Memory Cost

URL: https://arxiv.org/abs/1604.06174
Authors:
Tianqi Chen, Bing Xu, Chiyuan Zhang, Carlos Guestrin
Unveristy of Washington, Dato. Inc, Massachusetts Institute of Technology
Code (memonger - memory monger)

Original MXNet Implementation: https://github.com/dmlc/mxnet-memonger
OpenAI's TensorFlow Implementation: https://github.com/cybertronai/gradient-checkpointing
PyTorch Implementation: https://github.com/Lyken17/pytorch-memonger

Problem
How to reduce the memory consumption of DNN training (to enable bigger models or larger batch size)?
Solution

Mainly focus on reducing the memory cost to store intermediate results (feature maps) and gradients.
Design an algorithm to trade computation for memory. O(√n) memory cost with one extra forward computation per mini-batch.

Inplace operation: directly store the output values to memory of a input value.
Memory sharing: memory used by intermediate results that are no longer needed can be recycled and used in another node.
Re-computation: drop the results of low cost operations and re-compute the dropped intermediate results.

Guidelines for DL frameworks

Enable option to drop result of low cost operations.
Provide planning algorithms to give efficient memory plan.
Enable user to set the mirror attribute (how many times a result can be recomputed) in the computation graph for memory optimization.


[FLINK-12735][network] Make shuffle environment implementation independent with IOManager

What is the purpose of the change
The current creation of NetworkEnvironment relies on IOManager from TaskManagerServices. It is better not to rely on external components for constructing specific shuffle environment, so the NetworkEnvironment could create internal FileChannelManager which is already extracted from IOManager.
Brief change log

Extract file channel related functions in IOManager to define internal FileChannelManager class
Make NetworkEnvironment creates internal FileChannelManager to be used for ResultPartition

Verifying this change
covered by existing tests
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@flinkbot attention @azagrebin

@flinkbot attention @tillrohrmann

Thanks for the review @azagrebin !
I have updated the codes for addressing above comments.

@azagrebin thanks for the reviews! I have updated the codes for addressing the comments and rebasing.

@flinkbot approve all

Thanks for further reviews @azagrebin !
I have rebased the codes and addressed the new comments.

Thanks for the review @zentol !
I have rebased the codes and addressed the above comments.

Sorry for jumping in late.
Initially, we added this dependency to make it possible for spilling partitions to use write-behind and separate pre-fetching threads. Do we want to drop this completely?
Also, when it comes to reducing dependencies in the network shuffle environment, what is the gain by replacing IOManager with FileChannelManager?
If this is mainly about the threads that the IOManagerAsync spawns, another option could be to has an IOManagerSync without threads.

@StephanEwen thanks for sharing the background and bringing this concern!
The abstract IOManager actually has two roles:

One is like the utility tool for getting file channels which is currently used for some streaming component, like StateBackend, BarrierBuffer, ShuffleService`.
The other one is real abstract methods for handing read/write operations which is mainly used for batch in sort-merge.

If we assume that one component should only focus on one single function, it is reasonable to break down IOManager into two sub components as now. The other components could only rely on FileChannelManager instead of heavy-weight IOManager.
Currently the shuffle service would only need internal FileChannelManager, I agree with that it might rely on the functions of write-behind or pre-fetching threads provided by IOManager future. If so, the other shuffle service implementations could implement a new IOManager instance or using current IOManagerAsync directly if needed future.
Another option as you suggested is implementing a new IOManager instance without spawning threads, which also makes sense. If the shuffle service would need the read/writer functions future, it has to replace another IOManager implementation. But I still prefer the current way in PR, because the individual two sub components are both light-weight and they could be used together or separately.

@StephanEwen Thanks for bringing this up.
True, the idea was to drop IOManager dependency in Shuffle Service API because NettyShuffleEnviroment basically uses only narrowed scope of IOManager, namely switching between temporary files. The narrowed concern of switching between temporary files is moved into FileChannelManager which is also used by the IOManager. NettyShuffleEnviroment can create its own light-weight  FileChannelManager with its own directory prefix.
The valid concern is that if we decide to use IOManagerAsync with its threads then the threads should be shared by all IO components which use them. In that case Shuffle Service API has to accept it as a dependency created outside.
As discussed offline, if we decide later that we need IOManagerAsync for shuffling then we can revert the change and add the abstract/interface IOManager back to ShuffleEnvironmentContext.

@azagrebin @zentol I submitted another hotfix commit for removing IOManager#isProperlyShutDown.


Co exist API with new api version with new rest API

please update the SDK version in assemblyinfo.cs and project.json

I have updated the version

LGTM


Problem putting instance into standby

2016-08-15 22:13:17 LifecycleEvent - BeforeInstall
2016-08-15 22:13:17 Script - scripts/deregister_from_elb.sh
2016-08-15 22:13:17 [stderr]Running AWS CLI with region: ap-southeast-2
2016-08-15 22:13:17 [stderr]Started deregister_from_elb.sh at 2016-08-15 22:13:17
2016-08-15 22:13:17 [stderr]Checking if instance i-02a0065a747a65048 is part of an AutoScaling group
2016-08-15 22:13:18 [stderr]Found AutoScaling group for instance i-02a0065a747a65048: xeromail-codedeploysample-web-asg
2016-08-15 22:13:18 [stderr]Checking that installed CLI version is at least at version required for AutoScaling Standby
2016-08-15 22:13:18 [stderr]Checking minimum required CLI version (1.10.55) against installed version (1.10.56)
2016-08-15 22:13:18 [stderr]Attempting to put instance into Standby
2016-08-15 22:13:18 [stderr]Checking if this instance has already been moved in the Standby state
2016-08-15 22:13:18 [stderr]Checking to see if ASG xeromail-codedeploysample-web-asg will let us decrease desired capacity
2016-08-15 22:13:18 [stderr]Putting instance i-02a0065a747a65048 into Standby
2016-08-15 22:13:19 [stdout]{
2016-08-15 22:13:19 [stdout]    "Activities": [
2016-08-15 22:13:19 [stdout]        {
2016-08-15 22:13:19 [stdout]            "Description": "Moving EC2 instance to Standby: i-02a0065a747a65048",
2016-08-15 22:13:19 [stdout]            "AutoScalingGroupName": "xeromail-codedeploysample-web-asg",
2016-08-15 22:13:19 [stdout]            "ActivityId": "d80e1e58-6e96-4f55-975e-f82b33005a72",
2016-08-15 22:13:19 [stdout]            "Details": "{\"Subnet ID\":\"subnet-72bb2f17\",\"Availability Zone\":\"ap-southeast-2a\"}",
2016-08-15 22:13:19 [stdout]            "StartTime": "2016-08-15T22:13:17.269Z",
2016-08-15 22:13:19 [stdout]            "Progress": 50,
2016-08-15 22:13:19 [stdout]            "Cause": "At 2016-08-15T22:13:17Z instance i-02a0065a747a65048 was moved to standby in response to a user request, shrinking the capacity from 3 to 2.",
2016-08-15 22:13:19 [stdout]            "StatusCode": "InProgress"
2016-08-15 22:13:19 [stdout]        }
2016-08-15 22:13:19 [stdout]    ]
2016-08-15 22:13:19 [stdout]}
2016-08-15 22:13:19 [stderr]Waiting for move to Standby to finish
2016-08-15 22:13:19 [stderr]/opt/codedeploy-agent/deployment-root/c86ed025-5edf-4da5-86bc-bc7e2c6b285b/d-IFJQ8CQYG/deployment-archive/scripts/common_functions.sh: line 322: local: `=': not a valid identifier
2016-08-15 22:13:19 [stderr]/opt/codedeploy-agent/deployment-root/c86ed025-5edf-4da5-86bc-bc7e2c6b285b/d-IFJQ8CQYG/deployment-archive/scripts/common_functions.sh: line 322: local: `1': not a valid identifier
2016-08-15 22:13:19 [stderr]Checking 60 times, every seconds, for instance i-02a0065a747a65048 to be in state Standby
2016-08-15 22:13:19 [stderr]Instance is currently in state: EnteringStandby
2016-08-15 22:13:19 [stderr]sleep: missing operand
2016-08-15 22:13:19 [stderr]Try 'sleep --help' for more information.
2016-08-15 22:13:20 [stderr]Instance is currently in state: EnteringStandby
2016-08-15 22:13:20 [stderr]sleep: missing operand
2016-08-15 22:13:20 [stderr]Try 'sleep --help' for more information.
2016-08-15 22:13:20 [stderr]Instance is currently in state: EnteringStandby
2016-08-15 22:13:20 [stderr]sleep: missing operand
2016-08-15 22:13:20 [stderr]Try 'sleep --help' for more information.
2016-08-15 22:13:20 [stderr]Instance is currently in state: Standby
2016-08-15 22:13:20 [stderr]Instance is in standby

2016-08-15 22:13:19 [stderr]/opt/codedeploy-agent/deployment-root/c86ed025-5edf-4da5-86bc-bc7e2c6b285b/d-IFJQ8CQYG/deployment-archive/scripts/common_functions.sh: line 322: local: `=': not a valid identifier
2016-08-15 22:13:19 [stderr]/opt/codedeploy-agent/deployment-root/c86ed025-5edf-4da5-86bc-bc7e2c6b285b/d-IFJQ8CQYG/deployment-archive/scripts/common_functions.sh: line 322: local: `1': not a valid identifier

From the above, spaces at both sides of = should be removed.
https://github.com/awslabs/aws-codedeploy-samples/blob/f06e0d3399ddeeb932853ff47aeb3b551f015683/load-balancing/elb-v2/common_functions.sh#L319
local waiter_interval = $WAITER_INTERVAL_ALB

https://github.com/awslabs/aws-codedeploy-samples/blob/f06e0d3399ddeeb932853ff47aeb3b551f015683/load-balancing/elb-v2/common_functions.sh#L322
local waiter_interval = $WAITER_INTERVAL_ASG

Hi,
It looks like the related pull request to fix this has been merged. Thanks for catching this! Closing out the issue. Feel free to re-open if you're still having any problems.


SagaStateMachine graph connects all states to events combined into a composite event

Contact Details
No response
Version
8.x
On which operating system(s) are you experiencing the issue?
Linux
Using which broker(s) did you encounter the issue?
In-Memory, RabbitMQ
What are the steps required to reproduce the issue?
When defining a composite event, it seems like the state machine graph connects all the state nodes to the events that are a part of the composite event.

From the example the Created and Rejected state nodes should not be connected to the composite event at all.
I added a manually edited graph at the bottom of the README.md.
What actually happened?
The Created and Rejected nodes are connected to the composite event, which doesn't seem correct to me.
It can be seen in the first picture in the README.md.
Related log output, including any exceptions
The graph output:
digraph G {
0 [shape=ellipse, label="Initial"];
1 [shape=ellipse, label="Created"];
2 [shape=ellipse, label="Registered"];
3 [shape=ellipse, label="Final"];
4 [shape=ellipse, label="Rejected"];
5 [shape=rectangle, label="ThingCreated<CreatedEvent>"];
6 [shape=rectangle, label="ThingRegistered<RegisteredEvent>"];
7 [shape=rectangle, label="ThingApproved<ApprovedEvent>"];
8 [shape=invhouse, label="ThingConfirmed"];
9 [shape=rectangle, label="ThingValidated<ValidatedEvent>"];
10 [shape=rectangle, label="ThingDisapproved<DisapprovedEvent>"];
11 [shape=rectangle, label="ThingValidationFailed<ValidationFailedEvent>"];
0 -> 5;
1 -> 6;
1 -> 7;
1 -> 9;
2 -> 7;
2 -> 9;
2 -> 10;
2 -> 11;
4 -> 7;
4 -> 9;
5 -> 1;
6 -> 2;
7 -> 8;
8 -> 3;
9 -> 8;
10 -> 4;
11 -> 4;
}

Link to repository that demonstrates/reproduces the issue
https://github.com/erikbozic/MassTransitTestGraph

Composite events add event behaviors to every state, which is why there are links between the states and the composite event's events.

I see. So it's expected then.
Thank you for the quick response!

That would make :
        CompositeEvent(() => ThingConfirmed, x => x.CompositeStatus, ThingApproved, ThingValidated);

        During(Registered,
            When(ThingConfirmed)
                .Finalize())

and:
        CompositeEvent(() => ThingConfirmed, x => x.CompositeStatus, ThingApproved, ThingValidated);

        DuringAny(
            When(ThingConfirmed)
                .Finalize())

Equivalent in terms of the state machine behaviour?
So DuringAny and During(SomeState are euivalent if  When() gets a composite event as the parameter?
In other words we can't handle a composite event differently based on the current state?

I can't confirm that they're equivalent, but they might end up with the same behavior. However, I think the first example would only raise that composite event if the state machine was in the Registered state. However, I have not tested it.

I ran a unit test on our saga and can confirm that During(SomeState,...) makes the consumption of the event fail if it's not in
SomeState.

SagaState(377a0000-8835-e880-3c05-08dced23db2b) Saga exception on receipt of OnePartOfTheCompositeEvent: Not accepted in state Created`

So it seems to me the generated graph doesn't reflect the actual behaviour.
Do you agree?
If so, perhaps I (or someone else) could try and see if a fix is possible.
Otherwise, if you believe this shouldn't be changed, I will leave this alone. 😄

The behavior is as expected, with no plans to change it at this time.


Add conditions to camel-k CRs

Fixes #594
I did a little bit of work to introduce conditions in camel-k CRs so now if you invoke
kamel describe integration hello

you'd get an output like:
Name:                hello
Namespace:           myproject
Creation Timestamp:  Sun, 23 Jun 2019 11:46:00 +0200
Phase:               Running
Camel Version:       2.24.0
Kit:                 kit-bk7kh138gd7vch0m1d00
Image:               <IP_ADDRESS>:5000/myproject/camel-k-kit-bk7kh138gd7vch0m1d00:843534
Dependencies:
  camel:core
  runtime:jvm
Sources:
  Name       Language  Compression  Ref  Ref Key
  hello.xml  xml       false
Conditions:
  Type                 Status  Reason                        Message
  PlatformAvailable    True    IntegrationPlatformAvailable  IntegrationPlatform (camel-k)
  KitAvailable         True    IntegrationKitAvailable       IntegrationKit (kit-bk7kh138gd7vch0m1d00)
  DeploymentAvailable  True    Deployment                    Deployment
  ExposureAvailable    True    Service                       Service
Traits:
  Route:
    Configuration:
      Enabled:  false
  Service:
    Configuration:
      Auto:     false
      Enabled:  true

which includes a number of conditions that represents the latest available observations of a integration state.
The goal here is to provide more insight about the integration status i.e. the additional  resources associated to the integration that the operator has created (deployment vs knative service, service/route/ingress, etc) so user and tools do not need to explore the integration namespace to know what are the other resources related to the integration.
@astefanutti @nicolaferraro does this make sense ?

Love it!
Two general comments:

Currently, conditions are shared among CRs, so it is possible to mix them, I wonder whether there should be dedicated conditions types per CR

Yes, that’s what I’m working on. It is a little bit of a pain as we basically need to duplicate all the code but that’t the way to go :)

It seems there is a larger need to report the owned resources and I wonder to what extend it generalises the proposed DeploymentAvailable and ExposureAvailable conditions

Yes, the example here is just a placeholder to show how it will look but the final goal is to report any owned resource

So I've added a little bit more logic and now if you describe an integration while it is building a kit you'll see something like:
Name:                routes-rest
Namespace:           myproject
Creation Timestamp:  Mon, 08 Jul 2019 13:34:02 +0200
Phase:               Building Kit
Camel Version:       3.0.0-M3
Kit:                 kit-bkhikar8gd7uoo13f47g
Image:
Version:             1.0.0-M1-SNAPSHOT
Dependencies:
  camel:core
  camel:log
  camel:timer
  camel:undertow
  runtime:jvm
Sources:
  Name            Language  Compression  Ref  Ref Key
  routes-rest.js  js        false
Conditions:
  Type                          Status  Reason                        Message
  IntegrationPlatformAvailable  True    IntegrationPlatformAvailable  camel-k
  IntegrationKitAvailable       False   IntegrationKitAvailable

Once the kit is ready, then the IntegrationKitAvailable condition become true and  other info such as services an routes are reported:
Name:                routes-rest
Namespace:           myproject
Creation Timestamp:  Mon, 08 Jul 2019 13:34:02 +0200
Phase:               Running
Camel Version:       3.0.0-M3
Kit:                 kit-bkhikar8gd7uoo13f47g
Image:               <IP_ADDRESS>:5000/myproject/camel-k-kit-bkhikar8gd7uoo13f47g:1281056
Version:             1.0.0-M1-SNAPSHOT
Dependencies:
  camel:core
  camel:log
  camel:timer
  camel:undertow
  runtime:jvm
Sources:
  Name            Language  Compression  Ref  Ref Key
  routes-rest.js  js        false
Conditions:
  Type                          Status  Reason                        Message
  IntegrationPlatformAvailable  True    IntegrationPlatformAvailable  camel-k
  IntegrationKitAvailable       True    IntegrationKitAvailable       kit-bkhikar8gd7uoo13f47g
  DeploymentAvailable           True    DeploymentAvailable           routes-rest
  ExposureAvailable             True    RouteAvailable                routes-rest -> routes-rest(http)
  ServiceAvailable              True    ServiceAvailable              routes-rest(http/80) -> routes-rest(http/8080)

If you run the same integration but with the service trait disabled, you should see something like:
ame:                routes-rest
Namespace:           myproject
Creation Timestamp:  Mon, 08 Jul 2019 13:37:12 +0200
Phase:               Running
Camel Version:       3.0.0-M3
Kit:                 kit-bkhikar8gd7uoo13f47g
Image:               <IP_ADDRESS>:5000/myproject/camel-k-kit-bkhikar8gd7uoo13f47g:1281056
Version:             1.0.0-M1-SNAPSHOT
Dependencies:
  camel:core
  camel:log
  camel:timer
  camel:undertow
  runtime:jvm
Sources:
  Name            Language  Compression  Ref  Ref Key
  routes-rest.js  js        false
Conditions:
  Type                          Status  Reason                        Message
  IntegrationPlatformAvailable  True    IntegrationPlatformAvailable  camel-k
  ServiceAvailable              False   ServiceNotAvailable           explicitly disabled
  IntegrationKitAvailable       True    IntegrationKitAvailable       kit-bkhikar8gd7uoo13f47g
  DeploymentAvailable           True    DeploymentAvailable           routes-rest
  ExposureAvailable             False   RouteNotAvailable             no target service found

@astefanutti @nicolaferraro we still miss to include additional information in the conditions but didn't want to make the PR too big, can you please review ?

I wonder if it'd be possible to have a base type for the conditions that would enable factorising some of the helper methods as well.

yeah, who needs generics ? :P
I can have a look but haven't found any concrete example so fa on kubernetes for a best practice

Let's wait for go to have generics 😄

@asfsecurity can this be merged ?

Good for me 😉


Fix language metadata

Fix: it_IT language had metadata related to german translation

We've removed translations for the upcoming v3 release; thank you for your efforts, however!


Added ISSUE_TEMPLATE.md

Description

Added ISSUE_TEMPLATE.md which addresses feature-request #12
Renamed PULL_REQUEST_TEMPLATE to PULL_REQUEST.md to bring it in line with CONTRIBUTING.md and README.md.
Updated changelog file.
Bumped version again (version spamming, hopefully won't happen again)

Related Issue
This addresses #12
Motivation and Context
This PR provides a structure to issue reports.
How Has This Been Tested?
This is not a code-change.
Screenshots (if appropriate):
N/A
Types of changes

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

Checklist:

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

Tagging @nmshah, @yloeza for review

Awesome! :shipit:

PR has become stale. I will create a new one.


Setting generation params

Would it be possible to set generation params: 'max_tokens', 'logprobs', and 'top_logprobs' ?

Related/Duplicate #62


fix module export

Looks like the README usage instructions are broken because the package.json exports a test case rather than the library. This seems to fix it for me.

Looks good, thanks!

needs publishing to the NPM (:
the version there is before this fix

@leonardodino done ;)

thank you!


Explicitly call make_tuple

Was hitting chosen constructor is explicit in copy-initialization on
these lines. Making the construction of the tuple explicit.
CI Failures:

https://ci.swift.org/job/apple-llvm-project-pr-linux/3351/
https://ci.swift.org/job/apple-llvm-project-pr-linux/3326/

rdar://88563859

@swift-ci please test

@swift-ci please smoke test

@swift-ci please smoke test

Build failed
Swift Test Linux Platform
Git Sha - 6001cd6ac31cfd2dc7357b37474fca99c7bdae4e

Build failed
Swift Test OS X Platform
Git Sha - 6001cd6ac31cfd2dc7357b37474fca99c7bdae4e

oh thanks. I have a smoke test active on this equivalent PR here: https://github.com/apple/swift/pull/41249


Can't scale Docker task after Docker image crash

A task gets stuck in deployment after a Docker container job crashes and Marathon can't stop the container, from debug tab:
Unable to stop docker container, error: Failed to 'docker -H unix:///var/run/docker.sock
 stop -t 0 mesos-9956b2f6-(...)': exit status = exited with status 1
 stderr = An error occurred trying to connect:
Post http:///var/run/docker.sock/v1.21/containers/mesos-9956b2f6-(...)/stop?t=0:
EOF Error: failed to stop containers: [mesos-9956b2f6-(...)]

The task is locked for deployment, and I can't delete an instance which should be running according to Marathon but it's not running anymore. I can't scale it nor suspend the task.
A workaround is to create a task with new app ID, but the old task will stay there in a zombie state:
 DeploymentPlan 2016-02-11T17:47:02.327Z
 step 1:
 * Stop(App(/parser, image="some-image", cmd="run-forrest")))
 (mesosphere.marathon.MarathonSchedulerService$$EnhancerByGuice$$6617eef1:ForkJoinPool-2-worker-233)
 [2016-02-11 12:47:02,335] INFO Conflicting deployments for deployment 9efffc37-d983-4ca8-a7f9-818c698163e6 have been canceled (mesosphere.marathon.upgrade.DeploymentManager:marathon-akka.actor.default-dispatcher-2)
 [2016-02-11 12:47:12,329] WARN mapping exception to status code (mesosphere.marathon.api.MarathonExceptionMapper$$EnhancerByGuice$$93f15861:qtp1967434886-121004)
 java.util.concurrent.TimeoutException: Futures timed out after [10000 milliseconds]
 at scala.concurrent.impl.Promise$DefaultPromise.ready(Promise.scala:219) ~[marathon:0.15.1]
 at scala.concurrent.impl.Promise$DefaultPromise.result(Promise.scala:223) ~[marathon:0.15.1]
 at scala.concurrent.Await$$anonfun$result$1.apply(package.scala:190) ~[marathon:0.15.1]
 at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:53) ~[marathon:0.15.1]
 at scala.concurrent.Await$.result(package.scala:190) ~[marathon:0.15.1]
 at mesosphere.marathon.api.RestResource$class.result(RestResource.scala:52) ~[marathon:0.15.1]
 at mesosphere.marathon.api.v2.AppsResource.result(AppsResource.scala:33) ~[marathon:0.15.1]
 at mesosphere.marathon.DebugModule$MetricsBehavior$$anonfun$invoke$1.apply(DebugConf.scala:56) ~[marathon:0.15.1]
 at mesosphere.marathon.metrics.Metrics.timed(Metrics.scala:27) ~[marathon:0.15.1]
 at mesosphere.marathon.DebugModule$MetricsBehavior.invoke(DebugConf.scala:55) ~[marathon:0.15.1]
 at mesosphere.marathon.api.v2.AppsResource$$anonfun$delete$1.apply(AppsResource.scala:184) ~[marathon:0.15.1]
...

Marathon 0.15.1

After some initial investigation, this message seems to have come from Docker itself. I wonder whether you're running into some facet of docker/docker#12738.
Would you be able to post an (anonymised, if necessary) app configuration that reproduces this issue?

You should be able to reproduce this by starting a container with a zombie process.
root  2039  0.0  Sl   Feb15   0:27  \_ docker-proxy -proto tcp -host-ip <IP_ADDRESS> -host-port 30029 -container-ip 172.17.0
root  2078  0.0  Ss   Feb15   0:00  \_ [sh]
root  1829 99.9  Zl   Feb15 885:31      \_ [java] <defunct>

You're right, it's definitely a Docker bug/application bug, I can't stop the container nor docker rm -f {container ID}. Another related bug seems to be https://github.com/docker/docker/issues/19166. Just for reference, I'm running on Linux kernel 3.16.7-ckt20-1+deb8u2.
Of course I don't want to run zombie processes in containers, from Marathon perspective it would be nice to handle such state of a task. Right now it reports 2 instances in unknown state and other 2 and other 2 unscheduled. Marathon pretends it's deploying the task for last 20 hours, but it's not. Also there's no error report from last restart. It's quite hard to debug such application, because there are no error logs, failure reports.
Restarting docker daemon on slave nodes, usually helps Marathon realize that the task really failed (removes it from running tasks, but does not start new one instead). Then you'll get application in RUNNING state with 0 instances out of 4 running.

Btw. reaching UNIX socket via HTTP is really intentional?
Post http://%2Fvar%2Frun%2Fdocker.sock/v1.22/containers/mesos-9956b2f6-9102-4b77-a2e0-c8649629f62b-S1.2eb71885-d80a-49f7-9288-c4910e6172b5/stop?t=0: EOF

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-1979. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.


Cannot set property EntityManager of # which has only a getter

I am getting this error running the command
npx typeorm-model-generator -h localhost -d postgres -u postgres -x password -e postgres -o . -s public --ssl

Sorry for the delay I didn't have much time for OSS lately.
Could you add something which would allow others to reproduce the issue? DDL statements, database backup etc.


Fixed incompatibility with deoplete

The default keybinding of  deoplete https://github.com/Shougo/deoplete.nvim is the same, triggering the same issue presented in https://github.com/terryma/vim-multiple-cursors/issues/160 when typing in insert mode. I propose here to deactivate deoplete while vim-multiple-cursors is active.

Did you see this?
https://github.com/terryma/vim-multiple-cursors#interactions-with-other-plugins

Yes, and still not working.
`" Called once right before you start selecting multiple cursors
function! Multiple_cursors_before()
if exists(':deopleteLock')==2
exe 'deopleteLock'
endif
endfunction
" Called once only when the multiple selection is canceled (default )
function! Multiple_cursors_after()
if exists(':deopleteUnlock')==2
exe 'deopleteUnlock'
endif
endfunction
`
Anyway, deoplete is widely used in Neovim, even more if you are looking to have Sublime Text experience. Thus, I think is a good idea to provide exclusion by default and let the user have a clear vimrc file. I think this plugin is awesome, and the way to include more people is to make it work by just install and play.

There's also:

Plugins themselves can register User autocommands on MultipleCursorsPre and MultipleCursorsPost for automatic integration.

I think it makes more sense for Deoplete to hold this integration; otherwise this one repo becomes responsible for tracking all and any conflicting vim plugins.

@eapache @manuelcloop can we close this PR ?
It seems the deoplete issue has been fixed by this comment:
https://github.com/terryma/vim-multiple-cursors/pull/231#issuecomment-339580151
and that the PR itself is deprecated.


[WIP] Russian translation

[x] Move changes from 1.2.0 to 1.0.0 version of original Sass Guidelines to russian translation

[ ] ➡ Move changes from 1.3.0 version of original Sass Guidelines to russian translation that partially is on 1.2.0 version before translating new content from 1.2.0 (because of some content may exist in 1.2.0 but not in 1.3.0

[ ] Translate new content:
Chapters done in 1.2.0:

[x] author
[x] contributing
[ ] sass
[ ] introduction
[ ] syntax
[ ] naming
[ ] comments
[x] architecture
[x] rwd
[ ] variables
[ ] extend
[x] mixins
[x] conditions
[ ] loops
[ ] errors
[ ] tools
[ ] tldr

Crossed out chapters now is “no need to change”.

[ ] Fix typos and mistakes in translated content (some of hints is in https://github.com/HugoGiraudel/sass-guidelines/issues/286)

Hey @grawl. Is there any progress on this? Are you willing to continue or shall I close it? :)

@HugoGiraudel oh I think translating with Github is too hard for me, all these conflicts and version history… maybe something like getlocalization.com will make it so much easier.

I’m going to close this.


Unexpected "Object is possibly 'undefined'." error with a nullable key

Bug Report
🔎 Search Terms
Object is possibly 'undefined' / undefined key / nullable key
🕗 Version & Regression Information

This is the behavior in every major version I tried, from 3 to 5, and I reviewed the FAQ for entries matching "undefined", "object", "record", and "property".

⏯ Playground Link
Playground link with relevant code (Nightly)
💻 Code
const food: Record<string, string[] | undefined> = {"fruits": ["apple"]};

const keys = ["vegetables", "meat", "dairy", undefined];
const randomKey = keys[Math.floor(Math.random() * keys.length)];

if (randomKey) {
    if (food[randomKey]) {
        food[randomKey].push("whatever")
    } else {
        food[randomKey] = ["whatever"];
    }
}

🙁 Actual behavior
It fails to compile with an error: Object is possibly 'undefined'.(2532).
It should compile because:

We check that randomKey is truthy (I tried if (randomKey !== undefined) { but got the same error)
We check that food[randomKey] is truthy (I tried if (food[randomKey] !== undefined) { but got the same error)
The resulting JavaScript code executes without a runtime error.

🙂 Expected behavior
It should compile without errors.

Duplicate of #10530. Type narrowing does not occur for indexed access forms e[k] where k is not a literal. Just store it in a local const variable.

Can you please elaborate on

Just store it in a local const variable.

The key is in a const already. I tried this but as expected got the same error:
if (randomKey) {
    const arr = food[randomKey];
    if (arr) {
        food[randomKey].push("whatever")
    } else {
        food[randomKey] = ["whatever"];
    }
}

P.S. Apologies for the duplicate, I could not find it. I suspected it was a long-standing issue.

Apologies for the duplicate. I thought it was going to be a long-standing issue.
The fix as suggested (and the [playground]):
if (randomKey) {
    const arr = food[randomKey];
    if (arr) {
        arr.push("whatever")
    } else {
        food[randomKey] = ["whatever"];
    }
}


Will not attempt to authenticate using SASL (unknown error)

kafka's are in cluster between 2 servers on this server I have 3 instances kafka with different port
IOS: oracle linux  4.1.12-61.1.18.el7uek.x86_64

kafka conf/server.properties
added:
host.name=x.x.x.x
zookeeper.connect=x.x.x.x:6081,x.x.x.x:6081
other things are basic configuraton

kafka conf/zookeeper.properties
changed data dir
custer zookeeper
server.3=x.x.x.x:6088:6089
server.4=x.x.x.x:6088:6089

also I added a file with myid (each instances has diffrent number)

kafka manager config
only changed
kafka-manager.zkhosts="x.x.x.x:6081"

How I'm running kafka manager
./bin/kafka-manager -Dconfig.file=conf/application.conf -Dkafka-manager.zkhosts="x.x.x.x:6081" -Dhttp.port=80

kafka manager logs

[info] o.a.z.ZooKeeper - Client environment:user.dir=/app/kafka-manager-<IP_ADDRESS>
[info] o.a.z.ZooKeeper - Initiating client connection, connectString=x.x.x.x:6081 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@75973366
[info] o.a.z.ClientCnxn - Opening socket connection to server x.x.x.x/x.x.x.x:6081. Will not attempt to authenticate using SASL (unknown error)
[info] o.a.z.ClientCnxn - Socket connection established to x.x.x.x/x.x.x.x:6081, initiating session
[info] o.a.z.ClientCnxn - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
[info] k.m.a.KafkaManagerActor - zk=x.x.x.x:6081
[info] k.m.a.KafkaManagerActor - baseZkPath=/kafka-manager
[info] play.api.Play - Application started (Prod)
[info] p.c.s.NettyServer - Listening for HTTP on /0:0:0:0:0:0:0:0:80
[info] o.a.z.ClientCnxn - Opening socket connection to server x.x.x.x/x.x.x.x:6081. Will not attempt to authenticate using SASL (unknown error)
[info] o.a.z.ClientCnxn - Socket connection established to x.x.x.x/x.x.x.x:6081, initiating session
[info] o.a.z.ClientCnxn - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
[info] o.a.z.ClientCnxn - Opening socket connection to server x.x.x.x/x.x.x.x:6081. Will not attempt to authenticate using SASL (unknown error)
[info] o.a.z.ClientCnxn - Socket connection established to x.x.x.x/x.x.x.x:6081, initiating session
[info] o.a.z.ClientCnxn - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
[info] o.a.z.ClientCnxn - Opening socket connection to server x.x.x.x/x.x.x.x:6081. Will not attempt to authenticate using SASL (unknown error)
[info] o.a.z.ClientCnxn - Socket connection established to x.x.x.x/x.x.x.x:6081, initiating session
[info] o.a.z.ClientCnxn - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
[info] o.a.z.ClientCnxn - Opening socket connection to server x.x.x.x/x.x.x.x:6081. Will not attempt to authenticate using SASL (unknown error)
[info] o.a.z.ClientCnxn - Socket connection established to x.x.x.x/x.x.x.x:6081, initiating session
[info] o.a.z.ClientCnxn - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
[info] o.a.z.ClientCnxn - Opening socket connection to server x.x.x.x/x.x.x.x:6081. Will not attempt to authenticate using SASL (unknown error)
[info] o.a.z.ClientCnxn - Socket connection established to x.x.x.x/x.x.x.x:6081, initiating session
[info] o.a.z.ClientCnxn - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
[error] k.m.ApiError$ - error : Ask timed out on [ActorSelection[Anchor(akka://kafka-manager-system/), Path(/user/kafka-manager)]] after [5000 ms]
akka.pattern.AskTimeoutException: Ask timed out on [ActorSelection[Anchor(akka://kafka-manager-system/), Path(/user/kafka-manager)]] after [5000 ms]
at akka.pattern.PromiseActorRef$$anonfun$1.apply$mcV$sp(AskSupport.scala:334) ~[com.typesafe.akka.akka-actor_2.11-2.3.14.jar:na]
at akka.actor.Scheduler$$anon$7.run(Scheduler.scala:117) ~[com.typesafe.akka.akka-actor_2.11-2.3.14.jar:na]
at scala.concurrent.Future$InternalCallbackExecutor$.unbatchedExecute(Future.scala:601) ~[org.scala-lang.scala-library-2.11.8.jar:na]
at scala.concurrent.BatchingExecutor$class.execute(BatchingExecutor.scala:109) ~[org.scala-lang.scala-library-2.11.8.jar:na]
at scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:599) ~[org.scala-lang.scala-library-2.11.8.jar:na]
at akka.actor.LightArrayRevolverScheduler$TaskHolder.executeTask(Scheduler.scala:467) ~[com.typesafe.akka.akka-actor_2.11-2.3.14.jar:na]
at akka.actor.LightArrayRevolverScheduler$$anon$8.executeBucket$1(Scheduler.scala:419) ~[com.typesafe.akka.akka-actor_2.11-2.3.14.jar:na]
at akka.actor.LightArrayRevolverScheduler$$anon$8.nextTick(Scheduler.scala:423) ~[com.typesafe.akka.akka-actor_2.11-2.3.14.jar:na]
at akka.actor.LightArrayRevolverScheduler$$anon$8.run(Scheduler.scala:375) ~[com.typesafe.akka.akka-actor_2.11-2.3.14.jar:na]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121]
[info] o.a.z.ClientCnxn - Opening socket connection to server x.x.x.x/x.x.x.x:6081. Will not attempt to authenticate using SASL (unknown error)
[info] o.a.z.ClientCnxn - Socket connection established to x.x.x.x/x.x.x.x:6081, initiating session
[info] o.a.z.ClientCnxn - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
[info] o.a.z.ClientCnxn - Opening socket connection to server x.x.x.x/x.x.x.x:6081. Will not attempt to authenticate using SASL (unknown error)
[info] o.a.z.ClientCnxn - Socket connection established to x.x.x.x/x.x.x.x:6081, initiating session
[info] o.a.z.ClientCnxn - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
[info] o.a.z.ClientCnxn - Opening socket connection to server x.x.x.x/x.x.x.x:6081. Will not attempt to authenticate using SASL (unknown error)
[info] o.a.z.ClientCnxn - Socket connection established to x.x.x.x/x.x.x.x:6081, initiating session
[info] o.a.z.ClientCnxn - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
[info] o.a.z.ClientCnxn - Opening socket connection to server x.x.x.x/x.x.x.x:6081. Will not attempt to authenticate using SASL (unknown error)
[info] o.a.z.ClientCnxn - Socket connection established to x.x.x.x/x.x.x.x:6081, initiating session
[info] o.a.z.ClientCnxn - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
[info] o.a.z.ClientCnxn - Opening socket connection to server x.x.x.x/x.x.x.x:6081. Will not attempt to authenticate using SASL (unknown error)
[info] o.a.z.ClientCnxn - Socket connection established to x.x.x.x/x.x.x.x:6081, initiating session
[info] o.a.z.ClientCnxn - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect

important

Other instances on port x.x.x.x:9081 in cluster are working propertly, everything is fine

When I'm running other kafka manager on the same network subnet, why they are connecting each other?

so do i

so do i

so do i

so do i 👍

I am also getting same error, any solution ? works ok when i have one zookeeper server but for more than one zookeeper to connect then Kafka fails to connect.
[2018-02-16 12:32:43,864] INFO Socket connection established to <IP_ADDRESS>/<IP_ADDRESS>:2181, initiating session (org.apache.zookeeper.ClientCnxn)
[2018-02-16 12:32:43,866] INFO Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect (org.apache.zookeeper.ClientCnxn)
..

2018-02-16 12:32:49,027] FATAL Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server '<IP_ADDRESS>:2181,<IP_ADDRESS>:2181,<IP_ADDRESS>:2181' with timeout of 9000 ms
	at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1233)
	at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:157)
	at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:131)
	at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:106)
	at kafka.utils.ZkUtils$.apply(ZkUtils.scala:88)
	at kafka.server.KafkaServer.initZk(KafkaServer.scala:326)
	at kafka.server.KafkaServer.startup(KafkaServer.scala:187)
	at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:39)
	at kafka.Kafka$.main(Kafka.scala:67)
	at kafka.Kafka.main(Kafka.scala)
[2018-02-16 12:32:49,030] INFO shutting down (kafka.server.KafkaServer)

So do I but with Zookeeper and Druid

So do I.

So do I in Druid for Zookeeper cluster

Any updates here?

So do I?

So do I.

So do I.

So do I

So do I

So do I

I set maxClientCnxns=1000 in ZooKeeper conf and it helps me

So do I.
::Update:: Found the issue, it was an internal communication problem with Kafka to Zookeeper as it was not able to reach the node. Reassigned the nodes properly and it was up and running.

How did you re-assign the nodes?

Finally work!
You got to create the cluster in Zookeeper first, then start Kafka!

Same error, still continue in 2021.

so do i

you are very not good

Same here, any solutions? :)

So do I...

So do I

So do I

So do I

So do I

so do I ,

So do I

俺也一样

社区问题没人搭理了吗


Check software products and citations after database merge

There has been a large amount of changes to HITO due to the merge with the database (see https://github.com/hitontology/database/issues/12). Please do a quick check if the software products and their citations look complete and correct.

I've looked through the citations and software products and everything seems to be in order.


update readme 'chia show -c' has been renamed to 'chia peer -c'

Got this deprecation info.
$ chia show -s -c
'chia show -c' has been renamed to 'chia peer -c'
[...]

Section #is-it-working in readme suggests running docker exec -it chia venv/bin/chia show -s -c.
The -c parameter triggers this warning.
I've updated the documentation and showed example outputs so it's easier to understand what the command should output when troubleshooting.

Thank you for keeping the documentation up to date!


Running code without building dres structure

Dear Yu Xiang,
Building dres structure takes huge hard disk space  and time.
Is it possible to run code with out building dres structure? Can we read one frame at a time (like "On-line" processing)?
Thanking you
Shiva

Hello,
I think it is possible. The dres structure can save time in training. Otherwise, we have to read the images again and again during training. For testing, since we only process one image once, it is possible to not use the dres structure.


Cards - fetching data: allow user to refresh

As a user, I want to be able to see information that my data is still being fetched so that I know there are more cards are coming. If the app is stuck at fetching data, and doesn't deliver more cards quickly, it would be helpful if I could do something.
Technical requirements - why this is needed:
Supplied by @mike-audi
Currently we are displaying а message and nothing else.

Technical Requirements:

Expose the status of syncs per linked account (last sync'd date, timeout, error, etc.). The last sync'd date is already stored in the app data under key ApiAppDataKey.gmailLastFetch.

Add a force'd retry via a user action, for example in mail clients, when the user pulls down to refresh it instantly triggers a fetch of any new emails. This should for a new sync event, not re-index their entire account from scratch. This logic is already implemented in checkGmail in data_bkg_service.dart. Simply connect the user action even to checkGmail(force: true);

In addition to the last sync date we can optionally also expose

the number of emails sync'd
if the sync is stuck
if the sync failed
if the sync succeeded

Working on this, but let's also discuss at stand up.

This journey has been designed as in Figma:

Separate tickets will be created for building this, marked as done from design perspective.


Failed to establish a new connection: [Errno 61] Connection refused

I'm trying to use parser.from_file('file-path') and facing this issue.
I looked through other issues and found the following solutions:-

killall java
check if port 9998 is free
check for firewall blocking
check if other tika instances are running on port 9998
But none of these resolve my problem.
Is there something else I'm missing out on?

PS: I have java version 9.0.4 and python version 3.6.3

java9 - Tika only works with java8....


[Feature] New ability to replace actual file associated with file version, rather than create new version.

It would be useful to be able to replace the file associated with a file version in the file system, without creating a new version / file in the file system as the "swap" function currently does.
This is for when files are "swapped" but they want to maintain the old URL on the file system - for instance updating a PDF of pricing, where users have saved the URL to the file, but swapping out the file with a new version would create a new URL and the old URL would still point at the old version of the file.
You could get around this issue using the download file URL, which runs the request through PHP and provides the latest version in theory, but it would be useful functionality to have in instances where that's not a feasible solution.

This kind of functionality would be even more useful if there was some kind of pretty url redirect. So a file could be assigned a 'pretty url' and that url would always redirect to the latest version. To continue @evancooper's use-case:
mysite.com/products/price-list.pdf redirects to mysite.com/application/files/1234/5679/9012/last-uploaded-sheet-name.pdf
(all without having to mess with .htaccess)

@JohntheFish yes that would be wonderful as a feature it definitely would be so much easier to allow editors to create their own pretty urls. Right now we have to upload assets to servers sym linked to our storage directly in order to get this done. CMS editors  don't have access to servers, so they can't do this themselves. But we also have to updates .htaccess sometimes as well. Makes for alot of extra time spent on web dev teams side.
@evancooper thank you for putting this up as a new feature. Replacing media assets via file manager and keeping same urls along with added ability to make them pretty urls is one of the features we could really use right now.
Here's our case example for this problem with replace with file manager now:
At this time we have this issue.  I have to lock down permissions on Replace images for Editors.   If a user replaces an image in our file manager it changes the link url. Where ever that image was copied to or used in our cms html directly on other pages or our other multiligual sites in the enterprise cms c5 v8.5.2 to v8.5.4 cms's, it shows up as missing image. We've encountered this once and learned our lesson to lock it down since this. What happened here is the main banner images on multiple pages went missing when a editor tried to update the image in file manager using Replace instead of uploading a new image, this occurred mainly when the image was called using html.

This has been accepted; specific implementation details for the feature are found at #9505 so I'm closing this one.


feat: update TS definitions to follow lightning/core subclassable components instructions

Draft, Do Not Merge
Description
Doing some prototype work around reworking our TS definitions to follow the subclassable component instructions from lng/core
Checklist

[ ] all commented code has been removed
[ ] any new console issues have been resolved
[ ] code linter and formatter has been run
[ ] test coverage meets repo requirements
[ ] PR name matches the expected semantic-commit syntax

@frank-weindel thanks for the comments! I think I've got a better understanding of what we're doing here now and updated the declarations


docs(operators): examples for 'every' operator

Description:
Examples for 'every' operator
Related issue (if exists):

Coverage remained the same at 97.674% when pulling 42b5b20222f129c3a4b7daa9b27661942c15fb9b on feloy:every into 45b842c6bd40a3d03bbe10c71d6635bdd1a466ea on ReactiveX:master.

Ok, right. In fact I wanted to demonstrate the use of this context argument in this example. But I understand that it is not really the subject.
This second example would not be necessary anymore, I propose to remove it completely

Coverage increased (+0.02%) to 97.69% when pulling 337a4e482a18ab4ccdde10d5e45ccf75873ea94f on feloy:every into 45b842c6bd40a3d03bbe10c71d6635bdd1a466ea on ReactiveX:master.


Add autostaffing policy for staffbot

Coverage increased (+0.01%) to 90.354% when pulling d9f1c4eb79e90c88bbb06c1a56c5f126c0d0e05f on staffbot-assignment-policy into 18f9ef917c0e73428faf7bdce8f1100a624b3bb1 on master.

Coverage increased (+0.01%) to 90.588% when pulling 48d1e421807a0a1573d29b0b80b07d89853b1aae on staffbot-assignment-policy into d627ec8da66317b8904b02f18142efd76154f761 on master.

lgtm after tests pass

Coverage increased (+0.02%) to 90.595% when pulling 0b9f52b184780d926a013544b4efbd7968c6b4c6 on staffbot-assignment-policy into d627ec8da66317b8904b02f18142efd76154f761 on master.


Automatic extension update fails with UnknownError: Signature: UnknownError

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

VS Code Version: Version: 1.74.0-insider
Commit: ac084d723b7405591d2110fe374648345ecb8ce6
Date: 2022-11-28T05:23:46.430Z
Electron: 19.1.6
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 6.0.10-native_intel-xanmod1-1
Sandboxed: Yes
OS Version: Arch Linux (VS Code installed with the AUR package visual-studio-code-insiders-bin)

Steps to Reproduce:

Attempt to update any extension with a pending update
The update fails with "Error while updating 'Remote - SSH' extension. Please check the log for more details."
Window log:

2022-11-28 16:16:50.292 [info] Electron sandbox mode is enabled!
2022-11-28 16:16:50.842 [warning] Skipping extension /home/user/.vscode-insiders/extensions/ms-vscode.js-debug-1.72.1 in favour of the builtin extension /opt/visual-studio-code-insiders/resources/app/extensions/ms-vscode.js-debug.
2022-11-28 16:16:50.843 [error] Extension 'ms-vscode.js-debug' appears in product.json but enables LESS API proposals than the extension wants.
package.json (LOSES): portsAttributes, findTextInFiles, workspaceTrust, resolvers, tunnels
product.json (WINS): portsAttributes, findTextInFiles, workspaceTrust, tunnels
2022-11-28 16:16:53.408 [info] [perf] Render performance baseline is 21ms
2022-11-28 16:16:55.200 [error] UnknownError: Signature: UnknownError
    at pt.download (vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:37:92674)
    at async Y.h (vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:89:167628)
2022-11-28 16:17:02.338 [error] Signature: UnknownError
    at pt.download (vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:37:92674)
    at async Y.h (vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:89:167628)
2022-11-28 16:17:02.367 [error] UnknownError: Signature: UnknownError
    at pt.download (vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:37:92674)
    at async Y.h (vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:89:167628)

It happens with at least the extensions Remote - SSH, Python and rust-analyzer. Manually downloading the extensions and installing via the command line does work.

CC @isidorn

Still present in:
Commit: 9908b3d5ae12691da5adc2f18e21a100ee8eeb58
Date: 2022-11-30T05:33:53.125Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 6.0.10-arch2-1
Sandboxed: Yes```

Thanks a lot for filling these issues. We are looking into a fix.
In the meantime here's a workaround:
Set extensions.verifySignature to false in your settings.json

I don't see such option. And when I just put it in it does not work. Maybe it's something available only in development version of VSCode?

Any news on this issue?

Please continue using this setting "extensions.verifySignature" = false until this is fixed

I have had an identical error for nearly a month now. I can't install or update any extensions.

@wrenparismoe what OS are you using? If you set "extensions.verifySignature" = false in your settings does that fix the problem?
We are investigating this issue and hope to have a fix soon. Thank you for your patience.

@isidorn/@dtivel Any updates on this?

This should be resolved with latest Insiders via https://github.com/microsoft/vscode/pull/169777.  If it isn't, please let us know with your version info.

Closing as fixed

Seems to be working here. Thanks for fixing.

Correct. We have follow up work that is investigating the underlying problem.

Only marking verification found because there's no issue linked about the the follow up work. @isidorn if there is one, can you link it here?
Once that's linked this can be marked verified since @furai confirmed it's fixed by handling the error.

Thanks @TylerLeonhardt
Some follow up work is here https://github.com/microsoft/vscode/issues/168525
More details and work in our private planning repo to which I can not link from here unfortunately.


fix: shade async-profiler packages

[ ] Associated with issue https://github.com/apache/skywalking/issues/12748
[ ] Update the CHANGES log.

Could you post the screenshot of new binary package here?
And, have you tested the feature again? Shading sometimes breaks the function.

Could you post the screenshot of new binary package here?你能在这里发布新的二进制包的屏幕截图吗？
And, have you tested the feature again? Shading sometimes breaks the function.而且，您再次测试过该功能吗？阴影有时会破坏功能。

I have tested it locally and the original function is normal.
The following is the package structure diagram:

About the so files, are they able to move as well?

About the so files, are they able to move as well?

The .so file has not been moved yet.
I think it should not be possible to move the .so file because the async-profiler code gets the dynamic library path based on the following code
String resourceName = "/" + getPlatformTag() + "/libasyncProfiler.so";

It is a solution as long as you understand that shading in the agent package instead of agent-core will make it impossible to be used from other packages like plugins

Do you mean you prefer to move this(shade) into core module? I think plugins would not access this part of codes.

It is a solution as long as you understand that shading in the agent package instead of agent-core will make it impossible to be used from other packages like plugins

Do you mean you prefer to move this(shade) into core module? I think plugins would not access this part of codes.

I am OK with this one.

@zhengziyi0117 Could you try that?
I think we don't need async profilor accessible from.plugins.


Write a C program to convert hours to minutes

Description
Write a C program to convert hours to minutes
1 hour = 60 minutes
Input  : 5
Output : 300

How to contribute

Save the solution in program/ConvertHoursToMinutes.c file
Add ConvertHoursToMinutes.c file in convert-hours-to-minutes folder

!assign


range iteration over an integer

This update makes range 5 a valid expression, which evaluates to an int_iter object. As a result, Risor now supports the range-over-int iteration comparable to what was added in Go 1.22.
https://tip.golang.org/doc/go1.22

fyi @applejag @luisdavim


With global stylesheet paths

An upgrade to examples/with-global-stylesheet addressing the issues of using styles without relative paths and importing from node_modules as well as possibly other aliased places.

Thank you. Looks awesome

Thank you for the awesome Next.js

@orlin Why you use .map((g) => glob.sync(g)) ?


Authentication and Authorization Setup

Your checklist for this pull request
🚨Please review the guidelines for contributing to this
repository.

[x] Make sure you are requesting to pull a topic/feature/bugfix branch
(right side). Don't request your default branch!
[x] Make sure you are making a pull request against the default branch
(left side). Also you should start your branch off default branch.
[x] Check the commit's or even all commits' message styles matches our
requested structure.
[x] Check your code additions will fail neither code linting checks nor unit
test.
[x] I have added necessary documentation (if appropriate)

Description
Setup a session-based authentication and authorization on the server with the session store saved in MongoDB. Use firebase admin token for authentication and custom claims for role-based authentication.
Please describe your pull request.
❤Thank you!
Post merge checklist

[ ] Follow steps from the guidelines for contributing to
this repository.
[ ] If you are a new contributor, ping in the thread and one of the
maintainers will add you to all-contributors list.

@riteshsp2000 please have a look at this error before merging https://aptiche.dscnitrourkela.org/pr/graphql

@riteshsp2000 please have a look at this error before merging https://aptiche.dscnitrourkela.org/pr/graphql

Ohhh okay. You'll need to add the environment variable for sessions config. There are other updates to the file as well. Ill send you the file and you can update it.

Maybe we need an env.example file for future reference


Expand and readthrough volumes

Docker volumes
Volumes on host machines
Best practice about how to deal with volumes

Duplicate of #54


Avoid need for sleeps after creating channel using API

The end-to-end test suite currently contains arbitrary sleeps to give the network time to become stable before completing chaincode lifecycle deployment. These sleeps only appear to be required when the channel is created using the admin API. When the channel is created using the test-network scripts, chaincode deployment seems to work without sleeps.
Maybe it would be good to either:

Have the channel commands (perhaps optionally) check completion of configuration before returning so the system is in a fully usable state immediately after creation completes; or
Extend the channel API to allow client code to check for a stable system state.

@channingduan @SamYuan1990 What do you think?

In my point of view, the reason for sleep:
as the some operator need a block to delivered to each peer as conformation.
hence the sleep is added to ensure the next step will start after the previous block been completed.
do you want admin-sdk api listen the feedback after each operator? so ... this kind of checking will handle by admin-sdk itself, so for user, just need to focus on their operators?
any edge case been considered as timeout? replay attack?

The chaincode API calls that submit transactions already waits for blocks to be committed before returning. This is handled by Fabric Gateway. Where channel API calls need to wait for blocks to commit, we could also make use of the Gateway API (or Gateway gRPC services directly if neccessary) to wait for commit of blocks, at least on the Gateway peer. Timeout can be controlled by the client-supplied Context.
Note that the Gateway only checks that transactions are committed to the local peer ledger. This is generally sufficient since it prefers highest block height peers for subsequent invocations. I'm not sure if this is sufficient for all the channel operations. Anything is better than having to guess an arbitrary delay time after performing operations.
It might be worth checking what the test-network scripts and/or existing CLI commands are doing.

The chaincode API calls that submit transactions already waits for blocks to be committed before returning. This is handled by Fabric Gateway. Where channel API calls need to wait for blocks to commit, we could also make use of the Gateway API (or Gateway gRPC services directly if neccessary) to wait for commit of blocks, at least on the Gateway peer. Timeout can be controlled by the client-supplied Context.
Note that the Gateway only checks that transactions are committed to the local peer ledger. This is generally sufficient since it prefers highest block height peers for subsequent invocations. I'm not sure if this is sufficient for all the channel operations. Anything is better than having to guess an arbitrary delay time after performing operations.
It might be worth checking what the test-network scripts and/or existing CLI commands are doing.

I think it's better for gateway to handle network related case (for ex timeout). for admin sdk, if all network through gateway, we can remove sleep timeout.

Another option is that we provide an api interface to allow user inject their own "call back"(some thing as post action hook or in an AOP programming model of view, a hook after network IO to peer/order), and we implemented a default "call back"...
but I suppose which duplicated with gateway client's work.

And in most of case, for example, if user want to check a block been confirmed by multiple peers, all operators(not only channel creation) should checked among the same scope. Hence in fact, the "call back" did the similar logic as gateway sdk but targeting on multiple peers.
As a summary, I suppose as this logic already covered by gateway sdk, hence we don't need a duplicate implementation in admin-sdk.

I just created a pr to see what if we removed sleep in our e2e test case.
for safety reason, we'd better provide a check mechanism.

I was double checked fabric sample today
https://github.com/hyperledger/fabric-samples/blob/67ae2c9d025907840603cf38eaf3b39e511c9d19/test-network/scripts/ccutils.sh#L105-L115
I am not sure if a sleep wait is a best option for us or not?
as we have to wait for 1st block success, which means we need to check the block height or channel config block height through hole blockchain network?


How to use?

Hello
I'm importing your lib using :
import (
"github.com/zyedidia/sfml/v2.3/sfml"
"runtime"
)
But then i get load of error, where do i put include folder? i don't understand, can you help me please?
Thanks

This is just a Github mirror of a Gitlab project you can find here. I'm not the maker of the project.
I can probably still help you install it though. Are you using Windows or Mac or Linux?

I'm on osx, i tried with the origial repo but i have same issue:
../../../go/src/gitlab.com/tapir/sfml/v2.3/sfml/vertexArray.go:81: cannot use v.data (type *C.struct_sfVertexArray) as type *C.struct_sfSprite in argument to func literal
../../../go/src/gitlab.com/tapir/sfml/v2.3/sfml/vertexArray.go:83: cannot use v.data (type *C.struct_sfVertexArray) as type *C.struct_sfSprite in argument to func literal
../../../go/src/gitlab.com/tapir/sfml/v2.3/sfml/vertexArray.go:91: cannot use v.data (type *C.struct_sfVertexArray) as type *C.struct_sfSprite in argument to func literal
../../../go/src/gitlab.com/tapir/sfml/v2.3/sfml/vertexArray.go:93: cannot use v.data (type *C.struct_sfVertexArray) as type *C.struct_sfSprite in argument to func literal

I installed SFLM and CSFML using homebrew (sfml-2.4.2 and csfml-2.3_1)

Oh right now I remember why I didn't use this -- it has errors. I recommend that instead you use another binding of sfml for Go which you can find here: https://github.com/manyminds/gosfml.
Then you can use it like:
package main

import sf "github.com/manyminds/gosfml"
import "runtime"

const (
	screenWidth  = 800
	screenHeight = 600
)

func init() {
    runtime.LockOSThread()
}

func main() {
	window := sf.NewRenderWindow(sf.VideoMode{screenWidth, screenHeight, 32}, "Rectangle", sf.StyleDefault, sf.DefaultContextSettings())
	window.SetVSyncEnabled(true)
	window.SetFramerateLimit(60)

	rect, _ := sf.NewRectangleShape()
	rect.SetSize(sf.Vector2f{30, 30})
	rect.SetFillColor(sf.ColorBlue())
	rect.SetOrigin(sf.Vector2f{15, 15})
	rect.SetPosition(sf.Vector2f{screenWidth / 2, screenHeight / 2})

	for window.IsOpen() {
		for event := window.PollEvent(); event != nil; event = window.PollEvent() {
			switch ev := event.(type) {
			case sf.EventKeyReleased:
				if ev.Code == sf.KeyEscape {
					window.Close()
				}
			case sf.EventClosed:
				window.Close()
			}
		}

		window.Clear(sf.ColorWhite())
		window.Draw(rect, sf.DefaultRenderStates())
		window.Display()
	}
}

Maybe in the future I'll try to fix the bugs in this repository, but like I said, I'm not the one who wrote it.

Oh this one works fine :), but it takes a long time to rum ~ 10+ seconds, is that normal ? 0o

Yeah it takes a long time to compile it because it uses cgo. I think if you use go install to build it will cache the build so in the future it won't take as long. It might even do that with go run or go build but I'm not sure.

It is so much faster now, not instant but faster, thanks a lot you saved me ton of hours of googling xD

Glad I could help :).

I fixed those errors so you can use this repository now if you'd like. The nice thing about this wrapper is that it doesn't return unnecessary error variables and also has nicer functions.

I'll try it, thanks again :)


Using find_also_*() with group_by(Col) with correct column alias for Col

let baked_for_customers = Baker::find()
    .find_also_linked(baker::BakedForCustomer)
    .group_by(baker::Column::Id)
    .all(&ctx.db)
    .await?;


Add masked operators

This PR extends the existing GridOperators API with new functions to compute masked derivatives, where each operand is premultiplied with a mask at corresponding grid location.

Thanks a lot 🚀


Ninjas Seeing Progress

Adding a way that ninjas can see other ninjas progress tracing the same image

Related to #188
Also think about way to render full volume with unedited/edited regions


Help With New diamondCut Functions

If you want to contribute to this project, here's an opportunity to do so.
Make pull requests to implement the versions of diamondCut listed below or discuss new possible versions in the comments.
The implementations must be gas efficient.
Rational
Something that is currently missing from the Diamond Standard is a way to add/replace/remove functions and execute arbitrary code in the same transaction.  This is needed for example to initialize/setup storage data after adding functions to a diamond.
It is possible to have different versions of the diamondCut function that take different arguments and work in different ways. However all versions are used to add/replace/remove functions from diamonds.
But before adding more versions of diamondCut to the Diamond Standard I want them implemented in this project. In addition, versions of diamondCut can exist and be used that are not defined in the Diamond Standard.  The ones defined in the Diamond Standard are for compatibility between tools.
Just because a version of diamondCut doesn't exist in the Diamond Standard doesn't mean it can't exist and be used.  I'd like this project to include a library of different versions of diamondCut that are useful in different circumstances.
What to Implement
Implement the following functions in DiamondFacet.sol or other file. All these functions can be private/internal/public/external.

diamondCut(bytes[] memory _diamondCut, address _initializer, bytes memory _data)

This version of diamondCut is used to execute arbitrary code after adding/replacing/removing functions and passing in _data as an argument to the arbitrary code.
_initializer is a contract with a function initialize(bytes memory _data) that is called using delegatecall.  Obviously the parameter _data is passed from diamondCut to initialize.

diamondCut(bytes memory _diamondCut)

First 20 bytes is the facet address and the rest of the bytes are 4-byte function selectors.

diamondCut(address _facet, bytes memory _data)

This function is used to allow a new facet to add its functions to a diamond and execute arbitrary code, passing _data as an argument.
_facet should execute the initialize(bytes memory _data) using delegatecode. For example: _facet.delegatecall(abi.encodeWithSignature("initialize(bytes)", _data).
From within initialize(bytes memory _data) a facet should add its function selectors.
Other Versions
I am interested in suggestions and adding other versions of diamondCut to the project. Feel free to discuss ideas in the comments or in the Diamond Standard Discord: https://discord.gg/kQewPw2

"From within initialize(bytes memory _data) a facet should add its function selectors." -- what does this mean?

@mudgen It means that a facet can add its own functions to a diamond.


Set to release

Signed-off-by: Matthew de Detrich<EMAIL_ADDRESS>(cherry picked from commit 324c9709fc00360cb8417ce86a281d6baaa2a6d5)
Signed-off-by: Matthew de Detrich<EMAIL_ADDRESS>

Codecov Report

Merging #95 into 0.2.x will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##            0.2.x      #95   +/-   ##
=======================================
  Coverage   74.59%   74.59%
=======================================
  Files          22       22
  Lines         500      500
  Branches        9        9
=======================================
  Hits          373      373
  Misses        127      127

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 ef75632...33f6c56. Read the comment docs.


Fixed #35622 -- Made unittest ignore Django asserts in tracebacks.

Trac ticket number
ticket-35622
Branch description
Fixes the issue reported on the ticket, as tested on my example project: the assertJSONEqual frame no longer appears in the failure report and the debugger opens within the test. I added a unit test.
Checklist

[x] This PR targets the main branch.
[x] The commit message is written in past tense, mentions the ticket number, and ends with a period.
[x] I have checked the "Has patch" ticket flag in the Trac system.
[x] I have added or updated relevant tests.
[x] I have added or updated relevant docs, including release notes if applicable.
[x] I have attached screenshots in both light and dark modes for any UI changes.

Thanks for the review @nessita , adjusting now.

Also, did you consider to also define __unitest = True in django/contrib/admin/tests.py?

I skipped it because it’s not public, but without much real consideration. I will add it.


Application module is showing window name instead

Is there an existing issue outlining your problem?

[X] I have searched the existing issues and they do not solve my problem.

Describe your problem.
The default for the application module is the window name, not the actual application name. I assume this is not intended behavior because it leads to confusion when people actually rename their windows to something that makes sense for them.
Paste your configuration.
Doesn't really matter
Attach screenshots.
No response
What tmux version are you seeing the issue on?
tmux 3.4
Any additional comments?
Will fix myself.
Current workaround is:
set -g @catppuccin_directory_text "#{pane_current_path}"

That is because the window name is the applications name.

bottom is current default top is your suggested change.
I don't see how that workaround improves/fixes anything, maybe I am missing something?

That is because the window name is the applications name.

That was what I was trying to say: Users are free to rename the window, so that doesn't hold for everyone.

bottom is current default top is your suggested change.

Wow! That is surprising! Definitely not how it looks on my system.
With these settings:

      set -g @catppuccin_window_left_separator ""
      set -g @catppuccin_window_right_separator " "
      set -g @catppuccin_window_middle_separator " █"
      set -g @catppuccin_window_number_position "right"

      set -g @catppuccin_window_default_fill "number"
      set -g @catppuccin_window_default_text "#W"

      set -g @catppuccin_window_current_fill "number"
      set -g @catppuccin_window_current_text "#W#{?window_zoomed_flag, -  ,}"

      set -g @catppuccin_status_modules_right "application user host session"
      set -g @catppuccin_application_text "#{pane_current_command}"
      set -g @catppuccin_status_left_separator  " "
      set -g @catppuccin_status_right_separator ""
      set -g @catppuccin_status_fill "icon"
      set -g @catppuccin_status_connect_separator "no"

      set -g @catppuccin_directory_text "#{pane_current_path}"

I get this

(I have changed my window name to code)

Ah "#{pane_current_command}" the PR has it set to "#{pane_current_path}" did not know about the current_command

Big Oopsy on my part. I'm incredibly sorry!
I'll correct it

Done!


Detect when LUIS fails and act accordingly

Hi, our luis model is 404ing right now, and the onDefault intent is being triggered.
Whats the recommended way to handle this?
We would like to show a custom message.

@Stevenic is there a way to catch Luis service call failures in node.js SDK and send a custom message to user?

You shouldn't be getting onDefault for a 404 from LUIS. Any error results in session.error() being called. Are you sure you're utterance isn't just not being detected.  This can happen when the intent score returned is below 0.1. Typically that means you haven't trained your model enough.

I was going over the free quota of LUIS calls, and that was what triggered  the onDefault.

Hi @cesarvarela, did this answer your question?

I'd say yes, but you might want to check what I said about going over the free quota throwing and error instead of throwing intent = null, and score = 0.1 which isn't what is really happening.

@Stevenic, is it possible a 429 from LUIS is resulting in onDefault instead of session.error()?

I did some fixes around this that were pushed out a few weeks ago. Please tell me if you're still seeing this issue and I'll reopen it.


Quarantine flaky downward metrics test

What this PR does / why we need it:
The following test has been very flaky over the past 7 days[1]:
Serial][sig-compute]InfrastructuredownwardMetrics [It] [test_id:6535]should be published to a vmi and periodically updated [sig-compute]
Quarantining for now as it is causing impact across all of the sig-compute lanes.
[1] https://search.ci.kubevirt.io/?search=test_id%3A6535&maxAge=168h&context=1&type=build-log&name=&excludeName=&maxMatches=5&maxBytes=20971520&groupBy=job
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
/cc @xpivarc @enp0s3
Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

[x] Design: A design document was considered and is present (link) or not required
[x] PR: The PR description is expressive enough and will help future contributors
[x] Code: Write code that humans can understand and Keep it simple
[x] Refactor: You have left the code cleaner than you found it (Boy Scout Rule)
[x] Upgrade: Impact of this change on upgrade flows was considered and addressed if required
[x] Testing: New code requires new unit tests. New features and bug fixes require at least on e2e test
[x] Documentation: A user-guide update was considered and is present (link) or not required. You want a user-guide update if it's a user facing feature / API change.
[x] Community: Announcement to kubevirt-dev was considered

Release note:
NONE

/hold
Possible fix proposed here - https://github.com/kubevirt/kubevirt/pull/10439

/close


Interface adapters added for clean architecture

Gotta keep that architecture clean 😎

Looks good, as far as I can see you adhere to the Clean Architecture principles.


Fails to create constraint in yaml view.

What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):

Create a cluster, navigate to dashboard, enable gatekeeper.
Go to constraint page. Click create
There is a button 'Edit as yaml'. Shouldn't it be 'Create as yaml' ?
Enter Name and press tab or click anywhere else. Name text goes off, also it doesn't replace the null in name in yaml body.
Yaml snapshot:

metadata:
  name: null

Write proper yaml for constraint and click save. It shows error Cannot read property 'hasLink' of undefined

Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): master branch on 2.4-head 454daa475 rancher set up.
Installation option (single install/HA): Single

Create from YAML shows the codemirror text area blank.
Previously the UI workflow was:

Navigate to OPA Gatekeeper -> Constraints
Click Create -> Click Edit as YAML
The default template YAML was ready pre-filled for edit in the textarea.

Example with k8sallowedrepos (the default).
type: constraints.gatekeeper.sh.k8sallowedrepos
spec:
  match:
    excludedNamespaces:
      - cattle-system
      - gatekeeper-system
      - ingress-nginx
      - kube-node-lease
      - kube-public
      - kube-system
      - security-scan
    kinds:
      - apiGroups:
          - ''
    labelSelector:
      matchExpressions: []
    namespaceSelector:
      matchExpressions: []
  parameters: {}
  enforcementAction: deny
metadata:
  name: null
  annotations:
    cattle.io/description: null

Not the UI workflow is:

Navigate to OPA Gatekeeper -> Constraints
Click Create as YAML
The textarea is not pre-filled from the template as the previous workflow.

Blank textarea. And the text area is not pre-filled even changing the template.

Browset Devtools console shows if I click Save with the blank YAML:
TypeError: n.value.yamlForSave is not a function
    at ResourceYaml.vue:186
    at Generator.next (<anonymous>)
    at r (asyncToGenerator.js:3)
    at l (asyncToGenerator.js:25)
    at asyncToGenerator.js:32
    at new Promise (<anonymous>)
    at asyncToGenerator.js:21
    at f.save (ResourceYaml.vue:185)
    at Qt (vue.runtime.esm.js:1854)
    at f.n (vue.runtime.esm.js:2179)


[efs-provisioner] EFS volumes causes pods to become stuck in terminating status

I am using the EFS provisioner to add persistent storage for some postgres pods.
When they shut down the pods get stuck in terminating status. These pods would shut down properly before I added the EFS volume.
I can leave them there to troubleshoot, and can be reached on the k8s slack as @adam_p

Can you please reproduce this and get the output of kubectl describe pod? And possibly kubelet logs? If unmount is failing, events like 'Operation failed for volume...' with relevant information should show up as events on the pods stuck terminating.

kubectl get pod pg-2252090818-74k53
NAME                                          READY     STATUS        RESTARTS   AGE
pg-2252090818-74k53   0/1       Terminating   0          5d

kubectl describe pod pg-2252090818-74k53
Name:				pg-2252090818-74k53
Node:				...
Start Time:			Tue, 18 Jul 2017 17:10:23 -0400
Labels:				app=review-pg
				pod-template-hash=2252090818
Annotations:			kubernetes.io/created-by={"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicaSet","namespace":"review","name":"pg-2252090818","uid":"7b126ba4-6bfa-11e7-...
Status:				Terminating (expires Fri, 21 Jul 2017 16:24:47 -0400)
Termination Grace Period:	30s
IP:
Controllers:			ReplicaSet/pg-2252090818
Containers:
  postgres:
    Container ID:	docker://3fa04db56ef9313115c6c287f04cfb76df8449e23b5d297675bec940f28f8c7c
    Image:		postgres:9.6.1
    Image ID:		docker-pullable://postgres@sha256:0842a7ef786aa2658623085160cb38451eb3d40856e7d222ae0069b6e6296877
    Port:		5432/TCP
    State:		Terminated
      Exit Code:	0
      Started:		Mon, 01 Jan 0001 00:00:00 +0000
      Finished:		Mon, 01 Jan 0001 00:00:00 +0000
    Ready:		False
    Restart Count:	0
    Environment:
      PGDATA:	/var/lib/postgresql/data/pgdata
    Mounts:
      /var/lib/postgresql/data/pgdata from pgdata (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-chg2r (ro)
Conditions:
  Type		Status
  Initialized 	True
  Ready 	False
  PodScheduled 	True
Volumes:
  pgdata:
    Type:	PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:	pvc
    ReadOnly:	false
  default-token-chg2r:
    Type:	Secret (a volume populated by a Secret)
    SecretName:	default-token-chg2r
    Optional:	false
QoS Class:	BestEffort
Node-Selectors:	<none>
Tolerations:	node.alpha.kubernetes.io/notReady=:Exists:NoExecute for 300s
		node.alpha.kubernetes.io/unreachable=:Exists:NoExecute for 300s
Events:		<none>

No events for 5 days :( will have to see kubelet logs, can grep them for the pod name and/or pvc name, or send them in full. I'm on slack as @mawong

In the logs we found unmount failed with 'stale file handle.' I think the issue is the PVC and pod are deleted at the same time (helm delete) and this usually means the PVC directory gets deleted before pod Unmount goes through, so pod Unmount fails indefinitely on a folder that no longer exists hence 'stale file handle.'
the workaround is to always delete the pod before the pvc.
Since helm is pretty official and the idea of cleaning up pods+PVCs at the same time isn't unique to it either, a better solution is needed...the best one IMO is to wait for https://github.com/kubernetes/kubernetes/pull/46573 but something cheaper could be done on the provisioner's end too, need to think about it.

I just ran into this. A PVC and a deploy are defined in the same file. kubectl delete -f deploy.yaml results in the pods never terminating. It doesn't look like there's much traction on that kubernetes ticket. Any suggestions for a workaround?

kubectl delete po  --grace-period=0 --force POD_WITH_PVC for the stuck ones is how I am handling it

@szesch instead of deleting by file (-f) you can delete by pod name then pvc name.

Using OpenShift and also seeing this on project deletion. It likely deletes the PVC before the pods.

Just ran into this with the nfs-provisioner as well.  Kube 1.9.7 / GKE

And with nfs-client on AWS EKS (though harder to get to kubelet logs on that platform...).


fix(input): isClearable & add test cases to input

Closes #2791
📝 Description

use useSafeLayoutEffect to handle react-hook-form case. consistent with others
add test case for isClearable
add react hook form to input storybook (for test case, will be handled in another PR)

⛳ Current behavior (updates)
with isClearable, users fail to clear the value due to the previous change
🚀 New behavior
with isClearable, users are able to clear the value.
pr2796-demo.webm
💣 Is this a breaking change (Yes/No):
No
📝 Additional Information

Summary by CodeRabbit

New Features

Enhanced the input component to support clear functionality with the isClearable option.
Introduced WithReactHookForm component for better form handling and validation using react-hook-form.

Bug Fixes

Fixed an issue where the input value was not properly cleared when using the clear button.

Tests

Added tests to ensure the clear functionality triggers the onClear callback correctly.

Dependencies

Added react-hook-form to improve form state management and validation.

Updating the input value for React Hook Form actually introduces breaking changes. Previously, it would function with RHF's ASYNC default values because, as you mentioned, RHF uses ref.value. However, the value is now overwritten due to setInputValue being called first, which sets it to initial ref.value. As a result, async values come back, and RHF updates ref.value. However, NextUI's input state is already set so changing ref.value  only reflects changes temporarily (and for input only), NextUI will use its own input state value.
Visual example:
https://github.com/nextui-org/nextui/assets/20586092/81531e3b-0694-4134-a203-05ac91c99a9b
Workarounds:
Setting the values yourself after async response, or a quicker way is to conditionally render Input/Select since they are not in the DOM yet this won't activate:
 useSafeLayoutEffect(() => {
    if (!domRef.current) return;

    setInputValue(domRef.current.value);
  }, [domRef.current]);
}


Added search path for "ios/Frameworks" to allow build without cocoapods.

released as 10.0.2.
is Frameworks something xcode creates for just where you to put it?

RN projects already come with the "search path" for this path.

Even other libraries like the Facebook SDK also use it.

So I put all my frameworks inside <project>/ios/Frameworks, and everything works fine!

mine doesn't. anyway it is merged


Do we really want to use the term "html" in the admin area?

This is a question about labeling in the admin area of the CMS (I don't seem to be able to label this as a question).
I know what HTML means and I'm sure whoever is reading this knows what it means however I have CMS admin users that see this and have no idea what it means. They would rather not click the option that "edits HTML" because all they want to do is "edit text" or even "edit content". This makes it harder for non-technical people to use the new layout tool (which is great) in the CMS without some level of training.
I just wondered what other people feel about using terms like HTML and whether targeting more technical individuals is the objective or at least individuals that need to go through some level of training to use the CMS.
Matt

Where is that? Sometime you are really about to edit the HTML ...Who doesn't know HTML? My mother knows it.

I'm looking at the new layout part.
However much I think I know my users, I am always surprised. I've worked for schools, colleges and sports organisations and I can find many people between the ages of 16 and 80 that don't know what HTML means yet want to update a website. Scary I know but that is the reality for me.
What I would like to do is remove "Text" as an option. I don't see when my users would ever know when to use "Text" over "HTML". I would then like to be able to rename the HTML option. Could the translation be used somehow or is that overkill?

What about for those that do want to edit HTML?  Changing the nomenclature may confuse many other people, especially if they don't have the benefit of following the reason behind the change. They will just see that "HTML" disappeared and may think that it's no longer an option?  Totally understand your concern about customers who want to edit web content, not knowing HTML.  IMHO, that's a REALLY bad practice, unless all of the content is structured content: i.e. change text in paragraph 1, header, title, etc.

I'd be interested to know under what circumstances would you, as an everyday user, know that you need to add or modify HTML rather than just plain text? How would they know which to do? Would you not therefore always be wanting to give them a WYSIWYG editor?
Or to put it another way, when would a user NOT be happy with using a WYSIWYG editor?
Maybe that's the point, there is a difference between the preliminary build of a website which is carried out by a professional developer/web designer as opposed to its daily maintenance.

Well, if the user wants to create columns or change the layout of the content on the page / blog post (this happens pretty often), they may need to do this via HTML.  We also run into a pretty steady issue (actually, not so much anymore) with users pasting in the content they wanted from Word and that adding a bunch of random styles and classes to the content, changing / breaking the typography that goes along with the rest of the site.
In fact, having completely structured content may be the best option (in a perfect world), where the user doesn't have control over styling of content, completely removing the requirement of a wysiwyg editor.  This method also helps maintain a strong style and branding presence throughout all content on the site.  The downside is the level of effort for making all content structured, and then potentially having to change layouts / designs in the future.
That said, a knowledge of HTML (even basic), from my perspective, should be a requirement when posting content to a website.   In my experience, it has lead to problems.
The solution we use in-house is to provide small training sessions to anyone that can alter content on the website...and for staff who need content altered but have not received training, they delegate the task to someone that has had the training (or IT)


improve error handling in cli

Introduces explicit error type variants for all Other("$content") types, uses thiserror and cleans up a slew of unused dependencies. Also adds a chainable version Forwarded(Box<dyn Error>) which is helpful for using this with the ability to display a error chain in arbitrary format.
Follow up PRs might want to visit the exact wording of errors again, to make sure these are descriptive enough.

We should find a better name for Forwarded, otherwise it looks okay.

bot merge


Update LOCALIZATION_CONTRIBUTORS

Changes

Implementation details

How to read this PR

Screenshots

 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.

Hi
I'm Hayato Motegi.
I joined GitLocalize.
I would like to join translation.
Thank you.

Confirm he joined gitlocalize :) welcome translator!


defmt_decoder: Extend doc-comments and make Frame public

Fixes #430

bors r+

@jonas-schievink I actually wasn't sure if some of the doc-comments are exact enough, but glad they were 😅