🐛 fix router notfound create 404.razor

The NotFound property of the Router component is no longer working in Blazor Web App. This is because the NotFound property is now deprecated in favor of using a custom 404.razor page.
To fix this issue, you need to create a new 404.razor page in your Blazor Web App project. The 404.razor page should return a 404 status code and render a custom 404 page.

@neozhu,
Thanks a lot of sharing this information. I was funny enough looking into this in one of my own projects yesterday as I was confused why my NotFound property wasn't working anymore. Since I am on vacation since today I let it go, as I had to pack my bags, but now at least I know what is going on!
Kind regards,
Bram

merry christmas,and Enjoy your vacation!

merry christmas,and Enjoy your vacation!

Merry Christmas to you as well, and thank you! 😊


Add zh_cn.json file

This is Chinese translation.
Due to a mistake(or ignorance) when using %s, Chinese translation seems to be weird, just like the picture below(look at the action bar):

The locations of the amount and the owner of the book are reversed. In English it may look like this sentence: From 1 (the amount of items learned) you learned Snaplight5712(the owner of the book) items.
This is because in one sentence there're 2 %s.
The original sentence is "You have learned %s item(s) from %s." Now call the former %s as %s1, and the latter as %s2. In Chinese, I must translate the sentence into "你从%s2中学习了%s1个物品。"See? The order of %s is different. However, when replacing %s, the program still use the original order, making %s2 replaced with %s1, %s1 replaced with %s2. The wrong %s corrsepondence leads to confusion and misleading.

The src/generation folder is overridden in its entirety regularly, the generation branch under the lang folder is where this should be

Thanks for tellling me that. I would solve this problem.

Sorry for being inexperienced. In fact I don't know how to add the Chinese translations by this way. (I used to adding a lang file or submitting translations on Crowdin) Should I add a zh_CN folder and zh_CN.ts or just add the zh_CN folder?


Add --all-principals flag to convinience commands

Feature or problem description
Based on discussion - currently users can add * to --service-account and * to user to enable all principals.
While this is ok we should also add additional flag that will implicitly document and enable adding acl rule for all users/and services accounts

Yes, I was about to reply with the same point as @rkpattnaik780.


.env Missing ?

Hiya!
I'm keen to have a test and play but upon building using
 npm run programs:build

Your build script is failing on #L10
cat: .github/.env: No such file or directory

I can see in your .gitignore the .env file is added #L13
Is this expected?

See https://github.com/Jac0xb/lighthouse/pull/12 if you'd like to build the programs
I am refactor the codebase

Thank you looks great @Jac0xb
Closing Issue :pray:


Readme.md doesn't have Vulkan listed

I see that there is a tag for it but it is not listed in the Readme.md, so is that for marketing or was it forgotten particularly? Because if there is full support now I imagine people would really be interested in knowing right off the bat if it had Vulkan support. :)

Ahh I didn't see this https://github.com/bkaradzic/bgfx/issues/1647 due to "Vuklan" instead of "Vulkan" lol. Nevermind then? How's progress on Vulkan anyway?

Not fully implemented, and it's not advertised in README.

That's what prompted the confusion.

Yes, there will be VK at some point, no ETA.
But from bgfx API user POV having or not having VK doesn't change anything. You can have your game running with bgfx, and once VK completely added you would be able to use it without changes to your code.


Documentation on how to create new application

I've got the development version of Toga setup in a venv and have built toga_chart. The example app runs great with python -m chart. I can also create a new app of my own starting from the cookiecutter templates and including toga_chart, matplotlib, etc. but can still only get it to work using python -m helloworld
I cannot figure out how to create and run the application using setup.py. I want to be able to create a macOS version for testing, and then deploy it to an iOS simulator or device.
If I run python setup.py macos -s for example, I get the following errors and the app will not run:
/Users/seth/anaconda3/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'install_package_data'
  warnings.warn(msg)
running macos
 * Writing application template...
Template Python-macOS-template succesfully updated.
Project template: /Users/seth/.cookiecutters/Python-macOS-template
 * Determining best support package...
 * Installing support package...
Support package: https://pybee-briefcase-support.s3-us-west-2.amazonaws.com/Python-Apple-support/3.7/macOS/Python-3.7-macOS-support.b1.tar.gz
Already downloaded
 * Installing requirements...
No requirements.
 * Installing platform requirements...
Collecting toga-cocoa
  Using cached https://files.pythonhosted.org/packages/6f/6b/29dbc42154ef3134b54ef366b9f1160667a9c73c2eb6f3510e72f4e3549e/toga_cocoa-0.2.15-py3-none-any.whl
Collecting rubicon-objc>=0.2.8 (from toga-cocoa)
  Using cached https://files.pythonhosted.org/packages/c7/1d/ef53fc55e035f4502a120d722d05b612830ffb0a5e923440f83bea091c7b/rubicon_objc-0.3.1-py2.py3-none-any.whl
Collecting toga-core>=0.2.15 (from toga-cocoa)
  Using cached https://files.pythonhosted.org/packages/81/4f/e79a89d856b0a5127c0438447823153052a984eeafa7ff23e0b0102a3538/toga_core-0.2.15-py3-none-any.whl
Collecting colosseum>=0.1.6 (from toga-core>=0.2.15->toga-cocoa)
  Using cached https://files.pythonhosted.org/packages/bf/3d/f7aa7fcac41f5c25a1b0a66b254cf62d4f47e0f23f2e4f314961ba922d41/colosseum-0.2.0-py3-none-any.whl
ERROR: toga-dummy 0.3.0.dev12 has requirement toga-core==0.3.0.dev12, but you'll have toga-core 0.2.15 which is incompatible.
ERROR: toga 0.3.0.dev12 has requirement toga-cocoa==0.3.0.dev12, but you'll have toga-cocoa 0.2.15 which is incompatible.
Installing collected packages: rubicon-objc, colosseum, toga-core, toga-cocoa
Successfully installed colosseum-0.2.0 rubicon-objc-0.3.1 toga-cocoa-0.2.15 toga-core-0.2.15
 * Installing project code...
Processing /Users/seth/mobile_python/beeware/toga_chart/examples
Installing collected packages: chart
  Running setup.py install for chart ... done
Successfully installed chart-0.0.1
 * No icons defined - using default...
 * No splash screen defined...

Installation complete.
Building DMG file...
Starting Chart.app
LSOpenURLsWithRole() failed with error -10810 for the file /Users/seth/mobile_python/beeware/toga_chart/examples/macOS/Chart.app.

App started.

