Influx2 unauthorized with token

Hi!
I created a new bucket and an api token for influx2db from the scratch. Unfortunately I am not able to get access from unpoller to my bucket:
unpoller    | 2023/05/16 09:34:35 [ERROR] influxdb.Write(points): {"code":"unauthorized","message":"Unauthorized"}

unpoller    | 2023/05/16 09:34:02 [INFO] Loading Configuration File: /etc/unifi-poller/up.conf
unpoller    | 2023/05/16 09:34:02 [INFO] UniFi Poller v2.1.3 Starting Up! PID: 1
unpoller    | 2023/05/16 09:34:03 [INFO] Found 1 site(s) on controller https://<IP_ADDRESS>: default (BlackMesa)
unpoller    | 2023/05/16 09:34:03 [INFO] Configured UniFi Controller 1 of 1:
unpoller    | 2023/05/16 09:34:03 [INFO]    => URL: https://<IP_ADDRESS> (verify SSL: false)
unpoller    | 2023/05/16 09:34:03 [INFO]    => Version:  (9608a9fc-6a75-55ba-b779-ae8f896eb60d)
unpoller    | 2023/05/16 09:34:03 [INFO]    => Username: influx (has password: true)
unpoller    | 2023/05/16 09:34:03 [INFO]    => Hash PII / Poll Sites: false / all
unpoller    | 2023/05/16 09:34:03 [INFO]    => Save Sites / Save DPI: true / true (metrics)
unpoller    | 2023/05/16 09:34:03 [INFO]    => Save Events / Save IDS: true / true (logs)
unpoller    | 2023/05/16 09:34:03 [INFO]    => Save Alarms / Anomalies: true / true (logs)
unpoller    | 2023/05/16 09:34:03 [INFO]    => Save Rogue APs: true
unpoller    | 2023/05/16 09:34:03 [INFO] Prometheus config missing (or disabled), Prometheus HTTP listener disabled!
unpoller    | 2023/05/16 09:34:03 [INFO] Internal web server disabled!
unpoller    | 2023/05/16 09:34:03 [INFO] Loki config missing (or disabled), Loki output disabled!
unpoller    | 2023/05/16 09:34:03 [INFO] Poller->InfluxDB started, interval: 30s, dp: true, db: unifi, url: http://<IP_ADDRESS>:8086
unpoller    | 2023/05/16 09:34:35 [ERROR] influxdb.Write(points): {"code":"unauthorized","message":"Unauthorized"}

This is my .yml. Editing unpoller.confdirectly does not make a difference:
version: "3"
services:
  unpoller:
    container_name: unpoller
    restart: unless-stopped
    image: golift/unifi-poller:latest
    volumes:
      - ./config/unpoller.conf:/etc/unifi-poller/up.conf
    environment:
      - UP_INFLUXDB_ORG=LambdaCore
      - UP_INFLUXDB_BUCKET=unifi
      - UP_INFLUXDB_USEV2=true
      - UP_INFLUXDB_AUTH_TOKEN="vEryL0ngT0k3n"
      - UP_INFLUXDB_URL=http://<IP_ADDRESS>:8086

What am I missing here?
Deleting env variables from docker-compose and adding credentials directly to unpoller.conf also does not help.
unpoller.conf:
[influxdb]
  disable = false
  url  = "http://<IP_ADDRESS>:8086"
  org = "LambdaCore"
  bucket = "unifi"
  auth_token = "vEryL0ngT0k3n"
  verify_ssl = false
  interval = "30s"
  dead_ports = true

OK, this is really funny! Or supid... but no one has seen it: Look at the unpoller version! I had the old image golift/unifi-poller:latest.
I have now taken the correct repo ghcr.io/unpoller/unpoller:latest. Guess what? It works!
2023/05/18 22:54:30 [INFO] Loading Configuration File: /etc/unpoller/up.conf
2023/05/18 22:54:30 [INFO] UniFi Poller v2.7.13 Starting Up! PID: 1
2023/05/18 22:54:30 [INFO] Found 1 site(s) on controller https://<IP_ADDRESS>: default (BlackMesa)
2023/05/18 22:54:30 [INFO] Configured UniFi Controller 1 of 1:
2023/05/18 22:54:30 [INFO]    => URL: https://<IP_ADDRESS> (verify SSL: false)
2023/05/18 22:54:30 [INFO]    => Version:  (9608a9fc-6a75-55ba-b779-ae8f896eb60d)
2023/05/18 22:54:30 [INFO]    => Username: influx (has password: true)
2023/05/18 22:54:30 [INFO]    => Hash PII false / Drop PII false / Poll Sites: all
2023/05/18 22:54:30 [INFO]    => Save Sites true / Save DPI true (metrics)
2023/05/18 22:54:30 [INFO]    => Save Events false / Save IDS false (logs)
2023/05/18 22:54:30 [INFO]    => Save Alarms false / Anomalies false (logs)
2023/05/18 22:54:30 [INFO]    => Save Rogue APs: false
2023/05/18 22:54:30 [INFO] Prometheus is enabled
2023/05/18 22:54:30 [INFO] InfluxDB enabled
2023/05/18 22:54:30 [INFO] Poller->InfluxDB started, version: 2, interval: 30s, dp: false, db: unifi, url: http://<IP_ADDRESS>:8086, bucket: unifi, org: LambdaCore
2023/05/18 22:54:30 [INFO] Prometheus exported at http://<IP_ADDRESS>:9130/ - namespace: unpoller
2023/05/18 22:55:03 [INFO] UniFi Metrics Recorded. Site: 1, Client: 46, Gateways: 1, UAP: 3, USW: 3, IDS/Event/Alarm/Anomaly: 0/0/0/0, DPI Site/Client: 1/95, Point: 1652, Fields: 9269, Err: 0, Dur: 2.342s

Related to #493


Add changelog

This was missing, adding retrospectively with some explanations.

Errors are unrelated, to be fixed by https://github.com/conda/conda-standalone/pull/39. This PR should go in before that one though.


What's the difference beween OnlineMatch and OfflineMatch?

It seems that the codes of OnlineMatch and OfflineMatch in HelloWorldApp are the same. Both two functions match trajectory samples by the following codes:
foreach (var sample in samples)
{
var vector = matcher.Execute(kstate.Vector(), kstate.Sample, sample);
kstate.Update(vector, sample);
}
Is there any differences between OnlineMatch function and OfflineMatch function?

Hello:
the original Barefoot project has an explanation:

Offline map matching: Most map matching applications rely on the matching of a sequence of position measurements recorded in the past (traces) for reconstruction of the object's path on the map. Offline map matching finds the best matching on the map and exploits availability of the full trace.
Online map matching: In many other applications, objects send position updates to some monitoring system periodically. An online map matching system matches each position update right away and, hence, keeps track of the objects' movements on the map in (near) real-time.

发现您的地址在昆明，我还是用中文沟通吧。我原来的意思是例子里的OnlineMatch函数和OfflineMatch函数执行的匹配过程好像差不多，都是先matcher.Execute，然后kstate.Update。这两个函数（OnlineMatch和OfflineMatch）有什么区别吗？后来仔细比对之后，发现OnlineMatch里还有个kstate.Estimate。

Online 的是喂一个经纬度就能估计出这个经纬度所处的路网图的边，类似于驾车使用的导航。
Offline 是一次给一堆经纬度，整体计算出途经的边。


📃: IP address - location functionality

:red_circle: Title : Location search
:red_circle: Aim : Search the IP address of any location.
:red_circle: Brief Explanation : keep it inside casual programs
Screenshots 📷

N/A

:white_check_mark: To be Mentioned while taking the issue :

Full name :
What is your participant role? (Mention the Open Source Program name. Eg. GSSOC, SSOC, JWOC, etc.)

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

Hi, please assign this issue to me

Hi, @Avdhesh-Varshney please assign this issue to me
Name: Ganesh Kumar
Contributor in SSOC and Contributor in  GSSOC

hi, please assign this issue to me
name - Tulsi Kasera
contributor in ssoc

@M-DEV-1 go ahead.

@M-DEV-1 what's the update? solve it within 1 day.

