"angular never provided resumeBootstrap" pops up

Since some time we occasionally see "angular never provided resumeBootstrap" in our tests and can't figure out why. We have ng-app on <html> and use the latest stable version of Angular 1.2.x and the latest version of Protractor with Jasmine 1.
I can't really give more information, because it happens very randomly. We don't do manually bootstrapping or something like that. It worked without flaws for a while.

I've seen this issue when manually bootstrapping, but haven't encountered it with ng-app. I don't think it would help but have you tried setting rootElement to html?

Setting rootElement to html doesn't help sadly.

It's really hard to say anything without more info or something repeatable that I can debug. Please let me know if you find anything more we can use to investigate.

I get this error message, too. The ng-app directive is in the body element. So everything should work normally.
For more information about my problem, please see http://stackoverflow.com/questions/32719042/angular-never-provided-resumebootstrap
Thanks in advance for helping!

@juliemr @chrilehner90 @davideast  I think the snyc with angular is not ok. I can't use protractor to test my app. I always get this error:
Failed: Error while waiting for Protractor to sync with the page: "[ng:test] no injector found for element argument to getTestability\nhttp://errors.angularjs.org/1.4.5/ng/test"
In real life applications need often to get some API data before they will run. In my case I need some API data before the app is in the configuration phase. For that reason I created a simple script which requests the API data, before angular and the app is loaded. If I have the results from the API I load angular and the app files which are merged within one file -> merged with requires js. I set the window name to window.name = 'NG_DEFER_BOOTSTRAP!'; and call the angular.resumeBootstrap. I think this should be supported by protractor. If I got this right, setting the name causes angular to pause bootstrapping the application until the resume function is called.
If I start a protractor test the application loads directly and is already showing up. But I still get the error ->  Failed: Error while waiting for Protractor to sync with the page: "[ng:test] no injector found for element argument to getTestability\nhttp://errors.angularjs.org/1.4.5/ng/test"
And I have a ng-app attribute within my html file.
I think there is something going wrong within protractor. How can it be that the page is already rendered before I get this error? I tried a browser.sleep() and also a  browser.waitForAngular();

This might not be the solution to everyone's problems, but if you're using Browsersync, read on.
Solution:
Add scrollRestoreTechnique: 'cookie' to your browsersync config.
Background:
Browsersync (>=2.7.11) restores your scroll position when it refreshes and it stores that information in one of two places - window.name (the default) or a cookie.
Unfortunately, Protractor uses an Angular feature called Deferred Bootstrap that uses window.name and conflicts with BrowserSync. From the AngularJS Docs:

This feature enables tools like Batarang and test runners to hook into angular's bootstrap process and sneak in more modules into the DI registry which can replace or augment DI services for the purpose of instrumentation or mocking out heavy dependencies.

If window.name contains prefix NG_DEFER_BOOTSTRAP! when angular.bootstrap is called, the bootstrap process will be paused until angular.resumeBootstrap() is called.

If Browsersync overwrites that window.name value before it gets caught by Angular, Angular will not defer its Bootstrap and Protractor will subsequently not be able to find the resumeBootstrap function because it won't exist.
Telling Browsersync to use a cookie instead of window.name resolves the conflict.

Well, this could be the problem in our case!

@benjaminkitt  Thanks for your solution, but I think there is something buggy in protractor. I changed my grunt prelease processes to remove requirejs and I changed the way how the application gets loaded. Now the application gets automatically bootstraped by angualr without resumeBootstrap. And I still don't get the tests to work if sync is enabled. Now protractor keeps telling that it can't find the ng-app, but I have one in my html file now. I believe it has some thing to do with the implementation of protractor. I also installed some chrome add-ons for testing my app. Some of them are working fine and reconize my app others of them are not able to find my app. For me its looks like the same issues.

@benjaminkitt after hours of searching why e2e sometimes fails (3 of 9 tries) with the message "angular never provided resumeBootstrap" I found your hint "scrollRestoreTechnique: cookie" and ... BINGO it has solved my e2e test troubles. THANK YOU!

@cyberflohr Glad it helped!
Happily, BrowserSync's @shakyShane has fixed this issue in BrowserSync 2.9.11. See https://github.com/BrowserSync/browser-sync/issues/808

I had the same issue, updating browser-sync solved the problem.

I am getting the same issue - manual bootstrap - angular 1.2.x, protractor 2.x.
    Failed: Angular could not be found on the page http://localhost:8080/prod/dondeDist.html : angular never provided resumeBootstrap

when I set browser.ignoreSynchronization = true; I don't get this error, but that causes other problems and I have to add lots of timeouts in my tests to make them work. @juliemr anyway you can help me with this?

Same error message and issue than @aaani, using protractor 3.2.2 and angular 1.2.29, and no browser-sync.
Failed: Angular could not be found on the page http://localhost:8000/index.html : angular never provided resumeBootstrap
'use strict';
describe( 'e2e tests', function()
{
  beforeEach(function()
  {
    browser.get('index.html');
    browser.ignoreSynchronization = true;
  });
  describe( '- Page title', function()
  {
    it( 'should have a title', function()
    {
      expect(browser.getTitle()).toEqual('Page title');
    });
  });
});

Setting browser.ignoreSynchronization = true;, or not, didn't helped.
Setting framework protrator configuration option to jasmine or jasmine2 didn't helped too.
app.js wrapped with:
window.angular && (function ( angular )
{
  'use strict';

  /**
   * @ngdoc overview
   * @name xxx
   * @description xxx
   */
  var xxx = angular.module( 'xxx', [ 'ngRoute', 'ngCookies', 'pascalprecht.translate', 'tmh.dynamicLocale', 'ngIdle' ]);
...
})( angular );

Updated Protractor to 3.2.2 (also running Angular 1.2.16) and started getting the "angular never provided resumeBootstrap" as well.
@aaani 's work-around of setting browser.ignoreSynchronization = true; has stopped the timeout issue, but it prevents the tests from running properly (and passing).

For information, as stated in https://github.com/angular/protractor/issues/3115, rolling back to protractor 3.1.1 resolved this issue.

Downgrading to Protractor 3.1.1 also solved this for me.

This issue is kind of a conglomeration of a bunch of old issues over time. I don't think it's providing any use to keep it open. For the latest issue (which was not a flake, just happened all the time), Protractor 3.3.0 should fix it. As for the BrowserSync issues, I don't have much knowledge about this and hope that their update helps.
If you are seeing a specific new issues with the latest protractor, please open up a new issue.

Thanks @juliemr, using protractor 3.3.0 worked for me.

I got the same problem. The error "angular never provided resumeBootstrap" randomly occurred. I did not change the angular and protractor version, and this problem just happened since some day. Perhaps some changes in my page caused this. I tried:

Set rootElement=html, did not work.
Downgraded Protractor to 3.1.1 or upgraded to 3.3.0, did not work.
Set longer more timeout as browser.get(url, 30 * 1000);, did not work.
I used browser.sleep(20 * 1000) before the first browser.get(), it works.
Finally I used browser.get(url).then(null,browser.get(url)); instead of the first browser.get() in my test, it works.
Hope this helps someone facing same problem.


Support/ Add LunaOne token logo/icon

📝 Description
Add logo for LunaOne token. (XLN)
Contract address (BSC/BEP20):
0xcd1c4964595701B8c129c334169CC21376bE9f47
❓ Context

Impacted projects: `` @LunaOne
Linked resource(s): ``

✅ Checklist

[ ] Test coverage
[X] Atomic delivery
[ ] No breaking changes

🚀 Expectations to reach
Please make sure you follow these Important Steps.
Pull Requests must pass the CI and be internally validated in order to be merged.

What do I enter for the "develop" area?


Memory leak while generating a lot of server side graphs

Hi,
I am generating a lot of images on server side. During the process, Node is consuming a lot of memory (~ 1.5 GB).
I am calling chartNode.destroy(), still memory is not getting released.
Does anyone knows, where else there could be a memory leak?
PFB my code:
	var ChartjsNode = require('chartjs-node');
	var chartNode = new ChartjsNode(335, 250);

	return chartNode.drawChart(chartJsOptions)
		.then(() => {
			return chartNode.getImageDataUrl('image/jpeg')
		})
		// chart is created
		// write to a file
		.then(() => {
			return chartNode.writeImageToFile('image/jpeg', 'temp/testimage' + GLOBAL_CHART_COUNT + '.jpeg')
		})
		.then((out_img) => {
			console.log(out_img)
			// chart is now written to the file path
			chartNode.destroy();
			chartJsOptions = null;
		});