I see that the setup.py file references non-development versions of toga. If I update the setup.py to include toga-cocoa==0.3.0.dev12 (which is what I have installed in my venv, I get this error:
Collecting toga-cocoa==0.3.0.dev12
  ERROR: Could not find a version that satisfies the requirement toga-cocoa==0.3.0.dev12 (from versions: 0.1.1, 0.1.2, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9, 0.2.10, 0.2.11, 0.2.12, 0.2.13, 0.2.14, 0.2.15, 0.3.0.dev1, 0.3.0.dev2, 0.3.0.dev3, 0.3.0.dev4, 0.3.0.dev5, 0.3.0.dev6, 0.3.0.dev7, 0.3.0.dev8, 0.3.0.dev9, 0.3.0.dev10, 0.3.0.dev11)
ERROR: No matching distribution found for toga-cocoa==0.3.0.dev12

How do I tell setup.py to use the current head of toga? Is that even the right question to be asking?

Definitely the right question; unfortunately, there isn't a good answer at present.
The issue is that briefcase uses "pip install" to install dependencies; and you can't pip install a development version based on a version number that isn't on PyPI.
There are a couple of possible workaround solutions:

Specify the toga dependencies using Github URLs. This will enable pip to install the package by downloading the package
Use a local DevPI instance as a proxy for PyPI. This would allow you to locally "publish" an unreleased version of Toga. However, this is a bit more overhead than most are going to be willing to use.
Don't use -s to start the app, ignore the error that is generated during installing dependencies, and manually install the packages into the app. pip install --target <path to app_packages dir> can be invoked on the development version to install it into the app (remember - a macOS app is acutally just a set of directories in a known layout).

There are three related briefcase issues here.
The first is beeware/briefcase#73. A "developer mode" would enable certain packages to be installed based on what is available as local checkouts.
The second has been reported in a bunch of different forms - and that is improving error handling. The log you describe on python setup.py macos -s contains a fatal error - but that isn't being caught and reported to the user effectively. The LSOpenURLsWithRole() is effectively macOS saying "Something broke, but I don't know what". It broke because the dependencies weren't installed. You shouldn't be able to get to that error - you should get a clear notification from briefcase that the dependency couldn't be installed.
Third: If, due to some other problem, briefcase did succeed- the macOS template should catch the LSOpenURLsWithRole() error. That message is effectively the "unhandled exception" error surfacing to the user - which isn't something that should ever happen, under ideal circumstances.

Thanks for the detailed explanation - this is very helpful and will likely be helpful to others. I'll give some of these options a try and report back if I find any additional issues/questions.
I think your explanation here would be a valuable addition as a new section to the existing "How to contribute to Toga" guide. What are your thoughts on documenting the above with some code and or setup.py examples?

+1 for more documentation; I'm not sure if "How to contribute to Toga" is the right place. That document is intended to get people into submitting their first PR, rather than smoothing the development process for using Toga. The sort of things we're talking about here are different sorts of advice.
(1) Is already an open ticket on briefcase. "How to contribute to briefcase" is a document that probably needs some work, and the ticket could possibly do with some more elaboration, but "here's a ticket to work on" isn't a great addition to docs, because as soon as one person fixes that ticket, the docs are out of date. However, pointing people at a Github query for good tickets to work on would be a good addition to docs.
(2) Would be a good addition to briefcase's docs as a "how do I package a library that isn't on PyPI" HowTo guide
(3) Is also a ticket on Briefcase (or, more specifically, the macOS template that briefcase uses. I don't think that ticket exists yet, though - it's a feature that has been in my head for a while, but I've never written down.

Hi I am newcomer to this but I have come across a similar problem. Using Mac OS 10.14.6 and
Python 3.8.5 in a env. The standard Beeware tutorial works Fine
I created a small app using based on toga_chart as a basis and started to implement it with briefcase.
Using briefcase dev the app ran fine and created a window with the chart- great!
Then I used breifcase create
[simplechart] Generating application template...
Using app template: https://github.com/beeware/briefcase-macOS-app-template.git
Using existing template (sha 51b8367397c3b8ff7b6b193192a6367cb5163057, updated Sat Jun 20 15:06:09 2020)
[simplechart] Installing support package...
Using support package https://briefcase-support.org/python?platform=macOS&version=3.8
... using most recent revision
Python-3.8-macOS-support.b3.tar.gz already downloaded
Unpacking support package...
[simplechart] Installing dependencies...
Collecting toga-cocoa>=0.3.0.dev20
Using cached toga_cocoa-0.3.0.dev22-py3-none-any.whl (57 kB)
Collecting rubicon-objc>=0.3.0
Using cached rubicon_objc-0.4.0-py3-none-any.whl (53 kB)
Collecting toga-core==0.3.0.dev22
Using cached toga_core-0.3.0.dev22-py3-none-any.whl (482 kB)
Collecting travertino>=0.1.3
Using cached travertino-0.1.3-py3-none-any.whl (15 kB)
Installing collected packages: rubicon-objc, travertino, toga-core, toga-cocoa
Successfully installed rubicon-objc-0.4.0 toga-cocoa-0.3.0.dev22 toga-core-0.3.0.dev22 travertino-0.1.3
[simplechart] Installing application code...
Installing src/simplechart...
[simplechart] Installing application resources...
Installing src/simplechart/resources/simplechart.icns as application icon...
[simplechart] Created macOS/Simple Chart
(beeware-venv) IT036317:simplechart terry$ briefcase build
Seemed OK?
But then
(beeware-venv) IT036317:simplechart terry$   briefcase run
[simplechart] Starting app...
LSOpenURLsWithRole() failed with error -10810 for the file /Users/terry/Python/beeware-tutorial/Chart/simplechart/macOS/Simple Chart/Simple Chart.app.
I realize this is a similar error as above but any help on what to try next I would really appreaciate
Thanks

@proftc When a project runs under dev, but fails as a packaged app, it's almost always because of a missing dependency in your pyproject.toml file. Did you add toga-chart to the requires list for your app?

Hi Russel
Brilliant it worked fine!
and thanks for your quick reply
Terry
From: Russell Keith-Magee<EMAIL_ADDRESS>Reply-To: beeware/toga-chart<EMAIL_ADDRESS>Date: Monday, August 24, 2020 at 7:38 AM
To: beeware/toga-chart<EMAIL_ADDRESS>Cc: Terence Cosgrove<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [beeware/toga-chart] Documentation on how to create new application (#5)
@proftchttps://github.com/proftc When a project runs under dev, but fails as a packaged app, it's almost always because of a missing dependency in your pyproject.toml file. Did you add toga-chart to the requires list for your app?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/beeware/toga-chart/issues/5#issuecomment-678935364, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACAXD7EN5OC6SJ6ZW474LZDSCIDHTANCNFSM4HS7LARA.

Brilliant it worked fine!
Thanks

Please excuse my lack of experience here- but I was hoping to create an IOS version of my small app so I could draw a graph . I went through the instructions and got a warning of missing icons? and this warning
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the Simple Chart editor. (in target 'Simple Chart' from project 'Simple Chart')
Do I need to make any other steps or is Matplotlib not supported? If ot are there any other graph capabilities or will I have to write my own from scratch using the primitives available?
Thanks

Those errors don't sound like they're actually a problem - or, at least, they're not likely to be matplotlib related. The warning sounds like an Xcode development team packaging thing - entirely resolvable, just annoying. The missing icons probably aren't an issue either - more likely to be a warning than anything catastrophic. We'll need a lot more detail (like, for example, the text of the "missing icon" warnings) to provide guidance.
However, this is now straying way off the issue being described by the original ticket; and I doubt it's even toga-chart related (more likely a briefcase issue). At the very least, we should move this part of the conversation to a new ticket (probably on the Briefcase repository so we can have an isolated discussion). You might also find it easier to jump on our [https://gitter.im/beeware/general](chat room) - it may be easier to rapidly debug if we can get/give immediate feedback.

Hi
Thanks for the reply – I’ll start another ticket on the briefcase repository.
Thanks again for such a quick reply
Terry
From: Russell Keith-Magee<EMAIL_ADDRESS>Reply-To: beeware/toga-chart<EMAIL_ADDRESS>Date: Tuesday, August 25, 2020 at 7:07 AM
To: beeware/toga-chart<EMAIL_ADDRESS>Cc: Terence Cosgrove<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [beeware/toga-chart] Documentation on how to create new application (#5)
Those errors don't sound like they're actually a problem - or, at least, they're not likely to be matplotlib related. The warning sounds like an Xcode development team packaging thing - entirely resolvable, just annoying. The missing icons probably aren't an issue either - more likely to be a warning than anything catastrophic. We'll need a lot more detail (like, for example, the text of the "missing icon" warnings) to provide guidance.
However, this is now straying way off the issue being described by the original ticket; and I doubt it's even toga-chart related (more likely a briefcase issue). At the very least, we should move this part of the conversation to a new ticket (probably on the Briefcase repository so we can have an isolated discussion). You might also find it easier to jump on our [https://gitter.im/beeware/general](chat room) - it may be easier to rapidly debug if we can get/give immediate feedback.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/beeware/toga-chart/issues/5#issuecomment-679804020, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACAXD7FZ35I4QLRQQYXZUXDSCNIK3ANCNFSM4HS7LARA.

I'm going to close this on the basis that Briefcase has now acquired all the missing features that this ticket was asking for. Using Toga Chart  in a new app should be as straightforward as including it in your briefcase requires list.


Support Material Density

The MDC Density system currently relies completely on Sass mixins, which is not compatible with how we are using the Sass with Web Components.
We need to provide a way to do this via CSS Custom Properties, or a theming system.

@use "@material/button";

.my-custom-button {
  // Sets button density scale to `-3`, i.e. button height to `24px`.
  @include button.density(-3);
}

Is it possible to pass through this API?  I tried that before reaching here and am blocked by the shadowroot.  However, if I can passthrough my styles to the shadow root styles as a work around?
If the base class had a method to merge the component static styles property then wouldnt the mwc density API work?

It's not possible to use MDC's sass density mixins with MWC. We're actively working on a solution though!

Will the solution allow using MDC sass mixins with MWC?
Or is the solution going to be wrapping all of MDC functionality with a unique wrapper API?  I prefer the former!

Where does this stand? Density is a fundamental abstractions in our branding identity. Would love to be able to control it with a high level variable

It's planned out, but a few things have slipped behind due to the COVID situation. This should be coming soon though after some theming work.

It has been almost 1 year since the last update. Is it coming soon?

Me too. I constantly rely on the use-case of an mwc-button with a different height.

An update on this would be of great help.

+1

We are also looking forward to this support.
Any updates would be greate

Any update on this???

Density support is slowly being added as components' theming capabilities are being updated. <mwc-switch> is a good first example:
@use '@material/mwc-switch';

mwc-switch.dense {
  @include mwc-switch.theme(mwc-switch.density(-1));
}

Generates:
mwc-switch.dense {
  --mdc-switch-state-layer-size: 44px;
}


"unthink" info in stack project

I know we've talked about this before. I would like to include some form of information in the stack about "unthink" being used. For now, it could be just the version of the CLI used when creating the project.
I would like to have the generators require the existence of the stack by first checking the CWD for "package.json" and then for "unthink". This will help the generators know that it is safe to place files in certain places.
Ideas for how to include it in the project:

as "unthink" in the package.json
as a separate "unthink.json" or ".unthinkrc" file

Requirements/needs:

Needs to store the CLI's current version at time of project init
Should make an extension with unthink-related functions (so we can do things like toolbox.unthink.exists())

Leaning toward placing it as a property on package.json unless there are any counter arguments you can think of where placing it in package.json is bad?
My original thought was something like
{
  "unthink": {
    "version": "1.0.1"
  }
}

Just in case we need more context and keeping neatly tucked away under unthink.

I am fine with package.json. I definitely think we need to to be an object so we can add more to it later. I'm already thinking of making the path to entries configurable.


Unable to connect to VM

Hi, followed all the steps for setup but receive an error message when trying to connect to the VM. Indicated it might be something to do with Oracle CredSSP.
Do you have any further information about this?
Thanks

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

ID: d7c7b5d6-c9a4-3445-81c1-41dc41ae0929
Version Independent ID: a45e9b8a-185b-ff29-dc4a-b8912c13ed1b
Content: Tutorial: Explore Power BI Report Server in a VM - Power BI
Content Source: powerbi-docs/report-server/tutorial-explore-report-server-web-portal.md
Service: powerbi
GitHub Login: @maggiesMSFT
Microsoft Alias: maggies

Hi, @monteleon -- yes, some folks have seen this problem. Turns out the issue is on your machine, and there's a Microsoft Support article that shows how to fix it: https://support.microsoft.com/en-us/help/4295591/credssp-encryption-oracle-remediation-error-when-to-rdp-to-azure-vm.
Hope that helps!

Hi @maggiesMSFT, finally managed to get in, thank you! Now I'm in, I can't see any of the applications that are supposed to be installed and the report server doesn't seem to be configured either!

Hi @monteleon -- hmmm, OK, I'll check. I haven't looked at it in a few days.


Fix CLI help message

Before this change, if user tried to run "cibyl -h"
he would get an exception if his configuration file was
empty.
By default, 'cibyl -h' should never raise an exception
since users can specify a different configuration file path.

In this case it's just for empty/incomplete configuration, right? (if the file not exists it return the FileNotFoundError exception).
If it's the case then LGTM.

In this case it's just for empty/incomplete configuration, right? (if the file not exists it return the FileNotFoundError exception). If it's the case then LGTM.

Exactly :)

Mergeando também


Accessing userId in graphql server context

I'm having some problems with accessing the userId on the meteor graphql endpoint. I'm setting the token with an ApolloLink
import { ApolloLink } from 'apollo-client-preset'

export const authMiddleware = new ApolloLink((operation, forward) => {
  operation.setContext(({ headers = {} }) => ({
    headers: {
      ...headers,
      authorization: localStorage.getItem('Meteor.loginToken') || null,
    }
  }))

  return forward(operation)
})

Another problem is that I cannot use the getLoginToken method in here as I don't see any example of async middleware. I'll create a separate ticket for that in the apollo-client repo though.
So it successfully sets the authorization header, but on the server side the context doesn't set the userId. Is some other code needed to have that working? Or is there another way to access the userId on the server?

I've fixed this by using meteor-login-token as the key, instead of authorization, after checking the source code for the meteor apollo package: https://github.com/apollographql/meteor-integration/blob/master/src/main-server.js#L84


Question about numpyo

Hey,
I just tried to use the latest version of jaxns with numpyro and it doesn't seem to work. I think jaxns.prior_transforms has been refactored in v2 or something?
Are you planning on updating numpyro to work with jaxns v2?
Thanks!

This requires the work of Du Phan who maintains that. I will take a look at the code though and see if I can make a pr for it.CheersJoshOn Jan 20, 2023 05:15, Sebastian Khan @.***> wrote:
Hey,
I just tried to use the latest version of jaxns with numpyro and it doesn't seem to work. I think jaxns.prior_transforms has been refactored in v2 or something?
Are you planning on updating numpyro to work with jaxns v2?
Thanks!
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

Hi,
Ah OK, I thought you maintained it. Thanks for replying / taking a look. Absolutely no issue if not.
Cheers

I took a look but it is quite complicated now given than jaxns is introducing its own ppl. I would suggest to use jaxns ppl for full integration.

OK thanks very much for the info! Closing this now I guess. All the best!


Otio reader app: Start timecode / playhead timer obscured by track header column

As shown in attached screen grab.

NB 'Untitled Timeline' = Resolve not adding the timeline name to the otio currently.

Interesting. Can you attach a sample OTIO file? Perhaps resolve is adding the timeline name somewhere im not checking? Thanks!

Archive.zip
Here's a couple.

Interesting.
In the file format there is no name provided:
"name": "",
In your Resolve Timeline, does it have a name? if so, is it the same as the file name? Would the preferred behavior here be to use the file name if the name is empty?

I don't think it's possible not to have a timeline name in Resolve - I guess they haven't coded that in their otio export. I think the best option is to maybe leave it untitled - indicate that there is an issue with the otio export.

Ill see who to contact at Blackmagic Design - that smells like a minor oversight on their end.

Although the untitled timeline was a side issue - main issue is only in thread title and not very clear from the screen grab.
Namely that the playhead time code is obscured at the start (should be 01:00:00:00).


fix: corrected typo from disbale to disable in numerous places (IDFGH-11298)

Just a few corrections of the typo disbale to disable
Thanks for your consideration

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

Hi @zhp0406, the build steps say the build is failing due to not having committed using the pre-commit tool.
However, I installed and ensured my commits complied with the pre-commit rules before pushing.
Is there any further action required from my side?
Thanks in advance.

@DevinNorgarb
I will help you through the pipeline and submit your code.

@zhp0406 Thank you!
If there is anything further you need from me please let me know.

@DevinNorgarb
Thank you for your fix, now the commit（001b10ec4592881419b5672de5329add13618a48） is visible. If there are no other issues, this issue can be closed.


[Doc Bash] Suggestion - Addition of few more terms consistently found across other docs.

Addition of new terms
Document Details

Can we add terms GCC, GCC High and DoD in the glossary.
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: ff9690f5-fa8b-98bb-d3b4-ad4ed1030114
Version Independent ID: ff9690f5-fa8b-98bb-d3b4-ad4ed1030114
Content: Microsoft Teams developer documentation - Glossary - Teams
Content Source: msteams-platform/get-started/glossary.md
Service: msteams
GitHub Login: @surbhigupta
Microsoft Alias: lajanuar

Hello @surbhigupta12 - Please help us here to update the contents.


RELENG-6452 indexing post failure

dependabot
dependabot
dependabot user

Hello tcarmet,
My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.
Status report is not available.

Waiting for approval
The following approvals are needed before I can proceed with the merge:

the author

one peer

looks promising. The debug print with the response from the API will help a lot.

I surely hope so!


Add log rotation

Add logrotate role and configure rotation of zuul logs.
Signed-off-by: K Jonathan Harker<EMAIL_ADDRESS>

This change is

Starting gate_github jobs.


MurdaughAlex_Timeline: P&C Podcast

What page should this be added to?
MurdaughAlex_Timeline.md
What section/heading should this be added to?
Podcast
Include the Markdown text that is to be added below:
| JANUARY 30TH, 2023  | 21 | Paul Murdaugh's final texts revealed and Alex's second SLED interview |
| JANUARY 31ST, 2023 | 22 | Debate over whether Alex Murdaugh confessed continues |
| FEBRUARY 1ST, 2023 | 23 | Family friends identify Alex Murdaugh's voice in video shot before murders |
| FEBRUARY 2ND, 2023 | 24 | Alex Murdaugh's colleagues detail his alleged financial crimes to an empty jury box |
Describe alternatives you've considered
Bookmarks in browsers are not portable.
Additional context
Add any other context or screenshots about the feature request here.

#707 closes #706


Composer support

Support for composer, based heavily on the work by @weemen @pmill and @tomgillett in PR #2 and #7 Closes #1

@WiseAndy how is this code tested? :)

@weemen Current manually tested for each release. Clearly not ideal, planning on introducing a set of unit tests in a subsequent release (across all our code wrappers)


test(atomic): fix no-results test for folded children results

https://coveord.atlassian.net/browse/KIT-3545

Something weird happened in this PR. During one of our github actions, we do git checkout master and npm ci. We kept having this error. npm ci was failing on master.

Really weird issue, npm ci should not behave like this. I fixed it in this PR by doing npm install and changing the package.lock.json


Improve error message

TypeError: broccoli-merge-trees: requires inputNodes to be all trees, but got: [,generators,[Babel],[Creator: Creator bootstrap],[BroccoliMergeTrees]]

See https://github.com/broccolijs/broccoli-merge-trees/issues/24#issuecomment-147372815 - I think the new builder will be able to do everything this code does.

yup, but this will provide useful feedback today (if we merge and release)
tests inbound

Oh, I suspect the builder will also provide feedback after the brocfile has already been invoked. This provides it immediately.
Unless i don't understand what the new builder does.

Throwing in the constructor like this when we can (like when inputs are invalid) actually provides much better stack traces (since it includes actual the line that the user entered in Brocfile.js or ember-cli-build.js instead of some random promise-land stack).

moving this to broccoli-plugin so all subclasses benefit.

@rwjblue FYI, with the new builder we'll also get those nice stacks into Brocfile.js in the error message, because plugin constructors capture their instantiationStack.

@joliss - Yep, I recall discussing that a while back. It will be awesome when we can move the Broccoli forward a few more inches and can take advantage of that.  In the meantime, we should help folks from this foot-rocket-launcher today :stuck_out_tongue_closed_eyes:

superseded by https://github.com/broccolijs/broccoli-plugin/pull/7


YFF-maler

Lagt til en drøss med nye handlebar helpers.
Oppdatert mal for yff-bekreftelse.

Pull Request Test Coverage Report for Build 503676077

20 of 20 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+1.2%) to 95.062%

Totals

Change from base Build 503191889:
1.2%

Covered Lines:
123

Relevant Lines:
125

💛  - Coveralls

Pull Request Test Coverage Report for Build 503676077

20 of 20 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+1.2%) to 95.062%

