Traefik 2.8 Latest Push Won't Start

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?
The latest update pushed 16 hours ago will not load with file provider. This instance was working fine yesterday with no issue on the latest 2.8 build. My server grabbed the latest push from 16 hours ago and now Traefik won't start on any version 2.8 build. 2.7 works without issue with no changes to the Traefik configuration.
This has happened on two different VM's I'm running with very similar configuration (one in DMZ and one in LAN) and I've confirmed 2.7 still works while 2.8 is broken.
What did you see instead?
Container fails with the following errors in my Fedora console (running Podman - this has not been an issue before)
7:54 AM
2022/08/12 07:54:46 command traefik error: strconv.ParseBool: parsing "yes": invalid syntax
traefik
7:54 AM
Started container-traefik.service - Podman container-traefik.service.
systemd
What version of Traefik are you using?
I've confirmed this is an issue with v2.8 and 2.8.2. If I pull 2.7, the configuration works as it previously had.
docker.io/library/traefik                   latest        186b1b030a2b  16 hours ago   108 MB
docker.io/library/traefik                   v2.8.2        186b1b030a2b  16 hours ago   108 MB
docker.io/library/traefik                   v2.8          186b1b030a2b  16 hours ago   108 MB
docker.io/library/traefik                   v2.7          5c54a6d9bbe9  6 weeks ago    107 MB
What is your environment & configuration?
global:
  checkNewVersion: yes
  sendAnonymousUsage: no
api:
#  insecure: true
  dashboard: true
serversTransport:
  insecureSkipVerify: true
entryPoints:
  web:
    address: :80
    http:
      redirections:
        entryPoint:
          permanent: true
          to: websecure
          scheme: https
          priority: 1000
  websecure:
    address: :443
    proxyProtocol:
      insecure: true
    http:
      tls:
        options: default
        certResolver: letsEncrypt
        domains:
          - main: "mydomain.com"
            sans:
              - "*.mydomain.com"
certificatesResolvers:
  letsEncrypt:
    acme:
      caServer: "https://acme-v02.api.letsencrypt.org/directory"
      #caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
      email<EMAIL_ADDRESS>      storage: /acme.json
      keyType: 'RSA4096'
      dnsChallenge:
        provider: cloudflare
        delayBeforeCheck: 0
        resolvers:
          - "<IP_ADDRESS>:53"
          - "<IP_ADDRESS>:53"
tls:
  stores:
    default:
  options:
    default:
      minVersion: VersionTLS12
      curvePreferences:
        - CurveP521
        - CurveP384
      sniStrict: true
      cipherSuites:
        - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
        - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
        - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
        - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
        - TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
        - TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305
providers:
#  docker:
#    endpoint: unix:///var/run/docker.sock
#    exposedByDefault: false
  file:
    directory: /etc/traefik/configuration/
    watch: true
tracing:
  jaeger:
    samplingServerURL: http://<IP_ADDRESS>:5778/sampling
    samplingType: const
    samplingParam: 1.0
    localAgentHostPort: <IP_ADDRESS>:6831
log:
  filePath: "/logs/traefik.log"
  format: common json
  level: DEBUG
accessLog:
  filePath: "/logs/access.log"
  bufferingSize: 100
#NEW HUB ITEMS 2.8+
#experimental:
#  hub: true
#hub: {}
#metrics:
#  prometheus:
#    addRoutersLabels: true
#DEPRECIATED CONFIGURATION ITEMS
#pilot:
#    token: "omitted"
#experimental:
#  plugins:
#    log4shell:
#      modulename: github.com/traefik/plugin-log4shell
#      version: v0.1.2

Add more configuration information here.
Running Fedora 36 with Podman container in rootful mode and file configuration.
If applicable, please paste the log output in DEBUG level
Logs are not generated as the container is crashing as soon as it is created with the above error:
2022/08/12 07:54:46 command traefik error: strconv.ParseBool: parsing "yes": invalid syntax

From what I've seen, the problem lies with a Go routine that's something to do with the providers?  ACME CA="https://acme-v02.api.letsencrypt.org/directory" providerName=cloudflare.acme

I have similar logs as @choque88
Reverting to the image 2.8.1 can be used as a workaround for now.

duplicate of #9249
Hello,
the strconv.ParseBool is still the same.
yes and no are not valid values for boolean in the Traefik configuration.
https://github.com/golang/go/blob/release-branch.go1.17/src/strconv/atob.go
https://github.com/golang/go/blob/release-branch.go1.19/src/strconv/atob.go

I changed both of the options for
global:
checkNewVersion: yes
sendAnonymousUsage: no
to true/false (before posting this issue) and the container was still not starting correctly. Commenting those options out got it started again. I also noticed recently that my container is still sending Usage statistics even when that was set to false. I had copied those directly from the YAML example on the Traefik site - https://doc.traefik.io/traefik/contributing/data-collection/
I just tried it again with setting to false and the container will not launch. Is this a deprecated option or should I simply omit the line to not send Anonymous Usage?

your problem is related to #9249

@Zanathoz maybe there are some other config issues? My problem were the middlewares I configured using a file provider to whitelist some IP ranges. I had to modify the sourceRange from a single entry to an array with a single entry.

I've made no changes to my routers/middlewares/services, simply commenting out those two lines gets everything started again.
If anything it's my Middlewares as I'm seeing this on my DMZ and LAN instances and my DMZ is very slimmed down.

Can you give me your dynamic configuration file(s)?

DMZ Middlewares
'''
http:
middlewares:
user-auth:
basicAuth:
users:
- "omitted:omitted"
block-log4shell:
plugin:
log4shell:
errorCode: 200
authelia:  #use authelia if you want to have local oauth service
forwardAuth:
address: "http://<IP_ADDRESS>:9091/api/verify?rd=https://login.mydomain.com"
trustForwardHeader: true
authResponseHeaders:
- "adminGroup"
- "Remote-User"
- "Remote-Groups"
chain-authelia:
chain:
middlewares:
- middlewares-rate-limit
- middlewares-secure-headers
- authelia
middlewares-rate-limit:
rateLimit:
average: 100
burst: 50
middlewares-secure-headers:
headers:
accessControlAllowMethods:
- GET
- OPTIONS
- PUT
accessControlMaxAge: 100
hostsProxyHeaders:
- "X-Forwarded-Host"
sslRedirect: true
stsSeconds: 63072000
stsIncludeSubdomains: true
stsPreload: true
forceSTSHeader: true
# frameDeny: true #overwritten by customFrameOptionsValue
customFrameOptionsValue: "allow-from https:mydomain.com" #CSP takes care of this but may be needed for organizr.
contentTypeNosniff: true
browserXssFilter: true
# sslForceHost: true # add sslHost to all of the services
# sslHost: "vtulluru.com"
referrerPolicy: "same-origin"
# Setting contentSecurityPolicy is more secure but it can break things. Proper auth will reduce the risk.
# the below line also breaks some apps due to 'none' - sonarr, radarr, etc.
# contentSecurityPolicy: "frame-ancestors '.vtulluru.com:';object-src 'none';script-src 'none';"
featurePolicy: "camera 'none'; geolocation 'none'; microphone 'none'; payment 'none'; usb 'none';"
customResponseHeaders:
X-Robots-Tag: "none,noarchive,nosnippet,notranslate,noimageindex,"
server: ""
nextcloud-middlewares-secure-headers:
headers:
accessControlMaxAge: 100
sslRedirect: true
stsSeconds: 63072000
stsIncludeSubdomains: true
stsPreload: true
forceSTSHeader: true
### We will modify this value for Nextcloud to remove the X-Frame-Options error:
    customFrameOptionsValue: "SAMEORIGIN" #CSP takes care of this but may be needed for organizr.
    contentTypeNosniff: true
    browserXssFilter: true

sslForceHost: true # add sslHost to all of the services
sslHost: "example.com"
    referrerPolicy: "no-referrer"

### While CSP is a good security setting, Nextcloud's Apache server takes care of this for us!
contentSecurityPolicy: "frame-ancestors '.example.com:';object-src 'none';script-src 'none';"
    featurePolicy: "camera 'none'; geolocation 'none'; microphone 'none'; payment 'none'; usb 'none'; vr 'none';"
    customResponseHeaders:

### Change this to none to remove the Robots error:
      X-Robots-Tag: "none"
      server: ""
nextcloud-redirect:
  redirectRegex:
    permanent: true
    regex: "https://(.*)/.well-known/(card|cal)dav"
    replacement: "https://${1}/remote.php/dav/"
gameon-headers:
  headers:
    accessControlAllowMethods:
      - GET
      - OPTIONS
      - PUT
    accessControlAllowHeaders:
      - "*"
    accessControlAllowOriginList:
      - "https://*.mydomain.com"
      - "https://sub1.mydomain.com"
      - "https://sub2.mydomain.com"
    accessControlMaxAge: 100
    addVaryHeader: true
    frameDeny: true
    browserXssFilter: true
    contentTypeNosniff: true
    forceSTSHeader: true
    referrerPolicy: "strict-origin-when-cross-origin"
    stsIncludeSubdomains: true
    stsPreload: true
    stsSeconds: 15552000
    customFrameOptionsValue: SAMEORIGIN
    customRequestHeaders:
      X-Forwarded-Proto: https
wings-headers:
  headers:
    accessControlAllowMethods:
      - GET
      - OPTIONS
      - PUT
    sslProxyHeaders:
      X-Forwarded-Proto: https
    accessControlAllowHeaders:
      - "*"
    accessControlAllowOriginList:
      - "https://*.mydomain.com"
      - "https://sub1.mydomain.com"
    accessControlMaxAge: 100
    addVaryHeader: true
    frameDeny: true
    browserXssFilter: true
    contentTypeNosniff: true
    forceSTSHeader: true
    referrerPolicy: "strict-origin-when-cross-origin"
    stsIncludeSubdomains: true
    stsPreload: true
    stsSeconds: 15552000
    customFrameOptionsValue: SAMEORIGIN
    customRequestHeaders:
      X-Forwarded-Proto: https

'''
DMZ Routers
'''
http:
routers:
authelia:
rule: (Host(login.mydomain.com))
service: authelia
entryPoints:
- "websecure"
middlewares:
- authelia
dashboard:
rule: (Host(proxyext.mydomain.com) && (PathPrefix(/api/)) || (PathPrefix(/dashboard/)))
service: api@internal
entryPoints:
- "websecure"
middlewares:
- chain-authelia
- block-log4shell
plex:
  rule: (Host(`plex.mydomain.com`))
  service: plex
  entryPoints:
    - "websecure"
mail:
  rule: (Host(`mail.mydomain.com`) && (PathPrefix(`/SOGo/`)))
  service: mail
  entryPoints:
    - "websecure"
  middlewares:
    - chain-authelia
homeassistant:
  rule: (Host(`home.mydomain.com`))
  service: homeassistant
  entryPoints:
    - "websecure"
overseerr:
  rule: (Host(`request.mydomain.com`))
  service: overseerr
  entryPoints:
    - "websecure"
nextcloud:
  rule: (Host(`cloud.mydomain.com`))
  service: nextcloud
  entryPoints:
    - "websecure"
  middlewares:
    - chain-authelia
    - nextcloud-redirect
    - nextcloud-middlewares-secure-headers
cockpit:
  rule: (Host(`proxyext.mydomain.com`) && (PathPrefix(`/cockpit/`)))
  service: cockpit
  entryPoints:
    - "websecure"
  middlewares:
    - chain-authelia

jaeger:
rule: (Host(proxyext.mydomain.com) && (PathPrefix(/log/)))
service: jaeger
entryPoints:
- "websecure"
pterodactyl-panel:
  rule: (Host(`gameon.mydomain.com`))
  service: pterodactyl-panel
  entryPoints:
    - "websecure"
  middlewares:
    - gameon-headers
pterodactyl-wing01:
  rule: (Host(`gameona.mydomain.com`) #&& (PathPrefix(`/api/system`)))
  service: pterodactyl-wing01
  entryPoints:
    - "websecure"
  middlewares:
    - wings-headers

- addprefix-wings
pterodactyl-wing02:
  rule: (Host(`gameonb.mydomain.com`))
  service: pterodactyl-wing02
  entryPoints:
    - "websecure"
  middlewares:
    - pterodactyl-headers

'''
DMZ Services
'''
http:
services:
authelia:
loadBalancer:
passHostHeader: true
servers:
- url: http://<IP_ADDRESS>:9091
plex:
loadBalancer:
passHostHeader: true
servers:
- url: http://<IP_ADDRESS>:32400
mail:
loadBalancer:
passHostHeader: true
servers:
- url: https://<IP_ADDRESS>:443
homeassistant:
loadBalancer:
passHostHeader: true
servers:
- url: https://<IP_ADDRESS>:8123
nextcloud:
loadBalancer:
passHostHeader: true
servers:
- url: https://<IP_ADDRESS>:8443
overseerr:
loadBalancer:
passHostHeader: true
servers:
- url: http://<IP_ADDRESS>:5055
cockpit:
loadBalancer:
passHostHeader: true
servers:
- url: http://<IP_ADDRESS>:9090
jaeger:
loadBalancer:
passHostHeader: true
servers:
- url: http://<IP_ADDRESS>:16686
pterodactyl-panel:
loadBalancer:
passHostHeader: true
servers:
- url: https://<IP_ADDRESS>:445
pterodactyl-wing01:
loadBalancer:
passHostHeader: true
servers:
- url: https://<IP_ADDRESS>
pterodactyl-wing02:
loadBalancer:
passHostHeader: true
servers:
- url: https://<IP_ADDRESS>
'''

