'rclone sync --drive-use-trash' fails to delete files if owned by another user.

rclone v1.35
Debian 8.6 - 64 bit
Google Drive
Hi,
First, thanks for a great utility!
'rclone sync --drive-use-trash does not delete files if file is owned by a different account but the account can edit (including delete) from web interface
To reproduce:
create a directory permtest on google drive owned by gdrive_backups_o
share with gdrive_backups2_o as an editor
As gdrive_backups2_o, go to "Shared with me" in google drive
find permtest and "add to My Drive"
mkdir /tmp/permtest
touch /tmp/permtest/owner_gdrive-backups_o
touch /tmp/permtest/owner_gdrive-backups2_o
copy two files using two accounts
/usr/local/bin/gdrive/rclone copyto -v --config /scratch/rclone.creds /tmp/permtest/owner_gdrive-backups_o gdrive-backups_o:permtest/owner_gdrive-backups_o
/usr/local/bin/gdrive/rclone copyto -v --config /scratch/rclone.creds /tmp/permtest/owner_gdrive-backups2_o gdrive-backups2_o:permtest/owner_gdrive-backups2_o
remove the files
rm /tmp/permtest/owner_gdrive-backups_o
rm /tmp/permtest/owner_gdrive-backups2_o
sync the directory with one of the accounts - file which is owned gets removed (owner_gdrive-backups2_o), file which is edittable is not removed (owner_gdrive-backups_o)
/usr/local/bin/gdrive/rclone sync --drive-use-trash -v --config /scratch/rclone.creds /tmp/permtest/ gdrive-backups2_o:permtest/
Not using '--drive-use-trash' does not change the outcome.
thanks again!
C.

This issue came up before in #34 - and there we decided that --drive-use-trash was a reasonable workaround - that doesn't seem to be working for you though?
What error message does it give?

Oh dang, I had planned on giving the output.  Thanks for reminding me.
Here is one run of the commands above:
root@drbl:/ceph/drbl# mkdir /tmp/permtest
mkdir: cannot create directory ‘/tmp/permtest’: File exists
root@drbl:/ceph/drbl# touch /tmp/permtest/owner_gdrive-backups_o
root@drbl:/ceph/drbl# touch /tmp/permtest/owner_gdrive-backups2_o
root@drbl:/ceph/drbl#
root@drbl:/ceph/drbl# # copy two files using two accounts
root@drbl:/ceph/drbl# /usr/local/bin/gdrive/rclone copyto -v --config
/scratch/rclone.creds /tmp/permtest/owner_gdrive-backups_o gdrive-backup
s_o:permtest/owner_gdrive-backups_o
2017/01/13 10:09:31 rclone: Version "v1.35" starting with parameters
["/usr/local/bin/gdrive/rclone" "copyto" "-v" "--config" "/scratch/rclone
.creds" "/tmp/permtest/owner_gdrive-backups_o"
"gdrive-backups_o:permtest/owner_gdrive-backups_o"]
2017/01/13 10:09:31 gdrive-backups_o: Saved new token in config file
2017/01/13 10:09:32 Google drive root 'permtest': Modify window is 1ms
2017/01/13 10:09:32 owner_gdrive-backups_o: Modification times differ by
-21h54m46.735369495s: 2017-01-13 10:09:31.471369495 -0600 CST, 2017-0
1-12 18:14:44.736 +0000 UTC
2017/01/13 10:09:33 owner_gdrive-backups_o: Updated modification time in
destination
2017/01/13 10:09:33 owner_gdrive-backups_o: Unchanged skipping
2017/01/13 10:09:33
Transferred:      0 Bytes (0 Bytes/s)
Errors:                 0
Checks:                 0
Transferred:            0
Elapsed time:        2.2s
2017/01/13 10:09:33 Go routines at exit 6
root@drbl:/ceph/drbl# /usr/local/bin/gdrive/rclone copyto -v --config
/scratch/rclone.creds /tmp/permtest/owner_gdrive-backups2_o gdrive-backu
ps2_o:permtest/owner_gdrive-backups2_o
2017/01/13 10:09:33 rclone: Version "v1.35" starting with parameters
["/usr/local/bin/gdrive/rclone" "copyto" "-v" "--config" "/scratch/rclone
.creds" "/tmp/permtest/owner_gdrive-backups2_o"
"gdrive-backups2_o:permtest/owner_gdrive-backups2_o"]
2017/01/13 10:09:33 gdrive-backups2_o: Saved new token in config file
2017/01/13 10:09:34 Google drive root 'permtest': Modify window is 1ms
2017/01/13 10:09:34 owner_gdrive-backups2_o: Couldn't find file - need
to transfer
2017/01/13 10:09:36 owner_gdrive-backups2_o: Copied (new)
2017/01/13 10:09:36
Transferred:      0 Bytes (0 Bytes/s)
Errors:                 0
Checks:                 0
Transferred:            0
Elapsed time:        3.1s
2017/01/13 10:09:36 Go routines at exit 8
root@drbl:/ceph/drbl#
root@drbl:/ceph/drbl# # remove the files
root@drbl:/ceph/drbl# rm /tmp/permtest/owner_gdrive-backups_o
root@drbl:/ceph/drbl# rm /tmp/permtest/owner_gdrive-backups2_o
root@drbl:/ceph/drbl#
root@drbl:/ceph/drbl# # sync the directory with one of the accounts -
file which is owned gets removed, file which is editable is not removed
root@drbl:/ceph/drbl# /usr/local/bin/gdrive/rclone sync
--drive-use-trash -v --config /scratch/rclone.creds /tmp/permtest/
gdrive-backups2_o:permtest/
2017/01/13 10:09:36 rclone: Version "v1.35" starting with parameters
["/usr/local/bin/gdrive/rclone" "sync" "--drive-use-trash" "-v"
"--config" "/scratch/rclone.creds" "/tmp/permtest/"
"gdrive-backups2_o:permtest/"]
2017/01/13 10:09:37 Google drive root 'permtest': Modify window is 1ms
2017/01/13 10:09:37 Google drive root 'permtest': Reading ""
2017/01/13 10:09:37 Google drive root 'permtest': Finished reading ""
2017/01/13 10:09:37 Google drive root 'permtest': Waiting for checks to
finish
2017/01/13 10:09:37 Google drive root 'permtest': Waiting for transfers
to finish
2017/01/13 10:09:37 Waiting for deletions to finish
2017/01/13 10:09:38 owner_gdrive-backups_o: Couldn't delete: googleapi:
Error 403: Insufficient permissions for this file, forbidden
2017/01/13 10:09:39 owner_gdrive-backups2_o: Deleted
2017/01/13 10:09:39 Attempt 1/3 failed with 1 errors and: failed to
delete 1 files
2017/01/13 10:09:39 Google drive root 'permtest': Reading ""
2017/01/13 10:09:39 Google drive root 'permtest': Finished reading ""
2017/01/13 10:09:39 Google drive root 'permtest': Waiting for checks to
finish
2017/01/13 10:09:39 Google drive root 'permtest': Waiting for transfers
to finish
2017/01/13 10:09:39 Waiting for deletions to finish
2017/01/13 10:09:40 owner_gdrive-backups_o: Couldn't delete: googleapi:
Error 403: Insufficient permissions for this file, forbidden
2017/01/13 10:09:40 Attempt 2/3 failed with 1 errors and: failed to
delete 1 files
2017/01/13 10:09:40 Google drive root 'permtest': Reading ""
2017/01/13 10:09:40 Google drive root 'permtest': Finished reading ""
2017/01/13 10:09:40 Google drive root 'permtest': Waiting for checks to
finish
2017/01/13 10:09:40 Google drive root 'permtest': Waiting for transfers
to finish
2017/01/13 10:09:40 Waiting for deletions to finish
2017/01/13 10:09:40 pacer: Rate limited, sleeping for 1.287113937s (1
consecutive low level retries)
2017/01/13 10:09:40 pacer: low level retry 1/10 (error googleapi: Error
403: User Rate Limit Exceeded, userRateLimitExceeded)
2017/01/13 10:09:40 pacer: Rate limited, sleeping for 2.54916732s (2
consecutive low level retries)
2017/01/13 10:09:40 pacer: low level retry 2/10 (error googleapi: Error
403: User Rate Limit Exceeded, userRateLimitExceeded)
2017/01/13 10:09:45 pacer: Resetting sleep to minimum 10ms on success
2017/01/13 10:09:45 owner_gdrive-backups_o: Couldn't delete: googleapi:
Error 403: Insufficient permissions for this file, forbidden
2017/01/13 10:09:45 Attempt 3/3 failed with 1 errors and: failed to
delete 1 files
2017/01/13 10:09:45 Failed to sync: failed to delete 1 files

@mmozeiko Google says you don't have enough permissions and rclone can't change that...  Can you get the owner of the shared folder to give you more permissions?

I believe this is not permission issue. I have "Organize, add & edit" rights on this folder. And (as I wrote already) I can delete files from this folder using web interface just fine.

@mmozeiko wrote

I believe this is not permission issue. I have "Organize, add & edit" rights on this folder. And (as I wrote already) I can delete files from this folder using web interface just fine.

I don't think there are any other parameters that rclone could be sending to drive to delete something so I'm not sure how I could solve the problem.
Any ideas?

I've googled around and it seems this is API limitation of Google Drive. In multiple places people say that API does not allow to remove files from shared folders, but Web UI allows. Unless you are owner...
https://stackoverflow.com/questions/21737495/why-is-google-drive-api-is-not-allowing-to-delete-a-folder-for-user-who-has-can
Sad :(

I have just got into this issue too.
As mmozeiko writes, it is a known limitation of Google Drive API unfortunately. The possible workaround is to purge the complete target directory with rclone purge and then recreate it..if it fits your use-case.
Hope this helps.
BTW, many thanks for the rclone tool!

@mmozeiko thanks for looking this up.
Perhaps worth a section in the docs?  Anyone fancy adding a bit to drive.md the limitations section seems good?

After running into this issue, I've found that updating the folder permissions to "full" works (I'm using a team drive, but assume it'll be the same).
Obviously edit is read/write/modify but only "full" allows "delete".  A very *nix-y approach!

What is "full" permission? I see only "Can organize, add & edit" and "Can view only" access permissions.

I'm going to close this now since this isn't an rclone problem as there is a work-around :-)

Just a follow up idea. Although, as noted in https://github.com/rclone/rclone/issues/1029#issuecomment-375992345, there is a workaround to delete Google Drive files owned by others by purgeing the folder that contains them and then recreating the purged folder, this has the negative consequence that the newly created folder, even though it has same name, has a different Google Drive URL. Any permissions, etc., for the folder will be lost, and anyone trying to navigate to the Drive folder using a saved URL will get an error since the original URL is no longer valid.
Fortunately, the Google Drive API does allow you to do a server-to-server move of files owned by others. So, assuming a use case of wanting to move files from Google Drive to a local folder, an alternative workaround goes something like the following, using a temporary server-side folder:

For files you want to move to a local folder from GDrive:/folder1, execute rclone mkdir GDrive:/folder1.DLtmp to create a temporary server-side folder.
Do a server-to-server move: rclone moveto GDrive:/folder1/ GDrive:/folder1.DLtmp
Copy from Google Drive to local: rclone copy GDrive:/folder1.DL ./local_folder
Purge the temporary folder: rclone purge GDrive:/folder1.DLtmp

In principle, the above logic could even be incorporated into the rclone code base to workaround the (annoying) Google Drive API limitation.


[MDS-312]  Make hidden components visible on side menu

Aren't we going to add back previously deleted menu items? Regarding old components

All other hidden pages are empty at this point. Or which deleted items are you referring to?

Aren't we going to add back previously deleted menu items? Regarding old components

All other hidden pages are empty at this point. Or which deleted items are you referring to?

List Item page was removed since Menu Item was there to replace it. Should we still restore List Item?

yes, please restore. and also - please move MenuItem  to Moon.Design namespace and Components V2 in menu


AUC

The metric of AUC was showed in the authors's paper, but I did not find the code of the AUC calculation

Please use sklearn to calculate AUC scores.


Feature - Require Admin rights to close application

This is out of scope of a normal application. I'm pretty sure it's not possible, as well - nothing can stop a user from killing an application from Task Manager.


[0.7] Sync version can't be used in async code

Hi,
I migrated an internal project to 0.7 and being hit by this error:
thread 'main' panicked at 'Cannot start a runtime from within a runtime. This happens because a function (like `block_on`) attempted to block the current thread while the thread is being used to drive asynchronous tasks.', C:\Users\geobe\.cargo\registry\src\github.com-1ecc6299db9ec823\tokio-0.2.18\src\runtime\enter.rs:19:5

I'm using synchronous API but I can see the the synchronous implementation just block_on async code.
I don't know if this is intended and I'll switch to Async API but I wanted to signal this as a difference from 0.6 branch :)
Regards,

Huh, it was never intended to be used in this way. I suppose that with 0.6 it "worked" because tokio-core requires an explicit runtime handle for all operations. If the library had ever been ported to tokio-0.1, you'd have the same problem there.
So yes, switch to async throughout.

It ended that I can't use async version, because it's in an trait impl from oxide-auth and it's sync. I'll use spawn_blocking to use sync version of ldap3. A pity, but it will work :)

It should be possible to a) spin up an OS thread with its own Tokio runtime and one or more LDAP connections, b) make a synchronous bridge that will block in other threads and forward requests to the LDAP runtime. I don't yet see it as something that would be included in ldap3 proper, it's a bit specialized.
Do you have a repo/gist which could reproduce your problem config?

Unfortunately it's closed source, but I can craft an example to demonstrate my issue yes:
example.zip

I have a workaround for now (see the Rust forum thread above), but I think the simpler would be waiting for async oxide-auth (which is WIP)

Ah, from the URLO thread and the code I finally saw what you meant to do. The solution, spawn_blocking(), is not a workaround, but an architectural necessity: you don't want to call blocking operations directly in an async context, and the inverse doesn't work without a runtime. Of course, once every support library is async, you can use it exclusively.


Text input cursor color is not changeable

Problem description
The text input cursor color is dark blue. According to the app design, we can use a color like a dark blue. In that case, it is hard to detect the cursor. If we want to change the cursor color, we can't do it. Change the text input cursor color is not possible.
Expected behavior
The text input cursor color must be changeable.
Environment

Tabris.js version: 2.1.0
Device: iPhone 6
OS: iOS 11.1

https://github.com/eclipsesource/tabris-ios/commit/70f0cf71e4db1b01d4a8b0368ce9f5b4969ba8a2

I don't have experience with iOS, but on android the cursor is controlled by the theme. It might be the same on iOS.

@3to1null The theme is specific to Android

https://github.com/eclipsesource/tabris-js/commit/bd823345270281bc49cdc9b3fe3839813088e399


web: show the priority in the queue

One of the tools docs.rs operators have to ensure a fair build queue to everyone is to manually deprioritize slow-to-build crates.
This changes the queue page to show the priority in the build queue if it's not '0'.

r? @jyn514

The screenshot and code looks great, but I'm not sure how to change the priority in the site so I can test locally.

but I'm not sure how to change the priority in the site so I can test locally.

Open a psql shell (the password is password):
docker-compose run db psql -h db -U cratesfyi

Then run (remember the priority is inverted for reasons):
UPDATE queue SET priority = 5 WHERE name = 'lazy_static';

Going to make a separate pull adding that to the README ;) Thanks!

LGTM


mypy reports error with target unpacking

Consider this valid code:
target = Target.("thing").located_by((By.ID, "thingid"))
def do_thing(by, value):
    ...

do_thing(*target)  # mypy errors  'List or tuple expected as variable arguments'

Target allows for unpacking to occur but mypy will error: "List or tuple expected as variable arguments".  Based on a stackoverflow post it would seem that mypy is expecting the object to also have an __iter__ method.
Now, I'm not sure if we actually need Target to have an __iter__ or if we could get away with type hinting that one exists.
class Target:
    __iter__: Callable[["Target"], Iterator[Any]]

Nice find! This would be nice to fix.

While the type hint alleviates mypy I'm thinking it might just be a better idea to implement the method.  The question I have now is; does it make sense to keep both __iter__ and __getitem__?  does it even matter?  From what I can tell __getitem__ is a legacy method but they essentially accomplish the same thing.
Point of fact, I'm having a REALLY difficult time trying to figure out a unit test that passes only when __iter__ exists.


[Feature]: Add translation/localization/internationalization support for HomeView

Feature Summary
With the foundations for localization in place in the app, we can start adding translations to individual pages by pulling their text out of the html and into the local files in src/translations We can now apply these to the HomeView
Detailed Description
Look at src/views/LoginView for an example of a page that is correctly using $i18n to localize/translate content. The user-visible strings have been removed from the <template> code and placed into a "login" section of the translation files in src/translations.
The page then imports and consumes the useI18n() composable to grab the t() function used to render/translate text by pulling from the appropriate language's json file. This is done using a setup() block of the page like so:
  setup() {
    const { t } = useI18n();
    return { t };
  },

From there, we can grab a given string by name in the appropriate locale using {{ t('login.joinDiscord') }} since each translation json in this case has a login attribute for all the text in the login page, with a joinDiscord child attribute for the text to show in the 'Join our discord community' button.
We should do the same thing to the HomeView, by extracting all the text in the page into a home section of each translation json file (e.g. src/translations/en.json) and then configuring HomeView with the useI18n() composable and rendering all its text with t() to translate it to the user's selected locale.

@itsalaidbacklife I am working on this issue.


No "Manage Plug-ins" option - Mail Version 11.5 (3445.9.7)

The Mail Preferences - General tab does not offer a "Manage Plugins" option.
Running under 10.13.6 (17G14042)

That's odd.
How did you install this plugin? Was Mail properly closed and re-launched during install? I have an installer script that's supposed to quit Mail then run sudo defaults write "/Library/Preferences/com.apple.mail" EnableBundles -bool YES to enable the "Manage Plug-ins" option.
Could you try quitting Mail then trying that command again? See this article for reference.

Hi Aaron,
Many thanks for getting back to me.
I confess - the Apple Mail app was running when I did the instal; I didn’t quit it myself. I found, post install, that it was not running and re-launched it. It was after this that I noted the lack of enable option in the General Tab for mail prefs
Ran the command from Term - no errors but here’s what I see when I re-launch mail and open the general prefs

On 17 Feb 2021, at 12:15, Aaron Lee<EMAIL_ADDRESS>wrote:
That's odd.
How did you install this plugin? Was Mail properly closed and re-launched during install? I have an installer script that's supposed to quit Mail then run sudo defaults write "/Library/Preferences/com.apple.mail" EnableBundles -bool YES to enable the "Manage Plug-ins" option.
Could you try quitting Mail then trying that command again? See this article for reference https://help.mailbutler.io/help/manage-plug-ins-button-is-gone-from-apple-mail.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/apparition47/MailTrackerBlocker/issues/12#issuecomment-780517065, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABV6I4WFDA4XEWV5QYM45RTS7OXP5ANCNFSM4XX4B5KQ.

Did you mean to attach a photo? I don't see it. I assume the command didn't work?
Could you try other commands in the article above?

HI
Yes I attached a snapshot of the Mail.app prefs window just for reference it was in png format
I tried the process referred to in the link provided but still no “manage Plug-In’s” button - one thing to note I have GpG mail installed which adds an extra search option to the bottom of the dialog. See jpeg snapshot below

On 18 Feb 2021, at 01:40, Aaron Lee<EMAIL_ADDRESS>wrote:
Did you mean to attach a photo? I don't see it. I assume the command didn't work?
Could you try other commands in the article above https://help.mailbutler.io/help/manage-plug-ins-button-is-gone-from-apple-mail?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/apparition47/MailTrackerBlocker/issues/12#issuecomment-780976116, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABV6I4XWHPLW4YBMBS6OF63S7RVXTANCNFSM4XX4B5KQ.

Sorry, still can't see your screenshots. Attaching images through email replies to GitHub doesn't work I guess.
In any case, could you please try GpG's other suggestion of deleting the DataVaults dir?

I'm on macOS 11.2.2 and didn't have the Manage Plugin-ins... button in my preferences window.  I quit Mail, ran these two commands, then reopened Mail and it worked.  I had used the brew install method and had Mail quit before running brew.
sudo defaults write “/Library/Preferences/com.apple.mail” EnableBundles 1 defaults write com.apple.mail EnableBundles -bool true

I get the same issue. Mail 11.5 on High Sierra (10.13.6).
No "manage plugins" button even after following the steps above (command line).
Now Mail doesn't tell me, at its opening, that it disables the uncompatible plugin. That's better. But it won't work...

@webdeck Do you remember if Mail was exited during the installation process? The installation script is supposed to quit Mail then run that EnableBundles command.
@GreenOnRed Others are having this issue as well but I need more info. Could you please open Console.app filtering by "mailtrackerblocker", open Mail, enable the plugin then sending me the logs that appear?

@apparition47 :
I do not have the "incompatible plugin" message anymore, but still don't have any "manage plugin" button in the "preferences" window.
And the console.app seems to tell me that's it works... (see the screenshot). However, it doesn't seem to filter the images.

