text:
Gogs integration / feature request

Feature request
Please think about integration with Gogs, https://github.com/gogits/gogs - a free and opensource github replacement.

I write a plugin that handle Gogs webhooks: http://kanboard.net/plugin/gogs-webhook

Fantastic! :+1:

authors: fguillot ser


text:
Bug Fix: Slow Load Time

Summary
Addressed the 12-14 second load-up time when running the engine locally using the ruby command ruby run.rb.
New behavior
Load up occurs in a little under 2 seconds now.
Code changes
For whatever reason, the culprit for slow load-up time was singularly the fhir_client gem. It took forever to search the environment for the gem. Now, the path of that gem is found using linux commands and appended to the global $LOAD_PATH variable to reduce the search time.  I found a gem called faster_require that I imagine does the same thing for every gem needed, but I think my hack works for now -- plus I think investing any more time into this might be fruitless.
Also, moved the CLI code into its own module to circumvent the need to maintain it in two places -- it was previously being repeated in the bin executable and run.rb.
Testing guidance
Pull down the changes and run ruby run.rb. Observe noticeable speed-up.

I tested this PR on my end and the results were same in different conditions:

From this PR: 7.x sec
From main branch: 7.x sec
From one of the old code before Connectathon: 7.x sec

Is there anything need to apply the changes other than pulling the code from the branch?

@jhlee-mitre Could you use the Benchmark gem to locate which require __some_gem__ statement is taking the longest? My assumption is that you're running into the same issue I faced with fhir_client, but for some other gem. Which is incredibly annoying.

@jhlee-mitre Could you use the Benchmark gem to locate which require __some_gem__ statement is taking the longest? My assumption is that you're running into the same issue I faced with fhir_client, but for some other gem. Which is incredibly annoying.

Below is the benchmark result and it is obvious that fhir_client is the one slow.
puts Benchmark.measure {require 'pry-nav'}
puts Benchmark.measure {require 'fhir_client'}
puts Benchmark.measure {require_relative 'testscript_engine/testscript_runnable'}
puts Benchmark.measure {require_relative 'testscript_engine/message_handler'}
puts Benchmark.measure {require_relative 'testscript_engine/cli'}
0.096005   0.044182   0.150739 (  0.166184)
4.528002   1.027228   5.555230 (  5.614234)
0.014796   0.006370   0.021166 (  0.021844)
0.000008   0.000001   0.000009 (  0.000008)
0.000319   0.000131   0.000450 (  0.000492)

@jhlee-mitre Rebased off of main. Try running as the README now directs ---  bundle exec bin/testscript_engine. This should yield some major improvements, and also removes the need for the run.rb script.

@jhlee-mitre Rebased off of main. Try running as the README now directs --- bundle exec bin/testscript_engine. This should yield some major improvements, and also removes the need for the run.rb script.

I tested it and got a lot faster less than 2 second for loading libraries. Awesome!

source: gharchive/pull-request

repo: fhir-crucible/testscript-engine

license_type: permissive

license_source: github-api


text:
🛑 Novios PE is down

In acbac2c, Novios PE (https://www.noviosfalabella.com.pe/novios-pe/public/inicio.do) was down:

HTTP code: 520
Response time: 748 ms

Resolved: Novios PE is back up in 0485114.

source: gharchive/issue

repo: fhonores/upptime

license: MIT


text:
simplify completion

simplifies registering of completions a lot, but cloud-api client instance is always nil in the completion.Completion struct.

cloudctl __complete cluster ls --partition ""
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1566c25]

goroutine 1 [running]:
github.com/fi-ts/cloudctl/cmd/completion.(*Completion).PartitionListCompletion(0x0, 0x1, {0x0, 0x0, 0x410df6}, {0x7fff43ed021d, 0x7fff43ed0227})
        /home/stefan/dev/github.com/fi-ts/cloudctl/cmd/completion/completion.go:115 +0x45
github.com/spf13/cobra.(*Command).getCompletions(0xc0003b2000, {0xc0000a81c0, 0x0, 0x4})
        /home/stefan/go/pkg/mod/github.com/spf13/cobra@v1.2.1/completions.go:420 +0xab6
github.com/spf13/cobra.(*Command).initCompleteCmd.func1(0xc0003b2000, {0xc0000a81c0, 0x4, 0xa})
        /home/stefan/go/pkg/mod/github.com/spf13/cobra@v1.2.1/completions.go:161 +0x3b
github.com/spf13/cobra.(*Command).execute(0xc0003b2000, {0xc0000a81c0, 0x4, 0x4})
        /home/stefan/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:860 +0x5f8
github.com/spf13/cobra.(*Command).ExecuteC(0x29336a0)
        /home/stefan/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:974 +0x3bc
github.com/spf13/cobra.(*Command).Execute(...)
        /home/stefan/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:902
github.com/fi-ts/cloudctl/cmd.Execute()
        /home/stefan/dev/github.com/fi-ts/cloudctl/cmd/root.go:55 +0x25
main.main()
        /home/stefan/dev/github.com/fi-ts/cloudctl/main.go:8 +0x17

repo: fi-ts/cloudctl


text:
🛑 Argenchemical SRL is down

