[Question] Is there any way to get the list of documents?

Context / Scenario
I have a database of documents that I would like to "rsync" with KernelMemory on a schedule.
But in order to delete a document that is no longer in the source database, I'd love to be able to check the list of imported documents in the content storage.
Question
Is there plan to support listing documents?

Currently there's no plan, we're trying to limit the scope of the storage operations to avoid turning KM into a file manager or a DB abstraction. Any new feature added on one storage (e.g. Azure Blob) would have to be implemented in all the storage extensions for consistency, which is quite expensive.
That said, the suggestion is to use the SDK of your storage choice, to access the storage and run custom operations. For instance, if you're using KM with Azure Blobs, you can leverage the Azure Storage SDK to browse the storage account, list folders and files.

Currently there's no plan, we're trying to limit the scope of the storage operations to avoid turning KM into a file manager or a DB abstraction. Any new feature added on one storage (e.g. Azure Blob) would have to be implemented in all the storage extensions for consistency, which is quite expensive.
That said, the suggestion is to use the SDK of your storage choice, to access the storage and run custom operations. For instance, if you're using KM with Azure Blobs, you can leverage the Azure Storage SDK to browse the storage account, list folders and files.

Thanks, @dluc. I assume that will rely on the content storage structure. But it shall work for me for now. Thank you!


Duplication

Scheduled_ Task::approval_notification()
Duplication Locations

sources/subs/ScheduledTask/ApprovalNotification.php
sources/subs/ScheduledTask.class.php

sources/subs/ScheduledTask.class.php <= This should be entirely removed.
It went in when I merged 1.0.8/9 (as usual, I already did that two or three times...) I removed it in #2663 but when you picked the branch, probably missed the commit "ScheduledTask.class.php is no more part of 1.1... again!". :angel:

And probably 7738591c7fd97aa1ceb2eb081dffcd7b2054b02b is missing as well... or maybe not, I have to check.

Fixed locally


New state management and SDK #1

Description
This PR sets up the new architecture for the Kwenta frontend, which includes:

Moving state management to Redux
Abstracting application logic to an sdk folder, which will be moved into a standalone package in the near future

Related issue

#1076
#1406
#1422

Motivation and Context
The new architecture solves a myriad of performance problems with the existing application, separates presentation and business logic, and makes it easier to refactor existing components and add new features.
How Has This Been Tested?
N/A
Screenshots (if appropriate):
N/A

Vercel deploy error message:


VSCode closes every time I try to open a link

VSCode Version: 1.50.1 (Snap)
OS Version: Arch Linux x86_64 5.8.14-arch1-1 KDE Plasma DE

Steps to Reproduce:

Create a comment containing a link
Click on the link
VSCode should suddenly close

This also occurs when trying to turn on settings sync.
EDIT:
Other places this issue occurs (that I know of):
Deleting a file
Signing in through the vscode-spotify extension

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

@joaomoreno Is our snap supported on Arch?

#100940


If we can't read from a queue, an app hangs forever

Spotted in the prod ingests monitor just now:
com.amazonaws.services.sqs.model.AmazonSQSException: Access to the resource https://sqs.eu-west-1.amazonaws.com/975596993436/storage_prod_ingests_input is denied. (Service: AmazonSQS; Status Code: 403; Error Code: AccessDenied; Request ID: 777d3293-7457-55cc-a2a6-64acfb8ae49d)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(AmazonHttpClient.java:1712)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1367)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1113)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:770)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:744)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:726)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:686)
at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:668)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:532)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:512)
at com.amazonaws.services.sqs.AmazonSQSClient.doInvoke(AmazonSQSClient.java:2033)
at com.amazonaws.services.sqs.AmazonSQSClient.invoke(AmazonSQSClient.java:2009)
at com.amazonaws.services.sqs.AmazonSQSClient.executeChangeMessageVisibility(AmazonSQSClient.java:520)
at com.amazonaws.services.sqs.AmazonSQSAsyncClient$2.call(AmazonSQSAsyncClient.java:402)
at com.amazonaws.services.sqs.AmazonSQSAsyncClient$2.call(AmazonSQSAsyncClient.java:396)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
15:45:34.418 [main] INFO u.a.w.platform.archive.ingests.Main$ - Terminating worker.

When this happens, the app stops processing work, but the ECS task doesn't get terminated, and the work on the queue never gets processed.
We can implement https://github.com/wellcometrust/platform/issues/4014 as a short-term fix, but we should really fix this at the code level. If we can't read from a queue, stop the process and let ECS respawn the task.

I think this is fixed by https://github.com/wellcomecollection/scala-libs/pull/76


Twitter sensitive content issue

Redundant sensitive content method at botCore.py.
retweeted, liked = tweet_status.retweeted, tweet_status.favorited
            if hasattr(tweet, "possibly_sensitive"):

                #  Likes and retweets a tweet if: no like and no retweet previously + no sensitive content
                if not retweeted and not liked and not tweet_status.possibly_sensitive:
                        #  TO-DO...

Search settings can be manually edited via account preferences, hence no special method is required. Redundant method causes slower application performance.

Suggestion: above mentioned block of code (or function) be reviewed and tested.

Issued by @michalspano

Bug fixed: 22494a1d705b79b6f1e0508609b2017e299b2346
@michalspano


Pass parameters to build tooling

Steps to Reproduce

Build https://aur.archlinux.org/packages/invoiceninja-desktop-git (or https://github.com/invoiceninja/admin-portal directly) with flutter run:

I would like to get rid of the make warning, how can I pass -Wno-dev to make?
Can I suppress the root warning? Since this is fakeroot, it does not matter.

Hello @xeruf. Thank you for filing this issue. Can you please provide the following information?

A complete and minimal, reproducible example with clear steps to reproduce the issue. The sample should not include any 3rd party libraries. If this is an issue with InvoiceNinja only, a better place would be to raise an issue with them.
The output of flutter doctor -v