@GreenOnRed That's odd, sounds like it's enabled? Are you seeing this blue (or sometimes grey) ⓧ icon? If so, it's working. You shouldn't see normal images removed from your emails. It removes small 1x1 images that track you.

@apparition47 👍 Yes, perfect, I have the blue cross icon! Sorry, yes, I was thinking of any images because I unchecked the Mail filter and made a confusion.
I don't have the button in the menu, but it seems to work. I don't know why I had the error message at the beginning, but it seems to be OK now. Thank you so much!

@webdeck Do you remember if Mail was exited during the installation process? The installation script is supposed to quit Mail then run that EnableBundles command.

I had manually quit Mail before running the brew install.  After the install completed, Mail opened automatically and there was no Manage Plug-ins button.  I manually quit Mail again, ran the two defaults commands, and launched Mail, which fixed it.

May have a fix in 0.3.13. Please try it out and reopen this ticket if it didn't work (sadly unable to reproduce this issue on any of my Macs).


Error when evaluating SSR module

Describe the bug
It seams the bug is coming from astro-i18next/src/components/index.ts
8:57:26 PM [vite] Error when evaluating SSR module /node_modules/astro/astro.js:
|- SyntaxError: Invalid or unexpected token
    at new AsyncFunction (<anonymous>)
    at instantiateModule (/Private/astro/node_modules/vite/dist/node/chunks/dep-24daf00c.js:54348:28)

8:57:26 PM [vite] Error when evaluating SSR module /node_modules/astro-i18next/src/components/Trans.astro: failed to import "/node_modules/astro/astro.js"
|- SyntaxError: Invalid or unexpected token
    at new AsyncFunction (<anonymous>)
    at instantiateModule (/Private/astro/node_modules/vite/dist/node/chunks/dep-24daf00c.js:54348:28)

8:57:26 PM [vite] Error when evaluating SSR module /node_modules/astro-i18next/src/components/index.ts: failed to import "/node_modules/astro-i18next/src/components/Trans.astro"
|- SyntaxError: Invalid or unexpected token
    at new AsyncFunction (<anonymous>)
    at instantiateModule (/Private/astro/node_modules/vite/dist/node/chunks/dep-24daf00c.js:54348:28)

8:57:26 PM [vite] Error when evaluating SSR module /src/layouts/Layout.astro: failed to import "/node_modules/astro-i18next/src/components/index.ts"
|- SyntaxError: Invalid or unexpected token
    at new AsyncFunction (<anonymous>)
    at instantiateModule (/Private/astro/node_modules/vite/dist/node/chunks/dep-24daf00c.js:54348:28)

astro-i18next version: latest
astro version: latest
OS: mac
Browser: chrome

My config:
const config: AstroI18nextConfig = {
  defaultLocale: "en",
  locales: ["en", "de"],
  load: ["server", "client"],
  i18nextServer: {
    debug: false,
    backend: {
      loadPath: './public/locales/{lng}.json',
      addPath: '/locales/{lng}/{ns}.missing.json',
    },
    interpolation: {
      prefix: "{",
      suffix: "}",
    }
  },
  i18nextClient: {
    debug: false,
    backend: {
      loadPath: '/locales/{lng}.json',
      addPath: '/locales/{lng}/{ns}.missing.json',
    },
    interpolation: {
      prefix: "{",
      suffix: "}",
    }
  }
};

I got the same issue and downgrading Astro doesn't seem to help. I've tried building old commits which built successfully before as well, maybe a Vite update is causing this?

I dont know, actually i have not made any update. what exactly did you do to make it work again?

I downgraded to astro 2.2.2 so its not working with astro 2.3.0

Downgrading Astro to 2.1.3 made it work for me!


Fix #17549: Add yii\db\ExpressionInterface support to SimpleConditionBuilder

Q
A

Is bugfix?
✔

New feature?
✔

Breaks BC?
❌

Tests pass?
✔

Fixed issues
#17549

Merged. Thank you!


typo: Double word "about"

Fixed sibling "infornation" -> "information" at the same time

@nschonni : Thanks for your contribution! The author, @MightyPen, has been notified to review your proposed change.

@nschonni Absolutely right.  Thanks much for this fix.
#sign-off


Trigger build

Signed-off-by: Kevin Cormier<EMAIL_ADDRESS>

/hold

Do not merge until after https://github.com/openshift/release/pull/24116 is merged

/cc @jamestalton @chenz4027

/unhold


Documenting the security process for Notation

Can you please draft/adopt an explicit security policy that is written down? I can recommend the one for containerd [1] which is pretty light weight.
I do see that you have a way for users to report [2], but would be good to add details. Apologies if it is already there and i can't find it.
[1] https://github.com/containerd/project/blob/main/SECURITY.md
[2] https://github.com/notaryproject/notation/security/advisories/new

I see at least one GH advisory here:
https://github.com/notaryproject/notation-go/security/advisories/GHSA-87x9-7grx-m28v

The draft security policy PR is available at https://github.com/notaryproject/.github/pull/5

thanks @toddysm !

now that it is up. let me close this.


lsp_finder loading animation stuck