In 919418f, Argenchemical SRL (https://www.argenchemical.com.ar) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Argenchemical SRL is back up in 215d7c2 after 5 minutes.

repo: fideo/statusSites


text:
🛑 MetalurgicaMiele is down

In c72da30, MetalurgicaMiele (https://www.metalurgicamiele.com.ar) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MetalurgicaMiele is back up in 0759bc4 after 9 minutes.


text:
ImageColumn needs a short circuit to not call apis for temporary urls

Package
filament/tables
Package Version
v2.16.19
Laravel Version
v9.33.0
Livewire Version
v2.10.7
PHP Version
PHP 8.1.8
Problem description
While using S3 all image columns perform a s3 call to check the ACL of the object before deciding whether to show the object with a temporary url or not.
This results in s3 ImageColumn tables loading very slowly.
AWS is currently trying to get users to not even use these ACL's and instead enforce private / public on a bucket wide or policy basis and not on an object basis.   $storage->getVisibility ignores policy based ACL's and only looks for object based ones.
Since there are no comments at https://github.com/filamentphp/filament/blob/2.x/packages/tables/src/Columns/ImageColumn.php#L122
We can't really divine why it is checking the column's settings then the object.  It would be logical to simply do:
if ($this->getVisibility() != 'public' && $storage->getVisibility($state) === 'private') {

It seems likely to me that the original || should have been &&
but since we don't know why that === private is there we would be safest to change it to:
if ($this->getVisibility() != 'public'  && ($this->getVisibility() === 'private' || $storage->getVisibility($state) === 'private')) {

Expected behavior
s3 images should not not have to do an acl check per row if the images are public
Steps to reproduce
setup s3
setup imagecolumn with s3
notice the slow
Reproduction repository
https://github.com/filamentphp/filament/
Relevant log output
No response

@danharrin there is no way to make a reproduction repository for this as you can't share s3 credentials in a repo

tbh we can probably get rid of the getVisibility() check altogether in this case, that is safest. submit a pr? also for the BaseFileUpload probably

well it was specifically added in this commit https://github.com/filamentphp/filament/commit/302ba6d7e11c4543aded6063907700f11538cebf#diff-6fd324eee2d85802ecea21993004627117816f6b06116d48d68ce0b74a2ea0f9
notice in spatie column it has && which makes sense to me and makes me think the || is a typo

It seems that having acl's disabled breaks the fileupload.  S3 pushes you into disabling acl's currently but that could change at any time.  It simply appears to have uploaded the file and never moves it from the temporary upload folder (likely an upstream problem, but maybe one you should be aware of for documentation).

I personally think the getVisibility check needs the && and should be added to BaseFileUpload as well.  I feel like this will definitely break it for someone though.
It seems like to me that temporaryUrls should be opt in and someone who actually cares about them is likely going to be more diligent about things.

So found the likely reason this was maybe configured as private always:
with S3 there seems to be no vary: origin header if you didn't send an origin header originally.  https://stackoverflow.com/questions/31732533/s3-cors-always-send-vary-origin
So if you don't first retrieve the image with cors ie using ImageColumn, then retrieve it in FileUpload using cors, the second time it won't load with an error like "No 'Access-Control-Allow-Origin' header is present on the requested resource" in browsers error console.
Solution is to load all ImageColumn with ->extraImgAttributes(['crossorigin' => 'anonymous'])
I don't think any changes need to be made for this, but it was an annoying bug and commenting here incase anyone else runs into it.

But it still works out of the box if you use visibility('private'), right? Because S3 still allows generating temporary URLs for public images

I use public which is the default, private fixes this, and likely this explains why private was basically permanently on internally.
The tldr is that regular public urls cache a non cors version which then breaks the cors loaded image in filepond.
Overall with this extra attribute it is better performance because of no extra s3 calls. The bug is very hard to debug because having devtools open never allows it to present itself, and it depends on which version of the image you cached first (cors vs non cors). Apparently there are other workarounds with cloudfront etc.  A workaround on our end could be to add a cachebusting parameter in the filepond url, but that seems dirty. Also if I had just used a smaller thumbnail like I really should be doing, this also wouldn't be an issue.

maybe, but it might need to handle the case for changing crossorigin to "use-credentials" https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin.  Also, it could cause bugs with images where you don't have a cors policy on the host they are served from (say you aren't using fileupload control at all).

authors: blite danharrin

repo: filamentphp/filament


text:
Modal button is not visible, not clickable on  iPhone 6s, iOS: 15.6.1

Package
filament/filament
Package Version
v.2.16.55
Laravel Version
v.9.33
Livewire Version
v.2.10.7
PHP Version
php 8.1
Problem description
If the modal is open, the button at the bottom of the pop-up window cannot be clicked because the browser's control bar is above.
The error occurred on  iPhone 6s, iOS: 15.6.1, but it works fine on android. Cancel button is not showing, not clickable.

Expected behavior
We can click the button of the modal window.
Steps to reproduce
Open the filament demo page on  iPhone 6s, iOS: 15.6.1 mobile phone (https://demo.filamentphp.com/shop/customers/1/edit?activeRelationManager=0), log in, open the customer menu. Edit any customer. Click the "New address" button.
Reproduction repository
https://github.com/filamentphp/filament
Relevant log output
No response

Chrome? Safari? The screenshot looks like Chrome but did you try Safari?

both in Chrome and Safari
First screenshot was Chrome.
This is the new screenshot from Safari:

@szommeragi, can you scroll down to view the entire modal or is isn't that possible?

It isn't possible in Chrome.  But if I sroll by the edge of modal, sometimes I can scroll in Safari.

This a vh / h-screen bug in WebKit based browsers. There been a lot of discussion about it on the web, but the browser vendors don't seem to want to fix it or care.

There is a work around but would have to do some testing to make sure it doesn't break some other things in Filament.

authors: awcodes danharrin szommeragi zepfietje


text:
Allow passing a subset of data to EditPage save

My use case is to create a "save section" button that updates the model using a subset of data based on the fields in the section.
Allowing to pass a custom array with data, prevents me from having to replicate the entire default save method, with its permission checks, hooks and other calls to private methods.
This is a non-breaking change, but those who have overridden this method in their components will have to update the definition to match this change.
Example:
<?php

namespace App\Filament\Shared\Actions;

use Filament\Forms\Components\Actions\Action;
use Filament\Forms\Components\Section;
use Livewire\Component as Livewire;

class SaveSectionButton extends Action
{
    public static function make(?string $name = null): static
    {
        return parent::make($name)
            ->label(__('Save this section'))
            ->action(function (Section $component, Livewire $livewire) {

                $partialData = $component->getChildComponentContainer()->getState();

                // I really want to avoid replicating the entire save method here

                // this is so much nicer :)

                $livewire->save(false, $partialData);

            })
            ->color('primary')
            ->visible(fn ($operation) => $operation === 'edit');
    }
}

Use
Section::make(trans('fields.general'))
            ->schema([
                //
            ])->footerActions([
                SaveSectionButton::make('save-general'),
            ]) ...

@danharrin ah, yes of course. Do you have another suggestion?

Maybe handleRecordUpdate() ?

authors: danharrin tanthammar


text:
Add validation modifyRuleUsing to 14-upgrade-guide.md

[ ] Changes have been thoroughly tested to not break existing functionality.
[x] New functionality has been documented or existing documentation has been updated to reflect changes.
[ ] Visual changes are explained in the PR description using a screenshot/recording of before and after.

This should be under "Low impact changes" in the Forms upgrade guide.

authors: danharrin howdu


text:
[example] Tidy up BlockchainETL

Needs cleaning up: https://docs.bacalhau.org/examples/data-engineering/blockchain-etl/

Just about finished.

repo: filecoin-project/bacalhau


text:
Client Allocation Request for: Dahedesigns

Client Allocation Questions
Core Information

Name: Dahedesigns
Website / Social Media: http://www.dahedesigns.com/
Region: Asia excl. Greater China
DataCap Requested: 10TiB
Addresses to be Notarized: f1wefyrmlrrj6ihj74t5yq4ukrxxnrlfodjeq3u4q
Notary Requested: rayshitou

@resahcw Please subscribe to notifications for this Issue to be aware of updates. Notaries may request additional information on the Issue.

@resahcw Thanks for your application. Please answer the following questions to let me know you and your company.
1.What's your name and your position in your company?What's your company's business?
2.Could you show me your company's business license? And please show me your company searching consequence in the local business license searching website.
3.Have you/your company ever used cloud? Which platform do you use? What's your usage volume and frequency? Could you please show me your cloud usage evidence?

authors: rayshitou resahcw


text:
beginNextRound constains assumption on recieving local messages

https://github.com/filecoin-project/go-f3/blob/ad199a817719535579eff6092ce9d66f00171b9a/gpbft/gpbft.go#L854-L858
@adlrocha observes a panic from GPBFT in this piece of code.
Commit might require a similar treatment as converge: https://github.com/filecoin-project/go-f3/pull/334
Part of https://github.com/filecoin-project/go-f3/issues/319

I don't think this one is an assumption on receiving local messages because I don't think we can reach beginNextRound without receiving some message.

I don't think this one is an assumption on receiving local messages because I don't think we can reach beginNextRound without receiving some message.

You are right. Thanks Alex.
The bug that caused this in @adlrocha was related to missing power table values unrelated to the core protocol. I think we can close this issue. I'll close my PR.

authors: Kubuxu anorth masih


text:
Why ec delay multiplier must be non-zero?

It is unclear why this condition exists. Looking at the code, zero can also be a valid value. No?
https://github.com/filecoin-project/go-f3/blob/d4f080decf5cd19c037b736263aedbf589faf8bf/manifest/manifest.go#L172

If that's zero, https://github.com/filecoin-project/go-f3/blob/9c8c8523fc6c2a0168ed2a96e8ff04b3616aeb54/host.go#L346 becomes zero.
Honestly, I think 1 is the sane minimum in general. Unless I'm missing something.

This ticket was captured as part of running a passive testing that was attempting to minimise the wait time between instances. Specifically to get ecDelay to indeed be zero. Because, we will always wait for HeadLookback number of epochs anyway.
My question remains: Why ecDelay of zero is invalid?
In terms of importance, maybe this does not matter anymore. Or at least it will not matter once transport is made more efficient such that the actual delta is a value closer to the default of 3 seconds.

If we are in a caught-up regime, if ECDelay is zero, we will start a new instance before new tipsets become available.

we will start a new instance before new tipsets become available

Why? Headlookback should avoid this already?

Right, but we take the max of 0 and len-headlookback when collecting chain. If we are too close to the head then, would that not end up delaying the instance anyway? i.e. collecting base as the chain which would eventually back off from the start of next instance?

authors: Kubuxu Stebalien masih


text:
Randomize rebroadcast backoff

This fixes part of https://github.com/filecoin-project/go-f3/issues/549 to avoid having the entire network slam pubsub at the same time, although we should still optimize what we rebroadcast.
This also fixes the backoff calculator to return the actual backoff instead of always returning the max (oops).

The remaining part of #549 is to limit our rebroadcast to the last 2 rounds, IIRC?

Nah, nevermind. We only broadcast from the last 2 rounds. It's not worth it to optimize more.

We only broadcast from the last 2 rounds

Right, it is already limited to the latest 2 rounds.

authors: Stebalien masih


text:
Tagging bytes protobuffers with mir type results in wrong conversion

Protobuffers bytes are converted to slices []uint8 in Go. Because of this, when tagging a bytes type with a go type using mir.type  (for example, type TxID []byte) in protobuffers, the codegen actually takes the tagged type and uses it to replace the underlying type of the slice, i.e. uint8. As a result, the resulting type is []TxIDinstead ofTxID. A similar behavior is expected when tagging map types with mir.key_typeandmir.value_type`.
The proposal consists of creating a new tag, mir.outer_type, that if defined tells the codegen to actually convert the entire the entire slice or map, instead of the underlying types.

I imagine, with the suggested fix (a new annotation), there could be an issue with repeated bytes fields.

Although, the feature of wrapping the repeated field, as well as maps, would be nice on its own :)
(either with a new annotation or with (mir.type) as suggested in https://github.com/filecoin-project/mir/pull/348#discussion_r1121774305)

authors: ranchalp xosmig

repo: filecoin-project/mir


text:
Ability to cast media files to device

This can be achieved using the APIs in Windows.Media.Casting namespace. Check this out: https://docs.microsoft.com/en-us/windows/uwp/audio-video-camera/media-casting.

@Jaiganeshkumaran This issue should be resolved in v0.21.

authors: Jaiganeshkumaran yaichenbaum

repo: files-community/Files


text:
Feature: Add support for navigating through the breadcrumb address bar via keyboard

What feature or improvement do you think would benefit Files?
Similar to #7086.
When a breadcrumb is selected, the user should be able to navigate to the path by pressing certain keys.
In File Explorer, the user can achieve this by pressing Space or Enter.
Requirements
Implement keyboard navigation for breadcrumb address bar
Files Version
3.6.8.0
Windows Version
10.0.22631.4112
Comments
No response

Thanks for the feedback, I have added this to the project board.

@Qin-shihuang would you like to work on this? It should be fairly similar to your recent contribution.

Yes, I can work on this.

@yaira2 I have written an almost usable version, but there's a problem: If a file is selected in the file list, the event will be handled by Views\MainPage.xaml.cs:OnPreviewKeyDown, preventing the address bar's event from being triggered. Could you
please give me some hints on solving this problem?

@Qin-shihuang we might be able to add logic to the open item action that checks if the focus is on the file list. We should be able to use FocusManager.GetFocusedElement for this purpose.

@Qin-shihuang any luck with GetFocusedElement?

Sorry, I've been a bit busy the last few weeks and haven't tried this yet. I'll continue working on this when I have some free time.


text:
WSL Support

Describe the bug
Files doesn't open the Linux system's directories from any of the WSL shells.
Steps to reproduce the behavior:

Go to a WSL  shell  (I Use ZSH shell and an Ubuntu subsystem)
Type explorer.exe "directory" or files.exe "directory"

Expected behavior
Opening the File app in the specified dir
Additional context

I Sat up Files to be my default app using the steps provided on the repo.
I downloaded Files from MSStore
I'm using WSL 2 (Ubuntu)
Using which files.exe in the shell it correctly outputs where Files is located

Are you able to open any UWP apps from WSL command line? I don't think it's supported
Does the following work instead? cmd.exe /c "files "c:\\users\\marco""

Are you able to open any UWP apps from WSL command line? I don't think it's supported
Does the following work instead? cmd.exe /c "files "c:\\users\\marco""

This cmd command defaults to the window's directory even when specifying the wsl home's absolute path
And Files doesn't Launch when I write files.exe "anyDIR", not even the default windows explorer.

This cmd command defaults to the window's directory even when specifying the wsl home's absolute path
And Files doesn't Launch when I write files.exe "anyDIR", not even the default windows explorer.

This works for me from WSL bash: cmd.exe /c files.exe "\\\\wsl$\\ubuntu\\home" -> escaped backslash

This works for me from WSL bash: cmd.exe /c files.exe "\\\\wsl$\\ubuntu\\home" -> escaped backslash

When I used this:

The terminal froze and I couldn't even escape/quit to be able to type commands again
I couldn't cd into the WSL Directories from another instance of the terminal using the path above ("\\wsl$\ubuntu\home")

More info:
I can use explorer.exe "directory name" in this terminal and it works normally

When I used this:

The terminal froze and I couldn't even escape/quit to be able to type commands again
I couldn't cd into the WSL Directories from another instance of the terminal using the path above ("\\wsl$\ubuntu\home")

More info:
I can use explorer.exe "directory name" in this terminal and it works normally

Sorry, I don't think this is something we can fix as the same seem to apply to any other window store app.

Sorry, I don't think this is something we can fix as the same seem to apply to any other window store app.

@gave92 there is a fix for this, but I wasn't able to even build the project by itself, well I was able to build it but not the test command line arguments;
TDLR: A rewrite of the way Files parses the command line arguments should make this work

@gave92 there is a fix for this, but I wasn't able to even build the project by itself, well I was able to build it but not the test command line arguments;
TDLR: A rewrite of the way Files parses the command line arguments should make this work

@DiegoMagdaleno thanks cool! Feel free to open a PR with the changes (even untested) 👍

@DiegoMagdaleno thanks cool! Feel free to open a PR with the changes (even untested) 👍

Is this still an issue? I can confirm that cmd.exe /c files.exe "c:\\" & works fine for both WSL1 and WSL2


text:
Failed tasks show check mark

Description

I have seen this for multiple deletion failed from the recycle bin
Steps To Reproduce
No response
Expected behavior
It should show a X
Files Version
2.0.36.0
Windows Version
10.0.19043.1348
Relevant Assets
debug.log
debug_fulltrust.log

This issue should be resolved with #7500


text:
[Feature Request] Feature to isolate each tab in its own process/instance to reduce application crashes

What's the Problem?
It's the second time I have encountered the same frustrating issue where I would have 5~6 tabs open with the correct scroll position in each tab for quick access to the right files I need, and then the entire app crashes all of them.
As I already mentioned in issue #8085, I've encountered that each time I relocate from child dir to a parent dir, that Files instance would crash, and if it so happens that you are not running many separate Files instances, but instead, only have two, with one of them having a few tabs open. If that instance then crashes, so will the open tabs.
This is not the first time I mentioned this, as I already hinted this in a previously closed feature request #7699, which was (broadly speaking) about making each Files instance containerised in a separate process. Still, I also briefly spoke of early browsers' issue where if one website (tab) were to misbehave, the entire browser would crash, an issue that we are now experiencing here.
Solution/Idea
As mentioned in the previous issue, I would suggest looking up how the Chromium browser has solved the issue and recreating it here.
Alternatives
I guess you can say, "If you want a stable experience, ditch the tabs and use separate files instances", but that would not be right since tabs are one of the selling points for this app and are very useful if you are on a low res single monitor which is every laptop and home PC.
Priorities

Capability
Priority

This proposal will allow developers to provide a better user experience
Must

This proposal will allow end-users to have a more stable experience which if you are using tabs is not quite there, should anything go wrong one tab the entire application closing all other tabs along with it
Must

Files Version
Version: 2.1.4.0 OS Version: 10.0.22543.1000
Windows Version
Edition Windows 11 Business Insider Preview Version Dev Installed on 29/01/2022 OS build 22543.1000 Experience Windows Feature Experience Pack 1000.22543.1000.0
Comments
No response

@rihards-simanovics there are currently two processes, the full trust process, and the main app process. Crashes in the full trust process will limit functionality but it won't bring down the rest of the app. The crashes that close the app are in the main process and creating a separate process for each tab wouldn't help with this issue.
We're tracking an issue to restore the scroll position when restarting the app and we're also working on improving stability. Preview builds are going to have crashes so you might want to switch to the stable branch if you're using this on your main device.

@yaichenbaum, I see. Thanks for your reply. In such a case, please accept my apologies. I am still figuring out the code and hope I will be able to contribute in the future. As for the position tracking and restoring app with all tabs is excellent news!
I believe that using an unstable version of the software in daily use is a necessary trade-off in the requirement of finding issues rather than waiting until the end-user finds them and hopefully submits full feedback with a debug log.
It also simplifies the triaging process for the issue, "if I encountered it during normal use, so will the end-user" therefore, I must fix it first.
Thanks again for your reply.

@rihards-simanovics I agree, the preview builds helps us find and fix issues before they are released to the stable branch. We're currently working on a refactor that will improve stability and make it easier to work with the code base. Is this something you would be interested in helping with?

@yaichenbaum I have attempted to already, but I am not sure if what I see in the VS2022 visualiser for XAML view is what I should expect. Still, I'm afraid my last app development experience was back in college with the visual basic, haha. I am primarily on web dev now, and I will need to have a good understanding before I begin contributing anything.
I believe we spoke before on Discord. I am the CapsLock1980 or RichMan3215#7462. I can pm you on Discord, and we can discuss this further.

authors: rihards-simanovics yaichenbaum


text:
Crash after deletion

Description
Files have crashed after deleting a zip file.
Steps To Reproduce

Create two zip files in the folder "C:\Users$user\Documents\coding"
Delete first file;
Check "Delete Permanently";
Wait green icon on top right corner;
Delete second file;
Check "Delete Permanently";
The second file isn't deleted.

Expected behavior
Deletion of the files and no crashes.
Files Version
Version: 2.1.15.0 OS Version: 10.0.19044.1586
Windows Version
Windows 10 21H2 19044.1586
Relevant Assets/Logs
debug.log

Thanks for the report. This issue should be fixed on main.

Thank you for the quick response!!


text:
Local network hard drive

What's the Problem?
Very difficult to reach my local hard drives connected to my Freebox (French box)
Solution/Idea
solve the problem.
Alternatives
Alternative (for me): put back, original explorer.exe
Priorities

Capability
Priority

This proposal will allow developers to accomplish W
Must

This proposal will allow end users to accomplish X
Should

This proposal will allow developers to accomplish Y
Could

This proposal will allow end users to accomplish Z
Won't

Files Version
No response
Windows Version
No response
Comments
Available for a screenshot or other information.

I'm sad to have to uninstall, the ergonomics are really nice. *

Can you send a link to the hosting/client program.


text:
Redesigned general tab in properties window

Resolved / Related Issues
Items resolved / related issues by this PR.

Closes #issue...
Related #issue...

Details of Changes
Add details of changes here.

Added new layout to the general tab in the properties window

Validation
How did you test these changes?

[x] Built and ran the app
[x] Tested the changes for accessibility

Screenshots (optional)
Add screenshots here.

Looks good to me, though maybe someone else should try to reproduce the crash when scrolling.


text:
autoHide issue

Hi @filipliwinski,
I have found an issue using autoHide: true if the console application is started using cmd.exe and /MIN option.
Please consider a new console application named SimpleConsoleProgressTest with this code in Program.cs:
// See https://aka.ms/new-console-template for more information
using SimpleConsoleProgress;

Console.WriteLine("Hello, World!");

var total = 20;
for (int i = 0; i < total; i++)
{
  Thread.Sleep(100);
  ProgressBar.Write(i, total, autoHide: true);
}
Console.WriteLine("Process completed.");
Console.ReadLine();

Now start the application using this command:
> cmd.exe /C start ""  /MIN "SimpleConsoleProgressTest.exe"

The result is:

Have you any idea why using /MIN autoHide doesn't work?
Thank you for your support,
Filippo

Hi @filippobottega,
this is not an issue with the autoHide argument or the /MIN option of cmd.exe but it happens for all printouts of the progress bar in external terminals.
This is because some terminals (like cmd.exe) move to a new line by default when they print a full line of text (with the number of characters equal to the length of the line) for both Console.Write() and Console.WriteLine(), while others don't.
This issue will be fixed in the next patch release, which I will create next week.
Thank you for reporting this.

Hi @filipliwinski,
thank you for your reply. Please note that in my tests, when I remove the /MIN option, the ProgressBar.Write command works as expected using cmd.exe.
As for autoHide, I agree, it's not relevant.
I'm glad to know that a new patch release is in the works.
Thank you for your support,
Filippo

Fixed in release 1.3.2.

authors: filipliwinski filippobottega

repo: filipliwinski/SimpleConsoleProgress


text:
Update to V2.2.1

Swan Provider v2.2.1 release
Highlights!
Please see release log
How to upgrade to v2.2.1?
Scenario One

If you are a new user, you can install and config the go-swan-provider following this instruction.

Scenario Two
If you have installed the previous version, you can upgrade to the latest version v2.2.1 by following the steps:
(1) Stop your swan-provider
(2) Set your $SWAN_PATH: export SWAN_PATH="/data/.swan", default ~/.swan
(3) Install and Run the new version swan-provider:
Option :one: : Prebuilt package
wget --no-check-certificate https://raw.githubusercontent.com/filswan/go-swan-provider/release-2.2.1/install.sh
chmod +x ./install.sh
./install.sh

# Start the swan-provider
ulimit -SHn 1048576
export SWAN_PATH = "/data/.swan"
nohup swan-provider-2.2.1-linux-amd64 daemon >> swan-provider.log 2>&1 &

Option :two: : Source code
git clone https://github.com/filswan/go-swan-provider.git
cd go-swan-provider
git checkout release-2.2.1
./build_from_source.sh

# Start the swan-provider
ulimit -SHn 1048576
export SWAN_PATH = "/data/.swan"
nohup swan-provider daemon >> swan-provider.log 2>&1 &

Note:

If you set a different $SWAN_PATH, you need to reconfigure your configuration according to the steps
If you set the same $SWAN_PATH, the old configuration file will be backed up in the $SWAN_PATH when you build and install the swan-provider

Scenario Three
If you have run the boostd to import the deals, you can receive the deals from filswan by the following steps:
(1)  Install the swan-provider according to the section
(2) Move your boostd repo to the $SWAN_PATH and move the boostd binary to the /usr/local/bin/:
mkdir $SWAN_PATH/provider/boost
mv ~/.boost/* $SWAN_PATH/provider/boost/

mv boostd /usr/local/bin/

(3) Config the config.toml according to the section
(4) Run the swan-provider in the background.
ulimit -SHn 1048576
export SWAN_PATH = "/data/.swan"
nohup swan-provider daemon >> swan-provider.log 2>&1 &

Do you have questions?
Please leave a comment.

In case I move boostd repo to $SWAN_PATH, will lotus-miner be able to interact with boostd in a regular way?
Why not make the swan provider just use the already installed and initialized boostd? After all, all the environment variables necessary for this can be set quickly and simply, without any movement of folders and repositories.

In case I move boostd repo to $SWAN_PATH, will lotus-miner be able to interact with boostd in a regular way?

Why not make the swan provider just use the already installed and initialized boostd? After all, all the environment variables necessary for this can be set quickly and simply, without any movement of folders and repositories.

I just created a softlink "boost" from boostd repo to the swan path. (e.g.:user@miner:/home/user/.swan/provider$ ln -s /home/user/.boost boost ---works fine for me

Yes, I came up with the same idea on the weekend. I'm glad to see that it works in practice.

Is it necessary to execute the following command in this case:
swan-provider set-ask --price=xx --verified-price=xx --min-piece-size=xx --max-piece-size=xx?
This data is already available on the FilSwan platform and in the boostd configuration...

@ratohe Allright, so you symlimked .boost repo to $SWAN_PATH. But after that, do I need to start boostd, or go-swan-provider will start boostd itself? In the second case, where will the boostd process write its logs?

I start boostd and after that start swan. It seems that swan tries to start its own boostd process. If you don't start boost first u get error from swan

@ratohe

I start boostd and after that start swan. It seems that swan tries to start its own boostd process. If you don't start boost first u get error from swan

Before you start swan-provider, you should kill your boostd, because swan-provider will help you start the boostd

@ratohe I am guessing you have not done this with Boost 2.0.0 yet? I set a symlink and could not get it to work.

@dgreuel2002 yes, swan-provider has not support the Boost v2

@dgreuel2002 No, haven't done yet. Unfortunately killed one of my raids. Had to repair and fill up.

swan-provider has support the Boost V2, please reference here https://github.com/filswan/go-swan-provider/issues/239

authors: Normalnoise Shekelme dgreuel2002 ratohe

repo: filswan/go-swan-provider


text:
Mixin bug fixes

This should address the issues mentioned in https://github.com/finale-lua/lua-scripts/pull/364#issuecomment-1248890780

Fixes a bug with GetInteger and GetFloat in FCMCtrlEdit
Improves error reporting for bundled scripts

@rpatters1 Something I've noticed with a couple of methods now is that parameters that are marked as optional in the PDK are actually required when used in Lua. Is this intentional? Examples that come to mind are FCString:GetFloat,  FCString:GetInteger and FCUI:AlertInfo

The PDK Framework is a C/C++ framework, so optional parameters are only optional in C/C++. There is no way (that I've found) to bridge them to Lua as optional and have them retain their default values. This may be a LuaBridge limitation. I haven't tried to convert the bridge code to some other option.
FWIW: Booleans are always optional in Lua even when they are not optional in the Framework. But omitted booleans always get translated to false, which has been a challenge at least one. (With one of the constructor functions that isn't coming to mind at the moment.)

repo: finale-lua/lua-scripts


text:
angular 11

Renderer removed in angular 11 core , but you still using it.

if you can fix it please create a PR
thanks

still errors "has no exported member 'Renderer'. Did you mean 'Renderer2'?"
any prove or solution ?

no any idea or solution yet?

in the new version of angular does not support of renderer in this file the author use renderer ng2-jalali-date-picker/date-picker/date-picker.component.d.ts line 78:97
I can fix that if this problem still exists

It's not hard to fix guys, please fix the issue. we are blocked...

authors: fingerpich jbehrouzi keivansahebdelfard lur2gether m-a-e-z taheria

repo: fingerpich/jalali-angular-datepicker


text:
Download of model is too slow

Currently waiting up to 30 minutes for a model to load, is there a way to just download it on to a USB drive and plug it in?

The browser loaded/hosted models are fairly experimental and only works in Chrome and Edge.
Typically people choose to host a model locally on their machine itself with a tool like LM Studio which will let you choose any number of models to download and host with an API available locally that can be used to connect and communicate with the model.
Here's the docs to get a local model and server running, it's pretty painless https://lmstudio.ai/docs/local-server#using-the-local-server . The only adjustment needed is to enable the Cross-Origin-Resource-Sharing (CORS) option for the server.
Once the server is running you just enter the local server url into the custom config section like

And select the model and enter the max token value (1024 is a good start) and it's good to go.

authors: dragonballa fingerthief

repo: fingerthief/minimal-chat


text:
Feature: Disable background

Let the user decide weather to show the background image or only its dominant colors

Toggle Button
SharedPreference

1 month later, I consider this kinda unnecessary ^^

repo: finnmglas/Launcher


text:
Add name to PackageableRuntime and PackageableConnection in PackageableElementFirstPassBuilder

What type of PR is this?
Bug Fix
What does this PR do / why is it needed ?
Adds name to PackageableRuntime and PackageableConnection in PackageableElementFirstPassBuilder
Which issue(s) this PR fixes:

Other notes for reviewers:
Does this PR introduce a user-facing change?

/easycla

repo: finos/legend-engine


text:
WIP: fixing the grammar with left outer join, throwing parser issue for 'inner'

This PR contains a fix for left_outer join type when it is being composed to grammar.
The change also contains making the joinType case sensitive, it would throw an error otherwise

This PR also includes tests


text:
fix(ui_auth): make light text on _EmailVerificationBadge legible

Description

Reduced the opacity of the badge's background to make light text in a dark theme more legible
Dark text in a light theme is still legible
The reduced opacity also makes the color more appealing

Related Issues
This PR resolves issue #18
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (melos run analyze) does not report any problems on my PR.
[x] All unit tests pass (melos run test:unit:all doesn't fail).
[x] I read and followed the Flutter Style Guide.
[x] I signed the CLA.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change.
[x] No, this is not a breaking change.

I think it could be better to expose this color through a dedicated parameter. In fact, it could be good to override every widget UI of this package to custom them as close as client app current design.
It could be really fantastic to be able to have the hand on every things :/ !

@EArminjon For this PR, do you think I should allow the client to override the whole decoration property of the Container or only the color property of the BoxDecoration?

it could be good to have the possibility to override every UI widget of this package to custom them as close as client app current design.

Styling API is in place and contributions on making anything configurable are welcome.
In general, here's how styling should be taken care of:

extend FirebaseUIStyle
override applyToMaterialTheme or applyToCupertinoTheme if necessary (see this example)
define a property on a relevant widget (like here)
define Set<FirebaseUIStyle> styles on a screen level (like here)
use `FirebaseUIStyle.ofType (like here) to get a relevant style object from build context

In this specific issue, we could create an EmailVerificationBadgeStyle object and have a configurable backgroundColor defined there.
@qwezey would you be willing to update your PR accordingly?

Hey @qwezey - will you be following up on this PR?

Can we proceed with merging this PR? It is a bug fix but requests to incorporate non-critical enhancements seem to be stalling it. We are at a 0 currently and this change seems like it would get us to a 1, so it seems prudent to keep any additional changes to get to a 2 separate from this.

Many thanks, @russellwheatley

authors: EArminjon cmjordan42 lesnitsky qwezey russellwheatley

repo: firebase/FirebaseUI-Flutter


text:
Crash: [FUIArray insertSnapshot:withPreviousChildKey:]

Describe your environment

Objective C or Swift: Swift
iOS version: 10.2.0
Firebase SDK version: 5.6.0
FirebaseUI version: 5.2.0
CocoaPods Version: 1.5.0

Describe the problem:
We got a crash report this morning that says
Fatal Exception: NSRangeException
*** -[__NSArrayM insertObject:atIndex:]: index 9223372036854775808 beyond bounds for empty array
-[FUIArray insertSnapshot:withPreviousChildKey:]

I was not able to reproduce this unfortunatly and it looked like a FirebaseUI to me and not something coming from our side. I might be wrong but I think those logs could help.
Steps to reproduce:
I could no reproduce this crash so far. I have a UIViewController with a tableview binded to a FUITableViewDataSource
Observed Results:
Here's what I've got from Crashlytics:
Fatal Exception: NSRangeException
*** -[__NSArrayM insertObject:atIndex:]: index 9223372036854775808 beyond bounds for empty array
-[FUIArray insertSnapshot:withPreviousChildKey:]

Fatal Exception: NSRangeException
0  CoreFoundation                 0x1923611b8 __exceptionPreprocess
1  libobjc.A.dylib                0x190d9855c objc_exception_throw
2  CoreFoundation                 0x19223fd44 CFStringConvertNSStringEncodingToEncoding
3  Bamboo                         0x1004fa318 -[FUIArray insertSnapshot:withPreviousChildKey:] (FUIArray.m:193)
4  Bamboo                         0x1004f9904 __24-[FUIArray observeQuery]_block_invoke (FUIArray.m:84)
5  Bamboo                         0x100326ee4 __43-[FChildEventRegistration fireEvent:queue:]_block_invoke.55 (FChildEventRegistration.m:74)
6  libdispatch.dylib              0x1911ea1fc _dispatch_call_block_and_release
7  libdispatch.dylib              0x1911ea1bc _dispatch_client_callout
8  libdispatch.dylib              0x1911eed68 _dispatch_main_queue_callback_4CF
9  CoreFoundation                 0x19230e810 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
10 CoreFoundation                 0x19230c3fc __CFRunLoopRun
11 CoreFoundation                 0x19223a2b8 CFRunLoopRunSpecific
12 GraphicsServices               0x193cee198 GSEventRunModal
13 UIKit                          0x1982817fc -[UIApplication _run]
14 UIKit                          0x19827c534 UIApplicationMain
15 Bamboo                         0x100090008 main (QueueTask.swift:26)
16 ???                            0x19121d5b8 (Missing)

Crashed: com.twitter.crashlytics.ios.exception
0x0000000000000000

Crashed: com.twitter.crashlytics.ios.exception
0  Bamboo                         0x10028f350 CLSProcessRecordAllThreads (CLSProcess.c:376)
1  Bamboo                         0x10028f810 CLSProcessRecordAllThreads (CLSProcess.c:407)
2  Bamboo                         0x10027f060 CLSHandler (CLSHandler.m:26)
3  Bamboo                         0x10028d960 __CLSExceptionRecord_block_invoke (CLSException.mm:199)
4  libdispatch.dylib              0x1911ea1bc _dispatch_client_callout + 16
5  libdispatch.dylib              0x1911f77f0 _dispatch_barrier_sync_f_invoke + 84
6  Bamboo                         0x10028d3d0 CLSExceptionRecord (CLSException.mm:206)
7  Bamboo                         0x10028d200 CLSExceptionRecordNSException (CLSException.mm:102)
8  Bamboo                         0x10028cdf8 CLSTerminateHandler() (CLSException.mm:259)
9  libc++abi.dylib                0x190d8766c std::__terminate(void (*)()) + 16
10 libc++abi.dylib                0x190d86f84 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 134
11 libobjc.A.dylib                0x190d98690 _objc_exception_destructor(void*) + 362
12 CoreFoundation                 0x19223fd44 CFStringConvertNSStringEncodingToEncoding + 1134
13 Bamboo                         0x1004fa318 -[FUIArray insertSnapshot:withPreviousChildKey:] (FUIArray.m:193)
14 Bamboo                         0x1004f9904 __24-[FUIArray observeQuery]_block_invoke (FUIArray.m:84)
15 Bamboo                         0x100326ee4 __43-[FChildEventRegistration fireEvent:queue:]_block_invoke.55 (FChildEventRegistration.m:74)
16 libdispatch.dylib              0x1911ea1fc _dispatch_call_block_and_release + 24
17 libdispatch.dylib              0x1911ea1bc _dispatch_client_callout + 16
18 libdispatch.dylib              0x1911eed68 _dispatch_main_queue_callback_4CF + 1000
19 CoreFoundation                 0x19230e810 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
20 CoreFoundation                 0x19230c3fc __CFRunLoopRun + 1660
21 CoreFoundation                 0x19223a2b8 CFRunLoopRunSpecific + 444
22 GraphicsServices               0x193cee198 GSEventRunModal + 180
23 UIKit                          0x1982817fc -[UIApplication _run] + 684
24 UIKit                          0x19827c534 UIApplicationMain + 208
25 Bamboo                         0x100090008 main (QueueTask.swift:26)
26 ???                            0x19121d5b8 (Missing)

Expected Results:
I was  expecting the table view to be updated and not to crash

Do you ever invalidate your FUIArray?

To clarify, the extremely large indexes here are NSNotFound values, which shouldn't appear since previousChildKey should always exist in the array when the insert/delete/move/change methods are called.

Can you confirm dataSource.unbind() is invalidating the FUIArray ?

It is. The arrays are supposed to be reusable after invalidation, though, so this is a bug.

Yeah sure, no problem, I'll do that 👍

Closing for inactivity, please comment again if the crash reappears.

@morganchen12 was able to reproduce very similar behavior with removeSnapshot and NSNotFound
We have some Lambdas processing the database on childAdded event (and removing some of those if a condition is met).
We've traced it to a race condition, where some of the devices get those remove events before they get an actuall "add" event for that item. Maybe something similar applies to this case as well.

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                	0x1f39abef8 __exceptionPreprocess + 228 (NSException.m:172)
1   libobjc.A.dylib               	0x1f2b79a40 objc_exception_throw + 56 (objc-exception.mm:557)
2   Woosh                         	0x1010f902c -[FUIArray removeSnapshot:withPreviousChildKey:] + 524 (FUIArray.m:220)
3   Woosh                         	0x1010f843c __24-[FUIArray observeQuery]_block_invoke.58 + 100 (FUIArray.m:104)
4   Woosh                         	0x1010786dc __43-[FChildEventRegistration fireEvent:queue:]_block_invoke.55 + 96 (FChildEventRegistration.m:74)
5   libdispatch.dylib             	0x1f33e36c8 _dispatch_call_block_and_release + 24 (init.c:1372)
6   libdispatch.dylib             	0x1f33e4484 _dispatch_client_callout + 16 (object.m:511)
7   libdispatch.dylib             	0x1f33909ec _dispatch_main_queue_callback_4CF$VARIANT$mp + 1068 (inline_internal.h:2441)
8   CoreFoundation                	0x1f393a1bc __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 (CFRunLoop.c:1813)
9   CoreFoundation                	0x1f3935084 __CFRunLoopRun + 1964 (CFRunLoop.c:3113)
10  CoreFoundation                	0x1f39345b8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
11  GraphicsServices              	0x1f5ba8584 GSEventRunModal + 100 (GSEvent.c:2245)
12  UIKitCore                     	0x22092cbc8 UIApplicationMain + 212 (UIApplication.m:4341)

To be more specific, here is the stack trace.
The self.snapshots doesn't contain specific key by the time the indexForKey:(NSString *)key is called.
Database.database().reference().child(path).queryLimited(toLast: 20) - query.
Database is updated frequently (both on the client side and by the cloud function to remove illegal records which have passed trough the client-side validation)
Unfortunately I can't provide a reliable way to reproduce the issue, since it really seems to be a race condition, since we have only 100 unique users trapped by it (out of 20+ thousands total).
It looks like the removeChild is fine to simply return without producing an exception in case the child is not found in the snapshots. Unless there is a way the child will be delivered somehow after the remove event.
Not sure how does the insertChild logic have to be altered to fix the race, though. May be some kind of cache to keep the orphaned objects until it's safe to remove/skip them?

authors: DKucheryavyh morganchen12 victor-sarda

repo: firebase/FirebaseUI-iOS


text:
[firestore-bigquery-export] Support partitioned table base on Timestamp field

Firestore have extension to export data into bigquery, the table is partitioned base on when the record success push to server (_partitiontime).
My project require to partition table base on specific field (Timestamp or int type) in document, it will be amazing if such feature available in "export to Bigquery" extension

@i14h Can we also add support for the partition value to be derived from a ISO8601 datetime string?

another vote for ISO8601 formatted strings, if possible.

For the issue of partitioning based on the timestamp, this should be currently working as expected.
The issue can re-opened if it is still as an issue.
For the ISO8601 formatted strings please track https://github.com/firebase/extensions/issues/1483

authors: alfred-risb dackers86 darnmason jasonberryman

repo: firebase/extensions


text:
[Bug] macOS clang 13 build throw [-Werror,-Wdeprecated-copy]

[REQUIRED] Please fill in the following fields:

open-source from this repo
Firebase C++ SDK version: 8.11.0
Problematic Firebase Component: firestore
Platform you are using the C++ SDK on: Mac
Platform you are targeting: desktop

[REQUIRED] Please describe the issue here:
Build  firestore module from source with Apple clang version 13.1.6 (clang-1316.0.21.2.3) generate errors:
In file included from /Users/awe/qt_projects/firebase-cpp-sdk/build/external/src/firestore/Firestore/core/src/core/firestore_client.cc:34:
In file included from /Users/awe/qt_projects/firebase-cpp-sdk/build/external/src/firestore/Firestore/core/src/core/sync_engine.h:37:
In file included from /Users/awe/qt_projects/firebase-cpp-sdk/build/external/src/firestore/Firestore/core/src/remote/remote_store.h:29:
In file included from /Users/awe/qt_projects/firebase-cpp-sdk/build/external/src/firestore/Firestore/core/src/remote/datastore.h:26:
In file included from /Users/awe/qt_projects/firebase-cpp-sdk/build/external/src/firestore/Firestore/core/src/credentials/auth_token.h:22:
/Users/awe/qt_projects/firebase-cpp-sdk/build/external/src/firestore/Firestore/core/src/credentials/user.h:73:9: error: definition of implicit copy constructor for 'User' is deprecated because it has a user-declared copy assignment operator [-Werror,-Wdeprecated-copy]
  User& operator=(const User& other) = default;
        ^
/Users/awe/qt_projects/firebase-cpp-sdk/build/external/src/firestore/Firestore/core/src/core/firestore_client.cc:134:61: note: in implicit copy constructor for 'firebase::firestore::credentials::User' first required here
      shared_client->worker_queue_->Enqueue([shared_client, user, settings] {
                                                            ^
1 error generated.
make[3]: *** [external/src/firestore-build/Firestore/core/CMakeFiles/firestore_core.dir/src/core/firestore_client.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /Users/awe/qt_projects/firebase-cpp-sdk/build/external/src/firestore/Firestore/core/src/core/sync_engine.cc:17:
In file included from /Users/awe/qt_projects/firebase-cpp-sdk/build/external/src/firestore/Firestore/core/src/core/sync_engine.h:37:
In file included from /Users/awe/qt_projects/firebase-cpp-sdk/build/external/src/firestore/Firestore/core/src/remote/remote_store.h:29:
In file included from /Users/awe/qt_projects/firebase-cpp-sdk/build/external/src/firestore/Firestore/core/src/remote/datastore.h:26:
In file included from /Users/awe/qt_projects/firebase-cpp-sdk/build/external/src/firestore/Firestore/core/src/credentials/auth_token.h:22:
/Users/awe/qt_projects/firebase-cpp-sdk/build/external/src/firestore/Firestore/core/src/credentials/user.h:73:9: error: definition of implicit copy constructor for 'User' is deprecated because it has a user-declared copy assignment operator [-Werror,-Wdeprecated-copy]
  User& operator=(const User& other) = default;
        ^
/Users/awe/qt_projects/firebase-cpp-sdk/build/external/src/firestore/Firestore/core/src/core/sync_engine.cc:95:7: note: in implicit copy constructor for 'firebase::firestore::credentials::User' first required here
      current_user_(initial_user),
      ^
1 error generated.
make[3]: *** [external/src/firestore-build/Firestore/core/CMakeFiles/firestore_core.dir/src/core/sync_engine.cc.o] Error 1
make[2]: *** [external/src/firestore-build/Firestore/core/CMakeFiles/firestore_core.dir/all] Error 2
make[1]: *** [firestore/CMakeFiles/firebase_firestore.dir/rule] Error 2
make: *** [firebase_firestore] Error 2

Thank you for the bug report. This appears to be a problem in the firebase-ios-sdk repository.
Could you please try building that repository directly and see what happens? If you get the same/similar errors, please open a bug report there.
FWIW I ran into a similar build error with Xcode 13.3.1. Downgrading to Xcode 13.2.1 fixed the build error.
Also, please run clang --version and include the output from that command in your bug report, as well as the version of Xcode that you have installed.

Xcode 13.3.1
Apple clang version 13.1.6 (clang-1316.0.21.2.3)
Target: x86_64-apple-darwin21.4.0
Thread model: posix
Building firebase-ios-sdk directly throw this same error. I created a new report there.
https://github.com/firebase/firebase-ios-sdk/issues/9702

Thank you. I'm going to close this issue and use the other one you created to fix the problem at the source.

The fix has been incorporated into version 9.0.0, released May 10, 2022.

authors: awemvfx dconeybe

repo: firebase/firebase-cpp-sdk


text:
SPM Firestore for Catalyst. No such Module.

Description
Hi:
I'm getting this error when I try to compile for catalyst (SPM 10.8.0). For iOS all works as expected.

These are the dependencies of the target that on build time throw the error:

In intermediates I can see a difference between the build of Catalyst and the simulator:

FirebaseFirestoreSwift.build is included on iOS simulator but not on catalyst. I don't know if it's correct or not, and the cause of it @ncooke3
Any ideas on how to solve it?
Thanks in advance
Reproducing the issue
No response
Firebase SDK Version
10.8.0
Xcode Version
14.3.0
Installation Method
Swift Package Manager
Firebase Product(s)
Firestore
Targeted Platforms
macCatalyst
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet

Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet

Replace this line with the contents of your Podfile.lock!

FirebaseFirestoreSwift.build is included on iOS simulator but not on catalyst. I don't know if it's correct or not, and the cause of it @ncooke3

Hmm, weird. I'm in the process of reproducing it now. Looking into this...

Thanks @ncooke3 for your fast response and support.

It works @ncooke3, thanks for your effort on it. 💯

Thank you for reporting! 🙂

repo: firebase/firebase-ios-sdk


text:
Fdl/removes nsnull values

On this PR: 10413, we use NSNull for values inside the dictionary. Some tests were broken because of that.

The fix is staged for the next 10.3.0 release, due out next release.
In the meantime, this PR can be manually applied to workaround.


text:
Purge persistence cache if we can't load from it

We currently fail the RTDB startup if the level DB cache is corrupted (https://github.com/firebase/firebase-ios-sdk/issues/144)
Since this is just a cache file, this PR introduces code that tries to deletes the invalid cache in order to recover.
I have also tested this manually by corrupting the cache in the Simulator.

This looks good, but FWIW I think it might make more sense to do this at a higher-level. This will catch LevelDB corruption, but we've run into crash loops in the past where RTDB fails to initialize due to higher-level corruption (we ended up storing something in the persistent cache that we couldn't read back).

I'm gonna leave this change as is as I think that we should address this other kind of corruption in a different way (if it ever proves to be an issue). If we can load data from level db, but can't parse some of it, then at least we have the option of ignoring those bits of data and don't need to blow the entire cache away.


text:
🐛 [firebase_messaging] iOS failing to notify app

Bug report
Describe the bug
I am trying to send notifications to my flutter app, but none are being received whether, background, foreground or terminated.
All help is much appreciated
Note: I changed much of the code in the past because I need phone auth to work without captcha.
Steps to reproduce
AppDelegate.swift
import UIKit
import Flutter
import Firebase
import FirebaseMessaging

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    FirebaseApp.configure()
    GeneratedPluginRegistrant.register(with: self)
    if #available(iOS 10.0, *) {
        UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate
    }
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }

  func application(application: UIApplication,
                   didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
      Messaging.messaging().apnsToken = deviceToken
  }
}

Capabilities:
￼

FirebaseAppDelegateProxyEnabled:
￼

Firebase versions:
cloud_firestore: ^4.8.2
cloud_functions: ^4.3.3
firebase_auth: ^4.9.0
firebase_storage: ^11.2.4
firebase_core: ^2.14.0
firebase_messaging: ^14.6.7
firebase_app_check: ^0.2.1+8

GoogleService-info valid location and up to date:
￼

Firebase messaging API:
Note: Cloud messaging legacy is disabled
￼
￼

I have tried both notifications to all and specific devices:
￼

￼
Runner entitlement:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>aps-environment</key>
	<string>development</string>
	<key>com.apple.developer.networking.wifi-info</key>
	<true/>
	<key>com.apple.developer.networking.HotspotConfiguration</key>
	<true/>
</dict>
</plist>

Podfile:
# Uncomment this line to define a global platform for your project
platform :ios, '14.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

# Required for google_mlkit_text_recognition
$iOSVersion = '14.0'

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)

    target.build_configurations.each do |config|
      if config.build_settings['WRAPPER_EXTENSION'] == 'bundle'
        config.build_settings['DEVELOPMENT_TEAM'] = 'MY TEAM ID'
      end

      # This is to stop the: DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead
      xcconfig_path = config.base_configuration_reference.real_path
      xcconfig = File.read(xcconfig_path)
      xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
      File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }

      # Stops M1 chips from being built for as not all flutter plugins are yet available
      config.build_settings['ONLY_ACTIVE_ARCH'] = 'YES'
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64 i386"
      config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'

      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        '$(inherited)',

        ## dart: PermissionGroup.notification
        'PERMISSION_NOTIFICATIONS=1',

      ]

    end
  end
end

AppFrameworkInfo.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>CFBundleDevelopmentRegion</key>
  <string>en</string>
  <key>CFBundleExecutable</key>
  <string>App</string>
  <key>CFBundleIdentifier</key>
  <string>com.MYACTUAL.APPIDENTIFIER.flutter</string>
  <key>CFBundleInfoDictionaryVersion</key>
  <string>6.0</string>
  <key>CFBundleName</key>
  <string>App</string>
  <key>CFBundlePackageType</key>
  <string>FMWK</string>
  <key>CFBundleShortVersionString</key>
  <string>1.0</string>
  <key>CFBundleSignature</key>
  <string>????</string>
  <key>CFBundleVersion</key>
  <string>1.0</string>
  <key>MinimumOSVersion</key>
  <string>11.0</string>
</dict>
</plist>

Expected behavior
To receive notifications in at least one of foreground, background or terminated
Sample project
main.dart:
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_messaging/firebase_messaging.dart';
import 'package:flutter/material.dart';
import 'package:permission_handler/permission_handler.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();

  // Run the app
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();

    // On build
    WidgetsBinding.instance.addPostFrameCallback((_) async {
      FirebaseMessaging messaging = FirebaseMessaging.instance;

      Map<Permission, PermissionStatus> statuses = await [
        Permission.notification
      ].request();

      NotificationSettings settings = await messaging.requestPermission(
        alert: true,
        badge: true,
        provisional: false,
        sound: true,
      );

      if (settings.authorizationStatus == AuthorizationStatus.authorized) {
        print("User granted permission");

        // Output the FCM token
        String? token = await messaging.getToken();

        // await messaging.getAPNSToken();

        print("app_main token: $token");
      } else if (settings.authorizationStatus == AuthorizationStatus.provisional) {
        print("User granted provisional permission");
      } else {
        print("User declined or has not accepted permission");
      }

      FirebaseMessaging.onMessage.listen((RemoteMessage message) {
        print('Got a message whilst in the foreground!');
        print('Message data: ${message.data}');

        if (message.notification != null) {
          print('Message also contained a notification: ${message.notification}');
        }
      });
    });

  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Firebase Messaging Test'),
        ),
        body: Center(
          child: Text('Listening for messages...'),
        ),
      ),
    );
  }
}