Middlewares
http:
  middlewares:
    user-auth:
      basicAuth:
        users:
          - "admin:$apr1$5ov2s0t8$OKKzjmknFwdajVpX0/8S9."
    block-log4shell:
      plugin:
        log4shell:
          errorCode: 200
    authelia:  #use authelia if you want to have local oauth service
      forwardAuth:
        address: "http://<IP_ADDRESS>:9091/api/verify?rd=https://login.mydomain.com"
        trustForwardHeader: true
        authResponseHeaders:
          - "adminGroup"
          - "Remote-User"
          - "Remote-Groups"
    chain-authelia:
      chain:
        middlewares:
          - middlewares-rate-limit
          - middlewares-secure-headers
          - authelia
    middlewares-rate-limit:
      rateLimit:
        average: 100
        burst: 50
    middlewares-secure-headers:
      headers:
        accessControlAllowMethods:
          - GET
          - OPTIONS
          - PUT
        accessControlMaxAge: 100
        hostsProxyHeaders:
          - "X-Forwarded-Host"
        sslRedirect: true
        stsSeconds: 63072000
        stsIncludeSubdomains: true
        stsPreload: true
        forceSTSHeader: true
        # frameDeny: true #overwritten by customFrameOptionsValue
        customFrameOptionsValue: "allow-from https:mydomain.com" #CSP takes care of this but may be needed for organizr.
        contentTypeNosniff: true
        browserXssFilter: true
        # sslForceHost: true # add sslHost to all of the services
        # sslHost: "vtulluru.com"
        referrerPolicy: "same-origin"
        # Setting contentSecurityPolicy is more secure but it can break things. Proper auth will reduce the risk.
        # the below line also breaks some apps due to 'none' - sonarr, radarr, etc.
        # contentSecurityPolicy: "frame-ancestors '*.vtulluru.com:*';object-src 'none';script-src 'none';"
        featurePolicy: "camera 'none'; geolocation 'none'; microphone 'none'; payment 'none'; usb 'none';"
        customResponseHeaders:
          X-Robots-Tag: "none,noarchive,nosnippet,notranslate,noimageindex,"
          server: ""
    nextcloud-middlewares-secure-headers:
      headers:
        accessControlMaxAge: 100
        sslRedirect: true
        stsSeconds: 63072000
        stsIncludeSubdomains: true
        stsPreload: true
        forceSTSHeader: true
#   ### We will modify this value for Nextcloud to remove the X-Frame-Options error:
        customFrameOptionsValue: "SAMEORIGIN" #CSP takes care of this but may be needed for organizr.
        contentTypeNosniff: true
        browserXssFilter: true
#       sslForceHost: true # add sslHost to all of the services
#       sslHost: "example.com"
        referrerPolicy: "no-referrer"
#   ### While CSP is a good security setting, Nextcloud's Apache server takes care of this for us!
#       contentSecurityPolicy: "frame-ancestors '*.example.com:*';object-src 'none';script-src 'none';"
        featurePolicy: "camera 'none'; geolocation 'none'; microphone 'none'; payment 'none'; usb 'none'; vr 'none';"
        customResponseHeaders:
#    ### Change this to none to remove the Robots error:
          X-Robots-Tag: "none"
          server: ""
    nextcloud-redirect:
      redirectRegex:
        permanent: true
        regex: "https://(.*)/.well-known/(card|cal)dav"
        replacement: "https://${1}/remote.php/dav/"
    gameon-headers:
      headers:
        accessControlAllowMethods:
          - GET
          - OPTIONS
          - PUT
        accessControlAllowHeaders:
          - "*"
        accessControlAllowOriginList:
          - "https://*.mydomain.com"
          - "https://gameon.mydomain.com"
          - "https://gameona.mydomain.com"
        accessControlMaxAge: 100
        addVaryHeader: true
        frameDeny: true
        browserXssFilter: true
        contentTypeNosniff: true
        forceSTSHeader: true
        referrerPolicy: "strict-origin-when-cross-origin"
        stsIncludeSubdomains: true
        stsPreload: true
        stsSeconds: 15552000
        customFrameOptionsValue: SAMEORIGIN
        customRequestHeaders:
          X-Forwarded-Proto: https
    wings-headers:
      headers:
        accessControlAllowMethods:
          - GET
          - OPTIONS
          - PUT
        sslProxyHeaders:
          X-Forwarded-Proto: https
        accessControlAllowHeaders:
          - "*"
        accessControlAllowOriginList:
          - "https://*.mydomain.com"
          - "https://gameon.mydomain.com"
        accessControlMaxAge: 100
        addVaryHeader: true
        frameDeny: true
        browserXssFilter: true
        contentTypeNosniff: true
        forceSTSHeader: true
        referrerPolicy: "strict-origin-when-cross-origin"
        stsIncludeSubdomains: true
        stsPreload: true
        stsSeconds: 15552000
        customFrameOptionsValue: SAMEORIGIN
        customRequestHeaders:
          X-Forwarded-Proto: https

Services
http:
  services:
    authelia:
      loadBalancer:
        passHostHeader: true
        servers:
          - url: http://<IP_ADDRESS>:9091
    plex:
      loadBalancer:
        passHostHeader: true
        servers:
          - url: http://<IP_ADDRESS>:32400
    mail:
      loadBalancer:
        passHostHeader: true
        servers:
          - url: https://<IP_ADDRESS>:443
    homeassistant:
      loadBalancer:
        passHostHeader: true
        servers:
          - url: https://<IP_ADDRESS>:8123
    nextcloud:
      loadBalancer:
        passHostHeader: true
        servers:
          - url: https://<IP_ADDRESS>:8443
    overseerr:
      loadBalancer:
        passHostHeader: true
        servers:
          - url: http://<IP_ADDRESS>:5055
    cockpit:
      loadBalancer:
        passHostHeader: true
        servers:
          - url: http://<IP_ADDRESS>:9090
    jaeger:
      loadBalancer:
        passHostHeader: true
        servers:
          - url: http://<IP_ADDRESS>:16686
    pterodactyl-panel:
      loadBalancer:
        passHostHeader: true
        servers:
          - url: https://<IP_ADDRESS>:445
    pterodactyl-wing01:
      loadBalancer:
        passHostHeader: true
        servers:
          - url: https://<IP_ADDRESS>
    pterodactyl-wing02:
      loadBalancer:
        passHostHeader: true
        servers:
          - url: https://<IP_ADDRESS>

Routers
http:
  routers:
    authelia:
      rule: (Host(`login.mydomain.com`))
      service: authelia
      entryPoints:
        - "websecure"
      middlewares:
        - authelia
    dashboard:
      rule: (Host(`proxyext.mydomain.com`) && (PathPrefix(`/api/`)) || (PathPrefix(`/dashboard/`)))
      service: api@internal
      entryPoints:
        - "websecure"
      middlewares:
        - chain-authelia
#        - block-log4shell
    plex:
      rule: (Host(`plex.mydomain.com`))
      service: plex
      entryPoints:
        - "websecure"
    mail:
      rule: (Host(`mail.mydomain.com`) && (PathPrefix(`/SOGo/`)))
      service: mail
      entryPoints:
        - "websecure"
      middlewares:
        - chain-authelia
    homeassistant:
      rule: (Host(`home.mydomain.com`))
      service: homeassistant
      entryPoints:
        - "websecure"
    overseerr:
      rule: (Host(`request.mydomain.com`))
      service: overseerr
      entryPoints:
        - "websecure"
    nextcloud:
      rule: (Host(`cloud.mydomain.com`))
      service: nextcloud
      entryPoints:
        - "websecure"
      middlewares:
        - chain-authelia
        - nextcloud-redirect
        - nextcloud-middlewares-secure-headers
    cockpit:
      rule: (Host(`proxyext.mydomain.com`) && (PathPrefix(`/cockpit/`)))
      service: cockpit
      entryPoints:
        - "websecure"
      middlewares:
        - chain-authelia