Hey @varsha2409 I would check to see if something is holding on to the chartNode reference.
Often times when you see these kinds of issues it is due to a large object (like chartNode which contains a virtual DOM) that sits high in scope and never gets dereferenced for garbage collection.

Hey @sedouard  did you find anything?
I analysed the heap dump, there are many ChartElement, Chart.Controller and other Chart related objects.
I even did a force GC after every chart is created, these elements were still present.

@varsha2409 are you able to copy/paste the full context you're running this library in? I'm interested in seeing how it is repeatedly called. I suspect you are holding on to a references and thats why you're experiencing a leak.

Hey guys,
I'm still having trouble with this. Calling destroy is not removing the instance of the chartNode.
I am using v1.7.1
Any insight?
return new Promise(function (resolve, reject) {
  var chartNode = new Chart(_options.width, _options.height)

  var options = {...}

  chartNode.drawChart(options)
        .then(() => {
          if (_options.base64) {
            // if base64 was in the query then return base64 data
            return chartNode.getImageDataUrl(_options.type)
          } else {
            // else return the image buffer
            return chartNode.getImageBuffer(_options.type)
            }
        })
        .then(image => {
          resolve(image)
        })
        .finally(() => {
          chart.destroy()
        })
        .catch(error => {
          reject(error)
        })
    })

@tscritch I think u want to be destroying the chart instance in ur finally block? chartNode.destroy ?


Ignore crashes that happen on the 3rd party plugins

Fixes #1204

Codecov Report

Merging #1228 (b407262) into master (4d7d6b6) will decrease coverage by 0.55%.
The diff coverage is 94.93%.

@@            Coverage Diff             @@
##           master    #1228      +/-   ##
==========================================
- Coverage   97.28%   96.72%   -0.56%
==========================================
  Files          67       81      +14
  Lines        4235     5405    +1170
==========================================
+ Hits         4120     5228    +1108
- Misses        115      177      +62

Impacted Files
Coverage Δ

tests/test_binary.py
100.00% <ø> (ø)

httpie/compat.py
31.11% <27.90%> (-68.89%)
:arrow_down:

tests/conftest.py
77.14% <58.33%> (-9.82%)
:arrow_down:

tests/test_ssl.py
91.01% <66.66%> (-3.93%)
:arrow_down:

httpie/manager/__main__.py
82.35% <82.35%> (ø)

httpie/models.py
94.73% <83.33%> (-2.64%)
:arrow_down:

httpie/output/formatters/colors.py
92.66% <88.88%> (-0.92%)
:arrow_down:

httpie/manager/core.py
92.85% <92.85%> (ø)

httpie/manager/plugins.py
93.39% <93.39%> (ø)

httpie/cli/json_form.py
93.87% <93.87%> (ø)

... and 53 more

Continue to review full report at Codecov.

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


Why are there a lot of environment errors and cannot install application global dependencies?

🐛 Bug Report

Prerequisites

[-] I'm using the latest version of Docusaurus.
[-] I have tried the npm run clear or yarn clear command.
[-] I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
[-] I have tried creating a repro with https://new.docusaurus.io
[-] I have read the console error message carefully (if applicable)

Description
(A clear and concise description of what the bug is.)
Have you read the Contributing Guidelines on issues?
(Write your answer here.)
Steps to reproduce
Use https://new.docusaurus.io to create a CodeSandbox reproducible demo of the bug.
(Write your steps here:)

Step 1...
install template classic
Step 2...
install global dependence
Step 3...
but, set two stop work

Expected behavior
npx or yarn run serve, work well

(Write what you thought would happen.)
Actual behavior

(Write what happened. Add full console log messages and screenshots, if applicable.)
Your environment

Public source code: https://github.com/facebook/docusaurus
Public site URL: https://60ca401a0c88bd000948f46e--docusaurus-2.netlify.app/zh-CN/docs/2.0.0-alpha.73/installation
Docusaurus version used: 2.0.0-beta.6
Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): v14.10.0
Operating system and version (e.g. Ubuntu 20.04.2 LTS): mac Os catalina v10.15.7

Reproducible demo
Use https://new.docusaurus.io to create a CodeSandbox reproducible demo of the bug.
(Paste the link to an example repo, including a docusaurus.config.js, and exact instructions to reproduce the issue.)

A lot of the warnings should be cleared with #5420. Your connection doesn't seem good, maybe try using cnpm as the registry, or configure your proxy settings properly?

The warnings are not blocking you and we'll fix them (at least some of them, hard always have an empty list of warning).
The error does not seem to be a Docusarus issue


Page scroll triggered when using shaka.ui.Overlay

I’m developing a web app using React… have a page with two players.
Both players can play video as expected but, somehow, page scrolls to video when I run shaka.ui.Overlay.
Is this by design? Can this be disabled? Not sure if this is an issue or question.
Thanks for helping out!

I believe I narrowed down the culprit… looks like scroll is triggered by a call to .focus() on <button class="shaka-enable-abr-button" aria-selected="true">.

OK, very strange… bug appears to be caused by timing issue when loading custom CSS used to self-host fonts.
Importing fonts and controls.css using import (instead of using Helmet) fixed the issue.


Round did not end when all headrevs died

Description
Just had a round where both headrevs died but the round did not end and there was no message popup or central command announcemnt. Players were confused and there was a sense of round stall.
One headrev suicided <1 min into the round.
The other headrev got killed by rads and space damage.
The shuttle was already called when the last headrev died.
Neither headrev converted anyone.
Additional context
I believe that the round is supposed to end when the last headrev dies, but im not 100% sure.
The end of round screen said that it was a tie because all the headrevs died, but so did all the station heads. (Singuloose moment). The headrevs died before all station heads died.
Is there supposed to be a station message when all headrevs die or what is supposed to happen?

This issue seems to be resolved.


ieee802154: add TX retry logic to nRF5 802.15.4 shim layer

This patch series introduces a new flag to net_pkt structure, ieee802154_frame_retry.
The flag indicates that a frame transmission is being retried, which instructs the driver implementations
to skip certain modifications that may be performed on the transmitted frame.
The new flag is used in the ieee802154_nrf5 shim layer to make calls to the proper API.
The OpenThread glue layer was modified to use the new flag to indicate reattempted transmissions.

fyi: @jciupis

Rebased and added manifest to new hal_nordic which is required for this PR.


Can't run the samples, error signing output with public key

I just downloaded the source to look at the samples, but when I try to run, I get the following build error...

Severity	Code	Description	Project	File	Line	Suppression State
Error	CS7027	Error signing output with public key from file 'MrPMorris.snk' -- File not found.	PeterLeslieMorris.Blazor.Validation (netstandard2.1)	D:\blazor-validation-master\src\PeterLeslieMorris.Blazor.Validation\CSC	1	Active

Anyone able to advise? Thanks

Go to the properties page for each project,  go to signing and remove the reference to my mrpmorris key.


gvisor: 20231113.0 -> 20240216.0

Description of changes

Update gVisor to e3cf008
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[x] 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/)
24.05 Release Notes (or backporting 23.05 and 23.11 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.

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

@ofborg test gvisor

That commit message is generated by tools/go_branch.sh and  is the output from git describe --always. As-is, the latest release is 20240212.0 and the currently pinned commit in this PR google/gvisor@e3cf008ab18671c8d1f58c9a04cb971573bcb724 ought to be referred to as version 20240212.0-unstable-2024-02-16.
Unfortunately there is no one commit on the go branch that corresponds to release-20240212.0 exactly, the closest commit is google/gvisor@1796ac7f1 which includes the changes from google/gvisor@c2bcdb73a also.
I didn't realize this in #268853, I should have either pinned google/gvisor@8a880e3b2 (the correct commit for 20231113.0) or named the version 20231120.0-unstable-2023-11-20.

@ofborg test gvisor


Make Parse.User work

Fixes #9
All the code is from #10

Thanks for rebasing and getting this up to speed, chose to go a different way for the class support. I'd be happy to take something to get beforeSave working as you intended though.

Thanks for the quick turnaround.

No problem, we actually needed it ourselves so go figure :-)
On Wed, Mar 23, 2016 at 12:55 AM, Madhav Bhagat<EMAIL_ADDRESS>wrote:

Thanks for the quick turnaround.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/HustleInc/parse-mockdb/pull/23#issuecomment-200234826

I'd actually really love to get the beforeDelete stuff working, and your tests were awesome. Any chance you'd be interested in getting that part back up?


Cleaning up old containers through the API

Is there any way to properly dispose of containers when doing multiple runs? At the moment I just call del benchmark and instantiate a new one with a different seed, but it leaves a lot of dangling containers that have to be manually cleaned up with singularity instance stop -a.

Hi there. I believe calling benchmark._shutdown() should stop the instance immediately (see https://github.com/automl/HPOBench/blob/master/hpobench/container/client_abstract_benchmark.py#L481)


Automatic variables are not populated in extensionless scripts

Some automatic varialbles like $MyInvocation and $PSCommandPath are not populated when running script files that have no extension. This makes it hard to write e.g. Git hooks with PowerShell 6 as the hook file names must be extensionless by definition.
Steps to reproduce
Create a file named test with contents
[CmdletBinding()]
param()
$PSCommandPath -eq ''

Run the file
pwsh .\test
Expected behavior
Outputs False
Actual, incorrect behavior
Outputs True
Environment data
Name                           Value
----                           -----
PSVersion                      7.0.0-preview.1
PSEdition                      Core
GitCommitId                    7.0.0-preview.1
OS                             Microsoft Windows 10.0.17763
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

same here,
Name                           Value
----                           -----
PSVersion                      7.0.0-preview.1
PSEdition                      Core
GitCommitId                    7.0.0-preview.1
OS                             Linux 4.4.0-18912-Microsoft #1001-Microsoft Sat Jun 01 17:39:0…
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

This issue seems to be duplicate of https://github.com/PowerShell/PowerShell/issues/4217


Cannot delete property 'type' of #

Describe the bug
After adding nuxt-schema-org to nuxt.config, the project does not start with the error: Cannot delete property 'type' of #<Object>
Reproduction
No response
System / Nuxt Info
- Operating System: Windows_NT
- Node Version:     v20.3.0
- Nuxt Version:     3.10.3
- CLI Version:      3.10.1
- Nitro Version:    2.9.2
- Package Manager<EMAIL_ADDRESS>- Builder:          -
- User Config:      telemetry, devtools, modules, pinia, imports, vite, typescript, runtimeConfig, site, schemaOrg, routeRules
- Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>- Build Modules:    -

Thanks for the issue, sorry about this, looks like the latest release had a bug in it. Pushed up a fix now.


monkey db upgrade fails if postgresql is remote

I recently switched postgres to a separate server. Performance is much better.
However after I updated to the latest secmonkey, running a monkey db upgrade fails
error message
sqlalchemy.exc.OperationalError: (OperationalError) FATAL:  no pg_hba.conf entry for host "<IP_ADDRESS>", user "securitymonkeyuser", database "secmonkey", SSL on
FATAL:  no pg_hba.conf entry for host "<IP_ADDRESS>", user "securitymonkeyuser", database "secmonkey", ...
Is there a way I can pass the Client IP as part of the user string in the monkey db upgrade command
also does it take its configuration from config.py "SQLALCHEMY_DATABASE_URI"

It should take it's config from the SQLALCHEMY_DATABASE_URI in the config file.  I don't understand why you would be getting errors about <IP_ADDRESS> if you are using a remote DB (like postgres)

It is very strange. I originally setup SM to use a local db but I migrated it. My config.py file currently
uses this string
SQLALCHEMY_DATABASE_URI = 'postgresql://securitymonkeyuser:[redacted]@[redacted]:5432/secmonkey'
is it possible the upgrade looks at the secmonkey.env? I ran a tcpdump and I dont see any connections attempts to the remote server so is there another settings file?

Oh yeah, if you're using docker, definitely update the secmonkey.env:
https://github.com/Netflix/security_monkey/blob/develop/docs/docker.md

sorry I'm not using docker

I got some help debugging and here is what we see
for the /usr/local/src/security_monkey/migrations/env.py
we inserted a print statement
from flask import current_app
print current_app.config.get('SQLALCHEMY_DATABASE_URI')
config.set_main_option('sqlalchemy.url', current_app.config.get('SQLALCHEMY_DATABASE_URI'))

The traceback shows the URL I entered in /usr/local/src/securitymonkey/config.py is not ingested.
When I replace the string  current_app.config.get('SQLALCHEMY_DATABASE_URI') with the direct URL 'postgresql://securitymonkeyuser:[redacted]@[redacted]:5432/secmonkey' the command monkey db upgrade seems to work.
thoughts?

Closing issue. I rebuilt the front end and its all good now. I must have missed doing something.

@cplvic I seemed to have the same issue, mine says sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL:  database "<my DB name>" does not exist  (Background on this error at: http://sqlalche.me/e/e3q8)

I was able to connect to the Postgresql from my GCP instance using psql "sslmode=disable dbname=postgres user=postgres hostaddr=[INSTANCE_IP]" but every time I do monkey db upgrade it says DB not found.

@cplvic If you could share some info where I might need to pay attention for the GCP instruction would be greatly appreciated.

Am getting below error on running "monkey db upgrade" command.
File "migrations/env.py", line 57, in run_migrations_online
    connection = engine.connect()
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 2102, in connect
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 90, in __init__
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 2188, in raw_connection
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 2162, in _wrap_pool_connect
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 1476, in _handle_dbapi_exception_noconnection
  File "build/bdist.linux-x86_64/egg/sqlalchemy/util/compat.py", line 203, in raise_from_cause
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 2158, in _wrap_pool_connect
  File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 345, in unique_connection
  File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 788, in _checkout
  File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 532, in checkout
  File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 1284, in _do_get
  File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 350, in _create_connection
  File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 477, in __init__
  File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 671, in __connect
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/strategies.py", line 106, in connect
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/default.py", line 410, in connect
  File "/usr/local/src/security_monkey/venv/lib/python2.7/site-packages/psycopg2-2.7.4-py2.7-linux-x86_64.egg/psycopg2/__init__.py", line 130, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL:  Ident authentication failed for user "securitymonkeyuser"
 (Background on this error at: http://sqlalche.me/e/e3q8)


Update notes from 1.7.0 to 2.0.0 version?

I just updated to version 2.0.0 from 1.7.0 and I am having a difficult time updating my code. Can you please provide an update guide.
I am getting the following error:
Error: asking to use react router for rendering, but no routes are provided
I am providing my routes as follows:
var engine = ReactEngine.server.create({
  routesFilePath: path.join(__dirname + '/routes')
});

EDIT:
ok, I didnt check the example files, the solution was there. So, I would recommend to update the readme and specify that we first need to require the routes file. The final code looks like this:
var engine = ReactEngine.server.create({
  routes: require(path.join(__dirname + '/routes')),
  routesFilePath: path.join(__dirname + '/routes')
});

@Dindaleon added a note in Readme. thanks. https://github.com/paypal/react-engine/pull/77


UnityCam in Windows 10 UWP App not working

Hi,
i can't get UnityCam to work in a Windows 10 UWP Application.
It works in the Editor, but in the UWP-Build the streamed image remains black.
Do I have to migrate the UnityWebcam VS Project to an Universal Windows Project?
Do you have any suggestions?
I tried it in Unity 2018.4.4f1 and 2019.1.10f1 with the following Build Settings:
Target Device: Any device
Architecture: x64
Build Type: D3D Project
Target SDK Version: Latest installed
Minimum Platform Version: 10.0.10240.0
Visual Studio Version: Latest installed (2017)
Build and run on: Local Machine
Build configuration: Release
Copy References: No
Copy PDB Files: No
Development Build: No
I attached a small Testproject, so you can reproduce the problem:
UnityCamUWPTest.zip
Thanks in advance!

Hello,
Actually I never tried deploying for UWP, so not sure if the plugins are
loaded similar to x64 projects.
Can you confirm the plugin folder structure compatibility?
On Tue, Jul 16, 2019 at 4:40 PM BjoernBo<EMAIL_ADDRESS>wrote:

Hi,
i can't get UnityCam to work in a Windows 10 UWP Application.
It works in the Editor, but in the UWP-Build the streamed image remains
black.
Do I have to migrate the UnityWebcam VS Project to an Universal Windows
Project?
Do you have any suggestions?
I tried it in Unity 2018.4.4f1 and 2019.1.10f1 with the following Build
Settings:
Target Device: Any device
Architecture: x64
Build Type: D3D Project
Target SDK Version: Latest installed
Minimum Platform Version: 10.0.10240.0
Visual Studio Version: Latest installed (2017)
Build and run on: Local Machine
Build configuration: Release
Copy References: No
Copy PDB Files: No
Development Build: No
I attached a small Testproject, so you can reproduce the problem:
UnityCamUWPTest.zip
https://github.com/mrayy/UnityCam/files/3395843/UnityCamUWPTest.zip
Thanks in advance!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mrayy/UnityCam/issues/8?email_source=notifications&email_token=AAVMIJS7NUP43YDFR62AOY3P7V3OHA5CNFSM4ID57OX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G7MWQFQ,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAVMIJXS7W7R4YH4G7L5CC3P7V3OHANCNFSM4ID57OXQ
.

--
MHD Yamen Saraiji, Ph.D.
Graduate School of Media Design, Keio University
Project Senior Assistant Professor.
〒223-8526 神奈川県横浜市港北区日吉4-1-1 慶應義塾協生館 KMD
Telephone: +81 080 3442 5775
website: http://myamens.com/


Documentation on adding default pages in a data migration

It would be great if there was an example somewhere of creating pages via a data migration.
Here's my attempt point97/marco-portal2/initial_data/migrations/0001_create_ocean_stories_container.py
It is deficient in that the URL doesn't get set. As a workaround I set live = False, so that the URL gets set on publish. There may be other data consistency issues which I haven't bumped into yet.
Improvements to this approach?

Bumping this issue, as this seems to touch on a generally ubiquitous feature of data migrations that has increased complexity and difficulty in page creation.
From my perspective, the crux of the situation is the conflict between proper page creation in Wagtail having a dependency on python code and the apps module that should be used in migrations does not retrieve python code in the historical models it returns.
For example, the MP_Node class that Page inherits from has this sentence in its documentation:

Do not change the values of path, depth or numchild directly: use one of the included methods instead. Consider these values read-only.

This is a deep concern when creating pages in a migration since all three fields are critical for page hierarchy association, and therefore page creation.
The workaround here is to mirror how these fields are set in our own code, but that's ill-advised for numerous reasons. Or to reuse the values of these fields from models that already exist but that still leaves out the possibility for new depths and paths.
Does anyone have an opinion on page creation via migrations (or someway else)? Is this even reasonably doable?

@kurtrwall For the reasons you have listed, we do not create pages in migrations. Instead we have management commands - one for creating the base site skeleton of required pages, and another that makes some random test pages. As they are management commands, they have full access to the proper models.
We try and keep the site skeleton management command idempotent with respect to existing data, so that running it multiple times as the project grows will have the same effect as running it on a new database. This does take extra work compared to migrations, and kind of duplicates the work of a migration, which is unfortunate.
I've not come up with a better solution. If anyone has a better idea, I would also love to hear it.

Idle thought - could we perhaps provide some helper functions for doing tree operations, that live outside of the Page class and are thus usable with the 'barebones' Page model that's available inside migrations? Something like:
from wagtail.wagtailcore.utils import tree_ops

def insert_pages(apps, schema_editor):
    Page = apps.get_model('wagtailcore.Page')
    homepage = Page.objects.get(url_path='/home/')
    new_page = Page(title='new page')
    tree_ops.add_child(homepage, new_page)

As far as I recall, most of the heavy lifting in django-treebeard happens outside the mixin in dedicated classes like AddChildOperation, so we could probably piggyback on those.

@gasman That would be extremely useful. We've tried to create some functions internally to do this kind of thing programmatically, but are probably going to go back to the external script approach that @timheap describes. It'd be great if page creation through data migrations were possible especially given how Django seems to be preferring them over fixtures.
One limitation we've run into is creating revisions in migrations. Creating new page objects isn't too bad, although there is some trickiness around determining the right path to use for a new page and modifying numchild on the parent. But creating revisions is harder, mainly because of how save_revision uses [an internal call to to_json] (https://github.com/torchbox/wagtail/blob/master/wagtail/wagtailcore/models.py#L681) that isn't available in migrations.

Working workaround:
http://www.agilosoftware.com/blog/django-treebard-and-wagtail-page-creation/
Checked on wagtail 1.7

@evgeny-popov unfortunately this solution is not working in certain conditions (I already edited the blog post to warn readers). We're working on another patch and we'll update the blog post as soon as possible.


Error installing apache

I have got error during apache installation

P.S. I have retried it twice
Thanks

Please run scoop update and scoop install apache again. 😄

@r15ch13

I have got this error since yesterday but I forgot to mention about it, I think I still don't get the correct app's manifest including the apache

the git command shown below solve my problem on scoop update, after that everything is going just fine
problem solved
cd %UserProfile%\scoop\buckets\versions
git reset --hard FETCH_HEAD

I had that as well actually. Hmmm
On Wed, 1 Mar 2017, 17:14 Kongthap Thammachat<EMAIL_ADDRESS>wrote:

the git command shown below solve my problem on scoop update, after that
everything is going just fine
problem solved
cd %UserProfile%\scoop\buckets\versions
git reset --hard FETCH_HEAD
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/lukesampson/scoop/issues/1355#issuecomment-283254662,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA0QghoAdUE2zSJSod9Rjgp4eMSbyOsjks5rhQzOgaJpZM4MODAg
.

That's my fault, i messed up the line endings for those files... A hard reset like jeud mentioned or removing and adding the versions bucket should fix it.


Add etcd3 store backend

Adds support for etcd3 APIs.
Add store-backend switch to allow merlin to be configured to use
the existing etcd2 or the new etcd3 store backend. Defaults to etcd2.

sorry @danbreed just realized there is no entry on the changelog.

The README can be updated too as etcd3 is listed as a Remaining feature


Theming issues

I changed the colors, but the material for version 3 is slightly different. So, I added inline code to simulate the old behavior.
It's not exactly the same, but it's very close.
If it is good, you can fine-tune the colors.

The inline code for each page seems unnecessary and it bogs down the codebase. I think what you want to do is just change the thumb colour for both switches in to blue and that should be enough. I'm good with it being different, i liked the old switches but it is what it is i guess

I like the old one too

Thanks for the review


adding duckduckgo component in empty new project crashes the application...

javascript on browser console is showing following error, when duckduckgo component is added to the new project.
index-ef80b085.js:983 TypeError: Cannot read properties of undefined (reading 'template')
at GenericNode.reactExports.useEffect.Gr (index-ef80b085.js:3655:11861)
at Qj (index-ef80b085.js:983:26401)
at Hk (index-ef80b085.js:983:46167)
at Wk (index-ef80b085.js:983:44863)
at Pk (index-ef80b085.js:983:43823)
at Ek (index-ef80b085.js:983:40115)
at jg (index-ef80b085.js:981:3468)
at index-ef80b085.js:983:37247
overrideMethod @ console.js:273
Li @ index-ef80b085.js:983
Qi.ot.componentDidCatch.tt.callback @ index-ef80b085.js:983
sh @ index-ef80b085.js:981
kk @ index-ef80b085.js:983
ik @ index-ef80b085.js:983
hk @ index-ef80b085.js:983
Wk @ index-ef80b085.js:983
Pk @ index-ef80b085.js:983
Ek @ index-ef80b085.js:983
jg @ index-ef80b085.js:981
(anonymous) @ index-ef80b085.js:983
Show 1 more frame
Show less

@dosu, thank you for your quick response.
I was trying to just use the UI to build a simple usecase.
I am not sure where below code need to be added? can you help with that?
Regards,
Aditya

From: dosubot[bot] @.>
Sent: Saturday, June 1, 2024 3:24 PM
To: langflow-ai/langflow @.>
Cc: Aditya Kulkarni @.>; Mention @.>
Subject: Re: [langflow-ai/langflow] adding duckduckgo component in empty new project crashes the application... (Issue #2042)
Hello, @aditya-altometahttps://github.com/aditya-altometa! I'm here to assist you with any bugs, questions, or contribution guidance while you wait for a human maintainer. Let's tackle this together!
To resolve the issue where adding the DuckDuckGo component to a new, empty project crashes the application with a TypeError: Cannot read properties of undefined (reading 'template') in the browser console, you need to ensure that the templates object is properly initialized and passed down to the component.
Here is a possible solution:

Ensure that the templates object is properly initialized in your context provider.
Make sure that the TemplateContextType is correctly implemented and used in your component.

Here is an example of how you can initialize and provide the templates object:
import React, { createContext, useState, useContext } from 'react';
// Define the template object
const template: { [char: string]: string } = {};
// Define the context type
export type TemplateContextType = {
templates: typeof template;
setTemplates: (newState: {}) => void;
};
// Create the context
const TemplateContext = createContext<TemplateContextType | undefined>(undefined);
// Create a provider component
export const TemplateProvider: React.FC = ({ children }) => {
const [templates, setTemplates] = useState(template);
return (
<TemplateContext.Provider value={{ templates, setTemplates }}>
{children}
</TemplateContext.Provider>
);
};
// Custom hook to use the TemplateContext
export const useTemplateContext = () => {
const context = useContext(TemplateContext);
if (!context) {
throw new Error('useTemplateContext must be used within a TemplateProvider');
}
return context;
};
Then, wrap your application with the TemplateProvider:
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { TemplateProvider } from './path/to/TemplateProvider';
ReactDOM.render(

,
document.getElementById('root')
);
Finally, use the useTemplateContext hook in your component to access the templates object:
import React from 'react';
import { useTemplateContext } from './path/to/TemplateProvider';
const DuckDuckGoComponent: React.FC = () => {
const { templates } = useTemplateContext();
// Your component logic here
return (

{/* Render your component */}

);
};
export default DuckDuckGoComponent;
By ensuring that the templates object is properly initialized and provided, you should be able to resolve the TypeError: Cannot read properties of undefined (reading 'template') issue [1]https://github.com/logspace-ai/langflow/blob/dev/src/frontend/src/types/templatesContext/index.ts.
To continue talking to Dosuhttps://dosu.dev, mention @dosuhttps://github.com/dosu.
—
Reply to this email directly, view it on GitHubhttps://github.com/langflow-ai/langflow/issues/2042#issuecomment-2143385945, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BCKKA7VKT2MIPME6HQPILC3ZFGK4NAVCNFSM6AAAAABIUAQWQOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTGM4DKOJUGU.
You are receiving this because you were mentioned.Message ID: @.***>

Hello,
Sorry for the delay. Did you try using the new version? Does the error still persist?

Hi @aditya-altometa ,

I hope you're doing well. Just a friendly reminder that if we do not hear back from you within the next 3 days, we will close this issue. If you need more time or further assistance, please let us know.
Thank you for your understanding!

Thank you for your contribution! This issue will be closed. If you have any questions or encounter another problem, please open a new issue and we will be ready to assist you.


http: Batch Events from HTTP Request and Response

Simple implementations of NewEventsFromHTTPRequest and NewEventsFromHTTPResponse as a step towards providing some support for application/cloudevents-batch+json.
This doesn't help with batch sending of Events, but this provides some basics of being able to process batch requests and/or responses from standard Go HTTP handling.
This could be improved over time (See previous work on #301) as well, but optimised for having something that works to start, rather than implementing big design changes.
Signed-off-by: Mark Mandel<EMAIL_ADDRESS>

How does someone send a batch with this change? I feel like I'm missing something (but it could be me :-) ).

doi never mind - I just reread your origin post.

@lionelvillard any thoughts on this?
Will this feel incomplete w/o the sending side?

Will this feel incomplete w/o the sending side?

Thankfully sending of JSON HTTP batch events is quite straightforward if someone wanted to do it by hand  -- but Client seems very coupled to singular events, so I couldn't see an easy way to extend it to handle multiple events without breaking every implementation of the Client interface, and having massive changes.
What I could do - which is inline with the utility package, is add a NewHTTPRequestFromEvents(ctx context.Context, url string, events[]Events) *http.Request function, which would spit out a http.Request object that would send batched events, that the end user could use with their own http client as they so desired.
So an end user could do something like:
var events []event.Event
event :=  cloudevents.NewEvent()
event.SetSource("example/uri")
event.SetType("example.type")
event.SetData(cloudevents.ApplicationJSON, map[string]string{"hello": "world"})

events := append(events, event) // repeat multiple times

request := NewHTTPRequestFromEvents(context.Background(), "http://mywebsiteaddress", events")
client := http.Client{}
resposne, err := client.Do(request)
// do something with the response and error.

Pretty easy addition, and allows for sending as well as recieving.
WDYT?

Actually, looking at this, I really like the idea of having a NewHTTPRequestFromEvents (and probably a NewHTTPRequestFromEvent (singular), because if you pair that with NewEventFromHTTPResponse - if the batch event endpoint returns a batched event, you can easily parse this as well.
Basically you can escape the Client if you need to break the glass for whatever reason, which is not a bad thing!

Actually, I like the idea of NewHTTPRequestFromEvents so much, I implemented it -- so now you can send batched events!

Have you considered having NewHTTPRequestFromEvents also handling single, non-batched events? It feels wrong that the caller must look at in the request headers what's the content mode to determine whether to call NewHTTPRequestFromEvents or NewHTTPRequestFromEvent.

Have you considered having NewHTTPRequestFromEvents also handling single, non-batched events?

Hmnn.. that's an interesting question 🤔
My thinking in this part of the library was to give people the low level building blocks they needed to put together what they needed to parse data as they needed. In which case, checking the Content-Type header seems like the appropriate thing to if they wanted a singular endpoint to handle either batch or singular events.
I'd honestly also assumed people would have specific endpoints to handle singular and a different endpoint to handle batched events -- but I could definitely be wrong with that assumption.
Also assumed that people may only want to accept either singular/batched -- so didn't want to bake in any higher level abstractions.
A good middle ground might something like adding a  func IsRequestBatch(req http.Request) bool and func IsResponseBatch(req http.Response) bool which makes checking the header easy if people want to combine parsing logic into a singular endpoint. WDYT?

func IsRequestBatch(req http.Request) bool and func IsResponseBatch(req http.Response) bool seems like a great addition to me. +1

Done!
I ended up at IsHTTPBatch(header nethttp.Header) bool since both http.Request and http.Response both use the same http.Header type, so I figured it made sense to just check that value.

Just gently bumping this PR, see if it's good to merge now?

LGTM
@embano1 @duglin wanna take a quick look at this one?

Nice work @markmandel! Since you added a bit of code, would be nice to see a coverage report here. IMHO currently you don't have all code paths covered with tests.

Nice work @markmandel! Since you added a bit of code, would be nice to see a coverage report here. IMHO currently you don't have all code paths covered with tests.

Thanks for the detailed feedback! I'll jump on it.

Okay! I think this is good to re-revue. Implements everything that I didn't have questions for.
As requested, coverage report. I ran it in my IDE and plugged all the holes I could find, which also corresponded to fixing several of the review comments, as well as some other paths as well.
❯ go test -cover  ./...
?       github.com/cloudevents/sdk-go/v2        [no test files]
ok      github.com/cloudevents/sdk-go/v2/binding        0.028s  coverage: 64.8% of statements
ok      github.com/cloudevents/sdk-go/v2/binding/buffering      0.023s  coverage: 81.0% of statements
ok      github.com/cloudevents/sdk-go/v2/binding/format 0.021s  coverage: 87.0% of statements
ok      github.com/cloudevents/sdk-go/v2/binding/spec   0.014s  coverage: 79.7% of statements
?       github.com/cloudevents/sdk-go/v2/binding/test   [no test files]
ok      github.com/cloudevents/sdk-go/v2/binding/transformer    0.025s  coverage: 85.4% of statements
ok      github.com/cloudevents/sdk-go/v2/binding/utils  0.017s  coverage: 77.8% of statements
ok      github.com/cloudevents/sdk-go/v2/client 6.033s  coverage: 72.5% of statements
ok      github.com/cloudevents/sdk-go/v2/client/test    0.023s  coverage: 67.4% of statements
ok      github.com/cloudevents/sdk-go/v2/context        0.020s  coverage: 65.4% of statements
ok      github.com/cloudevents/sdk-go/v2/event  0.011s  coverage: 89.3% of statements
ok      github.com/cloudevents/sdk-go/v2/event/datacodec        0.019s  coverage: 100.0% of statements
ok      github.com/cloudevents/sdk-go/v2/event/datacodec/json   0.019s  coverage: 100.0% of statements
ok      github.com/cloudevents/sdk-go/v2/event/datacodec/text   0.013s  coverage: 88.9% of statements
ok      github.com/cloudevents/sdk-go/v2/event/datacodec/xml    0.011s  coverage: 100.0% of statements
ok      github.com/cloudevents/sdk-go/v2/extensions     0.015s  coverage: 70.3% of statements
?       github.com/cloudevents/sdk-go/v2/observability  [no test files]
ok      github.com/cloudevents/sdk-go/v2/protocol       0.027s  coverage: 61.5% of statements
ok      github.com/cloudevents/sdk-go/v2/protocol/gochan        0.051s  coverage: 45.0% of statements
ok      github.com/cloudevents/sdk-go/v2/protocol/http  6.046s  coverage: 69.3% of statements
ok      github.com/cloudevents/sdk-go/v2/protocol/test  0.040s  coverage: 54.9% of statements
ok      github.com/cloudevents/sdk-go/v2/test   0.012s  coverage: 47.6% of statements
ok      github.com/cloudevents/sdk-go/v2/types  0.008s  coverage: 89.1% of statements

Just gently bumping the PR, to see if there are any additional changes you would like made?

LGTM but I defer to @lionelvillard for the final decison

I added a small comment.

@markmandel
Can we extend this to the type Client interface.
we have
// Send will transmit the given event over the client's configured transport.
Send(ctx context.Context, event event.Event) protocol.Result

would like to have the following added.
// Send will transmit the given event over the client's configured transport.
SendEvents(ctx context.Context, events []event.Event) protocol.Result

I build out an http protocol where I add ApiKey, basicauth, bearer token stuff and pass it to.
	c, err := cloudevents_sdk_go.NewClient(p, cloudevents_sdk_go.WithTimeNow(),
		cloudevents_sdk_go.WithUUIDs(),
	)


Update version to 1.2.3

@r0h4n , @gnehapk , @nthomas-redhat , @shtripat , Please review

@TimothyAsir dude, create a release/1.2.3 branch and follow the branching/tagging process as done for other tendrl components


Check constructor accessibility

Check if the constuctor's accessibility allows extending the class to avoid a compiler error in generated code.

Also use the new origin facility for the error message: error source is the class that cannot access the constructor, origin is the inaccessible constructor.


Infer plugin name from Tauri plugin

Right now it's taken in a string provided by the user but can we maybe PR to Tauri to expose an API for us to capture it? Idk, worth a try but not a major issue.

I don't think we can do this without being in-charge of creating the builder which is problematic because you can only have one .setup which we would need to hyjack to register events.


<EMAIL_ADDRESS>

Coverage remained the same at 63.805% when pulling 885550d14b3d4f64761c528f6edd23514051b85a on<EMAIL_ADDRESS>into 924544f6c206b669a41fb13d4d43bac8996a1e4a on master.


Bug fix/v8 context cleanup

Scope & Purpose
Make the creation of V8 contexts less intrusive, by deferring their state setup AQL queries to later.
In addition, this PR adds several new startup options that allow toggling of several JavaScript related features.
This is still work in progress.

[x] :hankey: Bugfix
[x] :pizza: New feature
[x] :hammer: Refactoring
[ ] :book: CHANGELOG entry made
[ ] :muscle: The behavior in this PR was manually tested
[ ] :computer: The behavior change can be verified via automatic tests

Backports:

[ ] No backports required
[ ] Backports required for: (Please specify versions)

Testing & Verification

[ ] This change is a trivial rework / code cleanup without any test coverage.
[ ] This change is already covered by existing tests, such as (please describe tests).
[ ] This PR adds tests that were used to verify all changes:

[ ] Added Regression Tests
[ ] Added new C++ Unit Tests
[ ] Added new integration tests (i.e. in shell_server / shell_server_aql)
[ ] Added new resilience tests (only if the feature is impacted by failovers)

Obsoleted by https://github.com/arangodb/arangodb/pull/12771 and https://github.com/arangodb/arangodb/pull/13354

Obsoleted by https://github.com/arangodb/arangodb/pull/12771 and https://github.com/arangodb/arangodb/pull/13354


scripts/updatedep: work around 'testify/assert', remove 'etcd-top'

'glide vc --no-tests' flag removes 'testify/assert' deps
in v2 client. Until we deprecate v2 tests, just copy the
necessary files as workaround.
And remove all legacy packages in glide.yaml on sub-dependency.
They were added when we migrated from godep. glide will handle
it automatically with glide.lock file.
And remove '--skip-tests' flags in case we add dependencies
in test files.
/cc @xiang90 @heyitsanthony

@xiang90 @heyitsanthony All fixed. PTAL.
According to current glide.lock in master branch, the testify/assert wasn't vendored correctly (version string is empty in glide.lock). Think the version was missing when we first migrated off from godep, and somehow we were running the old version of testify, which works fine as well.
Now that testify/assert is correctly vendor-ed, glide picks up testify/assert's sub-dependencies, which is why this PR has +6k LOC changes in this PR. They will eventually disappear when we deprecate v2.

@heyitsanthony @xiang90 @fanminshi
I would like to get this merged before we do grpc dependency bump up. Otherwise current vendor script needs manual reverting work.
I removed dependencies in tools/etcd-top since we only partially vendors anyway with pcap removed.
Any objection?

seems like etcd-top is more trouble than it's worth if it even needs a glide workaround; I'm fine with getting rid of it at this point

Yeah... is there any way that we can have this outside of etcd? This is blocking our CI and vendoring work.
Defer to @xiang90 @spacejam (original author)

@spacejam We are dropping etcd-top to move forward on CI issues.
Please let us know if you have any other concerns. Thanks.


node Buffer can be constructed from ArrayBuffer and Uint8Array

Also provide declaration for new Buffer.from() which along with Buffer.alloc() is to replace the constructor

you'll need to re-record the node tests (or I can do it when I merge if you want)
./runtests.sh bin/flow node_tests  # will fail
cp tests/node_tests/*.{out,exp}
./runtests.sh bin/flow node_tests  # will pass now

just also saw https://github.com/facebook/flow/pull/1978 which adds Buffer.from but not ArrayBuffer/Uint8Array. I'm going to take that one first

just also saw #1978 which adds Buffer.from but not ArrayBuffer/Uint8Array. I'm going to take that one first

Ah, fair point. I'll rebase and see if I still need to do anything here.

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!


Add EnvoyFilter for authenticating workspaces

Example EnvoyFilter derived from tests with a different auth API (untested).
There should be an API endpoint exposed that uses IsAuthorized to check if "create" is allowed for StatefulSet resources.
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: istio-ingress-gateway-auth
  namespace: istio-system
spec:
  filters:
  - listenerMatch:
      portNumber: 443
      listenerType: GATEWAY
    filterName: envoy.lua
    filterType: HTTP
    insertPosition:
      index: FIRST
    filterConfig:
      inlineCode: |
        function get_value(keyvaluepairs, key)
          for value in string.gmatch(keyvaluepairs, key .. "=([^;]*)") do
            return value
          end
        end

        -- Called on the request path.
        function envoy_on_request(request_handle)
          print("Start call to auth.")

          local id_token = nil
          local cookies = request_handle:headers():get("cookie")
          if cookies ~= nil then
            id_token = get_value(cookies, "auth-token")
          end

          local headers =  {
            [":method"] = "HEAD",
            [":path"] = "/apis/v1beta1/auth/token",
            [":authority"] = "onepanel-core.onepanel.svc.local",
            ["x-original-method"] = request_handle:headers():get(":method"),
            ["x-original-authority"] = request_handle:headers():get(":authority"),
            ["x-original-uri"] = request_handle:headers():get(":path")
          }

          if id_token ~= nil then
            headers["authorization"] = "Bearer " .. id_token
          end

          local response_headers, response_body = request_handle:httpCall(
              "outbound_.80_._.onepanel-core.onepanel.svc.cluster.local",
              headers,
              "",
              5000
          )

          if tonumber(response_headers[":status"]) ~= 200 then
            print("Not authorized.")
            request_handle:respond(
              {[":status"] = response_headers[":status"]},
              response_body
            )
          end
        end

[WIP]
To Test

The following branches are used
https://github.com/onepanelio/manifests/pull/54
https://github.com/onepanelio/core-ui/tree/feature/api.updates
https://github.com/onepanelio/core/pull/176

You should spin up an Azure cluster.
Init the cli, using local manifests as source.

Use provider aks, as outlined in core docs

Deploy to Azure with namespace A
Deploy again with namespace B
Change the core and core-ui images

Core image: 1.0.0-beta.13
Core UI image: 1.0.0-beta.alex

You should have a working cluster with EnvoyFilter active.
You will need to login.
Login with your first namespace, use opctl auth token to get the token (using CLI).


onSaveRequest never called

There's no way to trigger the onSaveRequest method of MyAutofillService or at least it's not clear how to trigger that action. I used Android Emulator with Android O.

Thanks for reporting; this is fixed on the beta update today.


Create database seeders accordingly

Create database seeders from the models at /app/Models

Please assign me the issue


Use ldap2pg to manage roles without 'owning' the database

This is half bug report / half feature request.
I'd like to configure ldap2pg to connect with a role that doesn't own the database, instead opting to grant it admin over the managed roles (this is a PG >= 16 feature).
For example
CREATE ROLE role_admin WITH LOGIN CREATEROLE;
GRANT CONNECT ON DATABASE mydatabase TO role_admin WITH GRANT OPTION;
GRANT reader, editor TO role_admin WITH ADMIN TRUE, SET FALSE, INHERIT FALSE;

I'd expect in this case, ldap2pg would be able to manage the reader and editor roles, but it fails with default database not listed:
https://github.com/dalibo/ldap2pg/blob/43c2f11df63e92aa342276cf1281172ae0b946ba/internal/inspect/stage1.go#L76
https://github.com/dalibo/ldap2pg/blob/master/internal/inspect/sql/databases.sql
ldap2pg did succeed after I granted role_admin the datdba role, but I'd prefer to operate at the lowest level of privilege possible.
Is this something the project would consider supporting?

Hello @burleight
Did you tried to overwrite databases.sql in yaml ?
postgres:
  databases_query: |
    SELECT ...

Hi @bersace ,
I've just tried that. No luck:
msg="Inspecting managed databases." config=databases_query
msg="Executing SQL query:\nSELECT datname FROM pg_catalog.pg_database WHERE datname = 'mydatabase' ORDER BY 1;"
msg="Inspecting database owners."
msg="Executing SQL query:\nSELECT datname, rolname\nFROM pg_catalog.pg_database\nJOIN pg_catalog.pg_roles\n  ON pg_catalog.pg_roles.oid = datdba\n  -- Ensure ldap2pg can reassign to owner.\nWHERE pg_has_role(CURRENT_USER, datdba, 'USAGE')\nORDER BY 1;\n"
msg="Closing Postgres global connection." database=mydatabase
msg="Fatal error." err="databases: default database not listed"

The first query is in the yaml as postgres.databases_query, but the second query appears to be hard-coded. It would help if I could override this in the yaml


Fixes/nographics off by default

Changes

...

Related Issues

...

Related PRs

...

Successful Workflow Run Link
PRs don't have access to secrets so you will need to provide a link to a successful run of the workflows from your own
repo.

...

Checklist

[x] Read the contribution guide and accept the
code of conduct
[ ] Docs (If new inputs or outputs have been added or changes to behavior that should be documented. Please make a PR
in the documentation repo)
[ ] Readme (updated or not needed)
[ ] Tests (added, updated or not needed)

Sorry... I hate githubs merge thing.  Didn't mean to create this.

No problem at all :)


Error when attempting to view data within a folder rather than specific feed

When  double-clicking a folder that contains more than one feed with the intention of viewing data from multiple feeds, an alert pops up, saying "Expected single value".

Fixed as part of #1500


Export-Excel AutoSize not working correctly for some columns

I unfortunately cannot provide the full code however I'll provide as much as I can.
I am feeding the output of a Invoke-Sqlcmd query to Export-Excel as such:
 "Invoke-sqlcmd query" | Export-Excel -Path "$DesktopPath\Result.xlsx" -Append -AutoSize -BoldTopRow
I have 3 fields that I export, "Study Description", "Study Date" and "Report Time".
The study description field scales correctly, however the "Study Date" and "Report Time" fields do not, and result in hashes in the result field, as the column is too short.

Note that Study Description field is "General" format while both Study Date and Report Time fields are "Custom" format.
When I double click it in Excel, the width changes from 13.29 to 15.14 and the text is displayed correctly.
Not sure if this is an issue with my command or something else, however would appreciate any feedback.

ImportExcel makes best efforts for auto sizing. For dates/times the xlsx that gets created is before it renders in Excel. Use Set-ExcelRange after the xlsx is exported and you can use the -Width parameter to handle that better.

Seems that Set-ExcelRange with the -Width parameter was exactly what I needed!
Thanks very much!


Scraper Tests hiding failures on Python 2.7.

Scraper tests are failing yet not failing the tests on Python 2.7, masking some old syntax errors like print statements and old-style exception statements.

I've also noticed issues in juriscraper/sample_caller.py running p3.  They are pretty simple to fix, and I started to do it, but then got into the string_utils nest of issues, which I know someone else is working on.  I can look at sample_caller if need be, just let me know.  Or you can run a quick test with the scraper I am about to push:
(from p3 virtualenv)
python juriscraper/sample_caller.py -c opinions.united_states.state.nyag --backscrape

Just getting around to running that command. Definitely fails on my machine in Python 3.6 due to urllib2 changes. Seems that file isn't Python3 ready. Going to poke at it now.

Guessing we can close this?

I believe so.

Awesome!
Sent from a phone

On Feb 17, 2017, at 10:19 AM, Dave Voutila<EMAIL_ADDRESS>wrote:
Closed #175.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.


[MLIR] Enzyme-driven gradients

Context: The current gradient architecture does not support exact computation of hybrid programs with classical postprocessing or multiple QNodes.
Description of the Change: A reworking of Catalyst's gradient architecture to be driven by Enzyme. Quantum functions are split into their purely classical preprocessing and quantum parts as before, but now the differentiation of the end-to-end circuit is done by Enzyme with registered quantum gradients as custom gradients.
Overview of changes

Implement a splitting transformation that updates the hybrid computation graph such that QNodes are split into two functions, a .preprocess function that contains the classical preprocessing (just like the argmap function) and the .quantum function that contains the actual quantum computation. The .preprocess function ends in a call to the .quantum function, meaning it can replace QNodes and leave the hybrid graph connected.

This assumes that, like PennyLane, a QNode must end in one or more measurements and cannot contain postprocessing.

GradOps are lowered to one or more BackpropOps of the entire hybrid computation (one for each result entry)
Custom gradients are registered for the .quantum split out QNodes.
Modify EinsumLinalgGeneric to support both memref args (in addition to tensor args) and dynamic shapes. This is used in the custom gradient of quantum functions.
The differential lowerings for adjoint and parameter shift differentiation now operate on individual QNodes instead of GradOps.

There are also attributes used to connect the quantum gradients (.qgrad, .adjoint) to the custom gradients across both the lower-gradients and convert-gradient-to-llvm passes.

The frontend verification is modified to allow for non-QNode callees of catalyst.grad functions while also preserving the same verification as before (return value of a QNode with diff_method="adjoint" must be an expval, etc)
A bugfix within the runtime to prevent an error because the circuit is run twice with the adjoint method.

The important implementation quirks are documented on Notion.
Benefits: This new architecture supports differentiation of circuits with classical postprocessing, hybrid programs with multiple QNodes, and purely classical programs.
[sc-41364]
[sc-41375]
[sc-42856]

This is great work @pengmai! Super excited to have it in 🎉
A quick question: will we also need to update https://docs.pennylane.ai/projects/catalyst/en/latest/dev/quick_start.html#calculating-quantum-gradients?

Thanks Josh!

A quick question: will we also need to update https://docs.pennylane.ai/projects/catalyst/en/latest/dev/quick_start.html#calculating-quantum-gradients?

This PR should be totally backwards compatible and thus the quick start shouldn't require any changes to work, unless you wanted to highlight the new features.

Thanks for the overview in the description, very helpful 💯


Update the metrics library

@nsauro @byxorna @Primer42 @DanSimon

metrics-reporter-config will also need to be updated when going from 2.x-->3.x

I discarded this commit, will redo it once I think of a better way, not convinced this was done right.


[FEATURE REQUEST] Allow ability to remove extra space after end of carousel when loop={false}

Is your feature request related to a problem? Please describe.
Trying to use a carousel without a loop results in a blank space after the last slide. The final slide is pushed all the way to the start of the carousel space available, creating extra space at the end.
Describe the solution you'd like
Allow the ability to remove the blank space after the final slide as needed, and/or end the carousel scroll once the last slide is fully in view.

Any new on this one? @dohooo

So you're saying that when you swipe to the last slide, you don't need the bounce effect anymore?

@dohooo sorry for bothering, but can you give us any update if there will be any work around this issue?

https://user-images.githubusercontent.com/32405058/193538708-14d762b1-b3b2-4cd3-a3ef-d7b6d12a1560.mov
Do you mean that you don't want this extra space when sliding to the last item?

I have no idea about this, But I'll think about it ASAP.

This would be actually super necessary, isn't there a way to do it without recoding any thing ?
Like playing with windowWidth ?

+1


docs: add missing homepage/repo in published package

while receiving an update from Renovate, I noticed that Tempo does not have the expected hyperlink on the package name and that is because the homepage and repo info are missing in the package.json

Ah! thank you 🙏


Adds option to save on focus out

Adds the ability to make the component save on focus out. This in turned off by default but can be turned on by setting the value saveOnFocusOut to true.
for example:
{{ember-inline-edit
  value=(readonly value)
  onSave=(action 'onSave')
  saveOnFocusOut=true
}}

@langens-jonathan thank you! this looks great.


Update litepaper.md

update with minor typos
updated from "containerd" to "containers" at the GenAI Agent Network page.

Hello, I am a PR summary agent on flows.network.
It could take a few minutes for me to analyze this PR. Relax, grab a cup of coffee and check back later. Thanks!

Hi @panditdhamdhere
Thanks for your PR. Containerd is another container runtime, so it's not a typo here. https://containerd.io/

Thanks for the other PRs. Since it's not a typo, I will close this PR.

alright Thank you @alabulei1 🙏🏽


After 4 month: "[Errno 111] Connection refused"

Hi,
your script has worked like a charm for multiple month. Since yesterday I noticed missing updates in HomeAssistant.
sma2mqtt 'restarts' itself every minute (and has been doing so).
When starting manually it seems like the http interface is not responding? https to the WebUI works fine, but I would not know how to restart the WebServer in the SMA w/o a full powercyle, which I would like to avoid.
I'm not aware if this is due to an SMA update breaking functionalliy - or the service hanging inside the SMA inverter.
Have you seen such behavior? Any clue to to recover? I'll stop the script overnight and see if recovery happens.
 /usr/bin/python3 /sma2mqtt/sma2mqtt.py
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 203, in _new_conn
    sock = connection.create_connection(
  File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
    raise err
  File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 73, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

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

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 790, in urlopen
    response = self._make_request(
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 496, in _make_request
    conn.request(
  File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 395, in request
    self.endheaders()
  File "/usr/lib64/python3.10/http/client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.10/http/client.py", line 1037, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.10/http/client.py", line 975, in send
    self.connect()
  File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 243, in connect
    self.sock = self._new_conn()
  File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 218, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f856807cd60>: Failed to establish a new connection: [Errno 111] Connection refused

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

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 844, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 515, in increment
    raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Max retries exceeded with url: /api/v1/token (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f856807cd60>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/sma2mqtt/sma2mqtt.py", line 62, in <module>
    x = requests.post(loginurl, data = postdata, timeout=5)
  File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 115, in post
    return request("post", url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Max retries exceeded with url: /api/v1/token (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f856807cd60>: Failed to establish a new connection: [Errno 111] Connection refused'))

Could you try https instead of http?

Yes, did that but didn't mention, sorry:
This one works:
https://<IP_ADDRESS> ->
https://<IP_ADDRESS>/webui/Plant:1/dashboard

This one just runs into a timeout:
https://<IP_ADDRESS>/api/v1/token
No webpage was found for the web address: https://<IP_ADDRESS>/api/v1/token

urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)

This one feels familar (invalid certificate when pointing the script to https) - maybe i worked around that last time & the container got rebuild... ? I'll try to work around the certificate issue tonight.

Yes - issues seems my old brain:

http:// is not responding, when changing your script to https:// it (=Linux) complains about the private signed certificate
I hacked that ( requests -> verify=False ) and get updates again
I'll look for 'the real' way of importing the certificate & post my 'solution' here

Talking to myself & your attention helped - thanks!

I can confirm that I now also have the error. Maybe an update of the firmware by SMA.
I'll have a look at it in the next few days.

SSL/TLS checks deactivated.
Not a great solution, but acceptable for me for connections in the local network.


Changing references to Vert.x Maven Plugin

Reference the Vert.x Maven Plugin as Eclipse Vert.x Fabric8 Maven Plugin confuses it the actual Fabric8 Maven Plugin

Can one of the admins verify this patch?

Does the text have to mention Fabric8 at all? Even the website https://vmp.fabric8.io/ calls it just "Vert.x Maven Plugin". Obviously it comes from Fabric8 and has the io.fabric8 groupId, but that doesn't mean that the word Fabric8 is part of the name IMHO.

@Ladicek Makes sense.  We could refer to it only as the Eclipse Vert.x Maven Plugin. Leaving out the Fabric8 part will help make the distinction clearer.  Of course, the actual Fabric8 maven plugin would retain its name:)
@rdruss WDYT?

[test]

@rdruss do you have any updates on this?

@inoxx03 that sounds fine as I wondered myself why Fabric8 was referenced.  I think it could be just Vert.x Maven Plugin (with Eclipse dropped) given this is how the tool is referenced in its documentation as well.  I think Eclipse Vert.x is being used to reference the project name itself which is fine, but I do not believe it needs to be (nor actually is) in the name of the Maven Plugin.

@rdruss According to the VMP docs the name of the plugin is Vert.x Maven Plugin. I think we should use the same name to refer to it in RHOAR docs. I'll make the changes if that's OK.

thanks @inoxx03 LGTM, merging.

[test]

[retest]

merged: d34d9670275bf3dd6ae2e83fa69c7f9cb864a7a5


Help with new existingClaim Feature

Is this a request for help?: Yes!  I'm trying to deploy this chart with an existing PVC with data. I tried sereral combinations but with no success yet.
This is my config in production-values.yaml:
...
master:
  antiAffinity: soft
  persistence:
    enabled: true
    existingClaim: mariadb-data-pvc
    mountPath: /bitnami/mariadb
    annotations:
  config: |-
...

Every time I try to install the chart, It creates a new pvc and ignores the existing pvc that I set.
The kubectl describe statefulset.apps
Events:
  Type     Reason            Age               From                    Message
  ----     ------            ----              ----                    -------
  Normal   SuccessfulCreate  7m                statefulset-controller  create Claim data-syndb-mariadb-master-0 Pod syndb-mariadb-master-0 in StatefulSet syndb-mariadb-master success
  Warning  FailedCreate      2m (x26 over 7m)  statefulset-controller  create Pod syndb-mariadb-master-0 in StatefulSet syndb-mariadb-master failed error: Pod "syndb-mariadb-master-0" is invalid: spec.containers[0].volumeMounts[3].mountPath: Invalid value: "/bitnami/mariadb": must be unique

thanks in advance!

 I commented the references to "data" in templates/master-statefulset.yaml and everything run well.
But, (this is a big but),  the chart initialized the original data and put a new database there.
There is any way to restore a pv with old data? I still have the slaves pv from my old database.
Thanks!