Totals

Change from base Build 503191889:
1.2%

Covered Lines:
123

Relevant Lines:
125

💛  - Coveralls


CosmosDB, app service and ACR infrastructure

Resolves #75 , #82

guess we need as outputs for e.g. https://github.com/UCLH-Foundry/FlowEHR/issues/67 ?

Guess we need some Terraform outputs for say #67?

Yep, I could add those in mine though once this is merged if that's easier - I think we'd likely just need

Cosmos account name
App Service plan name
ACR name

Then we can use a data block to get any other required details

/test

/test

/test

/test-destroy-env

/destroy-env

/test

/test

/destroy-env

/test


Allow alternative JSON MIME type

Rails is sending JSON as 'application/json; charset=utf-8' by default. Of course it can be configured, but it would be easier if the API accepted this as well.

Codecov Report

Merging #3 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master       #3   +/-   ##
=======================================
  Coverage   93.09%   93.09%
=======================================
  Files           3        3
  Lines        1014     1014
=======================================
  Hits          944      944
  Misses         70       70


Add bulk repository deletion functionality (PROJQUAY-4080)

This PR covers the following Jira:

https://issues.redhat.com/browse/PROJQUAY-4079
https://issues.redhat.com/browse/PROJQUAY-4080  - fixed for RepoList page. still seeing issues for OrgList page (will keep the jira open and follow up)
https://issues.redhat.com/browse/PROJQUAY-4091 and https://issues.redhat.com/browse/PROJQUAY-3898 related to Bulk deletion of repo

ToDo:

add the generic pagination component to the bulk delete modal
Fix state management for orgList page
Fix delete org

Signed-off-by: harishsurf<EMAIL_ADDRESS>

@bcaton85 Anything empty state related will probably be covered by @jonathankingfc in https://issues.redhat.com/browse/PROJQUAY-4109

@bcaton85 , thanks for testing it out. Following up on each item:

Org list

Organization can be created successfully but will only display after refreshing page  - fixed
Creating multiple org’s duplicates the list. - fixed
I was able to create an organization with the email test, do we want to check formatting?  - added a basic email regex validation
Deleting organizations deleted immediately - fixed
My user organization doesn’t show up, is that by design? - good catch! the user org isn't directly provided when fetching orgs, added an extra API call to fetch the user org
Is the trash icon going to be replaced with a kebab in a future PR? I believe @Sunandadadi ’s work on a generic toolbar may resolve this. - replaced with kebab option

Repository list for single Org

If list is empty the loading sign spins indefinitely. Needs “No repo’s found display”.   - there is already PROJQUAY-4109 open for this

Repository list

Can’t de-select individual rows - should be fixed when @Sunandadadi implements the generic select checkbox
Can’t create repo in user organization, is this by design?  - PROJQUAY-3900 is open for this
Creating a repo intermittently returns a 400. Doesn’t seem to pass the namespace. Here is the response from the network tab.  - should be fixed nowdetail: "None is not of type 'string'\n\nFailed validating 'type' in schema['properties']['namespace']:\n    {'description': 'Namespace in which the repository should be created. '\n                    'If omitted, the username of the caller is used',\n     'type': 'string'}\n\nOn instance['namespace']:\n    None"
error_message: "None is not of type 'string'\n\nFailed validating 'type' in schema['properties']['namespace']:\n    {'description': 'Namespace in which the repository should be created. '\n                    'If omitted, the username of the caller is used',\n     'type': 'string'}\n\nOn instance['namespace']:\n    None"
error_type: "invalid_request"
status: 400
title: "invalid_request"
type: "http://localhost/api/v1/error/invalid_request"