Hi, IPs aren't consistently associated with specific locations. The ISP assigns IP addresses according to IANA regulations. The most we can do is identify the range of IPs. I will take care of this.

i like to know in this issue we have to know IP address of the user or anything else ?


Location files when using nexrender-server nexrender-worker

Hello,
I am using nexrender server and worker. The server is on a linux vm and worker on a windows vm.
Do the files .aep, images, videos, ... need to be on the windows server ? Because worker send me an error and can't open the aep file.

What's the error message? and is the project (AEP and assets) stored locally on the Worker vm?

The files do need to be on the same machine as the worker, since the worker is doing the actual rendering.
The server is basically just a basic job-queue and scheduler, that mutliple workers can tap into.

Ok thanks


[MAJOR ISSUE] ECONNRESET & Failed to fetch, for a majority of the requests

Directly using one of the examples, line for line. These are the errors I get. Sometimes I will get a proper request but that is very rare. The errors I get will either be The websocket error one or a Failed fetch: Type Error.
Below is two attempts at running the demo, I was not having this issue the other day.

[UPDATE] It seems to be working when I use a VPN, perhaps microsoft is testing bans based on location and ip?

This seems to be related to my device. Things I have tried:

Nuking npm cache and reinstall packages (failed)
Trying it on the same network on a different device (worked)
VPN on the non working device (worked)
Changing DNS settings to <IP_ADDRESS> (failed)
IF YOU TOO ARE HAVING THIS ISSUE CONTACT ME ON DISCORD @: Drako Hyena#3238


Indentation for multiple case clauses over multiple lines

Currently formats as:
case One
  | Two
  | Three => ()

It should align the cases like
case One
   | Two
   | Three => ()

Do you have a citation for this from a style guide? Two-space indent is pretty standard, as in:
if (foo &&
  bar) {
  // do stuff.
}


update rustfmt flags that should work without targets

replace dump-default-config with print-config, should be related to https://github.com/rust-lang-nursery/rustfmt/commit/eca7796fb1cd8866189e273f7e5d1df5585b269e
update rustfmt flags that should work without targets

this doesn't work as expected at this moment:
cd /tmp && cargo fmt -- -h
`cargo manifest` failed.

this PR will enable commands like these without requiring users operating under a certain cargo project path:
cargo fmt -- --print-config default
cargo fmt -- -h
cargo fmt -- -V

Thanks!


Unobtrusive message for people peeping in their console

Thoughts ?

"toggable" message?

this might be interesting if the message could be filtered

Yeah, toggable with filter shunt_js_easter_egg
Regarding filtering the message itself: well if someone wants to display their own, it has always been possible using action html_head. It's not really a new "feature" per se

So, I understand this isn't popular. Ok :)


[Feature] Provide hosted operator container image

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Description
Currently, user has to build their own image  and push to registry in order to use ray-operator which is supper inconvenient. We should provide a hosted image for user to use.
Currently, most upstream ray images are hosted here https://hub.docker.com/u/rayproject. However, I don't think we can use this because it requires community to share credentials or build common infrastructure. We can probably register a dockerhub account or Github registry to use.

Note: dockerhub free tier has well-known rate limit issue. We can use it for short term and look for sponsor if the quota can not meet need some day.

Use case
User will have perfect experience to install ray-operator. No need to build images and mange it anymore.
Related issues
#47
Are you willing to submit a PR?

[X] Yes I am willing to submit a PR!

I did some investigation and seem kuberay is not registered on docker hub yet. I just create an organization https://hub.docker.com/u/kuberay to reserve the name. We are using a free team yet. for anyone need this access, please ping me and I will add you to the team who's in charge of this organization.


[$1000] Fix iOS React Native error 'value' is unavailable

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Problem
With the latest Xcode installed, when you run npm run ios it fails with the error 'value' is unavailable: introduced in iOS 12.0
Importance
All developers needs to be able to easily run the App on iOS. The workarounds for now are to downgrade to an older version of Xcode or manually set the iOS Deployment target to iOS 13.0 for the React-Codegen Pod, as described here. These workarounds are time consuming and we don't want to have to do them forever.
To be clear this is a dev only error, not a bug with the App
Solution
Upgrade our react native installation to at least 0.71.6 which will fix this error.
Issue reported by: @neil-marcellini
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~0180b96036d141f4c5
Upwork Job ID:<PHONE_NUMBER>433728512
Last Price Increase: 2023-05-09

This isn't actually a bug but I wanted to use the label temporarily to kick start the process with external contributors. I think a contributor can fix this.

Awesome thanks for linking that @aimane-chnaif! I figured maybe that was already in the works. I'll hold on the upgrade issue and we can retest once it's done.

Not overdue.
@neil-marcellini Can you add the "HOLD" to the title?

@neil-marcellini when put this on hold can you also switch it to weekly?

I'm OoO for 8 days so re-adding the BUG label, but keeping myself assigned. I'll be back at work on May 30th if this needs to be actioned before I'm back please re-apply the bug label.

Still on hold

ditto

Holding, I'm making this a monthly.

Still on hold, there's progress.

#18444 is now resolved. I think we can close this.

Oh awesome, yes!


Parallax at 0 percent

Update the parallax scrolling to start scrolling at zero percent

@nwhite89 Would you mind bumping the version too? Thanks.


yooooooo

Resolves
What Github issue does this resolve (please include link)?
Proposed Changes
Describe what this Pull Request does
Reason for Changes
Explain why these changes should be made
Test Coverage
Please show how you have added tests to cover your changes

this changes 57 files

lmao


Feature - Support for user-defined configuration files

Outcome Desired
User should be able to supply application configuration via a configuration file as opposed to passing a number of system properties (e.g -Dcassandra.migration.scripts.location=...).

Definition of Done

Use Typesafe Config library to load configuration data [1]
Refactor methods to read from configuration object than reading system properties directly.

Out of Scope

N/A

How to Demo

Use external configuration file to run integration test.
Use system variable to override external configuration file values in integration test.

Notes:
[1] - https://github.com/typesafehub/config

Implemented in #51 .


You must call one of in() or append() methods before iterating over a Finder.

If we copy php-cs-fixer config from templates and run php-cs-fixer command, then we get error within run:
In Finder.php line 661:

  [LogicException]
  You must call one of in() or append() methods before iterating over a Finder.

Cannot reproduce. in() is called: https://github.com/codeigniter4/devkit/blob/a7dc5842932c29ef21fc182e00a6209acb3ceed4/src/Template/.php-cs-fixer.dist.php#L9
$ php-cs-fixer fix --ansi --verbose --diff
PHP CS Fixer 3.22.0 Chips & Pizza by Fabien Potencier and Dariusz Ruminski.
PHP runtime: 8.1.21
Loaded config CodeIgniter4 Coding Standards from "/Users/kenji/work/codeigniter/tmp/ci436/.php-cs-fixer.dist.php".
Using cache file "build/.php-cs-fixer.cache".
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
Legend: .-no changes, F-fixed, S-skipped (cached or empty file), I-invalid file syntax (file ignored), E-error

Fixed 0 of 52 files in 0.017 seconds, 16.000 MB memory used

If you still have this issue, feel free to reopen.


Upgrade to v1.0.4 has made breaking changes to local development and they aren't obvious

I just recently upgraded to v1.04 and wanted to report the breaking changes. The docs made it seem like a simple config change, but in fact there were a handful of things that are different. I'll enumerate them and the effects below:

initially after upgrading the CLI I couldn't start anything because the commands have changed. The command is no longer nhost dev but instead nhost up. When using this I saw a message about the wrong hasura version. However it had pulled configs directly from the cloud instance. Eventually I found that there are only 4 different graphql engines and the one being recommend by the CLI (2.18.0) happened to not be tagged: https://hub.docker.com/r/nhost/graphql-engine/tags
Just upgrading the CLI is not enough. It changes where things are run and there is no indication or output to highlight this. Before I could run nhost dev and it showed me the nice little helper, as indicated in the docs, where each URL exists. And before I could use localhost:9695. The first issue with this is I didn't know where to find the new local network names. Is there a replacement to nhost dev to see all the URLs like before?
The second issue related to only upgrading the CLI is that my app started failing on local dev. It turns out I had to upgrade all of the NPM packages as well and then modify my local config to specify subdomain as local instead of localhost.
The most jarring issue was that the new framework pulled new images and uses a different system to manage branch volumes. So all of my local test data was wiped.