Additional context
I have tried a lot and haven't logged all that I have tried. All help would be much appreciated.
Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
[✓] Flutter (Channel stable, 3.13.4, on macOS 13.5.2 22G91 darwin-arm64, locale en-GB)
[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    ✗ 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/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.3.2)
[✓] Connected device (3 available)
[✓] Network resources

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
- _flutterfire_internals 1.3.16 [collection firebase_core firebase_core_platform_interface flutter meta]
- adaptive_number 1.0.0 [fixnum]
- archive 3.3.7 [crypto path pointycastle]
- args 2.4.0
- async 2.11.0 [collection meta]
- audio_session 0.1.13 [flutter flutter_web_plugins rxdart meta]
- boolean_selector 2.1.1 [source_span string_scanner]
- camera_android 0.10.5 [camera_platform_interface flutter flutter_plugin_android_lifecycle stream_transform]
- camera_avfoundation 0.9.13+1 [camera_platform_interface flutter stream_transform]
- camera_platform_interface 2.5.0 [cross_file flutter plugin_platform_interface stream_transform]
- camera_web 0.3.1+3 [camera_platform_interface flutter flutter_web_plugins stream_transform]
- characters 1.3.0
- charcode 1.3.1
- clock 1.1.1
- cloud_firestore_platform_interface 6.1.0 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 3.9.0 [_flutterfire_internals cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js]
- cloud_functions_platform_interface 5.5.11 [firebase_core flutter meta plugin_platform_interface]
- cloud_functions_web 4.6.11 [cloud_functions_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- collection 1.17.2
- connectivity_plus_platform_interface 1.2.4 [flutter meta plugin_platform_interface]
- convert 3.1.1 [typed_data]
- cross_file 0.3.3+4 [js meta]
- crypto 3.0.2 [typed_data]
- csslib 0.17.2 [source_span]
- dbus 0.7.4 [args ffi meta xml]
- ed25519_edwards 0.3.1 [collection crypto convert adaptive_number]
- fake_async 1.3.1 [clock collection]
- ffi 1.2.1
- ffmpeg_kit_flutter_platform_interface 0.2.1 [flutter plugin_platform_interface]
- file 6.1.4 [meta path]
- firebase_app_check_platform_interface 0.1.0+10 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_app_check_web 0.1.0+10 [_flutterfire_internals firebase_app_check_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- firebase_auth_platform_interface 7.0.9 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 5.8.13 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser js meta]
- firebase_core_platform_interface 5.0.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.10.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_messaging_platform_interface 4.5.18 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_web 3.5.18 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta]
- firebase_remote_config_platform_interface 1.4.16 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_remote_config_web 1.4.16 [firebase_core firebase_core_web firebase_remote_config_platform_interface flutter flutter_web_plugins js]
- firebase_storage_platform_interface 5.1.3 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_storage_web 3.6.17 [_flutterfire_internals async firebase_core firebase_core_web firebase_storage_platform_interface flutter flutter_web_plugins http js meta]
- fixnum 1.1.0
- flutter_image_compress_common 1.0.1 [flutter flutter_image_compress_platform_interface]
- flutter_image_compress_platform_interface 1.0.1 [flutter plugin_platform_interface cross_file]
- flutter_image_compress_web 0.1.3 [flutter flutter_web_plugins flutter_image_compress_platform_interface js]
- flutter_plugin_android_lifecycle 2.0.9 [flutter]
- flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math web]
- freezed_annotation 2.2.0 [collection json_annotation meta]
- geolocator_android 4.1.7 [flutter geolocator_platform_interface]
- geolocator_apple 2.2.5 [flutter geolocator_platform_interface]
- geolocator_platform_interface 4.0.7 [flutter plugin_platform_interface vector_math meta]
- geolocator_web 2.1.6 [flutter flutter_web_plugins geolocator_platform_interface]
- geolocator_windows 0.1.1 [flutter geolocator_platform_interface]
- google_identity_services_web 0.2.1 [js meta]
- google_mlkit_commons 0.6.1 [flutter]
- google_sign_in_android 6.1.9 [flutter google_sign_in_platform_interface]
- google_sign_in_ios 5.6.1 [flutter google_sign_in_platform_interface]
- google_sign_in_platform_interface 2.4.0 [flutter plugin_platform_interface quiver]
- google_sign_in_web 0.12.0+2 [flutter flutter_web_plugins google_identity_services_web google_sign_in_platform_interface http js]
- html 0.15.2 [csslib source_span]
- http 0.13.5 [async http_parser meta path]
- http_parser 4.0.2 [collection source_span string_scanner typed_data]
- js 0.6.5 [meta]
- json_annotation 4.8.0 [meta]
- just_audio_platform_interface 4.2.0 [flutter plugin_platform_interface]
- just_audio_web 0.4.7 [just_audio_platform_interface flutter flutter_web_plugins]
- lints 2.0.1
- matcher 0.12.16 [async meta stack_trace term_glyph test_api]
- material_color_utilities 0.5.0 [collection]
- meta 1.9.1
- nested 1.0.0 [flutter]
- network_info_plus_platform_interface 1.1.3 [flutter meta plugin_platform_interface]
- nm 0.5.0 [dbus]
- path 1.8.3
- path_provider_android 2.0.25 [flutter path_provider_platform_interface]
- path_provider_foundation 2.2.2 [flutter path_provider_platform_interface]
- path_provider_linux 2.1.10 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_platform_interface 2.0.6 [flutter platform plugin_platform_interface]
- path_provider_windows 2.0.7 [ffi flutter path path_provider_platform_interface win32]
- permission_handler_android 10.2.0 [flutter permission_handler_platform_interface]
- permission_handler_apple 9.0.8 [flutter permission_handler_platform_interface]
- permission_handler_platform_interface 3.9.0 [flutter meta plugin_platform_interface]
- permission_handler_windows 0.1.2 [flutter permission_handler_platform_interface]
- petitparser 5.1.0 [meta]
- platform 3.1.0
- plugin_platform_interface 2.1.4 [meta]
- pointycastle 3.7.3 [collection convert js]
- process 4.2.4 [file path platform]
- quiver 3.2.1 [matcher]
- record_linux 0.4.1 [flutter record_platform_interface path]
- record_macos 0.2.2 [flutter record_platform_interface]
- record_platform_interface 0.5.0 [flutter plugin_platform_interface]
- record_web 0.5.0 [flutter flutter_web_plugins record_platform_interface]
- record_windows 0.7.1 [flutter record_platform_interface path]
- rxdart 0.27.7
- shared_preferences_android 2.1.2 [flutter shared_preferences_platform_interface]
- shared_preferences_foundation 2.2.1 [flutter shared_preferences_platform_interface]
- shared_preferences_linux 2.2.0 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface]
- shared_preferences_platform_interface 2.2.0 [flutter plugin_platform_interface]
- shared_preferences_web 2.1.0 [flutter flutter_web_plugins shared_preferences_platform_interface]
- shared_preferences_windows 2.2.0 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
- sign_in_with_apple_platform_interface 1.0.0 [flutter plugin_platform_interface meta]
- sign_in_with_apple_web 1.0.1 [flutter flutter_web_plugins sign_in_with_apple_platform_interface js]
- sky_engine 0.0.99
- source_span 1.10.0 [collection path term_glyph]
- stack_trace 1.11.0 [path]
- stream_channel 2.1.1 [async]
- stream_transform 2.1.0
- string_scanner 1.2.0 [source_span]
- term_glyph 1.2.1
- test_api 0.6.0 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
- tuple_dart 1.4.2
- typed_data 1.3.1 [collection]
- universal_html 2.2.1 [async csslib charcode collection html meta source_span typed_data universal_io]
- universal_io 2.2.0 [collection meta typed_data]
- url_launcher_android 6.0.27 [flutter url_launcher_platform_interface]
- url_launcher_ios 6.1.4 [flutter url_launcher_platform_interface]
- url_launcher_linux 3.0.4 [flutter url_launcher_platform_interface]
- url_launcher_macos 3.0.5 [flutter url_launcher_platform_interface]
- url_launcher_platform_interface 2.1.2 [flutter plugin_platform_interface]
- url_launcher_web 2.0.16 [flutter flutter_web_plugins url_launcher_platform_interface]
- url_launcher_windows 3.0.5 [flutter url_launcher_platform_interface]
- uuid 3.0.7 [crypto]
- vector_math 2.1.4
- web 0.1.4-beta
- webview_flutter_android 3.7.1 [flutter webview_flutter_platform_interface]
- webview_flutter_platform_interface 2.3.1 [flutter meta plugin_platform_interface]
- webview_flutter_wkwebview 3.4.4 [flutter path webview_flutter_platform_interface]
- win32 2.6.1 [ffi]
- xdg_directories 1.0.0 [meta path process]
- xml 6.2.2 [collection meta petitparser]