If list is empty the loading sign spins indefinitely. Needs “No repo’s found display” - PROJQUAY-4109
State is shared between repo list and repo list for a single org. If I select a repo in Repository list, then go to the same repo through the Organization list, the same rows are selected. - created [PROJQUAY-4265](https://issues.redhat.com/browse/PROJQUAY-4265)

Could you PTAL?

@harishsurf This looks good, validated most of your fixes. Email validation is kinda simple but probably good enough for now. Can you update the create org modal so that if validation fails the user can't submit and create the org?

@HammerMeetNail , added validation for create org and fixed regex, PTAL


Improve Evil selection: A way to select Ruby blocks on evil

Vim have a nice feature, like y i [ y a [ to select inside and outside delimiters.
In Ruby Mode, we dony have a way to select inside \ outside vim blocks like:
Imagine that the cursor is on YAAY and i press v i b (visual inside block, for example):
It would be the expected result:

Another example:
If my cursor is on emacs and i press v a b, the result would be:

If cursor is on |text|  the result would be:

Is possible to get a semelhant result with expand-region.

Maybe this is what your looking for?

We have indentation text objects i, j, and k. vii will select all at the current level of indentation. j will do the same, but include one line below it. k does the same as i but includes one line above it (e.g. for function signatures).
In any case, I'll look into evil-ruby-text-objects, which @WhatDothLife linked above.

We have indentation text objects i, j, and k. vii will select all at the current level of indentation. j will do the same, but include one line below it. k does the same as i but includes one line above it (e.g. for function signatures).
In any case, I'll look into evil-ruby-text-objects, which @WhatDothLife linked above.

vii, vij and vik are good, i like it.  But maybe evil-ruby-text-objects is more powerful


exports only work as a property of module

In the code under test, adding properties to exports on its own doesn't work. Only works with module.exports.

Fixed! Don't know why it didn't work the first time I tried it. Must've been a typo. But added a test for it now.


Test lambda that has websocket routes

Not sure if it's possible with this approach, but suppose the lambda is the back-end for an API Gateway that uses websockets. How could this be tested using this interface emulator?
I haven't been able to find details on how an event to invoke a lambda function looks like when using web sockets.
I know for a REST Api this is a valid event
{
  "resource": "/{proxy+}",
  "path": "/api/values",
  "httpMethod": "GET",
  "headers": null,
  "queryStringParameters": null,
  "pathParameters": {
    "proxy": "api/values"
  },
  "stageVariables": null,
  "requestContext": {
    "accountId": "AAAAAAAAAAAA",
    "resourceId": "5agfss",
    "stage": "test-invoke-stage",
    "requestId": "test-invoke-request",
    "identity": {
      "cognitoIdentityPoolId": null,
      "accountId": "AAAAAAAAAAAA",
      "cognitoIdentityId": null,
      "caller": "BBBBBBBBBBBB",
      "apiKey": "test-invoke-api-key",
      "sourceIp": "test-invoke-source-ip",
      "cognitoAuthenticationType": null,
      "cognitoAuthenticationProvider": null,
      "userArn": "arn:aws:iam::AAAAAAAAAAAA:root",
      "userAgent": "Apache-HttpClient/4.5.x (Java/1.8.0_102)",
      "user": "AAAAAAAAAAAA"
    },
    "resourcePath": "/{proxy+}",
    "httpMethod": "GET",
    "apiId": "t2yh6sjnmk"
  },
  "body": null
}

and therefore, if I save it in a test_request.json I could test the lambda function like this with CURL when running in the emulator
curl -vX POST http://localhost:9000/2015-03-31/functions/function/invocations -d @test_request.json --header "Content-Type: application/json"

Is there anything similar when the event represents a $connect, $disconnect or sendmessage message from Api Gateway websocket to lambda?

@diegosasw I don't really understand your question. You can send whatever payload you need to the function. In the case of API Gateway, you should be able to model what input as if it was the Service doing the invoke for you.
I think the answer is yes, but you have to construct that json data to send to the function through the curl post call.

@jfuss
Thanks. I found out the payloads below
$connect

{
"headers": {
"Host": "82a1kbz4gh.execute-api.eu-west-3.amazonaws.com",
"Sec-WebSocket-Extensions": "permessage-deflate; client_max_window_bits",
"Sec-WebSocket-Key": "ElxPGSkjS67JEzN6/32V1A==",
"Sec-WebSocket-Version": "13",
"X-Amzn-Trace-Id": "Root=1-60351922-7cd582b44021ba371d4b975b",
"X-Forwarded-For": "<IP_ADDRESS>",
"X-Forwarded-Port": "443",
"X-Forwarded-Proto": "https"
},
"multiValueHeaders": {
"Host": [
"82a1kbz4gh.execute-api.eu-west-3.amazonaws.com"
],
"Sec-WebSocket-Extensions": [
"permessage-deflate; client_max_window_bits"
],
"Sec-WebSocket-Key": [
"ElxPGSkjS67JEzN6/32V1A=="
],
"Sec-WebSocket-Version": [
"13"
],
"X-Amzn-Trace-Id": [
"Root=1-60351922-7cd582b44021ba371d4b975b"
],
"X-Forwarded-For": [
"<IP_ADDRESS>"
],
"X-Forwarded-Port": [
"443"
],
"X-Forwarded-Proto": [
"https"
]
},
"requestContext": {
"routeKey": "$connect",
"disconnectStatusCode": null,
"messageId": null,
"eventType": "CONNECT",
"extendedRequestId": "bNDdbEgZCGYFjXQ=",
"requestTime": "23/Feb/2021:15:02:58 +0000",
"messageDirection": "IN",
"disconnectReason": null,
"stage": "production",
"connectedAt":<PHONE_NUMBER>600,
"requestTimeEpoch":<PHONE_NUMBER>601,
"identity": {
"cognitoIdentityPoolId": null,
"cognitoIdentityId": null,
"principalOrgId": null,
"cognitoAuthenticationType": null,
"userArn": null,
"userAgent": null,
"accountId": null,
"caller": null,
"sourceIp": "<IP_ADDRESS>",
"accessKey": null,
"cognitoAuthenticationProvider": null,
"user": null
},
"requestId": "bNDdbEgZCGYFjXQ=",
"domainName": "82a1kbz4gh.execute-api.eu-west-3.amazonaws.com",
"connectionId": "bNDdbfUjCGYCG1Q=",
"apiId": "82a1kbz4gh"
},
"isBase64Encoded": false
}
sendmessage

{
"requestContext": {
"routeKey": "$default",
"disconnectStatusCode": null,
"messageId": "bNDfrfU9iGYCG1Q=",
"eventType": "MESSAGE",
"extendedRequestId": "bNDfrFlQiGYFlnQ=",
"requestTime": "23/Feb/2021:15:03:13 +0000",
"messageDirection": "IN",
"disconnectReason": null,
"stage": "production",
"connectedAt":<PHONE_NUMBER>600,
"requestTimeEpoch":<PHONE_NUMBER>017,
"identity": {
"cognitoIdentityPoolId": null,
"cognitoIdentityId": null,
"principalOrgId": null,
"cognitoAuthenticationType": null,
"userArn": null,
"userAgent": null,
"accountId": null,
"caller": null,
"sourceIp": "<IP_ADDRESS>",
"accessKey": null,
"cognitoAuthenticationProvider": null,
"user": null
},
"requestId": "bNDfrFlQiGYFlnQ=",
"domainName": "82a1kbz4gh.execute-api.eu-west-3.amazonaws.com",
"connectionId": "bNDdbfUjCGYCG1Q=",
"apiId": "82a1kbz4gh"
},
"body": "{"foo":"sendmessage", "message":"hello world"}",
"isBase64Encoded": false
}

$disconnect

{
"headers": {
"Host": "82a1kbz4gh.execute-api.eu-west-3.amazonaws.com",
"x-api-key": "",
"X-Forwarded-For": "",
"x-restapi": ""
},
"multiValueHeaders": {
"Host": [
"82a1kbz4gh.execute-api.eu-west-3.amazonaws.com"
],
"x-api-key": [
""
],
"X-Forwarded-For": [
""
],
"x-restapi": [
""
]
},
"requestContext": {
"routeKey": "$disconnect",
"disconnectStatusCode": -1,
"messageId": null,
"eventType": "DISCONNECT",
"extendedRequestId": "bNDh2HilCGYFjww=",
"requestTime": "23/Feb/2021:15:03:26 +0000",
"messageDirection": "IN",
"disconnectReason": "",
"stage": "production",
"connectedAt":<PHONE_NUMBER>600,
"requestTimeEpoch":<PHONE_NUMBER>967,
"identity": {
"cognitoIdentityPoolId": null,
"cognitoIdentityId": null,
"principalOrgId": null,
"cognitoAuthenticationType": null,
"userArn": null,
"userAgent": null,
"accountId": null,
"caller": null,
"sourceIp": "<IP_ADDRESS>",
"accessKey": null,
"cognitoAuthenticationProvider": null,
"user": null
},
"requestId": "bNDh2HilCGYFjww=",
"domainName": "82a1kbz4gh.execute-api.eu-west-3.amazonaws.com",
"connectionId": "bNDdbfUjCGYCG1Q=",
"apiId": "82a1kbz4gh"
},
"isBase64Encoded": false
}

That's what I was looking for, mainly the payload for `$connect` and `$disconnect`, so it's all good.

I've got other issues outside lambda with Api Gateway and websocket when using HTTP integration instead of Lambda, like described here https://stackoverflow.com/questions/66688751/extract-websocket-connection-id-and-other-details-from-websocket-in-aws-api-gate but that's a different question.

Closing this as it's clear, thanks again.


GafferPopGraph execute method doesn't catch certain exceptions

Describe the bug
When executing an Operation which is not supported, a java.lang.UnsupportedOperationException is thrown. This class is unrelated to the uk.gov.gchq.gaffer.operation.OperationException class which is caught by the GafferPopGraph catch clause.
These are the relevant lines:
https://github.com/gchq/Gaffer/blob/7b5e9ffa95602fb0ab4ae7b04610fd2e4c093d6f/library/tinkerpop/src/main/java/uk/gov/gchq/gaffer/tinkerpop/GafferPopGraph.java#L518-L523
This means that UnsupportedOperationException is not caught and handled as intended. The handling code could also be improved (e.g. log the error instead of just throwing).
To Reproduce
Steps to reproduce the behaviour:

Add breakpoint in the above catch.
Execute an Operation which is not supported by the configured store.
Catch is not invoked as it should be.

Expected behaviour
All kinds of Exceptions encountered when executing Operation(s) should be handled.
Additional context
The snippet above is not tested. Tests should be added for this to ensure correct behaviour.

Generally, the testing of Store.doUnhandledOperation isn't great


Is there any plans for a new release?

Is this library abandoned?
I see some new commits but the last release was almost one year ago.
Module owner declaration is outdated:
❯ go get -u github.com/streamingfast/solana-go
go get: github.com/streamingfast/solana-go@none updating to
<EMAIL_ADDRESS>parsing go.mod:
	module declares its path as: github.com/dfuse-io/solana-go
	        but was required as: github.com/streamingfast/solana-go

https://github.com/streamingfast/solana-go/blob/12dfaa0b1721e91688304bcf7bd9e2d57bc940eb/.goreleaser.yml#L18

This is not abandoned but it's not actively develop for now since we have other priorities right now. We do still perform maintenance tasks on the repository. We had to rename due to some branding issues and indeed, it creates a small mess, will try to clean up as issues are found.
About releases, we are rather bad at making timely release and the best flow is to update up to master branch for now.
go get streamingfast/solana-go@master

I could tag a release if you really need one though. Tell me if you need one.

@maoueh gotya! thanks


Only use timostamm-protobuf-ts

Removes odd side-effect of directly relying on the generate files in TS/JS.
Fixes https://github.com/stateful/runme/issues/305.

I'm also wondering if we should remove buf connect, @adambabik, since we aren't actually using it to connect to the kernel APIs.

@sourishkrout yeah, it was an experiment. If we use gRPC exclusively, we can totally get rid of connect. There is a plugin to remove and some code from server.go.

Can I get an approval, please, @pastuxso? Thank you.


Strange MediaBox and CropBox of PDF page

What were you trying to do?
I'm trying to get the page boxes information to centralize an image.
How did you attempt to do it?
I tried to get information from getMediaBox() or getCropBox() methods from PDFPage object to calculate the page center position.
What actually happened?
I got strange informations about the page boxes. In some cases, height and width of a page is a negative value.
What did you expect to happen?
Get the correct information about the page boxes.
How can we reproduce the issue?
I added a comment in an old issue about the MediaBox and CropBox. I added the PDF that I tested and a piece of code.

I have a PDF whose first page has different box information than the pages. However, when I retrieve this information using pdfinfo, I get information that differs from the information that pdf-lib gives me.

I drew some circles using the CropBox information and this is how the 2 tests turned out. The first printout was using the pdfinfo information. The second printout was using the information that pdf-lib gives me through the getCropBox() method.

How is this MediaBox and CropBox information obtained in pdf-lib?
The example PDF is below:
input2.pdf

Note: I understood later that height and width are used to calculate xEnd and yEnd of PDF page, but even if I calculate the end point I don't get the same information.
Version
2.2.0
What environment are you running pdf-lib in?
Node
Checklist

[X] My report includes a Short, Self Contained, Correct (Compilable) Example.
[X] I have attached all PDFs, images, and other files needed to run my SSCCE.

Additional Notes
I did test in both versions and I got the same results:

pdf-lib: 1.17.1
@cantoo/pdf-lib: 2.2.0

The pdf seems malformed, but we can update pdf-lib to handle this malformation. How did this pdf get generated?

Solved in @cantoo/pdf-lib: 2.2.0

Hi @Sharcoux.
The PDF I added here is a partial PDF that I created from from another just for reproduce the behavior. According to pdfinfo, the original PDF was created in Adobe InDesign CS6.

According to the specs,
The MediaBox is defined as an array of four numbers, typically in the format [llx lly urx ury], where:

    llx: The lower-left x-coordinate.
    lly: The lower-left y-coordinate.
    urx: The upper-right x-coordinate.
    ury: The upper-right y-coordinate.

In your provided pdf, the mediabox inverted the 2 y coordinates, leading to the wrong result. So, I don't know who is the culprit during the file generation, but the file is definitely malformed.

I have seen this issue and have looked into it.
PDF specs,
Looking, <IP_ADDRESS> Page Object

MediaBox type is "rectangle"

Looking, 7.9.5 Rectangles

Rectangles are used to describe locations on a page and bounding boxes for a variety of objects.
A rectangleshall be written as an array of four numbers giving the coordinates of a pair of diagonally opposite corners.
NOTE Although rectangles are conventionally specified by their lower-left and upper-right corners,
it is acceptable to specify any two diagonally opposite corners.

I understand that it does not have to be [lower left, upper right], although that is not common.
I thought it would be easy to modify the values obtained,
but I am concerned that it will not affect the other placement coordinates.
I have noticed this but have not been able to confirm it yet.
At this time I do not have the time.

Ok. Well, anyway, from version 2.2.1, both will be supported, so I think I'll just close this. Thanks for the clarification.


Cherrypicked Timebased UUID fix from 2.4 to 2.5

Fix issue #36 for akka version 2.5

Hi is this still a relevant PR?


add RiskGONE D4.4 and D4.7

See https://riskgone.eu/wp-content/uploads/sites/11/2022/02/RiskGONE-D4.4.pdf and https://riskgone.eu/wp-content/uploads/sites/11/2022/02/RiskGONE-D4.7.pdf

Done!


Add FAQ on scss to css

Not really an issue but something that slowed me down and might be worth adding to the FAQ. What is the easiest way of setting up scss pre-processing?
Thanks for your awesome project

Nevermind, not sure why I didn't see the changes before but now I see it's hooked up via middleware. Neat!

in which file?


Unable to deploy Prisma: request to http://localhost:4466/management failed

Bug Report
'ECONNRESET': request to http://localhost:4466/management failed, reason: socket hang up
Current behavior
When running prisma deploy for existing postgres db with data:
$ prisma deploy
Creating stage default for service default !
 ▸    'ECONNRESET': request to http://localhost:4466/management failed, reason: socket hang up

Get in touch if you need help: https://www.graph.cool/forum
To get more detailed output, run $ export DEBUG="*"

Seems to be related to the recent change from /cluster to /management
Reproduction

correct db setup
latest versions of docker tooling and prisma 1.8.3
experiencing error both locally and on a hosted digital ocean droplet
following this guide pretty much verbatim:

https://www.prisma.io/docs/tutorials/setup-prisma/connect-empty-db/postgres-aiy1jewith

Someone else on the slack channel provided a docker log they obtained from experiencing the same issue:

https://pastebin.com/HaTr15ny
https://prisma.slack.com/archives/CA491RJH0/p1527782175000202?thread_ts=1527776706.000394&cid=CA491RJH0

Expected behavior?
Expect Prisma service to deploy successfully

#2517 #2479

Anyway we can mitigate this by using a previous version of prisma?

Please share the output of docker ps. What happens when you open http://localhost:4466, http://localhost:4466/cluster and http://localhost:4466/management in a browser, respectively?

Same error on 1.7.4 on digital ocean, but different path specified :
https://pastebin.com/ZdbFPGtL
Doesn't seem related to the /management or /cluster

Output of docker ps:

All of those links give me this error:

@james-ff Thanks for your report. Please try pinning the Prisma version explicitly to 1.8.3 (or better 1.8.4), or make sure you're running the latest 1.8 image by pulling the image by hand docker pull prismagraphql/prisma:1.8.

1.8.4 not accessible to us. Pinning 1.8.3 now, will post logs in a bit.

Still the same error.
https://pastebin.com/6eyUvc76

Can you share the exact docker-compose.yml file you are using? Please obfuscate any sensitive information first.

The error looks like an invalid Prisma config issue. As Nilan requested, I'd like to see an obfuscated version of your docker-compose.yml, if possible.

Obfuscated Docker file:

Hasn't been modified since prisma init
have tried both 1.8 and 1.8.4 for image
******** for obfuscated

version: '3'
services:
  prisma:
    image: prismagraphql/prisma:1.8
    restart: always
    ports:
    - "4466:4466"
    environment:
      PRISMA_CONFIG: |
        port: 4466
        # uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
        # managementApiSecret: my-secret
        databases:
          default:
            connector: postgres
            host: localhost
            port: '5432'
            database: ********
            schema: public
            user: ********
            password: ********
            migrations: false

This log is repeated many times in the log output:
SEVERE: Connection error:
org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct andthat the postmaster is accepting TCP/IP connections.
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:245)
        at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
        at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
        at org.postgresql.Driver.makeConnection(Driver.java:452)
        at org.postgresql.Driver.connect(Driver.java:254)
        at slick.jdbc.DriverDataSource.getConnection(DriverDataSource.scala:101)
        at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:341)
        at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:193)
        at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:430)
        at com.zaxxer.hikari.pool.HikariPool.access$500(HikariPool.java:64)
        at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.java:570)
        at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.java:563)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at org.postgresql.core.PGStream.<init>(PGStream.java:69)
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:156)
        ... 15 more