Overall I'm super excited about all the new changes, but the config announcement made it seem like there wouldn't need to be any other migrations.
Hopefully highlighting these there can be a better community migration guide to warn individuals about upgrades and what to expect. That being said, after these hiccups the migration worked and the app is back up and humming! And all of these issues were with my local. Production had no issue and everything seemed just fine.
Thanks for all your hard work and let me know if I can clarify anything further.

Having some similar issues here:
https://github.com/nhost/cli/issues/720

The docs made it seem like a simple config change, but in fact there were a handful of things that are different

We tried to indicate there were breaking changes by following semver rules; i.e., we increased the major release version. But I agree we could've done a better job and list all the changes in one single place.

the one being recommend by the CLI (2.18.0)

I understand the confusion but the CLI is actually not recommending that version, it is indicating the new CLI won't work without at least that version (due to some hasura features the new CLI requires). In any case, I understand it is confusing so I think I will change the minimum version to avoid confusions.

It changes where things are run and there is no indication or output to highlight this

I am afraid I don't understand this one. The output of nhost up should give you the URLs for all services:
Nhost development environment started.

URLs:
- Postgres:             postgres://postgres:postgres@localhost:5432/local
- Hasura:               https://local.hasura.nhost.run
- GraphQL:              https://local.graphql.nhost.run
- Auth:                 https://local.auth.nhost.run
- Storage:              https://local.storage.nhost.run
- Functions:            https://local.functions.nhost.run
- Dashboard:            https://local.dashboard.nhost.run
- Mailhog:              https://local.mailhog.nhost.run

SDK Configuration:
 Subdomain:             local
 Region:                (empty)

Run `nhost up` to reload the development environment
Run `nhost down` to stop the development environment
Run `nhost logs` to watch the logs

If you don't see this, please, share the output of nhost up so I can take a look.

It turns out I had to upgrade all of the NPM packages as well and then modify my local config to specify subdomain as local instead of localhost.

Actually, using localhost was deprecated months ago. The SDK has been logging a warning about it since then and the CLI has been including the new information for a while too (as you can see in the output above but if you haven't updated your dependencies for months you may have missed that. All in all, we'd recommend you updating dependencies every now and then to ensure you get latest bugfixes.

So all of my local test data was wiped

I understand this is frustrating. However, we discourage users from relying on data persisting between reboots. If you need test/development data we recommend using seeds instead as it's a more reliable way of initializing data (specially if you have multiple environments like development and testing or multiple developers)
Thanks a lot for the feedback, I really appreciate it and understand the frustration. This was a big upgrade with a lot of moving parts so I understand it can be a significant amount of work for some users. It is very hard to write ironclad documentation as different users struggle with different things, this time we tried to run the new CLI as a beta for a while to see where people were struggling and what things weren't working but understandably most Nhost users are as busy as we are so we didn't get as much feedback as we'd hope for.


TypeScript valid code is not generated when JavaScript identifier characters are included in the key.

Version
4.1.0
Describe the bug
If you define an i18n resource whose key contains a JavaScript identifier as follows, the i18n-types.ts generated by typesafe-i18n will regenerate the code that would be an error in TypeScript.
import type { BaseTranslation } from '../i18n-types.js'

const en: BaseTranslation = {
	// TODO: your translations go here
	'HI': 'Hi {name:string}! Please leave a star if you like this project: https://github.com/ivanhofer/typesafe-i18n',
	'*': {
		'FOO': 'FOO'
	},
	'abcdefc/ghijklm': 'abcdefc/ghijklm'
}

export default en

In fact, TypeScript error occurs on VSCode as shown below:

Reproduction
The reproduction repo is here:
https://github.com/kazupon/typesafe-i18n-repro1
git clone git@github.com:kazupon/typesafe-i18n-repro1.git
cd typesafe-i18n-repro1
pnpm i
pnpm typesafe-i18n

after that, you will open repo with VSCode, and open the i18n-types.ts
Logs
The log for the `typesafe-i18n` command is as follows It seems to be a particularly successful log:

 % pnpm typesafe-i18n

><EMAIL_ADDRESS>typesafe-i18n /pato/to/repro/typesafe-i18n-repro1
> typesafe-i18n

[typesafe-i18n] version 4.1.1
[typesafe-i18n] generating files for TypeScript version: '4.5.x'
[typesafe-i18n] options: { esmImports: true }
[typesafe-i18n] watcher started in: './src/i18n/'
[typesafe-i18n] ... all files are up to date

Config
{
   "esmImports": true,
   "$schema"<EMAIL_ADDRESS>}

### Additional information

So I’m interested in it, I’ve read the typesafe-i18n code.

I think the generator should parse the key,  if JavaScript identifier chars is included in the key, the generator should be wrapped with single or double quotation.
Or, `isValidation` should be errors.
https://github.com/ivanhofer/typesafe-i18n/blob/3e566a0235cb2cc3940e5c14648b86fd249c1372/packages/generator/src/files/generate-types.ts#L218

@kazupon thanks for reporting the issue.
I hope you weren't to scared about the source code. The generator would relly need a refactoring because it's hard to understand.
The bug has be fixed here: https://github.com/ivanhofer/typesafe-i18n/blob/main/packages/generator/src/generator-util.ts#L40-L45
Currently only   (space) and - are considered as non-valid characters in a property of an object. There is probably a JavaScript Spec where all valid characters are listed.
I need to take a deeper look so something like this will never happen in the future ;)

Here it is: https://developer.mozilla.org/en-US/docs/Glossary/Identifier

@ivanhofer
Maybe, esutils package is useful for you :)
https://github.com/estools/esutils#keyword
This package has some helper APIs that is able to detect an identifier

@kazupon thanks for the link. That's exactly what I needed :)
The issue was fixed in version 4.1.2

Thank you very much quickly! ❤


remove the temporary version.jackson-databind in the pom.xml

It was introduced due to an unmatched release from Jackson core and it is not necessary now.

 remove the temporary version.jackson-databind in the pom.xml light-rest-4j master

 remove the temporary version.jackson-databind in the pom.xml light-rest-4j 1.6.x


pg_extension links and updates to virtual schema links