Please provide the information in the form of text. See how to make collapsible sections with Markdown here.

I have no experience with flutter development and it should be unrelated to the actual code,
especially the root warning.
Here is the doctor:
❯ flutter doctor -v
[✓] Flutter (Channel stable, 3.3.8, on Arch Linux 6.0.9-arch1-1, locale en_IE.UTF-8)
    • Flutter version 3.3.8 on channel stable at /opt/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (13 days ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /opt/android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/linux#android-setup for more details.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop
    • clang version 14.0.6
    • cmake version 3.25.0
    • ninja version 1.11.1
    • pkg-config version 1.8.0

[✓] Android Studio
    • Android Studio at /opt/android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version openjdk version "11.0.13" 2021-10-19

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-x64 • Arch Linux 6.0.9-arch1-1

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.

The complete and minimal, reproducible example I mentioned doesn't need to be code, but rather steps to reproduce this issue. I would need such a sample to verify the issue, else we cannot move forward with it.

Steps:

sudo flutter

Using sudo is not recommended with Flutter. And Flutter will give you a warning due to this. I need a way to reproduce this issue without any 3rd party dependencies. This includes the fakeroot environment as that is not something Flutter controls. Please provide a way to reliably reproduce this issue, with minimal code samples and steps to reproduce, else I won't be able to take this issue further

But you don't need to reproduce the fakeroot environment.
The matter of fact is that flutter is run in an environment where it acts as root without any security implications, thus there should be a flag to disable this warning.

@xeruf Can you share the source of -Wno-dev parameter? Is it invoiceninja parameter?

The matter of fact is that flutter is run in an environment where it acts as root without any security implications, thus there should be a flag to disable this warning.

@xeruf The sudo warning is different from the warning coming from cmake.  When running Flutter as sudo, you get the following warning:
Woah! You appear to be trying to run flutter as root.
We strongly recommend running the flutter tool without superuser privileges.

This is different from the CMake one you wish to get rid of. Now speaking of this CMake warning, I can not reproduce this with a default app, even after running sudo flutter build linux. This warning appears to be originating from how InvoiceNinja has set up their build dependencies.
Now while you request to pass parameters to build tooling may be valid, without a way to reproduce this error consistently, how would we know that this issue is solved? We cannot rely on InvoiceNinja's repository unfortunately. We need a small sample that we can test against this warning, to both verify it, and to test a potential fix against it if it comes to that. What I am asking of you, is to provide such a sample so that this issue can be taken further.
If you are unable to provide a sample, this issue while may be valid, is unactionable and therefore, would make it invalid.

This is different from the CMake one you wish to get rid of.

Since getting rid of the cmake warning seems to require more work than it's worth for me,
I am solely concerned about the root warning now.
Is it so hard to get from my initial enumeration that I want to get rid of both?

@xeruf i am also struggling to reproduce the cmake warning, but if i'm reading this correctly, are you now trying to just get rid of the warning that is printed out when running as root below
   Woah! You appear to be trying to run flutter as root.
   We strongly recommend running the flutter tool without superuser privileges.
  /
📎

Yes, flag or environment variable or whatever, I don't care - I just don't want to always have a big warning popping up when flutter is upgraded on arch as package builds are always run in fakeroot there.


Global Numberings

It can be quite helpful to visualize the numbering of different things for debugging purposes

[ ] Vertex numbering (first order in #20)
[ ] Node numbering
[ ] Edge numbering, if existent
[ ] Face numbering, if existent
[x] Cell numbering (#20)
[ ] DoF numbering

as well as having their positions visualized

I would keep it modular and add methods like add_... or print_, so these could be added to different plots. What do you think?

ah so
plot_grid(grid)
plot_nodenumbering!(grid)

?

btw we currently support only node numbering, not vertex numbering, see e.g this quadratic quadrilateral

Correct, removed the checkmark again. Currently only the vertices/nodes in linear geometry works.

Why should nodes in the nonlinear deformed case not work for the nodes? The incompressible elasticity is quadratic displacement field with linear geometry and I just tested isoparametric serendipity in the plasticity example:

plasticity with serendipity looks fine to me. edges etc. don't work

In your example the grid is linearly deformed, so it works. But, as you wrote, chosing the deformation field and the grid nonlinear leads to a nonlinear representation whoch we cannot capture yet. For the first try we can go with just pulling the default interpolation.


Gradle Support?

Hi was wondering if you could add gradle support for this library thanks!

and update here?

@RomainPiel @nootfly NDK support in Gradle is very straight forward. Take a look at this article.
http://www.shaneenishry.com/blog/2014/08/17/ndk-with-android-studio/

:+1: this needs to be on gradle.

any progress on this?

I would be interested in this

:+1:

+1 gradle support

+1

+1

For your convenience, I have compiled Bypass into a gradle compatible library here:
https://github.com/Commit451/bypasses

+1

really want gradle been supported.

To easily import the updated bypass library in android follow this link - https://github.com/amit-upadhyay-IT/bypass-android


RFC: Invest unsettled funds in a lending protocol

As per my understanding, unsettled funds remain idle until they are reclaimed by users. They could be invested in a lending protocol to earn interest. Take a small cut and pass the profits to the users. This shouldn't break composability as withdrawals and settlements happen in a single step.

Probably collides with https://github.com/project-serum/serum-dex/issues/109


The /api/enforce interface specifies the enforcerId and this error occurs, which is the same as this issue

issues：https://github.com/casdoor/casdoor/issues/2198
version：casdoor-all-in-one:v1.390.0

@shawees the error means that your policy definition in Casbin model has 3 elements, but your adapter's policy rule has 6 elements. They don't match. See more details at Casbin docs: https://casbin.org/docs/syntax-for-models#policy-definition


Make virtual destructors explicit for Tensors

Technically the spec only says direct derived classes inherit virtual destructors. WrappedRamTensor is a great grand child.
Not having this can make GC weird.

bump

@mbartling good catch!
I should probably add a test-case for WrappedRamTensor before merging this. Otherwise, there's no way for us to tell if we've broken stuff.


[Feat] Add some auxiliary functions to get chunk num with info and directory for user

Is your feature request related to a problem? Please describe.
Currently the get chunk num function in embedding in readers, When users want to get chunk num of a certain label of vertex or edge chunk num of a vertex chunk, they need to initialize a reader first, and then get the chunk num with the GetChunkNum API.
We should provide some auxiliary functions to get the chunk num
Describe the solution you'd like
Add some auxiliary functions to get chunk num with info and directory for user

closed as resolved.


Remove Symbol description

Symbol("description");

// out
Symbol();

Also, Symbol() can be treated as a Side-effect free fn call, and can be dead-code eliminated.
Ref: #510

Should this one be marked unsafe? Technically someone could be relying on the .toString() output.

Yeah. When it is included, it should be included behind an option.
Right now, the unsafe grouping is removed and options are flattened, and we need to re-think as to what options to gather under this one option - unsafe.


Add BME to list of university

@pnhatminh I am sorry, I have to close the request without merging, because you made a mistake in a request and requested to merge too many files, most of them do not relate to the organization which you would like to add to this repository. Please ensure that you are familiar with this repository rules located at the bottom of this page and submit a new request with the correct information. Thank you for your understanding!


Issue523 fix is array equal

Closes #523

[x] Running yarn lint does not trigger any linter errors
[x] The test of the method you have fixed is passing
[x] You have written a new skeleton method for someone else to work on!
[x] You have written tests to accompany your skeleton method

@BlakeGuilloud Does it matter that this issue didn't have the Hacktoberfest label on it?  Not sure if that matters, for t-shirt purposes :)

Issue is already exists here: #534.  Thanks!


Fixes #2454 #2517 #2523 - ResourceInput improvements

Changes:

Use our <AsyncAutocomplete> component in <ResourceInput>

This is a super powerful component that we use in <CodeInput>, <CodingInput>, <CodeableConceptInput>, and more

Add clearable
Add maxSelectedValues={1}

Fixes:

Cannot add multiple project "features" using the react component #2454
Cannot clear entry in ReferenceInput #2517
Cannot add/link an ImagingStudy to a DiagnosticReport #2523

Deployed to staging: https://app.staging.medplum.com/

coverage: 94.315% (+0.005%) from 94.31% when pulling cceaa077e12eca4026cc00e90cc2acc0da49575f on cody-resource-input-fixes into 647bd2a6ab2a501d5610bfe0ed547bcb8b86caf4 on main.


Update 0064-VALP-validator_performance_based_rewards.md

Added heartbeats and additional rewards
close https://github.com/vegaprotocol/specs/issues/1993 .

closing as copied to this PR:
https://github.com/vegaprotocol/specs/pull/2027


economictimes.indiatimes.com

Hi,
This news site is being blocked and I feel it is a false positive
It is an economic paper from an Indian news source
Not advertising/adware/spyware/malware
Thanks

Hi, @p1r473  where exactly is stored?

Hi, @p1r473  where exactly is stored?

@FadeMind
https://raw.githubusercontent.com/FadeMind/hosts.extras/master/rlwpx.free.fr.htrc/hosts
Thanks

@FadeMind
https://raw.githubusercontent.com/FadeMind/hosts.extras/master/rlwpx.free.fr.htrc/hosts
Thanks

@p1r473 done. Thanks for contribution.

@p1r473 done. Thanks for contribution.


Better loader and investigate performance issues

If you try to open/close the channel panel while image tiles are loading, it will not respond right away and depending on how long the tiles take to load it will be laggy.
You can experience this more often on larger images with larger number of possible zoom. For example,

Open this image: https://dev.rebuildingakidney.org/chaise/viewer/#2/Gene_Expression:Image/id=14-481P?waterMark=gudmap.org&meterScaleInPixels=3082824
Click on "Zoom in" button multiple times.
While the spinner is showing up indicating that images are loading, click on the channel button.
It will not properly show the panel until the tiles are loaded.

I'm not entirely sure why we're experiencing this and need to investigate more. But I'm assuming it could be because of osd loading/hiding/caching tiles while interacting with the page.
Also as part of this we should make sure the loader is more visible. I added the loader as a debugging tool and didn't want it to be distracting. But now it's way too hidden. One suggesting is showing a banner with loading... text on top of the image.

Changed the spinner in https://github.com/informatics-isi-edu/openseadragon-viewer/commit/ca99368bd84e340acd779ffe04cb99e1a5fbc02e commit. I still need to look more into the performance issue.

While working on the channel controls changes, I spend some time looking at the performance issue. Disabling the image color manipulation that we're doing, significantly improves the performance of the app. And that makes sense given that we're going over pixels of the displayed tiles one by one and modify their values.
We might be able to improve this by improving that implementation. There might be some built-in feature in OSD that allows us to do this more efficiently.

Moved to wishlist.


core: implement Notary contract

Close #1545

Also, there are typos in commit messages afab4cda and 807a4bd.

Finally, tests are done. @roman-khimov, I removed lockDepositUntil native Notary method, because onPayment can handle empty payments to update till.
There's one more TODO left, what should we do in case if provided till is invalid? We can either (1) set the default value for till or (2) return an error. The second option is implemented at the current moment.

because onPayment can handle empty payments to update till

I don't think it's very convenient to the user. Suppose I have 10 GAS deposited already and I need to renew it. Requiring to send more GAS is fishy and sending 0 GAS just costs more than it should (going through two contracts instead of one).

There's one more TODO left, what should we do in case if provided till is invalid? We can either (1) set the default value for till or (2) return an error.

Given that data is a part of the transfer now, I think we can just fail, so (2), to use notaries you need to supply this data, period.


Issue #75 resolved : Start btn was not working

fixes #75 Start button was not working which is now fixed

@YadavAkhileshh Please add the gssoc-ext and hacktoberfest-accepted tags


pick_window not showing picker

NVIM v0.10.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
command:
:lua print(require("window-picker").pick_window())
prints id of current window but choice of window is never shown
configured without any parameters

I'm going to need more information. There could be situations where the hints will not be displayed. Please add info to recreate the issue as well as the configuration you are using

so i'm just using
  use {
    's1n7ax/nvim-window-picker',
    tag = 'v2.*',
    config = function()
        require'window-picker'.setup()
    end,
	}

in packer
and i'm opening two files in v-split  that's it. Please can you specify what other data can i provide to aid pinpointing a problem. It might very well be that i'm doing something wrong

is there anything else i can try? or maybe do you have any suggestions how to provide you with more information?

The 'fix' is quite simple. By default pick_window returns the ID of the other window if you only have two after filtering. As soon as you have three or more windows which one you want to switch to isn't obvious anymore and it asks you to pick.
If you want it to always ask which window you'd like to pick you have to set filter_rules.autoselect_one = false.
A minimal configuration example for this would be:
require('window-picker').setup({
  filter_rules = {
    autoselect_one = false
  }
})

Answering here cause I had the same issue and just figured it out by trying around and taking a second look at the documentation.

@enidisepic  thank you for sharing your solution, as it is in right direction for sure. However it is now quite there for me yet. What i didn't realized that when picking windows you need to have at least 3 windows otherwise it will choose the other one. can you share your configuration as i cannot seem to get it working:
require 'window-picker'.setup({
	hint = 'statusline-winbar',
	filter_rules = {
		include_current_win = true,
		autoselect_one = false
	}
})

i would think that this would work but it desn't in my case

@s1n7ax what are you using to execute lua code in demo videos? maybe that's why we have different results, i'm using command mode : without any pop-up  window

@KunaPrime With your configuration, if there are two windows, then the prompt should show up. However, following are the default filters. So, if one of your windows  are one of them, then that's why you need more than two windows.
		bo = {
			-- if the file type is one of following, the window will be ignored
			filetype = { 'NvimTree', 'neo-tree', 'notify' },

			-- if the file type is one of following, the window will be ignored
			buftype = { 'terminal' },
		},

@s1n7ax this is still not working for me and none of my windows are one of filters

@KunaPrime Please add the steps to recreate

@s1n7ax maybe i have not understand something here. So in the demo clips in this repo command print(require("window-picker").pick_window()) is run and then window hints are shown so one can choose which one to focus or whatever. So i have two windows in my nvim instance and then i run in command-line mode i type lua print(require("window-picker").pick_window()) which i assume should have same behavior as in demo clips but it does not. Instead hint are shown only when more than two windows are present and one window is always missing hints.

This is what you should see with following configuration. If this isn't what you get, it's either some filter removing some windows or you are calling window-picker setup wrong.
return {
	's1n7ax/nvim-window-picker',
	opts = {
		hint = 'statusline-winbar',
		filter_rules = {
			include_current_win = true,
			autoselect_one = false,
		},
	},
	event = 'VeryLazy',
}

You can remove every configuration related to window-picker (it's used in neo-tree if you have added it). Then just put the configuration I have added in the previous comment (assuming you are using lazynvim), then it should work.

unfortunately this is not what i get.  this is exact config that i'm using for packer:
  use {
    's1n7ax/nvim-window-picker',
    tag = 'v2.*',
    config = function()
        require'window-picker'.setup()
    end,
	}

i think this is the same as per docs.

Ok. I'm officially done wasting time explaining this to you.

@KunaPrime You don't pass any configurations. What you get is the expected behavior. If you want to get the same behavior as of the demo, the use the configuration I have added in the previous comment. If it still doesn't work, you are probably setting it up somewhere else.


Storybook build hangs on Win10/WSL

Describe the bug
When I run yarn run build-storybook, defined as
"build-storybook": "rm -rf ./storybook-static && build-storybook -s ./public -c config/storybook",

the build seem to hang and never finish on Win10/WSL. See screenshot. Same command on Mac works fine.
To Reproduce
You can try to reproduce with this repo/commit: https://github.com/UNDataForum/components/tree/7b3864b51a8bcc34849b419870fafbffbdd5504f
If you have the same issue on Win10/WSL, please comment.
Expected behavior
Build should complete.
Screenshots
This is what I see and it never finishes. It does not create any files on the file system.

Does this still happen? Did you maybe try other versions of SB?


[BUG] ManagedIdentitySource incorrectly wrap the TaskCanceledException

Library name and version
Azure.Identity 1.10.4
Describe the bug
It's possible that the library is able to get a valid response from the managed identity service, but the client cancel the request before the deserialization is done.
https://github.com/Azure/azure-sdk-for-net/blob/536d31880939508f163d00859762b69120029ec2/sdk/identity/Azure.Identity/src/ManagedIdentitySource.cs#L61C1-L62C1
According to the code, as the deserialization does respect the cancellationToken, it would throw TaskCanceledException even when a valid response is returned by the service. And there is nothing wrong with it.
But later down the path,
https://github.com/Azure/azure-sdk-for-net/blob/536d31880939508f163d00859762b69120029ec2/sdk/identity/Azure.Identity/src/ManagedIdentitySource.cs#L87C1-L88C1
The above code incorrectly wrap the TaskCanceledException into a RequestFailedException making it hard to detect client-side cancellation. More importantly, it captures the raw response body and make it not safe for logging the exception as it potentially can include a valid token.
An example stacktrace:
Azure.Identity.AuthenticationFailedException: ManagedIdentityCredential authentication failed: Service request failed.
Status: 200 (OK)

Content:
{"access_token":"#EMIT THE ACTUAL TOKEN#"

Headers:
Date: Mon, 18 Mar 2024 11:48:36 GMT
Server: Kestrel
Transfer-Encoding: chunked
X-CORRELATION-ID: REDACTED
Content-Type: application/json; charset=utf-8

See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/managedidentitycredential/troubleshoot
 ---> Azure.RequestFailedException: Service request failed.
Status: 200 (OK)

Content:
{"access_token":""#EMIT THE ACTUAL TOKEN#""}

Headers:
Date: Mon, 18 Mar 2024 11:48:36 GMT
Server: Kestrel
Transfer-Encoding: chunked
X-CORRELATION-ID: REDACTED
Content-Type: application/json; charset=utf-8

 ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
   at System.Text.Json.JsonDocument.ReadToEndAsync(Stream stream, CancellationToken cancellationToken)
   at System.Text.Json.JsonDocument.ParseAsyncCore(Stream utf8Json, JsonDocumentOptions options, CancellationToken cancellationToken)
   at Azure.Identity.ManagedIdentitySource.HandleResponseAsync(Boolean async, TokenRequestContext context, Response response, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at Azure.Identity.ManagedIdentitySource.HandleResponseAsync(Boolean async, TokenRequestContext context, Response response, CancellationToken cancellationToken)

The ask:
The SDK should never wrap the OperationCanceledException. It probably also shouldn't attach the response to exception when the response is 200.
Expected behavior

The SDK should never wrap the OperationCanceledException.
It probably also shouldn't attach the response to exception when the response is 200.

Actual behavior

TaskCanceledException get wrapped into RequestFailedException which then get wrapped into AuthenticationFailedException

AuthenticationFailedException contains the full response body even for 200 case.

Reproduction Steps
N/A
Environment
No response

This was just recently fixed with https://github.com/Azure/azure-sdk-for-net/pull/42809

Thanks for the promote response @christothes ! However, I don't think the fix would solve the problem I mentioned.
In the https://github.com/christothes/azure-sdk-for-net/blob/e42600c1f50422497ff6abeef8df5fa8c79dbfb2/sdk/identity/Azure.Identity/src/ManagedIdentitySource.cs#L87C1-L88C1, it would always throw RequestFailedException if the try block throws TaskCanceledException.
I am in general if the Cancellation is signaled by the caller, library should never catch / wrap the original OperationCancelledException.
I would love to reopen the issue to see if we can get a proper fix for it.

You are correct -  RequestFaileException is intended here due to how DefaultAzureCredential handles selecting the appropriate credential in the chain. The inner exception is TaskCanceledException. Could you explain why this is a problem for your scenario?


fix for issue #2907 - 1.5.x version

…solver.ignore() to get a more accurate approximation of what Jackson does

please build

Thanks!


Make links descriptive

What changed, and why it matters
Made links on the docs homepage descriptive for better accessibility and SEO. Some other minor changes to tool descriptions and other microcopy.
Resolves: #1276

A few minor things in this PR,

could you right-align the links to "Aiven Console Overview and Aiven CLI Quickstart (should Overview and Quickstart be lowercase? )
Automation section - make the boxes similar in size to the above section for uniformity.

Not sure about how feasible this is, but it would be nice to align the links, for example, "Learn about M3" and "Learn about MySQL"

I changed the alignment to keep everything from looking the same; same with the automation tools. I wanted to have a little different look/weight because otherwise I think everything on the page just looks the same.
I'm not aware of a way to manually align the links, but I do think the copy for services should be updated, which could help with these being a little more aligned (though, that will depend on the device).

I changed the alignment to keep everything from looking the same; same with the automation tools. I wanted to have a little different look/weight because otherwise I think everything on the page just looks the same.
I'm not aware of a way to manually align the links, but I do think the copy for services should be updated, which could help with these being a little more aligned (though, that will depend on the device).

I think having some degree of symmetry in the design is visually appealing. While scrolling through the page, there is a sense of disconnection in its overall look and feel. For instance, varying alignment of links, such as the center alignment of "Aiven Console overview" and "Aiven CLI quickstart", compared to the rest that is right-aligned. (this may be just my perception, and others may view it differently).
The points may seem trivial since it's uncertain whether users browse the page or use the search function to find information.
Maybe, we could push the changes and see if we get any feedback?


[CT-3217] [Bug] Multiple calls of dbt-retry fail with exit code 2

Is this a new bug in dbt-core?

[X] I believe this is a new bug in dbt-core
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
The command dbt-retry can only be used once, but not multiple times after another. When I used again, it throws an error with exit code 2.

Expected Behavior
In a job, I have some modes which sometimes - not always - fail (due to a stale issue, hard to tackle with Spark, see https://github.com/dbt-labs/dbt-spark/issues/395).
To fix, I just want to run twice a retry so that I only get a job running error when a model did not build after running it 3 times.
Strangely, the dbt-retry just breaks when I call it a second time. In my opinion, dbt should somehow write a "completed" information to the target folder, so that a second dbt retry does not crash.
Steps To Reproduce

run dbt run with a model that fails
fix the model and run dbt retry
run dbt retry again. You will get a broken dbt retry with exit code 2.

Relevant log output
05:59:17  Running with dbt=1.6.2
05:59:18  Registered adapter: databricks=1.6.4
05:59:19  Encountered an error:
Runtime Error
  Could not find previous run in 'target' target directory

Environment
- OS: Databricks Runtime 12.2 LTS
- Python: 3.9.5
- dbt: 1.6.2
- dbt-databricks: 1.6.4

Which database adapter are you using with dbt?
other (mention it in "Additional Context")
Additional Context
No response

Thanks for reaching out @leo-schick.
Is it possible that you cleared out the target directory before the 2nd retry?
When I tried to reproduce your report, things worked fine for me unless I cleared out the target directory in between.
Here are two different commands that will clear it out in my environment:
rm -rf target

or:
dbt clean

(I'm assuming you're not using a custom target-path (deprecated) due to your error message -- regardless, using a custom target-path worked for me too as long as I didn't delete it.)

@dbeatty10 no, that is not what I did (unless Databricks would do that by itself).
But maybe it helps that I use DBT_PROJECT_DIR and the calling location home is not the same as the project dir (DBT_PROJECT_DIR). The screenshot above is taken out of Databricks after dbt run was run successfully.

@leo-schick I tried it with setting the DBT_PROJECT_DIR environment variable, and I still was not able to reproduce the issue in my local environment. I tried using the dbt-databricks adapter, but I didn't try it using the Databricks web interface.
So I'd suggest doing the following in between runs of dbt retry to see if there is any content within the target directory or if it's being wiped out somehow:
ls -al target

Here's what I tried
Create an env variable:
export DBT_PROJECT_DIR=subdir
mkdir -p subdir/models

Write out a bad SQL file:
cat <<EOF >subdir/models/my_model.sql
this line should be commented, but is not

select 1 as id
EOF

Run it:
dbt run -s my_model

Fix the SQL file:
cat <<EOF >subdir/models/my_model.sql
-- this line should be commented

select 1 as id
EOF

Retry it a couple of times:
dbt retry
dbt retry

Unset the env variable:
unset DBT_PROJECT_DIR

Hi @dbeatty10 ,
I checked now it again and it looks to me that dbt retry produces an invalid run_results.json file which causes then the second dbt retry to fail.
What I found out
Running ls -al target left me with the same results:
After running dbt run:

After running first dbt retry which does not fail:

But I realized, that the size of the run_results.json changed so I took a look at them:
run_results.json after running dbt run:
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.6.2", "generated_at": "2023-10-18T06:27:33.869519Z", "invocation_id": "07a4585c-7699-4762-b4f7-d70f7e6bc1c4", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-10-18T06:27:19.246866Z", "completed_at": "2023-10-18T06:27:19.252009Z"}, {"name": "execute", "started_at": "2023-10-18T06:27:19.253016Z", "completed_at": "2023-10-18T06:27:22.818910Z"}], "thread_id": "Thread-1", "execution_time": 3.5964810848236084, "adapter_response": {"_message": "OK", "query_id": "0761fc7e-688f-415e-aef1-140ccb53fb10"}, "message": "OK", "failures": null, "unique_id": "model.databricks_dwh.Country"}], "elapsed_time": 21.952351331710815, "args": {"log_level_file": "debug", "exclude": [], "which": "run", "send_anonymous_usage_stats": true, "log_format": "default", "print": true, "warn_error_options": {"include": [], "exclude": []}, "printer_width": 80, "use_colors_file": true, "enable_legacy_logger": false, "vars": {}, "introspect": true, "defer": false, "log_level": "info", "partial_parse_file_diff": true, "quiet": false, "write_json": true, "cache_selected_only": false, "favor_state": false, "indirect_selection": "eager", "invocation_command": "dbt run -s Country", "log_format_file": "debug", "macro_debugging": false, "select": ["Country"], "partial_parse": true, "version_check": true, "log_path": "/tmp/dbt_project/logs", "profiles_dir": "/root/.dbt", "log_file_max_bytes": 10485760, "static_parser": true, "project_dir": "/tmp/dbt_project", "strict_mode": false, "populate_cache": true, "use_colors": true}}

run_results.json after running first dbt retry
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.6.2", "generated_at": "2023-10-18T06:27:38.924525Z", "invocation_id": "ada3f68d-a4e5-453f-8f35-bfb60ac60786", "env": {}}, "results": [], "elapsed_time": 0.0, "args": {"log_level_file": "debug", "exclude": ["[]"], "which": "run", "send_anonymous_usage_stats": true, "log_format": "default", "print": true, "warn_error_options": {"include": [], "exclude": []}, "printer_width": 80, "use_colors_file": true, "enable_legacy_logger": false, "vars": {}, "introspect": true, "defer": false, "log_level": "info", "partial_parse_file_diff": true, "quiet": false, "write_json": true, "cache_selected_only": false, "favor_state": false, "indirect_selection": "eager", "invocation_command": "dbt retry", "log_format_file": "debug", "macro_debugging": false, "select": ["['Country']"], "partial_parse": true, "version_check": true, "log_path": "/tmp/dbt_project/logs", "profiles_dir": "/root/.dbt", "log_file_max_bytes": 10485760, "static_parser": true, "project_dir": "/tmp/dbt_project", "strict_mode": false, "populate_cache": true, "use_colors": true}}

I formatted the JSON output and compared both files:

The $.results part is empty in the new list. This might be legit. But dbt retry did there some strange changes to the run_results.json file:

the $.args.exclude array holds now one string with "[]". looks to me like a bug
the $.args.select[0] has been changed from "Country" to "['Country']". this escaping looks wrong to me

@leo-schick Thanks for comparing those run_results.json files -- the diffs you found definitely look sus.
Just came back to this and gave another go at reproducing the error you reported. Turns out I needed to run dbt retry 3⃣  three times to trigger the same error as you.
I was able to get this error using both dbt-databricks and dbt-duckdb. Didn't need to set a DBT_PROJECT_DIR in a separate directory either. Just:

dbt run (bad)
Fix the bad model
dbt retry (good)
dbt retry (good, but nothing to do)
dbt retry (💥, error you reported)

See below for a full reproducible example + log output.

Reprex

Instructions
Write out a bad SQL file:
cat <<EOF >models/my_model.sql
this line should be commented, but is not

select 1 as id
EOF

Run it:
dbt run -s my_model

Fix the SQL file:
cat <<EOF >models/my_model.sql
-- this line should be commented

select 1 as id
EOF

Retry it three times:
dbt retry
dbt retry
dbt retry

Log output
(duckdb_1.6) $ dbt run -s my_model
00:51:48  Running with dbt=1.6.3
00:51:49  Registered adapter: duckdb=1.6.0
00:51:49  Found 1 model, 0 sources, 0 exposures, 0 metrics, 348 macros, 0 groups, 0 semantic models
00:51:49
00:51:49  Concurrency: 1 threads (target='duckdb')
00:51:49
00:51:49  1 of 1 START sql view model main.my_model ...................................... [RUN]
00:51:49  1 of 1 ERROR creating sql view model main.my_model ............................. [ERROR in 0.06s]
00:51:49
00:51:49  Finished running 1 view model in 0 hours 0 minutes and 0.24 seconds (0.24s).
00:51:49
00:51:49  Completed with 1 error and 0 warnings:
00:51:49
00:51:49    Runtime Error in model my_model (models/my_model.sql)
  Parser Error: syntax error at or near "this"
  LINE 5:     this line should be commented, but is not

  select 1 as id
    );
  ...
              ^
00:51:49
00:51:49  Done. PASS=0 WARN=0 ERROR=1 SKIP=0 TOTAL=1
(duckdb_1.6) $ dbt retry
00:51:57  Running with dbt=1.6.3
00:51:58  Registered adapter: duckdb=1.6.0
00:51:58  Found 1 model, 0 sources, 0 exposures, 0 metrics, 348 macros, 0 groups, 0 semantic models
00:51:58
00:51:58  Concurrency: 1 threads (target='duckdb')
00:51:58
00:51:58  1 of 1 START sql view model main.my_model ...................................... [RUN]
00:51:58  1 of 1 OK created sql view model main.my_model ................................. [OK in 0.09s]
00:51:58
00:51:58  Finished running 1 view model in 0 hours 0 minutes and 0.25 seconds (0.25s).
00:51:58
00:51:58  Completed successfully
00:51:58
00:51:58  Done. PASS=1 WARN=0 ERROR=0 SKIP=0 TOTAL=1
(duckdb_1.6) $ dbt retry
00:52:01  Running with dbt=1.6.3
00:52:01  Registered adapter: duckdb=1.6.0
00:52:01  Found 1 model, 0 sources, 0 exposures, 0 metrics, 348 macros, 0 groups, 0 semantic models
00:52:01
00:52:01  Nothing to do. Try checking your model configs and model specification args
(duckdb_1.6) $ dbt retry
00:52:04  Running with dbt=1.6.3
00:52:04  Registered adapter: duckdb=1.6.0
00:52:04  Encountered an error:
Runtime Error
  Could not find previous run in 'target' target directory

Root cause
I don't know the exact root cause, but the final exception is being raised here presumably because self.previous_state.results is None.
Possibly the second dbt retry is creating a malformed run_results.json which is then causing issues downstream.
There might be some kind of parsing exception here that is being swallowed.
Acceptance criteria

There should be separate error messages for missing run_results.json vs. malformed run_results.json
Ideally, the error message should say which specific artifact it is looking for that wasn't found (i.e., run_results.json)


Add custom data for users and items

Hello,
this is really an awesome library for php.
There i a way to add custom data to users and items to consider them into the recommendation system?
Example:
user_id : 1,
   gender: "m",
   age: 30,
   ..

Would be useful to set a weight too.
Thank you

Hey @marcellov7, side information and weights aren't currently supported. It would require switching matrix factorization libraries, so it's not something I'm planning to do right now.

Hey @ankane, thanks for your reply,
Is there any library you can recommend to do this? Maybe I'll try to contribute.

cmfrec supports side information as well as weights for implicit feedback. I created a Ruby library for it that someone could probably port, but think it'd be better as a separate project.


Carbon Components has errors with Angular 7

Detailed description

Describe in detail the issue you're having.

After upgrading to Angular 7, a build fails due to compile errors in Carbon Components

Is this a feature request (new component, new icon), a bug, or a general issue?

Issue: Fix compilation when using Angular 7

Is this issue related to a specific component?

No

What version of the Carbon Design System are you using?

Latest
Steps to reproduce the issue
Include Angular Carbon in an application
Upgrade application to Angular 7
ERROR in (1,1): : Directive Select, Property 'blur' is protected and only accessible within class 'Select' and its subclasses.
node_modules/carbon-components-angular/table/table.component.d.ts.Table.html(90,8): : Property 'columnDraggedHoverIndex' is protected and only accessible within class 'Table' and its subclasses.
node_modules/carbon-components-angular/table/table.component.d.ts.Table.html(90,8): : Property 'columnDraggedPosition' is protected and only accessible within class 'Table' and its subclasses.
node_modules/carbon-components-angular/table/table.component.d.ts.Table.html(108,8): : Property 'columnDraggedHoverIndex' is protected and only accessible within class 'Table' and its subclasses.
node_modules/carbon-components-angular/table/table.component.d.ts.Table.html(108,8): : Property 'columnDraggedPosition' is protected and only accessible within class 'Table' and its subclasses.
node_modules/carbon-components-angular/table/table.component.d.ts.Table.html(87,7): : Property 'isColumnDragging' is protected and only accessible within class 'Table' and its subclasses.
node_modules/carbon-components-angular/tabs/tab-headers.component.d.ts.TabHeaders.html(31,6): : Property 'tabref' does not exist on type 'TabHeaders'.
node_modules/carbon-components-angular/tabs/tab-headers.component.d.ts.TabHeaders.html(36,7): : Property 'tabref' does not exist on type 'TabHeaders'.

Note that Angular 7 adds considerable value through upgrades to the CDK, which add support for virtual scrolling and for focus traps.

Did some testing today, can confirm that JIT and AOT work fantastically for most components ... I'll be setting up a comprehensive test environment so we can actually get the ball rolling on this.
Honestly this is pretty incredible, in the early days of Angular (v2/v3) it was still a pretty big deal jumping a major version.


Labmem jamming at the end of battles S3

So randmly at the end of a battle in S3 Labmem will do the skip button then jam and dont press Next. which makes Labmem semi creash
If i press next manually then usually labmem is able to continue

post battle is 500
capture method is ADB at 200 MS
I never had this issue exept today when S3 started

Whoops, I meant to ask for input method, adb or minitouch

Minitouch at 30 MS
09:23:09 Battle Info
09:23:16 Starting Battle
09:25:32 Battle Won! (01:57) Drop: 6* Dexterity Mote x1
09:26:32 Possible hang, attempting recovery!
09:26:32 Trying to auto-start
09:26:34 Could not auto-start
09:27:32 Restart loop detected!
09:27:32 Disabled Lab

If using minitouch then I advise setting Post-BattleButton to the default of 2000ms as it continuously taps for the duration.

ill try it but i never changed the timers

Maybe they changed something with that screen in S3?  Not sure

anyway the change seems fixed it didnt bug yet

Alright, let me know if you have further issues


Breadth First Search/ Graphs[C,C++]

This issue is about [Algo/DS Name](link to resource for the Algo/DS).

[x] Issue Title is in form Algo/DS Name [Language].
[x] I searched or browsed the repo’s other issues to ensure this is not a duplicate.
[x] This Algo/DS is worth adding to this repository.
[x] Assign this issue to me (I want to work on this).

[x] I ensure that I am not already assigned to 2 or more issues.

[x] I will send my PR only after I'm assigned to this issue by any maintainer.
[x] I understand that I will be unassigned from this issue if I fail to send a PR for this within a week.

@himanshusanecha fill the Algo/DS Name [Language]

@himanshusanecha fill the Algo/DS Name [Language]

👆

done sir

@himanshusanecha add the link to any resources

done sir added resource link @yashshah2820

@himanshusanecha  GFI 👍


Line toggler doesn't work (v0.6.1)

I noticed a toggle (set as a custom <Leader>cc shortcut by me) doesn't work anymore after some update I don't know which. Other than that works perfect. I've tried neovim both 0.7.2 & 0.8.0 - still no luck.
Btw, the mappings listed in extra  table of the config below works great.
Timeoutlen value equals to 1000.
Plugin version tag: 0.6.1 (set via packer plugin manager)
Neovim version: the latest 0.9.0 build from github repo (appimage build)
My plugin related settings:
-- =============================================================================
-- Comment.nvim settings
-- =============================================================================
local U = require('Comment.utils')
local A = vim.api
local opt = {silent = true, noremap = true}
require('Comment').setup({
  ignore = '^$',

  ---LHS of toggle mappings in NORMAL + VISUAL mode
  ---@type table
  toggler = {
    ---Line-comment toggle keymap
    line = '<Leader>cc',
  },

  ---LHS of operator-pending mappings in NORMAL + VISUAL mode
  ---@type table
  opleader = {
    ---Line-comment keymap
    line = '<Leader>c',
  },

  ---LHS of extra mappings
  ---@type table
  extra = {
    ---Add comment on the line above
    above = '<Leader>cO',
    ---Add comment on the line below
    below = '<Leader>co',
    ---Add comment at the end of line
    eol = '<Leader>cA',
  },
})

-- https://github.com/numToStr/Comment.nvim/issues/70#issuecomment-998494798
function _G.___gdc(vmode)
  local range = U.get_region(vmode)
  local lines = U.get_lines(range)

  -- Copying the block
  local srow = range.erow
  A.nvim_buf_set_lines(0, srow, srow, false, lines)

  -- Doing the comment
  require('Comment.api').toggle_linewise_op(vmode)

  -- Move the cursor
  local erow = srow + 1
  local line = U.get_lines({ srow = srow, erow = erow })
  local _, col = U.grab_indent(line[1])
  A.nvim_win_set_cursor(0, { erow, col })
end

-- <Leader>dc will do (yank & comment & paste);
-- Example: <Leader>dc3j will copy & comment 4 lines (current+3 below) and
-- paste them after
map('x', '<Leader>dc', [[<ESC><CMD>lua ___gdc(vim.fn.visualmode())<CR>]])
map('n', '<Leader>dc', [[<CMD>set operatorfunc=v:lua.___gdc<CR>g@]])

I highly doubt that <leader>cc is not working. Everything is working fine for me.
Beside that, in function _G.___gdc you need to replace toggle_linewise_op with toggle.linewise

@numToStr Thank you very much. I use xterm-256color terminal on my debian10 machine. I've tried to use toggle.linewise instead of toggle_linewise_op function name but I get an error telling that toggle.linewise is nil (please note I use deprecated old 0.6.1 version - I think becase of that). Everything works great to me with toggle_linewise_op written.

@delminskii You should also follow PR #183 to know more about the deprecated functions etc. Obviously this is for future reference, when you are ready to upgrade.

@numToStr Yeah, thank you. I've had to upgrade to the latest (current) version of your plugin and rewrite my code a little bit. Now everything works fine.
function _G.___gdc(vmode)
  local range = U.get_region(vmode)
  local lines = U.get_lines(range)

  -- Copying the block
  local srow = range.erow
  A.nvim_buf_set_lines(0, srow, srow, false, lines)

  -- Doing the comment
  require('Comment.api').toggle.linewise(vmode)

  -- Move the cursor
  local erow = srow + 1
  local line = U.get_lines({ srow = srow, erow = erow })
  local _, col, _ = string.find(line[1], '^(%s*)')
  A.nvim_win_set_cursor(0, { erow, col })
end

It is seems that because of configuration provided to plugin inside require('Comment').setup({ ... }) you should call :PackerSync on each configuration update (for Packer plugin manager of course).


fix: remove warning for macOS 11.7

This commit should fix the case where warning appears on macOS 11.7
2022-10-16 21:11:25,014 - WARNING - photosdb.py - 119 - WARNING: This module has only been tested with macOS versions [10.12, 10.13, 10.14, 10.15, 10.16, 11.0, 11.1, 11.2, 11.3, 11.4, 11.5, 11.6, 12.0, 12.1, 12.2, 12.3, 12.4, 12.5, 12.6]: you have Darwin, OS version: 11.7

macOS 11.7 fixes only security patches as i known and i'm did not noticed any new feature or broken feature, so i think it should work

Thanks!

@all-contributors please add @dalisoft for code, test

Thank you for great work @RhetTbull