Match: template_name param is not being honored

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description

Currently when running fastlane match with the template_name parameter, the custom entitlement is not being selected in the profile in the apple developer portal.  After creating a new template with Match, the entitlement selected is still default.

In the above image, our entitlement should have been selected from the template_name parameter.
Passing a non-existent template_name to match returns an error, so clearly Match is able to see the available template names on the developer portal.
Command executed

This has failed both in the context of a fastfile, and from the commandline:
in a fastfile I have tried:
    match(
        app_identifier: "our.company.app.identifier",
        type: "adhoc",
        force: true,
        git_branch: "master",
        git_url: "redacted",
        keychain_password:"redacted",
        shallow_clone: true,
        readonly: false,
        generate_apple_certs: true,
        team_id: "OurTeamId",
        template_name: "Our Template Name",
        verbose: true
    )

and from commandline:
bundle exec fastlane match -a our.company.app.identifier -u<EMAIL_ADDRESS>-r https://some.git.address -p secret --template_name "Custom Template Name" --shallow_clone --force --clone_branch_directly -y adhoc --generate_apple_certs true

Complete output when running fastlane, including the stack trace and command used

leiftaylor:fastlane leif.taylor$ bundle exec fastlane create_adhoc_provisioning_profile
[✔] 🚀
+-------------------------+---------+-------------------------+
|                        Used plugins                         |
+-------------------------+---------+-------------------------+
| Plugin                  | Version | Action                  |
+-------------------------+---------+-------------------------+
| fastlane-plugin-appicon | 0.16.0  | android_appicon appicon |
| fastlane-plugin-trainer | 0.4.1   | trainer                 |
+-------------------------+---------+-------------------------+
18:21:45: --- Step: default_platform ---
18:21:45: ------------------------------
18:21:45: Driving the lane 'create_adhoc_provisioning_profile' 🚀
INFO [2021-04-05 18:21:45.55]: -------------------
INFO [2021-04-05 18:21:45.55]: --- Step: match ---
INFO [2021-04-05 18:21:45.55]: -------------------
+--------------------------------+--------------------------------------------------------------------------------------+
|                                               Summary for match 2.179.0                                               |
+--------------------------------+--------------------------------------------------------------------------------------+
| app_identifier                 | ["REDACTED"]                                                |
| type                           | adhoc                                                                                |
| force                          | true                                                                                |
| git_branch                     | master                                                                               |
| git_url                        | https://REDACTED |
| keychain_password              | ********                                                                             |
| shallow_clone                  | true                                                                                |
| readonly                       | false                                                                                |
| generate_apple_certs           | true                                                                                |
| team_id                        | REDACTED                                                                           |
| template_name                  | Our Template Name                                                       |
| profile_name                   | Custom Test Profile                                                                  |
| verbose                        | true                                                                                |
| skip_provisioning_profiles     | false                                                                                |
| storage_mode                   | git                                                                                |
| clone_branch_directly          | false                                                                                |
| keychain_name                  | login.keychain                                                                       |
| force_for_new_devices          | false                                                                                |
| skip_confirmation              | false                                                                                |
| skip_docs                      | false                                                                                |
| platform                       | ios                                                                                |
| derive_catalyst_app_identifier | false                                                                                |
| fail_on_name_taken             | false                                                                                |
| skip_certificate_matching      | false                                                                                |
| skip_set_partition_list        | false                                                                                |
+--------------------------------+--------------------------------------------------------------------------------------+
INFO [2021-04-05 18:21:45.55]: Cloning remote git repo...
INFO [2021-04-05 18:21:45.55]: If cloning the repo takes too long, you can use the clone_branch_directly option in match.
INFO [2021-04-05 18:21:45.55]: $ git clone https://REDACTED.git /var/folders/26/sfx5pkj17b1dfkhshvbg52640000gn/T/d20210405-55881-rt4qmd --depth 1 --no-single-branch
/REDACTED/ruby/2.7.0/gems/json-2.1.0/lib/json/common.rb:156: warning: Using the last argument as keyword parameters is deprecated
INFO [2021-04-05 18:21:45.56]: ▸ Cloning into '/var/folders/26/sfx5pkj17b1dfkhshvbg52640000gn/T/d20210405-55881-rt4qmd'...
INFO [2021-04-05 18:21:46.39]: ▸ remote: Enumerating objects: 523, done.
INFO [2021-04-05 18:21:46.40]: ▸ remote: Counting objects: 100% (523/523), done.
INFO [2021-04-05 18:21:46.45]: ▸ remote: Compressing objects: 100% (513/513), done.
INFO [2021-04-05 18:21:47.20]: ▸ remote: Total 523 (delta 6), reused 449 (delta 3), pack-reused 0
INFO [2021-04-05 18:21:47.20]: ▸ Receiving objects: 100% (523/523), 3.85 MiB | 5.16 MiB/s, done.
INFO [2021-04-05 18:21:47.20]: ▸ Resolving deltas: 100% (6/6), done.
INFO [2021-04-05 18:21:47.30]: $ git --no-pager branch --list origin/master --no-color -r
INFO [2021-04-05 18:21:47.30]: ▸   origin/master
INFO [2021-04-05 18:21:47.30]: Checking out branch master...
INFO [2021-04-05 18:21:47.30]: $ git checkout master
INFO [2021-04-05 18:21:47.33]: ▸ Already on 'master'
INFO [2021-04-05 18:21:47.33]: ▸ Your branch is up to date with 'origin/master'.
INFO [2021-04-05 18:21:47.52]: 🔓  Successfully decrypted certificates repo
INFO [2021-04-05 18:21:47.52]: Verifying that the certificate and profile are still valid on the Dev Portal...
Successfully loaded Appfile at path '/Users/REDACTED/fastlane/Appfile'
DEBUG [2021-04-05 18:21:52.84]: Certificate 'K58697M684.cer' is already installed on this machine
+-------------------+-------------------------------------------------------+
|                           Installed Certificate                           |
+-------------------+-------------------------------------------------------+
| User ID           | 7CX467744C                                            |
| Common Name       | Apple Distribution: REDACTED (REDACTED) |
| Organisation Unit | REDACTED                                            |
| Organisation      | REDACTED                                  |
| Country           | US                                                    |
| Start Datetime    | 2020-08-06 15:28:53 UTC                               |
| End Datetime      | 2021-08-06 15:28:53 UTC                               |
+-------------------+-------------------------------------------------------+
+-------------------------------------+-----------------------------------+
|                        Summary for sigh 2.179.0                         |
+-------------------------------------+-----------------------------------+
| app_identifier                      | com.REDACTED |
| force                               | true                              |
| cert_id                             | REDACTED                        |
| ignore_profiles_with_different_name | true                              |
| team_id                             | REDACTED                        |
| template_name                       | Our Custom Profile Name (Redacted)    |
| fail_on_name_taken                  | false                             |
| platform                            | ios                               |
| adhoc                               | true                              |
| developer_id                        | false                             |
| development                         | false                             |
| skip_install                        | false                             |
| skip_fetch_profiles                 | false                             |
| skip_certificate_verification       | false                             |
| readonly                            | false                             |
+-------------------------------------+-----------------------------------+
INFO [2021-04-05 18:22:03.69]: $ security list-keychains -d user
INFO [2021-04-05 18:22:03.71]: ▸     "/Users/REDACTED"
INFO [2021-04-05 18:22:03.71]: ▸     "/Users/REDACTED"
INFO [2021-04-05 18:22:03.71]: $ security find-certificate -a -c 'Apple Worldwide Developer Relations Certification Authority' /REDACTED
INFO [2021-04-05 18:22:03.73]: ▸ keychain: "/Users/REDACTED"
INFO [2021-04-05 18:22:03.73]: ▸ version: 512
INFO [2021-04-05 18:22:03.73]: ▸ class: 0x80001000
INFO [2021-04-05 18:22:03.73]: ▸ attributes:
INFO [2021-04-05 18:22:03.73]: ▸     "alis"="Apple Worldwide Developer Relations Certification Authority"
INFO [2021-04-05 18:22:03.73]: ▸     "cenc"=0x00000003
INFO [2021-04-05 18:22:03.73]: ▸     "ctyp"=0x00000001
INFO [2021-04-05 18:22:03.73]: ▸     "hpky"=REDACTED  "\210'\027\011\251\266\030\213\354\353\272\366GY\305RT\243\267" INFO [2021-04-05 18:22:03.73]: ▸     "issu"<blob>=REDACTED  "0b1\0130\011\006\003U\004\006\023\002US1\0230\021\006\003U\004\012\023\012APPLE INC.1&0$\006\003U\004\013\023\035APPLE CERTIFICATION AUTHORITY1\0260\024\006\003U\004\003\023\015APPLE ROOT CA" INFO [2021-04-05 18:22:03.73]: ▸     "labl"<blob>="Apple Worldwide Developer Relations Certification Authority" INFO [2021-04-05 18:22:03.73]: ▸     "skid"<blob>=REDACTED  "\210'\027\011\251\266\030\213\354\353\272\366GY\305RT\243\267"
INFO [2021-04-05 18:22:03.73]: ▸     "snbr"=0x01DEBCC4396DA010  "\001\336\274\3049m\240\020"
INFO [2021-04-05 18:22:03.73]: ▸     "subj"=REDACTED  "0\201\2261\0130\011\006\003U\004\006\023\002US1\0230\021\006\003U\004\012\014\012Apple Inc.1,0*\006\003U\004\013\014#Apple Worldwide Developer Relations1D0B\006\003U\004\003\014;Apple Worldwide Developer Relations Certification Authority"
INFO [2021-04-05 18:22:03.73]: ▸ keychain: "/Users/REDACTED"
INFO [2021-04-05 18:22:03.73]: ▸ version: 512
INFO [2021-04-05 18:22:03.73]: ▸ class: 0x80001000
INFO [2021-04-05 18:22:03.73]: ▸ attributes:
INFO [2021-04-05 18:22:03.73]: ▸     "alis"="Apple Worldwide Developer Relations Certification Authority"
INFO [2021-04-05 18:22:03.73]: ▸     "cenc"=0x00000003
INFO [2021-04-05 18:22:03.73]: ▸     "ctyp"=0x00000001
INFO [2021-04-05 18:22:03.73]: ▸     "hpky"=0x09FEC01590F9AF640A9212B92628630C97ECA7B2  "\011\376\300\025\220\371\257d\012\222\022\271&(c\014\227\354\247\262"
INFO [2021-04-05 18:22:03.73]: ▸     "issu"=REDACTED  "0b1\0130\011\006\003U\004\006\023\002US1\0230\021\006\003U\004\012\023\012APPLE INC.1&0$\006\003U\004\013\023\035APPLE CERTIFICATION AUTHORITY1\0260\024\006\003U\004\003\023\015APPLE ROOT CA"
INFO [2021-04-05 18:22:03.73]: ▸     "labl"="Apple Worldwide Developer Relations Certification Authority"
INFO [2021-04-05 18:22:03.73]: ▸     "skid"=0x09FEC01590F9AF640A9212B92628630C97ECA7B2  "\011\376\300\025\220\371\257d\012\222\022\271&(c\014\227\354\247\262"
INFO [2021-04-05 18:22:03.73]: ▸     "snbr"=0x7CAF690A25B739FE7B9B447AC178C5EE  "|\257i\012%\2679\376{\233Dz\301x\305\356"
INFO [2021-04-05 18:22:03.73]: ▸     "subj"
WARN [2021-04-05 18:22:04.61]: Downloading provisioning profile...
INFO [2021-04-05 18:22:04.61]: Successfully downloaded provisioning profile...
INFO [2021-04-05 18:22:04.69]: Installing provisioning profile...
/var/folders/26/REDACTED
INFO [2021-04-05 18:22:04.77]: Installing provisioning profile...
INFO [2021-04-05 18:22:08.24]: 🔒  Successfully encrypted certificates repo
INFO [2021-04-05 18:22:08.24]: Pushing changes to remote git repo...
INFO [2021-04-05 18:22:08.24]: $ git add /var/folders/REDACTED
INFO [2021-04-05 18:22:08.25]: $ git commit -m [fastlane]\ Updated\ adhoc\ and\ platform\ ios
INFO [2021-04-05 18:22:08.29]: ▸ [master 0ec8fea] [fastlane] Updated adhoc and platform ios
INFO [2021-04-05 18:22:08.29]: ▸  1 file changed, 227 insertions(+), 227 deletions(-)
INFO [2021-04-05 18:22:08.29]: ▸  rewrite profiles/adhoc/AdHoc_com.redacted.mobileprovision (100%)
INFO [2021-04-05 18:22:08.29]: $ git push origin master
INFO [2021-04-05 18:22:08.65]: ▸ Enumerating objects: 15, done.
INFO [2021-04-05 18:22:08.65]: ▸ Counting objects: 100% (15/15), done.
INFO [2021-04-05 18:22:08.65]: ▸ Delta compression using up to 12 threads
INFO [2021-04-05 18:22:08.65]: ▸ Compressing objects: 100% (5/5), done.
INFO [2021-04-05 18:22:08.65]: ▸ Writing objects: 100% (5/5), 10.69 KiB | 10.69 MiB/s, done.
INFO [2021-04-05 18:22:08.65]: ▸ Total 5 (delta 2), reused 0 (delta 0)
INFO [2021-04-05 18:22:08.93]: ▸ To https://REDACTED
INFO [2021-04-05 18:22:08.93]: ▸    313612d..0ec8fea  master -> master
INFO [2021-04-05 18:22:08.93]: Finished uploading files to Git Repo [https://REDACTED]
+---------------------+-----------------------------------------------------------+---------------------------------------------------------------+
|                                                         Installed Provisioning Profile                                                          |
+---------------------+-----------------------------------------------------------+---------------------------------------------------------------+
| Parameter           | Environment Variable                                      | Value                                                         |
+---------------------+-----------------------------------------------------------+---------------------------------------------------------------+
| App Identifier      |                                                           | com.REDACTED                            |
| Type                |                                                           | adhoc                                                         |
| Platform            |                                                           | ios                                                           |
| Profile UUID        | sigh_com.REDACTED              | REDACTED                         |
| Profile Name        | sigh_com.REDACTED | Custom Test Profile                                           |
| Profile Path        | sigh_com.REDACTED | /Users/REDAACTED/Library/MobileDevice/Provisioning          |
|                     |                                                           | Profiles/REDACTED.mobileprovision |
| Development Team ID | sigh_com.REDACTED      | REDACTED                                                    |
+---------------------+-----------------------------------------------------------+---------------------------------------------------------------+
INFO [2021-04-05 18:22:09.00]: All required keys, certificates and provisioning profiles are installed 🙌
INFO [2021-04-05 18:22:09.00]: Setting Provisioning Profile type to 'ad-hoc'
INFO [2021-04-05 18:22:09.00]: Successfully generated documentation at path '/Users/REDACTED/fastlane/README.md'
+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 2    | match            | 23          |
+------+------------------+-------------+
DEBUG [2021-04-05 18:22:09.01]: All plugins are up to date
INFO [2021-04-05 18:22:09.01]: fastlane.tools finished successfully 🎉
DEBUG [2021-04-05 18:22:09.01]: All plugins are up to date

Environment

 ✅ fastlane environment ✅
Stack

Key
Value

OS
10.15.5

Ruby
2.7.0

Bundler?
true

Git
git version 2.21.0

Installation Source
~/Redacted/vendor/bundle/ruby/2.7.0/bin/fastlane

Host
Mac OS X 10.15.5 (19F101)

Ruby Lib Dir
~/.rvm/rubies/ruby-2.7.0/lib

OpenSSL Version
OpenSSL 1.1.1g  21 Apr 2020

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode-11.app/Contents/Developer/

Xcode Version
11.0

System Locale

Variable
Value

LANG
en_US.UTF-8
✅

LC_ALL

LANGUAGE

fastlane gems

Gem
Version
Update-Status

fastlane
2.179.0
✅ Up-To-Date

Loaded fastlane plugins:

Plugin
Version
Update-Status

fastlane-plugin-appicon
0.16.0
✅ Up-To-Date

fastlane-plugin-trainer
0.4.1
✅ Up-To-Date

Loaded gems

Gem
Version

did_you_mean
1.4.0

bundler
2.2.1

uri
0.10.0

rake
13.0.3

CFPropertyList
3.0.3

concurrent-ruby
1.1.8

i18n
1.8.10

minitest
5.14.4

thread_safe
0.3.6

tzinfo
1.2.9

activesupport
5.2.5

public_suffix
4.0.6

addressable
2.7.0

httpclient
2.8.3

json
2.1.0

algoliasearch
1.27.5

artifactory
3.0.15

atomos
0.1.3

aws-eventstream
1.1.1

aws-partitions
1.441.0

aws-sigv4
1.2.3

jmespath
1.4.0

aws-sdk-core
3.113.1

aws-sdk-kms
1.43.0

aws-sdk-s3
1.93.0

babosa
1.0.4

claide
1.0.3

colored2
3.1.2

cork
0.3.0

nap
1.1.0

open4
1.3.4

claide-plugins
0.9.2

clamp
1.3.2

fuzzy_match
2.0.4

netrc
0.11.0

ffi
1.15.0

ethon
0.12.0

typhoeus
1.4.0

cocoapods-core
1.10.1

cocoapods-deintegrate
1.0.4

cocoapods-downloader
1.4.0

cocoapods-plugins
1.0.0

cocoapods-search
1.0.0

cocoapods-trunk
1.5.0

cocoapods-try
1.2.0

escape
0.0.4

fourflusher
2.3.1

gh_inspector
1.1.3

molinillo
0.6.6

ruby-macho
1.4.0

nanaimo
0.3.0

xcodeproj
1.19.0

cocoapods
1.10.1

colored
1.2

highline
1.7.10

commander-fastlane
4.4.6

faraday-net_http
1.0.1

multipart-post
2.0.0

ruby2_keywords
0.0.4

faraday
1.3.0

faraday-http-cache
2.2.0

rchardet
1.8.0

git
1.8.1

rexml
3.2.5

kramdown
2.3.1

kramdown-parser-gfm
1.1.0

no_proxy_fix
0.1.2

sawyer
0.8.2

octokit
4.20.0

unicode-display_width
1.7.0

terminal-table
1.8.0

danger
8.2.3

danger-plugin-api
1.0.0

danger-jazzy
1.1.0

ox
2.14.4

danger-junit
1.0.2

racc
1.5.2

nokogiri
1.11.2

slather
2.7.0

danger-slather
0.0.6

danger-swiftformat
0.8.1

thor
0.20.3

danger-swiftlint
0.26.0

danger-xcode_summary
0.5.2

declarative
0.0.20

declarative-option
0.1.0

digest-crc
0.6.3

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20190701

dotenv
2.7.6

emoji_regex
3.2.2

excon
0.79.0

http-cookie
1.0.3

faraday-cookie_jar
0.0.7

faraday_middleware
1.0.0

fastimage
2.2.3

jwt
2.2.2

memoist
0.16.2

multi_json
1.15.0

os
1.1.1

signet
0.15.0

googleauth
0.16.1

mini_mime
1.1.0

uber
0.1.0

representable
3.0.4

retriable
3.1.2

google-api-client
0.38.0

webrick
1.7.0

google-apis-core
0.3.0

google-apis-iamcredentials_v1
0.3.0

google-apis-storage_v1
0.3.0

google-cloud-env
1.5.0

google-cloud-errors
1.1.0

google-cloud-core
1.6.0

google-cloud-storage
1.31.0

mini_magick
4.11.0

naturally
2.2.1

plist
3.6.0

rubyzip
2.3.0

security
0.1.3

simctl
1.6.8

slack-notifier
2.3.2

terminal-notifier
2.0.0

tty-screen
0.8.1

tty-cursor
0.7.1

tty-spinner
0.9.3

word_wrap
1.0.0

rouge
2.0.7

xcpretty
0.3.0

xcpretty-travis-formatter
1.0.1

fastlane-plugin-appicon
0.16.0

trainer
0.9.1

fastlane-plugin-trainer
0.4.1

mustache
1.1.1

redcarpet
3.5.1

sassc
2.4.0

sqlite3
1.4.2

liferaft
0.0.6

xcinvoke
0.3.0

jazzy
0.13.6

xcpretty-json-formatter
0.1.1

generated on: 2021-04-05

Running into this as well, no success using match with --template_name "template"

I also tried using sigh with template but it also did not recognize the parameter

I ended up updating the provisioning profiles on the Apple Developer site manually with the entitlement dropdown, and then running match locally ended up downloading those profiles, encrypting them, and pushed them back up to my fastlane repo.

The match parameter isn't working for me either. I can edit it manually on the Apple Developer site but this defeats the purpose and I worry that's just going to break in 12 months time when the certificate expires

please don't close this issue fastlane bot, it's very much so an issue still 😅

Don’t close this, mr bot

For me, it's not working as well...

Working fine for me when I add the following value
  match(
    type: "appstore",
    app_identifier: app_identifier,
    readonly: false,
    force_for_new_devices: true,
    template_name: "ApplePay In-App Provisioning Distribution"
  )

Working fine for me when I add the following value
  match(
    type: "appstore",
    app_identifier: app_identifier,
    readonly: false,
    force_for_new_devices: true,
    template_name: "ApplePay In-App Provisioning Distribution"
  )

is this reflecting in the provisioning profile on the Apple Developer portal? (if you create the profile from scratch)

Working fine for me when I add the following value
  match(
    type: "appstore",
    app_identifier: app_identifier,
    readonly: false,
    force_for_new_devices: true,
    template_name: "ApplePay In-App Provisioning Distribution"
  )

is this reflecting in the provisioning profile on the Apple Developer portal? (if you create the profile from scratch)

The profile was created by Fastlane match so this matches

I works for me in development and appstore type but fails to attribute it correctly in adhoc.


Add ability to pass http_options options to the http layer

Add the http_options config key that would be pass to the post request sent to airbrake.
Our use case is we need to specify the certfile, but kept it generic and accept the same options as HTTPoision.

Thanks for the PR 🕶

Thanks for your PR 🍩


apple/macbook-pro/12-1: wireless don't get reconnected after resume

not sure what to add here, but wanted to at least file an issue as a todo item.
hardware: 03:00.0 Network controller: Broadcom Inc. and subsidiaries BCM43602 802.11ac Wireless LAN SoC (rev 01)

Is this something to inform Linux upstream about? Also which kernel version and is it fixed by rmmod $yourwifidriver && modprobe $yourwifidriver where you network driver probably has something like bcm or broadcom in its name.

normally wifi does not get crashed or so, just does not get started.
so i did a plain restart wpa_supplicant.service. when i used arch i remember (driver crashed) doing unload/load and then doing a restart.


build() options.additionalProperties precedence

Issue #60, allows build() to assign defaults and retain additionalProperties for validation. See the issue discussion for more detail.

Coverage decreased (-0.5%) to 97.746% when pulling f64e5a8fc8a6af97f9be8b17076cd0122ba3a19b on adam-26:master into 9b7ea21fbb2d2d54a5bdf81efc2818dc861d768f on bugventure:master.


rox-filer: init at 2.11

Motivation for this change
Addition of rox-filer package manager.
Things done

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

[x] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

See also https://github.com/NixOS/nixpkgs/pull/17650

@joachifm fixed

@proteansec the other implementation had an issue with trying to download xml schema during the build; a cursory look at this version suggests that will be a problem here, too (network access is disallowed within the build sandbox).

@joachifm I'm not sure, I don't have any such problems although I'm using nix.useSandbox on NixOS. In any case, it would be best if we merge the two pull requests.

@proteansec your version doesn't build the rox manual, that'd account for the difference. I like your approach to dealing with appdir better than the other version. Given that it also builds in a sandboxed environment, I'd be inclined to integrate this PR.

see also: https://github.com/NixOS/nixpkgs/pull/17650


Typo fix: Mark task as "completed" not "complete"

@calvin-lau-sig7 @lfdebrux minor fix.
I’d also be tempted to move the full stop outside of the quotation mark – I know that goes against the normal style guide, but it might be better here to be super clear that the full stop is not part of the status that you should mark the section as?

Thanks Frankie — and agree on the 2nd point, looks like we do do that on similar sentences like Error messages. I can do a new commit in a bit.

@calvin-lau-sig7 ok, great. Let's merge this, and I'll leave you to pick up the full stop / quote mark order separately?

@frankieroberto the two commits seem to cancel each other out – guessing that may not be intentional? Currently the 'files changed' tab shows zero changes.

@frankieroberto the two commits seem to cancel each other out – guessing that may not be intentional? Currently the 'files changed' tab shows zero changes.

@36degrees Opps, not sure what happened there... 😕  I tried to fix but then realised that #2037 fixes this anyway, so closing this PR. 👍


SWC doesn't transform dynamic imports into require imports

Describe the bug
SWC built the Typescript file, but didn't transformed the imports from "import { Command } from 'commander'" into "const { Command } = require('commander')" and "import { version } from '../package.json'" into "const { version } = require('../package.json')".
Input code
import { Command } from "commander"
import { version } from "../package.json"
const program = new Command("ytdlm")
program.version(version)
program.usage("ytdlm <url> [options]")

program
    .option("-a, --audio", "Download audio only")

program.parse(process.argv)

console.log(program.args)

Config
{
    "jsc": {
        "parser": {
            "syntax": "typescript",
            "dynamicImport": false
        },
        "target": "es5"
    },
    "minify": false
}

Playground link
No response
Expected behavior
The imports should be transformed into require imports.
Actual behavior
The imports doesn't changed
Version
1.2.123
Additional context
The cli is on version 0.1.55 and the core is on version 1.2.123. My dev dependencies are "@types/node" version 17.0.5 and "typescript" version 4.5.4. And the only normal dependencie is "commander" version 8.3.0.

You should configure module

And what is wrong in the config? I'm a new user and don't understand why it doesn't work.


Ignores Traveling in Time with Timecop

Poltergeist ignores rubys time, when using poltergeist-1.5.1 with capybara-2.4.3
Reproduce steps:
visit root_path
page.evaluate_script('new Date();')
Timecop.travel(Time.current.advance(days: 1))
visit root_path
page.evaluate_script('new Date();')

new Date(); will both times return the same Date, whereby ruby has traveled one day in Time.

Timecop "mocks" Ruby DateTime, but you're evaluating JavaScript. You will need to use some JS library to handle JS Date mocks if you need that in your tests.

did so, used (and still using) sinon. However there is no posibility to advance time between two visits of a page. On the second visit the time gets reseted to normal, even if previosly set by sinon


Any idea why subscribe is not working?

Hello, I will try to go direct to the point
I followed all the tutorials of configuring laravel with pusher for broadcasting. I made it work OK for public, private and presence channels. everything is working in my testing env.
However, I needed to make it work with graphql subscriptions, and followed the lighthouse tutorial, then I reached your thekonz/apollo-lighthouse-subscription-link library. And now I got stuck and dont know how to proceed. I hope you could help me.
The issue is I dont know why the lib is not subscribing to my lighthouse channel.
After I run client.subscribe, the server simple does not show any info about sucessful subscribing to it, despite the fact it receives the authorization info from server, thus, after I manually trigger the subscription, the client does not receive anything, but the server says the event were triggered.
Here is the important part of the code my app is running:
echo-test.js
const echo_graphql = new Echo({
    broadcaster: 'pusher',
    key: 'your-pusher-key',
    wsHost: '<IP_ADDRESS>',
    wsPort: 6001,
    forceTLS: false,
    disableStats: true,
});

const authMiddleware = new ApolloClient.ApolloLink((operation, forward) => {
  // add the authorization to the headers
  operation.setContext(({ headers = {} }) => ({
    headers: {
      ...headers,
      authorization: 'Bearer ' + token,
    }
  }));

  return forward(operation);
})

const httpLink = new ApolloClient.HttpLink({
    uri: 'http://<IP_ADDRESS>:8000/graphql',
    fetch,
});

const link = ApolloClient.ApolloLink.from([
    authMiddleware,
    createLighthouseSubscriptionLink(echo_graphql),
    httpLink, // your existing http link to your graphql api
  ]);

const cache = new ApolloClient.InMemoryCache();

const client = new ApolloClient.ApolloClient({
    link,
    cache,
});

const subscriber = client
  .subscribe({
    query: ApolloClient.gql`
    subscription gameSessionStarted {
        gameSessionStarted {
            id
        }
    }
    `,
  })
  .subscribe(({ gameSessionStarted }) => {
    console.log(gameSessionStarted, 'SUBSCRIBE RESULT <<<< this is the part that is not triggered');
  });

schema.graphql:
extend type Subscription {
  gameSessionStarted(id: ID @eq): User @guard(with: "api") @subscription(class: "\\App\\GraphQL\\GameSessionStarted")
}

Both authorize and filter methods of App\GraphQL\GameSessionStarted explicitly returns true

Inspecting your library, I realize that the file node_modules/@thekonz/apollo-lighthouse-subscription-link/dist/index.js:28 (my package.json version is "^1.2.3") is returning the following data:
{
  data: { gameSessionStarted: null },
  extensions: {
    lighthouse_subscriptions: {
      version: 2,
      channel: 'private-lighthouse-lXVEg0rPwzvzMM6U6kWCgwCo5x8goTSu-1625374663'
    }
  }
}

And the server is displaying:
New connection opened for app key your-pusher-key.
serve-websockets-1      | Connection id 631329104.314645804 sending message {"event":"pusher:connection_established","data":"{\"socket_id\":\"631329104.314645804\",\"activity_timeout\":30}"}

After I manually trigger the broadcast event (Subscription::broadcast('gameSessionStarted', User::find(1));), the server replies the following:
queue-listen-2          | [2021-07-04 04:59:45][czlHOCygNo3hpKX5JZxyLE3zXjifPg7f] Processing: Nuwave\Lighthouse\Subscriptions\BroadcastSubscriptionJob
queue-listen-2          | [2021-07-04 04:59:45][czlHOCygNo3hpKX5JZxyLE3zXjifPg7f] Processed:  Nuwave\Lighthouse\Subscriptions\BroadcastSubscriptionJob

But no data is returned to client.
Do I am missing something?
Could you point me to a direction? I have no idea on what could be.
Thanks for any help.

The library currently only supports lighthouse subscriptions version 1.
I don't have the time right now to add support to that, but I will add it soon (hopefully).
Until then, please go to your config and set subscriptions.version to 1.
Sorry for the inconvenience.

Thanks for your reply. I will chance that.

Hey @thekonz , sorry to send another comment to this closed issue, but we are struggling when we try to use this link.
Is it working already with version 2 or should we still use version 1? If I use version 1 I always get this error, even though authentication looks fine and I don't get errors in the browser, just this one in the Debug console of Pusher Dashboard:

You need version 1. This package does not work with version 2.
Did you specify the authEndpoint in your echo client? It needs to be set to graphql/subscriptions/auth.

Yes @thekonz.  This is how I initialise the client:
const client = new Pusher(process.env.NEXT_PUBLIC_PUSHER_APP_KEY as string, {
      authEndpoint: `http://${process.env.NEXT_PUBLIC_API_URL}/graphql/subscriptions/auth`,
      cluster: process.env.NEXT_PUBLIC_PUSHER_APP_CLUSTER,
      ...(token && {
        auth: {
          headers: {
            Authorization: `Bearer ${token}`,
          },
        },
      }),
    });

    return new Echo({
      broadcaster: 'pusher',
      key: process.env.NEXT_PUBLIC_PUSHER_APP_KEY,
      namespace: 'Edx.Events',
      encrypted: true,
      client,
    });

In the laravel docs I only see authEndpoint on the Echo object.
Not sure if it works the same on the Pusher object.

Yeah, it's the same, because if you provide a pusher client to echo it will use it. I need to do so, because otherwise Echo complains about Pusher is not defined in React.
Furthermore, I can see the auth request


Fix spelling of Perl 6

Resolves #3671.
I'm surprised it's taken that long for anybody to notice, because nowhere is Perl 6 written as Perl6 in the official docs. Heck, the Camel Book calls it Perl 6 too:

The third edition was published in the middle of 2000, just as Perl v5.6 was coming out. As we write this, it’s 12 years later and Perl v5.16 is coming out soon. A lot has happened in those years, including several new releases of Perl 5, and a little thing we call Perl 6. That 6 is deceptive though; Perl 6 is really a “kid sister” language to Perl 5, and not just a major update to Perl 5 that version numbers have trained you to expect. This book isn’t about that other language. It’s still…

I'd really love to just
while(<languages_yml>){
	s/Perl6/Perl 6/g;
	print;
}


disable auto uninstall

hi
recenlly my server lost my database it is not big
and i thinks i always save any data come from server to local storage on my app
so i just need make new function query all data from sembast database and save it as json file inside phone storge
and i get my data back .
but what happen when i try to start app
adb uninstall it then reinstall again so i lost all data
Installing build/app/outputs/apk/app.apk...                        32.1s
Error: ADB exited with exit code 1
Performing Streamed Install

adb: failed to install /home/aliammar/Desktop/learn/build/app/outputs/apk/app.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.sjaj.dashboard signatures do not match
previously installed version; ignoring!]