#    jaeger:
#      rule: (Host(`proxyext.mydomain.com`) && (PathPrefix(`/log/`)))
#      service: jaeger
#      entryPoints:
#        - "websecure"
    pterodactyl-panel:
      rule: (Host(`gameon.mydomain.com`))
      service: pterodactyl-panel
      entryPoints:
        - "websecure"
      middlewares:
        - gameon-headers
    pterodactyl-wing01:
      rule: (Host(`gameona.mydomain.com`) #&& (PathPrefix(`/api/system`)))
      service: pterodactyl-wing01
      entryPoints:
        - "websecure"
      middlewares:
        - wings-headers
#        - addprefix-wings
    pterodactyl-wing02:
      rule: (Host(`gameonb.mydomain.com`))
      service: pterodactyl-wing02
      entryPoints:
        - "websecure"
      middlewares:
        - pterodactyl-headers

I forgot to comment out the log4shell plugin in my DMZ which has already been removed from my LAN configuration - which was still failing. I'll remove that now.
I assume the AnnonymousUsage flag is looking into the dynamic files and could be failing because of a wrong config in them? If this is set to false, shouldn't it not be reading into them regardless?
Just wondering why the container starts if that flag is commented out but fails if it's set now. Perhaps an actual bug 😄


[Feature] Observability - Dashboard Lists Integration

Register App Analytics, Panels as "Dashboard List Providers" (requires https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2149)

Register App Analytics, Event Analytics as "Dashboard Left-Nav Links", using existing app.register functions of OSD.  Create a new "top-level" Left-Nav section "Observability"

Issues WIP
[FEATURE] Integrate Observability Panels/Apps lists into OpenSearch-Dashboards main List View
Related PR
Opensearch-Dashboards : WIP Feature/integrate dashboards observability
Check List

[ ] New functionality includes testing.

[ ] All tests pass, including unit test, integration test and doctest

[ ] New functionality has been documented.

[ ] New functionality has javadoc added
[ ] New functionality has user manual doc added

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #1180 (b2f5f5e) into main (08a8d82) will increase coverage by 17.55%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##               main    #1180       +/-   ##
=============================================
+ Coverage     54.31%   71.87%   +17.55%
  Complexity      291      291
=============================================
  Files           277       42      -235
  Lines          9106     2311     -6795
  Branches       2034      240     -1794
=============================================
- Hits           4946     1661     -3285
+ Misses         3990      509     -3481
+ Partials        170      141       -29

Flag
Coverage Δ

dashboards-observability
?

opensearch-observability
71.87% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...ashboards-observability/common/constants/shared.ts

...components/application_analytics/helpers/utils.tsx

.../public/components/custom_panels/helpers/utils.tsx

...vability/common/query_manager/ppl_query_manager.ts

...ponents/common/helpers/ppl_docs/commands/search.ts

...components/visualizations/charts/bubble/bubble.tsx

...-observability/common/constants/trace_analytics.ts

...s/explorer/events_views/detail_table/table_row.tsx

...public/components/common/field_icon/field_icon.tsx

...rds-observability/common/utils/settings_service.ts

... and 225 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Need to rebase to 2.x branch.  Too much churn.  PR re-created as #1314


Remove unneccesary files

Current coverage is 95.24%

Merging #265 into master will not affect coverage as of 4b0ce03

@@            master    #265   diff @@
======================================
  Files          177     177
  Stmts         2335    2335
  Branches       283     283
  Methods          0       0
======================================
  Hit           2224    2224
  Partial          0       0
  Missed         111     111

Review entire Coverage Diff as of 4b0ce03

Powered by Codecov. Updated on successful CI builds.


This endpoint has been deprecated...Values missing

Hi,
today I discovered I am missing values, restart did not hep. So I checked the Log
`

coronavirus-statistics.0
2020-04-17 11:45:24.021
info
(13670) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason

coronavirus-statistics.0
2020-04-17 11:45:24.020
error
(13670) [loadCountries]  error: 410 - "{"message":"This endpoint has been deprecated. Use  /v2/countries instead.","docs":"http://corona.lmao.ninja/docs\"}",  stack: StatusCodeError: 410 - "{"mes

coronavirus-statistics.0
2020-04-17 11:45:23.859
error
(13670) [loadAll] error:  410 - "{"message":"This endpoint has been deprecated. Use /v2/all  instead.","docs":"http://corona.lmao.ninja/docs\"}", stack:  StatusCodeError: 410 - "{"message":"Thi

coronavirus-statistics.0
2020-04-17 11:45:14.521
info
(13670) starting. Version 0.5.5 in /opt/iobroker/node_modules/iobroker.coronavirus-statistics, node: v10.19.0

coronavirus-statistics.0
2020-04-17 11:39:06.652
info
(13547) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason

coronavirus-statistics.0
2020-04-17 11:39:06.651
error
(13547) [loadCountries]  error: 410 - "{"message":"This endpoint has been deprecated. Use  /v2/countries instead.","docs":"http://corona.lmao.ninja/docs\"}",  stack: StatusCodeError: 410 - "{"mes

coronavirus-statistics.0
2020-04-17 11:39:06.513
error
(13547) [loadAll] error:  410 - "{"message":"This endpoint has been deprecated. Use /v2/all  instead.","docs":"http://corona.lmao.ninja/docs\"}", stack:  StatusCodeError: 410 - "{"message":"Thi

coronavirus-statistics.0
2020-04-17 11:39:03.619
info
(13547) starting. Version 0.5.5 in /opt/iobroker/node_modules/iobroker.coronavirus-statistics, node: v10.19.0

`

thank you, beta testing finished, 0.5.6 will be available after 2 PM
https://github.com/iobroker-community-adapters/ioBroker.coronavirus-statistics/commit/c6fc1b3967a682af043382401dfdc7a15377e1a9

pending : https://github.com/ioBroker/ioBroker.repositories/pull/713


Add main page design (responsive)

The site on mobile is currently bugged, with the content on the first page appearing way too far down.

The site on mobile is currently bugged, with the content on the first page appearing way too far down.

Issue has been fixed.


mysql 5.7: Failed to import database: exit status 137 (Out of Memory killed)

Is there an existing issue for this?

[X] I have searched the existing issues

Run a Diagnostic and Paste Link Here
https://gist.github.com/joelpittet/34b8737c976835ba88ca11b2a233aae4
❯ ddev debug get-volume-db-version
mysql:5.7

❯ ddev debug check-db-match
database in volume matches configured database: mysql:5.7

Current Behavior
Database fails to import at a seemingly random % on a db that is 150M
❯ ddev import-db --src=/tmp/PROJECT.sql
mysql: [Warning] Using a password on the command line interface can be insecure.
Failed to import database db for PROJECT failed to import database: exit status 137================================================================================================================>             ] 93% ETA 0:00:01
stdout:
stderr:

Expected Behavior
Database imports
Steps To Reproduce
I believe it's mysql 5.7 config related, maybe max_packet_size and potentially running out of memory.
Anything else?
During ddev debug test it powers off the projects, and after that the import goes through as expected.
So kind of a workaround, but this happens every so often so I thought I should report it to see if we can't get to the bottom of it, or if others have this issue too.

The classic reason for this is not having enough docker disk space, in Docker Desktop (mac) or colima.
You're using Docker Desktop.. what is your allocated disk space and memory?
The problem goes away when you ddev poweroff? That might point to disk or memory.

❯ colima -v list
PROFILE    STATUS     ARCH       CPUS    MEMORY    DISK      RUNTIME    ADDRESS
default    Running    aarch64    4       8GiB      100GiB    docker

@rfay is there an easy way to check the disk space, I saw it in output of debug test
Docker disk space:
Filesystem                Size      Used Available Use% Mounted on
overlay                  58.8G     46.4G      9.4G  83% /

Thanks, yes, ddev debug test does that, forgot you'd done the gist (and thanks for doing that).
test_ddev.sh (ddev debug test) just does this,
docker run --rm busybox:stable df -h

And it does look to me like you have a small amount of disk space available for somebody who likes to do large imports, as I understand.  It looks to me like you have the default, and I almost always set it to 100GB or higher.
It's easy to change it, as I'm sure you know:

As you see in my snapshot, sometimes the docker desktop GUI lies pretty badly.
And it's easy to free up disk space if space is tight.
You can