So I have started trying to send a notification from a firebase function:
exports.sendNotification = functions.region("europe-west2").https.onRequest(async (req:any, res: any) => {

    const token = req.query.token; // The FCM token of the device you want to send the notification to
    const message = req.query.message; // The message you want to send

    if (!token || !message) {
        return res.status(400).send("Missing token or message parameter.");
    }

    const payload = {
        notification: {
            title: "New Notification",
            body: message,
            icon: "default",
            click_action: "FLUTTER_NOTIFICATION_CLICK", // Custom click action for Flutter apps
        },
    };

    try {
        const response = await admin.messaging().sendToDevice(token, payload);
        console.log("Notification sent successfully:", response);
        res.send("Notification sent successfully");
    } catch (error) {
        console.log("Error sending notification:", error);
        res.status(500).send("Error sending notification: " + error);
    }
});

Which resulted in this error:
Failed to send notification. Status code: 500, Message: Error sending notification: Error: An error occurred when trying to authenticate to the FCM servers. Make sure the credential used to authenticate this SDK has the proper permissions. See https://firebase.google.com/docs/admin/setup for setup instructions. Raw server response: "

<TITLE>PROJECT_NOT_PERMITTED</TITLE>

PROJECT_NOT_PERMITTED

Error 401

". Status code: 401.