i have another phone have data but i dont know how to update the app without getting this auto uninstall

Hi @Ali1Ammar
i am not sure this behaviour can changed can disabled
You can find better approach than this
This platform is not meant for assistance on personal code.
Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


Nav: add membership link to unify across websites

This unifies nav between https://dotnetfoundation.org/ and https://members.dotnetfoundation.org/ and allows a path back and forth for users.
cc @jongalloway

Thanks!
[businesspeople-shaking-hands.gif]


The UI of the documentation page does not look responsive.

Describe the bug
The UI of the documentation page does not look responsive. It badly affects user experience.
Screenshots

I want to improve it so that it looks good in all devices.
Example  Fill x { [x] }  into  bracket

[x] I have checked the existing issues *
[x] I have read the Contributing Guidelines *
[x] I have starred the repository *
[x] Working under Gssoc24*

hii ,
I'm GSSoC'24 contributor ,I want to work on this issue,
so, kindly requested to you to assign me the issue.


Use modals instead of alerts

Fixes #123
Use modal for delete, archive, and set as default project confirmation
Delete project:

Archive/Unarchive project:

Set as Default project:

@Pranshu1902 can you please resolve merge conflicts?

@skks1212 done!


elemental run-stage

This is a follow-up of https://github.com/rancher-sandbox/cOS-toolkit/issues/942.
Port cos-setup logic into a run-stage golang subcommand of elemental-cli and consume it in cos toolkit