Fixes #7623.
pg_extension is already documented in the context of our spatial features (see #7946).

Added pg_extension to general list of virtual schemas on SQL namespace page.
Removed erroneous links to "Special database names" section. (This section just warns about naming tables after virtual schemas, and says nothing about the virtual schemas).

We have a gap in our docs re: virtual schemas. See https://github.com/cockroachdb/docs/issues/8706.

This change is

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/68bacfbff45be3c618238597d856834f3cb8f5be/
Edited pages:

v20.2/alter-schema.md
v20.2/convert-to-schema.md
v20.2/owner-to.md
v20.2/sql-name-resolution.md


Human-written responses: user has to click citation number twice

It seems that the first click just changes the URL, then the second click scrolls to the citation in the footer.

I actually just want to get rid of these so I would say just close this out. Unless you veto me, as you are the only witness right now and I'm not totally sure, feel free to do so. @bryceerobertson

Fine with me


[#126965751] Use Alpine for cf-cli container base image

#126965751 Test users not removed from CC DB.
What
We use alpine base image whenever is possible to speed up the pipelines.   But in the case of cf-cli we were using Ubuntu because the cf-cli was not compiled statically. Since 6.17.1. they build it statically, so we can move the container to alpine.
Dependencies
Please merge #65, and #61 first and rebase
How to test
Travis shall pass.
You can test locally with rake build:cf-cli spec:cf-cli.
Then you can test: docker run -ti cf-cli jq --version
Who?
Anyone but @richardc or @keymon

works fine (in the pipeline)


[Github] Need new product label: Advanced Paste

See issue title.

Changed Product-Paste as plain text label to Product-Advanced Paste


[cip] flash swap support

Generally speaking, I'm in favor of this. I'd like to see more specification (should we follow the uniswap interface precisely? can we achieve the same guarantees uniswap does?)


Added pg14 to prod db playbook to build new db server

Don't merge until tomorrow morning in case we need to run the head node ansible today. (It will switch the database servers over..)


bug(mat-button): Focus state doesn't pass the Non-Text Contrast Criteria from WCAG 2.1

Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
Current looking of a mat-button in focus state:

Current looking of a mat-checkbox in focus state:

Focus state doesn't pass the 1.4.11 Non-Text Contrast Criteria from WCAG 2.1 with the adjacent colors.
It happens with mat-checkbox, mat-radio-button, mat-datepicker-toggle, mat-expansion-panel and some other interactable components.
This criterion mention:
"For active controls any visual information provided that is necessary for a user to identify that a control is present and how to operate it must have a minimum 3:1 contrast ratio with the adjacent colors. Also, any visual information necessary to indicate state, such as whether a component is selected or focused must also ensure that the information used to identify the control in that state has a minimum 3:1 contrast ratio.
This Success Criterion does not require that changes in color that differentiate between states of an individual component meet the 3:1 contrast ratio when they do not appear next to each other. For example, there is not a new requirement that visited links contrast with the default color, or that mouse hover indicators contrast with the default state. However, the component must not lose contrast with the adjacent colors, and non-text indicators such as the check in a checkbox, or an arrow graphic indicating a menu is selected or open must have sufficient contrast to the adjacent colors."
Going further in the criterion we can see an example that states it using a graphical example (in this case a checkbox but it is applicable for any interactable component):

Source: https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast
Reproduction
Steps to reproduce:

Implement the component mat-button
Use tab key to moves to the component
Check the contrast ratio between the background of the page and the background of the button in focus state.

Expected Behavior
The best approach is using an outline, leaving the default outline managed by the user agent it will pass the criterion, as mentioned in this:
"Success Criterion 1.4.11 Non-text Contrast (Level AA): The visual presentation of the following have a contrast ratio of at least 3:1 against adjacent color(s):
User Interface Components
Visual information required to identify user interface components and states, except for inactive components or where the appearance of the component is determined by the user agent and not modified by the author; "
Actual Behavior
Current looking of a mat-button in focus state:

Focus state doesn't pass the 1.4.11 Non-Text Contrast Criteria from WCAG 2.1 with the adjacent colors.
Environment

Angular:
CDK/Material:
Browser(s):
Operating System (e.g. Windows, macOS, Ubuntu):

Hello, thank you for the detailed investigation. Please use Strong focus indicators to give the focus state more contrast.


fix(material-experimental/mdc-button): @use mdc fab scss

CARETAKER NOTE: This PR corresponds to cl/355409956 - it should be merged once the CL is submitted

Closing, this is obsolete now that we switched all of our @imports to @use


Only regenerate shell_gc_root if store path changes

Currently, lorri may regenerate the shell_gc_root link to the project
environments store path, even if that store path has not changed.
With this commit, lorri will now check if the current and previous
store paths are identical and, if so, avoid regenerating the symlink.
This is especially interesting as lorri instructs direnv to watch the
shell_gc_root symlink, previously causing direnv to be constantly
reinvoked for some projects.
If merged, this should also fix issue #387.

Closes #387.
Overview

I simply tried implementing the most obvious solution with guidance from #387. I have tested these by running the modified binary on my personal machine and with my personal projects.
Also, I am not sure if this should be classified as a feature or a fix.
Checklist

[ ] Updated the documentation (code documentation, command help, ...)
[ ] Tested the change (unit or integration tests)
[ ] Amended the changelog in release.nix (see release.nix for instructions)

Whoops, it seems like those CI errors are out of my control...


Command line option to specify globals

It would be really useful to provide pre-defined namespaces through some sort of command line option so I don't have to put the same /global:.../ block at the top of every file in my library.  Maybe something like --globals="MyNamespace,AnotherNamespace".

What environment is this referring to?

voting for this issue. (or add YUI support)
I working with code based on YUI library and than Sublime text marks with warning every first line in my files :(

it look it is alredy posibble by "predef" option. Great work.


Setting maximum number of threads Polars will use

On a machine with 16GB of memory and 4 cores, I had to manually set the maximum number of threads Polars used to 1, otherwise the build dataset script kept crashing due to a memory allocation error (I do not have further details as to where it crashed). Setting number of threads to 1 allowed the build_dataset script to run to completion (following the example here: https://www.rhosignal.com/posts/streaming-chunk-sizes/). It would be helpful to have this documented somewhere.
#!/usr/bin/env python
"""Builds a dataset given a hydra config file."""

try:
    import stackprinter

    stackprinter.set_excepthook(style="darkbg2")
except ImportError:
    pass  # no need to fail because of missing dev dependency

import os
os.environ['POLARS_MAX_THREADS'] = "1"

import dataclasses
from collections import defaultdict
from pathlib import Path
from typing import Any

I've added some documentation to this effect in the README; it is not necessarily the most clearly delineated as of yet, but at least there is something there. Thanks for flagging this!


Cluster stuck in UPDATING status when a node pool update with invalid node pool name fails

Distribution specific cluster update workflow tries to retrieve information about the node pool, the retrieval fails with non-existing underlying resource, the cluster status is supposed to be set to WARNING - the code seems to be there - but the actual cluster status remains UPDATING
Reproduction:

create EKS cluster
send a node pool update request to an existing node pool with invalid name casing (for example all capital) (banzai cluster nodepool update POOL1 --cluster-name ${CLUSTER_NAME} --file ${NODE_POOL_UPDATE_YAML_PATH})
Observe the update process to fail with eks-update-node-pool process failed: ValidationError: Stack with id ${NON_EXISTING_STACK_NAME} does not exist.
Check the cluster status, it is expected to be WARNING, but actually it is UPDATING (banzai cluster get --cluster-name ${CLUSTER_NAME}).

Only occurs in enterprise environment.


add integration tests for validating CycloneDX output using cyclonedx-cli

Summary
Syft currently has a way to validate generated SBOM against the CycloneDX v1.4 schema. This functionality can be found at syft/schema/cyclonedx. This check is manual at the moment and runs against ubuntu:latest. The image ubuntu:latest does not exercise the whole CycloneDX schema for validation.
This PR adds a test that is run during the CLI checks that leverages cyclonedx-cli to validate results.
Signed-off-by: Christopher Phillips<EMAIL_ADDRESS>

Thanks @kzantow for the comments! If the tests pass here I'll merge it in.


[contracts] Port host functions to Weight V2 and storage deposit limit

Port host functions to Weight V2 and storage deposit limit

All host functions dealing with gas now have new version which accounts for the proof_size weight as well.
Added DefaultDepositLimit pallet config parameter, to allow chains set a fallback default value when a caller doesn't set storage_deposit_limit to a call.
New versions of host functions call and instantiate accept storage deposit limit parameter which allow to set the limit for the sub-call. This might be helpful for cross-contract calls. This limit is enforced right after execution returns from the sub-call, and the sub-call is rolled back if the limit has been exhausted during the call.

Drive-by changes

Add max_runtime_mem to schedule limits in order to make its configuration for integrity_test smooth.

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2521546

Tests are failing.

fyi I am also starting some work on https://github.com/paritytech/srlabs_findings/issues/245
since this is also related to storage_deposit limit, lmk if you have any insight on how this PR can impact this issue

@pgherveou your comments have been addressed

bot merge

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2734665

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2734664

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-each-crate-macos
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2734737

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2734725

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2734724

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2734726

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-each-crate
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2734735

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2734721

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable-int
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2734731

bot merge force

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2734780

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2734781


Feat: Map essentials in State

Description of PR
Wanted to add a feature to map the essentials using the users location. I geocoded the resources1 a couple days ago to get the locations for each essential entry and I used one of Dark Sky App's modules that efficiently finds the k-nearest-neighbours. Mapping these based on  categories with custom icons.
This does a knn search for medical facilities (hospitals and labs) separately to the rest of the essentials to make ensure they are prioritized.
I initially developed it to be a successor to the v1 essentials page, but I've now adopted it to fit as a component into the state and essential pages.
Type of PR

[ ] Bugfix
[x] New feature

Relevant Issues
Fixes  #848
Checklist

[ ] Compiles and passes lint tests
[ ] Properly formatted
[x] Tested on desktop
[x] Tested on phone

Screenshots
State Page
Initial

Seached

Essentials Page
Initial

w/ Table

[1]  The geocoded data was pulled on April 13 from the the API. It has become much larger with a couple of new additions to the categories.

@aswaathb Do you want this to be open? Or is there some other PR that you'll raise?

@bee-rickey I'm closing this now. Thanks for flagging it. Its too far behind master so I'll most likely just make a new one.


Fix race caused by tracking channel state separately

FaultTolerantObject checks the state of the inner object directly. RequestResponseOpener maintained its own record of the state of the RequestResponseChannel via callbacks. There would always be a small window where the two states would be out of sync. A customer was hitting that window: FTO saw that the channel had been closed for idle and called RequestResponseOpener to recreate it, but RequestResponseOpener believed the channel was still open and short-circuited the call, putting the FTO in a permanent bad state.
This PR changes RequestResponseOpener to check the state of the channel directly, so both classes are operating on the same information and there is no race window.

@JamesBirdsall What is the status of this PR? Is it still relevant?

Abandoned attempt at fixing an issue which was eventually solved by PR#21324


SAML2 group mapping

Description
While SAML2 authentication works well as it is, it's not very useful for authorization.
This PR introduces the ability to map SAML2 IdP groups (or some other list attribute) to Dojo groups.
And its configuration is similar to Azure AD group matching:

Take all groups from IdP that match a configurable regexp
Take all groups from the user on Dojo that match the same regexp
Take all existing groups in Dojo that match the same regexp

Testing

Auth0 was used to test the setup as it support SAML2

Create new application, Regular Web Application
Under application addons, enable SAML2 web-app
Use settings

{
 "mappings": {
   "user_id":     "urn:oid:0.9.2342.192003<IP_ADDRESS>",
   "email":       "urn:oid:1.2.840.1135<IP_ADDRESS>.1",
   "given_name":  "urn:oid:<IP_ADDRESS>",
   "family_name": "urn:oid:<IP_ADDRESS>",
   "groups":      "http://schemas.xmlsoap.org/claims/Group"
 },
 "passthroughClaimsWithNoMapping": false
}

Add http://localhost:8080/saml/acs/ as callback url and click Enable

As there are no groups in Auth0 and roles are not shared via SAML assertions, we can push them (roles) into a custom assertion (based on this and this links

Go to Actions choose Trigger
Choose postlogin trigger

/**
* Handler that will be called during the execution of a PostLogin flow.
*
* @param {Event} event - Details about the user and the context in which they are logging in.
* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.
*/
exports.onExecutePostLogin = async (event, api) => {
  var roles = event.authorization.roles;
	api.samlResponse.setAttribute('urn:oid:<IP_ADDRESS>', roles);
};

Back to Dojo, set the following extra configuration (via env):

DD_SAML2_ENABLED: 'true'
DD_SAML2_METADATA_AUTO_CONF_URL: <METADATA URL FROM AUTH0 SAML2 ADDON>
DD_SITE_URL: http://localhost:8080
DD_SOCIAL_LOGIN_AUTO_REDIRECT: "true"
DD_SOCIAL_AUTH_SHOW_LOGIN_FORM: "false"
DD_SAML2_CREATE_USER: "true"
DD_SAML2_ATTRIBUTES_MAP: email=email,uid=username,cn=first_name,sn=last_name
DD_SAML2_GROUPS_FILTER='.*'
DD_SAML2_GROUPS_ATTRIBUTE=roleOccupant

Now create some roles and add them to the test user in Auth0.
Create Dojo groups with the exame same name
Login using that test user and the user should be part of the mapped Dojo groups

You can verify in logs that those groups were deteted

Thank you @kiblik
Quick feedback on number 2: my initial implementation was to create the groups on demand (not optional) but there's the save signal on groups that uses user for that request and fails (with NoneType exception as it is unexpected) because there's no user (at that time yet as not done authenticating).
I decided to remove creation as that also allows more granular control on the groups.
If I make it optional too, it would allow both things, but what's the right fix on the owner? Should I modify the signal too to allow a group without owner?

If I make it optional too, it would allow both things, but what's the right fix on the owner? Should I modify the signal too to allow a group without owner?

Is it the owner of a group? I'm not able to find this attribute. Can you send the link to which signal was failing, please?

I believe it was this one https://github.com/fopina/django-DefectDojo/blob/268583954fb74635fc708c49d8826e1534cd8f5d/dojo/group/utils.py#L37
Not 100% sure as I’ve been using this in my fork for a few months now
Easy to fix in several ways, not sure which one is preferred

Easy to fix in several ways, not sure which one is preferred

It is hard to say about preference but impersonate came to my mind first.

I meant less technically but more business oriented: which user should own the group? Should anyone?

@kiblik my bad, AzureAD pipeline does create the groups but one of the required settings skips that owner user in the signal.
I guess I can simply do the same then, I'll update the PR next week 👍


Move while loop for generation to word look up

Move while loop for generation to word look up

This has been resolved.


issues at runtime - --use_msa_server

Dear Jeremy,
First of all please accept my gratitude for your fine work. In terms of the issue, I went ahead and installed Boltz-1 in a fresh virtual environment  with conda. I then tried to model an multimer with RNA with a test.yaml but when I attempted to predict the structure of the multimer, the runtime failed saying "Error: No such option--use_msa_server".  In the yaml file, I have commented out the msa lines for both protein and RNA, since I want the MSA from MMSeqs2 web server.
Here is the command I used:
Boltz predict --devices 1 --recycling_steps 10 --diffussion_samples 10 --cache "path to cache directory" --out_dir "path to output directory" --accelerator gpu --use_msa_server True --msa_server_url https://api.colabfold.com --msa_pairing_strategy greedy
This results in the aforementioned error. The yaml file is as follows:
version: 1
sequences:
  - protein:
      id: [A,B,C,D,E,F,G,H]
      sequence: GDTPSNPLRPIADDTIDHASHTPGSVSSAFILEAMVNVISGPKVLMKQIPIWLPLGVADQKTYSFDSTTAAIMLASYTITHFGKATNPLVRVNRLGPGIPDHPLRLLRIGNQAFLQEFVLPPVQLPQYFTFDLTALKLITQPLPAATWTDDTPTGSN
msa:
- rna:
      id: [I,J,K,L,M,N,O,P]
      sequence:UACAUUCCCAGCCUUUGUAGUGUUUUCGCCAAGCA
msa:
Can you please provide me with some guidance why this standard use case is failing?
I look forward to hearing from you.
With warm regards,
Yogi

Are you using the most recent commit of the Boltz code? The error looks trivial that the option is not considered valid.

However, git pull the latest commit and build from there works!

Hi all,
Thanks for your assistance in this regard. I was able to move forward with my modeling but now run into "out of memory" issue as discussed by others in the issues forum.
Yogi


Heroku Deployment Error

Can't deploy application to Heroku with current deployment button in readme. Gives attached screen

Not super familiar with Heroku - but looks like it may be a repo reference issue in the app.json file? app.json repo appears to be yahoo-trader-bot


add UrlStr and urlstr types #236

fix #236
Hi,
I've ported URL validation from marshmallow library, to my mind it's all we need. @samuelcolvin what do you think?

Awesome, thank you very much.
Maybe we need some more docs to include urlstr and document it's arguments?


Show logs - no logs shown, follow logs disappear when switching tabs

Firstly, I love this package and I'm using it extensively. Just some minor issues on viewing the logs on VS Code for Windows.
When I right-click on a Node and select "Show Logs" it opens a logs tab in the editor, but with only the filter options and no logs displayed.
To view a Node's logs, I can select "Follow Logs", which opens the same tab, but with logs and I can scroll through.
I'm on ms-kubernetes-tools.vscode-kubernetes-tools v1.0.4
VS Code:

Version: 1.38.1 (user setup)
Commit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0
Date: 2019-09-11T13:35:15.005Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.18362

cc @brendandburns

Anyone else been able to replicate this issue?

Sorry, I've been away and haven't had the chance to look at this.  Thanks for reporting it - I will see if I can get to it soon.

Anyone else been able to replicate this issue?

Yes, I've got the same issue.
Follow logs and show logs works the first time and if you switch tabs the content disappears.
If you close the (now blanc) log tab you can not re-open any new "show logs" or "follow logs"

I am getting the same issue as described by @Fredrik-C . I am able to 'show logs' or 'follow logs' for a pod one time per pod per vs code session. If I close the tab and try again for that same pod it will not work until restarting vscode completely.

This issue seems to be resolved after I updated to VS Code version 1.43.2

Still logs disappear when switching tabs. Using Kubernetes extension 1.2.1 and VS Code 1.51.1
Version: 1.51.1
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-11T01:11:34.018Z (3 wks ago)
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: <IP_ADDRESS>-electron.0
OS: Darwin x64 19.6.0


method to track session stats

I couldn't find a method to keep track of the total data cached and transferred on a fsspec session but it would be really helpful to have something like that. Maybe there is already a way to calculate this?  given that I do the following
s3 = s3fs.S3FileSystem(anon=True, data_tracking=True)
# I do the usual
s3.open(...)

# and then I can ask:
stats = s3.stats()

and stats will have total data transferred, total HTTP calls, current cache size, max cache size etc.

It would certainly be possible to do this, but we don't have anything like it yet.
Note that s3fs already has a logger ("s3fs") which you could generate stats from if you made your own custom handler. Most HTTP calls (all?) generate log events.
For caching, did you mean local copies of files, the directory listings or file data caches? For the latter, the filesystem does NOT keep track of the files that are open on it, so that would be tricky. Perhaps you'd need a weakset.


Feature/claiming bounty should open discord link in the new tab

Fixes #166

Added in latest release


Page layout docs/setup/production-environment/tools/kubeadm/high-availability/

This is a Bug Report
Formatting is off (broken HTML rendering) on this page since earlier this week (Wednesday sometime?) per my comment in #20912 - I'm adding as a separate ticket for tracking.
Some fixes to Hugo were made in #20946 and #20903 but the issues on this page are persisting.
Problem:
Seeing poor formatting and plaintext HTML due to some incorrect syntax on the page:
 - screenshot taken in FireFox, but replicated in Chromium (Brave) as well.
Page to Update:
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/high-availability/
Thank you!
[EDIT] heh - I switched GitHub accounts - the comments I was referring to were by my other account  @SudoBrendan

thanks for the report.
cc @jimangel @sftim possibly caused by the hugo bump too?
/sig docs cluster-lifecycle
/kind bug

Relates to tracking issue #20335

This is almost fixed. There are some leftovers related to the ordered list.
/assign


Update bwc workflow to include 2.16.0-SNAPSHOT

Description
Standard housekeeping work for every release to increment bwc version
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[ ] Commits are signed as 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.

Backport not needed as the changes are already merged in https://github.com/opensearch-project/neural-search/pull/791


Set tick to color name green instead of color code

So the tick will not be too bright in light background color scheme such
as Solarized Light.

You can override the color in your configuration file (usually .zshrc) using the following lines:
POWERLEVEL9K_STATUS_OK_BACKGROUND=""						# (note: only, if verbose is not false)
POWERLEVEL9K_STATUS_OK_FOREGROUND=""						# (note: only, if verbose is not false)

@changyuheng - Great idea! And you're right, using that color code does make it a bit obnoxious if the terminal is setting different default colors.
Thanks so much for contributing to P9k, and welcome to the project =)


[Metrics Advisor] Integrate Sync stack

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-ai-metricsadvisor


docker compose influxdb not creating setting up initial admin account and dbs/orgs

Posted this on Discord too and didn't get any response thought i would try here
I am using the docs here, https://unpoller.com/docs/install/dockercompose/ and after setting my values in .env and  bringing the docker up the influx db log is littered with:
[httpd] <IP_ADDRESS> - - [17/May/2023:23:39:12 +0000] "POST /api/v2/write?bucket=unpoller&org=unpoller&precision=ns HTTP/1.1 " 404 45 "-" "influxdb-client-go/2.12.3 (linux; amd64)" 070bec88-f50c-11ed-806c-0242ac130002 25
As expected unpoller has this in the logs:
2023/05/17 23:39:12 influxdb2client E! Write error: 404 Not Found: database not found: "unpoller"
I also see this in the lnfluxdb log
ts=2023-05-17T23:45:06.442465Z lvl=info msg="Auth is enabled but shared-secret is blank. BearerAuthentication is disabled." log_id=0hs1V530000 service=httpd
It appears that for reasons i do not understand it is not honoring DOCKER_INFLUXDB_INIT_MODE, DOCKER_INFLUXDB_INIT_USERNAME,DOCKER_INFLUXDB_INIT_PASSWORD or DOCKER_INFLUXDB_INIT_ADMIN_TOKEN from the .env

I am also having same kind of problem. I am getting this error while adding data source in grafana
InfluxDB returned error: error authorizing query: create admin user first or disable authentication error reading influxDB

Same as the other guy said, any fix for thsi ?

It would appear that the unpoller documentation and docker-compose file are written with configs for influxdb v2+ which do not work on influxdb 1.8 (which is used by unpoller). I had to change my env variables as follows AND use basic auth on my grafana influxdb data source to get around this.
environment:
    - INFLUXDB_DB=${INFLUXDB_DB}
    - INFLUXDB_HTTP_AUTH_ENABLED=${INFLUXDB_HTTP_AUTH_ENABLED}
    - INFLUXDB_ADMIN_USER=${INFLUXDB_ADMIN_USER}
    - INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_ADMIN_PASSWORD}


How to set edge_weight for GCN?

❓ Questions & Help

In add self loop?

You can set custom edge weights by passing them to the forward call of GCNConv.

You can set custom edge weights by passing them to the forward call of GCNConv.


Prepare the MOZCENTRAL viewer for receiving zoom events from the browser UI (bug 786674, bug 1177385)

This lays the necessary foundation for handling zoom events originating within the browser itself, rather than in the viewer. Please note that this will also require a follow-up patch to mozilla-central, such that the viewer is actually notified when zooming occurs. For example something like this: https://gist.github.com/Snuffleupagus/8d27775a3b18f1cd6cac88351edf4f7f

/botio lint

Unfortunately there isn't really a good way of testing this, short of applying both this patch and https://gist.github.com/Snuffleupagus/8d27775a3b18f1cd6cac88351edf4f7f and then building Firefox itself, so I'm hoping that this can be accepted based on its high degree of similarity with the listenFindEvents block just above :-)

/botio-linux preview

Thank you for the additional explanation! It really cleared up why we're doing this exactly.

Thank you for the additional explanation! It really cleared up why we're doing this exactly.

I should probably have included more information upfront, as this wasn't initially in the patch but seemed reasonable to add once I'd done a bit more testing.


Export User Data

Please add a button to export user data (issues, comments, etc.) into a machine readable format (JSON, XML, YAML, or whatever...)

Thanks your feedback!
Can you give more clear definition of user data?

Mainly, let people download (in a machine readable format) all the issues of a repo.

I wouldn't find being able to download user data useful at all. I wouldn't be able to think of a use-case for this at all.
Being able to download all issues for a project would probably be pointless for me too as that's what browsing the site allows me to do.

@ChangePlaces your comment is completely pointless, as there are many reasons to let users export data. If this is a problem to develop, at least letting users export a repository's "Issues" would be good enough.

@Faggy my comment is stating how I'd find this feature irrelevant. That's my... "feedback". Why would a user want to export a repository's issues? Why would a site maintainer want to allow that?

Why would a user want to export a repository's issues? Why would a site maintainer want to allow that?

Either you're trolling or these kind of questions aren't worth answering to anyway

Still sounds like a useless idea to me. You haven't been able to answer with at least one reason and only given bad attitude when asked why. :-1:

@faggy what do you want to do with this data? As long as there is no counterpart to import this kind of data it is pretty useless. If you want to have it as some kind of backup you need some way to restore. Just to export for no reason is just a waste of time and developer resources.
Real feature requests explain one or more use cases...

@tboerger maybe @faggy just wants some peace of mind, knowing that they can jump into using this platform without worrying about getting locked in so to speak (an easy way out if things don't work out in the end)?

That's a good suggestion, but that would still need an import in the other git repository management system to be imported into so this feature would still be useless without that. The data is in a database, manually doing a sql dump isn't difficult and writing an import script wouldn't be difficult. We're coders after all!

SQL dump is machine readable format and its widely adapted after all.


Feature request: detect webpack.DefinePlugin usage and dirty the cache on value change

We use HardSource and we love it.  It's been a huge boon to our productivity, so many thanks.
One thing we run into fairly frequently is that we use the DefinePlugin in webpack to define some API keys and such, and when those change, we have to blow away the cache.  It's not a huge deal, but it is a little annoying to have to blow away the entire cache instead of just the files that need to be recompiled with the new DefinePlugin'd values.  Is it possible for you guys to detect usage of that plugin, then detect the files the plugin actually applies to, and dirty them in the cache?

+1, this is something that can harm users

new HardSourceWebpackPlugin({
  cacheDirectory: path.resolve(__dirname, '../.cache/hard-source/[confighash]'),
  info: {
    mode: 'none',
    level: 'error',
  },
  environmentHash: {
    root: process.cwd(),
    directories: ['config'],
    files: ['package-lock.json', 'yarn.lock'],
  },
}),

By adding my env files into environmentHash dirs, I solved it


 If rm command fails (such as when file/folder doesn't exist), it would exit the program.
Change overview
rm operations are now appended by   || true thus will not return a failure to the python script
Testing
Tested building from scratch (out folder didn't exist) on esp32
./chef.py -d <zap file> -t esp32 -zcbfi

Closing in favor of https://github.com/project-chip/connectedhomeip/pull/19324


Reflecting properties to attributes

https://www.polymer-project.org/1.0/docs/devguide/properties.html#attribute-reflection
Is there something similar in aurelia?

At the moment, there is not, but I think we could add this in the future. I'll add it to my todo list and update that here.

Issue moved to aurelia/templating #283 via ZenHub.io


Call out the lack of support for python 2

I installed the plugin into our composer instance, and failures caused more failures (syntax error with * args) because our composer is still running python 2 (1.9).
I realise python 2 is out of support, and I'm not asking for it, but it might be handy to call out the plugin only works on python 3 :)

Sorry I didn't provide more context - I couldn't actually find the error, coworkers told me of it and restarted the tasks after I removed the plugin.
Is there any good way to test the plugin working without waiting on a task to crash? :)


[util] Enable invariant position for Risen

Closes #443
I also enabled it for Risen 2 and 3 because it's the same engine and they're probably suffering from the same issue.

Superceded by 4d46d2e6c7314f77da7ed814bcf4af171cb616f8


specialization constant test fixes

This fixes the few minor issues remaining from #719.  Specifically:

Removes use of the SPV_KHR_no_integer_wrap_decoration extension since it is not needed for these tests.
Removes the unused notEqual function argument.
Removes an unnecessary clFinish.

Fixes #911.

What about adding script assemble_spirv.py ? it is already in another PR which is not merged yet https://github.com/KhronosGroup/OpenCL-CTS/pull/902

What about adding script assemble_spirv.py ? it is already in another PR which is not merged yet #902

Ah, I was surprised not to see an existing script that does this, and #902 slipped below my radar since it's not on the OpenCL 3.0 board.  The script in #902 looks better than this one.  I'll remove this script (for now).  Let's get #902 merged soon though!


The API dosent seem to install with npm. There seems to be a big num issue

I have added the logs file.
npm-debug.txt

It's also failing to install with npm for me as well, giving<EMAIL_ADDRESS>install: 'node-gyp rebuild' as the final failing reason.

Well i think the dev isn't taking issues anymore?

same here, would be great to get this working :( @fisch0920

Refer to #23

npm install git://github.com/fisch0920/snapchat.git indeed worked.  Thank you!

The above does not work for me. I'm still getting bignum errors.
os: windows10 x64
node: v4.5.0
npm: v3.10.7
bignum: 0.11.0
npm ERR<EMAIL_ADDRESS>install: `node-gyp configure build`


Fix lux bootloader

This should be in the lux repository, not here

https://github.com/ervanalb/lux/issues/19


The way to "merge" record codecs

If there are types:
type C = { c :: Boolean } -- suppose it may contain many props
type A = { a :: Int, c :: Boolean } -- contains all props from C and some additional
type B = { b :: Number, c :: Boolean } -- contains all props from C and some additional

What would be the best way to get codecs for A and B, but without defining in each of them codecs for properties from C type? Maybe something like merging codecs produced by record (JPropCodec)?

Ultimately, you'd have to write something like:
mkCodecC :: forall r' r. Cons "c" Boolean r r' => JPropCodec (Record r) -> JPropCodec (Record r')
mkCodecC nextCodec = nextCodec
  # recordProp (Proxy :: Proxy "c") CA.boolean
  -- if you had more fields then...
  -- add more `recordProp`s and add another `Cons`
  -- constraint above
  -- # recordProp (Proxy :: Proxy "nextField") CA.int
  -- # recordProp (Proxy :: Proxy "nextField") CA.string

codec :: JsonCodec A
codecA = record
  # mkCodecC
  # recordProp (Proxy :: Proxy "a") CA.int

If you look at RowListCodec, which is used in the more "convenient" version of encoding a record, object, that's how it constructs the record. It's basically doing a fold over the row via RowList where each iteration adds another key and its codec to the final record codec

@JordanMartinez thanks! Though your code seems to show the error inside mkCodecC , I can not actually figure out what is wrong with it.
  Could not match type

    ( c :: Boolean
    | r0
    )

  with type

    r'1

@wclr Thanks! Looks like I was wrong, but I found that this compiles (although order matters still):
https://try.purescript.org/?gist=54cd7a2586d9cba35a2ebfa25f930b42


fix: fix package names in changelog files

Description
Some of the CHANGELOG.rst files still refer to old package names (i.e. without the autoware_ prefix), this PR ensures that changelog files and package names match.
Related links
Parent Issue:

How was this PR tested?
Notes for reviewers
None.
Interface changes
None.

Effects on system behavior
None.

@xmfcx this PR is quite straightforward and shouldn't break anything, please review it/merge it when you have a moment. Thanks.


Common documents loaded four times, on server startup

Bug report
Description
Common documents are loaded four times on startup, which is wasteful. They should be loaded once and cached in memory, using a closure.
Reproduction steps
Steps to reproduce the behavior:

Load backend and observe logging output for document loading

Expected behavior
Common documents are loaded from filesystem just once.
Screenshots

Acceptance criteria
GIVEN the backend is started
WHEN all documents are loaded
THEN common documents are loaded just once

Testing:


Epic: Provide photos (and more info) for representatives

We are currently using the Google Civic API to look up relevant state and federal representative information based on the user's address. This works very well! 🎉
However, the Civic API is also missing quite a bit of information about those representatives, often including their photos and sometimes even information contact information. 😭
One strategy that we could employ to workaround this shortcoming is to stitch the information provided by the Google Civic API with information provided by other public APIs, such as the Open States database: https://docs.openstates.org/api-v3/ 🔀
I'm unsure of its completeness (it seems pretty thorough at first glance) but it's definitely better than relying on just the incomplete information from the Google Civic API. 😓

We could also consider some wholesale alternatives to using Google Civic API. It seems none of them are very solid alternatives, though. 😭
Google Civic API
API docs
Advantages:

Can query by ZIP code ❤
Has federal, state, and local officials

Disadvantages:

No unique IDs (Bioguide/OCD) for representatives, which complicates stitching data together 😕
No photos 😭
Sometimes other information is missing, too 😵

Open States API
API docs
Advantages:

Can query by Latitude & Longitude -- but only for State Legislators, maybe? https://openstates.org/find_your_legislator/ definitely return State + Federal for me 🤔
Includes Open Civic IDs for representatives
Has photos! 🎉
Has federal (I think?), state, and local officials
Can also just bulk download its people information from its repository -- but that's not very easily queried: https://github.com/openstates/people/tree/main/data
Now a part of CivicEagle, which could mean more support/investment

Disadvantages:

Cannot query by ZIP code, so would need to use a Geocoding API resolve an address/ZIP to Latitude & Longitude first (e.g. Google Geocoding API)
Unsure if the API includes federal officials? The API docs do NOT suggest that federal officials would be returned but they are definitely available in the raw data 🤔
Default tier is limited to ~500 requests per day, 1 request per second for the GraphQL API. Not sure if such limits exist for the REST API.

Ballotpedia API
API docs
Advantages:

Looks pretty complete ✨
Federal, state, and local officials

Disadvantages:

Not free 💰 (must contact for price quote 🙄)
Cannot query by ZIP code, so would need to use a Geocoding API resolve an address/ZIP to Latitude & Longitude first (e.g. [Google Geocoding API]

Cicero API
API docs
Advantages:

Can query by ZIP code, Latitude & Longitude, or Street Address
Offers some filtering options
Federal, state, and local officials

Disadvantages:

Not free 💰 (pricing)

Open Secrets API
API docs
ℹ f.k.a. the Center for Responsive Politics
Disadvantages:

Federal only
Max 200 requests per day

ProPublica Congress API
API docs
Advantages:

Includes Bioguide IDs for representatives

Disadvantages:

Cannot query by ZIP code
No photos
Federal officials only
Recommends using the Google Civic API to do location-based lookups 😭
Recommends using the United States project on GitHub for photos

Sunlight Foundation's Congress API
💀 🛑 Replaced by the ProPublica Congress API. ☝🏻
API docs
Advantages:

Can query by ZIP code
Can query by Latitude & Longitude
Includes Bioguide IDs for representatives
Offers query filtering

Disadvantages:

Federal officials only
Shut down on Oct. 1, 2017.

Open Civic Data (OCD) API
💀 🛑 Replaced by the Sunlight Foundation Congress API. ☝🏻

Maybe you could get funding to pay for a solid API like Cicero API and build a cache for the data on one server, and allow development servers to connect to the cache and import or query the data from the cache securely using an api service account?

Setting up a trial for Cicero @JamesMGreene


tekton-pipelines controller SCC selection

Hi, we have a number of clusters, on all of which we've deployed openshift pipelines on via the operator. We are experiencing different behaviour on the different clusters; whereby pipeline pods are being created on some clusters under anyuid scc and the same pods on other clusters and being created under the restricted scc.
I've done some digging and can see we have:
$ oc get po -n openshift-pipelines
NAME                                           READY   STATUS    RESTARTS   AGE
tekton-pipelines-controller-696f95748f-cng4m   1/1     Running   0          115m
tekton-pipelines-webhook-6ccc8fdc6d-lgxh8      1/1     Running   0          100m
tekton-triggers-controller-7d6cc7bb9-k7bnx     1/1     Running   0          100m
tekton-triggers-webhook-775d45569d-48z6s       1/1     Running   0          115m

$ oc get pod tekton-pipelines-controller-696f95748f-cng4m -n openshift-pipelines -oyaml | grep scc
    openshift.io/scc: restricted

$ oc get po -n openshift-pipelines -oyaml | grep scc
      openshift.io/scc: restricted
      openshift.io/scc: restricted
      openshift.io/scc: restricted
      openshift.io/scc: restricted

but also on the other cluster, we have:
$ oc get pod tekton-pipelines-controller-7c4b9bf4b-8bc7k -oyaml |grep scc
    openshift.io/scc: anyuid

(the pipeline pods' SCC selection matches that of the controller on their cluster.)
I cannot understand why we are seeing some pipeline controllers installed with anyuid and some with restricted, unless the user (human) who initiaties the operator install is having their SCC access factored in? (Given that anyuid = priority 10 and all other SCCs are priority=0 and "By default, the anyuid SCC granted to cluster administrators is given priority in their SCC set. This allows cluster administrators to run pods as any user by without specifying a RunAsUser on the pod’s SecurityContext. The administrator may still specify a RunAsUser if they wish." (https://docs.openshift.com/container-platform/4.7/authentication/managing-security-context-constraints.html).
The openshift pipelines operator isn't asking for any permissions only the anyuid can grant, so it should be capable of being deployed under restricted SCC, which is the ideal scenario.
We are using: Red Hat OpenShift Pipelines Operator1.2.3 provided by Red Hat and have clusters at 4.5+ running on IBM Coud ROKS.
cc'ing @sionartingstall
Thanks,
Matt

To add to this, it seems as though the controller is "switching" to anyuid as we notice a previously working pipeline then getting permission errors as shown below, which is where are investigations led us to noticing that anyuid had been applied to the tekton-controller and any subsequent task pods spawned  .
depcheck-scan
STEP-GIT-SOURCE-GIT-SOURCE-6BMGD
{"level":"info","ts":1626687777.0262935,"caller":"git/git.go:157","msg":"Successfully cloned git@github.ibm.com:RedHatGarage/RH_engine_boilerplate.git @ c6d70f0f44219efa6a4fa8ab7016653acb1a8870 (grafted, HEAD, origin/master) in path /workspace/git-source"}
{"level":"info","ts":1626687777.1218672,"caller":"git/git.go:198","msg":"Successfully initialized and updated submodules in path /workspace/git-source"}
STEP-NPM-INSTALL
2021/07/19 09:42:51 unsuccessful cred copy: ".docker" from "/tekton/creds" to "/tekton/home": unable to open destination: open /tekton/home/.docker/config.json: permission denied
2021/07/19 09:42:51 unsuccessful cred copy: ".ssh" from "/tekton/creds" to "/tekton/home": unable to open destination: open /tekton/home/.ssh/known_hosts: permission denied
``


Does the forest scene look like the promotion video

Hi,
Below is what I see when setting the environment to forest:

But it seems different from the promotion video's forest:

Is there anything wrong with my installation or configuration? Any feedback is appreciated!

it seems like you are still using an old version of the environment.
We did an update on March 27. Did you update your code and the Unity standalone?
There are differences between the actually rendered environment and the video.


Change fallback module name

By default - .NET native compilers do not generate a $#_ prefix for the methods coming from the assembly containing System.Object - most of the time, it should be System.Private.CoreLib.dll

Codecov Report

Merging #600 into master will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff           @@
##           master     #600   +/-   ##
=======================================
  Coverage   17.49%   17.49%
=======================================
  Files         216      216
  Lines      124906   124906
  Branches    12056    12056
=======================================
  Hits        21847    21847
  Misses     102195   102195
  Partials      864      864

Flag
Coverage Δ

#2017
17.49% <0%> (ø)
:arrow_up:

#Debug
17.49% <0%> (ø)
:arrow_up:

#Release
?

Impacted Files
Coverage Δ

src/TraceEvent/Symbols/NativeSymbolModule.cs
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Perform Data Validation Prior to Insert/Update at the Model Level

Currently it is being set and performed by the controllers. All model::insert/update methods should start by defining and performing validation, and return false if invalid.

I'm unsure on this. Perhaps it's best with validation performed by the controllers. For example, in attempting to delete an administrator, the controller currently validates 2 things:
// make sure the current admin is not deleting themself
if they are trying to, and exception is thrown
this doesn't seem like something that should be done by the model, as the model should not know who the current administrator is.
// make sure there are no system events for admin being deleted
if there are, resource redirects to index with error message. this seems like the validation could be done inside the model, but then somehow the controller would have to know what failed and still should handle the redirection. perhaps the model should simply have a fn which checks (but that would basically duplicate the fn in SystemEvents that is currently called)

Validation changed to model. For example, AdministratorsController::getDelete() calls AdministratorsMapper::delete(), which validates (throws an exception if validation fails) then call private method doDelete().


always remove file when files is string or array

The doc of action.remove

But

it will always removefile when files is string or array,
the doc should be
actions: [
  {
    type: 'remove',
    files: {
       '**/*.ts': '!useTypescript'
    }
  }
]

right?

The doc is indeed wrong, when was supposed to be implemented for all actions. However since it's quite easy to implement such feature by yourself via Array.filter method, I think we can just update the docs instead of actually implementing it. 😄