So I went into google cloud service accounts and added Firebase Cloud Messaging Admin permission. I re download the service account and redeployed. But, the error has persisted

I have verified that my Bundle ID, Team ID and App Store ID all match

I have revoked my APNs key and re uploaded it many times
I have download my service-account.json and replaced it Xcode many times

As you can see my service account has all firebase admin cloud messaging permissions

@darshankawar All help would be much appreciated

I also tried this code using the new API but it didn't work either:
const payload = {
            message: {
                token: token, // Set the device token
                notification: {
                    title: "Notification Title", // Set a title for the notification
                    body: message, // Use the message passed in the query for the body
                },
                apns: {
                    headers: {
                        "apns-priority": "10",
                    },
                    payload: {
                        aps: {
                            alert: {
                                title: "Notification Title",
                                body: message,
                            },
                        },
                    },
                },
                webpush: {
                    headers: {
                        Urgency: "high",
                    },
                    notification: {
                        body: message,
                        requireInteraction: "true",
                    },
                },
            },
        };

        const response = await admin.messaging().send(payload.message);

It returned this error:

The dumbest mistake to make:

Go to App Store Connect, scroll to Membership details and use the value there

repo: firebase/flutterfire

license_source: bigquery


text:
🐛 [Firebase_firstore] Firestore where clause not work with variable value