@Itxaka do we consume already run-stage from elemental-cli in cOS?

Nope, this was auto closed due to the linked pr I think!

ah no, I did move it, so I mistaked this issue for a different one...ups...


http://restfulrouting.com cannot be found

Is this project no longer active? I tried to read about it, but http://restfulrouting.com cannot be found.

I was able to get a cache of it at https://web.archive.org/web/20150720065419/http://restfulrouting.com/

Sorry, I took the site down because it was hosted on my Azure account and it was starting to cost money. You can run the same documentation site by pulling the project down.

You should be able to access the new documentation site at http://restfulrouting.com now.


Navigation : undefined is not a function

Hi,
Very good job with this menu! I have a problem though...
It's probably me, but I can't find out how to create a navigation that works. By following your example, I just filled the blanks in navigator.push with a title and another component containing a simple View.
Doing this, I keep having the same mistake:
"undefined is not a function (evaluating this.props.navigator.push({title: 'Homepage', component: Homepage})') "
Could you please help me out?
Am I supposed to add a Navigator somewhere?

@tnguyen42 I think by mistake you filed an issue in a wrong repo. Probably, you wanted to post on react-native-nabar instead, (I might be wrong though)
For answering your problem, I have couple of thoughts,
First, are you passing navigator object as prop to your component inside rednerScene method?
Second, To me react-native-navbar is just helper Component to customize the navbar, make sure that you are targeting React Native's Navigator object. You might add the ref to your NavigationBar and trying to execute methods there.