Exception in thread "main" java.sql.SQLTransientConnectionException: database - Connection is not available, request timed out after 5000ms.
        at com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:548)
        at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:186)
        at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:145)
        at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:83)
        at slick.jdbc.hikaricp.HikariCPJdbcDataSource.createConnection(HikariCPJdbcDataSource.scala:18)
        at slick.jdbc.JdbcBackend$BaseSession.<init>(JdbcBackend.scala:439)
        at slick.jdbc.JdbcBackend$DatabaseDef.createSession(JdbcBackend.scala:47)
        at slick.jdbc.JdbcBackend$DatabaseDef.createSession(JdbcBackend.scala:38)
        at slick.basic.BasicBackend$DatabaseDef.acquireSession(BasicBackend.scala:218)
        at slick.basic.BasicBackend$DatabaseDef.acquireSession$(BasicBackend.scala:217)
        at slick.jdbc.JdbcBackend$DatabaseDef.acquireSession(JdbcBackend.scala:38)
        at slick.basic.BasicBackend$DatabaseDef$$anon$2.run(BasicBackend.scala:239)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:245)
        at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
        at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
        at org.postgresql.Driver.makeConnection(Driver.java:452)
        at org.postgresql.Driver.connect(Driver.java:254)
        at slick.jdbc.DriverDataSource.getConnection(DriverDataSource.scala:101)
        at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:341)
        at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:193)
        at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:430)
        at com.zaxxer.hikari.pool.HikariPool.access$500(HikariPool.java:64)
        at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.java:570)
        at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.java:563)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        ... 3 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at org.postgresql.core.PGStream.<init>(PGStream.java:69)
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:156)
        ... 15 more```

Is there a Postgres database running at localhost:5432?

yes, the datamodel.graphql accurately reflects the structure of my database, so the database connection config is correct

Ah, so you were using the introspection feature and it correctly introspected the Postgres schema and generated the datamodel.graphql, is that what you're saying? 🙂

Which leads me to believe that the database config part of the docker file is not the cause of this issue

@james-ff @Dorkside are you actually working together, or are you both experiencing the same error message?
Because the error message is very generic and happens for various reasons. So it gets quite confusing to read through this thread 😄

Not working together, but experiencing the same issue it seems =]

Yep, it sounds like you are experiencing the same issue for two different reasons.
@james-ff: it seems there are connection problems. Note that the introspection is initially done from the CLI, so that this worked does not necessarily mean that the server can connect to the DB. Are there any network or security related configurations that you can think of that would cause connection problems?
@Dorkside: please share your docker-compose.yml :slightly-smiling-face:

I can't think of any reasons as this is happening both locally and across two digital ocean droplets

https://www.prisma.io/docs/1.0/tutorials/cluster-deployment/digital-ocean-(manual)-texoo6aemu
This tutorial was my first go to trying to launch my prisma cluster.
Following exactly as outlined in that tutorial, you get the error after prisma local start
We're not working, but it seems we're experiencing the same problem. I have nothing configured yet, basically trying to wrap my head around the graphql/prisma layers and wanting to have control over custom resolvers.
Ended up trying to find a way to upgrade my W10 Home to W10 Pro to be able to unlock Hyper-V for Docker and getting to run locally. And THAT turned out to be waaaaay longer than intended.

Ok, my bad, but the docs need their refreshing :-)
Went through the cli commands to get a better grasp on what was happening...
 So I had NO docker-compose.yml.
I kinda naively thought that prisma local start  took care of that given how it was explained in the tutorial. There is kind of a missing step I guess, but maybe it's just me being too spoilt.
I pinned my version in docker-compose.yml to 1.8.4 but it might actually have worked without that.
Well, got this done after getting back home, and really feel relieved. Monday is gonna be a well started day.
From here, should I use the same droplet for my graphql front ?
Thanks for your time.

Update! I have got docker up working for my default local database (where username is both user and database in config, with no password), but for the database I'm actually trying to use I get:
permission denied for database <my-database-name>

Another update. Have got connection to my intended db working by using the default postgres user (my username, not "postgres"). I was previously using a user role that I had created in postgres that would have specific access to my db, are created user roles supported at the moment?
I've modified the datamodel slightly to fix issues like @unique missing. Right now the issue I'm facing is that everything is up and deployed, I can load the graphql playground, but docs don't appear and docker up log is saying the following:
prisma_1  | java.lang.RuntimeException: Could not find relatedModel for field [<field-name>] on model [None]
prisma_1  |     at scala.sys.package$.error(package.scala:27)
prisma_1  |     at com.prisma.shared.models.Field.relatedModel_$bang(Models.scala:255)
prisma_1  |     at com.prisma.api.schema.UncachedInputTypesBuilder.$anonfun$computeRelationalInputFieldsForCreate$1(InputTypesBuilder.scala:289)
prisma_1  |     at scala.collection.immutable.List.flatMap(List.scala:335)
prisma_1  |     at com.prisma.api.schema.UncachedInputTypesBuilder.computeRelationalInputFieldsForCreate(InputTypesBuilder.scala:288)
...............
prisma_1  | [Bugsnag - local / testing] Error report: com.bugsnag.Report@44ceddf1

 being a field of the format [!]!

It seems the initial problem I was having was not using my default user postgres account. I will start a new issue for this new problem.

I found a solution https://stackoverflow.com/questions/50539700/docker-compose-ip-hostname-for-the-host-machine/50571616


Ugly hack to fix issue 63

https://github.com/block-core/blockcore-atomic-swaps/issues/63

@miladsoft this should fix our issue.
I am not sure why this happens maybe an upgrade that broke something


RazorTemplateEngine removed/Migration doc

Fixes #19595 Fixes dotnet/aspnetcore#21013
Internal review URL
@NTaylorMullen this one is not in the breaking API changes, at least by searching for RazorTemplateEngine

@Rick-Anderson I emailed Kevin & Artak to see how this should be handled. We typically document these breaking changes over at https://docs.microsoft.com/dotnet/core/compatibility/aspnetcore.


[request] support writing sold item data to local file

Expected behavior:
Similar to how one of the scripts supports exporting data of sold items to ifttt, it would be great if the script could allow just writing to a local file for people who don't want to use ifttt, or want an easily accessible local log file.
Current behavior:
Give a detailed explanation of the current behavior.
Metadata:

Script name:
Script version:
Browser:
OS:

There’s actually no way to write directly to a file with JS because of the sandboxed environment.
You will have to use ifttt and connect to a dropbox file or something alike if you want easy local access.
It is possible to show a download dialog for files though, would that work for you?
Spinning up a local webserver is another possibility, but that isn’t something I want to offer to the main public of these scripts.

I see, thanks for the explanation.
Yes, showing a dialog to download a file that has a record of all the cleared sales so far would be great too!

Fixed in v0.2.1.


Overlapping items in Firefox (two column grid)

Draggabilly leads to overlapping items in the 2nd column of a two column grid in Firefox (current and recent previous releases), when items are moved in or into the second column (not occurring in all window widths, only in some, very strange issue):
https://codepen.io/robcs/pen/oqopyG
Please fix this soon
Best regards

Thanks for reporting this issue. I'm already tracking this bug at metafizzy/packery#343


Allow Extract Constant into enclosing scope in spite of RangeFacts.UsesThis

First commit is https://github.com/Microsoft/TypeScript/pull/18929.

Rebased on top of master.  No interesting changes.


Fix CompactionConfigChangeIT

Modified the IT to use external compactors

is "type" still required in the planner config?

It currently is for executors.
The plan is for the executors property to be removed.  The groups property will replace that function and only has three fields: name,maxSize, and maxJobs.
The PR with those changes will be submitted once the compaction ITs are all working.


staging-next: 21.05 2021-12-18

https://hydra.nixos.org/job/nixpkgs/staging-next-21.05/unstable#tabs-constituents
Possibly the last staging-next run for NixOS 21.05.
Previous run: #146260

I'm not sure how to sensibly review this. Is it a matter of letting hydra lead the way and fixing the failures?

Staging next runs are rarely reviewed separately after they've been reviewed before having been merged staging.


CNSKOU WiFi Dimmer and Curtain switch support

Hello,
First of all, thanks for your great work with SonoffLAN.
We have CNSKOU brand switches, and the 1-2-3 gang switches working well with the integration.
Unfortunatelly I can see the Dimmer and Curtain switch in the sonoff.json file, but the entity in Home Assistant is not exist.
For example, here is the Dimmer's sonoff.json:
{"10009e76b5":{"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"family":{"room":{"id":"606dd49ac630f50008940ef4"},"id":"606dd49ac630f50008940ef5","index":-1},"group":"","online":false,"shareUsersInfo":[],"groups":[],"devGroups":[],"_id":"606e11cda2f66600086467f9","relational":[],"deviceid":"10009e76b5","name":"Wifi Dimmer Teszt","type":"10","apikey":"adfd559b-1602-4518-86e7-52c3ba838727","extra":{"extra":{"uiid":36,"description":"20190802006","brandId":"5abcad2c20a9c73c4804ba0e","apmac":"*******","mac":"***********","ui":"单路调光开关","modelInfo":"5cbd3e054cae8c2473fa4c8d","model":"PSF-BTA-GL","manufacturer":"乐清市三口电子科技有限公司","staMac":"***********","chipid":"00A8C897"},"_id":"5d44105564a2ae23f10c6b5d"},"params":{"rssi":-61,"fwVersion":"3.4.0","staMac":"2C:F4:32:A8:C8:97","switch":"off","bright":28,"version":8,"sledOnline":"on","ssid":"TP-Link_E072","bssid":"*************"},"createdAt":"2021-04-07T20:10:53.222Z","__v":0,"onlineTime":"2021-04-07T21:09:43.446Z","ip":"<IP_ADDRESS>","location":"","offlineTime":"2021-04-07T22:19:29.150Z","sharedTo":[],"devicekey":"44845a10-5331-4f76-a488-b6386f28cfd5","deviceUrl":"","brandName":"CNSKOU","showBrand":true,"brandLogoUrl":"","productModel":"SK-A801T","devConfig":{},"uiid":36}}

Dimmer model Nr.: SK-A801T
Curtain model Nr.: SK-A801CY
Do you have any idea why the entities don't appear in HA? Are Dimmer and Curtain switches supported?
Thanks in advance.

HA should create entity for this dimmer (as switch).

I can't see any interesting in the logs. Seems to be OK everything, but the entity is not appeared.
Do you have any suggestion about the problem?
Thanks in advance.

Hello,
I realised that only works in cloud mode. (Multicast is OK.)
Is there any plan for supporting LAN mode as well?
Thanks in advance.

Show your config, you may remove private data

I tried all the configuration to achieve local mode operation.
The last one:
sonoff:
  username: *********
  password: *********
  mode: local
  reload: always
  debug: True

You can share these devices with my ewelink account -<EMAIL_ADDRESS>I don't promise quick results. I'll see when I have time off from other projects

I've just shared the dimmer device.
I can power it on in about 4 hours when I arrive home.
Thanks for your help.

I won't be able to check today.

I also have a curtain switch which lacks LAN Control. @AlexxIT is this something that needs to be solved on device side?
Model no: SK-A801C
FW Name: PSF-BTA-GL
FW Version: 3.4.2
The eWLink app does not offer "Lan Control" in settings and on the main screen only cloud icon is visible next to the device.
All TCP ports on the device are closed, while UDP 67, 137, 138 are open. I haven't investing in sniffing the HTTPS traffic to the cloud.

Dimmer UIID 36 supported


[release-4.2] Bug 1749031: Enable multiple namespaces sync if catsrc is updated in global ns

Cherry-pick #1125

Description of the change:
Motivation for the change:
Reviewer Checklist

[ ] Implementation matches the proposed design, or proposal is updated to match implementation
[ ] Sufficient unit test coverage
[ ] Sufficient end-to-end test coverage
[ ] Docs updated or added to /docs
[ ] Commit messages sensible and descriptive

/retest

/retest

/bugzilla refresh
/retest

/retest

/lgtm

/retest

/retest


Add support to enable, disable and list groups in test command

Purpose

Adds support to enable, disable and list groups in test command
Fixes #18772

Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[x] Unit Tests
[ ] Spec Conformance Tests
[x] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Codecov Report

Merging #21013 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #21013   +/-   ##
=======================================
  Coverage   14.59%   14.59%
=======================================
  Files          51       51
  Lines        1398     1398
  Branches      214      214
=======================================
  Hits          204      204
  Misses       1178     1178
  Partials       16       16

Continue to review full report at Codecov.

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


sensor application deployed to cloud foundry but the generated url is not working

i am successfully developed project(sensor manager app) and also deployed it to cloud foundry , but the application is not loading with the generated url [https://033b4803trial-aws-tb4x0rx0-dev-dappsdashboard-approuter.cfapps.us10.hana.ondemand.com/kcsensormanager/index.html]

Hi @Harikb183 ,
thanks for reporting your issue here. First of all, awesome that you've achieved this tutorial so far and I hope you've enjoyed it.
From the screenshots above it's quite hard to guess whats the reason for the non working link. So I can also only guess. Have you changed the welcomeFile property of the xs-app.json like described in https://github.com/SAP-samples/teched2020-DEV164/tree/main/exercises/ex11#exercise-114---configure-the-app-router-for-redirect?. Ensure that the value is identical with sap.app/id in the manifest.json. Also please check the BTP logs for further information whats going wrong.

Closed because author didn't respond for a long time.


Create dependent Medicine Publishing styles

closes https://github.com/citation-style-language/journals/issues/125

From the automated test:
The file "publishers.json" must contain a description for every metadata folder
     Failure/Error: expect(@data_directories - @publishers.keys).to eq([])

If you could do that in a separate PR?

Great. thank you :)


Setup GitHub issue templates and configure chooser

We need to setup GitHub issue / pull request templates.
We can leverage the existing Spring Security templates as a base and modify if necessary.
It would also be very convenient to configure a template chooser so a user can select the type of issue being logged. See the Gradle "New Issue Chooser" as an example.

Configuring issue templates
Configuring the template chooser

@jgrandja I have put this together. Please review and make changes as you see fit. If you are happy, please feel free to close this issue https://github.com/spring-projects-experimental/spring-authorization-server/issues/new/choose


Installer script deletes existing non related tables upon install

When the installer script runs, it asks for your database information then continues with db install.
If you have any existing tables for other projects or sessions or anything thats not related to box billing,  the install script drops all tables prior to installing its own only.
This is terrible.     Also,  All new downloads of the RC should be halted immediately! until this is fixed.

thanks bros!


Assign materialized Row ID and Row commit version column names

Description
This change is part of implementing row tracking as specified in https://github.com/delta-io/delta/pull/1610 and https://github.com/delta-io/delta/commit/7272b04db76507a98e07e96dc88e2c1a54283693.
It covers assigning a column name for the materialized Row ID and Row commit version columns by setting them in the table metadata when creating or cloning a table.
How was this patch tested?

Add test suite rowtracking.MaterializedColumnSuite to cover assigning materialized column names in various table creation and clone scenarios.

@johanl-db are you planning to have row tracking enabled for 3.0.0 release?

@johanl-db are you planning to have row tracking supported in 3.0.0 release?

Row tracking support in 3.0 will be limited to writing fresh row IDs / row commit versions, i.e. the changes previously introduced with these 2 PRs:

https://github.com/delta-io/delta/pull/1723
https://github.com/delta-io/delta/pull/1781

Reading row IDs / row commit versions and writing materialized row IDs / row commit versions require changes that will be in Spark 3.5, see e.p.:

https://github.com/apache/spark/pull/40677
https://github.com/apache/spark/pull/40545

These changes (and a couple other related ones) will allow us to define new metadata fields for row IDs / row commit versions directly from Delta - before that metadata fields were hard-coded in Spark's FileFormat
My resume work on row tracking when Spark 3.5 is available.
I'm opening this PR to assign the materialized column names because it can be done already without the previous Spark changes + it's a requirement to enable row tracking or write to a table that has row tracking enabled.


Delete region make APP refresh

Describe the bug
I just fork the project, clone to local and start. after I draw a new region, when I try to delete this region, the hole app refresh.
To Reproduce
Steps to reproduce the behavior:

draw a new region
delete the one

Expected behavior
should not refresh

seams like this issue caused by Node version, after i upgrade to 10.x it's gone.


Docs: Fix Info blocks not rendering correctly

Codecov Report

Merging #275 (78e6def) into master (78860a6) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #275   +/-   ##
=========================================
  Coverage     38.50%   38.50%
  Complexity      558      558
=========================================
  Files           178      178
  Lines          3301     3301
  Branches        397      397
=========================================
  Hits           1271     1271
  Misses         1888     1888
  Partials        142      142

Continue to review full report at Codecov.

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


[r2.13-rocm-enhanced] touch sudo-paaswd file

It helps to get rid of random failure saying sudo-paaswd no such file directory

Merged as causing compilation issue


Filter for establishment means

Currently there is not much data, but in the long term we want to encourage people to indicate whether species are domestic or cultivated. A filter for establishment means would be useful.

Thank you for bringing this to our attention!
I agree that adding a filter for establishment means is a useful option.
I've added this feature to our to-do list for the next PhyloNext release.


EDA Plots and Preprocessing

Created script pre_process_abalone_data.py that performs data cleaning/pre-processing
Created script abalone_eda.py that saves the eda plots
Made amends to abalone_eda.ipynb to use processed data instead of raw data
Moved script download_data.py from src/ to src/data_wrangling

Hi @charlessuresh ,
For the code quality purpose, in the eda script, can you break down the main function into three helper functions where each function is meant for plotting one figure only? And then you can call these three helper functions in the main function, which will make the code much cleaner.
Thanks

Hey @chuangw46
That's a great suggestion.
I've added helper functions-  one for each of the three plots.
Request you to review the amends made.

Hey @charlessuresh ,
I've just merged the PR. Thanks for your work.
Before submitting our milestone, can you also add docstrings for the functions in these scripts that you wrote?
Thanks


fix: avoid npe when evaluating cpu load average

Issue
https://gravitee.atlassian.net/browse/APIM-1566
Description
Avoid NPE if CPU load average is null (which can happen on Windows)

Gravitee.io Automatic Deployment
🚀 A prerelease version of this package has been published on Gravitee's private artifactory, you can:

use it directly by updating your project with version: 1.25.8-apim1566-npe-in-monitoring-1-25-SNAPSHOT
download it from Artifactory here

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

1.25.8
GitHub release

Your semantic-release bot :package::rocket:


kube-prometheus and alertmanager pods are stuck in 'Pending' state

What did you do?
helm repo add coreos https://s3-eu-west-1.amazonaws.com/coreos-charts/stable/
helm install coreos/prometheus-operator --name prometheus-operator --namespace monitoring
helm install coreos/kube-prometheus --name kube-prometheus --set rbacEnable=true --namespace monitoring

What did you expect to see?
All the pods to be successfully created and started.
What did you see instead? Under which circumstances?
The kube-prometheus and alertmanager pods are stuck in pending state
~ $ kubectl get pods -n monitoring
NAME                                                  READY     STATUS    RESTARTS   AGE
alertmanager-kube-prometheus-0                        0/2       Pending   0          8m
kube-prometheus-exporter-kube-state-ff6688b7b-wn25f   2/2       Running   0          8m
kube-prometheus-exporter-node-chnmt                   1/1       Running   0          8m
kube-prometheus-exporter-node-lfwpg                   1/1       Running   0          8m
kube-prometheus-grafana-7d87cdb888-h6fgw              2/2       Running   0          8m
prometheus-kube-prometheus-0                          0/2       Pending   0          8m
prometheus-operator-74c8b5fc7c-5lxzd                  1/1       Running   0          10m

Environment

Kubernetes version information:

Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.2", GitCommit:"bdaeafa71f6c7c04636251031f93464384d54963", GitTreeState:"clean", BuildDate:"2017-10-24T19:48:57Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.2", GitCommit:"bdaeafa71f6c7c04636251031f93464384d54963", GitTreeState:"clean", BuildDate:"2017-10-24T19:38:10Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

Kubernetes cluster kind:
Supergiant

Running kubectl describe outputs:
 ~ $ kubectl describe po alertmanager-kube-prometheus-0 -n monitoring
Name:           alertmanager-kube-prometheus-0
Namespace:      monitoring
Node:           <none>
Labels:         alertmanager=kube-prometheus
                app=alertmanager
                controller-revision-hash=alertmanager-kube-prometheus-6894d9fd9d
Annotations:    kubernetes.io/created-by={"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"StatefulSet","namespace":"monitoring","name":"alertmanager-kube-prometheus","uid":"ebeba99d-02e9-11e8-9f0f...
Status:         Pending
IP:
Created By:     StatefulSet/alertmanager-kube-prometheus
Controlled By:  StatefulSet/alertmanager-kube-prometheus
Containers:
  alertmanager:
    Image:  quay.io/prometheus/alertmanager:v0.9.1
    Ports:  9093/TCP, 6783/TCP
    Args:
      -config.file=/etc/alertmanager/config/alertmanager.yaml
      -web.listen-address=:9093
      -mesh.listen-address=:6783
      -storage.path=/var/alertmanager/data
      -web.external-url=http://kube-prometheus-alertmanager.monitoring:9093
      -web.route-prefix=/
      -mesh.peer=alertmanager-kube-prometheus-0.alertmanager-operated.monitoring.svc
    Requests:
      memory:     200Mi
    Liveness:     http-get http://:web/api/v1/status delay=0s timeout=3s period=10s #success=1 #failure=10
    Readiness:    http-get http://:web/api/v1/status delay=3s timeout=3s period=5s #success=1 #failure=10
    Environment:  <none>
    Mounts:
      /etc/alertmanager/config from config-volume (rw)
      /var/alertmanager/data from alertmanager-kube-prometheus-db (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-qmp5x (ro)
  config-reloader:
    Image:  quay.io/coreos/configmap-reload:v0.0.1
    Port:   <none>
    Args:
      -webhook-url=http://localhost:9093/-/reload
      -volume-dir=/etc/alertmanager/config
    Limits:
      cpu:     5m
      memory:  10Mi
    Requests:
      cpu:        5m
      memory:     10Mi
    Environment:  <none>
    Mounts:
      /etc/alertmanager/config from config-volume (ro)
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-qmp5x (ro)
Conditions:
  Type           Status
  PodScheduled   False
Volumes:
  config-volume:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  alertmanager-kube-prometheus
    Optional:    false
  alertmanager-kube-prometheus-db:
    Type:    EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:
  default-token-qmp5x:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  default-token-qmp5x
    Optional:    false
QoS Class:       Burstable
Node-Selectors:  <none>
Tolerations:     <none>
Events:
  Type     Reason            Age                 From               Message
  ----     ------            ----                ----               -------
  Warning  FailedScheduling  12s (x37 over 10m)  default-scheduler  node 'ip-10-0-1-69.eu-west-1.compute.internal' not found

node 'ip-10-0-1-69.eu-west-1.compute.internal' not found is my master node. Any ideas of why is it trying to schedule these pods in the master node?

@alterx feel free to reopen this issue or add more comments.


Update onboarding to let people set up their own webhook

Right now, setting up "you deployed the client!" webhooks requires (a) generating a random token (just a UUID), (b) manually storing that in Redis, and (c) storing it in a GH Secret.
Most basic idea is to document that. Better idea is to provide a cleaner abstraction around setting that up. This most likely looks like generating the UUID in the ARM template, storing it as an app setting, and telling people how to fetch it out of App Settings to set up as a GH Secret.

Worth noting this is "onboarding" in the sense of "people who want to deploy this for their own event", not "Roguelike Celebration" volunteers. Having functioning webhook support (only used for pushing out real-time client bundle update) isn't relevant unless you're running a production instance that needs to support hotfixes


[Draft] Add element count for annotation/group combinations

Adds a "Count" label in the draw widget under the draw element buttons; it gives the count of how many elements from the selected annotation are also in the currently selected group and updates it as elements are added, deleted and edited.
Addresses #174

As of now, the count updates when singular elements are altered, but I'm currently working on adding functionality so it updates when multiple elements are edited at once as well.

As of now, the count updates when singular elements are altered, but I'm currently working on adding functionality so it updates when multiple elements are edited at once as well.

This should now be good to go.

@eagw I just tried the branch (I haven't looked at the code yet), and I see it showing one group's count.  In some instances it changes which group it shows when I cycle through the style groups by using the mouse to pick a group, but not when I use the keyboard short cuts (q and w).
I think we want to always list the counts for any group where the count is non-zero (e.g., have something like
Count: 10 Glomeruli
        5 Nuclei

@eagw I just tried the branch (I haven't looked at the code yet), and I see it showing one group's count. In some instances it changes which group it shows when I cycle through the style groups by using the mouse to pick a group, but not when I use the keyboard short cuts (q and w).
I think we want to always list the counts for any group where the count is non-zero (e.g., have something like
Count: 10 Glomeruli
        5 Nuclei

I originally implemented it so only the count of the currently selected group was shown (and forgot to make sure it was updating when shortcuts were used), but now the counts of all groups with at least one element should be visible at all times.

I like how this is working.
For now, we probably don't want to display counts for pixelmaps and overlay annotations.  If we do display them for pixelmaps, it really needs to be how many of each category is selected in the pixel map, not a single value for the whole pixelmap.  We can make an issue to do that in a future PR.
In the interest in using less screen real estate, would it be possible to adjust the css like so:

(I hacked that by putting count and the tallies in spans that were inline-block positioned, but the width is wrong).

You can convert this from a draft PR to a regular PR.


Convert to TypeScript

This PR is split into 2 commits:  the first does the js->ts rename, the second gets compilation going.  This is the first in a number of steps to get us movin with TypeScript.

Codecov Report

Merging #64 into master will decrease coverage by 1%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #64      +/-   ##
==========================================
- Coverage   99.82%   98.82%   -1.01%
==========================================
  Files           7       14       +7
  Lines         580     2727    +2147
  Branches        0      156     +156
==========================================
+ Hits          579     2695    +2116
- Misses          1       19      +18
- Partials        0       13      +13

Impacted Files
Coverage Δ

src/paginator.ts
100% <100%> (ø)

src/logger.ts
100% <100%> (ø)

test/paginator.ts
99.38% <100%> (ø)

test/service.ts
99.57% <100%> (ø)

src/index.ts
100% <100%> (ø)

test/index.ts
100% <100%> (ø)

src/service-object.ts
100% <100%> (ø)

test/util.ts
98.56% <100%> (ø)

test/service-object.ts
98.36% <100%> (ø)

src/service.ts
98.18% <100%> (ø)

... and 16 more

Continue to review full report at Codecov.

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

@jmdobry how do we want to handle docs with this?


Pipelines support (edit & run on form submit)

[x] Edit pipeline
[x] Run pipeline on form submit (in a temporary shell)
Database (SQL) #44
Email address #45
Remote file server #46
HTTP request #54

Requirements:

Must support multiple tasks (Pipeline already does)
If one fails, other targets need to be executed anyway. (Pipeline supports this also)
Since this should not be public information, probably we need another model to describe the saved form -- which contains the public form model as a property. (Pipeline has been defined as property already in FormDTO and not public.)

General support has been implemented. Will continue work on subtasks.


Not getting experience from recruiting / gaining relation

You don't get experience in leadership when you recruit prisoners
Edit : I get experience from gaining relation my bad

Good to close issue?

I still don't get leadership experience when recruiting prisoners but I do when recruiting in villages / cities, shouldn't we get experience for both ?

I think so... Not sure. It does cost to recruit prisoners right?
We'll look into it.


running "git lfs track" in a large repository is very slow

Executing git lfs track in a large repository can be very slow. It takes >30s to run git lfs track in a repository with 31k files under version control and > 600k files in the same folder (mostly ignored in .gitignore) on modern hardware (most recent MacBook Pro at time of writing).
Being in itself an issue, it makes the usage of the popular tool Sourcetree unusable as it will run a git lfs track after every staging action.

Ahh, this is probably due to the fact that it's searching for existing files matching the pattern to see if they need to be in LFS. Users have had issues where they run git lfs track "*.psd", and then accidentally commit an existing PSD file without LFS.
@sinbad: Any idea why SourceTree is running track after every staging action? That doesn't seem correct. I think GitHub Desktop only calls it when you change the file types that are tracked.
@MatthiasEgli: Are you by chance tracking files individually, or are you tracking file extensions like *.psd? While it's possible to track individual files with LFS, it is not recommended for repositories with lots of files.
As for Git LFS itself, an easy workaround is modifying .gitattributes yourself. It may make sense to add an option to git lfs track (or even a git config option) that disables this feature too. It's nice for new users, but not great for repos with large trees.

SourceTree doesn't run git lfs track "blah" i.e. to change what's being tracked, unless you specifically ask for new files to be tracked, but it does use git lfs track (with no arguments) to get the list of tracked files when you stage files - this is to check whether you're adding oversized content without tracking them in LFS, so it can give you a helpful reminder. To avoid any issues with being out of sync with changes made outside it doesn't cache this information, and it's usually very fast.
It's possible that the process of searching deep directory structures for nested .gitattributes is what's making plain git lfs track slow?

In our case git lfs track is slow without any entries in .gitattributes (the file is empty). It is fast if I remove all the files which are not tracked by git (they are all ignored by respective lines in .gitignore). When starting to track files by adding entries to .gitattributes the performance doesn't change notably, e.g. it is still taking >30s to scan 600k files.
To me it looks like git lfs track does not consider .gitignore "early" enough, e.g. it scans all files without skipping folders/files mentioned in .gitignore.

Since git lfs track uses git ls-files underneath, we could take into account the .gitignore by giving the --exclude-standard flag to the ls-files command, as described: https://git-scm.com/docs/git-ls-files

Ah, git lfs track shouldn't be scanning 600k files then. Or at least, not the contents. It uses filepath.Walk.

Can we make

Fat finger ticket closing. I agree with @technoweenie, git lfs track should not scan all the files which are already ignored by something in .gitignore, such that filepath.Walk only walks through a subset of the file tree (e.g. only the parts which are not ignored by git).

such that filepath.Walk only walks through a subset of the file tree

I'm not sure if this is possible in the Go implementation of filepath.Walk. That function looks at the directory structure on disk in order to perform its traversal.
Implementing a DFS or BFS across a directory structure that Git provides us would certainly be possible, but I'd worry about buffering a potentially large amount of directories in memory at one time.

filepath.Walk is notoriously inefficient on large directories because it walks in lexical order, and gets that stat info. The fastest directory scan is via simple File.Readdirnames - this is not sorted nor does it access stat info (like File.Readdir). You can potentially make it even faster via partitioning - launching a new goroutine for a recursive descent.
Pre-loading the .gitignore details at the start and skipping the descent into dirs matched by that is entirely possible too.

I've got a bit of a queue but I could take a crack at a more efficient replacement for filepath.Walk as above if you like, since this affects SourceTree it's kind of in my interests.

First bash at a fast file walker: https://github.com/github/git-lfs/compare/fast-directory-walk
With 159350 files in 1452 dirs (max depth 5, each level 3-5 subdirs) I got these benchmarks from (3 runs shown on the same data):
filepath.Walk took 690.394824ms
tools.FastWalk took 228.529018ms
filepath.Walk took 653.240956ms
tools.FastWalk took 240.741351ms
filepath.Walk took 657.719823ms
tools.FastWalk took 244.931468ms

The gap expands significantly the larger the number of files. Still, both completed in under a second with more files than were quoted above, so this doesn't explain the 30 second delay the OP observed. I'll have to look into this further when I get more time.

It's possible filepath.Walk becomes extremely degenerate when most of the files are in the same directory. @MatthiasEgli you said you had 31k files under source control but "600k files in the same folder" - did you actually mean 600? I had a lot more files but maybe not the same distribution. How many leaf folders do you have?

The large number of files are generate by sbt; most are due to caches for incremental compilation. In our case, we have an sbt project with 33 sub-projects and approximately 15000 source files in 2500 directories.  After numerous sbt compiles, there are over 600000 files and 32000 directories.  All of the files created by sbt compile are in .gitignore.

OK - this code should also have the ability to load gitignores and skip them, I just haven’t written the tests for that part yet. Should be able to get a significant speed up from that too. More updates to come.

Think I've made some progress 😄
Folder with a bit over 500,000 files in it; 200,000 in the .git folder and 300,000 in a nested folder which is covered by .gitignore, a thousand or so scattered elsewhere:
filepath.Walk took 22.511937691s
tools.FastWalkGitRepo took 12.2449ms
filepath.Walk took 22.452540693s
tools.FastWalkGitRepo took 13.621396ms

Note the units: 22 seconds for filepath.Walk, 12-14 milliseconds for tools.FastWalkGitRepo 🤘 Most of that is gained via skipping those huge dirs; without that FastWalk only halves the time.
I've got a few broken tests in other areas I'll have to fix up then I'll submit a PR.


test: add send to external test

Summary by CodeRabbit

Tests

Introduced test cases for the SendToExternal functionality, ensuring robust handling of operations like transferring tokens to external chains, token conversion, fee management, and transaction tracking.

mg


Fix reindexing of segments in Google Cloud Storage

Google Cloud Storage allows : in paths. For this reason google was not added to https://github.com/druid-io/druid/blob/da007ca3c2a7acec4b86186de95bc370d6867f6a/indexing-hadoop/src/main/java/io/druid/indexer/JobHelper.java#L585
Normally this is not an issue but when reindexing segments the Hadoop code for getSplits trips up on the : and returns: Relative path in absolute URI
This patch URL encodes the : character making it work in Hadoop as
well.

There's a method to hadoopify a string somewhere in the code. Suggest just using that (I'm on mobile so can't find it at the moment)

@drcrallen the only thing I see is that for hdfs it uses a different segment name. I don't see any code to encode characters to work with hdfs.

👍

Ah ok, that was the method I was thinking of. Is it possible to use the same methodology in the two places? i.e. use _ instead of %3A?

@drcrallen the issue is with people already using the google extension who will already have segments with : in the path that won't be fixed by replacing it by _ now.
We could add google to https://github.com/druid-io/druid/blob/da007ca3c2a7acec4b86186de95bc370d6867f6a/indexing-hadoop/src/main/java/io/druid/indexer/JobHelper.java#L585 to prevent future segments from having this problem but changing : to %3A makes this not really needed.
I agree that the replace seems a bit weird limited to one character and hard coded but it's the best solution for existing segments that I found. We are already using this internally at the moment.

@erikdubbelboer ok that makes sense.
Can you please:

Add a comment to the code as to why this does not use _
Add unit tests to verify functionality.

@drcrallen done.