Bug report
working fine
@override
Future<List<SetModel>> getAllSet(String s) async {
  try {
    var data = await FirebaseFirestore.instance
        .collection('set')
        .where("subjectId", isEqualTo: "mathid")
        .get();
    return data.docs.map((e) {
      return SetModel.fromJson(e.data());
    }).toList();
  } catch (e) {
    throw Exception('somting');
  }
}

Not Working return nothing
@override
Future<List<SetModel>> getAllSet(String variableFromUi) async {
  var a = 'mathid';
  try {

    var data = await FirebaseFirestore.instance
        .collection('set')
        .where("subjectId", isEqualTo: variableFromUi)
        .get();
    return data.docs.map((e) {
      return SetModel.fromJson(e.data());
    }).toList();
  } catch (e) {
    throw Exception('somting');
  }
}

and in stackoverflow many question regarding this

https://github.com/pks050505/polyteck-demo/tree/master/

@pks050505
Can you provide flutter doctor -v along with a stripped down / narrowed minimal reproducible code sample (e.g, a single dart file) that shows the behavior you are reporting ?

https://stackoverflow.com/questions/55946625/cloud-firestore-query-with-variable-in-where-clause-isnt-working-flutter

@pks050505
Have you created index for the where clause in the firebase console ?


text:
🐛 [firebase_database] Consecutive word/letter duplication in dart doc comments