Hi,
Thanks for your answer, but I'm actually talking about the side-menu, Usage Example. In it, it seems there's not Navigator component, which I find weird, considering navigator.push is being called.
Am I supposed to replace  by a Navigator? Or am I supposed to wrap the rendered SideMenu under a Navigator through the renderScene method?
Thanks for your time!

Oh I see, This is just an example of how you can pass navigator or any other props to menu to interact with your app. You do not need that!
So now my question is, do you want to use Navigator component as your Side menu's content?

For now I don't, but I plan to use a Navigator as my main content and then, navigate thanks to this side-menu.
So I'm wondering what the best pratice should be: replace the ContentView component (from the example) by a Navigator which renders some content like this:

<Navigator initialRoute, renderScene, etc>

Or wrap everything, including the SideMenu, in a Navigator.
The first one seems more intuitive to me since I don't want the SideMenu to reload everytime...
Cheers!

Your component looks very good rt2zz, I'm gonna try it, thanks!

I think it's worth to make a component which will aggregate navbar, side-menu and describe relations between :)


Add: Drive viewer to load files and maintain projects

Drive here is Google Drive API.

@poush Could you please elaborate the issue?


chainer.grad computes gradients for variables that are requires_grad=False

chainer.grad computes and returns the gradients for variables that are flagged with requires_grad=False.
This could be reconsidered to return None since None is returned for variables that are not included in the graph for instance.
import numpy as np
import chainer as ch

a = ch.Variable(np.arange(3, dtype='f'), requires_grad=True)
b = ch.Variable(np.arange(3, dtype='f'), requires_grad=False)
c = ch.Variable(np.arange(3, dtype='f'))  # Will not be included in graph.

d = a * b
y = ch.functions.sum(d)

ga, gb, gc = ch.grad([y], [a, b, c])

print(ga)  # variable([0. 1. 2.]), Expected
print(gb)  # variable([0. 1. 2.]), Unexpected and should be None
print(gc)  # None, Expected

The issue arose in chainer/chainerrl#510.


Requiring Authentication even though it should not

Describe Your Problem:
I have 4 homebridge instances running with all of them set to requiring no authentication. However, two of these instances always ask me username and password. All of them has "auth": "none".
The weird thing is two of them (8581, 8510) work as expected but the other two (8520, 8530) always asks for username and password.
I tried deleting auth.json and recreating it but it didn't help.
Ports: 8581, 8510, 8520, 8530
Logs:

[9/11/2020, 10:49:39 AM] [Homebridge-HA] Failed login attempt
[9/11/2020, 10:49:39 AM] [Homebridge-HA] If you've forgotten your password you can reset to the default of admin/admin by deleting the "auth.json" file (/var/lib/homebridge-ha/auth.json) and then restarting Homebridge.

Homebridge Config:
{
    "bridge": {
        "name": "Homebridge-Roomba",
        "username": "0E:E0:BC:11:A8:34",
        "port": 51639,
        "pin": "526-99-760"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Homebridge-Roomba",
            "port": 8520,
            "auth": "none",
            "theme": "dark-mode",
            "tempUnits": "c",
            "lang": "en",
            "sudo": true,
            "platform": "config"
        }
    ]
}

Screenshots:

Environment:

Node.js Version: v12.18.3
NPM Version: v6.14.8
Homebridge Version: 1.1.6
Homebridge Config UI X Version: v4.27.1
Operating System: Raspbian
Process Supervisor: hb-service

The auth.json file still needs to exist, even if authentication is disabled. So if you've deleted it, make sure you restart the service using hb-service restart so it gets recreated.
Note that you can still go to the /login route manually even when auth is disabled, so if you're on this page, navigate back to /.
I have tested this on all platforms (Linux, Windows, macOS - Node.js 10, 11, 12, 13 and 14) and it's working as expected.

The auth.json file still needs to exist, even if authentication is disabled. So if you've deleted it, make sure you restart the service using hb-service restart so it gets recreated.
Note that you can still go to the /login route manually even when auth is disabled, so if you're on this page, navigate back to /.
I have tested this on all platforms (Linux, Windows, macOS - Node.js 10, 11, 12, 13 and 14) and it's working as expected.

Exactly as you have said. The bookmarks were pointing to /login route which is why it was asking for credentials. I did not consider this. I will just change the address of the bookmarks . It is not a big issue but as a normal behavior shouldn't using "/login" forward the user to main page if the authentication is disabled?


docs: update v0.4 release docs to warn about automatic restarts

Successfully created backport PR for releases/v0.4:

#5694


Subcommand overriding inherited mixed-in standard help options: IllegalArgumentException

Minimum working example:
import picocli.CommandLine;
import picocli.CommandLine.ScopeType;
import picocli.CommandLine.*;

@Command(scope = ScopeType.INHERIT)
public class InheritHelpApp  {

    @Command(mixinStandardHelpOptions = true)
    void sub(@Option(names = "-foo") int foo) {
        System.out.printf("Foo: %d", foo);
    }

    public static void main (String... args) {
        new CommandLine(new InheritHelpApp()).execute("sub", "-foo", "42" );
    }
}

When running this code, I'm getting
java.lang.IllegalArgumentException: argument type mismatch
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at picocli.CommandLine.executeUserObject(CommandLine.java:1972)
	at picocli.CommandLine.access$1300(CommandLine.java:145)
	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
	at picocli.CommandLine.execute(CommandLine.java:2078)
	at InheritHelpApp.main(InheritHelpApp.java:14)

