Migration of custom plugin not run when plugin installed in custom path (kong 1.x)

Summary
Version 0.x of Kong used to have an issue when running the migration process for custom plugins, when these plugins were located in a custom path (i.e. not in the default /usr/local/share/lua/5.1/kong/plugins directory): migration was indeed not taken into account (see the issue here: https://github.com/Kong/kong/issues/3394).
A good workaround to this issue is to set the LUA_PATH envar before running the migration process, through the following command:
export LUA_PATH="$APP_LIB/?.lua;`luarocks path --lr-path`"

Unfortunately, since version 1.0 and the new migration framework, it looks the migration of the plugins located in a custom path is still not working, and the workaround itself has no more effect: the logs of the kong migrations up process shows nothing related to the execution of the migration of the custom plugin entities, and tables are not created in Postgres.
Running Kong in server mode, we can see the following logs that show that the plugin is found by Kong during startup of Kong in server mode… but execution of the plugin fails later because the tables do not exist.
2019/04/15 15:02:56 [debug] 190#0: [lua] plugins.lua:267: load_plugin_schemas(): Loading plugin: my-key-auth
2019/04/15 15:02:56 [debug] 190#0: [lua] plugins.lua:281: load_plugin_schemas(): Loading custom plugin entity: 'my-key-auth.my_keyauth_credentials'
…
2019/04/15 15:02:56 [debug] 197#0: *5 [lua] base_plugin.lua:13: init_worker(): executing plugin "my-key-auth": init_worker

Steps To Reproduce

Create a plugin with new dedicated entities. Implement the migration inside the migrations/000_base_xxx.lua and reference it into the migrations/init.lua file.
Manually deploy the whole plugin directory in a kong/plugins directory outside the Kong internal one
Run kong migrations up

Logs does not show that migration of the custom plugins has been done.

set the LUA_PATH envar as stated above
run again the migration

Still nothing into the logs. Migration is not executed.
Additional Details & Logs

Kong version: 1.0.3
Operating system: alpine

hi @pamiel! I was unable to reproduce it in latest master.
This is what I tried to do:

create a path that's found in LUA_PATH

$ mkdir ~/.luarocks/share/lua/5.1/kong/plugins

go to the kong sources where I run my dev environment

$ cd kong

move a plugin with migrations out of the Kong tree

$ mv kong/plugins/oauth2 ~/.luarocks/share/lua/5.1/kong/plugins

reset and bootstrap migrations - verify that it still runs the oauth2 migrations

$ bin/kong migrations reset
$ bin/kong migrations bootstrap
bootstrapping database...
[...]
migrating oauth2 on database 'kong'...
oauth2 migrated up to: 000_base_oauth2 (executed)
oauth2 migrated up to: 001_14_to_15 (executed)
oauth2 migrated up to: 002_15_to_10 (executed)
[...]
24 migrations processed
24 executed
database is up-to-date

oauth2 is there, 24 migrations executed.

now let's make sure the plugin isn't found anymore

$ mv ~/.luarocks/share/lua/5.1/kong/plugins/oauth2 ~/.luarocks/share/lua/5.1/kong/plugins/oauth3

and try migrations again:

# reset and bootstrap migrations
# verify that oauth2 migrations don't run anymore
$ bin/kong migrations reset
$ bin/kong migrations bootstrap
bootstrapping database...
migrating core on database 'kong'...
[...no oauth2 to be seen...]
21 migrations processed
21 executed

correct — now it's 21.

now let's try to make it use the custom-named plugin, via KONG_PLUGINS (a.k.a. plugins in kong.conf):

$ bin/kong migrations reset
$ KONG_PLUGINS=bundled,oauth3 bin/kong migrations bootstrap
bootstrapping database...
migrating core on database 'kong'...
[...]
migrating oauth3 on database 'kong'...
oauth3 migrated up to: 000_base_oauth2 (executed)
oauth3 migrated up to: 001_14_to_15 (executed)
oauth3 migrated up to: 002_15_to_10 (executed)
[...]
24 migrations processed
24 executed
database is up-to-date

24 migrations executed, the "oauth3" plugin was found and migrated.
Maybe what's missing is that you're not specifying the custom plugin when running kong migrations?

Ok, I got it:

plugins in kong.conf is correctly set on my side, but reproducing your test case is not leading to a correct migration
looking again to the default values of the kong. conf file, I realized that 2 paths were provided (https://github.com/Kong/kong/blob/master/kong.conf.default#L697) ./?.lua;./?/init.lua; while my lua_package_path only has a single one: /my/path/?.lua. So, adding the missing one... but migration is still not called
So finally tried the initial workaround to set the LUA_PATH envvar with the 2 paths before running the migration, and this time it is working fine !

As a conclusion:

the 2 path are required (how could I missed that!)
but still the bug of the lua_package_path is present
and hopefully the workaround with the LUA_PATH still works (do you have it as well?) !

Thanks a lot for your help.
I let you keep open or close the issue depending on whether you want to keep it for the lua_package_path issue

the 2 path are required (how could I missed that!)

Correct!

but still the bug of the lua_package_path is present

Can you try this patch?
diff --git a/kong/cmd/migrations.lua b/kong/cmd/migrations.lua
index 51dc8e589..6109bd9e3 100644
--- a/kong/cmd/migrations.lua
+++ b/kong/cmd/migrations.lua
@@ -84,6 +84,8 @@ local function execute(args)
   conf.cassandra_timeout = args.db_timeout -- connect + send + read
   conf.cassandra_schema_consensus_timeout = args.db_timeout

+  package.path = conf.lua_package_path .. ";" .. package.path
+
   _G.kong = kong_global.new()
   kong_global.init_pdk(_G.kong, conf, nil) -- nil: latest PDK

and hopefully the workaround with the LUA_PATH still works (do you have it as well?) !

Yes, it works (I had the ~/.luarocks paths in my LUA_PATH already).

I let you keep open or close the issue depending on whether you want to keep it for the lua_package_path issue

Let me know if the above tweak does the trick! If so, I'll close this and send a PR with it.

Yes, this works ! No more need to set the LUA_PATH envvar with it.
Thanks a lot for your help.

the 2 path are required (how could I missed that!)

Correct!

but still the bug of the lua_package_path is present

Can you try this patch?
diff --git a/kong/cmd/migrations.lua b/kong/cmd/migrations.lua
index 51dc8e589..6109bd9e3 100644
--- a/kong/cmd/migrations.lua
+++ b/kong/cmd/migrations.lua
@@ -84,6 +84,8 @@ local function execute(args)
   conf.cassandra_timeout = args.db_timeout -- connect + send + read
   conf.cassandra_schema_consensus_timeout = args.db_timeout

+  package.path = conf.lua_package_path .. ";" .. package.path
+
   _G.kong = kong_global.new()
   kong_global.init_pdk(_G.kong, conf, nil) -- nil: latest PDK

and hopefully the workaround with the LUA_PATH still works (do you have it as well?) !

Yes, it works (I had the ~/.luarocks paths in my LUA_PATH already).

I let you keep open or close the issue depending on whether you want to keep it for the lua_package_path issue

Let me know if the above tweak does the trick! If so, I'll close this and send a PR with it.

package.path = conf.lua_package_path .. ";" .. package.path
This patch worked like charm!

@hishamhm Would you please close this issue and send a PR with your patch?

@hishamhm just a heads-up: I think I just ran into the same issue, but initiated from a plugin test. In which case the migrations are not started through the CLI, but directly from the test-helpers.
(in which case the fix doesn't work)

hmmm, switched dev environment from Gojira to Vagrant, now it works. Will post this with the Gojira folks. Sorry for the noise.


Support output as SVG

Support outputting QR codes in Scalable Vector Graphic format. This change adds github.com/ajstarks/svgo as a dependency to accomplish this.
This change also updates the Go version required in the module to one more recent, and updates the TravisCI configuration to test it appropriately. The changes in the test code avoid an error which was introduced in a more modern version of Go.

Great improvement, thank you @cfunkhouser. Could this be merged guys? It is more than a year old ...


PSNR is different from your paper

when i test the dataset, the PSNR and SSIM from the result of test is different your paper ,why?

Which model? Our provided LAPAR models may slightly differ from the reported ones, with higher results.

when i use BebyGAN_x4.pth to test,
after test_sample.py, the printed value of PSNR and SSIM is different from you TABLE2.
--------- Result ---------
PSNR: 25.09, SSIM:0.6663
Finished!

Which model? Our provided LAPAR models may slightly differ from the reported ones, with higher results.

Did you use the right LR input? We adopted Matlab bicubic downsampling to obtain LR images.


How to open an accordion?

In the inline screenshots I need to open the first accordion, old syntax:
{
"field": "inline_1",
"actions": [
{
"action": "open",
"accordion": "@first"
}
]
}
and in some the first accordion within the first accordion:
        {
          "field": "inline_1",
          "actions": [
            {
              "action": "open",
              "accordion": "@first"
            },
            {
              "action": "open",
              "accordion": ".form-irre-object .panel-collapse .form-irre-header-button"
            }
          ]
        }

Taking the puppeteer implementation into account i would suggest something like:
{"action": "click", "link": ".form-irre-header-button"}
{"action": "click", "link": ".form-irre-object .panel-collapse .form-irre-header-button"}

and maybe you need to add some wait actions here too. If that does not work out, would you point me to a TYPO3 backend page with an accordion?

Works fine, had no problem with toggling yet.


Add support for local system-specific version files

Would resolve #37

I don't think this is the way to go forward. Since these previews offer breaking changes, specifying that Swift 3.0 is supported in your project's .swift-version file when it's not even out yet is not guaranteed it will work.
There will be no benefits of using swiftenv if you can't be certain that the locked version is actually the correct version that the project supports. swiftenv won't be able to accurately and reliably switch alpha/beta/preview versions of 3.0 in the future, since every 3.0 release regardless of them being the same version report as the same version.

This would also greatly complicate the swiftenv local behaviour when it may or may not need to override different files.

That's fair, definitely not a fool-proof. This is a pretty big blocker for Zewo though so we'll be using this fork in the meantime. We'll also post the issue on bugs.swift.org so that the next preview will (hopefully) give the proper version of swift-3.0-preview-2 instead of just 3.0, which means that 3.0 will mean 3.0-preview-1 on OSX for a little while longer.

I think the best solution would be one of the following:

Users manually add an alias for the correct version against an Xcode toolchain they've manually installed. That way, you can install multiple versions of Xcode and swiftenv can correctly manage the preview versions.
$ ln -s /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ ~/.swiftenv/versions/3.0-preview-1

Swift starts versioning correctly.

We find another way to determine the Swift version accurately from an Xcode install.

Lets move this back over to #37


Update myuplink to 0.8.3

Please update my adapter ioBroker.myuplink to version 0.8.3.
This pull request was created by https://www.iobroker.dev c0726ff.

RE-CHECK!


No Option found to remove the credit card

[Enter feedback here]
I have no subscriptions now; but i dont see an option to delete the card.

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

ID: e76ce485-5a06-add0-76a3-b823fb6c3c7a
Version Independent ID: af78deae-d409-6261-a817-b504965d1988
Content: Cancel your Azure subscription
Content Source: articles/cost-management-billing/manage/cancel-azure-subscription.md
Service: cost-management-billing
Sub-service: billing
GitHub Login: @bandersmsft
Microsoft Alias: banders

@rizcodes, Thanks for leveraging Azure docs feedback channel to post this question!
I understand you have no subscription at this time - On Azure Portal, not sure if you have tried already tried, you may detach/delete a Payment method, 'Delete an Azure billing payment method'.
As mentioned in the document:

"After you cancel a subscription, it can take up to 90 days for the subscription to be deleted. If you want the wait shortened, open an Azure support request and ask to have the subscription deleted immediately.

You can only delete a payment method after all previous charges for a billing profile are settled. If you are in an active billing period, you must wait until the end of the billing period to delete your payment method. Ensure all other detach conditions are met while waiting for your billing period to end. "

Hope this helps!

@rizcodes, We will close this out, but if there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion. Thanks again for your feedback!


Cypress tests do not pass

For example - checkout.spec.js file.
It checks for cy.get('form#guest-checkout input[type=text]'), but no such element exists, template uses button instead input.
Or there are errors because of sticky header, cypress complains that it covers buttons:
Timed out retrying after 4050ms: cy.click() failed because this element:

<button class="button w-full sm:w-auto" type="submit" name="submit">Add to ...</button>

is being covered by another element:

...

This could be fixed by using { scrollBehavior: 'center' }.

This is now fixed on stable.
Thanks!


A part of S-group brackets is enlarged after Cut - Undo actions

Affected Version: Remote, Standalone
Steps to Reproduce:

Launch Ketcher.
Draw 2 structures (e.g. 2 cyclohexane) in different parts of the canvas.
Click 'S-Group Tool' button.
Create 2 separate S-Groups (e.g. Generic S-Group) with each structure.
Delete both structures with 'Erase' tool.
Click 'Undo' button.

Expected result: Both structures are present on the canvas as members of separate Generic S-Groups. The size of brackets hasn't changed after Cut - Undo actions.
Actual result: Both structures are present on the canvas but one of the Generic S-Groups is included into the second one.

The issue is still reproduced.

Launch Ketcher.
Draw 2 structures (e.g. 2 cyclohexane) in different parts of the canvas.
Create 2 separate S-Groups (e.g. Generic S-Group) with each structure using 'S-Group Tool'
Delete both structures with 'Erase' tool.
Click 'Undo' button.
Select both structures.
Copy/paste on the canvas.
Click 'Undo' button.

The issue is closed as fixed.


Begin filling out questions outline for collaboration interview

Currently going through and reviewing the questions I have and figuring out which ones can be turned into multiple choice, writing down justifications, and removing ones that aren't well justified or necessary.
My goal is to make this survey as short as possible and leave any questions on sponsorship to follow up surveys. Hopefully many small surveys is better than a few larger surveys.

@yaahc let me know if I should merge this or if you want to update this before we merge.

@yaahc let me know if I should merge this or if you want to update this before we merge.

I'm going to update it before we merge

Alright I've gone ahead and made the updates + resolved all the comments + opened a bunch of new issues. This PR should be good to land soon and we can follow up on the specific unresolved issues in their respective tickets.


Fix/select all

Hey @mkhatib, Please check this PR as a fix for this issue #80

Thanks for sending this out, there was a reason I switched form a single content editable on the whole editor and stuck with content editable from other components.
I can't remember what was it exactly, I'll try to run this locally and see if I can find any problems.

Thanks @saadshahd I've used the same methods you were using here in the other PR to fix this. Thanks for taking a stab at this 😄


Dependency: Pandas Version

Dependency Update

Pandas version >= 1.5.0 causing memory leak issues in some of our methods.

Detail

Locking version to <= 1.4.4 until resolved on the pandas side.

Relates

#1678

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: 0efd739b42aa150d382a61dd43910984a64243a7
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Could we find or raise the actual issue causing this with pandas? I would want to avoid pinning the library until we understand why at least, specially that we need pandas 1.5.0+ for our 3.0.0 release

Could we find or raise the actual issue causing this with pandas? I would want to avoid pinning the library until we understand why at least, specially that we need pandas 1.5.0+ for our 3.0.0 release

Yep, I'm working on finding where memory leak happens using memory_profiler hopefully I'll know more after today.

Could we find or raise the actual issue causing this with pandas? I would want to avoid pinning the library until we understand why at least, specially that we need pandas 1.5.0+ for our 3.0.0 release

@jaidisido Confirmed this is no longer an issue with 1.5.1 users will need to be on python3.8 or newer.

I'm not sure if this is the convention to exempt a dep version for the library, let me know.

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: 9f7681067e2939f9bb46107b0e67b07353c3813e
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: 274ed6a8aab7fefa57e6f4ed9c09b00efb46b64a
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Great deep dive on this one @malachi-constant , thanks!

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: fb962444650e217ef3c7e233c0768afe35c106d0
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


[$1000] Payment issue for #22235

The Upwork job on https://github.com/Expensify/App/issues/22235 expired, so I'm using this issue to pay the contributor on that issue.
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01f86cff909f5de9d5
Upwork Job ID:<PHONE_NUMBER>214901760
Last Price Increase: 2023-08-28

Payment of $1500 has been issued to @aimane-chnaif for work on https://github.com/Expensify/App/issues/22235. Closing!

Oh whoops! I almost forgot the Bug Reporter! Sorry about that, @gadhiyamanan. Please ping me when you've accepted the job so I can issue payment for your report. Thanks!

@johncschuster offer accepted, thanks!

Payment has been issued! Closing!


Make key shortcut match description.

Changes keyboard shortcut to toggle notation view from CTRL+ALT+CMD+M to CTRL+ALT+M. The new shortcut works upon restarting Atom, but the shortcut is no longer displayed when you click on Packages>MEI Tools. I'm not sure why that is.

Hi Alex!
"Make key shortcut match description" <- what description are you referring to? Everything I'm seeing says ctrl-alt-cmd-m.

I should have suspected this was a Windows/Mac thing since it uses CMD. Here's a screenshot that shows that the keymap is set up like you had it, but the description in the pull-down "Packages" menu says "ALT-CTRL-M". They talk a bit more about this on these issues in Atom:
1
2
I think if we stay away from the Mac CMD button it would make things a little simpler. Also, the shortcut becomes 3 buttons instead of 4, and since it's the only shortcut it doesn't cause any collisions.

Going forward, it would be great to have separate pull requests for different features.  So, one for changing the shortcut keys and one for adding the XML:ID functionality.  But this is fine for now.
As for the part where you get and set the contents of a file, how about following the pattern I used for conversion from MusicXML to MEI?  This reads in the content of the current file, runs it through the converter, and writes the output to a brand new file.  Perhaps the new file can have something like '-generated-ids' appended to its name.
Also, please update the readme accordingly.

I can separate out the PRs so that they contain one change each and also update the readme, no problem. I still have two issues though. I'm not sure what you want to do about the keymap issue, and more importantly I'm still having a hard time understanding how to get and set the text of a file. this.activeEditor.getText() and setText() would be the obvious functions but they don't seem to be working. It's a little tough since there's no documentation on any of the components of this repository. I tried basing it off of your conversion from xml to mei but so far with no success. It doesn't help that I'm not very strong reading Javascript. If you could please just tell me how to call these two functions and where they are it would be really helpful.

I suggest that you use this function as a model: https://github.com/siennamw/mei-tools-atom/blob/master/lib/mei-tools-atom.js#L78.  getText() is called here https://github.com/siennamw/mei-tools-atom/blob/master/lib/mei-tools-atom.js#L78, and setText() is called here https://github.com/siennamw/mei-tools-atom/blob/master/lib/mei-tools-atom.js#L100. You can even reuse the resolveNewFileName function.  I hope that clears things up.  Let me know if you have any more questions.

Also, it's fine with me to change the shortcut to ALT-CTRL-M as you suggested.  I'm a little concerned about collisions with other packages, but we can deal with that later if it comes up.

I'm going to make a new PR with its own branch.


BUG: fix unmatched dtype between y_train and y_test

y_train_np is uint8, while y_test_np is int64:
from tensorflow.python.keras.datasets import cifar10
(x_train_np, y_train_np), (x_test_np, y_test_np) = cifar10.load_data()
print(y_train_np.dtype, y_test_np.dtype)
# uint8 int64

Nagging Assignee @ekelsen: It has been 31 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @ekelsen: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @ekelsen: It has been 29 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.


Credits UI

Intro
It would be awesome if we had a standardized way of displaying game development credits, ie. "This game was made by Jason" within the UI of the game. This will allow users to put their name on their hard work, and will also give players the ability to find out who made their favorite games.
Requirements

[x] Show/Hide Credits UI.
[x] Display names of the developers/creators.

Possibly add the option for saying something like, Developers: Alice, Bob; Designers: Carter; Sounds: Derek;

[ ] Display additional message/description.

Added in #12


Learn to study on the storage

As there might have chance for events and teams to upload images for their profile / descriptions.
So we might need to study on the firebase storage and know how to upload files to firebase :)

It is good. However, how large is the storage that firebase offers.

5gb store for free
But I think that we just use that to store event picture only
team might not have so much need to store a pic for them :P

Can we let them to submit the link to that picture?
Then we won't need to store their pictures.

submitting photo for event or just for member ?

We can get the photo from facebook for member.

I think the first step can be event owner will upload their picture to represent their own event
As I recently figure out how to upload a picture on firebase.


Orbital Velocity Board Game

I am the creator of a new board game called "Orbital Velocity" (to be released in Dec 2019). It is a simple card game to help students learn, and in this finally learn MachineLearning.
I wonder if I could use OpenSpiel to build RL platform. I can contribute code related to that code. From what I understand, the existing OpenSpiel API is sufficient to build my game.
What is the best way to contribute my game to this repository.

Hi @pratapram , that's very interesting! Thanks for your interest in OpenSpiel.
Reading the boardgamegeek description of the game, it sounds like quite an interesting game. It would be fun to do RL research on this game, and it would be great if OpenSpiel could help with that.
It's hard to say precisely without a full description of the rules, but if you think the OpenSpiel API is sufficient, then you can add an implementation by a Pull Request. As this might be a large implementation, I would recommend putting it in its own subdirectory games/orbital_velocity. There are step-by-step guidelines on how to implement a game here: https://github.com/deepmind/open_spiel/blob/master/docs/developer_guide.md . If it's an imperfect information game, then I would say you can start from Leduc poker. If you have any questions with any of the parts, feel free to ask (the basic simulation tests in the other games basically play uniformly random).
Once you have it implemented in the OpenSpiel API, there are a number of RL algorithms and techniques you could use to try to learn to play the game.
Just one other consideration: if/since this game is being published, then we might need some form of permission from the publisher(s) to host an implementation of it in the code base.

This game is an imperfect information game. I am the publisher of the game, and I will make the initial commit.

Great! Do no hesitate to ask any questions if you need clarifications.

Thanks!
Here are the simple rules:
Game type: sequential (non-simultaneous)
Num of Players: 2
Deck: 54 cards (numbers 1-9, and "-" cards) in a specific distribution
Deal: Each player gets 5 cards
Rocket: There is 1 rocket (not 1 rocket per player)
Each player plays a card to move the rocket (same rocket) and then takes a card. The player that moves the rocket to 39 (the target orbital velocity) wins the game.
Game ends if

if rocket reaches 39
if rockets goes past 39
if deck runs out

Important clue: The even cards are colored white and odd cards are colored black. The color of the cards is visible to the opponents. The color of the opponents is crucial information required for dominant strategy.
Is "leduc poker" the best starting point to implement this?

Sounds interesting!
Yes, Leduc is probably the best starting point, though it is a lot smaller/
if you anticipate using only RL methods for the learning part, you can implement the game using the kSampledStochastic chance mode, rather than kExplicit. You would need the explicit one if you plan to run any of the tabular solving algorithms like CFR, but sounds like your game will be too large for those anyway. This is the mode that Leduc (and most of our stochastic games) use. It treats each card flip as an explicit chance node and the card that flipped is the outcome of that chance node. E.g. you can have the chance nodes come up every time you need to flip a card, too, like after every action.
On the other hand, the sampled stochastic mode has a single chance node at the top of the game with a single outcome, but the transition is non-deterministic (you can think of applying the chance move as shuffling the deck). You can look at games/negotiation for an example of a game that uses this kind of chance mode.

Hi @pratapram , I'm closing this issue now but looking forward to the implementation! (Feel free to re-open if you have questions.)


python38Packages.mypy-boto3-s3: 1.18.48 -> 1.18.49

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python38Packages.mypy-boto3-s3 is: "Type annotations for boto3"
meta.homepage for python38Packages.mypy-boto3-s3 is: "https://vemel.github.io/boto3_stubs_docs/mypy_boto3_s3/"
meta.changelog for python38Packages.mypy-boto3-s3 is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 1.18.49 with grep in /nix/store/w48cn8cn35sv0hp3dl5qjv85gmxifbns-python3.8-mypy-boto3-s3-1.18.49

found 1.18.49 in filename of file in /nix/store/w48cn8cn35sv0hp3dl5qjv85gmxifbns-python3.8-mypy-boto3-s3-1.18.49

directory tree listing: https://gist.github.com/edd9de7701d8c97f1eab831473c99a08

du listing: https://gist.github.com/34c491eccacd25d095f2f31c7cfe491f

Rebuild report (if merged into master) (click to expand)

16 total rebuild path(s)

4 package rebuild(s)

4 x86_64-linux rebuild(s)
4 i686-linux rebuild(s)
4 x86_64-darwin rebuild(s)
4 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
python38Packages.dependency-injector
python38Packages.mypy-boto3-s3
python39Packages.dependency-injector
python39Packages.mypy-boto3-s3

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/w48cn8cn35sv0hp3dl5qjv85gmxifbns-python3.8-mypy-boto3-s3-1.18.49 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python38Packages.mypy-boto3-s3 https://github.com/r-ryantm/nixpkgs/archive/90b899304351c85c7babf145fb0d992e0f69b7e4.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/w48cn8cn35sv0hp3dl5qjv85gmxifbns-python3.8-mypy-boto3-s3-1.18.49
ls -la /nix/store/w48cn8cn35sv0hp3dl5qjv85gmxifbns-python3.8-mypy-boto3-s3-1.18.49/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

4 packages built:

python38Packages.dependency-injector
python38Packages.mypy-boto3-s3
python39Packages.dependency-injector
python39Packages.mypy-boto3-s3

Maintainer pings
cc @fabaff for testing.

Obsoleted by https://github.com/NixOS/nixpkgs/pull/140037.


Null blueprint node implemented when using UPROPERTY(BlueprintAssignable) in a MDViewModel subclass.

The function shows up with a + icon in the viewmodel editor event graph but when you click on it to implement it in that widget it comes up as an event node called NULL and compiling that will tell you there is no reference for that function.
It does work correctly if you drag off the ViewModel changed event and promote the new viewmodel to a blueprint class member varaible. Then at the bottom left in the editor click the + icon on the event to implement it that way.

 That was happening previously but should have been fixed as of https://github.com/DoubleDeez/MDViewModel/commit/4e4f7dff4f38ad6d7e684b5b6e2a4d4ac546d9c4

Yeah I dont have that CL ill pull down latest soon.


Don't Merge! PR real time test for webhook case

Docs Build status updates of commit f519c90:
:clock10: Pending: waiting for processors (12 builds ahead of you)
:warning: Docs Build is busy, currently there are 12 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit f519c90:
:clock10: Full build: the average full build time is 6 min(s) 6 sec(s), this is based on the last 398 build(s) for this repository.

Docs Build status updates of commit f519c90:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details
Dependent Files

docs-ref-conceptual/testing.md
:white_check_mark:Succeeded
View (azure-cli-latest) View (azure-cli-2017-03-09-profile) View (azure-cli-2018-03-01-hybrid)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Middleware component - middleware.http.opa not loading - 1.0.0-rc.2

Expected Behavior
middleware.http.opa loads
Actual Behavior
process component opa error: incorrect type middleware.http.opa"
Steps to Reproduce the Problem

Add a config referencing a middleware component

apiVersion: dapr.io/v1alpha1
kind: Configuration
metadata:
  name: pipeline
  namespace: default
spec:
  httpPipeline:
    handlers:
    - name: opa
      type: middleware.http.opa

Add the middleware component using the opa example from the docs. - https://docs.dapr.io/developing-applications/middleware/middleware-opa-policies/ and set the name to: opa
dapr run

This line seems to cause the issue as it will always return blank for types not defined in the list - https://github.com/dapr/dapr/blob/dde6a6b834c56d4cc0bd788062c8c64f416d20c8/pkg/runtime/runtime.go#L1353
Observe error.

@yaron2 is any additional information on this one needed?, looks as though all Http middleware via component is broken in 1.0.0-rc.2, confirmed by downgrading to 0.11.2, from the looks of the runtime.go file it will always fail when it encounters Http middleware.

@yaron2 is any additional information on this one needed?, looks as though all Http middleware via component is broken in 1.0.0-rc.2, confirmed by downgrading to 0.11.2, from the looks of the runtime.go file it will always fail when it encounters Http middleware.

@yaron2 is any additional information on this one needed?, looks as though all Http middleware via component is broken in 1.0.0-rc.2, confirmed by downgrading to 0.11.2, from the looks of the runtime.go file it will always fail when it encounters Http middleware.

Can you try to rename the type to middleware.opa?

@yaron2 is any additional information on this one needed?, looks as though all Http middleware via component is broken in 1.0.0-rc.2, confirmed by downgrading to 0.11.2, from the looks of the runtime.go file it will always fail when it encounters Http middleware.

Can you try to rename the type to middleware.opa?

Also, did you reference the config from your Deployment YAML?

Also, did you reference the config from your Deployment YAML?

@yaron2 same issue i'm afraid
msg="process component my-policy error: incorrect type middleware.opa"

@yaron2 same issue i'm afraid
msg="process component my-policy error: incorrect type middleware.opa"

Also, did you reference the config from your Deployment YAML?

@yaron2 I tried via 2 mechanisms,

referenced the new config from an explicit folder passed to daprd (using dotnet type)
overwrote my default dapr config in .dapr and then did a regular dapr run

Also, did you reference the config from your Deployment YAML?

@yaron2 I tried via 2 mechanisms,

referenced the new config from an explicit folder passed to daprd (using dotnet type)
overwrote my default dapr config in .dapr and then did a regular dapr run

@yaron2 this appears related to - https://github.com/dapr/components-contrib/issues/537

@yaron2 this appears related to - https://github.com/dapr/components-contrib/issues/537

@slacksach indeed, we are getting multiple reports of this issue. It's a P0 now and we are looking into it.

@slacksach indeed, we are getting multiple reports of this issue. It's a P0 now and we are looking into it.

This is fixed with https://github.com/dapr/dapr/pull/2667

This is fixed with https://github.com/dapr/dapr/pull/2667


javascript error in code blocks - no more copy button, mangled output

In the console:
prism.js:21 Uncaught TypeError: Illegal constructor
    at n (prism.js:21)
    at prism.js:21
    at prism.js:20
    at Array.forEach (<anonymous>)
    at Prism.plugins.toolbar.hook (prism.js:20)
    at Object.run (prism.js:2)
    at Object.highlightElement (prism.js:2)
    at HTMLDocument.highlightAll (prism.js:2)

copy button is gone and further code blocks are gone:

this happened gradually over some days (was working for me still while not working for others) but now it seems prevalent/broken everywhere (new version of prism is broken maybe?)
JS help needed kinda urgently (or an alternative for those code blocks)
cc @andraxylia who also stepped on this problem

Found https://github.com/PrismJS/prism/issues/1181

Seems to be (latest) chrome specific, I have version 61.0.3163.100 (Official Build) (64-bit)
on OS X 10.12.6
Safari still works

@geeknoid do you remember which selections you made on http://prismjs.com/download.html
coy maybe ? and which languages/plugins ?
seems like we need to add some clipboard script to get it to work (was hoping that maybe the latest version will have a fix)

I think we just need to load the clipboard.js script from a CDN in _layouts/base.html prior to the point where prism.js is loaded.

fixed in #579


Failed to read data from: ./langdata/eng/eng.config

###Environment
Platform64 bit Ubuntuu 16.04
tesseract 5.0.0-alpha-56-gb9b74
leptonica-1.79.0
libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 : zlib 1.2.8
Found AVX2
Found AVX
Found SSE
Current Behavior:
src/training/tesstrain.sh --fonts_dir /usr/share/fonts --training_text ./training_data/model_tt.txt --langdata_dir ./langdata --tessdata_dir ./tessdata --lang eng --linedata_only --noextract_font_properties  --fontlist "FreeMono" --output_dir ~/tesstutorial/engtrain
In the training eng execution script tesstrain.sh, the following problems occurred:
Setting script properties
Config file is optional, continuing...
Failed to read data from: ./langdata/eng/eng.config
Null char=2
Reducing Trie to SquishedDawg
Expected Behavior:
=== Phase I: Generating training images ===
Rendering using FreeMono
[2019年 05月 21日 星期二 09:40:26 CST] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.8ZKXwRt3RY --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0 --max_pages=0 --font=FreeMono --text=./training_data/model_tt.txt
Rendered page 0 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 1 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 2 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 3 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 4 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 5 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 6 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 7 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 8 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 9 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 10 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 11 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 12 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 13 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 14 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 15 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 16 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 17 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 18 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 19 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 20 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 21 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
Rendered page 22 to file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif
=== Phase UP: Generating unicharset and unichar properties files ===
[2019年 05月 21日 星期二 09:40:39 CST] /usr/local/bin/unicharset_extractor --output_unicharset /tmp/eng-2019-05-21.RQa/eng.unicharset --norm_mode 1 /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.box
Extracting unicharset from box file /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.box
Other case M of m is not in unicharset
Other case O of o is not in unicharset
Other case E of e is not in unicharset
Other case L of l is not in unicharset
Other case J of j is not in unicharset
Other case k of K is not in unicharset
Other case f of F is not in unicharset
Other case y of Y is not in unicharset
Other case h of H is not in unicharset
Other case r of R is not in unicharset
Other case b of B is not in unicharset
Other case n of N is not in unicharset
Other case a of A is not in unicharset
Wrote unicharset file /tmp/eng-2019-05-21.RQa/eng.unicharset
[2019年 05月 21日 星期二 09:40:39 CST] /usr/local/bin/set_unicharset_properties -U /tmp/eng-2019-05-21.RQa/eng.unicharset -O /tmp/eng-2019-05-21.RQa/eng.unicharset -X /tmp/eng-2019-05-21.RQa/eng.xheights --script_dir=./langdata
Loaded unicharset of size 38 from file /tmp/eng-2019-05-21.RQa/eng.unicharset
Setting unichar properties
Other case M of m is not in unicharset
Other case O of o is not in unicharset
Other case E of e is not in unicharset
Other case L of l is not in unicharset
Other case J of j is not in unicharset
Other case k of K is not in unicharset
Other case f of F is not in unicharset
Other case y of Y is not in unicharset
Other case h of H is not in unicharset
Other case r of R is not in unicharset
Other case b of B is not in unicharset
Other case n of N is not in unicharset
Other case a of A is not in unicharset
Setting script properties
Writing unicharset to file /tmp/eng-2019-05-21.RQa/eng.unicharset
=== Phase E: Generating lstmf files ===
Using TESSDATA_PREFIX=./tessdata
[2019年 05月 21日 星期二 09:40:40 CST] /usr/local/bin/tesseract /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.tif /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0 --psm 6 lstm.train
Tesseract Open Source OCR Engine v5.0.0-alpha-56-gb9b74 with Leptonica
Page 1
Page 2
Loaded 56/56 lines (1-56) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 3
Loaded 112/112 lines (1-112) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 4
Loaded 168/168 lines (1-168) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 5
Loaded 224/224 lines (1-224) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 6
Loaded 280/280 lines (1-280) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 7
Loaded 336/336 lines (1-336) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 8
Loaded 392/392 lines (1-392) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 9
Loaded 448/448 lines (1-448) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 10
Loaded 504/504 lines (1-504) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 11
Loaded 560/560 lines (1-560) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 12
Loaded 616/616 lines (1-616) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 13
Loaded 672/672 lines (1-672) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 14
Loaded 728/728 lines (1-728) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 15
Loaded 784/784 lines (1-784) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 16
Loaded 840/840 lines (1-840) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 17
Loaded 896/896 lines (1-896) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 18
Loaded 952/952 lines (1-952) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 19
Loaded 1008/1008 lines (1-1008) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 20
Loaded 1064/1064 lines (1-1064) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 21
Loaded 1120/1120 lines (1-1120) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 22
Loaded 1176/1176 lines (1-1176) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
Page 23
Loaded 1232/1232 lines (1-1232) of document /tmp/eng-2019-05-21.RQa/eng.FreeMono.exp0.lstmf
=== Constructing LSTM training data ===
Creating new directory /home/ge/tesstutorial/engtrain6
[2019年 05月 21日 星期二 09:40:49 CST] /usr/local/bin/combine_lang_model --input_unicharset /tmp/eng-2019-05-21.RQa/eng.unicharset --script_dir ./langdata --words ./langdata/eng/eng.wordlist --numbers ./langdata/eng/eng.numbers --puncs ./langdata/eng/eng.punc --output_dir /home/ge/tesstutorial/engtrain6 --lang eng
Loaded unicharset of size 38 from file /tmp/eng-2019-05-21.RQa/eng.unicharset
Setting unichar properties
Other case M of m is not in unicharset
Other case O of o is not in unicharset
Other case E of e is not in unicharset
Other case L of l is not in unicharset
Other case J of j is not in unicharset
Other case k of K is not in unicharset
Other case f of F is not in unicharset
Other case y of Y is not in unicharset
Other case h of H is not in unicharset
Other case r of R is not in unicharset
Other case b of B is not in unicharset
Other case n of N is not in unicharset
Other case a of A is not in unicharset
Setting script properties
Config file is optional, continuing...
Failed to read data from: ./langdata/eng/eng.config
Null char=2
Reducing Trie to SquishedDawg
Reducing Trie to SquishedDawg
Reducing Trie to SquishedDawg
Suggested Fix:

Config file is optional, continuing...
Failed to read data from: ./langdata/eng/eng.config

This is only a warning, since config file is optional.

OK，thank you！

@Shreeshrii
Can you please tell what does the eng.config file do?
And how or where can I get that file from?

There is no eng.config file. You can safely ignore this message. Very few languages use config files.

Hi, I am getting the below error. Can you please help me. I am using the below command where I am asking to generating 4000 pages but it is able to generate 2 pages in .tif format
tesstrain.sh --fonts_dir /usr/local/share/fonts --fontlist 'calibri' --lang eng --linedata_only --langdata_dir langdata_lstm --tessdata_dir tessdata --save_box_tiff --maxpages 4000 --output_dir train
=== Starting training for language 'eng'
[Wed Jul 3 11:32:45 IST 2019] /usr/local/bin/text2image --fonts_dir=/usr/local/share/fonts --font=calibri --outputbase=/var/folders/jk/5jhgxsjn76b_d5vmvm91hl8r0000gn/T/font_tmp.XXXXXXXXXX.xowjqO3i/sample_text.txt --text=/var/folders/jk/5jhgxsjn76b_d5vmvm91hl8r0000gn/T/font_tmp.XXXXXXXXXX.xowjqO3i/sample_text.txt --fontconfig_tmpdir=/var/folders/jk/5jhgxsjn76b_d5vmvm91hl8r0000gn/T/font_tmp.XXXXXXXXXX.xowjqO3i
Fontconfig warning: ignoring UTF-8: not a valid region tag
Rendered page 0 to file /var/folders/jk/5jhgxsjn76b_d5vmvm91hl8r0000gn/T/font_tmp.XXXXXXXXXX.xowjqO3i/sample_text.txt.tif
=== Phase I: Generating training images ===
Rendering using calibri
[Wed Jul 3 11:32:47 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/var/folders/jk/5jhgxsjn76b_d5vmvm91hl8r0000gn/T/font_tmp.XXXXXXXXXX.xowjqO3i --fonts_dir=/usr/local/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/var/folders/jk/5jhgxsjn76b_d5vmvm91hl8r0000gn/T/eng-2019-07-03.XXX.KGXPtv9Z/eng.calibri.exp0 --max_pages=4000 --font=calibri --text=langdata_lstm/eng/eng.training_text
Fontconfig warning: ignoring UTF-8: not a valid region tag
Rendered page 0 to file /var/folders/jk/5jhgxsjn76b_d5vmvm91hl8r0000gn/T/eng-2019-07-03.XXX.KGXPtv9Z/eng.calibri.exp0.tif
Rendered page 1 to file /var/folders/jk/5jhgxsjn76b_d5vmvm91hl8r0000gn/T/eng-2019-07-03.XXX.KGXPtv9Z/eng.calibri.exp0.tif

How big is your langdata_lstm/eng/eng.training_text?

It is 7kb

Hi @Shreeshrii
I added extra lines into the training_text file randomly. And now I am able to get multiple pages. I have other doubt, Is there a way to integrate the model(Checkpoint) which we trained into Gosseract. Or can we test the model directly using a random image which contains text.


Tweet.java:39-40: Pull out the system proerties, same...

The puzzle 241-12bd8c89 (from #241) in src/main/java/com/amihaiemil/charles/github/Tweet.java (lines 39-40) has to be resolved: "Pull out the system proerties, same as was done in the aws layer, to simplify the unit tests."
The puzzle was created by amihaiemil on 17-Aug-17.
Estimate: 30 minutes, role: IMP.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

@charlesmike index this new page please

@charlesmike index this new page please

@amihaiemil thank you for the command, the indexing process started just now. I will let you know of the outcome shortly. In the meantime, you can check the logs here.

@charlesmike index this new page please

@amihaiemil Index command executed successfully!
Add the widget script to the website in order to make the search functionality available.
See logs for more details.
If you notice any inexplicable errors, please open an issue here

The puzzle 241-12bd8c89 has disappeared from the source code, that's why I closed this issue.


[ENHANCEMENT] Implement the healthcheck method for Prometheus datasources

Description
As a first step towards #1542 (and as my first PR, so feedback appreciated), this implements a healthcheck on Prometheus Datasources.
The DatasourceClient interface defines a healthcheck method, which
hasn't actually been implemented. This implements it for the PrometheusDatasourceClient
as a first step towards being able to test the health of a datasource.
The actual implementation calls the /-/healthy
endpoint in the Prometheus API, rather than running a query. I figured
this was a better way to test the health rather than running a dummy
query and checking the result, as running a query is a more expensive
and subjects us to the vagaries of PromQL, and potential
query timeouts which aren't directly related to whether the datasource
is configured correctly.
Checklist

[x] Pull request has a descriptive title and context useful to a reviewer.
[x] Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, IGNORE.
[x] All commits have DCO signoffs.

Amazing @sinkingpoint thanks for handling this.
LGTM 🥳


Refactor Test Data

Move all the test data into a separate data.json file to read from.

Created a data.js file with a global variable instead.


Update the FlipBIP Crypto Wallet app for the SDK version 0.100 f7

Hello!
Your FlipBIP Crypto Wallet app version 1.13 fails to build with the SDK version 0.100.0-rc f7. Please update the app in your repository and create a new pull request to the catalog repository with the updated manifest file.

IMPORTANT: Don’t forget to update the app version and commit version in the manifest file.

View logs
Flipper Team

I am again here!
Your FlipBIP Crypto Wallet app version 1.13 fails to build with the SDK version 0.100.1-rc f7. Please update the app in your repository and create a new pull request to the catalog repository with the updated manifest file.

IMPORTANT: Don’t forget to update the app version and commit version in the manifest file.

View logs
Flipper Team


update README for Edge v0.9.0

Description
Updated README for Edge v0.9.0
Changes include

[ ] Bugfix (non-breaking change that solves an issue)
[ ] Hotfix (change that solves an urgent issue, and requires immediate attention)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (change that is not backwards-compatible and/or changes current functionality)

Checklist

[x] I have assigned this PR to myself
[x] I have added at least 1 reviewer
[x] I have added the relevant labels
[ ] I have updated the official documentation
[ ] I have added sufficient documentation in code

recheck


Optionally raise an exception when settings file is not found

Hey!
I think it can be nice to have a flag (named settings_file_required, or something similar), that will be False by default to not break anything, but when set to True it will cause the loader(s) to raise an error when no settings file is found.
Thanks!

This would be great to have!


Fixes in support of Ecto 3, add index convenience methods

@scottmessinger here's my latest set of changes to the mongodb repo.
It's a bit difficult to work on this without it becoming a can of worms.  In the immediate term I have:

Added support for Erlang/OTP v24.
Added some convenience methods for dealing with indexes
Fixed the tests as far as I can
Fixed a bunch of warnings as far as I can
Fixed failures with MongoDb 4.x

My concerns:

I'm not 100% certain of the fixes I've made that might touch TLS/SSL - these need to be tested and verified properly.  Especially my replacement of the deprecated ^^^ operator with Bitwise.bxor.
I haven't attempted to make this backwards compatible
I haven't attempted to test this with any

Things I would like to do:

Give this repo the same treatment in terms of github actions so we can have some continuous validation.
Decide how far to go when it comes to backwards compatibility
Establish the best way of managing indexes for users.  Since these relate mostly to mongodb_ecto I will post back there.

Finally, I anticipate that I'm going to end up making more changes in this repo so you may wish to not accept this PR until things have settled down a bit.  If you spot any immediate problems please let me know.
Please let me know if there is anything else needed or desirable!

Thanks!

I'm not 100% certain of the fixes I've made that might touch TLS/SSL - these need to be tested and verified properly. Especially my replacement of the deprecated ^^^ operator with Bitwise.bxor.

Great question -- I know next to nothing about this layer. Maybe @ankhers could take a look -- he's the one that resolve the initial SSL issues with the driver. He went so far as to submit a patch to Erlang to make it work!

I haven't attempted to make this backwards compatible
IMO, we should definitely make it backwards compatible to some version of Mongo. We're on 4, so, at a minimum I think we'd need to support that for entirely selfish reasons.

Give this repo the same treatment in terms of github actions so we can have some continuous validation.
1000%

Establish the best way of managing indexes for users. Since these relate mostly to mongodb_ecto I will post back there.

I have no idea about this -- I always manage the indexes by hand, but integrating with mongodb_ecto certainly makes sense.

Please let me know if there is anything else needed or desirable!
Since you're doing work on this, it might be worth taking a look at https://github.com/zookzook/elixir-mongodb-driver @zookzook hasn't been interested in merging his work back into the upstream repo, but he has been very receptive to PRs and issues. Also, compatibility with Ecto hasn't been something he's looked at but I see no reason why the mongodb_ecto lib couldn't use his driver instead.

Based on @zookzook's sustained work on the driver, I tend to think it would be the better long term driver for mongodb_ecto, but, at the same time, I have no idea how many breaking changes it has. Also, unless there's a way to resolve namespace issues in Elixir that I'm not aware of, both drivers can't be used in the same project due to zookzook's use of Mongo as the top level module.
So, I have no idea what to do with that driver, but wanted to share my fuzzy, incomplete thinking on possibly using it instead of this driver for ecto.

Thanks @scottmessinger!  Unfortunately it seems like mongodb_driver has diverged from the original design of mongodb in a non-backwards compatible way, I guess because @zookzook had his own use cases.  There are some really nice things in mongodb_driver though I agree.  In my opinion it would be better for the community to merge these efforts one day.
For now I have found the easiest way forward to be to continue working on this driver.

@joeapearson Great news! Justin Wood has transferred the repos to our new elixir-mongo organization, so you can create the PR against that repo. Thanks @ankhers!


Possibility to disable update check

Is there a way to disable the update check mentioned here http://findbugs.sourceforge.net/downloads.html also as part of the maven plugin.
If no, could this be added to one of the next releases?

The version of findbugs with update check disabled is not deployed to the Central repository.
The best request for them would be to have a single version where there is a command switch to enable or disable the check.


Observatory: stop using pkg:browser

Should no longer be needed.
<script async type="application/dart" src="main.dart"></script>
<script async src="packages/browser/dart.js"></script>

to
<script defer src="main.dart.js"></script>

Also cleanup
runtime/observatory/.packages:6:browser:../../third_party/observatory_pub_packages/packages/browser/lib/
runtime/observatory/pubspec.lock:30:      path: "../../third_party/observatory_pub_packages/packages/browser"
runtime/observatory/pubspec.yaml:26:    path: ../../third_party/observatory_pub_packages/packages/browser
runtime/observatory/web/index.html:10:  <script async src="packages/browser/dart.js"></script>

We're going to deprecated pkg:browser – we need to remove all usage from the SDK
CC @a-siva @devoncarew

This seems to be breaking dart2js tests on firefox and safari, including observatory tests.

/cc @terrylucas @sigmundch

I made a comment on the CL - I believe the issue is not about removing package:browser, but about removing web_components. The webcomponents polyfill is necessary in old browsers like IE11 for anything using custom elements, so my guess is that removing that package is causing a lot of the issues.
@kevmoo - I recall you were trying to remove all dependencies on web_components, but can we? It seems it was removed from the DEPS a while back, but indirectly it was available in the repo is because it was pulled in by the observatory-packages dependency. We however have tests in html that rely on the polyfill script, so my thinking is that we should bring it back as an explicit dependency in DEPS. Separately, if observatory tests need it too, we should probably include it in the observatory_pub_dependencies as well.

I don't believe observatory needs it, we did a round of clean up couple of year back to remove all usage of web components from observatory.
If some other test was using the side effect that observatory-packages was pulling in web_components then the tests need to ensure that web_components is explicitly pulled in.

I believe the cleanup remove all uses of polymer, but it seems that observatory is built using a lot of custom elements (classes that extend HtmlElement), and use the custom element API (https://github.com/dart-lang/sdk/blob/master/runtime/observatory/lib/src/elements/helpers/tag.dart#L23)
While this is part of dart:html, this API works in modern browsers out of the box, but it needs the webcomponents-lite.js polyfill on old browsers.

Just had a quick chat with @kevmoo to clarify about next steps.
Here are my suggestions:

readd web_components to observatory - since it is used by the app and it is needed to test it in old browsers, it seems accurate to keep it around. If we do this first, we can unbreak the broken bots faster, then we can work on disentangling this dependency between html & observatory (which I also believe shouldn't exist).
make webcomponents-lite.js available in the SDK repo to use it in html tests (and hence remove that odd dependency). One way would be to readd web_components to sdk/DEPS (note that it is now moved to the dart-archive org, so we'd need to create a mirror for it pointing at https://github.com/dart-archive/web-components). Other ideas are to copy webcomponents-lite.js directly in the SDK repo.

Thoughts?

regarding use of custom elements API in observatory, we would like to get rid of it but yes until that is done we will add web_components back to observatory-packages.
and yes please open a new issue for adding web_components to sdk/DEPS so we don't go through the same failures when we remove web components from observatory after cleaning up custom elements API..

Thanks Siva. Filed: https://github.com/dart-lang/sdk/issues/32742

One other item to consider, do we really want observatory to be supported on older browsers?

I don't think we need to support older browsers.

good point, I agree - this is mostly a development tool. Similary DDC only works on modern browsers that support ES6

I will turn off these observatory tests on the older browsers and not bother with restoring web_components.

Turning off of observatory_ui tests on older browsers has landed. Closing this issue.

Fixed the dart2js builders requesting this file in https://dart-review.googlesource.com/c/sdk/+/60845


Load jar files defined in package.json descriptor

This adds a lookup for JAR files referenced in the package.json descriptor of a package.
{
  ...
  "jars": [
    "./jars/foobar.jar",
    "./jars/mySpecialJ2EE.jar"
  ]
}

This example descriptor replaces two addToClasspath() calls inside a module.

+1 and very helpful!
Maybe remove the "test" for now? I think the java parts are easier tested in java. And it's not like we have tests for the rest of our package.json-implementation yet :)

Looks like a new unit test.

In #285 is a basic integration test which integrates into the normal test workflow. I see no easy way to test the RhinoEngine class without running a real ringo instance.


Why are some images being rotated?

I've been working on integrating this library into a Drupal website so I dynamically pull images in and style them. A few issues I've come across:

some images get rotated?
the primary buffer seems a bit off? when scrolling you can see some images at the very top and bottom disappear before they are off the screen
when you scroll images don't have a gray background like in the demo, it just looks like a blank page until the 20px thumbnail appears.
the library is ignoring my 500px directory and only pulling pictures from the 250px directory, making some larger images upscale and look really bad. This also looks to be an issue on the demo. Unless I'm misunderstanding the documentation it looks like larger images should be using the 500px height images.

DEMO: http://photo.marknr.com/galleries
FIXES:

snippet below taken from demo. I'd suggest updating the JS to add this inline styling. Having the demo have custom styling may confuse people such as myself as I was expecting my demo to look the same.

.pig-figure {
    background-color: #D5D5D5;
}

Hey! Glad to see you're using this. Here's some thoughts:

I think this might be an issue with the images you uploaded. For example, this image from your site appears to be rotated for me.  The library will pull down the image however you have it.

This is definitely an issue, you'll have the fix soon. The reason is that I made an assumption that my positioning logic assumes that the parent element is rooted on the top of the screen, which is obviously not the case. Opening #5 for this.

You are right, and I will add this. Opening #6 for this.

What screen size are you having this problem on? By default, all screen sizes lower than 1920px display 250px-tall images. You can change this by passing in a custom getImageSize function:

var pig = new Pig(imageData, {
  urlForSize: function(filename, size) {
    return "http://photo.marknr.com/sites/default/files/styles/pig_" + size + "px/public/" + filename;
  },
  // this is the default, you can implement your own function:
  getImageSize: function(lastWindowWidth) {
    if (lastWindowWidth <= 640)
      return 100;
    else if (lastWindowWidth <= 1920)
      return 250;
    return 500;
  }
}).enable();

FYI 2 and 3 are fixed, let me know if I've solved your issues for 1 and 4.

Thanks. As far as issue one goes, I think you are correct that it is an issue with the image itself.
The way I have this setup, I upload the full resolution image to Drupal (http://photo.marknr.com/sites/default/files/IMG_1229.JPG), then use an image styles module in order to resize and cache the images on the fly. This creates multiple copies of the image at 20, 100, 250, and 500 px tall.
Looking at the original image I uploaded the orientation is correct. So I believe this is an issue with the image styles module rotating the image while resizing it, before it gets rendered on the page.
Thanks for your help (and great library), I will check out the latest build now and see how it works for me!

Just in case anyone else is using Drupal and has the same rotation issue, this fixed my issue. Weird cause I made sure before uploading my images that the orientation in the exif data was cleared out but nonetheless, it resolved the issue.
https://www.drupal.org/project/image_exif_autorotate

Glad you were able to fix the issue! Let me know if you have any other problems


gnome.gnome-color-manager: 3.32.0 -> 3.36.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for gnome.gnome-color-manager is: "A set of graphical utilities for color management to be used in the GNOME desktop"
meta.homepage for gnome.gnome-color-manager is: ""
meta.changelog for gnome.gnome-color-manager is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
Warning: no invocation of /nix/store/acynkvz0bdc6ys5vdlz2lgpfy3myihap-gnome-color-manager-3.36.0/bin/gcm-viewer had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/acynkvz0bdc6ys5vdlz2lgpfy3myihap-gnome-color-manager-3.36.0/bin/gcm-import had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/acynkvz0bdc6ys5vdlz2lgpfy3myihap-gnome-color-manager-3.36.0/bin/gcm-inspect had a zero exit code or showed the expected version
/nix/store/acynkvz0bdc6ys5vdlz2lgpfy3myihap-gnome-color-manager-3.36.0/bin/gcm-picker passed the binary check.
1 of 4 passed binary check by having a zero exit code.
0 of 4 passed binary check by having the new version present in output.
found 3.36.0 with grep in /nix/store/acynkvz0bdc6ys5vdlz2lgpfy3myihap-gnome-color-manager-3.36.0
found 3.36.0 in filename of file in /nix/store/acynkvz0bdc6ys5vdlz2lgpfy3myihap-gnome-color-manager-3.36.0

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

0 x86_64-linux rebuild(s)
0 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
0 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
gnome.gnome-color-manager

Instructions to test this update (click to expand)

Build yourself:
nix-build -A gnome.gnome-color-manager https://github.com/Kranzes/nixpkgs/archive/5eda15492b9fccd1ac2e27b71bd6a95b39a0779e.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/acynkvz0bdc6ys5vdlz2lgpfy3myihap-gnome-color-manager-3.36.0
ls -la /nix/store/acynkvz0bdc6ys5vdlz2lgpfy3myihap-gnome-color-manager-3.36.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

3 packages built:

gnome.gnome-color-manager
gnome.gnome-control-center
phosh

Maintainer pings
cc @hedning @jtojnar @dasj19 @maxeaubrey for testing.

Duplicate of https://github.com/NixOS/nixpkgs/pull/84734.


Joining efforts around NEMO in Xarray?

Pinging those who either contributed to / showed interest in contributing to Xorca / Nemo-CF: @rcaneill @malmans2 @NoeLahaye @swantjebastin @christophrenkl @jk-rieck  @benbovy
Should we have a meeting some time soon and find out if and how we could join efforts in making work with NEMO data in Xarray easier?
If you'd join, please indicate this here: https://terminplaner4.dfn.de/dyP4ZYRDghcqfOAw

Thanks Willi for organizing this! Nice idea to share the efforts :D

Hi! Yes, good idea. I am currently working with the MITgcm and will not have much time to fiddle around with NEMO and xarray. But I'll try to keep track of things happening and maybe contribute again towards the end of the year or next year...

Hi,
sounds good. I don’t know precisely how I could contribute but it’s definitively worth discussing it. I am working on the analysis of a North Atlantic high-res run at the moment (eNATL60).
See you,
Noé

Le 21 mai 2021 à 20:08, jk-rieck @.***> a écrit :
Hi! Yes, good idea. I am currently working with the MITgcm and will not have much time to fiddle around with NEMO and xarray. But I'll try to keep track of things happening and maybe contribute again towards the end of the year or next year...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/willirath/xorca/issues/43#issuecomment-846143016, or unsubscribe https://github.com/notifications/unsubscribe-auth/AINWPQ762PE4NFBHWN2NFMTTO2ORRANCNFSM45JO3QFA.

Thanks for the initiative! I'm currently not working with NEMO too much, but I'm happy to see if I can help anywhere.

Hi Willi,
nice idea. I don't have much time at the moment, so not sure how much I can really contribute, but I'm definitely interested...
Swantje

Hackmd pad with a draft for design docs: https://hackmd.io/@SOVILRymSvOC89Uhkmln_w/SyiISnoKO

cc: @pckw

Great idea @willirath! I think something built around xorca would be great to replace the classic CDFTOOLS. I've got some examples for computing stream functions somewhere that I'm happy to share.


debugging module.hot.accept

I use hot-reloading in my application, sometimes it works, sometimes, when I restructure my app, it doesn't:
I have a class ReloadableBehaviour that I instantiate like this: new Reloadable...(filename)
In the class I use something like
module.hot.accept("behaviour/" + this.filename, () => {
    console.log("test");
    ...
});

If I change the file referenced by filename, webpack tells me that the module isn't accepted.
I even tried
let id = require.context('behaviour/').resolve(this.filename);
console.log("accepting: ", id);
module.hot.accept(id, () => {
...
})

which shows the correct id is being passed to module.hot.accept, but it doesn't work nevertheless.
How can I debug this?

HMR is kinda finicky, and require.context is finicky as well. I usually start with a known working version and then move that to the code that isn't working and then watch when it fails. In your case it might be that the module that calls module.hot.accept is not the module that is doing the require()ing (i.e. is not the parent module)
Here's a version that should be working:

var context = require.context("./filesToLoad", false, /\.js$/);
var modules = {};
context.keys().forEach(function (key) {
  var module = context(key);
  modules[key] = module;
  customReloadLogic(key, module, false);
})

if (module.hot) {
  module.hot.accept(context.id, function () {
    //You can't use context here. You _need_ to call require.context again to
    //get the new version. Otherwise you might get errors about using disposed
    //modules
    var reloadedContext = require.context("./filesToLoad", false, /\.js$/);
    //To find out what module was changed you just compare the result of the
    //require call with the version stored in the modules hash using strict
    //equality. Equal means it is unchanged.
    var changedModules = reloadedContext.keys()
      .map(function (key) {
        return [key, reloadedContext(key)];
      })
      .filter(function (reloadedModule) {
        return modules[reloadedModule[0]] !== reloadedModule[1];
      });
    changedModules.forEach(function (module) {
      modules[module[0]] = module[1];
      customReloadLogic(module[0], module[1], true);
    });
  });
}

function customReloadLogic(name, module, isReload) {
  console.log("module " + name + (isReload ? " re" : " ") + "loaded");
}

Save this to hmr_test.js in an empty directory and run
$ mkdir filesToLoad
$ echo "console.log('a')" >> filesToLoad/a.js
$ npm install webpack webpack-dev-server
$ ./node_modules/.bin/webpack-dev-server hmr_test.js  --hot --inline

That should work. Then change hmr_test piece by piece to make it look like what you're doing now and let us know what change breaks it.

I've published the example to github so it's easier to get started: https://github.com/jauco/webpack-hot-module-reload-with-context-example @sokra any non-idiomatic code that I should fix?

I think the problem arises when you module.hot.accept a require-context and inside the callback function require the module again.

module.hot.accept doesn't accept expressions. Only compile-time constants. Just like require. webpack need to be able to resolve it while compiling.

@sokra: I know, that is not the problem I was facing.
I think another "problem" is that module.hot.accept only registers one callback per given context, is that right? I basically had a class which module.hot.accepted a filename. I instantiating the class multiple times, but only one callback fired.
It that a global thing or is it per file?
Maybe add a warning to the console that accept-handlers are being overwritten?

You can only have one accept handler, but feel free to implement multiple handlers on top of this:
var handlers = [];
module.hot.accept(function() {
  handlers.forEach(function(handler) { handler() });
});

handlers.push(function() { /* a */ });
handlers.push(function() { /* b */ });

It that a global thing or is it per file?

module-level

@jauco I used your solution, yet I'm still getting this warning: [HMR] unexpected require(7) from disposed module 9. Any idea what might cause that?

Closing as this was answered.


[Firefox] HTTPS Only Mode redirects to https://ipfs-cid.ipfs.localhost/

To Reproduce

Enable Use Subdomains in IPFS Companion.
Enable Enable HTTPS-Only Mode in all windows. (Bottom of Settings: Security.)
Go to https://ipfs.io/

Expected behavior
Should redirect to http://docs.ipfs.io.ipns.localhost:8080/. Firefox may show an interstitial asking you to confirm navigation to an unencrypted website.
Actual behavior
IPFS redirects to https://docs.ipfs.io.ipns.localhost:8080/. The request times out. Firefox never suggests downgrading to HTTP because the browser explicitly navigates directly to HTTPS. (It only prompts when the browser intervenes and attempts to redirect to HTTPS.)
Desktop (please complete the following information):

OS: Linux
Browser: Firefox
Version: 92

@da2x I was unable to replicate this in Firefox 92.0.1 on Linux.

Do you have any other extensions installed that could do this? (eg. https://www.eff.org/https-everywhere)?
Does the problem go away when you disable HTTPS-Only mode or add an exeption for docs.ipfs.io.ipns.localhost:8080, as described here?

Do you have any other extensions installed that could do this?

No. Reproduces for me with a clean profile, just those two settings, and the IPFS companion.

Does the problem go away when you disable HTTPS-Only mode

Yes.

or add an exeption for docs.ipfs.io.ipns.localhost:8080, as described here?

The exception thing doesn’t show (indicating that the URL was opened to https: directly instead of being redirected from http: to https:.). I can’t reproduce on Windows, but it reproduces on macOS and Fedora.


[Proposal]: enable github discussions, switch issues to core team backlog

Rxjs core team uses issues (https://github.com/ReactiveX/rxjs/issues) as backlog for core team agenda. But also meanwhile it was public place to collect feature request / bug report / other suggestions makes core team hard to manage own issues.
Github discussions beta (https://github.com/ReactiveX/rxjs/discussions) is enabled for rxjs repo recently, and I would like to suggest to use it for generic discussions to switch issues for core team backlog.
My current proposal is:

core team will use issues as own backlog to keep any bug / roadmap items
any contributor report bugs uses issues as well: but it is strictly required to follow template / provide repro case, otherwise core team will redirect to use discussions/q&a
discussions will be place to freely post any q&a / feature request / etcs, depends on roadmap it'll be moved into issues
Show and tell (or to be renamed) will be used to share any user-land implementations
Categories in discussions will likely to be change over time.

/cc @benlesh @cartant @niklas-wortmann thoughts?

:+1:

As core team member has agreed, I'll proceed in these order

close this issue
create new issue to be pinned to instruct to use discussions

over time, will collect feedback in discussions to update its categories.


vscode keeps prompt “python quit unexpectly”

@iXingo commented on Sat Mar 09 2019
Environment data

VS Code version: 1.32.1
Extension version (available under the Extensions sidebar): python 2019.2.5558
OS and version: macOS X Mojave version 10.14.3
Python version (& distribution if applicable, e.g. Anaconda): python3.7.2 (installed by Homebrew)
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): integrated terminal
Relevant/affected Python packages and their versions: removed all the python extension but the python 2019.2.5558

Expected behaviour
normal
Actual behaviour
keeps prompt me "python quit unecpectly"
Steps to reproduce:

install python3 using home-brew (python3.7.2)
open a python3 file (.py)
##actually I can get expected result using debug, but the prompt still keeps remind me, when I switch to Jedi, vscode can work fine##

Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
nothing

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
Nothing

@mdalpi commented on Mon Mar 11 2019
I'm experiencing what it appears to be the same thing, here's my report: https://pastebin.com/t1HM4Z54

@iXingo commented on Tue Mar 12 2019

I'm experiencing what it appears to be the same thing, here's my report: https://pastebin.com/t1HM4Z54

Can not open your link...

#740


Export CDK doesn't work when stack contains imported auth

Before opening, please confirm:

[X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v14.18.0
Amplify CLI Version
7.6.19
What operating system are you using?
mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Amplify Categories
auth
Amplify Commands
export
Describe the bug
When amplify backend stack contains imported auth (cognito user pool), amplify export command throws an error.
Expected behavior
CDK should be generated successfully.
Reproduction steps

amplify init
amplify import auth
amplify export

GraphQL schema(s)

# Put schemas below this line

Log output

# Put your logs below this line
✖ Generating and writing root stack
Cannot read property 'parameters' of undefined
TypeError: Cannot read property 'parameters' of undefined
    at ResourceExport.fixNestedStackParameters (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/amplify-provider-awscloudformation/src/resource-package/resource-export.ts:102:59)
    at Object.run (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/amplify-provider-awscloudformation/src/export-resources.ts:50:39)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at exportBackend (/usr/local/lib/node_modules/@aws-amplify/cli/src/commands/export.ts:74:5)
    at Object.run (/usr/local/lib/node_modules/@aws-amplify/cli/src/commands/export.ts:62:5)
    at Object.executeAmplifyCommand (/usr/local/lib/node_modules/@aws-amplify/cli/src/index.ts:373:5)
    at executePluginModuleCommand (/usr/local/lib/node_modules/@aws-amplify/cli/src/execution-manager.ts:178:3)
    at executeCommand (/usr/local/lib/node_modules/@aws-amplify/cli/src/execution-manager.ts:30:5)
    at Object.run (/usr/local/lib/node_modules/@aws-amplify/cli/src/index.ts:205:5)

Additional information
No response

Hey @ilkerburakkurt :wave: thanks for taking the time to file this! I've marked this as a bug to log a more helpful error message when attempting to export a stack with imported auth 🙂

Hi @josefaidt, If It could be able to export a reference to the resource as well, that would be fantastic.

The fix here is to improve the error message from amplify export to message that export of imported auth is not supported.

Is this true of any imported resource? Seeing this error message when exporting an Amplify project that imports DDB tables and S3 bucket, but not an auth module. TypeError: Cannot read property 'parameters' of undefined     at ResourceExport.fixNestedStackParameters

Hi !
Have same issue as well with amplify cli 9.1.0.
🛑 Cannot read property 'parameters' of undefined
TypeError: Cannot read property 'parameters' of undefined
    at ResourceExport.fixNestedStackParameters (/snapshot/repo/build/node_modules/amplify-provider-awscloudformation/lib/resource-package/resource-export.js:144:59)
    at Object.run (/snapshot/repo/build/node_modules/amplify-provider-awscloudformation/lib/export-resources.js:94:39)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async exportBackend (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/commands/export.js:86:9)
    at async Object.run (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/commands/export.js:74:9)
    at async Object.executeAmplifyCommand (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/index.js:292:9)
    at async executePluginModuleCommand (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:142:5)
    at async executeCommand (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:40:9)
    at async Object.run (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/index.js:165:13)```

Is there any update on this one please?

Still getting this error:
✖ Generating and writing root stack
🛑 Cannot read property 'parameters' of undefined
TypeError: Cannot read property 'parameters' of undefined
    at ResourceExport.fixNestedStackParameters (/snapshot/repo/build/node_modules/amplify-provider-awscloudformation/lib/resource-package/resource-export.js:144:59)
    at Object.run (/snapshot/repo/build/node_modules/amplify-provider-awscloudformation/lib/export-resources.js:94:39)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async exportBackend (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/commands/export.js:86:9)
    at async Object.run (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/commands/export.js:74:9)
    at async Object.executeAmplifyCommand (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/index.js:292:9)
    at async executePluginModuleCommand (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:142:5)
    at async executeCommand (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:40:9)
    at async Object.run (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/index.js:165:13)

Could really use a better error message, updated documentation, or a workaround

Same, amplify really sucks... I wish I could simply use the graphql transformer as part as my CDK...

Got the same issue as well here

Hi @josefaidt, do you have any news on this ? we are facing the same issue with amplify 10.3.0 and 10.3.1.
The issue is that we cannot really understand what is going wrong as the message is not informative and there is no exhaustive documentation and troubleshooting about the export.
Also, the diagnose --send-report stop before sending, that reduce drastically the help we can receive.

Was anyone able to find a work-around for this issue? I've invested a lot of time on building my app using amplify, and can't afford to abandon amplify altogether because of this :(

The error is obscure:

✖ Generating and writing root stack
🛑 Cannot read properties of undefined (reading 'parameters')

During generating the root stack the error occurs because the nestedStack will not exist so .parameters is null. thus the error.
buildOverridesEnabledResources is only called during init with the context while during push it is called with both the context and a resource tree.
So being that push calls prepareBuildableResources which does the same 'packageResource' as packageBuildWriteResources does when it invokes packageResources, perhaps
buildOverridesEnabledResources should be called after packageBuildWriteResources calls packageResources.

This is still not working in 12.7.1 Only way I have found to bypass this for s3 imported bucket is doing a amplify remove storage and making sure to not push those changes, then exporting it. But it would be great to have a export of reference to the resource.

Hey @DarylSerrano, @joekiller, and folks in the thread :wave: apologies for the delay here but I wanted to provide a quick update! Unfortunately amplify export does not currently support exporting when an imported resource exists in the project, and with this bug we aim to improve the error messaging to communicate this limitation.
Moving forward we will look into the suggested solution from @joekiller

@josefaidt or @nadetastic with Dan's comment here, on #12631, it makes me think perhaps this isn't needed anymore? Could y'all give me a gut check. I haven't kept up much recently.

I'm seeing this error as well. Googling it got me here. The error message is still wholly ambiguous.
✖ Generating and writing root stack
🛑 Cannot read properties of undefined (reading 'parameters')

I'd also like to request additional docs are added here to reference limitations like this.


Unit Testing:   MockNgRedux.getSelectorStub for @select with state => someFn(state)

This is a...

[ ] feature request
[ ] bug report
[x] usage question

What toolchain are you using for transpilation/bundling?

[x] @angular/cli
[ ] Custom @ngTools/webpack
[ ] Raw ngc
[ ] SystemJS
[ ] Rollup
[ ] Other

Environment
NodeJS Version: 8.11.2
Typescript Version: ~3.1.3
Angular Version: ^7.0.1
@angular-redux/store version: ^9.0.0
@angular/cli version: (if applicable)
OS:
Code Example
Here's my selector in my component class
@select(state => getItems(state)) items: Observable<Item[]>;

where getItems is a selector function that returns items from the state that match certain criteria
Unit Test
I'm attempting to set up a unit test for this selector, following the documentation here:
https://github.com/angular-redux/platform/blob/master/packages/store/articles/intro-tutorial.md#unit-testing-selections
My test:
const stub: Subject<Item[]> = MockNgRedux.getSelectorStub<AppState, Item[]>();
const expectedValue = // mocked object representing the state;

stub.next(expectedValue);
stub.complete();

componentUnderTest.items.subscribe(
  actualValues => expect(actualValues).toEqual(expectedValue),
  null,
  done
);

But I'm getting this error in my test:
Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.

Questions:
Is there a way to test a selector which uses a selector function with a parameter of the entire state?
I'm using reselect for some of my selectors, but not all, and it's not working for either (see related issue: https://github.com/angular-redux/store/issues/533)

My personal approach would be to ensure that you are unit testing the selector function itself only. So in your case, there should be an isolated suite of tests for getItems. Since you would fully exercise that function in a separate suite, I would skip it in your Component suite. I will however take a look at this within our suite.

Hi Andrew,
Thanks for the reply. Yes, I am testing that selector function in its own suite of tests, for sure. However, we're aiming for 100% coverage in our Component suites, and Karma is complaining those functions/lines aren't covered.
Perhaps I'll try mocking the function response through a spy. Let me know if you come up with any other solutions.


Don't toggle system menu in interrupt

Defers the switch in/out of the system menu into the main loop, rather than the interrupt where - potentially - strange things could happen.

This is the patch from #492


Feature/upgrade to go 1.16

Fixes #233

Both integration test and release build still works: https://github.com/patrickpichler/dynatrace-monitoring-as-code/runs/2216388529?check_suite_focus=true


Merge in the on_configuration_change config on relevant pages

What are you changing in this pull request and why?

I added the order in which materializations are run to the materialized.md reference page. It's important and helpful information. I do not know how to make sure the same snippet occurs on multiple doc pages in a DRY way.
I added on_configuration_change to the possible model configurations list.
I added links to the on_configuration_change page to other pages that may have an interaction with it.

I did not:

Attempt to fully integrate on_configuration_change into the doc pages. I linked to it so it's at least on those pages. If you want to edit them more, they are easily gathered for you in this PR. I don't promise it's a complete list.

Questions I think are relevant to include or clarify:

What counts as a configuration change? If it's only for materialized views, then you probably can't mean materialization type changes.
How does on_configuration_change interact with --defer?
When you say "model does not exist in the provided path, do you mean database structure or file structure? Does it understand identifier and alias? If it's database structure and the database object name already exists because it was added manually outside of dbt will it drop/delete that object even though it has no information about it(and hence can't know whether it's allowed to have the power to drop/delete it)?
When you say "when the model exists, but has a different type" do you mean materialization type?
"Determine whether to apply the configuration changes" is both vague and disconcerting. dbt could decide not to follow the on_configuration_change specified by the dbt AE?
How does this interact with grants?
I assume it has no interaction with pre-hooks, post-hooks, on-run-start, on-run-end, correct?
What's the error message and where is it displayed if you specify on_configuration_change and your adapter doesn't support it?

Please go ahead and change it however you want as I'm unlikely to get back to this PR to make any changes myself in a timely manner.
Checklist

[x] Review the Content style guide so my content adheres to these guidelines.
[x] For docs versioning, review how to version a whole page and version a block of content.
[x] Add a checklist item for anything that needs to happen before this PR is merged, such as "needs technical review" or "change base branch."
[ ] May need technical review as is. Will need technical review if any of the questions posed have answers added in this PR.

Will take up the additional questions as an issue to address!


New action to GET all_docs

Add an action to GET the /{db}/_all_docs resource using default query parameters.

Closed as out-of-scope for this crate's new purpose, as of v0.6.0.


Error modifying/updating child components in 0.18.0

I have encountered an error when updating child components in 0.18.0 that was not present in 0.17.2.  I have a parent table with child rows created like so:

    {% for payment in payments_display %}
        {% unicorn 'payment_row' parent=view payment=payment key=payment.id %}
    {% endfor %}

Each child row has a checkbox for the user to select the row for further processing:

        <input u:click="toggle_check" type="checkbox" id="payment_{{ payment.id }}" {% if selected %} checked {% endif %} {% if disabled %} disabled {% endif %}/>
         {{ payment.id }}

    {{ payment.payment_date }}
    ...

When the checkbox is checked/unchecked, the child row add/removes itself from the list of selected rows on the parent, as defined in the component's toggle_check method:
class PaymentRowView(UnicornView):
    payment = None
    selected = False
    disabled = False

    def mount(self):
        if self.payment['ucrmqb_posted'] == True:
            self.disabled = True

    def toggle_check(self):
        self.selected = not self.selected

        try:
            idx = int(self.payment['id'])
        except:
            print('Error converting index')
            return

        selids = self.parent.selected_payment_ids
        selpays = self.parent.selected_payments

        if selids.count(idx):
            sidx = selfids.index(idx)
            selids.pop(sidx)
            selpays.pop(sidx)

        else:
            selids.append(idx)
            selpays.append(self.payment)

Toggling the checkbox worked fine and as expected in 0.17.2 and prior versions.  In version 0.18.0, I get the following error when clicking the checkbox:
Internal Server Error: /unicorn/message/payment_row
Traceback (most recent call last):
  File "/Users/chris/miniconda3/envs/uqb/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/Users/chris/miniconda3/envs/uqb/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/Users/chris/miniconda3/envs/uqb/lib/python3.9/site-packages/django_unicorn/decorators.py", line 59, in timed
    result = wrapped(*args, **kwargs)
  File "/Users/chris/miniconda3/envs/uqb/lib/python3.9/site-packages/django_unicorn/views.py", line 32, in wrapped_view
    return view_func(*args, **kwargs)
  File "/Users/chris/miniconda3/envs/uqb/lib/python3.9/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/Users/chris/miniconda3/envs/uqb/lib/python3.9/site-packages/django/views/decorators/http.py", line 40, in inner
    return func(request, *args, **kwargs)
  File "/Users/chris/miniconda3/envs/uqb/lib/python3.9/site-packages/django_unicorn/views.py", line 719, in message
    json_result = _handle_component_request(request, component_request)
  File "/Users/chris/miniconda3/envs/uqb/lib/python3.9/site-packages/django_unicorn/views.py", line 576, in _handle_component_request
    return _process_component_request(request, component_request)
  File "/Users/chris/miniconda3/envs/uqb/lib/python3.9/site-packages/django_unicorn/views.py", line 278, in _process_component_request
    component = UnicornView.create(
  File "/Users/chris/miniconda3/envs/uqb/lib/python3.9/site-packages/django_unicorn/decorators.py", line 59, in timed
    result = wrapped(*args, **kwargs)
  File "/Users/chris/miniconda3/envs/uqb/lib/python3.9/site-packages/django_unicorn/components.py", line 795, in create
    component = _construct_component(
  File "/Users/chris/miniconda3/envs/uqb/lib/python3.9/site-packages/django_unicorn/decorators.py", line 59, in timed
    result = wrapped(*args, **kwargs)
  File "/Users/chris/miniconda3/envs/uqb/lib/python3.9/site-packages/django_unicorn/components.py", line 787, in _construct_component
    component.mount()
  File "/Users/chris/proj/uqbproj/unicorn/components/payment_row.py", line 13, in mount
    if self.payment['ucrmqb_posted'] == True:
TypeError: 'NoneType' object is not subscriptable
[01/Feb/2021 02:03:44] "POST /unicorn/message/payment_row HTTP/1.1" 500 16651

Is this a bug or do I have something incorrect?

Sorry about this regression. This is a bug and it's related to kwargs being passed into a component (similar to #140). I've been trying to figure out a decent solution for most of today, but for now I would suggest to stay on 0.17.2. I am close to having a solution, but I would like to do more testing before releasing it so I don't create more problems. Sorry again for the issue -- I will update this issue when I release a fix (hopefully within the next day).

Will do.  I reverted back to 0.17.2.  No problem for me to continue using that version for the time being.  I appreciate your quick response!

I just released 0.18.1 which should allow a component's parent to be set correctly again. Closing for now, but let me know if you run into other issues!


fixed auth login with client secret

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Nested Recyclerview

Can you add drag select in  Nested Recyclerview when all the albums are displayed, and also a FAB with the bin to delete quickly the images ?
I know that these features are present when the album is open, but I think that is more comfortable and immediate deleting images in the home than opening the album
Sent from my Google Nexus 5 using FastHub

The drag select in the Nested ReyclerView Style is currently not possible, since I am using <a href="https://github.com/MFlisar/DragSelectRecyclerView\">this library for the feature. And the library currently doesn't support drag select in horizontal recyclerViews.

Could you maybe add something like this to the actionbar: https://goo.gl/hxvsdC ?


rework RealVirtuality rule

SteamDB app page links to a few games using this
#365
Brief explanation of the change
closes #365

doesn't match https://steamdb.info/app/91330/