Bug report
Steps to reproduce
Steps to reproduce the behavior:

Go here
See the letter a is duplicated on line 95 and 119

Thanks for catching this :)

authors: OutdatedGuy darshankawar


text:
firestore: PERMISSION_DENIED: Missing or insufficient permissions

firestore rules should be deployed at the beginning.
otherwise, at least for me, access doesn't work and I receiving an error "firestore: PERMISSION_DENIED: Missing or insufficient permissions" (visible by checking the developer console).

Same issue.

authors: thevuong usernum-gcp

repo: firebase/friendlyeats-web


text:
[ANDROID] Bug that allows user to follow himself

From @patricknasc on December 15, 2016 9:30
Besides the idea of following himself being useless, this behavior is causing some sort of cloning everytime the auth user clicks follow/unfollow button inside his own UserDetail screen.
Copied from original issue: firebase/friendlypix#56

Cleaning up issue fixed in upcoming v2.

repo: firebase/friendlypix-android


text:
Find radius with at least N results

Iterative function for finding a radius that contain at least N results

Hey @RCasatta - First off, thanks a lot for sending this PR. This is a question we get pretty often and it's awesome to see you take a crack at solving it. I talked with @jdimond (the author of geofire-java) and I think we both agree that this kind of functionality is not something which should belong in the core library. It is a bit too specific and also it is unclear how this should behave an new items are added to the query, in realtime. Does an item in the first N that gets pushed to position N+1 fire some sort of event indicating as much? What is that event called? We could reuse onKeyExited(), but the key is still technically within the query's radius, just not within its filter.
As a result, this is probably better suited as an example. If you want to update the PR to be a new example, we would gladly work with you to get it merged in. Otherwise, we will close this PR. Jonny can give a full code review of the actual code if you want to move forward with turning this into an example. Thanks again!

Hi Jacob,
i can modify this PR to become an example if you or @jdimond give me some directions.
However, i would to clarify two points.

Like you said: "this is a question we get pretty often", so why aren't you answering in the library?
I am not thinking about this functionality in term of a query filter, just a way to bootstrap the standard query. I think it's a common problem for a geolocation project that does not know before how many locations will be.

I am not saying this PR implementation is a good, it's kinda hacky. I just think the problem it try to solve deserves more than an example but it is sure a good start.
Thanks

Thanks for getting back to me. Let me try to comment on your good points.
I think one of the big roadblocks for me is something I mentioned in my last comment: how should this behave as new items are added to the query in realtime? Firing onKeyExited() as the top N items change seems like the most likely solution, but I'm not sure it fits in with how we are thinking about the current library. This probably requires some more design discussion.
Also, I think there are several ways to solve this problem, and the solution depends a bit on your use case. I think a generic solution for "find the N closest items" could cause poor performance for some use cases. For example, the optimal solution here is probably highly dependent on how many data points you have and how close together they are. I'm more inclined to provide a library which allows you implement whichever one you want (and provide examples for the different strategies) rather than providing a generic solution that won't work for everyone.
@jdimond - Can you provide a code review here and offer some pointers so we can turn this into an example? Also, if you disagree with what I said or want to offer some more opinions, go ahead.