ddev clean (See ddev help clean)
ddev poweroff && docker rm -f $(docker ps -aq) && docker rmi -f $(docker images -q) (Deletes all docker images, does no harm, they'll be downloaded again.)
ddev delete images (Tries to delete images that aren't in use any more)

The only thing to be careful of when cleaning up is your docker volumes which is where the databases are.

I just noticed that you gave me a colima -v list but in your gist it said "Docker Desktop Version: Docker Desktop for Mac 4.6.1 build 76265", but I see in there you have " docker-platform  colima" - I'll have to pay more attention!  And probably need to improve that script. It found the Docker Desktop (which I hope isn't also running, but apparently is still installed, which is fine).
For colima, to increase the disk space you have to destroy everything and create the colima instance again, sadly. colima delete && colima start --cpu 4 --memory 6 --dns=<IP_ADDRESS>. --disk 120. You'll lose all databases.
To snapshot the databases of all registered projects you can ddev snapshot -a before you do that.

https://github.com/drud/ddev/pull/4171

In your case, since ddev poweroff solves it, I would suspect memory usage.
Yup:

The OOMKilled error, also indicated by exit code 137, means that a container or pod was terminated because they used more memory than allowed. OOM stands for “Out Of Memory”.

I think you may in fact be able to change memory usage for colima with just colima stop and colima start -e with no disruption.

Docker Desktop is not running (as far as I can see). I just (a min ago) switched to the latest DDEV as per your tweet yesterday.
https://twitter.com/randyfay/status/1565395421496635392?s=20&t=DZSpTB5qBVSDJHvvRQHbgw
❯ docker run --rm busybox:stable df -h
Unable to find image 'busybox:stable' locally
stable: Pulling from library/busybox
4189ef966ca4: Pull complete
Digest: sha256:20142e89dab967c01765b0aea3be4cec3a5957cc330f061e5503ef6168ae6613
Status: Downloaded newer image for busybox:stable
Filesystem                Size      Used Available Use% Mounted on
overlay                  58.8G     46.6G      9.1G  84% /
tmpfs                    64.0M         0     64.0M   0% /dev
tmpfs                     3.9G         0      3.9G   0% /sys/fs/cgroup
shm                      64.0M         0     64.0M   0% /dev/shm
/dev/disk/by-label/data-volume
                         58.8G     46.6G      9.1G  84% /etc/resolv.conf
/dev/disk/by-label/data-volume
                         58.8G     46.6G      9.1G  84% /etc/hostname
/dev/disk/by-label/data-volume
                         58.8G     46.6G      9.1G  84% /etc/hosts
tmpfs                     3.9G         0      3.9G   0% /proc/acpi
tmpfs                    64.0M         0     64.0M   0% /proc/keys
tmpfs                    64.0M         0     64.0M   0% /proc/timer_list
tmpfs                    64.0M         0     64.0M   0% /proc/sched_debug
tmpfs                     3.9G         0      3.9G   0% /proc/scsi
tmpfs                     3.9G         0      3.9G   0% /sys/firmware

I'll try to get colima to bump the size up, thanks!

Oh I' so happy you're using latest ddev HEAD, thanks!

I will end up resizing the disk (because I wanted 100G, but only have 60G default), I have more memory to give it but I think 8G is plenty. And I'll keep tabs on this https://github.com/abiosoft/colima/issues/398
As mentioned I think max_packet_size plays into this, or at least I'll explore that next, unless you'd like me to try anything else?

It looks to me like OOM kill (137), and memory will solve it. I don't think it has to do with the classic max_packet_size because we have that set so very high and because the import is right on the same machine, not even happening over network.

I was thinking that reducing max_packet_size (likely naive) would help throttle the memory to keep it at a reasonable amount and not exhaust it.

Thanks, I'll explore further when I run into it again.

faced with the same problem, changed memory for colima from 100 gb to 200 gb and this fixed the problem

If it's about memory... then it wasn't changing the filesystem from 100. It's about changing memory. You probably had 2GB allocated as memory and increased it to 6GB or something @VladyslavSikailo - but nobody has 100GB on their computer to allocate to colima memory.

yeah, that's true
changed RAM to 8gb


Add support for axum's IntoResponse

Currently I have an endpoint that just makes requests to individual services and there's no way currently to bridge between the two Response types.
This could be fixed by adding a into_http() or as_http() to the Response type.

It would be great... I spent a week learning Rust and doing exactly this to send 1 request and return its response.
I am converting the incoming request body (bytes) into reqwest::Body::from(raw_body); and then building the response from reqwest::Response attributes.

I added the conversion from reqwest::Response to http::Response<reqwest::Body> as well as reqwest::Body as http_body::Body in https://github.com/seanmonstar/reqwest/pull/2060. That PR should fix this issue.


updates: fixes codebase for createUpdate async call.

Make the go routine call internal to service, so that we can mock the service properly and test the call using expect function, the function go routine is detected in local dev env, but is flaky on GitHub.
Type of change
What is it?

[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Documentation update
[X] Tests update
[X] Refactor

Checklist:

[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
[X] I run make pre-commit to check fmt/vet/lint/test-no-fdo

Test results are available in Ibutsu. The test run IDs are:
79fdf31b-09a2-4a33-a00a-cb77931773ce
8bb15f9f-c725-46fb-aac9-13401998b9db

Now that CreateUpdate will be called Async, and we rely on our DB for indexing our updateids, should we lock the db call on line 120 in pkg/services/updates.go?
update.Status = models.UpdateStatusBuilding
lock()
db.DB.Save(&update)
unlock()

Now that CreateUpdate will be called Async, and we rely on our DB for indexing our updateids, should we lock the db calls on line 118 & 120 in pkg/services/updates.go?
lock()
db.DB.Preload("DispatchRecords").Preload("Devices").Joins("Commit").Joins("Repo").Find(&update, id)
	update.Status = models.UpdateStatusBuilding
db.DB.Save(&update)
unlock()

CreateUpdate is not becaming async we are creating a new function that is named CreateUpdateAsync that call CreateUpdate in a go routine as original code is doing (the code always called CreateUpdate in a go routine). We need to investigate is the postgres driver connection used in gorm is thread safe (I am pretty sure it is ), but not in this PR, we are using go routine in many places in the code , so this worth a spike.

Happy with this reply, OK to merge


updated ember install command to new standards

Since ember install:addon has been deprecated

Looks like this project is not being maintained anymore. Fails with newer versions of ember. Closing request.


Relocate OAuth2 support from storage to common

OAuth2 support is currently coupled with storage. With the new REST library and future client libraries with REST transport, the OAuth2 files and types are to be relocated to google/cloud/internal under the name space google::cloud::oauth2_internal. The oauth2 subdir in storage will be removed once storage has been refactored to use the REST library.

Still working on this, needs some refactoring.

This is done. We have support for OAuth2 in the common libraries.


querying a doc with a show function

I have the following design document:
{
  "_id": "_design/jsonld",
  "_rev": "6-1d31766f96fe194d286cc9cf8c31e5c6",
  "shows": {
    "jsonld": "function(doc, req) {\n  return toJSON(doc[\"@graph\"]);\n}"
  },
  "language": "javascript"
}

and would like to query documents according to this view. It seems impossible with the current API.

You're right, there is no explicit way to query a show function.
You may be able to do it by either :

extending the ViewQuery class in order to override org.ektorp.ViewQuery#buildQueryURI so that is generated the appropriate URI : "_show" instead of "_view" then pass it to org.ektorp.CouchDbConnector#queryForStream
directly use a org.ektorp.http.RestTemplate instance with the appropriate URI
change Ektorp to allow explicit support for show queries, then propose a pull request


Updated ios/Podfile* to fix build ios error

Fixes build ios error.
I executed the following steps to update ios/Podfile*

Delete ios/Podfile*$ cd ios
$ rm Podfile Podfile.lock

Build ios$ flutter clean
$ flutter pub get
$ flutter build ios

Thank you!

Thank you!

Okay, no problem.
I just noticed that yesterday CI job also reported that. 😅
https://github.com/ursci/hikagefinder-app/runs/1782302430?check_suite_focus=true
Downloading ios tools...                                            2.0s
Downloading ios-profile tools...                                    1.1s
Downloading ios-release tools...                                    5.9s
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Building jp.co.georepublic.hikageapp for device (ios-release)...
Running pod install...                                              4.4s
Warning: Podfile is out of date
  This can cause issues if your application depends on plugins that do not support iOS.
  See https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin-platforms for details.
  If you have local Podfile edits you would like to keep, see https://github.com/flutter/flutter/issues/45197 for instructions.
To regenerate the Podfile, run:
  rm ios/Podfile

Okay, no problem.
I just noticed that yesterday CI job also reported that. 😅
https://github.com/ursci/hikagefinder-app/runs/1782302430?check_suite_focus=true
Downloading ios tools...                                            2.0s
Downloading ios-profile tools...                                    1.1s
Downloading ios-release tools...                                    5.9s
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Building jp.co.georepublic.hikageapp for device (ios-release)...
Running pod install...                                              4.4s
Warning: Podfile is out of date
  This can cause issues if your application depends on plugins that do not support iOS.
  See https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin-platforms for details.
  If you have local Podfile edits you would like to keep, see https://github.com/flutter/flutter/issues/45197 for instructions.
To regenerate the Podfile, run:
  rm ios/Podfile

Oh, I see. I didn't check the log much, and I just saw warnings.

Oh, I see. I didn't check the log much, and I just saw warnings.


Android build does not work

On Unity, the program works flawless. I tried to build it for android. OpenAI does not answer on apk. Is it because we call ApiKey from our computer? If it is how can i implement api key on script? If it isn't what should i do to make this work?

Created a PR for this problem. Not a safe way to use it but helps with it. #12

Many thanks Sercan for this fast response.
I will give it a try this evening.
I want to use my app on my own so there should be no safety problem...
On the other hand: the user can put his individual ApiKey when he starts the app...

It works now on Android !!!
Brilliant work Sercan, many thanks !!!

Great news! Closing the issue then.


Compatible with App Runtime for Chrome?

Is it possible run android apps with the App Runtime for Chrome? There is ARC-Welder as well as the ARChon Runtime for Chrome.
I tried to install ARC-Welder but it fails with the error-message CRX_HEADER_INVALID.
I installed ARChon and loaded the sample app but it freezes while loading.
In the debug messages I can see that ARChon is complaining about:
'minimum_chrome_version' is only allowed for extensions, hosted apps, legacy packaged apps, and packaged apps, but this is a shared module.
Unrecognized manifest key 'arc_build_tag'

And the sample app is complaining about:
Unrecognized manifest key 'arc_metadata'.

I don't have a way of downloading ARC-Welder; so I can't help you with that.
I noticed that ARChon uses NaCl. I disabled this in Debian builds (with the GYP flag disable_nacl=1). Did you build ungoogled-chromium without NaCl support?
IIRC, building with NaCl requires additional downloading during the GYP configuration or ninja steps, so you'll need to undo some changes made by domain_patcher.sh.

Closing due to inactivity, and a new version is out. Let me know if there's something else that needs to be done with ungoogled-chromium.

Chromium for Linux does not work with apks via Arc Welder and Archon. So maybe a problem is deeper than just NaCl. Do you looked at it after closing an issue? Would be useful to have apks support


julia_13: fix julia_13 missing Lib of lapack.

Motivation for this change

fixed Julia_13 missing LD_lib lapck. Regarding comments issue in  https://github.com/NixOS/nixpkgs/issues/89155
set checkTarget to none. let Julia passing the build process.

this problem appeared in

https://github.com/NixOS/nixpkgs/pull/79174#issuecomment-591630626
https://github.com/NixOS/nixpkgs/issues/89155#issuecomment-636448539

Things done

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

[X] NixOS
[X] macOS
[X] other Linux distributions

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

Tests still fail on OfBorg. I'm a little leery of disabling tests in a PR that doesn't include that in the title.

cc @twhitehead who was working on the Julia tests in #79174 for thoughts on this disabling of tests.

Tests still fail on OfBorg. I'm a little leery of disabling tests in a PR that doesn't include that in the title.

yeh, we had a discussing in julia_13 PR. https://github.com/NixOS/nixpkgs/pull/79174#issuecomment-593556863 about disable the test file. In expected testing that is

You either have to do some text substitution on the test file (e.g., use sed to put a # in front of the line that runs the test) or remove or zero the test file itself. I'll submit my suggested cleanups when I get the chance (currently just having problems with one more test that I'm tracking down).

but, Until this time the testing problem still in here. that is why the Julia did have binary cache in hydra CI.

Tests still fail on OfBorg.

@drewrisinger my own hydra CI test for julia_13 at here. http://<IP_ADDRESS>:8300/build/6#tabs-summary

The OfBorg evaluation of this PR with tests fails: https://github.com/NixOS/nixpkgs/pull/89270/checks?check_run_id=725656788. Looks OfBorg build was against julia, not julia_13. Is that the one you meant to build/fix?
@GrahamcOfBorg build julia_13

looks like title should be changed to julia_13: ...

@GrahamcOfBorg eval
@GrahamcOfBorg build julia_13

@drewrisinger sorry for the delay in following up with the prior one. I've followed opened up the following upstream bug reports with respect to a variety of issues that are tripping up in nix

test12806 breaks later exception handling tests (JuliaLang/julia#34579)
keywordargs test breaks precompile test set (JuliaLang/julia#34921)
REPL completions is broken by shared global state (JuliaLang/julia#32377)
SIGINT stress test has issues (JuliaLang/julia#28580)

I also discovered you need to set HOME and USER to something reasonable or a bunch of tests break
preCheck = ''
  HOME=$NIX_BUILD_TOP
  USER=$(whoami)
  JULIA_CPU_THREADS=''${NIX_BUILD_CORES:-1}
''

@twhitehead thanks for the response, I think fixing Julia tests is now out of scope for this PR, though I think it's still very important.

The underlying issue is that the build runs multiple tests in a single julia instance and not all tests leave behind a clean state (i.e., some of the earlier tests break things for later tests).
Why this is showing up under nix and not most other systems is because building without a network connection causes all the test to run serially in one julia process (where all bad test interactions surface) compared to the standard way of running tests in parallel across multiple julia process (where bad test interactions only surface if they happen to occur in the same julia process).
So, yeah, the Julia test process as it stands is reasonably broken. At least now upstream has a reproducible way to trigger it (test with only one process) and will hopefully get stuff cleaned up.

@twhitehead @ http://<IP_ADDRESS>:8300/build/20/nixlog/1 please, check the building logs. I got all of the tests to fail.

@twhitehead. @cstich  I bumped up julia_13 to julia1.4.2. also, I did a build test and patched you have mentioned code on hydra CI. there are my test logs.http://<IP_ADDRESS>:8300/build/36/nixlog/1/tail.
that will help you to debug in testall process.


Need CryptographicOperations Implementation Case Study and Example.

Need links to extra resources to explain with examples and case study

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

ID: a4457cf5-71c0-321d-cc93-a0e30470110a
Version Independent ID: 06ea5cab-7c43-8677-ccd2-f3783bff9360
Content: CryptographicOperations Class (System.Security.Cryptography)
Content Source: xml/System.Security.Cryptography/CryptographicOperations.xml
Product: dotnet-api
GitHub Login: @dotnet-bot
Microsoft Alias: dotnetcontent

Thank you, @MaqSaid for your feedback! This has been added to the backlog.


--exclude CLI parameter Only Skips Some Files

Without exclude option:
./vendor/bin/phpmd ./src/ text ./ruleset.xml

.../src/Migrations/Version20190624122708.php:20   Avoid unused parameters such as '$schema'.
.../src/Migrations/Version20190624122708.php:37   Avoid unused parameters such as '$schema'.
.../src/Migrations/Version20190716104416.php:20   Avoid unused parameters such as '$schema'.
.../src/Migrations/Version20190716104416.php:28   Avoid unused parameters such as '$schema'.

With exclude option:
./vendor/bin/phpmd ./src/ text ./ruleset.xml --exclude src/Migrations/*

.../src/Migrations/Version20190716104416.php:20   Avoid unused parameters such as '$schema'.
.../src/Migrations/Version20190716104416.php:28   Avoid unused parameters such as '$schema'.

Hi @loeffel-io, would you be able to produce a zip with sample files which one we could reproduce the bug?

Closing because we didn't get the feedback needed to reproduce the bug.


Is it possible to publish common modules as third-party packages, such as rquickjs-ext similar to deno?

Some common modules such as os, path, fs, etc., which are not closely coupled with the runtime, can they be extracted as separate third-party libraries? For example, rquickjs-ext, so that other projects that only use rquickjs can also use it

It probably can! We "semi-started" to support this by moving out runtime specific code to its own crate. Right now there are a couple of blockers tho:
1 There is some lambda specific features (currently gated) that reside in llrt_core
2 The library depends on some JS bundled code to be present (for things like ESM), this should be moved and built into core
3 The core module will at compile time create a perfect hashmap and embed modules into its own executable.
I experimented with a different approach for 3 by appending a special data format that contained an index of all embedded files + the raw bytecode at the end of the executable. This proved to slightly increase cold start even though it made the embedding more flexible so was ruled out.

Hey I am pitching in since I started working on a utils crate for rquickjs (https://github.com/DelSkayn/rquickjs/pull/319). The goal is to eventually recreate all the api we expect for node/deno.
I would interested to help in whatever implementation like fetch.

Hey I am pitching in since I started working on a utils crate for rquickjs (DelSkayn/rquickjs#319). The goal is to eventually recreate all the api we expect from node/deno for quickjs.

For sure! ⭐

I would interested to help in whatever implementation. @richarddavison do you guys have a chat system so we can talk about that?

I just dropped you an email!

It would be great to know if there is any update about this 🙏

Some problems I encountered during the development process, I hope the new module mechanism can improve

Node protocol support, that is, support for two module protocols at the same time

import fs from 'fs'

import fs from 'node:fs'

Module dependency, for example, fetch depends on the net module. Currently, we can only manually ensure the import order of the modules. Is it possible to implement a mechanism that reports an error or automatically imports the net module if only fetch is imported?

Some problems I encountered during the development process, I hope the new module mechanism can improve

Node protocol support, that is, support for two module protocols at the same time

import fs from 'fs'

import fs from 'node:fs'

Module dependency, for example, fetch depends on the net module. Currently, we can only manually ensure the import order of the modules. Is it possible to implement a mechanism that reports an error or automatically imports the net module if only fetch is imported?

Not quite sure I follow. Import order, does not matter.
For node protocol support we simply strip the "node:" prefix from import specifier.

For node protocol support we simply strip the "node:" prefix from import specifier.

Will you consider supporting require and submodules? Many node libraries have syntax similar to the following. I don't know if there is a bundle tool that can handle it.
const { isArrayBuffer } = require('node:util/types')

For node protocol support we simply strip the "node:" prefix from import specifier.

Will you consider supporting require and submodules? Many node libraries have syntax similar to the following. I don't know if there is a bundle tool that can handle it.
const { isArrayBuffer } = require('node:util/types')

This would work if there was a a util/types.mjs present on the filesystem. For embedded and native modules we have to explicitly define the paths.
Require is already supported. You can also mix and match with imports in the same file

It would be great to know if there is any update about this 🙏

Not yet, but PR is welcome. @KaanMol maybe you want to take a stab at this? The "only thing" missing right now is that we need to embed some JS modules that is required, for instance:
https://github.com/awslabs/llrt/blob/main/llrt_core/src/modules/js/%40llrt/std.ts
and https://github.com/awslabs/llrt/blob/main/llrt_core/src/modules/js/%40llrt/init.ts
There is also some AWS specific stuff in there that should not be part of the core package. I've experimented with a different approach to embed modules into the executable by appending the bytecode to the end. It works and make building a bit simpler. However, it comes with a tiny performance cost so we might need to stick with this until I've found a better way or removed that overhead.

It would be great to know if there is any update about this 🙏

Not yet, but PR is welcome. @KaanMol maybe you want to take a stab at this? The "only thing" missing right now is that we need to embed some JS modules that is required, for instance: https://github.com/awslabs/llrt/blob/main/llrt_core/src/modules/js/%40llrt/std.ts and https://github.com/awslabs/llrt/blob/main/llrt_core/src/modules/js/%40llrt/init.ts
There is also some AWS specific stuff in there that should not be part of the core package. I've experimented with a different approach to embed modules into the executable by appending the bytecode to the end. It works and make building a bit simpler. However, it comes with a tiny performance cost so we might need to stick with this until I've found a better way or removed that overhead.

I wonder if making the core modules AWS stuff free is not a blocking piece before continuing. I could take a look next week :)

@richarddavison would it be possible I could also get an invite for the chat system?

I will post it here since I am in charge of it.
Here is the discord: https://discord.com/invite/pyMppMngYU

One thing I wanted to mention is that modules should be more independent than they are right now. For example the URL module cant be evaluated at the moment if the http module init is not called first because some stuff like URL constructor is put in the globals in the http init and taken back in the module eval.

One thing I wanted to mention is that modules should be more independent than they are right now. For example the URL module cant be evaluated at the moment if the http module init is not called first because some stuff like URL constructor is put in the globals in the http init and taken back in the module eval.

They share a lot of code and components, so making everything completely standalone from the start might not be the best approach. Instead, it would be better to develop something that improves over time. It may not be ideal to have everything as separate crates like Deno does. This raises the question of how standalone "standalone" should be.
Most modules consist largely of shared code or are very small. It would make more sense to have a crate like "llrt_modules" with feature flags, to be honest.

Yeah probably but for a user I should not have to know the internals of the modules to know that the http module must be included for the URL module to work is what I am saying.

This is a problem. The simplest way is to provide a full list of dependencies for each module. If necessary APIs are not supported during compilation or runtime, an error should be reported and the dependencies should be added one by one according to the order given in the document.

Yeah there is no straight answer here. Feature flags may be the simplest, however with the downside of being able to toggle modules or features  at runtime.
I think we need to rework the module builder to also include dependencies. This can be done by simply passing the module builder to a trait responsible for registering each module.
Also should automatically expose methods on global scope as defined by the module. Users should then be able to opt out of global scope and only register a module

Alright I started work on that. @richarddavison when you have 2s, can you join the discord :)
I agree on the refactor of the module builder, but this can be done independently.
My goal is to start by splitting of at the ModuleInfo level and let the user handle the module registration for now.

It's great to see the direction this is headed! We use rquickjs for our JavaScript runtime that runs in WASM and are starting to hand-select modules from LLRT to include in our runtime (so we don't have to write them all from scratch!), so a library of modules is exactly what we're looking for. Targeting wasm32-wasi is a challenge, so we have our own fork of LLRT right now to compile just what we need with some modifications, but I imagine others would like to target wasm32-wasi as well.
I remember seeing some discussion somewhere about where the crate should go -- would love to see the library more rquickjs focused than LLRT which would probably make it easier to target WASM anyways. I'll join the discord and tag along in case I can help.

Hi @Sytten , I think this is a wonderful initiative. :)
It seems that os.rs and url.rs, which currently reside directly under the modules directory, could also be easily separated.

@nabetti1720 Yup totally. The fs was the original module to test and I will port others.
I do think I want to work on a better Module trait first like we discussed in multiple places to unify the init functions, ModuleDef, ModuleInfo and dependencies between modules.
That would make scaling the modules easier for people.

@nabetti1720 Yup totally. The fs was the original module to test and I will port others.
I do think I want to work on a better Module trait first like we discussed in multiple places to unify the init functions, ModuleDef, ModuleInfo and dependencies between modules.
That would make scaling the modules easier for people.

The port from llrt_core to llrt_module will be a good theme for new contributors to LLRT.
Since we are in the mood, we note here that the following modules are also eligible. :) ( Ref #468 )

llrt:hex
llrt:xml


Migrator.cs refactored - "PopulateMigrations" method made protected

Summary of the changes:

Made "PopulateMigrations" method protected in Migrator.cs (this method is used in public virtual GenerateScript method, so it can be useful in descendants).

Squashed all commits into one

lol, we even rewrite other people's history. 😉 Rebased this on top of the release/2.1 branch. It will be in the 2.1.0-preview2-final release.

@bricelam creates history. :trollface:


Multiple users in "disable single account mode"

I am using selfhosted Netbird. I would like to create new network for separate department.
Different network with separate account can be achieved when disabled single account mode. However, no other users can be associated to each separated account. Does Netbird support multiple users with multiple accounts?

Are you using NetBird Cloud?
Self-hosted

Hello @Gifff69, Currently this feature is not yet supported. Could you please share more about why you need multiple department accounts in Netbird? How do you plan to manage and associate multiple users with these separate accounts?

Hello @Gifff69, Currently this feature is not yet supported. Could you please share more about why you need multiple department accounts in Netbird? How do you plan to manage and associate multiple users with these separate accounts?

I would like to manage different department network by using same Management UI.
Each account have owner who can create new user and assign to admin or user role.
Do you have roadmap to add this feature? Can share the schedule?

it's not currently on our roadmap. in the meantime, you can manage the network by creating a single account and controlling departmental access with access control policies. This setup allows all users to belong to the same organization account while maintaining segregated access to organizational network resources.

it's not currently on our roadmap. in the meantime, you can manage the network by creating a single account and controlling departmental access with access control policies. This setup allows all users to belong to the same organization account while maintaining segregated access to organizational network resources.

When I disable single account mode, it implies that creating separated network. In this case, how to create multiple users for each account?

it's not currently on our roadmap. in the meantime, you can manage the network by creating a single account and controlling departmental access with access control policies. This setup allows all users to belong to the same organization account while maintaining segregated access to organizational network resources.

When I disable single account mode, it implies that creating separated network. In this case, how to create multiple users for each account?

You should use single account mode enabled (do not disable single account mode). This way, all organizational users are managed within the same account. You can add users from your Identity Provider (IdP), and they will be automatically synced to your NetBird instance. For detailed instructions on setting up and integrating with a supported IdP, you can refer to our self-hosting guide at https://docs.netbird.io/selfhosted/selfhosted-guide

it's not currently on our roadmap. in the meantime, you can manage the network by creating a single account and controlling departmental access with access control policies. This setup allows all users to belong to the same organization account while maintaining segregated access to organizational network resources.

When I disable single account mode, it implies that creating separated network. In this case, how to create multiple users for each account?

You should use single account mode (do not disable single account mode). This way, all organizational users are managed within the same account. You can add users from your Identity Provider (IdP), and they will be automatically synced to your NetBird instance. For detailed instructions on setting up and integrating with a supported IdP, you can refer to our self-hosting guide at https://docs.netbird.io/selfhosted/selfhosted-guide

Thanks for reply.
In summary, can selfhosted NetBird support this hierarchy?
Account1, network1, => user01~05
Account2, network2, => user01~05
Account3, network3, => user01~05

it's not currently on our roadmap. in the meantime, you can manage the network by creating a single account and controlling departmental access with access control policies. This setup allows all users to belong to the same organization account while maintaining segregated access to organizational network resources.

When I disable single account mode, it implies that creating separated network. In this case, how to create multiple users for each account?

You should use single account mode (do not disable single account mode). This way, all organizational users are managed within the same account. You can add users from your Identity Provider (IdP), and they will be automatically synced to your NetBird instance. For detailed instructions on setting up and integrating with a supported IdP, you can refer to our self-hosting guide at https://docs.netbird.io/selfhosted/selfhosted-guide

Thanks for reply. In summary, can selfhosted NetBird support this hierarchy? Account1, network1, => user01-05 Account2, network2, => user01-05 Account3, network3, => user01-05

@bcmmbaga
Can confirm if Selfhosted NetBird support the hierarchy below? Thanks.
Account1, network1, => user01-05;
Account2, network2, => user01-05;
Account3, network3, => user01-05

To understand your requirement better, are these user01-05 the same for all three accounts?

it's not currently on our roadmap. in the meantime, you can manage the network by creating a single account and controlling departmental access with access control policies. This setup allows all users to belong to the same organization account while maintaining segregated access to organizational network resources.

When I disable single account mode, it implies that creating separated network. In this case, how to create multiple users for each account?

You should use single account mode (do not disable single account mode). This way, all organizational users are managed within the same account. You can add users from your Identity Provider (IdP), and they will be automatically synced to your NetBird instance. For detailed instructions on setting up and integrating with a supported IdP, you can refer to our self-hosting guide at https://docs.netbird.io/selfhosted/selfhosted-guide

Thanks for reply. In summary, can selfhosted NetBird support this hierarchy? Account1, network1, => user01-05 Account2, network2, => user01-05 Account3, network3, => user01-05

@bcmmbaga Can confirm if Selfhosted NetBird support the hierarchy below? Thanks. Account1, network1, => user01-05; Account2, network2, => user01-05; Account3, network3, => user01-05

To understand your requirement better, are these user01-05 the same for all three accounts?

no, separate user under corresponding account/network.

it's not currently on our roadmap. in the meantime, you can manage the network by creating a single account and controlling departmental access with access control policies. This setup allows all users to belong to the same organization account while maintaining segregated access to organizational network resources.

When I disable single account mode, it implies that creating separated network. In this case, how to create multiple users for each account?

You should use single account mode (do not disable single account mode). This way, all organizational users are managed within the same account. You can add users from your Identity Provider (IdP), and they will be automatically synced to your NetBird instance. For detailed instructions on setting up and integrating with a supported IdP, you can refer to our self-hosting guide at https://docs.netbird.io/selfhosted/selfhosted-guide

Thanks for reply. In summary, can selfhosted NetBird support this hierarchy? Account1, network1, => user01-05 Account2, network2, => user01-05 Account3, network3, => user01-05

@bcmmbaga Can confirm if Selfhosted NetBird support the hierarchy below? Thanks. Account1, network1, => user01-05; Account2, network2, => user01-05; Account3, network3, => user01-05

To understand your requirement better, are these user01-05 the same for all three accounts?

no, separate users under corresponding account/network.

Yes, this is supported.

I can create one account/network only associated with 3users by using default selfhosted "disable single mode".
Please advise how to create another account/network.

@Gifff69, can you share more about your deployment? We usually advise administrators to use groups and access control to segregate accounts within a single org, especially when this department configuration might need to connect to each other, and disabling the single account mode will make that very hard.
Also, can you share what is your identity provider? Does it support updating JWT claims? It seems like you are using Zitadel from our quick start guide and some Gmail accounts, but that won't work with these domains.

@mlsmaycon, Understanding that using groups and access control to segregate accounts within a single org. But it would be difficult to manage plenty of peers. Thus, we would like to create another account which act as new organization. Each account associated multiples users form new network and have separated peers.
Yes, you are right, we are using Zitadel from quick start guide and some Gmail accounts.
Kindly advise why that won't with these domains? How to achieve above requirement?

@mlsmaycon, Understanding that using groups and access control to segregate accounts within a single org. But it would be difficult to manage plenty of peers. Thus, we would like to create another account which act as new organization. Each account associated multiples users form new network and have separated peers.
Yes, you are right, we are using Zitadel from quick start guide and some Gmail accounts. Kindly advise why that won't work with these domains? How to achieve above requirement?

@mlsmaycon, in other words, kindly advise if selfhosted netbird support multi-organization.

Hi! @Gifff69
Would you please tell me How to set up a self-hosted server to disable single account mode?
so that I can create serval different nets on one server.

@Gifff69
Thanks for relply me!
Follow the guide, I add "--disable-single-account-mode"
Besides,need I remove this line bellow?

@Gifff69 Thanks for replying me! Follow the guide, I add "--disable-single-account-mode" Besides,need I remove this line bellow?

no, just keep it.

@Gifff69 I truly appreciate your timely help. I have successfully made it :)


AnyOf validation does not work properly with ControllerHelper

ControllerHelper uses is_a? to validate a payload against the specified schema. However, AnyOf schema generator does not consider allowed_schemas when performing is_a? method. This causes ControllerHelper to not work well with AnyOf schemas.
Not sure what the best solution is, but there has to be a way to properly validate AnyOf payloads.

This was fixed in https://github.com/Hireology/erlen/pull/27


chore: migrate check to kokoro and add native image check for monorepo library

cc/ @burkedavison

Executing: docker run --rm --interactive --network=host --privileged --volume=/var/run/docker.sock:/var/run/docker.sock --workdir=/tmpfs/src --entrypoint=github/java-shared-config/.kokoro/presubmit/downstream-build.sh --env-file=/tmpfs/tmp/tmpvtn5vkna/envfile --volume=/tmpfs:/tmpfs gcr.io/cloud-devrel-kokoro-resources/java8
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "github/java-shared-config/.kokoro/presubmit/downstream-build.sh": permission denied: unknown.
cleanup

Stacktrace:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project api-common: Fatal error compiling: invalid flag: --release -> [Help 1]

Confirmed that the tests are using native-maven-plugin:0.9.22 which is defined in the SNAPSHOT of java-shared-config:
02:56:39:718 [INFO] Skipping JaCoCo execution due to missing execution data file.
02:56:39:718 [INFO]
02:56:39:718 [INFO] --- native-maven-plugin:0.9.22:test (test-native) @ google-cloud-kmsinventory ---
02:56:39:725 [INFO] ====================
02:56:39:725 [INFO] Initializing project: Google KMS Inventory API
02:56:39:726 [INFO] ====================
02:56:39:727 [INFO] Found GraalVM installation from JAVA_HOME variable

For some reason, graalvm (11, java-orgpolicy)  is still showing  up despite being removed.


(Kubeconform) Being able to fetch schemas from different sources

This issue has been solved with https://github.com/Smana/daggerverse/pull/31


chart  ContinuousSeries legend order problem

First of all ,thanks for this awesome library, it helps a lot for me.
But a chart legend problem bothers me. demo picture is below

, i want to change the legend order like this:

Class HC
Class 1
Class 2
Class 3
Class 4
but actually  the order is the index order, so how to do it? is there any documents?

The legend typically draws in the order you register the series. If you'd like a different order than the series order, we can maybe add a SortIndex interface that you would return what relative order you'd like your objects to shown in the chart, but otherwise it's been sufficient to use the chart series order.


Update RepositoryManager class comments

to better explain the purpose of its attributes

Can one of the admins verify this patch?

leapp/repository/manager.py:113:118: W291 trailing whitespace


Issue about One-to-One by Single Navigation Property

Hi,
right now my sourcecode is based on EF6 and can implement one to one with single navigation property. but I could not achieve the same result on EF7. below is the details:

requirements:
table Object1 has one to one relationship with Table DisplayNames(no foreignkey constrant)
table Object2 also has one to one with Table DisplayNames.  Id(Guid) is PK for Object1,Ojbect2 and DisplayNames.  the Id of DisplayNames also should be logically  foreignkey..

Based on EF6 everything is perfect.

   public partial class Object1
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { get; set; }

        [Required]
        public string Name { get; set; }

        [Required]
        public DisplayName DisplayName { get; set; }
    }

    public partial class Object2
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { get; set; }

        [Required]
        public string Name { get; set; }

        [Required]
        public DisplayName DisplayName { get; set; }
    }

    [Table("DisplayNames")]
    public partial class DisplayName
    {
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }

        [Required]
        public string ChineseName { get; set; }
    }

    public partial class Model1 : DbContext
    {
        public Model1()
            : base("name=Model1")
        {
        }

        //public virtual DbSet<DisplayName> DisplayName { get; set; }
        public virtual DbSet<Object1> Object1 { get; set; }
        public virtual DbSet<Object2> Object2 { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            Database.SetInitializer<Model1>(null);
            modelBuilder.Entity<Object1>().HasOptional(e => e.DisplayName).WithRequired();
            modelBuilder.Entity<Object2>().HasOptional(e => e.DisplayName).WithRequired();

        }
    }
           using (var db = new Model1())
            {
                Object1 o1 = new Object1
                {
                    Name = "Object1",
                    DisplayName = new DisplayName
                    {
                        ChineseName = "ChineseName Object1"
                    }
                };
                // add one record  in Object1, add onre record in DisplayNames
                db.Object1.Add(o1); db.SaveChanges();

                Object2 o2 = new Object2
                {
                    Name = "Object1",
                    DisplayName = new DisplayName
                    {
                        ChineseName = "ChineseName Object2"
                    }
                };
                // add one record  in Object2, add onre record in DisplayNames
                db.Object2.Add(o2); db.SaveChanges();

            }

on EF7, issue ourred.... although I replace the above code with new API like the following sample
modelBuilder.Entity<Object1>().HasOne<DisplayName>(b => b.DisplayName).WithOne();

my problem is: I can not add navigation property on DisplayName side because it is used by many tables such as Object1 Object2~ ObjectN. When I add [foreignkey] on DisplayName property of  Object1, only one record add in Object1 and no  related record can be inserted in DisplayName.
How to implement these One-to-One by Single Navigation Property on EF7?

@vincedan single navigation properties are supported on EF7 and the syntax you have is correct. Perhaps you can elaborate on the error you are seeing?

@rowanmiller  sorry for missing info.  When I move source code of step 2) above from EF6 to EF7 (of course use HasOne&WithOne fluentAPI), after running, EF7 wanna execute the following sql mdl.
exec sp_executesql N'SET NOCOUNT OFF;
INSERT INTO [Object1] ([Id], [DisplayNameId], [Name])
VALUES (@p0, @p1, @p2);
SELECT @@ROWCOUNT;
',N'@p0 uniqueidentifier,@p1 nvarchar(4000),@p2 nvarchar(4000)',@p0='B4EC6026-B688-4636-CB7B-08D302685F9B',@p1=NULL,@p2=N'Object1'
field 'DisplayNameId' is not existing in DB and return related exception..
I try to add [ForeignKey("Id")] on DisplayName property of Object1, then no error return, but the result is not correct: only insert a record in Table Object1, no record added in Table DisplayNames.and in memory, the inserted record successfully in Object1 has a DisplayName object with ID is Guid.Empty.

The relationships are one to one relationship and the explicit configuration does not specify which one is dependent end. Therefore the conventions will determine the dependent end and that's where EF6 & EF7 have different behavior. Hence the relationships generated are different.
In EF6, the DisplayName is dependent end for both the relationships.
In EF7, by conventions, DisplayName is configured to be principal end since it is being referenced by multiple relationships. This creates shadow foreign key property on Object1 side named DisplayNameId which is the cause of the exception in generated SQL since database does not have that column.
When you try to add [ForeignKey("Id")] on DisplayName navigation of Object1, since ForeignKeyAttribute can be used in either navigations, it does not determine the principal end. But it enforces Object1 to use Id as foreign key property instead of creating shadow property DisplayNameId. Due to this the generated SQL does not throw exception. The incorrect result is due to the Add behavior with IncludeDependents.

Resolution of #3724 would be applicable here also.
For incorrect result, https://github.com/aspnet/EntityFramework/issues/4035#issuecomment-164060567

@smitpatel  that's it. different depand and principal default behivour. I also config the wrong end by foreignkey attribute(It should be on displaynames side.)

right now it does work after I adopt fluent API. modelBuilder.Entity().HasOne(b => b.DisplayName).WithOne().HasForeignKey(c=>c.Id);

in addition, understand it more clearly that ForeignKeyAttribute can not decide depand or principal.. even add this attribute on Id property of table DisplayNames.
Thanks @smitpatel & @rowanmiller 's answer.

@smitpatel that's it. different default behivour for setting depand and principal . I also config the wrong end by foreignkey attribute(It should be on displaynames side.)

right now it does work after I adopt fluent API. modelBuilder.Entity().HasOne(b => b.DisplayName).WithOne().HasForeignKey(c=>c.Id);

in addition, understand it more clearly that ForeignKeyAttribute can not decide depand or principal.. even add this attribute on Id property of table DisplayNames.

FluentAPI-> HasForeignKey()  is not the same as ForeignKeyAttribute (If my understanding is wrong, please correct me : )

ForeignKeyAttribute can determine dependent end only when it is used on the foreign key property. Since we know where is the property, we know that is the dependent end. Though to use it that way, you require dependent to principal navigation which ForeignKey refers to and it cannot be used with composite foreign key this way. In your case since DisplayName does not have navigation to principal, ForeignKey cannot help.

FluentAPI-> HasForeignKey is more explicit way to define the foreign keys. It takes all the required components so that there is no ambiguity. Hence using it makes you to specify the dependent end for one-to-one foreign key on which the properties reside.

ForeignKeyAttribute has various limitation in expressing the relationship fully

Since it refers to navigation or fk property, it requires them to be defined. Hence to have it on property, you must have dependent to principal navigation.
Using it on navigation it doesn't specify the principal end. It gives only property name for which EF has to search on both the side to see where it exists and determine the principal-dependent ends with conventional rules.
To define composite FK, you must write it on navigation only.

Therefore, when annotations are used, there can be some missing pieces which convention tries to fills in based on the information available. Which may not always matches with the user expectations.

@smitpatel , thanks for your deep elaboration for foreignKeyAttribute and related EF implmentation mechnism.
I repen this issue because I found, if I configure both Object1 and Object2 like the below,
        modelBuilder.Entity<Object1>().HasOptional(e => e.DisplayName).WithRequired();
        modelBuilder.Entity<Object2>().HasOptional(e => e.DisplayName).WithRequired();

when I want to add object1 with child displayname,  the same error happened again --> {ColumnName DisplayName_Id is invalid}

@smitpatel , thanks for your deep elaboration for foreignKeyAttribute and related EF implmentation mechnism.
I repen this issue because I found, if I configure both Object1 and Object2 like the below,
        modelBuilder.Entity<Object1>().HasOne<DisplayName>(b => b.DisplayName).WithOne().HasForeignKey<DisplayName>(c => c.Id);
        modelBuilder.Entity<Object2>().HasOne<DisplayName>(b => b.DisplayName).WithOne().HasForeignKey<DisplayName>(c => c.Id);

when I try to add Object1 with child Displayname,  the same error happened again --> {ColumnName DisplayName_Id is invalid}
if only one configure, no error.
modelBuilder.Entity().HasOne(b => b.DisplayName).WithOne().HasForeignKey(c => c.Id);

You are trying to use the same property Id as foreign key for 2 different relationships, that scenario is blocked by #3551. Therefore when you configure second relationship to use Id property, it will remove the foreign key property for the first one and create shadow property named DisplayNameId for it. If you specify only one configuration then the other relationship will have shadow property DisplayNameId.

@smitpatel  thanks.. I close this one  and waiting new release to solve it


General format options?

Currently the format is HashMap<PathBuf, Vec<Source>>

Hierarchy is clear
More complexity to expand
More complexity to merge multiple stages (a default and a user stage)

Other possible options:

Vec<PathBuf, Source>

Easy to expand
Easy to merge
But what do we call the PathBuf field in the struct (since we can't actually use a tuple)?  We we'd probably flatten the Source struct into this, meaning we can't conflict with any Source names

Vec<PathBuf, Vec<Source>>

Worse of both worlds?

Current format is a Map<Path, Vec<Source>
[[stage."/usr/bin"]]
type="SourceFile"
path="./targets/release/foo"

Possible formats
Vec<{destinaton: Path, nested: Source}>
[[stage]]
destination="/usr/bin"
type="SourceFile"
path="./targets/release/foo"

Nested / Recursive which works better in yaml/json than toml
stage:
  - name: usr
    type: Directory
    content:
      - name: bin
        type: Directory
        content:
        - type: SourceFile
          path: "./targets/release/foo"


gate.exponent  = new_exponent causes AttributeError: can't set attribute.

I want to modify exponent of given gates to substitute old sympy.Symbol to new one. But it is not allowed because the gate.exponent as no setter. Is it intended design or may I add it?

Hmm. I found out _with_exponent() but it is private. So I decided using the full type(a.gate)(exponent=sympy.Symbol('new')), but am afraid of _global_phase. Does cirq.decompose() guarantee that the generated gates have no _global_phase?

Closing because gates (and most objects in Cirq other than Circuit) are intended to be immutable.
If your goal is to substitute one symbol for another, you should use cirq.resolve_parameters to create a new gate.  This will work in general, even if the exponent is an expression involving that symbol.  cirq.resolve_parameters also works on Operation and Circuit.
>>> a = cirq.X(cirq.NamedQubit('q0')) ** sympy.Symbol('old')
>>> b = cirq.resolve_parameters(a, {'old': sympy.Symbol('new')})
>>> print(a)
X**old(q0)
>>> print(b)
X**new(q0)

Thanks. I checked it works perfectly :)


YAML clarification

"Dataview queries are now YAML-based..."
Does this mean that only front-matter will be supported (vs inline syntax)?

Existing inline syntax will still function - this refers to The Dataview Query Language, which is being replaced with a visual editor (that becomes YAML codeblocks in the background, so they can still be copy-pasted).


Please confirm these before moving forward

[X] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
[X] I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue
Installer hash mismatch.
Brief description of your issue
-> winget upgrade -e --id Microsoft.Sysinternals.ProcessExplorer
Found Process Explorer [Microsoft.Sysinternals.ProcessExplorer] Version 17.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://live.sysinternals.com/procexp.exe
  ██████████████████████████████  4.35 MB / 4.35 MB
Installer hash does not match; to override this check use --force

Steps to reproduce
winget upgrade -e --id Microsoft.Sysinternals.ProcessExplorer
Actual behavior
Installer hash does not match; to override this check use --force
Expected behavior
Successful installation
Environment
Windows Package Manager v1.3.2691
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.2130
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Screenshots and Logs
No response

I get the same problem with version 17.04 when installing.

$ winget install Microsoft.Sysinternals.ProcessExplorer
Found Process Explorer [Microsoft.Sysinternals.ProcessExplorer] Version 17.04
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://live.sysinternals.com/procexp64.exe
██████████████████████████████  2.28 MB / 2.28 MB
Installer hash does not match.


Project/Version page diffs

Project owners, or well anyone who can edit pages/version pages on a project should have access to an edit history for that page. Currently that info is visible in the user action log, but that is only for Moderators/Admins. Along with this would come page rollbacks. This shouldn't be a big issue since that information is already stored in the logs table.

handled in #396


Inconsistent Font on the Sponsors page

Inconsistent font on the sponsors page. The first two are different shades then the second two

I think theyre the same


feat(serve-static): "206 Partial Content" support

Closes #3324
This implements 206 Partial Content(also called as range requests) support in serve-static middleware.
It will be useful specially for seeking a video file.
serve-static base implementation now accepts an optional function:
partialContentSupport?: (path: string) => Promise<{
      size: number
      getPartialContent: (start: number, end: number) => PartialContent
      close: () => void
}>

If partialContentSupport is provided and HTTP header includes valid Range, serve-static returns  subsets of content.
getPartialContent function encapsulates a file handle to avoid opening and closing file multiple times.
close function is invoked when all ranges are read, to teardown the file handle.
416 Range Not Satisfiable
The implementation also returns 416 Range Not Satisfiable if Range headers contains many range requests (more than 10), that is potentially DoS (Denial of Service) attack.
This limitation (10) is just a clueless number.
The number may be changed when we understand it is too small/too big.
Not included

Cache-control via If-Range, ETag and so on. I think this feature is useful without having cache-control, which needs a lot work.
Node.js implementation. Because Node.js does not share serverStatic implementation 😭 It is solely implemented here: https://github.com/honojs/node-server/blob/74e86a28f375e5acd52e342519ff2b1110a95c16/src/serve-static.ts#L59
Deno coverage is 0%: #3456 will fix it

The author should do the following, if applicable

[x] Add tests
[x] Run tests
[x] bun run format:fix && bun run lint:fix to format the code
[ ] Add TSDoc/JSDoc to document the code

Hi @exoego
I'm sorry I can't review it yet. Still a little bit busy; please wait.

@exoego
I'm sorry for being super late. I have an idea, and I'll share it with you soon.


Epic: Profile Consistency and Intuitiveness

Purpose of this ticket:

To highlight where the current behaviour could be inconsistent and/or unintuitive.
To point to tickets that highlight some of these potential issues.
To highlight that these tickets especially should not be blindly implemented but considered carefully.

Motivation
A tool like this will likely never be required by a user, only nice to have. It will usually be possible for them generate their own test data, testing exactly what they want. If they are to use this tool, it needs to be useful and intuitive as far as possible. Therefore, it would be worth carefully considering the core functionality. The decisions here could also affect decisions made later, for example #804.
Possible Actions:

Keep the current behaviour until/unless changes are requested by users.
Keep the current behaviour but implement the changes listed in the tickets.
Discuss the questions mentioned here and decide from there.

Behaviour
Is the current behaviour of nulls consistent/intuitive?
See here for more information.
Potentially relevant tickets:

#1074 - null is implicitly included when using inSet
#xxxx - set nullability in the field definition

Is the current typing behaviour intuitive?
See here for more information.
Potentially relevant tickets:

#1112
#xxxx - Typing should be moved to the field definitions to remove the need for strange decisions, for example "should greaterThan allow strings?"

closing as duplicated in various tickets - eg #1217


problems with nesting contents

While trying to copy over the sample-runner/collapse-panel functionality from skeleton-bridge I've encountered problems nesting <content>s inside of each other.
Basically this (simplified):
<md-card>

  <content></content>
</md-card>

md-card:
<template>
   <content></content>
</template>

So there is content injected into collapse-panel which serves as the content for md-card.
According to this issue there should only be one unnamed content element.
That means, I have been using <content> wrong, but probably also the collapse-panel since how I understood this, an unnamed <content> is some kind of "fallback" for dynamic content. I may have gotten that wrong, though.
I'm wondering how this should be used correctly. I don't know what kind of content users inject into md-card, so I can't use a selector.
In a strict sense, it's the same with collapse-panel. Of course, I could restrict myself to "mark" content with a class and select it in content. I could also create a new custom element md-card-content which I could then select. But that's not the point, right?

It doesn't even work with:
<content select="#exampleWrap"></content>

(that id is just for testing, of course)

I've pushed the (non-working) changes for others to see.
Here: https://github.com/aurelia-ui-toolkits/aurelia-materialize-bridge/commit/31164c188ef588a1918346dd2f18a13fd64e4359
The md-card is commented to make it work. It uses <content>, just like collapse-paneldoes. The content is not visible if md-card is actually used.

Darn - how is that we do not have issues with that in KendoUI bridge? Too simple nesting? I was hoping at some point to increase the depth - particularly in help section

Yeah, KendoUI bridge and skeleton-bridge have one level of nesting at most, I guess.

We would need more (for RTE) I think so any reasonable effort to solve it would make a lot of sense.

Something doesn't add up. Even if I name everything (classes, components, tried them all) it won't display the composed contents.
<template replaceable part="..."> won't work either. That just doesn't fit what I've read in the issue I've posted above.
I have to leave it be for now. Will have another look tomorrow.

The following nesting works in a plunk:
<my-container>
  <my-content>this should be visible</my-content>
</my-container>

my-container:
<template>
  <content></content>
</template>

my-content:
<template>
  <content></content>
</template>

http://plnkr.co/edit/XIznzw4DUmfyO0eu5Snq?p=preview

Can anyone have a look, please?
I must have done something wrong - although that would contradict what I've read about nested contents (the issue linked above). Anyway, the plunk does not have this issue.
Fresh eyes see more. Please help.

Okay, at least I can reproduce it now:
http://plnkr.co/edit/XIznzw4DUmfyO0eu5Snq?p=preview
Still, this does not happen everytime. For example with simple html templates (no explicit view model) like the my-content example in the comment before the previous comment.
I will have another look at it.

That is really confusing...
This kind of nesting works:
<my-container>
  <my-card>
    flat "nested" content
  </my-card>
</my-container>

my-container and my-card both look like:
<template>
  <content></content>
</template>

This does not:
<simple-panel title="there should also be content here:">
  simple-panel content
</simple-panel>

simple-panel:
<template bindable="title">
  <require from="./simple-card.html"></require>

${title}

  <simple-card>
    <content></content>
  </simple-card>
</template>

simple-card:
<template>
  <content></content>
</template>

Does that make any sense?

This seems to be a (the only?) possible solution:
sample-runner.html
<collapse-panel>
  <md-card md-title.bind="sample.title">
    <compose view-model.bind="sample.path"></compose>
  </md-card>
</collapse-panel>

collapse-panel.html:
<template>

        <content select="md-card"></content>

</template>

md-card.html (simplified):
<template>
  <content></content>
</template>

I think that's a bit unfortunate, I thought <content> would work differently. I thought it meant "put whatever contents I put in my custom element's innerHTML here" - but apparently it doesn't work that way.

I'm leaving the rest of the samples as they are until I can think again. :smirk:

Jeroen started to build the Github Pages (gh-pages) hosted Materialize bridge today

\ o /


Add aix-explainer deploy command

What this PR does / why we need it:
I added  some command in Makefile ,let users can easily deploy their own version of aix explainer.  Also added a file aix_patch_dev.sh in .hack directory
When I try to deploy my own version of aix explainer in kserve, I noticed that there is no command to deploy aix explainer in Makefile.
Type of changes
Please delete options that are not relevant.

[ ] New feature (non-breaking change which adds functionality)

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Checklist:

[ ] Have you added unit/e2e tests that prove your fix is effective or that this feature works?
[ ] Has code been commented, particularly in hard-to-understand areas?
[ ] Have you made corresponding changes to the documentation?

/assign @animeshsingh

Looks good. It will be even better/easier to review and approve if you add the details of the testing that was done on the PR.

/ok-to-test

/test kubeflow-kserve-presubmit

/retest

/retest

Thanks @Cheng8994 !
/lgtm
/approve


Avatar component clean up (Avatar Variant and AvatarGroup)

What kind of change does this PR introduce?

Added variant usage for Avatar component
Added AvatarGroup
Clean up some code

What is the current behavior?

Variant prop on Avatar does nothing

What is the new behavior?

Variant prop on Avatar will do something
AvatarGroup component

circle (default)

square

AvatarGroup
Horizontal

Vertical

Additional context
OPEN FOR SUGGESTION

@MildTomato Is this PR any good? 😅

@pknn
I think its a good start, it's probably best to look at this as a starting point and we keep improving it with more PRs.
I think it's probably good to look at it from how it would be used, how to use an image inside the component, and how to use an icon in it.
So with an image, maybe we can do this so someone can use whatever image markup they like.
probably very helpful for anyone using something like Next/Image or maybe things like Cloudinary SDK
<Avatar src={<Img src="imgUrl"/>} size={"small"} type={"rounded"}/>

and maybe src can also take a string as well, in case they are not bothered about using their own img tag
<Avatar src="imgUrl" size={"small"} type={"rounded"}/>

same for icon, just pass the icon through a prop
<Avatar icon={<IconUser />} size={"small"} type={"square"}/>

@MildTomato I think what you proposed is pretty much what I would love to use. We can set it as a milestone for Avatar component, then iteratively working towards it.

Supabase UI is being deprecated.
As part of that, we are closing Pull Requests in this repo for now.
If you'd like to still make these changes, you could consider making these changes in https://github.com/supabase/supabase/tree/master/packages/ui

We are moving the components to the main mono repo at https://github.com/supabase/supabase.
The auth component has been moved to it's own repo and package. https://github.com/supabase-community/auth-ui. You can also read the docs for auth ui here.


Added missing slow down error en.coffee

I'm not getting what you're doing here. A key without a value or value without a key is not meaningful.

Oops, sorry