It's the combination of inherited scope + mixinStandardHelpOptions = true  on the method subcommand that's causing trouble here. If I set scope to ScopeType.LOCAL, the sample runs fine.

Thank you for raising this and the example. I can reproduce this.
Investigating...

Great catch!
There was a logic bug that ended up removing the mixed-in standard help options from the subcommand, because it inherited from the parent and the parent did not have the mixed-in standard help options...
Thank you very much for raising this!


Show filter type being used

Hello there,
Instead of having to type .abc.def you can ignore the starting period entirely and just type abc.def.

I also added icons for filter types which resolves issue #6, however I couldn't find a decent svg for jq so I just used the node.js logo.

@mike-eason awesome, thanks! I'll review this today.

@mike-eason for the jq logo, could we use their actual logo instead of the nodejs one? How did you make those svgs? https://stedolan.github.io/jq/jq.png

@wellsjo I just used an online png to svg converter, quite nifty really.
Anyway, I added the jq logo for you.

@mike-eason awesome nice job! hope you don't mind I changed pr title to make more sense. I just did a pretty big refactor which should affect some of the code here. I see there are some conflicts now

No problemo!
If it's too much of a hassle, just close this PR and manually add what you need.
Cheers.

I merged our work together https://github.com/wellsjo/JSON-Splora/pull/16


minor typo

removed apostrophe

ok once CLA is signed

@crdotson can you sign the CLA?

Happy to!  Apologies for the delay but I’m traveling this week and it
appeared to require printing it out and signing it.
On Tue, Feb 6, 2018 at 11:08 AM Doug Davis<EMAIL_ADDRESS>wrote:

@crdotson https://github.com/crdotson can you sign the CLA?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/openservicebrokerapi/servicebroker/pull/439#issuecomment-363471005,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHZYUbmglgvBvKzCMOji9T2_zcyN38Xwks5tSHiUgaJpZM4R2rVT
.

--
Christopher R. Dotson
<EMAIL_ADDRESS>

@crdotson any update on the CLA?

My apologies for the delay!  Signed and sent.  Thanks!

@crdotson thanks!
LGTM

easy review, 3 needed

LGTM

LGTM

lgtm

LGTM


Fix team eligibility, block users from creating multiple teams and fix delete method for user requests

Basically everything in the title.

Coverage increased (+0.02%) to 97.695% when pulling 7af20c35333070751a562ca6314c68df4b73a327 on fixTeamEligibility into bd256f325d40d178ad87e55e9dd1229e3f0a5449 on master.


⚠ GitLab Server has degraded performance

In b66f9b8, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 7101 ms

Resolved: GitLab Server performance has improved in 1376e6c.


(EMAIL) CFP submissions final reminder - to be sent 28/09

Subject -> Last call: Time to submit your presentation and speak at the E-commerce Berlin Expo 2024!
@component('mail::message')

# Hello!

As you hold an esteemed exhibitor status at the E-commerce Berlin Expo, we're thrilled to extend this **final reminder** regarding our Call for Papers contest, which is open for submissions until **tomorrow**.

**This is your last opportunity to submit a presentation proposal and potentially secure a speaking slot at the Event!** It's a way to contribute your knowledge, showcase your brand, and connect with others in the industry.

**What presentations are expected?**

We're in search of compelling and insightful client cases, stories, or trend forecasts. The content you bring should hold significant value and appeal to our Expo attendees.

**How does it work?**

Submit your presentation proposal by **Friday, September 29**, and be chosen by the voters and Advisory Board members to join our agenda! Participation is the competition is free of charge.

Are you ready to showcase your expertise and insights?

**Learn all the details and apply now:**

@component('mail::button', ['url' => "https://ecommerceberlin.com/speaking?utm_source=email&utm_medium=email&utm_campaign=system_mailing_exhibitors?utm_source=email&utm_medium=email&utm_campaign=system_mailing_exhibitors"])
Submit your presentation proposal
@endcomponent

Best of luck!
{{$footer}}

@endcomponent

@az company_id's do wykluczeń: 2392,2355,2381,1649,2384,2130,2341,2395,1614,1552,2352,2132,1932,1932,1081,2347,2353,2386,2182


Get-ChildItem -File and -Directory should be mutually exclusive

A minor problem, and perhaps rare in practice.
Get-ChildItem's -File and -Directory switches limit the output to files only / directories only, respectively.
Therefore, it is pointless to allow both of them to be specified, given that no filesystem item can be both a file and a directory, and the output will always be nothing (null collection).
Steps to reproduce
Get-ChildItem -File -Directory

Expected behavior
An error indicating that incompatible switches were used, which would currently come in the form of parameter set cannot be resolved using the specified named parameters.
Actual behavior
The combination of these switches is allowed, and nothing is output.
Environment data
PowerShell Core v6.0.0-beta.8 on macOS 10.13
PowerShell Core v6.0.0-beta.8 on Ubuntu 16.04.3 LTS
PowerShell Core v6.0.0-beta.8 on Microsoft Windows 10 Pro (64-bit; v10.0.15063)
Windows PowerShell v5.1.15063.674 on Microsoft Windows 10 Pro (64-bit; v10.0.15063)

I can work on this one.

@DdWr consider it yours!  I'm only able to assign to collaborators, so don't worry about that, but I'll remove the Up-for-Grabs label.  Thanks!

@mklement0 should -File -Directory in conjunction actually return everything and not be exclusive? Should it be an or and not an and.

@thezim:
It's debatable; here are the reasons I went with the AND interpretation, which led me to request that the switches be mutually exclusive:

Specifying neither switch gives you both files and directories by default; i.e, the default is everything, and adding either -File or -Directory takes things away, so that using both -File and -Directory would take everything away, which is why I think it makes no sense.

Get-ChildItem's help currently states:

To get only directories, use the -Directory parameter and omit the -File parameter. To exclude directories, use the -File parameter and omit the -Directory parameter

A potential reason to go with OR logic is that it would enable adding additional switches that go beyond the basic file/directory dichotomy, though arguably that is covered by the existing -Attributes parameter.
@SteveL-MSFT, any thoughts?

hmmm. and/or logic would be nice you are wrapping this and asking if files and folders should be included. being able to pass the bools directly to it like so -Directory:$IncludeDirectories -File:$IncludeFiles. With xor logic you would have to do something like if(:$IncludeDirectories){$params.add('Directory', $true)}.
Also, while I haven't looked at the cmdlet or provider, implementing exclusive parameters can become tricky if there are parameter sets already in use.

Thinking about this, I can see how -File and -DIrectory could be interpreted as OR or AND.  I don't have a strong opinion either way on this one.  However, if we change it so that the flag means "Include" (aka OR) where we now return everything compared to now where we return nothing (aka AND), that could break someone who was constructing the args programmatically.
Personally, I think this issue probably isn't worth spending additional time on vs some other issues and would propose Won't Fix and leave it the way it is.

Both of your claims don't seem correct

Get-ChildItem's -File and -Directory switches limit the output to files only / directories only, respectively.

This outputs a FileInfo object, so the -Directory switch is not limiting the output to only directories:
    Get-ChildItem -Directory D:\Testfolder\testfile.txt

Therefore, it is pointless to allow both of them to be specified, given that no filesystem item can be both a file and a directory, and the output will always be nothing (null collection).

This outputs a FileInfo object, so the output when specifying both switches is not always nothing:
Get-ChildItem -File -Directory D:\Testfolder\testfile.txt

@HumanEquivalentUnit I think you hit upon another edge case.  Since you provided a file to -Path, it can't find any directories.  Perhaps technically, it should have returned an error that it can't get child items of a file regardless if -Directory or -File was provided.


The link to BigUInt fails.

Crate name
cryptocol
Build failure link
https://docs.rs/cryptocol/0.8.5-fix.1/cryptocol/number/big_uint/struct.BigUInt.html#struct.BigUInt
Requested RAM limit
No response
Requested timeout
No response
Requested number of targets
No response
Why your crate needs the resource increases
So far, I haven't had any problem to publish my crate cryptocol. But from version 0.8.5 on, I have a problem in the published documents. In the documents on the website (https://docs.rs/cryptocol/0.8.5-fix.1/cryptocol/index.html), the link to the page of struct BigUInt (for example, https://docs.rs/cryptocol/0.8.5-fix.1/cryptocol/number/big_uint/struct.BigUInt.html#struct.BigUInt) fails. Other links such as SmallUInt (https://docs.rs/cryptocol/0.8.5-fix.1/cryptocol/number/small_uint/trait.SmallUInt.html#trait.SmallUInt) work fine in the documents on the same website.
When I compiled the documentation by "cargo doc" on my local machine, I found that the compilation of documents were successful and all the link including the link to BigUInt in the documents worked fine. However, it does not work only on website. Can you please check whether or not  my crate cryptocol reaches the limitation? If the reason why the link fails is due to the server, please fix it. If the reason is in my documentation, please let me know how to fix it.
Thank you in advance.

hi,
thank you for the report, I couldn't dig into this yet, as to why the links don't work.
In the past these kind of issues were mostly a problem in the crate itself, and only sometimes an issue with cross crate links.

Please read the post #2676. I wrote the problem in far more detail.


Enhancement: Generate and include baseline for phpstan

This PR

[x] generates and includes a baseline for phpstan

❗ Blocks #807.
💁♂ Run
$ composer stan-baseline

to regenerate phpstan-baseline.neon.

Build failure is probably related to https://github.com/phpstan/phpstan/issues/2558.

I did not know this was a feature of phpstan. I can see from https://medium.com/@ondrejmirtes/phpstans-baseline-feature-lets-you-hold-new-code-to-a-higher-standard-e77d815a5dff what it provides, and that looks great for all new code moving forward.
I have several questions:

How do we know to bring existing code up to spec so we can reduce the number of exceptions-to-the-rule in this new file?
While refactoring something that is excepted in this baseline, what is the best way to tell PHPStan that now is the time when it's OK to flag something that is in the baseline file?
What are the best practices that you have found when working with this?

@ericpoe

How do we know to bring existing code up to spec so we can reduce the number of exceptions-to-the-rule in this new file?

We can tackle errors one by one.
Generally speaking, most errors can be avoided by

writing strict, defensive code
making use of the type system (and adding new types)
removing useless conditions and statements

While refactoring something that is excepted in this baseline, what is the best way to tell PHPStan that now is the time when it's OK to flag something that is in the baseline file?

phpstan will terminate with a non-zero exit code when we

fix an error that is ignored via  phpstan-baseline.neon
introduce an error that is not ignored via phpstan-baseline.neon