@RCasatta, sorry for the long delay, better late than never. I had a look at your code and there are a bunch of issues that I want to point out:

The radius finder is blocking, which is general bad design because now you can't run it on the main thread without freezing up the UI.
The way the algorithm works is very inefficient because it will create a bunch of queries under the hood. (which will all query Firebase) You should be able to reuse a single query and use setRadius for it to be a bit more efficient
Catching exceptions instead of passing in valid parameters is in general not very good thing to do
A lot of the code is not very idiomatic (using Integer objects instead of primitive types)
There are a bunch of syntactic issues (tabs & spaces mixed, inconsistent parentheses, logging to system out, ...)

So at this time I don't think we can make this code an official example, so I'll close this issue. Let me know if you have any other questions.

authors: RCasatta jdimond jwngr

repo: firebase/geofire-java

license: mit


text:
loop over value keys to check wich value need to be updated

Should resolve https://github.com/firebase/polymerfire/issues/88 and https://github.com/firebase/polymerfire/issues/56.

@mbleigh thanks for your comments, truly appreciated.
For very large JSON blob, I would tend to think that other part of data processing will weight on performance way more than Object.key() (I am thinking of snapshot.val() in particular - which is process intensive and invoked by firebase-document on every firebase value update).
Re. nested Object properties - yes they will still trigger on every update. I was reluctant to recurse down the entire tree because the problem this PR is trying to fix is to avoid observers to be fired every time a an update is made on a bound Object. A construct like _observe(data.myProp) is pretty common, whereas observe(data.myProp.mySubProp) is a bit less likely.

Please note that if you want to and as a temporary measure, you can use my #dev version combining pull request #177, #166 and #167 via
bower install --save  PolymerEl/polymerfire#dev

repo: firebase/polymerfire


text:
The provided API key has an IP address restriction.

I am getting the Remote config error. But the code has been working correctly since last week. But suddenly  the following error is coming :
E/FirebaseRemoteConfig: Fetch failed! Server responded with an error.
com.google.android.gms.internal.firebase_remote_config.zze: 403 Forbidden
{
"code": 403,
"errors": [
{
"domain": "global",
"message": "The provided API key has an IP address restriction. The originating IP address of the call (2405:204:1308:bc95:b493:506c:3596:86fa) violates this restriction.",
"reason": "forbidden"
}
],
"message": "The provided API key has an IP address restriction. The originating IP address of the call (2405:204:1308:bc95:b493:506c:3596:86fa) violates this restriction.",
"status": "PERMISSION_DENIED"
}

@msoni-oyo since this is a project-specific issue that will require someone to dig into your API keys, I suggest writing in to Firebase Support:
https://firebase.google.com/support
They have all the tools to look into this!

authors: msoni-oyo samtstern

repo: firebase/quickstart-android


text:
UNBLOCKED GAMES drift car games unblocked | Play Free Games Online - ti239

UNBLOCKED GAMES drift car games unblocked | Play Free Games Online - ti239
drift car games unblocked is a popular website that offers a wide variety of games that can be played in environments where access to gaming sites is typically restricted, such as schools and workplaces.
Enjoy playing all your favorite casual drift car games unblocked, office, or home. Dive into the world of online free games without downloads!
👉🔴 SITE Games Unblocked >> drift car games unblocked
👉🔴 PREMIUM Games Unblocked >> drift car games unblocked
🙋♀ A short introduction - what is your organization all about?
🌈 Contribution guidelines - how can the community get involved?
👩💻 Useful resources - where can the community find your docs? Is there anything else the community should know?
🍿 Fun facts - what does your team eat for breakfast?
🧙 Remember, you can do mighty things with the power of Markdown
drift car games unblocked: Unlocking Premium Fun in Educational Settings
In recent years, the phenomenon of drift car games unblocked has taken the online gaming community by storm. These games, designed to bypass restrictions often placed by schools and workplaces, provide a unique blend of entertainment and engagement, especially for students. Among the vast array of options, unblocked premium games stand out as a popular choice, offering enhanced features, better graphics, and a more immersive gaming experience.
What Are drift car games unblocked?
drift car games unblocked are online games that can be accessed and played without restrictions, typically in environments like schools or offices where gaming sites might be blocked. The appeal of these games lies in their accessibility and the diverse range of genres available, from action and adventure to puzzles and strategy. Students often turn to these games during breaks or downtime, providing a quick escape from their academic routines.
The Rise of Premium drift car games unblocked
As the unblocked games market has evolved, so has the demand for premium content. Premium drift car games unblocked are those that offer superior gameplay experiences, often including advanced graphics, engaging storylines, and multiplayer functionalities. Many of these games are adaptations of popular titles, enabling players to enjoy high-quality gaming even in restricted environments.
The allure of premium unblocked games lies in their ability to combine fun with an element of strategy and critical thinking. Many of these games challenge players to solve complex problems, collaborate with peers, and develop skills that are beneficial beyond the gaming world.
Benefits of Playing drift car games unblocked
Stress Relief: For students juggling a demanding academic schedule, unblocked games provide a much-needed break. Engaging in play can reduce stress and enhance overall well-being.
Social Interaction: Many unblocked games allow for multiplayer modes, enabling students to connect with friends or even make new ones. This social aspect is particularly valuable in school settings, fostering teamwork and collaboration.
Skill Development: Numerous unblocked games require strategic thinking, quick reflexes, and problem-solving abilities. These skills can translate to academic success, making gaming a potentially productive pastime.
Creativity Boost: Games that allow for customization and creative expression can inspire students to think outside the box, enhancing their creative skills.
Popular Genres of drift car games unblocked Premium Games
Action and Adventure: Games that provide thrilling narratives and exciting challenges, often featuring iconic characters and rich worlds. Titles like "Among Us" or "Minecraft" have gained immense popularity in unblocked formats.
Puzzle and Strategy: These games challenge players to think critically and plan ahead, with examples including "2048" and "Bloons Tower Defense."
Simulation: Games like "The Sims" or "Animal Crossing" let players create and manage their virtual lives, promoting creativity and organization.
Sports and Racing: Titles such as "Basketball Stars" and "Slope" offer fast-paced action and competitive gameplay, appealing to sports enthusiasts.
Conclusion
drift car games unblocked premium games represent a dynamic intersection of fun and education, providing students with a unique platform to unwind while also honing valuable skills. As educational institutions continue to grapple with balancing entertainment and learning, these games offer a solution that can enhance the school experience. By integrating gaming into their downtime, students can enjoy the thrill of play while developing critical skills, making unblocked premium games a worthwhile addition to any educational setting.

hgfh

authors: abaluma syghbvfu


text:
Could you please provide gitignore that would be fit for unity that use firebase?

I'm not so sure but it seem like some file and folder come from resolver and so it should excluded from git, but then I haven't seen (if there is) any official verdict about what should be ignore and whatnot. Some is confused such as m2repository
Can you please add default .gitignore it into this repo?

@paulinon As of now I wish to know first, should we ignore crashlytics build id and version xml file? Also can we ignore aar and other file in m2repository ?

I'm having the same question.

any solution?

If you are using the latest version of Firebase (6.15.2 for example), here are a list of file you can ignore in Assets folder
# This may be different if it is changed in Android Resolver settings
Assets/GeneratedLocalRepo/

Assets/StreamingAssets/google-services-desktop.json
Assets/Plugin/Android/Firebase/

# Use the following one ONLY IF all aar files here are generated by Android Resolver.  Note that some Unity plugins does import libraries under this folder
# Assets/Plugin/Android/*.aar

Please do not ignore Assets/Firebase/m2repository
Hope this answer the question!

Thanks @chkuang-g

If you are using the latest version of Firebase (6.15.2 for example), here are a list of file you can ignore in Assets folder
# This may be different if it is changed in Android Resolver settings
Assets/GeneratedLocalRepo/

Assets/StreamingAssets/google-services-desktop.json
Assets/Plugin/Android/Firebase/

# Use the following one ONLY IF all aar files here are generated by Android Resolver.  Note that some Unity plugins does import libraries under this folder
# Assets/Plugin/Android/*.aar

Please do not ignore Assets/Firebase/m2repository
Hope this answer the question!

I think Assets/Plugin/ should be Assets/Plugins/

My bad.  Edited :)

authors: Thaina chkuang-g josewweee p0w1nd

repo: firebase/quickstart-unity


text:
chore: normalizing region tags to use 'firestore_" product prefix for sample tracking

Context: go/firestore-snippet-overhaul
Note: adding a do not merge label until I am sure all references to the obsolete region tags have been removed from the docs.

Just kidding, I can't add labels. Um, please do not merge this until I am sure that all references have been updated in the docs. :)

Confirmed that the deleted region tags are not used in docs:
https://devrel.corp.google.com/snippets/quickstart_query
https://devrel.corp.google.com/snippets/update_document_many
No risk in adding new region tags, but also checking the obsolete region tags I'll remove in the next PR:
https://devrel.corp.google.com/snippets/demo_initialize - not in docs
https://devrel.corp.google.com/snippets/initialize_app_service_account - yes in docs, ok for this PR but will remove from docs before removing region tag
https://devrel.corp.google.com/snippets/initialize_app_functions - yes in docs, ok for this PR but will remove from docs before removing region tag

@meredithslota, is this good to merge?

repo: firebase/snippets-node


text:
Fir-9475: Allow getting cheapest instance from RM

In order to be instance-name independent we want to pick the cheapest instance from the available list for our integration tests.
Limitation: There's no way to limit or filter by the type of instances (e.g. Balanced or Compute) so the cheapest instance turns out to be a compute-optimised one.

As discussed with @stepansergeevitch , since this is a client-facing module we don't want to add new functionality without a proper spec. Moving this logic into the integration test workflow.

repo: firebolt-db/firebolt-python-sdk


text:
bug(gui-client/windows): DNS leaks when roaming

It probably leaks every time the DNS changes in fact.
This is because we deactivate and then re-activate DNS control. To get around it we'd need to update the rules in place without deactivating, which may be possible. It would be nice to have an automated test for this.
### Tasks
- [ ] Add to "Known issues" in the user guides

#5375 may fix this too since I'm redoing the DNS control code in there to skip unnecessary steps.

repo: firezone/firezone