Description
When I using clangd with big package such as libtorch, if I move cursor to type alias such as int64_tor size_t, loading bar will stuck at ('█▁▁▁▁▁▁▁▁▁',) and took several seconds to load. I have set finder_request_timeout = 2000 but doesn't help.
In my case, It takes around 5 seconds to load (longer than finder_request_timeout), then lsp_finder window will appear. But if I switch window (<c-w>*2) during it processing, the preview window will stay (won't disappear unless move cursor to it and quit).
Details

Reproduce

nvim test.cpp
You need a big package to reproduce such as libtorch
Move cursor to a variable typed int64_t and run Lspsaga lsp_finder

Environment

nvim --version output:
NVIM v0.8.0-dev-1071-gf98cff957
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Operating system:
Ubuntu 22.04
Terminal
kitty 0.26.2 created by Kovid Goyal

okay . I will take a look at it. thanks for report.

okay . I will take a look at it. thanks for report.

Thanks, If you need any debugging files or logs, please feel free to contact me.


Add logs and restrict drone movements to area of interest

Drones now move only in area of interest
Add log handling functions
Initial log generation for different type of logs

In #6


User-Specific Task Visibility

[x] Implement logic to show tasks based on the user’s level of context.
[x] Apply shadow effects to tasks that are not available for the specific user.

Shadow example:

I'm interested

https://github.com/w3b3d3v/web3-bootcamp-platform/pull/229

It will be resolved in this PR


[updatecli] Update Helm Chart version to 1.40.2

! Experimental project
This pull request was automatically created using olblak/updatecli
Based on a source rule, it checks if yaml value can be update to the latest version
Please carefully review yaml modification as it also reformat it.
Please report any issues with this tool here

Duplicated with #281


StackBlitz server crashed

Describe the bug
crash app permanentely
Link to the blitz that caused the error
https://stackblitz.com/~/github.com/AlenaRudenko/chat-app
Steps to reproduce
go to stackblitz, and it`s crash after cleanoing browser history and app cashe
Expected behavior
appearing my project
Parity with Local

[X] I have run the project in my local machine and I could not reproduce the issue.

Screenshots
No response
Platform
Version = 1.84.0
Hash = 5b71eec7e7e29934191def5462461888ab204c32
WebContainer = 6854296d

Browser name  = Chrome
Full version  = <IP_ADDRESS>
Major version = 120
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 81607115,
  "usedJSHeapSize": 62868355,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}

Additional context
Error: Cannot find module '/usr/share/stackblitz/out/server-main.js'
at Module._resolveFilename (https://chatapp-bslw.w-credentialless.staticblitz.com/blitz.6854296d.js:54:12642)
at Module._load (https://chatapp-bslw.w-credentialless.staticblitz.com/blitz.6854296d.js:54:10056)
at Function.executeUserEntryPoint [as runMain] (https://chatapp-bslw.w-credentialless.staticblitz.com/blitz.6854296d.js:125:731)
at https://chatapp-bslw.w-credentialless.staticblitz.com/blitz.6854296d.js:318:166
at Object._0x491215 (https://chatapp-bslw.w-credentialless.staticblitz.com/blitz.6854296d.js:318:186)
at _0x178083 (https://chatapp-bslw.w-credentialless.staticblitz.com/blitz.6854296d.js:350:54825)
at _0x67300a (https://chatapp-bslw.w-credentialless.staticblitz.com/blitz.6854296d.js:352:101553)
at _0x4c63d5.executeBootstrapper (https://chatapp-bslw.w-credentialless.staticblitz.com/blitz.6854296d.js:352:615891)
at _0x5c2ca6.startExecution (https://chatapp-bslw.w-credentialless.staticblitz.com/blitz.6854296d.js:371:3003)
at _0x5c2ca6.run (https://chatapp-bslw.w-credentialless.staticblitz.com/blitz.6854296d.js:371:1331) {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

(https://github.com/stackblitz/webcontainer-core/assets/89128807/8d90ed0d-fdfb-4177-bafc-4a43abee0179)

Hey @AlenaRudenko ! :wave:
I'm curious, do you also get this issue in incognito? Usually clearing the site data via:

Should be enough. You might also want to manually delete all IndexedDB databases for stackblitz.com if the above button didn't work.

I've been really struggling with the problem for two months now that stackblitz doesn't see the github branch in any way other than the master branch, or if I create this branch directly in stackblitz. If I clear the cache and clear the browser history, this occurs : thirst two screenshots.
Отправлено из мобильной Почты Mail.ru
вторник, 30 января 2024 г. в 13:41 +03:00 от @.***  @.***>:

Hey  @AlenaRudenko ! 👋
I'm curious, do you also get this issue in incognito? Usually clearing the site data via:
Should be enough. You might also want to manually delete all IndexedDB databases for stackblitz.com if the above button didn't work.
—
Reply to this email directly,  view it on GitHub , or  unsubscribe .
You are receiving this because you were mentioned. Message ID:  <stackblitz/webcontainer-core/issues/1311/1916560010 @ github . com>

Отправлено из мобильной Почты Mail.ru
вторник, 30 января 2024 г. в 13:48 +03:00 от алёна руденко  @.***>:

I've been really struggling with the problem for two months now that stackblitz doesn't see the github branch in any way other than the master branch, or if I create this branch directly in stackblitz. If I clear the cache and clear the browser history, this occurs : thirst two screenshots.
Отправлено из мобильной Почты Mail.ru
вторник, 30 января 2024г. в 13:41 +03:00 от  @.*** < @.*** >:

Hey  @AlenaRudenko ! 👋
I'm curious, do you also get this issue in incognito? Usually clearing the site data via:
Should be enough. You might also want to manually delete all IndexedDB databases for stackblitz.com if the above button didn't work.
—
Reply to this email directly,  view it on GitHub , or  unsubscribe .
You are receiving this because you were mentioned. Message ID:  <stackblitz/webcontainer-core/issues/1311/1916560010 @ github . com>


Should nothing from lit-html be in the export from lit-element?

So that slot fallback content still appears it's recommended to use nothing rather than '', undefined or null.
As this is will be commonly used should it be included in the re-export from lit-html?
i.e. Add it here: https://github.com/Polymer/lit-element/blob/a5af1e83587553ce414c5cb9ee16c1280e6c637f/src/lit-element.ts#L21
I'm not sure whether this counts as a directive or something so commonly used that it needs to be included for the same reasons that html is?

There's a bunch we could export from lit-html, but I think the current set is fine. Importing from lit-html works.


No realsense devices found for samples

Required Info

Camera Model
D415

Firmware Version
<IP_ADDRESS>

Operating System & Version
Linux (Ubuntu 16)

Kernel Version (Linux Only)
4.13.0-38-generic

Platform
PC

SDK Version
2

Issue Description
I am trying to set up my camera for the first time and play around with the samples.
I have build the SDK from source using: https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md
And can successfully view both the 2D and 3D streams on realsense-viewer and rs-capture.
However, when I try to run a sample, e.g. the or_pt web tutorial presented here: https://software.intel.com/sites/products/realsense/samples/md_samples_or_pt_tutorial_1_web_README_or_pt_tutorial_1_web.html
I get the message:
Error: Device is null. There are no RealSense devices connected.
Please connect a RealSense device and restart the application
Segmentation fault (core dumped)
The same happens when I try cpp-capture.
What is the problem here? Why would rs-capture be able to detect the camera but not cpp-capture?
Update: When I build the samples from source, I get the same complaint.

[Realsense Customer Engineering Team Comment]
hi @lasti15,
the or_pt web tutorial  is sample for libRealsense 1 and you are using libRealsense 2 now, so that sample is not working.

Are there not any equivalent or/pt modules in libRealsense 2? That seems like quite a downgrade?

[Realsense Customer Engineering Team Comment]
hi @lasti15,.
Our SDK is focused on providing the best depth data across multiple wrappers and operating systems. We wish to grow our open source community and encourage them to do something wonderful with our products. We have no plan to add middleware libraries to our product but we may partner with 3rd parties in the future.

[Realsense Customer Engineering Team Comment]
hi @lasti15,
do you need more support on this topic?


Add: Add Interpolate Hi-Speeds feature

Internally called lerp_hispeeds. The commits are a bit messy, so it might be good to squash.

fyi you should create branch for each PR, so you can make multiple PRs, no trouble around squash merging in my repo, etc. (I'll review later)


Us7.1 timeline nav

Allows for user accessibility input through arrow keys to manipulate the timeline without using a mouse.

Not properly formatted for a good merge into original repo.


How to refresh JSON cache?

Hi, I am using Haneke for caching remote JSON. Caching works well but when I change the remote JSON file and call fetch (multiple times) still get old data from cache. Is any way how to force the fetch to update the cache?
Thank you!
Michal

I would like something like this, is HanekeSwift the right choice for it?

Up !
I'm also interested by that. I want to refresh cache if there is network connection and just load it when there isn't.
Is this possible ?

It is related to #129 but I don't know if it was updated since

Maybe we can do that by using both NetworkFetcher<T> and DiskFetcher<T>


Add deflate codec

Hello everyone,
We've been using nvcomp's deflate decompression in https://github.com/pfizer-opensource/bigwig-loader to load data from a legacy genome track format and it would make distribution of our code a lot easier if kvikio would ship the deflate codec wrappers too.
This PR exposes nvcomp's deflate algorithm in kvikio and adds it to the nvcomp_codec tests.
Cheers,
Andreas

/ok to test

/ok to test

/merge


Corrected gcov additional argument variable name.

Fixes the '-a' switch (extra arguments to pass to gcov), which is currently not working due to a variable name mixup.

Nice catch! Thank you


Error: undefined method `build' for Dry::Logic::Rule::Predicate:Class

Getting below error with the latest k8s-ruby. I have also raised this issue in Dry logic but according to them the versions of dry-types and dry-logic  needs to be updated. Ref: https://github.com/dry-rb/dry-logic/issues/103
[2022-11-14T13:13:23+05:30] ERROR: Error: undefined method `build' for Dry::Logic::Rule::Predicate:Class
[2022-11-14T13:13:23+05:30] ERROR: Exception: NoMethodError
[2022-11-14T13:13:23+05:30] ERROR: Trace: /Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/dry-types-1.4.0/lib/dry/types/constraints.rb:20:in `block in Rule'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/dry-types-1.4.0/lib/dry/types/constraints.rb:19:in `each'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/dry-types-1.4.0/lib/dry/types/constraints.rb:19:in `map'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/dry-types-1.4.0/lib/dry/types/constraints.rb:19:in `Rule'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/dry-types-1.4.0/lib/dry/types/builder.rb:56:in `constrained'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/dry-types-1.4.0/lib/dry/types/core.rb:56:in `block in <module:Types>'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/dry-types-1.4.0/lib/dry/types/core.rb:55:in `each'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/dry-types-1.4.0/lib/dry/types/core.rb:55:in `<module:Types>'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/dry-types-1.4.0/lib/dry/types/core.rb:6:in `<module:Dry>'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/dry-types-1.4.0/lib/dry/types/core.rb:5:in `<top (required)>'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/dry-types-1.4.0/lib/dry/types.rb:207:in `require'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/dry-types-1.4.0/lib/dry/types.rb:207:in `<top (required)>'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/dry-types-1.4.0/lib/dry-types.rb:3:in `require'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/dry-types-1.4.0/lib/dry-types.rb:3:in `<top (required)>'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/k8s-ruby-0.12.0/lib/k8s/api.rb:3:in `require'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/k8s-ruby-0.12.0/lib/k8s/api.rb:3:in `<top (required)>'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/k8s-ruby-0.12.0/lib/k8s/api/metav1.rb:3:in `require'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/k8s-ruby-0.12.0/lib/k8s/api/metav1.rb:3:in `<top (required)>'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/k8s-ruby-0.12.0/lib/k8s/client.rb:11:in `require'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/k8s-ruby-0.12.0/lib/k8s/client.rb:11:in `<top (required)>'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/k8s-ruby-0.12.0/lib/k8s-ruby.rb:4:in `require_relative'
/Users/vjagdale/.rvm/gems/ruby-2.7.0/gems/k8s-ruby-0.12.0/lib/k8s-ruby.rb:4:in `<top (required)>'
/Users/vjagdale/workspace/train-kubernetes/lib/train-kubernetes/connection.rb:2:in `require'
/Users/vjagdale/workspace/train-kubernetes/lib/train-kubernetes/connection.rb:2:in `<top (required)>'
/Users/vjagdale/workspace/train-kubernetes/lib/train-kubernetes/transport.rb:1:in `require'
/Users/vjagdale/workspace/train-kubernetes/lib/train-kubernetes/transport.rb:1:in `<top (required)>'
/Users/vjagdale/workspace/train-kubernetes/lib/train-kubernetes.rb:19:in `require'
/Users/vjagdale/workspace/train-kubernetes/lib/train-kubernetes.rb:19:in `<top (required)>'

@Vasu1105 please open the PR again

@matt could you please let me know if should we have Gemfile. lock committed?  I am not sure because on each different ruby version the Gemfile.lock is different

fixed now I guess


helm version should be able to return only client version

Output of helm version: 2.11.0
Suppose you have an automatic way to install the helm client. You might want to test whether or not helm is installed with helm version, but this will exit non-zero because it also checks the server version which is not yet available. There should be client only version check.

Use helm version --client-only to check just the client version.

It's just helm version --client.


Error with get_complementary_idx_distance_decay

Hello @xiaochendu,
I encountered an error while running Si_111_5x5 tutorial and another system I'm working with (using Tersoff potential). The GaN tutorial seems to be working. The error appears randomly after 30-100 sweeps on multiple machines.
File "/home/barbosa/softwares/surface-sampling/mcmc/mcmc.py", line 380, in run
sweep_result = self.sweep(i=i)  # TODO change to .step
^^^^^^^^^^^^^^^
File "/home/barbosa/softwares/surface-sampling/mcmc/mcmc.py", line 280, in sweep
accept = self.step_canonical(iter_num=run_idx)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/barbosa/softwares/surface-sampling/mcmc/mcmc.py", line 225, in step_canonical
event = Exchange(self.surface, proposal, criterion)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/barbosa/softwares/surface-sampling/mcmc/events/event.py", line 132, in init
self.action = self.proposal.get_action()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/barbosa/softwares/surface-sampling/mcmc/events/proposal.py", line 163, in get_action
site1_idx, site2_idx, site1_ads, site2_ads = get_complementary_idx(
^^^^^^^^^^^^^^^^^^^^^^
File "/home/barbosa/softwares/surface-sampling/mcmc/slab.py", line 202, in get_complementary_idx
site1_idx, site2_idx = (
^^^^^^^^^^^^^^^^^^^^
File "/home/barbosa/softwares/surface-sampling/mcmc/slab.py", line 203, in
random.choices(curr_ads[x], weights=w, k=1)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/barbosa/miniconda3/envs/vssr/lib/python3.11/random.py", line 509, in choices
raise ValueError('Total of weights must be greater than zero')
ValueError: Total of weights must be greater than zero

Hi @m-barbosa, thanks for posting this issue.
Can I confirm that you are using the latest version on master?
It seems like one of weights1 or weights2 sums to 0. I'm curious what type1, type2, weights1, weights2 are at here?
https://github.com/learningmatter-mit/surface-sampling/blob/2b5f8a16647f3a6d69d39bf872c9e36220bde181/mcmc/slab.py#L185-L186
If you can run the code again, set the logger to DEBUG: logger.setLevel(logging.DEBUG) at the start of the Jupyter notebook and add
logger.debug("weights1 %s, weights2 %s", weights1, weights2)

to mcmc/slab.py to log the weights.

Yes, I'm using the latest version. Here's the output of the log file
11:26:32 - mcmc.slab | DEBUG: current ads {'O': [11, 18, 39], 'None': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 40, 41, 42, 43]}
11:26:32 - mcmc.slab | DEBUG: in `get_complementary_idx` using per atom energies
11:26:32 - mcmc.slab | DEBUG: per atom energies are [  0.      0.      0.      0.     46.833  45.035  43.834  41.838  39.846
  36.847  35.665  32.855  31.54   28.863  27.76   24.871  23.785  20.395
  15.897  16.747  15.767  10.889   7.978   4.904   3.849   0.907   0.
   3.088   2.848   7.701   9.535  13.878  16.785  19.077  23.126  24.059
  27.953  29.623  31.775  33.061  35.379  37.061  40.105  42.062  45.225
  47.06   50.575  52.023  56.569  58.973  62.865  65.915  71.755  71.059
  75.448  77.06   81.482  83.06   84.271  85.063  88.397  89.068  94.515
  96.119 101.405 103.08  106.655 109.085 111.414 113.089 117.209 119.122
 122.645 125.103 127.995 130.362 134.385 136.372 139.239 141.122 144.747
 148.535 151.355 153.135 153.137 154.142 166.173 167.175 170.18  171.183
 176.193 175.191 182.184 181.203 188.219 187.216 191.225 191.225 195.235
 196.238 201.25  202.253 203.256 206.265 211.277 212.281 215.289 214.288
 213.289 222.311 225.32  225.321 229.332 230.337 233.345 233.349 237.359
 237.363 238.369  54.845  54.837  51.842  48.905  46.833  45.035  43.834
  41.838  39.846  36.847  35.665  32.855  31.54   28.863  27.76   24.871]
11:26:32 - mcmc.slab | DEBUG: temperature is 0.1
11:26:32 - mcmc.slab | DEBUG: boltzmann weights are [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 0.
 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]
11:26:32 - mcmc.slab | DEBUG: Length of curr_ads[type1]: 3
11:26:32 - mcmc.slab | DEBUG: Length of weights1: 3
11:26:32 - mcmc.slab | DEBUG: weights1 [0. 0.  Can you add a small value to:
https://github.com/learningmatter-mit/surface-sampling/blob/2b5f8a16647f3a6d69d39bf872c9e36220bde181/mcmc/slab.py#L88
,such that boltzmann_weights can't be 0?, e.g.,
boltzmann_weights = softmax(np.array(per_atom_energies) / temperature) + 1e-3

Also in my experience, energy-based weights didn't help much with sampling. I only added them to the tutorial for demonstration purpose. You can turn off energy-based weights with
sampling_settings = {
    "require_per_atom_energies": False,
}

I disabled the energy-based weights, and it seems like the code is running without any other problems. Thanks for your help @xiaochendu.


PRACK interoperability not working

Hi,
I have seen that whenever there is a PRACK exchange , the ACK generated by Drachtio after receiving the 200OK for the INVITE, contains the same CSeq as the PRACK. This is incorrect since, as per 3261, the Cseq in the ACK must be the same as the one in the corresponding INVITE. This causes interoperability to break whenever PRACKs are involved.
Regards

Hi Dave
sorry for the delay. I see it is already merged. I tested with main and it works fine. The CSeqs are now correct and there is no interoperability issues with the PRACK.
Thanks


fix: table formatter with header selected

👀 PR includes

🎨 Enhance

[ ] Code style optimization
[ ] Refactoring
[ ] Change the UI
[ ] Improve the performance
[ ] Type optimization

🐛 Bugfix

[x] Solve the issue and close #1770

🔧 Chore

[x] Test case

📝 Description
🖼 Screenshot

Before
After

❌
✅

🔗 Related issue link

🔍 Self-Check before the merge

[ ] Add or update relevant docs.
[ ] Add or update relevant demos.
[ ] Add or update test case.
[ ] Add or update relevant TypeScript definitions.

:tada: This PR is included in version @antv/s2-v1.31.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Clarity on link between pick-up delivery mode and retail channel assignment

The documentation is not clear on the correct requirements for assigning the retail channel to pick-up delivery modes. And I cannot see this information in any other docs pages.
Following confirmation via Yammer, for 'pickup' delivery modes, the retail channels assigned to that mode of delivery should be locations where that pickup option is available for the pickup. It should not be assigned to channels where the 'order can be placed'.
So for example, if you have an online store and a retail store. And the retail store is a pick up location, the only channel that should be assigned to the pickup mode of delivery is the retail store, and not the online store.
See yammer thread: https://www.yammer.com/dynamicsaxfeedbackprograms/threads/1206848489422848
This is quite important as it enables a number of business scenarios and is different to the 'norm' that we are used to when assigning delivery methods.
Other possibly related pages:
https://docs.microsoft.com/en-us/dynamics365/commerce/customer-orders-overview
https://docs.microsoft.com/en-us/dynamics365/commerce/configure-call-center-delivery

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

ID: 82b27783-8930-ee46-f914-51a264f7c465
Version Independent ID: 1692446e-7e56-b710-11fb-933dadb32d41
Content: Enable multiple pickup delivery modes for customer orders - Commerce | Dynamics 365
Content Source: articles/commerce/multiple-pickup-modes.md
Service: dynamics-365-commerce
Product: ****
Technology: ****
GitHub Login: @hhainesms
Microsoft Alias: hhaines

@andyNewnham, thanks for the feedback. @hhainesms, please review.

Bug 585608 logged to track this issue.

Topic will be updated later today. Thanks.


[Bug]: Zone auto height is broken

Is there an existing issue for this?

[X] I have searched the existing issues

Description
Zone auto height is broken

Steps To Reproduce

Add a button followed by an input below it
Add a statbox to create a new zone and another below it as seen in the video
Observe height of the two zones

Public Sample App
No response
Environment
Production
Severity
High (Blocker to building or releasing)
Issue video log
https://www.loom.com/share/c2f8c03f23f648a1aa1bc0c01566ae14
Version
cloud

Closing as fixed.


Becomes Noisy after xrun

I've noticed that the plugin "switches" from a low noise, full bass sound, to a high noise trebly sound after an xrun occurs sometimes. This seems to be a permanent change as long as the plugin is still running. turning it off and on, such as with the "power" button in the Guitarix rack will reset it to normal. In jalv, I need to destroy the instance and reinitialize it to get it to reset.

Which sample rate / frame size do you use? I can't reproduce the "high noise trebly sound after an xrun". But I've implemented a "clear state" func now, when the plug is bypassed. So, when that happen again, in jalv, and you can't reset it to normal by bypass it, there must be a other source for the issue then the internal filter (the resampler comes in mind then).

I was using 96000 Hz at 128 samples yesterday. I switched to 64 samples today to get the instability to show up faster. Still, it takes a while before it happens, and I had to open up the Convolver in Guitarix to increase the xruns and play for awhile before it would happen. Sounds like some kind of bi-stable filter. I can see in the code that you are using an IIR filter, maybe it has an instability? It's not easy to make switch, so it may be hard to pin down.

A little Off topic, but I noticed that the  rumor.dsp file mentions that Rumor is based on the Ruiner circuit, but you also have a Ruiner plugin built into guitarix, and it isn't anything like the Rumor plugin. Or, at least, the Runier plugin is much lower gain for some reason. Are they supposed to both be based on the same circuit?

So I've switched the filter type to a direct form Biquad Filter. That should stabilise the Filter.
Yes, it's based on the same circuit, just that with the Rumor I do a new interpretation for the non-linear part.
I think this one cover the behave of the original a bit better.

New version still changes after a lot of xruns, but isn't noisy, just trebly. I turned off all my CPU affinity stuff, and couldn't reproduce it, so maybe too much of a niche case to keep pursuing.

The question now is, did it switch back to normal when you switch it off/on (bypass). If not, then it isn't the filter which explode, but some side stuff.

I did a checkout of  https://github.com/brummer10/Rumor/commit/27f1626899de6fb57caa158a450d5e4c1c70f224 and recompiled. Then I ran the standalone LV2 in jalv overnight in an isolated CPU core, which is what first caused the issue. When I just tested it, there was no sound at all. I hit the bypass switch and could hear the clean bass tone, and then hit the bypass switch again and the normal, distorted tone came on. So not the same as before, but does suggest that the reset from the bypass switch fixes something. I'll leave it again overnight and see what happens, then maybe try it with the latest commit.
Merry Christmas Hermann

The second overnight test went the same as the first, no sound until turning the effect off with the bypass switch, then normal clean sound and normal distorted sound when effect switched back on. I've recompiled with the latest commit, and will try again.

So it's clearly the filter which sokes up. Unfortunately I've no idea why, or how that could happen. I could implement vectorisation for the filter, but I guess, for a isolated CPU core that wouldn't gain any improvement.
Seems to me like a stack compromising thing which I don't understand.

Tried it with the latest commit, and got the same results. I'll turn off the CPU isolation stuff and try again. Seems like leaving it overnight is the only reliable way to get the failure mode to occur when using the standalone setup with jalv. We'll see if that's true with normal CPU usage.

OK, got the same result again without any CPU isolation. I'll try running Guitarix with no plugins overnight and see if it loses sound and needs to be reset just as a control to be sure its something specific to Rumor.

Okay, I guess I've found the culprit. Seems that this filter have a problem with denormals. I've implemented a protector now.

mmm, last commit still break after 10 hours. Just started a new try with a slightly change, will commit it if it hold 10 hours. :)

The test with just Guitarix was still working fine after sitting overnight, as you probably guessed.
I'm glad you were able to reproduce the issue.

I'm slowly getting somewhere. It seems that the low-pass filter used before downsampling is the culprit.
I've implemented a printout function to check the content of the internal buffers after the plug becomes silent. I found values of
610055110715593,875000 in the lowpass buffer, were it should be zero.
I changed the filter order to 4. now and started a new check to see how the buffer beehive. So far it looks good, as the content stay at zero when the plug idle. Now give it some hours. If it works I'll push a update to the repository.

So here we go.
Thanks for pointing me to the issue and, for your continuous testing.

Seems to be working now. Thanks Hermann.


Build Windows binaries in CI

Followup from https://github.com/spacchetti/spago/issues/47#issuecomment-448087196: we should build binaries for Windows in CI (with AppVeyor or Azure Pipelines), and upload them to GitHub releases.
(Or if we want to have it even more awesome: add a way to install them with npm)

Oh cool! This is very relevant: https://twitter.com/handyhaskell/status/1077208322527424517 (links to here)


Troubleshooting Persistent Bottom Navigation Bar Issues with GetX in Flutter

I am using presistent bottom navigation bar but i am naviagte to another screen using Getx then bottom navigation bar is disable and i am using naviagtor o naviagte another page then its work correctly .

Add more context and code


feature: run on docker

run on docker container
update README file

What is the usecase for this?  It is pretty easy to install without Docker

Well, some project are in docker stack already and someone may want to join it to their existing docker stack. So the use case is to give people alternative on how to run it and utilize the project in a ready-state.


cleanup: one uuid library to rule them all

Currently there are 5 uuid implementations in the go.mod file (of which 2 are indirect). We should try to use the same implementation everywhere

closed by #541


fix: Reindeer pet perks changes & GDrag lore

Description
Fixed lore of Golden Dragon Pet
Fixed lore of Rock Pet
Updated perks for Reindeer pet
Examples

Before

After

Is this PR depending on #1917 thanks to Reindeer's UKNOWN: fishing_speed?


provide auto-import for sendError

Environment

Operating System: Darwin
Node Version:     v16.13.2
Nuxt Version:     3.0.0-rc.2
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      meta, css, modules
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

Reproduction
N/A
Describe the bug
sendError (from h3) is not globalised.
Additional context
N/A
Logs
N/A

This is now done.


Port Nix Pills in to a document produced by Nixpkgs

Issue description
@lethalman gave me permission to incorporate the nix pills in to a document produced by nixpkgs and on the website.
This should probably be its own document.
People who have offered to help write docbook after I make a skeleton to work from:

@disassembler (disasm on irc)
@ankhers
@moretea

(thank you by the way)
Todo:

[x] http://lethalman.blogspot.it/2014/07/nix-pill-1-why-you-should-give-it-try.html
[x] http://lethalman.blogspot.it/2014/07/nix-pill-2-install-on-your-running.html
[x] http://lethalman.blogspot.it/2014/07/nix-pill-3-enter-environment.html
[x] http://lethalman.blogspot.it/2014/07/nix-pill-4-basics-of-language.html
[x] http://lethalman.blogspot.it/2014/07/nix-pill-5-functions-and-imports.html
[x] http://lethalman.blogspot.it/2014/07/nix-pill-6-our-first-derivation.html
[x] http://lethalman.blogspot.it/2014/07/nix-pill-7-working-derivation.html
[x] http://lethalman.blogspot.it/2014/08/nix-pill-8-generic-builders.html
[x] http://lethalman.blogspot.it/2014/08/nix-pill-9-automatic-runtime.html
[x] http://lethalman.blogspot.it/2014/08/nix-pill-10-developing-with-nix-shell.html
[x] http://lethalman.blogspot.it/2014/08/nix-pill-11-garbage-collector.html
[x] http://lethalman.blogspot.it/2014/08/nix-pill-12-inputs-design-pattern.html
[x] http://lethalman.blogspot.it/2014/09/nix-pill-13-callpackage-design-pattern.html
[x] http://lethalman.blogspot.it/2014/09/nix-pill-14-override-design-pattern.html
[x] http://lethalman.blogspot.it/2014/09/nix-pill-15-nix-search-paths.html
[x] http://lethalman.blogspot.it/2014/11/nix-pill-16-nixpkgs-parameters.html
[x] http://lethalman.blogspot.it/2014/11/nix-pill-17-nixpkgs-overriding-packages.html
[x] http://lethalman.blogspot.it/2015/01/nix-pill-18-nix-store-paths.html
[x] http://lethalman.blogspot.it/2015/08/nix-pill-19-fundamentals-of-stdenv.html

Is there a standard format for this sort of thing? Where exactly would it go?

@ixxie I am pretty sure this issue is about making a format for all this. From what Graham said there, it looks like this won't be going in any of the manuals and will be it's own thing.
As for where it should go, I think having either a 'Getting Started' or 'Tutorials' section on nixos.org/nix would be fine. Stuff has to be made before we can worry about where to put it though.

@nixy - I see, I thought it was specifically about Nix Pills. I have been craving a tutorials / cookbook section which is more comprehensive. Perhaps @mbbx6spp and @domenkozar can contribute material from their cookbooks too.

Regarding format, since the manuals are hierarchical and linear, perhaps a cool thing would be to have CMS style searchable collection of tagged recipes / tutorials ? Then if I searched for, say, "installing unstable packages in stable", I would get all the relevant entries in full and could scroll through them until I find what I need.

I've started a conversion here: https://github.com/grahamc/nix-pills This project should not get bogged down in a discussion on how NixOS does documentation. This is going to be maintained as a separate document, and linked on the website as something like "read the nix pills."

List of Elements: http://tdg.docbook.org/tdg/5.2/chunk-part-d6252e15351.html
Tracking Issue: https://github.com/NixOS/nixpkgs/issues/27908

INSTRUCTIONS
When starting a new Pill, comment on this issue which one
you're doing. If you need help, ask there. If you make progress but
don't finish in one go, make a PR anyway! I'm trying to not edit
things as I go, in order to not get bogged down.
cc @disassembler @ankhers @moretea
How I've built and tested:
nix-build && firefox result/share/doc/nix-pills/index.html
Emacs config for a nice docbook experience, if you happen to use emacs:
let
 pkgs = import <nixpkgs> {};
 inherit (pkgs) emacsPackagesNg docbook5 writeText;

 schemas = writeText "schemas.xml" ''
   <locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0">
     <documentElement localName="section" typeId="DocBook"/>
     <documentElement localName="chapter" typeId="DocBook"/>
     <documentElement localName="article" typeId="DocBook"/>
     <documentElement localName="book" typeId="DocBook"/>
     <typeId id="DocBook" uri="${docbook5}/xml/rng/docbook/docbookxi.rnc" />
   </locatingRules>
 '';

in emacsPackagesNg.emacsWithPackages (epkgs: [
 (emacsPackagesNg.trivialBuild {
   pname = "nix-docbook-mode";
   version = "1970-01-01";
   src = writeText "default.el" ''
     (eval-after-load 'rng-loc
       '(add-to-list 'rng-schema-locating-files "${schemas}"))
     (global-set-key (kbd "<C-return>") 'nxml-complete)
   '';
 })
])

Then you can use the keys:

C-c C-b to finish & close a tag
C-c C-f to close a tag
C-return to auto-complete a tag or attribute.

Thanks for starting this! I will grab pills 3 and 4 to start.

Oooh, nice! Thank you @lethalman !

I'll grab 5 and 6 for now :)

I'll take 7.

Alright so some notes now that I ported the fifth pill:

Some variables were quoted ("a"); I removed quotes and added literals to make style consistent.
I followed @grahamc by using literals for code but I did noticed there are  tags; maybe the literals should be replaced at some point.
Some paragraphs were ambiguous in that there was a line break in the middle without a gap line. In those cases I removed the break since they seemed like one paragraph rather than two.
The link to the functions section in the manual was broken; I had to guess the section intended in the post.

I'll try and do the next one this week.

What about <code> vs <programlisting>?

Yep, a good point to cover. <code> is only appropriate for code fragments, like x: x * 2. For longer blocks of code, programlisting is more appropriate.
That said: we've got a big job ahead of us, and a lot of new tags in docbook that we could discover throughout. I'm not too worried about getting the semantics perfect on the first pass.

Another one I was just reminded of is <command>.

There's also lots to mark up on screen listings: e.g. https://github.com/lheckemann/nix-pills/blob/5f5e3093c478a8bb744ec7ae2c02b77a774b7ec4/pills/07-working-derivation.xml#L61-L65

Oh jeeze, while all that is probably best, I don't think it is a requirement for merging a PR which is otherwise porting a pill. We can always go back and improve them :P

@grahamc so instead of <screen>s one can use <programlisting>s to put multiline code blocks in the file? It would certainly make it easier for future editing.

It depends on what you're actually putting in. You should use <screen> if you're putting what a user might see on the screen and <programlisting> if it's code.

FWIW I put the screen contents in separate files because of difficulties with whitespace in screens.

I didn't realise that was possible (and really should have, probably). Good idea!

I can grab 8 and 9.

10 and 11

Hey everyone,
I've been hit by a bad flare-up of my RSI and haven't been able to contribute or review much. I will be back to this soon, but must take a few more days rest to recover. Your work has been incredible and inspiring, thank you so much for making this so fast.
Graham

Get well @grahamc! Remember to squeeze a rubber egg or something.

I'll take 19 and 18. Get well @grahamc!

And 17 and 16 as well :)

I just merged all the outstanding PRs, thank you so much. Eight more to go! WOW.

Please send future PRs to http://github.com/nixos/nix-pills
I've made a hydra jobset: https://hydra.nixos.org/jobset/nix-pills/master
I've also made a PR to put the pills on the website: https://github.com/NixOS/nixos-homepage/pull/153
We're in the home stretch. Unfortunately porting a pill is quite typing-heavy, and am not ready to do that yet.

Got 15 and 14

FYI I checked some boxes for things I saw PRs for.

I'll grab 12 and 13 too.

We're done 😻 nice work, everyone! Thank you so much! Now to get it on the website :)

Great job - sorry I couldn't help and thanks to everyone taking part - every improvement to documentation is high appreciated.


[material-ui][docs] Rename function

I found the easter egg Matt left us to find. Haha

[x] I have followed (at least) the PR section of the contributing guide.

Hey @MarcGoekce, can you provide more feedback on why this change is needed? I don't understand what you mean by:

I found the easter egg Matt left us to find. Haha

I copied parts of the example from the docs and was confused when my IDE couldn't autocomplete the function allyProps. That caused me 30 seconds of brainpower to understand that it's a 1 and not a lowercase L.
When zoomed in, the difference is obvious, but in size 12 it's easy to overlook.

Thanks for the clarification. "a11y" is a common abbreviation for "accessibility". We'll keep as is. Cheers.

Oh now I understand. That's the first time I see the abbreviation for accessibility used in code. Now I feel silly for calling it allyProps.
Thank you for the clarification.


Add editorial checks through Vale

Description

This PR adds a number of new editorial checks through Vale. It also wraps the existing checks through Alex.js. Vale is installed as a Python-based Poetry dev group dependency and used through pre-commit for this project.
Note: I found that in order to have this run as a pre-commit check with warnings included I needed a short script, which has been added as a Poe the Poet task. It seems this goes against the designs of Vale's intention (see https://github.com/errata-ai/vale/issues/575). Just the same, it felt to me important that warnings be enough to trigger a pre-commit failure.
Closes #8
What is the nature of your change?

[ ] Content additions or updates (adds or updates content)
[ ] Bug fix (fixes an issue).
[x] Enhancement (adds functionality).
[ ] Breaking change (these changes would cause existing functionality to not work as expected).

Checklist
Please ensure that all boxes are checked before indicating that this pull request is ready for review.

[x] I have read the CONTRIBUTING.md guidelines.
[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own contributions.
[x] I have commented my content, particularly in hard-to-understand areas.
[x] I have made corresponding changes to related documentation (outside of book content).
[x] My changes generate no new warnings.
[x] New and existing tests pass locally with my changes.
[ ] I have added tests that prove my additions are effective or that my feature works.
[x] I have deleted all non-relevant text in this pull request template.

Thanks @falquaddoomi ! I've made a change to enable vale to sync before checking work through pre-commit, and will now merge.

Thanks again @falquaddoomi !


firefox{,-bin}: add 'mesa', for wayland/drm

Motivation for this change
Woot! This puts to bed the mystery of why our Firefox builds (firefox, firefox-bin, latest.firefox-nightly-bin, etc) all report wayland instead of wayland/drm under about:support.
From the source here https://searchfox.org/mozilla-central/source/widget/gtk/DMABufLibWrapper.cpp#157 I enabled logging, ran Firefox and determined it was lacking libgbm which I know comes from mesa.
My understanding is that this should provide significant benefits, and maybe have implications for enabling some perf gains that were meant to be enabled with the previous vaapi-enablement.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

I very strongly suspects that this also "fixes" firefox-nightly-bin, but I haven't had time to confirm yet.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/hardware-acceleration-on-firefox/7947/11


Add a rough and ready indication of which tests failed

Stefan,
I got annoyed not having a summary of which tests failed at the bottom, so added one.
It may be better in the long term to build/hook into a unit test framework that supports test suites and reporting, and all the other xUnit like features, but my tcl foo is not strong enough for that

Thanks @nhemingway - I've wanted to get in some kind of functionality like this for a long time! xUnit sounds like a great future improvement. Not wure what XML support looks like in tcl, but at least the XML format in xunit is not too complex, so it should be doable.
Sorry it took me so long to get this PR in. I was extremely busy before summer, and then I went on vacation for like 4 weeks.


Use primary screen to calculate visible positions

The NSScreen.main! doesn't refer to the primary screen which causes the visiblePosition isn't correct if we check it in the app which is running on the secondary screen. The results from getAllDisplays() method are different between screens, but they should be the same, no matter where the app is located(on the primary or secondary screen). Using NSScreen.screens[0] guarantees the results of getAllDisplays() method are always consistent as  NSScreen.screens[0] always refers to the primary screen.

LGTM


No error returned by dump.Exec() if pg_dump binary not found

As in the title.
Running the following code, based on the example:
func backupPostGres(host, user, pass, db, backupDir string, port int) error {
	filename := "backup.tar"
	dump := pg.NewDump(&pg.Postgres{
		Host:     host,
		Port:     port,
		DB:       db,
		Username: user,
		Password: pass,
	})
	dump.SetPath(backupDir)
	dump.SetFileName(filename)
	res := dump.Exec(pg.ExecOptions{StreamPrint: false})
	if res.Error != nil {
		return res.Error.Err
	}
	fmt.Println(res.Output)
	return nil
}

Yielded no errors and no log output.
When the binary is present and returns an error, the above code  simply returns the error message exit status 1. It would be worth including wrapping the error with Error.CmdOutput and logging this in the example. e.g:
	if res.Error != nil {
		err := fmt.Errorf("%w: %s", res.Error.Err, res.Error.CmdOutput)
		log.Print(err)
		return err
	}

I have add check before dump/restore: https://github.com/habx/pg-commands/pull/33


Document docker.cpu.limit metric

What does this PR do?
Adds documentation for the docker.cpu.limit metric that was introduced in https://github.com/DataDog/datadog-agent/pull/5716
Motivation
When monitoring CPU usage in ECS the docker.cpu.usage metric can be nonsense unless it's combined with docker.cpu.limit, but that metric isn't documented anywhere, so I only figured it out by reading the docker check implementation.
Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached

Happy holidays everyone! Any Datadog folks working so we can get this moving along?


jupyter notebook throws error on startup if pythonw.exe is used

On windows 10 an error is still thrown if python.pythonPath in settings.json is set to pythonw.exe instead of python.exe.  The error is:
Error code from jupyter:<PHONE_NUMBER>
This issue was discussed here last year: #4424
But this behavior contradicts recommendations in many other places that pythonw.exe should be used on windows to suppress dialog boxes.

Thanks for the issue @rholland. I've been trying to reproduce your issue but I can't. I'm using pythonw.exe on miniconda and it runs normally.
What version of jupyter are you using? And what kind of python (Are you using Conda, miniconda, etc)?

Dup of #648, #8505, #2994

@rholland
Thanks for reporting this issue, please use python.exe instead of pythonw.exe. The w.exe is meant to launch a console application.


Rename 'FlatVariant' to 'FlatVariantCall'

Fixes https://github.com/cloudera/quince/issues/9

Thanks, @tomwhite!


cloud code error: Uncaught internal server error. init failed:TypeError: a.replace is not a function undefined

I am getting this error when trying to run multiple functions in my cloud code while migrating to a local parse-server instance.  It was working fine on the parse.com hosted setup.
I've narrowed it down to being in the jrsrasign.js file, however it really is not easy to track down because it's all minimized.
Has anyone encountered this and know what is going on?  I explicitly tracked it down to this method for at least one of the instances (Layer initialization) I'm seeing this error:
var signer = require("./node_modules/jsrsasign/lib/jsrsasign.js");
signer.jws.JWS.sign('RS256', header, claim, this.privateKey);

I am also getting this same error (a.replace is not a function) when calling my other cloud functions that all happen at launch, and those are querying on Parse objects.
Any ideas?

I think you should adjust your usage example to match the npm module instructions:  https://www.npmjs.com/package/jsrsasign
var r = require('jsrsasign');
r.jws.JWS.sign(....

I don't think this is related to parse-server itself, but your usage of jsrsasign.

I just tried that, after installing jsrsasign via npm, and I'm still getting the same error, although this time it says "r.replace" instead of "a.replace".

@astanton I'm having the exact same issue. Did you ever figure this one out?

@jessalfredsen I did solve it but I cannot remember 100% what the culprit is.  I believe it had to do with an object being passed in earlier on instead of the expected string object.  I believe it had something to do with a parameter being passed into a request in a third party library I was using, OpenTok, when creating a new session.
Sorry it was a while ago so I just don't remember exactly what the issue was.

@astanton Ok, thanks.. I'll continue to poke around.

@jessalfredsen did you find a solution to this? We are using jsrsasign as part of Layer authentication and have this same issue after migrating to Parse server.

@emkman we did manage to fix it, though I'm not sure our solution is applicable to everyone.
The issue was the way the private layer key was being read from the key file.
I changed
var privateKey = fs.readFileSync(process.cwd() + '/cloud/layer-parse-module/keys/layer-key.js')
to
var privateKey = fs.readFileSync(process.cwd() + '/cloud/layer-parse-module/keys/layer-key.js').toString();
and apparently the .toString() was all it needed.
Let me know if this works.

Great, thank you! Will try it out.
On Tue, Apr 26, 2016 at 1:15 AM, jessalfredsen<EMAIL_ADDRESS>wrote:

@emkman https://github.com/emkman we did manage to fix it, though I'm
not sure our solution is applicable to everyone.
The issue was the way the private layer key was being read from the key
file.
I changed
var privateKey = fs.readFileSync(process.cwd() +
'/cloud/layer-parse-module/keys/layer-key.js')
to
var privateKey = fs.readFileSync(process.cwd() +
'/cloud/layer-parse-module/keys/layer-key.js').toString();
and apparently the .toString() was all it needed.
Let me know if this works.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/ParsePlatform/parse-server/issues/662#issuecomment-214663782

--
Ethan Kravitz
CTO, Overnight
www.joinovernight.com


Add e2e tests for do payment in portalicious

AB#31974
Describe your changes
Adds 2 tests:

Successful payment
Payment Summary

Checklist before requesting a review

[x] I have performed a self-review of my code
[x] I have added tests wherever relevant
[x] I have made sure that all automated checks pass before requesting a review
[x] I do not need any deviation from our PR guidelines

Note for the reviewer:
When I started writing those tests the details from Figma and deliverables were a bit different and did not include this screen:

Should this also be validated in the payment flow or is this a case for different test?

RE: your note for the reviewer: Indeed the "View payment" page is in a separate PBI: https://dev.azure.com/redcrossnl/121 Platform/_workitems/edit/30647

I'll create a separate E2E tests and scenarios for this.


Fix test flakiness in StreamingPrivilegesHandlerTests

This PR improves speed and stability for StreamingPrivilegesHandlerTests by implementing a more efficient and flexible wait mechanism to allow the async tasks to do their work.
This is not fully controllable, but it has been proven to be quite reliable for us in other tests, and much better than waiting a set amount of time.
Before:

After:

100 runs:

Maybe it's worth executing in the CI many times to make sure they are not flaky anymore. 🤓

Maybe it's worth executing in the CI many times to make sure they are not flaky anymore. 🤓

mm yeah, although we don't have a way to run the tests manually on CI. I can add that that.


Panic upon exiting program if a recording is stored in a global variable

Describe the bug
If I store a recording as a global variable the program will panic upon exiting the program.
The following code
#include <rerun.hpp>

rerun::RecordingStream rec("test");

int main() {
    rec.spawn().exit_on_failure();
}

outputs the following when run:
$ RUST_BACKTRACE=1 ./panic_example
[2024-03-26T19:17:47Z INFO  re_sdk_comms::server] Hosting a SDK server over TCP at <IP_ADDRESS>:9876. Connect with the Rerun logging SDK.
[2024-03-26T19:17:47Z WARN  winit::platform_impl::platform::x11::xdisplay] error setting XSETTINGS; Xft options won't reload automatically
[2024-03-26T19:17:47Z INFO  winit::platform_impl::platform::x11::window] Guessed window scale factor: 1
[2024-03-26T19:17:47Z INFO  egui_wgpu] There were 3 available wgpu adapters: {backend: Vulkan, device_type: DiscreteGpu, name: "NVIDIA GeForce RTX 3060", driver: "NVIDIA", driver_info: "545.29.06", vendor: 0x10DE, device: 0x2487}, {backend: Vulkan, device_type: IntegratedGpu, name: "AMD Radeon Graphics (RADV RAPHAEL_MENDOCINO)", driver: "radv", driver_info: "Mesa 23.3.5", vendor: 0x1002, device: 0x164E}, {backend: Vulkan, device_type: Cpu, name: "llvmpipe (LLVM 16.0.6, 256 bits)", driver: "llvmpipe", driver_info: "Mesa 23.3.5 (LLVM 16.0.6)", vendor: 0x10005}
[2024-03-26T19:17:48Z INFO  tracing::span] perform;
[2024-03-26T19:17:48Z INFO  zbus::handshake] write_command; command=Auth(Some(External), Some([49, 48, 48, 48]))
[2024-03-26T19:17:48Z INFO  tracing::span] read_command;
[2024-03-26T19:17:48Z INFO  zbus::handshake] write_command; command=NegotiateUnixFD
[2024-03-26T19:17:48Z INFO  tracing::span] read_command;
[2024-03-26T19:17:48Z INFO  zbus::handshake] write_command; command=Begin
[2024-03-26T19:17:48Z INFO  tracing::span] socket reader;
[2024-03-26T19:17:48Z INFO  re_sdk_comms::server] New SDK client connected: <IP_ADDRESS>:51458
[2024-03-26T19:17:48Z INFO  re_sdk_comms::server] New SDK client connected: <IP_ADDRESS>:51470
thread '<unnamed>' panicked at library/std/src/thread/mod.rs:711:35:
use of std::thread::current() is not possible after the thread's local data has been destroyed
stack backtrace:
   0: rust_begin_unwind
             at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:597:5
   1: core::panicking::panic_fmt
             at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/panicking.rs:72:14
   2: core::panicking::panic_display
             at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/panicking.rs:168:5
   3: core::panicking::panic_str
             at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/panicking.rs:152:5
   4: core::option::expect_failed
             at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/option.rs:1988:5
   5: core::option::Option<T>::expect
             at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/option.rs:898:21
   6: std::thread::current
             at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/thread/mod.rs:711:35
   7: crossbeam_channel::context::Context::new
   8: crossbeam_channel::flavors::zero::Channel<T>::recv
   9: crossbeam_channel::channel::Receiver<T>::recv
  10: re_log_types::data_table_batcher::DataTableBatcherInner::flush_blocking
  11: core::option::Option<T>::map
  12: re_sdk::recording_stream::RecordingStream::set_sink
  13: rr_recording_stream_free
  14: _ZN5rerun15RecordingStreamD1Ev
  15: __run_exit_handlers
  16: exit
  17: __libc_start_call_main
  18: __libc_start_main_impl
  19: _start
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
[1]    317655 IOT instruction (core dumped)  RUST_BACKTRACE=1 ./panic_example

Desktop (please complete the following information):

OS: NixOS

Rerun version
rerun-cli 0.15.0-alpha.3 [rustc 1.74.0 (79e9716c9 2023-11-13), LLVM 17.0.4] x86_64-unknown-linux-gnu
Additional context
The cmake file fetches https://build.rerun.io/commit/43cbc67/rerun_cpp_sdk.zip

Can't repro this on Windows, will try on Mac soon.
Hypothesis: This is a problem of cleanup order between Rust and C++
No conclusive evidence for this yet, but we know that if we destroy the object before exiting main (put it into a unique_ptr) then we don't crash.

This looks like a duplicate of

https://github.com/rerun-io/rerun/issues/5260


[BEAM-7390] Add groupintobatches code snippets

Add GroupIntoBatches code snippets.
R: @aaltay
R: @rosetn
Staged: http://apache-beam-website-pull-requests.storage.googleapis.com/12377/documentation/transforms/python/aggregation/groupintobatches/index.html

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

I don't know if it's related to other transforms, maybe GroupByKey? But I don't know if it's related enough. What do you think?

Yeah, I think you're right. Okay, LGTM. @aaltay


[BUG] turkish123 can't display episodes

Describe the bug
turkish123 can't display the episodes, not sure why.
Expected behavior
displays the episodes list.
Screenshots
https://user-images.githubusercontent.com/96393348/223499974-eadb6da9-855f-4478-bb34-db59c475c408.mp4
Error
https://turkish123.a/
Error: [Errno 11001] getaddrinfo failed
 Please open an issue if this is not due due to your internet connection

Desktop (please complete the following information):

OS: Windows 10
Version: 1.3.1

@R3tr0Ananas it's fetching wrong extension (.a instead of .ac) when opening the title, i looked the codes, as far i know it looks same with the site.

That's the providers issue as the show's link is just https://turkish123.a


[BUG]: cloned twice and missing .devcontainer folder

Version
23.11
Which installation method(s) does this occur on?
No response
Describe the bug.
Tried MORPHEUS_ROOT=$(pwd)/morpheus git clone https://github.com/nv-morpheus/Morpheus.git $MORPHEUS_ROOT cd $MORPHEUS_ROOT as suggested here: https://github.com/nv-morpheus/Morpheus/blob/branch-23.11/docs/source/getting_started.md
and missing .devcontainer folder.
First time I did git clone git@github.com:nv-morpheus/Morpheus.git and that time it was also missing the .git folder.
Minimum reproducible example
I have no idea

Relevant log output
Click here to see error details
[Paste the error here, it will be hidden by default]

Full env printout
not applicable?
Other/Misc.
No response
Code of Conduct

[X] I agree to follow Morpheus' Code of Conduct
[X] I have searched the open bugs and have found no duplicates for this bug report

Hi @nyck33!
Thanks for submitting this issue - our team has been notified and we'll get back to you as soon as we can!
In the mean time, feel free to add any relevant information to this issue.

It happend again with the provided commands on the Get Started page.

@nyck33 Can you see any of the directories that start with a period? There should be 5: .devcontainer, .github, .gitlab, .git and .tmp.
Can you output the contents of the Morpheus root directory?
cd $MORPHEUS_ROOT
ls


CHANGELOG: Add entries for #22, #1

Codecov Report

Merging #31 (a4d98e7) into main (638ec3d) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #31   +/-   ##
=======================================
  Coverage   86.41%   86.41%
=======================================
  Files          38       38
  Lines        2032     2032
=======================================
  Hits         1756     1756
  Misses        221      221
  Partials       55       55

Continue to review full report at Codecov.

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


NSXMLParserErrorDomain Code=111 but works in lldb

Hi everybody!
I found a very strange problem. My goal is to load a simple XML file from the web. I am downloading data and cleaning it. At the end, my app tries to parse it with a specific model. When the app is running, I am getting an error: The operation couldn’t be completed. (NSXMLParserErrorDomain error 111.). When I make a breakpoint on decode(_:) function and call the same method in lldb everything is working, and I am getting the result.
How to reproduce

So, for example. I am getting XML data from some source. Could be this for our purposes: https://www.wwdcnotes.com/feed.rss

I am removing <content> tags because sample code breaks decoder.

func dataMiddleware(_ data: Data) -> Data {
        let stringData = String(data: data, encoding: .utf8)?
            .replacingOccurrences(of: "(<content:encoded>)([\\s\\S]*?)(</content:encoded>)", with: "", options: .regularExpression)

        return stringData?.data(using: .utf8) ?? data
    }

After this transformation this specific xml looks like:

<?xml version = "1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>WWDC NOTES</title>
		<description>Open-source and community-driven effort to collect notes for all Apple's WWDC videos. ❤</description>
		<link>https://www.wwdcnotes.com</link>
		<language>en</language>
		<lastBuildDate>Sun, 3 Sep 2023 20:06:50 +0200</lastBuildDate>
		<pubDate>Sun, 3 Sep 2023 20:06:50 +0200</pubDate>
		<ttl>250</ttl>
		<atom:link href="https://www.wwdcnotes.com/feed.rss" rel="self" type="application/rss+xml"/>
		<item>
			<guid isPermaLink="true">https://www.wwdcnotes.com/notes/wwdc23/10257</guid>
			<title>Create animated symbols</title>
			<description>Discover animation presets and learn how to use them with SF Symbols and custom symbols. We'll show you how to experiment with different options and configurations to find the perfect animation for your app. Learn how to update custom symbols for animation using annotation features, find out how to modify your custom symbols with symbol components, and explore the redesigned export process to help keep symbols looking great on all platforms.

To get the most out of this session, check out “What’s new in SF Symbols 5” from WWDC23.</description>
			<link>https://www.wwdcnotes.com/notes/wwdc23/10257</link>
			<pubDate>Sun, 3 Sep 2023 16:38:00 +0200</pubDate>
		</item>
	</channel>
</rss>

Next I am decoding the data into model:

let feed = try decoder.decode(SomeModel.self, from: dataMiddleware(data))

struct SomeModel {
    let channel: Channel

    struct Channel: Codable {
        enum CodingKeys: String, CodingKey {
            case title, link, lastBuildDate
            case items = "item"
        }

        let title: String
        let link: URL
        let lastBuildDate: Date
        let items: [Item]

        struct Item: Codable {
            let title: String
            let link: URL
            let guid: String
            let pubDate: Date
        }
    }
}

Results

When I am calling lldb command I am getting proper output:

(lldb) po try decoder.decode(SomeModel.self, from: dataMiddleware(data))
▿ SomeModel
  ▿ channel : Channel
    - title : "WWDC NOTES"
    ▿ link : https://www.wwdcnotes.com
      - _url : https://www.wwdcnotes.com
    ▿ lastBuildDate : 2023-09-03 18:06:50 +0000
      - timeIntervalSinceReferenceDate : 715457210.0
    ▿ items : 100 elements
      ▿ 0 : Item
        - title : "Create animated symbols"
        ▿ link : https://www.wwdcnotes.com/notes/wwdc23/10257
          - _url : https://www.wwdcnotes.com/notes/wwdc23/10257
        - guid : "https://www.wwdcnotes.com/notes/wwdc23/10257"
        ▿ pubDate : 2023-09-03 14:38:00 +0000
          - timeIntervalSinceReferenceDate : 715444680.0

The same code is running in Vapor scope and the same function throws an error:

[ INFO ] The operation couldn’t be completed. (NSXMLParserErrorDomain error 111.) (App/Service.swift:46)
[ WARNING ] Error Domain=NSXMLParserErrorDomain Code=111 "(null)" (App/services.swift:35)

Summary
I can not find anything that helps me to solve this problem. Error 111 looks like it indicates a bad data structure but these work properly during debugging.

Any workaround for this?


Search in fields that are not indexed

Describe the bug

What did you do?

I want to search in fields that are not indexed.

What happened?

Error when querying with TermQuery: SchemaError("Field \"url\" is not indexed").
Schema json as follow：
{
"schema": [
    {
      "name": "title",
      "type": "text",
      "options": {
        "indexing": {
          "record": "position",
          "tokenizer": "en_stem"
        },
        "stored": true
      }
    },
    {
      "name": "body",
      "type": "text",
      "options": {
        "indexing": {
          "record": "position",
          "tokenizer": "en_stem"
        },
        "stored": true
      }
    },
    {
      "name": "url",
      "type": "text",
      "options": {
        "indexing": null,
        "stored": true
      }
    }
  ]
}

What was expected?

How to query for fields that are unnecessarily indexed?
Which version of tantivy are you using?
tantivy = "0.15.3"
To Reproduce
let reader = index.reader().map_err(|e| e.to_string()).unwrap();

let searcher = reader.searcher();
let schema = index.schema();
let query = tantivy::query::TermQuery::new(
    tantivy::Term::from_field_text(schema.get_field("url").unwrap(), "https://en.wikipedia.org/wiki?curid=48688008"),
    tantivy::schema::IndexRecordOption::Basic,
);

It turns out that this is just a basic question about luncen, so close it.


Uncaught SyntaxError: Unexpected identifier

I get Uncaught SyntaxError: Unexpected identifier when run AngularClient. Can anyone help me to fix it. Thank in advance

Hi @ChinhDuong  the SPA application is not build
cmd:
npm install
npm run build-dev
or install the npm task runner in VS
Greetings Damien

Thank you so much