The baseline can be regenerated anytime by running
$ composer stan-baseline

However, it would be in our best interest to let phpstan-baseline.neon shrink over time.

What are the best practices that you have found when working with this?

In personal projects, I do not use the baseline feature.
Instead, I use the max level by default, along with additional, stricter rules, for example

phpstan/phpstan-deprecation-rules
phpstan/phpstan-strict-rules
localheinz/phpstan-rules

When I encounter a few errors that I believe should be ignored for now (perhaps to avoid BC breaks), I list these in phpstan.neon.
In work projects, most of which involve legacy code bases, I use this feature. There, I like to fix issues one by one, or kinds of issues one by one.
Does this answer your questions?

@ericpoe
I have adjusted #807 and now raise the phpstan level to max.
When you look at the diff you get an idea of the things that need to be done.

@ericpoe
I have to correct myself: I just started using the baseline feature for phpstan in https://github.com/localheinz/github-changelog/pull/318.

@localheinz This looks great! I did some experimentation with using the baseline and I think this will be a good move.
I'll create a ticket to add instructions on how and when to rebuild the PHPStan baseline file (when: when a refactor fixes a problem contained within)

Thank you, @ericpoe!


Can not build on M1 Mac.

Hi, this looks a nice project!
I installed pen from homebrew on M1 Mac.
But failed to build the newly created project.
It seems that target-triple which is put for rustc by pen is not valid.
At least in my environment, rustc can accept aarch64-apple-darwin, not  arm64-apple-darwin.
❯ pen create foo
❯ cd foo
❯ pen build
[1/20] compiling module of /Users/monochrome/foo/.pen/packages/d3ac9f08bee9d692/String.pen
[2/20] resolving dependency of /Users/monochrome/foo/Main.pen
[3/20] resolving dependency of /Users/monochrome/foo/Main.pen
[4/20] compiling module of /Users/monochrome/foo/.pen/packages/d3ac9f08bee9d692/Error.pen
[5/20] resolving dependency of /Users/monochrome/foo/.pen/packages/c157c35e8d26a22f/MainFunction.pen
[6/20] resolving dependency of /Users/monochrome/foo/.pen/packages/c157c35e8d26a22f/MainFunction.pen
[7/20] resolving dependency of /Users/monochrome/foo/.pen/packages/c157c35e8d26a22f/Os.pen
[8/20] resolving dependency of /Users/monochrome/foo/.pen/packages/c157c35e8d26a22f/Os.pen
[9/20] generating object file for /Users/monochrome/foo/.pen/packages/d3ac9f08bee9d692/String.pen
[10/20] generating object file for /Users/monochrome/foo/.pen/packages/d3ac9f08bee9d692/Error.pen
[11/20] compiling module of /Users/monochrome/foo/.pen/packages/d3ac9f08bee9d692/List.pen
[12/20] generating object file for /Users/monochrome/foo/.pen/packages/d3ac9f08bee9d692/List.pen
[13/20] compiling module of /Users/monochrome/foo/.pen/packages/c157c35e8d26a22f/Os.pen
[14/20] compiling module of /Users/monochrome/foo/.pen/packages/c157c35e8d26a22f/MainFunction.pen
[15/20] generating object file for /Users/monochrome/foo/.pen/packages/c157c35e8d26a22f/MainFunction.pen
[16/20] compiling module of /Users/monochrome/foo/Main.pen
[17/20] /Users/monochrome/foo/.pen/packages/d3ac9f08bee9d692/pen-ffi.sh -t arm64-apple-darwin /Users/monochrome/foo/.pen/objects/d3ac9f08bee9d692.a
x1b[0;31merrorx1b[0m: /Users/monochrome/foo/.pen/objects/d3ac9f08bee9d692.a
/Users/monochrome/foo/.pen/packages/d3ac9f08bee9d692/pen-ffi.sh -t arm64-apple-darwin /Users/monochrome/foo/.pen/objects/d3ac9f08bee9d692.a
x1b[0;31merrorx1b[0m: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `rustc - --crate-name ___ --print=file-names --target arm64-apple-darwin --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` (exit status: 1)
  --- stderr
  error: Error loading target specification: Could not find specification for target "arm64-apple-darwin". Run `rustc --print target-list` for a list of built-in targets

[18/20] generating object file for /Users/monochrome/GitHub/foo/Main.pen
[19/20] generating object file for /Users/monochrome/GitHub/foo/.pen/packages/c157c35e8d26a22f/Os.pen
[20/20] /Users/monochrome/GitHub/foo/.pen/packages/c157c35e8d26a22f/pen-ffi.sh -t arm64-apple-darwin /Users/monochrome/GitHub/foo/.pen/objects/c157c35e8d26a22f.a
x1b[0;31merrorx1b[0m: /Users/monochrome/GitHub/foo/.pen/objects/c157c35e8d26a22f.a
/Users/monochrome/GitHub/foo/.pen/packages/c157c35e8d26a22f/pen-ffi.sh -t arm64-apple-darwin /Users/monochrome/GitHub/foo/.pen/objects/c157c35e8d26a22f.a
x1b[0;31merrorx1b[0m: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `rustc - --crate-name ___ --print=file-names --target arm64-apple-darwin --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` (exit status: 1)
  --- stderr
  error: Error loading target specification: Could not find specification for target "arm64-apple-darwin". Run `rustc --print target-list` for a list of built-in targets

error: command exited with status code 1

Thank you for the bug report!
It should be fixed on the latest version. Can you try using it?

Yes, now it works fine!
Hello world!
thanks for your response.


Neither Cutting nor Embarkment produce any graphical differentiation once applied to a highway

Description
If you tag a highway (or a segment) with Cutting or Embarkment there is no difference with the depiction of the standard highway Tunnels and Bridges show a different depiction but the first ones no.
Version
2.0.3
What browser are you seeing the problem on? What version are you running?
Version 114.0.5735.199 (Official Build) (64-bit)
The OS you're using
No response
Steps to reproduce
Just draw a way or use a existing one and place in a segment the different attributes (Structure) like Tunnel, Bridge, Embarkment and Cutting. And you will see the difference of depiction. Embarkment and Cutting has no difference.
Ford has no difference as well, but that's equal to ID
The browser URL at the time you encountered the bug
https://rapideditor.org/rapid#background=Bing&datasets=fbRoads,msBuildings&disable_features=boundaries&map=18.48/-17.49807/-67.47451
The auto-detected useragent string for your browser (leave blank if you're manually filling this form out)
No response

Thanks for the report!  I just restored the style for cuttings/embankments.
I see this a bunch on railroads..


Don't drop Binding Requests in Controlled Agent

A controlled Agent would discard incoming Binding Requests if it didn't
cause the pair to be selected. For UDP Candidate this would be
interpreted as packet loss. For TCP Candidates not responding with a
Binding Success could be interpreted as a failure.
Firefox's ICE Agent would disconnect TCP Candidates because of this
behavior.
Resolves to pion/webrtc#2125
Resolves to pion/webrtc#1356
See https://bugzilla.mozilla.org/show_bug.cgi?id=1756460

@jech I have it now! Mind trying again?
The behavior would exhibit itself if FireFox made another request before it responded to Pion. I was able to reproduce by adding some arbitrary delays, then debugged on the FireFox side.

Very slight improvement:

works when Brave (Chromium) is the offerer;
fails when Brave is the answerer;
fails with Firefox, both as offerer and as answerer.

@jech does http://<IP_ADDRESS>:8080/ work for you on FireFox (Pion is answerer)
Will try the other configurations now!

Yes, it works fine.

Oh yes that makes sense! Let me try that now also.  In my example I am only allowing TCP.

Do you trickle candidates?
Is the browser sharing candidates, or just the server?

Do you trickle candidates?

Yes.

Is the browser sharing candidates, or just the server?

Both.

@jech To repro easier I started https://github.com/Sean-Der/ice-tcp-test it allows the browser to be Offer or Answer. Right now it only does non-Trickle.

I blocked all UDP traffic on my server sudo iptables -I INPUT -p udp -j DROP && sudo ip6tables -I INPUT -p udp -j DROP
I run and set my public IP go run main.go <IP_ADDRESS>

This example works for me in FireFox/Brave/Chrome.
I will add Trickle tomorrow and hopefully I am able to reproduce!

@jech oh good point! I moved it to http://<IP_ADDRESS>:8080/ all tests done on FireFox+Chrome on MacOS. I have IPv4 and IPv6 connectivity working.

Tested with IPv4/IPv6 unblocked
Tested with IPv4 blocked
Tested with IPv6 blocked

Everything seems to be working with me. Mind testing again?

That's bizarre... I've successfully blocked UDP, and everything works as expected (host-reflexive TCP candidate).  Let me compare with Galene.

Glad to hear it works! Thank you so much for all your patience/debugging help on this.
High point of my week to have these longstanding issues finally figured out. I have been a bit hesitant to take these on....

Bizarrer and bizarrer.  Your code works fine even when run on my server.  I've tried copying all the details from your code into Galene, I've tried disabling trickle ICE in Galene, I've tried disabling ICE restarts in Galene, and it still fails.
I'm at a loss.

@jech I am going to merge + pin, and then will deploy Galene to my server!
I don't have any good debugging ideas. I spent a lot of time printf debugging FireFox, no good single source for info with this stuff :/

It appears like it's not a matter of who is the offerer: the first few TCP candidates work, then it starts failing.  Only way to fix the issue is to restart the server.
For now, you may test at https://galene.org:8444/group/public/ (note the non-standard port, port 8443 is running mainline Galene).
To test on your own server, do
git clone -b ice-tcp https://github.com/jech/galene/
cd galene
CGO_ENABLED=0 go build
mkdir groups
echo '{"presenter":[{}]}' > groups/public.json
rsync -r galene public groups server.example.com:
ssh server.example.com ./galene -tcp-port 8888

Then visit https://server.example.com

@jech Does adding a replace statement make a difference for you?
diff --git a/go.mod b/go.mod
index 1f4692d..1a5931e 100644
--- a/go.mod
+++ b/go.mod
@@ -17,3 +17,5 @@ require (
        golang.org/x/crypto v0.0.0-20220214200702-86341886e292
        golang.org/x/sys v0.0.0-20220209214540-3681064d5158
 )
+
+replace github.com/pion/ice/v2 => github.com/pion/ice/v2 v2.2.1-0.20220221210118-fca128a058ec

I tried locally and got the same thing, but I believe the replace statement fixed it! I don't know Go modules well enough to dump what exact versions are being used/dependency tree.

Not for me, unfortunately.  I'm seeing the same results as above: good behaviour for the first few connections after server restart, then TCP candidates are broken until I restart the server.
Very weird.  Perhaps a data structure somewhere that accumultates obsolete data?

@jech I just tested 100 PeerConnections with ice-tcp-test and everything worked!
Will test with Galene now


fix: restore process duplicates did peers

Signed-off-by: Cristian G<EMAIL_ADDRESS>Description:
This PR fixes the restore process which was duplicating and inserting Peer DIDs improperly resulting in duplication.
Checklist:

[x] My PR follows the contribution guidelines of this project
[x] My PR is free of third-party dependencies that don't comply with the Allowlist
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have checked the PR title to follow the conventional commit specification

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
41 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.04%) to 39.55%

Files with Coverage Reduction
New Missed Lines
%

org/hyperledger/identus/walletsdk/pluto/PlutoRestoreTask.kt
41
67.8%

Totals

Change from base Build<PHONE_NUMBER>:
0.04%

Covered Lines:
2623

Relevant Lines:
5899

💛  - Coveralls


python traceback lexer should consider text outside the tracebac/exception blocks as text

(Original issue 437 created by ronny on 2009-09-17T09:46:32+00:00)
that would enhance the display of pastes of program output that ends with/contains traces

(Original issue was assigned to thatch)
(Original issue 437 last updated on 2009-09-19T09:06:30+00:00)
(Issue automaticaly closed due to status in Bitbucket: resolved)

(Original comment by gbrandl on 2009-09-19T09:06:30+00:00)
And merged.

(Original comment by thatch on 2009-09-19T00:43:31+00:00)
Done in [f7bea1f377e7] in my branch.


Tests fail for ruby19 due to unpackaged file

Running the tests with the released 1.1.3 gem causes an error because the multibyte.txt file isn't included in the gem.

Try 1.1.4? Should have the file present. Thanks for the report.


enableReinitialize ignores space... Is this a bug?

enableReinitialize ignores space... Is this a bug?❓
I am using "formik": "^2.0.1" and here is my situation:
      <Formik
        validateOnBlur={false}
        validateOnChange={false}
        enableReinitialize={true}
        validationSchema={validationSchema}
        initialValues={nextSelectedTemplate}
        onSubmit={handleFormSubmit}
      >

I have only one field
<Field disabled={!canEdit} component={FormikText} name="template_subject" size="medium" />
Here is the scenario: Let's say my initial value for template_subject is "abc" then I changed it to "abc " by adding a space. Then I submit the form and the backend trims the value and returns "abc". At this point form does not reinitialize itself as it compares  "abc " and "abc" and returns equal...
Is this a bug or am I missing something...
Thank you,

then I changed it to "abc " by adding a space.

Can you explain what did you change exactly, the initialValue prop or the value inside your form.

@timurcatakli I think I understand what is happening here. When you initialize your form, you are passing
initialValues={{ template_subject: "abc" }}

When you update your values by modifying your input, you are making Formik's current values reflect "abc ", then on submission you are updating the value to "abc" and then passing that back to initialValues. The thing is, initialValues is still "abc" -- it never changes unless you pass a new value specifically to Formik via the initialValues prop. When you submit and pass it back a "new" value, it actually ends up being an equivalent value, { template_subject: "abc" } and so Formik doesn't detect a change.
You can call resetForm directly from the submitForm function and pass it your new values, and this will force an update to initialValues.

@timurcatakli I think I understand what is happening here. When you initialize your form, you are passing
initialValues={{ template_subject: "abc" }}

When you update your values by modifying your input, you are making Formik's current values reflect "abc ", then on submission you are updating the value to "abc" and then passing that back to initialValues. The thing is, initialValues is still "abc" -- it never changes unless you pass a new value specifically to Formik via the initialValues prop. When you submit and pass it back a "new" value, it actually ends up being an equivalent value, { template_subject: "abc" } and so Formik doesn't detect a change.
You can call resetForm directly from the submitForm function and pass it your new values, and this will force an update to initialValues.


Fix Issue 203

Fixes #203 by adding DFL/FFL integer 7 to the supported list (per forestFunctionality and domainFunctionality), and added WS2016 upper bound DFL/FFL from Exchange supportability matrix.
Edit: I don't know how I accidentally referenced c9e1c03 here but whatever.

This change is

The patch to AD002 isn’t correct. It doesn’t update $MaxFunctionalLevel.
From: Chris Brown<EMAIL_ADDRESS>Sent: Saturday, May 20, 2017 8:12 AM
To: ExchangeAnalyzer/ExchangeAnalyzer
Cc: Subscribed
Subject: [ExchangeAnalyzer/ExchangeAnalyzer] Fix Issue 203 (#204)
Fixes #203https://github.com/ExchangeAnalyzer/ExchangeAnalyzer/issues/203 by adding DFL/FFL integer 7 to the supported list (per forestFunctionalityhttps://msdn.microsoft.com/en-us/library/cc223274.aspx and domainFunctionalityhttps://msdn.microsoft.com/en-us/library/cc223273.aspx), and added WS2016 upper bound DFL/FFL from Exchange supportability matrix.

You can view, comment on, or merge this pull request online at:
https://github.com/ExchangeAnalyzer/ExchangeAnalyzer/pull/204
Commit Summary

Merge pull request #202 from ExchangeAnalyzer/development
Added WS2016 DFL/FFL compatibility

File Changes

M Tests/AD001.ps1https://github.com/ExchangeAnalyzer/ExchangeAnalyzer/pull/204/files#diff-0 (5)
M Tests/AD002.ps1https://github.com/ExchangeAnalyzer/ExchangeAnalyzer/pull/204/files#diff-1 (3)

Patch Links:

https://github.com/ExchangeAnalyzer/ExchangeAnalyzer/pull/204.patch
https://github.com/ExchangeAnalyzer/ExchangeAnalyzer/pull/204.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/ExchangeAnalyzer/ExchangeAnalyzer/pull/204, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOe4379p3AEhQ_WZN_yvyVBdnDtFR4_pks5r7tiBgaJpZM4NhR-G.


Support of Media Responses

I'm working right now on actions which use Media Responses but they don't work on AIY Voice. Is there any plan to support it on AIY Voice?
https://developers.google.com/actions/assistant/responses#media_responses

@hyzhak The AIY library just provides a wrapper around the Assistant SDK, so we're limited to what that supports. Does https://github.com/googlesamples/assistant-sdk-python/issues/132 describe your issue accurately? If not, you could open an upstream issue.

@drigz thanks! I've created dedicated issue https://github.com/googlesamples/assistant-sdk-python/issues/203 because Media Response is a very fresh thing, so that issue could be obsolete.

@drigz @dmitriykovalev could you get new Assistant SDK, so we be able to try Media Response here?
This issue might be solved by new update https://github.com/googlesamples/assistant-sdk-python/issues/203

As I see you still use old 0.1.0 version here https://github.com/google/aiyprojects-raspbian/blob/aiyprojects/src/setup.py#L17 but we already could use modern one 1.0.0 https://github.com/googlesamples/assistant-sdk-python/blob/master/google-assistant-library/CHANGELOG.rst

Hi Guys,
Have you got information regarding that?

It works with x86 version of SDK
it does not on RaspberryPi3 /B+

Tks


When I click on the notification, it is marked as read, but it doesn't open the GitHub PR like it used to

🔍 Is there already an issue for your problem?

[X] I have checked older issues, open and closed

📝 Description
When I click on the notification, it is marked as read, but it doesn't open the GitHub PR like it used to.
Maybe this isn't an issue, and it's a new setting I need to enable after the last version release?
🪜 Steps To Reproduce

Open Gitify desktop
Click on a PR notification

Gitify Version
5.14.0
Operating System
macOS
GitHub Account
Combination
📸 Screenshots
No response

@mrodriguez90 - does it open the notification at all?

@mrodriguez90 - does it open the notification at all?

@setchy nope:
https://github.com/user-attachments/assets/96ec4a8e-0b80-4002-bb20-d3ea05368e65

Interesting, thanks for the recording.
Is there anything noteworthy in the console log or app logs (see: https://www.gitify.io/faq/)?

Interesting, thanks for the recording.
Is there anything noteworthy in the console log or app logs (see: https://www.gitify.io/faq/)?

@setchy yes, I found this:
[2024-09-25 12:57:49.459] [error] Error occurred while fetching notification html url AxiosError: Request failed with status code 404
    at xr (file:///Applications/Gitify.app/Contents/Resources/app.asar/build/js/app.js:60:17247)
    at XMLHttpRequest.A (file:///Applications/Gitify.app/Contents/Resources/app.asar/build/js/app.js:60:21926)
    at ra.request (file:///Applications/Gitify.app/Contents/Resources/app.asar/build/js/app.js:60:30099)
    at async ii (file:///Applications/Gitify.app/Contents/Resources/app.asar/build/js/app.js:60:47773)
    at async file:///Applications/Gitify.app/Contents/Resources/app.asar/build/js/app.js:60:65736
    at async _o (file:///Applications/Gitify.app/Contents/Resources/app.asar/build/js/app.js:60:65634)

@setchy I solved this by signing out and then signing back in (I should have tried that earlier; my bad). It seems something happened with the repository permissions after updating Gitify.
Thanks for your help!
Side note: It was confusing that I could see notifications for all the repos, but the URL/redirect didn't work.

Glad to hear that you found a fix.
I'll also look to update this logic to have a "worst case" fallback for future


Improve support for generated samples that require specifying an endpoint

Original issue: https://github.com/googleapis/java-aiplatform/issues/668

These samples are auto-generated and supposed not to be fully executable for now.


Give me a "One Bluesky World" experience. Change the default of Settings/Languages/Content Languages to None, and auto-translate all posts.

Is your feature request related to a problem? Please describe.
This is a big ask, but in an ideal world, given the global nature of the user base, this is what I would like everyone to experience:
Describe the solution you'd like

By default, Settings/Languages/Content Languages would be None. This way all languages appear in my feeds.

Bsky would auto-translate all posts, with a link below to show original language.

Describe alternatives you've considered
Manually clicking translate on each post. However, even if this function did not take me to external Google Translate, it is still not as lovely as reading posts in the language which I understand, with no action on my part.
Additional context
This is related to #404, #1327, and #2863 - however, this request takes it to the next logical level.
If I had to add an API key for whatever translation service like OpenAI or Google, I would do it. If I had to pay for Bsky Pro/Global for this, I would do it. But, ideally this would be a base feature of bsky.app to enhance everyone's experience.
To lower translation costs, maybe instead of default behavior, this would be opt-in behavior [0] in Settings/Languages. This way only people who care about it would incur the cost. Maybe this would be a way to beta test the idea.
[0] This might be a "One Bluesky World - Beta" button or similar name, which sets content language=none, and sets a auto-translate=on.
Thanks!

To avoid all cost, maybe the Settings/Languages "One Bluesky World - Beta" button would take the user through a flow where a Google/OpenAI API key was explained and allowed to be added?

auto-translate all posts

I would prefer: a setting that lets me decide which languages should be auto-translated. I'd only need it for the languages that I don't understand, and only for the ones I see often in my feeds.


python3Packages.yalexs: 1.1.22 -> 1.1.23

Description of changes
Update to latest upstream release 1.1.23

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 164506 run on x86_64-linux 1

3 packages built:

home-assistant-component-tests.august
python310Packages.yalexs
python39Packages.yalexs


Inline functions

While there may be some work to be done around simple inline functions that exist only for their reified type convenience, inline functions appear to be detected properly by jacoco and should be tested normally. Closing.


Cannot identify the type of some matrix in ogbn-* dataset[BUG]

Describe the bug
A clear and concise description of what the bug is.
Some of the variables in the ogbn-* dataset cannot be identified by the sp.issparse(matrix) and isinstance(matrix, np.ndarry),
causing the data not stored in save_data.
To Reproduce
See the screenshots
Expected behavior
Store the data.
Screenshots
The edge variable is not identified and is therefore not stored. See the utils.py.

In the pytest test_data_loading.py, the edge variable is none.

Got it. I am working on it.

Is this still an issue? I am closing this issue given that #365 has been merged. Please comment if you still find it problematic.

When I generate the new npz file for ogbn-arxiv yestarday, there is some other issue with running pyteston it.
But this may not related to the save_data(), I will try to figure it out tonight.

Closing since it seems this is no longer a problem.


Webhook validation for v1alpha2 Stack CRD

When a Stack CR instance is created, it should be validated:

It must have a name set in the spec
It must have at least one version in the versions array
For each version in the versions array, it should contain a URL, a pipeline URL and a triggers URL
Each pipeline URL should contain a Sha256
If the desiredState is set, it must be set to one of active or inactive
At least one Image should be set for each version in the versions array

For each of these conditions, if the admission controller webhook rejects the object, it should return a message indicating what is not correct, and how to fix it (if it's not obvious).  For example, saying "The Stack instance must contain a pipeline URL for version 0.2.5" is sufficient because any URL can be given.  For desiredState it may be necessary to list the valid values.

merged, closing


Request for manual data and decomposition temple

There is no original file for the decomposition template in your project, can you provide the original file? In addition, we would like to use other LLMs to conduct the automatic evaluation. Could you provide us with the manual annotation results mentioned in Section 4 so that we can verify the effectiveness of other LLMs? We will share the results of using other models for evaluation with you.

Sorry, I seem to have seen the manually annotated data, but the decomposition template is still needed.


Extra attributes/columns for Properties verbose names

Property currently only has name and name_reverse attributes.
It would be great if we could emulate what verbose_name does for model classes + fields for Properties to allow us to display different wordings to users. I.e. add optional attributes e.g. verbose_name and verbose_name_reverse.
In our project, we use verbose_names as a bit of a workaround way for German versions of entity and field names because German is the project's primary language (and APIS doesn't support translations out of the box AFAIA, and it also wouldn't have made sense to pepper the actual code with German words).
We've already switched the display names of models and fields to verbose_name in many places in apis-core-rdf, which is great, but unfortunately a thing that's just not possible for properties/triples.
PS: I don't know if this is something that's already included in the new relations implementation – haven't had time to look at it yet – in which case this issue can be closed again right away.

@b1rger AFAIK the new relations are going to be based on model classes (!?), which should render this moot (soon-ish). Am therefore closing this.


Improve performance when huge connections arrive within a short period

The backlog parameter pass to listen() is too low, when huge connections arrive within a short period, many of them will result a very high latency or just timeout.
To improve, we could set the backlog parameter to the maximum value operation system allowed.
Also see: https://github.com/dotnet/corefx/issues/9680

The reason about why increase backlog parameter could improve latency:
When using reactor style api (such as epoll),  accept requires READ event, when READ event arrive, the acceptor can accept up to $backlog connections, so the flow would like (notice epoll has an internal event queue):
accept 128 connections => handle 128 connections => accept 128 connections => handle 256 connections => ... accept 128 connections => handle 9600 connections => ...

The time until accept a new connection will be longer and longer when more connections accepted. I don't know if this apply to iocp, but on linux it improves much.

Following is benchmark results on ubuntu 18.04 (somaxconn = 65535):
Execute Asp.NET Core application:
taskset -c 0 dotnet run -c Release # single core
taskset -c 0,1 dotnet run -c Release # dual core

Benchmark:
taskset -c 2,3 ./wrk -c 10000 -t 2 -d 60s --latency --timeout 100s http://<IP_ADDRESS>:5000

Before this patch, socket transport, single core:
Running 1m test @ http://<IP_ADDRESS>:5000
  2 threads and 10000 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     3.55s     5.50s    0.92m    93.43%
    Req/Sec     2.48k     1.43k    7.74k    68.94%
  Latency Distribution
     50%    1.98s
     75%    2.82s
     90%    4.86s
     99%   28.36s
  226931 requests in 1.00m, 26.62MB read
Requests/sec:   3776.27
Transfer/sec:    453.59KB

After this patch, socket transport, single core:
Running 1m test @ http://<IP_ADDRESS>:5000
  2 threads and 10000 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.24s   582.47ms   6.56s    85.50%
    Req/Sec     2.33k     1.48k    7.82k    66.17%
  Latency Distribution
     50%    2.15s
     75%    2.45s
     90%    2.79s
     99%    4.56s
  258841 requests in 1.00m, 30.36MB read
Requests/sec:   4309.40
Transfer/sec:    517.63KB

Before this patch, socket transport, dual core:
Running 1m test @ http://<IP_ADDRESS>:5000
  2 threads and 10000 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.54s     3.51s   38.58s    96.36%
    Req/Sec     4.96k     3.26k   15.69k    66.81%
  Latency Distribution
     50%  936.32ms
     75%    1.06s
     90%    1.30s
     99%   22.09s
  561802 requests in 1.00m, 65.90MB read
Requests/sec:   9348.74
Transfer/sec:      1.10MB

After this patch, socket transport, dual core:
Running 1m test @ http://<IP_ADDRESS>:5000
  2 threads and 10000 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   996.85ms  187.23ms   1.81s    71.65%
    Req/Sec     5.11k     3.06k   17.23k    66.89%
  Latency Distribution
     50%  980.17ms
     75%    1.11s
     90%    1.24s
     99%    1.55s
  568251 requests in 1.00m, 66.66MB read
Requests/sec:   9455.22
Transfer/sec:      1.11MB

Before this patch, libuv transport, single core:
Running 1m test @ http://<IP_ADDRESS>:5000
  2 threads and 10000 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.40s     2.57s   35.01s    93.99%
    Req/Sec     3.03k     2.35k   10.81k    65.49%
  Latency Distribution
     50%    1.89s
     75%    2.16s
     90%    3.05s
     99%   15.31s
  247864 requests in 1.00m, 29.07MB read
Requests/sec:   4129.03
Transfer/sec:    495.97KB

After this patch, libuv transport, single core:
Running 1m test @ http://<IP_ADDRESS>:5000
  2 threads and 10000 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.91s   613.18ms   4.38s    84.32%
    Req/Sec     3.44k     2.70k   12.94k    66.43%
  Latency Distribution
     50%    1.85s
     75%    2.02s
     90%    2.57s
     99%    4.03s
  303320 requests in 1.00m, 35.58MB read
Requests/sec:   5046.88
Transfer/sec:    606.22KB

Before this patch, libuv transport, dual core:
taskset -c 2,3 ./wrk -c 10000 -t 2 -d 60s --latency --timeout 100s http://<IP_ADDRESS>:5000
Running 1m test @ http://<IP_ADDRESS>:5000
  2 threads and 10000 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.78s     3.84s   44.59s    95.99%
    Req/Sec     4.20k     2.73k   14.36k    64.37%
  Latency Distribution
     50%    1.10s
     75%    1.31s
     90%    1.74s
     99%   23.15s
  415795 requests in 1.00m, 48.77MB read
Requests/sec:   6919.36
Transfer/sec:    831.13KB

After this patch, libuv transport, dual core:
Running 1m test @ http://<IP_ADDRESS>:5000
  2 threads and 10000 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.30s   347.21ms   2.67s    85.34%
    Req/Sec     4.47k     2.68k   11.74k    63.52%
  Latency Distribution
     50%    1.32s
     75%    1.47s
     90%    1.61s
     99%    2.39s
  445916 requests in 1.00m, 52.31MB read
Requests/sec:   7424.09
Transfer/sec:      0.87MB

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

Closing as this conflicts with the Backlog option we added. Also we certainly wouldn't just increase the backlog to int.MaxValue, it would need to be configurable (which is what we've done).

@303248153 This is now configurable via SocketTransportOptions and LibuvTransportOptions.
https://github.com/aspnet/AspNetCore/pull/15111


Use NSURLComponents robust initializer

(lldb) p NSURLComponents * $solution1 = [NSURLComponents componentsWithString:@"http://www.elle.fr/Deco/News-tendances/collection-Noel-H-M-Home#Banc-en-bois-Madam-Stoltz"]
(lldb) p ((NSURLComponents *)($solution1)).fragment
(__NSCFString *) $13 = 0x0000600003c8fba0 @"Banc-en-bois-Madam-Stoltz"
(lldb) p ((NSURLComponents *)($solution1)).URL
(NSURL *) $14 = 0x0000600001da7a00 @"http://www.elle.fr/Deco/News-tendances/collection-Noel-H-M-Home#Banc-en-bois-Madam-Stoltz"

NSURL.URLWithString is prohibitive of fragments. Switching to NSURLComponents.componentsWithString API to support a more robust serialization mechanism

@mikezucc - Thanks for the PR!

Can you run make integration_test locally and update your PR with the modified files?
Add a test under the objective-c integration tests to show this behavior works? that test should fail without your change

CLOSING! not needed as it seems XCode 10 toolchain has a buffed NSURL.URLWithString !!