591: Operations tile is hidden

https://github.com/orgs/bcgov/projects/122/views/2?pane=issue&itemId=50184016

@BCerki to test
Given I am an external user with access to an Operator
When my Operator's status = "Draft"
Then I CANNOT access the Operations tile on my dashboard without first navigating to the "My Operator" tile and confirming (or updating) the imported Operator data.

is there a login ID I should use (that has the condition fixtures in place), or do I have to setup the conditions in my local db?
thanks :)

@BCerki to test
Given I am an external user with access to an Operator
When my Operator's status = "Draft"
Then I CANNOT access the Operations tile on my dashboard without first navigating to the "My Operator" tile and confirming (or updating) the imported Operator data.

is there a login ID I should use (that has the condition fixtures in place), or do I have to setup the conditions in my local db? thanks :)

No login ID; you'll have to set up the conditions locally

TEST
Given I am an external user with access to an Operator
When my Operator's status = "Draft"
Then I CANNOT access the Operations tile on my dashboard without first navigating to the "My Operator" tile and confirming (or updating) the imported Operator data.

Steps

Set bc_obps/registration/fixtures/mock/userOperator.json JSON as follows:

{
    "model": "registration.useroperator",
    "pk": 2,
    "fields": {
      "user": "ba2ba62a....",
      "operator": 2,
      "role": "admin",
      "status": "Draft",
      "verified_at": null,
      "verified_by": null
    }
  },

Run make reset_db
Navigate to: http://localhost:3000/dashboard/select-operator
Search "Existing Operator 2 Legal Name":  "GET /api/registration/operators/legal-name?search_value=Existing%20Operator%202%20Legal%20Name HTTP/1.1" 200
Request Access : "POST /api/registration/select-operator/request-access HTTP/1.1" 201
Errors:

An error occurred while fetching registration/operator-has-admin/2: SyntaxError: Unexpected token < in JSON at position 1
    at JSON.parse (<anonymous>)
    at parseJSONFromBytes (node:internal/deps/undici/undici:6662:19)
    at successSteps (node:internal/deps/undici/undici:6636:27)
    at node:internal/deps/undici/undici:1236:60
    at node:internal/process/task_queues:140:7
    at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
    at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
An error occurred while fetching registration/operators/2: SyntaxError: Unexpected token < in JSON at position 1
    at JSON.parse (<anonymous>)
    at parseJSONFromBytes (node:internal/deps/undici/undici:6662:19)
    at successSteps (node:internal/deps/undici/undici:6636:27)
    at node:internal/deps/undici/undici:1236:60
    at node:internal/process/task_queues:140:7
    at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
    at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
An error occurred while fetching registration/operator-has-admin/2: SyntaxError: Unexpected token < in JSON at position 1
    at JSON.parse (<anonymous>)
    at parseJSONFromBytes (node:internal/deps/undici/undici:6662:19)
    at successSteps (node:internal/deps/undici/undici:6636:27)
    at node:internal/deps/undici/undici:1236:60
    at node:internal/process/task_queues:140:7
    at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
    at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
An error occurred while fetching registration/user-operator-id: SyntaxError: Unexpected token < in JSON at position 1
    at JSON.parse (<anonymous>)
    at parseJSONFromBytes (node:internal/deps/undici/undici:6662:19)
    at successSteps (node:internal/deps/undici/undici:6636:27)
    at node:internal/deps/undici/undici:1236:60
    at node:internal/process/task_queues:140:7
    at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
    at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
An error occurred while fetching registration/user-operator-status-from-user: SyntaxError: Unexpected token < in JSON at position 1
    at JSON.parse (<anonymous>)
    at parseJSONFromBytes (node:internal/deps/undici/undici:6662:19)
    at successSteps (node:internal/deps/undici/undici:6636:27)
    at node:internal/deps/undici/undici:1236:60
    at node:internal/process/task_queues:140:7
    at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
    at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
An error occurred while fetching registration/operators?legal_name=Existing Operator 2 Legal Name: SyntaxError: Unexpected token < in JSON at position 1
    at JSON.parse (<anonymous>)
    at parseJSONFromBytes (node:internal/deps/undici/undici:6662:19)
    at successSteps (node:internal/deps/undici/undici:6636:27)
    at node:internal/deps/undici/undici:1236:60
    at node:internal/process/task_queues:140:7
    at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
    at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

FYI
Not part of your PR but, there is a print(user_operator) statement in bc_obps/registration/api/user_operator.py line 173

Oh, gotcha! I tried using the action handler but I got the build error below so I switched to fetch:
Failed to compile.

<EMAIL_ADDRESS>Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge Runtime
Learn More: https://nextjs.org/docs/messages/edge-dynamic-code-evaluation


Fix example and test compiled warnings and error in MSVC.

Tested in VS2022.

This change is

Looks like the build options changed something because the unit tests are segfaulting now.


the execution plan is not correct when adding column to system versioned table

the history should also be updated but not in the plan

The behavior is consistent with what we want for April release, so I'm moving this out of April.


ng test / Karma fails with errors in browser: "Refused to execute script .. .test.ts"

Please provide us with the following information:

OS?  Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Windows 10

Versions. Please run ng --version. If there's nothing outputted, please run
in a Terminal: node --version and paste the result here:

angular-cli: local (v1.0.0-beta.11-webpack.8, branch: master)
node: 6.5.0
os: win32 x64

Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.

Create new app: ng new newapp
try and run tests: ng test

The log given by the failure. Normally this include a stack trace and some
more information.

ERROR in [default] C:\code\a2cli\src\app\app.component.spec.ts:3:9
Module '"C:/code/a2cli/node_modules/@angular/core/testing/index"' has no exported member 'addProviders'.

ERROR in [default] C:\code\a2cli\src\app\nav-bar\nav-bar.component.spec.ts:5:9
Module '"C:/code/a2cli/node_modules/@angular/core/testing/index"' has no exported member 'addProviders'.

Mention any other details that might be useful.

Tests cannot be run.

Thanks! We'll be in touch soon.

Ok, I was able to figure out how to fix(?) the errors.
In the app.component.spec.ts files, I changed the import from:
import { addProviders, async, inject } from '@angular/core/testing';
to:
import { TestBed, async, inject } from '@angular/core/testing';
and the code in the beforeEach() method to:
TestBed.configureTestingModule([AppComponent]);
Those errors are gone, but doing ng test just brings up an empty browser window (with a Karma heading). There is, however an error in the console:
Refused to execute script from 'http://localhost:9876/base/src/test.ts?a6b943b4e0874f5ac9e782c850ebf91d7a8babf4' because its MIME type ('video/mp2t') is not executable.

Any info on this latest problem? Can't run Karma tests because of it, making testing useless...

Also, warnings are generated for internal Angular code:
WARNING in<EMAIL_ADDRESS>
45:15 Critical dependency: the request of a dependency is an expression

WARNING in<EMAIL_ADDRESS>
57:15 Critical dependency: the request of a dependency is an expression

Closing in favor of https://github.com/angular/angular-cli/issues/2125 because that one has more information.


Publish windows binary

The powershell command doesn't seem to work: https://github.com/phansch/webdriver-install/actions/runs/535042693/workflow#L71

Done with https://github.com/phansch/webdriver-install/releases/tag/v0.3.2 :tada:


Test Coverage Report

Also, you should sign in here and connect this repo. This should produce a test coverage report.
https://codecov.io

This will give us a little batch that shows how much of the code is automatically tested.

OK, linked the account but I've not done anything else.


ASG not binding to space

Hi
We trying to manage the ASG using cf-mgmt. We exported all the configuration using cf-mgmt export-config command.
Now  create-security-groups job is simply creating the ASG but not binding to space even though i specified the ASG name in space-config.yml
Note: We are not managing orgs/spaces using cf-mgmt
Am i missing sometime ?

@san4ever this feature only works if using cf-mgmt to mange orgs and spaces.  Closing this issue, please re-open if there is additional context.


For those who experiencing crashing without reason or "An unexpected error occured and Roblox needs to quit. We're sorry!"

Easy fix is do this:

Go to this path C:\Users\User\AppData\Local\Bloxstrap (where you installed bloxstrap)
Open Settings.json in this folder
You will see this

all you had to do is change this settings
"Channel": "LIVE",
"ChannelChangeMode": 0,
To this:
"Channel": "zwinplayer64",
"ChannelChangeMode": 1,
Kinda like that:

Then next time when you launch roblox you will see this:

Press "No" and then the game should start up without problem.

You realize you could've just configured this in the menu, right?

You realize you could've just configured this in the menu, right?

yeah, but when i configured this in the menu app, its just seems not work for me, so uhh yeah kinda like that

its just seems not work for me

What do you mean by that?

its just seems not work for me

What do you mean by that?

the Channel change mode thing, didnt finded it in bloxstrap menu i

What? It was right here.

so i just make a edit through config

guh missclick

If you had 'Always prompt' selected, it would definitely show that prompt.

oh really, i see

but another thing, how can you make it selecting that prompt just automatic?

to not answering Yes or No, just use it as standart

There's an option that says 'Never change'.

hmm for the first time its actually didnt worked for me i remember, but when i switched to never change it started working, maybe bug or something lmao

Either way, besides telling people to manually edit their configs and potentially breaking them when the menu is right there, I definitely do not want to be encouraging the use of old versions that'll only temporarily work for like a few days.

Either way, besides telling people to manually edit their configs and potentially breaking them when the menu is right there, I definitely do not want to be encouraging the use of old versions that'll only temporarily work for like a few days.

yeah but what can we do actually with this, roblox is just breaking themself because of anticheat

btw this config actually applies to this app, so its nothing can do bad or break something

alr i just will edit the topic then


docs(TableExamplePagination): Update chevron names

Codecov Report

Merging #2498 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2498   +/-   ##
=======================================
  Coverage   99.74%   99.74%
=======================================
  Files         154      154
  Lines        2711     2711
=======================================
  Hits         2704     2704
  Misses          7        7

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 bc8e112...6b2e7c1. Read the comment docs.

Note, icon names are not order dependent 👍 I'll close this for now as there is no effective change.  Please let me know if I've overlooked anything and we can reopen.

In the Icon component, name has the type SemanticICONS, which should match one of the specific strings. Using <Icon name="left chevron" /> results in a TS error Type '"left chevron"' is not assignable to type '"download" | "target" | "list" | "time" | "copy" | "move" | "tree" | "content" | "header" | "sear...'., however 'chevron left' is a valid string and compiles without a problem.

I see.  That is a great point.  The typescript does not include order variants, however, the prop type checker we have for this will respect order variations.


fix: allow opting out of cache: no-store fetch option in @sanity/preview-url-secret

It is currently not possible to use the validatePreviewUrl function from @sanity/preview-url-secret in a CloudFlare Worker, as the Worker runtime's fetch implementation (annoyingly) throws in the presence of the cache request init keyword instead of failing silently or simply providing an implementation stub.
Ideally, CloudFlare updates the Worker runtime to not throw in this case, as the cache option is part of the fetch standard. Until that happens, this PR allows users to opt out of setting the cache: "no-store" option in validateSecret's request init object, allowing @sanity/preview-url-secret to be used in CloudFlare Workers.
Related issues:

https://github.com/cloudflare/workerd/issues/698

Alternatively, we could just allow overriding the request init fields (with the default value being cache: "no-store" to not break existing behaviors).


342 add auth to rest api

Addresses #342.  Turns out django-rest turns on session and basic authentication by default for all views.  These seem to be working.  I explicitly added these two auth types to our settings.py to make it clear that we are using them.  I also removed the authenticate end point as we don't need it at present (and I didn't want to leave dead/unfinished API code hanging around)

This is simple and good, but it brings up a standing question in two parts:

What is the state of configuring HTTPS and getting certificates for hydroshare.org and subdomains?
Is there a ticket to track this?

@ironfroggy - Github issue for certificates here [#344]

@pkdash @ironfroggy Any objections to merging this?


Support Datadog

Would be cool if there was support for Datadog as there is with Prometheus.
Maybe implemented w/ the Datadog agent as a side car?
https://www.datadoghq.com/blog/monitor-haproxy-with-datadog/

Yeah. That's why we have ingress.appscode.com/monitoring-agent annotation. I have no experience using their service. If you want to send pr, you are most welcome!

Here are some pointers on how to do this:

Create a version of getExporterSidecar() for Datadog.

Implement Monitor interface to connect to configure datadog agent . https://github.com/appscode/voyager/tree/master/pkg/monitor

I forgot to tell one more thing, you should also add a file in the api package to define the annotations and parse them into a GO struct DatadogSpec. See the Prometheus version here:
https://github.com/appscode/voyager/blob/master/api/monitor.go


新增 MySQL error log 和指定 port

新增 MySQL error log 和指定 port

Add MySQL error log when connect error.
Add specific port when Mysql2::Client connect to database.

Don't use puts to print messages.

Don't use puts to print messages.

Could you tell me why?

https://www.rubydoc.info/gems/rubocop-rails/RuboCop/Cop/Rails/Output


[DROOLS-7635] ansible-rulebook : Raise an error when a condition compares incompatible types

This draft PR requires
https://github.com/apache/incubator-kie-drools/pull/6104
to be built beforhand.
Cross repo PR check doesn't work for now.

@mariofusco with https://github.com/apache/incubator-kie-drools/pull/6104 , now alpha index and node sharing is supported.
Limitation: in case of  node sharing, the error message has only one ruleSetName/ruleName/conditionExpression. It means that when a user fixes a condition based on the error message, they may hit the similar issue in another condition next time. It might be invasive to "combine" error messages upon node sharing in drools code base. We may ask Madhu if it's important.

The point I mentioned at https://github.com/kiegroup/drools-ansible-rulebook-integration/pull/112#discussion_r1778056780 still remains

Alpha index skips unmatched AlphaNodes and jumps to the right AlphaNode. That means, when an event doesn't match any AlphaNode because of type mismatch , the custom predicate would not be executed. This is actually the case that users want to read the error message ... "No rule fires, I don't know if constraints are wrong". I think we would need to add the check logic in CompositeObjectSinkAdapter.propagateAssertObject.

I'll need to consider further.

DO-NOT-MERGE until https://github.com/apache/incubator-kie-drools/pull/6104 will be merged and the commit is synced to kiegroup/drools

DO-NOT-MERGE until apache/incubator-kie-drools#6104 will be merged and the commit is synced to kiegroup/drools

@tkobayas FYI I'm doing the sync in PR https://github.com/kiegroup/drools/pull/80


Add Translation French ?

Hello,
Would it be possible to include French translations if I provided a file?
Thank you

Localization is slated for the refactor version of 2.0.0. I cannot promise a fast turnaround, but localization is the next major feature to be added. See #31 and follow progress there :)

Localization is slated for the refactor version of 2.0.0. I cannot promise a fast turnaround, but localization is the next major feature to be added. See #31 and follow progress there :)

Reopening as we have gotten a spanish language translation merge request!
You can find our en.json in the "localization" branch. If you can provide a french translation file, we will absolutely pull it in for the localization release!

Reopening as we have gotten a spanish language translation merge request!
You can find our en.json in the "localization" branch. If you can provide a french translation file, we will absolutely pull it in for the localization release!

Hello,
In Att, the file translate in French.
Thank you
fr DnD5Helpers.txt

Hello,
In Att, the file translate in French.
Thank you
fr DnD5Helpers.txt

Thank you! Will get this integrated into our release and will have some
time to work on it this weekend :)
On Thu, Jan 21, 2021 at 3:09 AM Elfenduil<EMAIL_ADDRESS>wrote:

Hello,
In Att, the file translate in French.
Thank you
fr DnD5Helpers.txt
https://github.com/trioderegion/dnd5e-helpers/files/5847728/fr.DnD5Helpers.txt
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/trioderegion/dnd5e-helpers/issues/47#issuecomment-764459287,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADRQOMY4R5YOS6JN6J5ATELS27OLPANCNFSM4V64FIBA
.

Thank you! Will get this integrated into our release and will have some
time to work on it this weekend :)
On Thu, Jan 21, 2021 at 3:09 AM Elfenduil<EMAIL_ADDRESS>wrote:

Hello,
In Att, the file translate in French.
Thank you
fr DnD5Helpers.txt
https://github.com/trioderegion/dnd5e-helpers/files/5847728/fr.DnD5Helpers.txt
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/trioderegion/dnd5e-helpers/issues/47#issuecomment-764459287,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADRQOMY4R5YOS6JN6J5ATELS27OLPANCNFSM4V64FIBA
.

Included in 1.9.0

Included in 1.9.0


Thresholds

This branch contains analysis of thresholds undertaken last year; it looks like I didn't do a pull request at the time (late December), but also that according to github it is 'able to merge' --- I believe the only changes were in an jupyter notebook document.  Anyway --- we can discuss on Friday if this should be pulled now, or deferred pending further modification.  But I'll do the pull request now, so I don't forget!

Thanks for all the work, Carl! I can successfully run the the notebook on my end. One minor suggestion is that may be we could add a title, and a short description of what the notebook is used for, like our other analysis notebooks' style.
I am good with this merging into the master.

Thanks Shirley, that's a great idea -- I'll look to do this (title and description in style of other analysis notebooks) later in the week.


Updated yosay

@redonkulus doesn't look like much changed from 0.3.0 to 1.0.x:
https://github.com/yeoman/yosay/compare/v0.3.0...master

CLA is valid!

Does the generator still work locally with this change?

It sure did.

:shipit:


add site replication apis

Thank you for your help with site replication apis!
Why did you remove the prometheus code? Were there any issues?

@balamurugana Thank you for your help with site replication apis!
Why did you remove the prometheus code? Were there any issues?

There is no issues. I am thinking it is not needed as we don't execute HTTP request in the API.


Move StorageRuntimeServer into libkpod

Removes some code duplication as a side effect. Required for #713 and create refactoring work.

@14rcole You can rebase #713 on this if you need StorageRuntimeServer for Update()

LGTM

@mheon WIll do.  I had it added into my PR but rebasing is fine with me

@14rcole Rebase.

I see this as a part of #713 already.

@mrunalp If you want to review + merge it there I'm fine with closing this

@mrunalp I added the code before I was aware of this PR.  I'm happy to rebase my code on top of this and repush

okay, we can get this in first, then once the tests return.

LGTM, fwiw.

@mrunalp tests pass.

@mheon rebase

@mrunalp @runcom Passes tests.

@mheon :^(

Merged via #713, closing


add guest as url param for shared events

coverage: 85.059% (-0.07%) from 85.128%
when pulling 1f709da467f709b9972c851e6f82a53edb7c614c on federation-fixes
into 989d8577efce2592cdb5edb574cbfea17bcde7f7 on main.


[hackathon] Fix missing header

Failed to build hackathon branch because ScriptWrappable is not declared
in third_party/blink/renderer/modules/webgpu/gpu_validation_error.h

Thanks for the contribution, we were using jumbo builds during the hackathon to speed up compilation which meant we forgot some includes.
Note that the hackathon branch will be obselete soon because we only need one more CL in the main Chromium repo to make it on par with this branch.


"Map Minnesota Meetup" community resource doesn't exist anymore

After editing in Minnesota, USA, the iD editor presents the link https://www.meetup.com/Map-Minnesota/ to "Map Minnesota Meetup". But the meetup.com site says "Sorry, the group you're looking for doesn't exist."  So it should be removed from the community resource list.

Hmm, I thought I had already removed it. I will submit a PR.

I did in https://github.com/osmlab/osm-community-index/pull/442. I don't think iD has been released with a new version of the community index for a while.

Thanks for the update @iandees and @AxelBoldt - there is unfortunately not much we can do about this.
For what it's worth, I did test with RapiD and I don't see the Map Minnesota Meetup, so it will be correct whenever iD starts pulling the newer community-index data files.


[branch | version] Pronouns

maybe have a string in the user profile

dupe

I think https://github.com/meower-media/server/issues/291 is a more complete feature request

you'd be correct i'm just being annoying


Account balance is increasing without transfers

Observe https://explorer.testnet.near.org/accounts/ethonnearclient08
It is receiving transactions that increase its state. The transactions do not have attached tokens. However, the balance reported by explorer is increasing, instead of decreasing. I would expect explorer to show the liquid balance, which is the balance minus locked tokens. Is it possible that we are adding locked balance instead of subtracting it?

Hmmmmm, that sounds very suspicious! There is no locked balance. Here are the RPC responses:
$ http post https://rpc.testnet.near.org jsonrpc=2.0 id=dontcare method=query   params:='{
    "request_type": "view_account",
    "finality": "final",
    "account_id": "ethonnearclient08"
  }'

{
    "id": "dontcare",
    "jsonrpc": "2.0",
    "result": {
        "amount": "2016248820508503486541357071",
        "block_hash": "2QAPBaD8WgEx2zLPYcvng49KSew6ry5JSq6bh85V2tTd",
        "block_height": 13755385,
        "code_hash": "HqS81rTmHBUCE9EhYJUXNnYjxp9woEVYHPknfP9ZxGFM",
        "locked": "0",
        "storage_paid_at": 0,
        "storage_usage": 8416050
    }
}

$ http post https://rpc.testnet.near.org jsonrpc=2.0 id=dontcare method=query   params:='{
    "request_type": "view_account",
    "finality": "final",
    "account_id": "ethonnearclient08"
  }'

{
    "id": "dontcare",
    "jsonrpc": "2.0",
    "result": {
        "amount": "2016301175039300695641357071",
        "block_hash": "Bapzema3UgdSMEAM2zM2eeNRitTSUncCJaiVgN58quhQ",
        "block_height": 13758870,
        "code_hash": "HqS81rTmHBUCE9EhYJUXNnYjxp9woEVYHPknfP9ZxGFM",
        "locked": "0",
        "storage_paid_at": 0,
        "storage_usage": 8444544
    }
}

Notice that the amount has changed! @bowenwang1996 @SkidanovAlex @evgenykuzyakov WTF?

It is developer reward. When the contract is called, there is a 30% kickback from the transaction fee.

@bowenwang1996 where is it documented/announced? How can we observe it? Is it a matter of config? Will it require hard-fork to disable these rewards?

where is it documented/announced? How can we observe it?

https://near.org/papers/economics-in-sharded-blockchain/#developer-business-models

Is it a matter of config? Will it require hard-fork to disable these rewards?

It is in genesis config (burnt_gas_reward). It will require a protocol change to disable this reward, but why do you think we should disable it?

@kcole16 @corwinharrell @vgrichina @khorolets @amgando FYI, the balance may increase with incoming function call transactions due to fees paid by the caller are partially rewarded to the receiver/contract account. We can observe the rewards through the State Changes (here is the transaction I use for this example):
$ http post https://rpc.testnet.near.org/ jsonrpc=2.0 id=dontcare method=EXPERIMENTAL_changes 'params:={"block_id": "8GdqoEmDx7SnvsRcQx7ZjpP9Jeth3tdqq8jEZtCGx74w", "changes_type": "account_changes", "account_ids": ["ethonnearclient08"]}'

{
    "id": "dontcare",
    "jsonrpc": "2.0",
    "result": {
        "block_hash": "8GdqoEmDx7SnvsRcQx7ZjpP9Jeth3tdqq8jEZtCGx74w",
        "changes": [
            {
                "cause": {
                    "receipt_hash": "GuYAFm8egDTC3Boq7sfdisAEYZeKCxZzmyzsC4meRQj5",
                    "type": "action_receipt_gas_reward"
                },
                "change": {
                    "account_id": "ethonnearclient08",
                    "amount": "2051300069168615931841357071",
                    "code_hash": "HqS81rTmHBUCE9EhYJUXNnYjxp9woEVYHPknfP9ZxGFM",
                    "locked": "0",
                    "storage_paid_at": 0,
                    "storage_usage": 8941901
                },
                "type": "account_update"
            },
            {
                "cause": {
                    "receipt_hash": "4rhVmFj1UEwPHHex4skeXdutZNtgAmRinGQioQDAsxhA",
                    "type": "action_receipt_gas_reward"
                },
                "change": {
                    "account_id": "ethonnearclient08",
                    "amount": "2051300470239495770741357071",
                    "code_hash": "HqS81rTmHBUCE9EhYJUXNnYjxp9woEVYHPknfP9ZxGFM",
                    "locked": "0",
                    "storage_paid_at": 0,
                    "storage_usage": 8941901
                },
                "type": "account_update"
            },
            {
                "cause": {
                    "receipt_hash": "DeaG1WoB89bCcoQmB25biuG9g1wG6TTT8tDrwGFpNJTp",
                    "type": "action_receipt_gas_reward"
                },
                "change": {
                    "account_id": "ethonnearclient08",
                    "amount": "2051300871310375609641357071",
                    "code_hash": "HqS81rTmHBUCE9EhYJUXNnYjxp9woEVYHPknfP9ZxGFM",
                    "locked": "0",
                    "storage_paid_at": 0,
                    "storage_usage": 8941901
                },
                "type": "account_update"
            },
            {
                "cause": {
                    "receipt_hash": "HfHSAYgizfddDYNmtGL9qXShGSjBfWYGLcW1Vjr6XfTr",
                    "type": "action_receipt_gas_reward"
                },
                "change": {
                    "account_id": "ethonnearclient08",
                    "amount": "2051301272381255448541357071",
                    "code_hash": "HqS81rTmHBUCE9EhYJUXNnYjxp9woEVYHPknfP9ZxGFM",
                    "locked": "0",
                    "storage_paid_at": 0,
                    "storage_usage": 8941901
                },
                "type": "account_update"
            },
            {
                "cause": {
                    "receipt_hash": "DFkfqG5GcsdPmNU25kNZPqDD9besJwWEjuBiW9ywzvEz",
                    "type": "action_receipt_gas_reward"
                },
                "change": {
                    "account_id": "ethonnearclient08",
                    "amount": "2051301672969076609741357071",
                    "code_hash": "HqS81rTmHBUCE9EhYJUXNnYjxp9woEVYHPknfP9ZxGFM",
                    "locked": "0",
                    "storage_paid_at": 0,
                    "storage_usage": 8941901
                },
                "type": "account_update"
            },
            {
                "cause": {
                    "receipt_hash": "6PmSt6bSBE79yhGnqD2VNNG5wB9rcFbqxxt97AhmkwEd",
                    "type": "action_receipt_gas_reward"
                },
                "change": {
                    "account_id": "ethonnearclient08",
                    "amount": "2051302074039956448641357071",
                    "code_hash": "HqS81rTmHBUCE9EhYJUXNnYjxp9woEVYHPknfP9ZxGFM",
                    "locked": "0",
                    "storage_paid_at": 0,
                    "storage_usage": 8941901
                },
                "type": "account_update"
            },
            {
                "cause": {
                    "receipt_hash": "FzhLTBCbUc6m7EPTPC7TzUyicFbvgsE6unLisUa2YZaw",
                    "type": "action_receipt_gas_reward"
                },
                "change": {
                    "account_id": "ethonnearclient08",
                    "amount": "2051302474627777609841357071",
                    "code_hash": "HqS81rTmHBUCE9EhYJUXNnYjxp9woEVYHPknfP9ZxGFM",
                    "locked": "0",
                    "storage_paid_at": 0,
                    "storage_usage": 8941901
                },
                "type": "account_update"
            },
            {
                "cause": {
                    "receipt_hash": "12NVdUpRvVFzZg2bhbkZ85cqgdXhQejEAj3xzkVdUAVS",
                    "type": "action_receipt_gas_reward"
                },
                "change": {
                    "account_id": "ethonnearclient08",
                    "amount": "2051302875698657448741357071",
                    "code_hash": "HqS81rTmHBUCE9EhYJUXNnYjxp9woEVYHPknfP9ZxGFM",
                    "locked": "0",
                    "storage_paid_at": 0,
                    "storage_usage": 8941901
                },
                "type": "account_update"
            },
            {
                "cause": {
                    "receipt_hash": "FEfE3BwqrzU5Qg5aKwnVjce6jJ19vLw2PLitLFyUok4p",
                    "type": "action_receipt_gas_reward"
                },
                "change": {
                    "account_id": "ethonnearclient08",
                    "amount": "2051303276769537287641357071",
                    "code_hash": "HqS81rTmHBUCE9EhYJUXNnYjxp9woEVYHPknfP9ZxGFM",
                    "locked": "0",
                    "storage_paid_at": 0,
                    "storage_usage": 8941901
                },
                "type": "account_update"
            }
        ]
    }
}

The account balance before the transaction (block # 14041390) was:
2051294069168615931841357071 yoctoNEAR
The block that includes the transaction (block # 14041391) has the following balance for the account:
2051303276769537287641357071 yoctoNEAR (+0.0092 NEAR)
The block after the transaction was submitted (block # 14041392) includes the receipt for the transaction and thus the contract account receives another reward and the balance is now:
2051303677840417126541357071 yoctoNEAR (+0.0004 NEAR)
$ http post https://rpc.testnet.near.org/ jsonrpc=2.0 id=dontcare method=EXPERIMENTAL_changes 'params:={"block_id": 14041392, "changes_type": "account_changes", "account_ids": ["ethonnearclient08"]}'

{
    "id": "dontcare",
    "jsonrpc": "2.0",
    "result": {
        "block_hash": "EttMZLLKa9RJJeSTCzujE6yaLwitzDpNLZkvXx7qf1sd",
        "changes": [
            {
                "cause": {
                    "receipt_hash": "An4cemkYdd8srt6bL6XpzUoXY7XYhs7qLeQ5id9Fz2jF",
                    "type": "action_receipt_gas_reward"
                },
                "change": {
                    "account_id": "ethonnearclient08",
                    "amount": "2051303677840417126541357071",
                    "code_hash": "HqS81rTmHBUCE9EhYJUXNnYjxp9woEVYHPknfP9ZxGFM",
                    "locked": "0",
                    "storage_paid_at": 0,
                    "storage_usage": 8941901
                },
                "type": "account_update"
            }
        ]
    }
}

We cannot expose this information in the current Explorer due to the lack of receipts stored on the backend. With the new Indexer for Explorer we will be able to track these down (@khorolets we will need to dig down the state changes for gas rewards like this, validation rewards, etc)

why do you think we should disable it?

I somehow thought it was a temporary solution; now I see that it is a permanent economic incentive.

so should we ignore it right now and deploy this in the indexer?

Yes, there is no actionable item at the moment


Introspection panic on a non empty database

Similar to #1087
To reproduce, create a database (PostgreSQL), try to introspect that in the init workflow.

Can you please confirm this is still a problem with current alpha @pantharshit00?

It works now in alpha. It was a bit slower but it works now.


Added ValueError to Choices Constructor to prevent empty values in Ch…

I raised an error in the Choices Constructor that says "Choices must have a minimum of one value."

No problem, @ebolyen! Sounds perfect!


feat: add template for erpnext

I followed https://coolify.io/docs/contribute/service and modified https://github.com/frappe/frappe_docker/blob/main/pwd.yml to use coolify's generated variables.
Remaining issues:

[x] the environment variable SERVICE_PASSWORD_CREATESITE doesn't automatically show up in the coolify UI (v4.0.0-beta.359), couldn't figure out why. After adding it manually, the deployment works.
Edit, this works:
 command: bench new-site --admin-password=$$ADMIN_PASSWORD
 environment:
   - ADMIN_PASSWORD=${SERVICE_PASSWORD_CREATESITE}

[x] the environment variable SERVICE_FQDN_FRONTEND does not contain a FQDN, as the name would imply, but an URL (including the protocol). -> went back to hardcoded sitename to avoid extracting FQDN from URL in all places

[x] how do we handle upgrades?
Update this file from time to time or use  variables like image: ${ERPNEXT_IMAGE:-frappe/erpnext}:${ERPNEXT_VERSION_TAG:-latest}?

[x] automatically run migration patches

[ ] Add health checks for all services:

[x] Redis 1a0ab0f,
[x] Frontend 1e07c15
[x] Backend 1d65e7d
[ ] Websocket
[ ] Scheduler
[ ] Queue Workers

[ ] Use coolify's proxy (Traefik)? https://coolify.io/docs/knowledge-base/docker/compose#labels

[ ] Write operator docs - any structured way available?

[!NOTE]
I have little experience with coolify and docker, so all help is welcome.

Thanks for this @barredterra !

https://github.com/frappe/frappe_docker/blob/main/pwd.yml to use coolify's generated variables.

This compose file is a simple set of containers required to run ERPNext. Two services out of these files are ideally run only once. There is a service to configure db and redis hosts for all services and another one is create-site to create the first site with list of apps mentioned in command.
Create site will not run multiple times, it will fail if it finds same site already created. The configure service will run on every restart. It can be kept as it is and use it to change hosts on restarts or a script can be added that check if config is already set and skips re-setting the config.

how do we handle upgrades? (Update this file from time to time? Is there a way to give more control to the user? Do we need to run patches? )

I've added following service in docker swarm stack. It never starts. It can be triggered via CI or webhook when you need to upgrade.
  migration:
    image: frappe/erpnext:${VERSION}
    deploy:
      restart_policy:
        condition: none
    entrypoint: ["bash", "-c"]
    command:
      - |
        bench --site all set-config -p maintenance_mode 1
        bench --site all set-config -p pause_scheduler 1
        bench --site all migrate
        bench --site all set-config -p maintenance_mode 0
        bench --site all set-config -p pause_scheduler 0
    volumes:
      - sites:/home/frappe/frappe-bench/sites

For this case it can have a script that checks if site is running on the versions of apps in image and only run the command if there is a diff in any version. This will ensure the bench --site all migrate never triggers on every restart, it will check version and only run if migration is needed.

If you need site backup done by frappe-bench then translate this to a scheduled task https://github.com/frappe/frappe_docker/blob/main/docs/backup-and-push-cronjob.md

Maybe we can add HR and Builder out of the box? (adds a lot of value)

Maybe we can add HR and Builder out of the box? (adds a

I think ideally we'd make the image configurable (with the current one being the default). This way everybody should be able to use their own set of apps.

Can you help here @revant ? I think this getting merged will be quite nice for the ERPNext ecosystem!
Let's get this done @barredterra !

@revant do you have an idea how we could set useful health checks for the websocket, queue workers and scheduler?

Some observations from my experience using pwd.yml in Coolify:

Shared variables with the docker image seem to work only during initial setup.
While bench commands are essential for the Frappe framework, they can occasionally lead to volume corruption issues. Some additional documentation on handling and recovering from these situations would be really helpful.
Since Traefik uses port 8080 by default, it might be worth considering changing the default port to 8081 to avoid conflicts.

Hope this feedback helps improve the setup process! 😊

@revant do you have an idea how we could set useful health checks for the websocket, queue workers and scheduler?

Simple approach:

backend: wait-for-it localhost:8000
frontend: wait-for-it localhost:8080
websocket: wait-for-it localhost:9000
workers and scheduler: check ping to redis-queue and db wait-for-it $(jq -r .db_host sites/common_site_config.json):$(jq -r .db_port sites/common_site_config.json) && ...  example: https://github.com/frappe/helm/blob/e942e57bd4e241f903deb5f68fac3411407994fc/erpnext/values.yaml#L191-L220

Complex approach:

for websocket, frontend and backend: curl -H "Host: {site-name}" http://localhost:8000/api/method/ping, Problem is, it cannot start without a site and only checks one site from the bench.
for workers can use ./env/bin/rq ... https://python-rq.org/docs/monitoring

Is this still being worked on or would I have to close this PR?

Currently busy with other things, further work on this PR is likely delayed until end of January.

All right, thanks for the contribution. I will close this for now then. You can of course keep the changes on your branch, and as soon as you work on this again, you can open a new PR when the template is ready, as we do not want to have draft PRs open for too long.


Error executing vim.schedule lua callback: Can't open file

When trying to open any file, I get the following error:
Error executing vim.schedule lua callback: ...im/site/pack/packer/start/conjure/lua/conjure/buffer.lua:42: Vim(loadview):E484: Can't open file /home/l3af/.local/share/nvim/view/~=+dots=+modules=+awesome=+conjure-log-94740.cljc=

Using the latest Conjure as of posting this with Neovim v0.5.1.

It was being caused by an autocmd I had which saved and loaded folds, seems to have been causing issues with several plugins so I've removed it and everything works again.


Issue #19 - Mute stderr output of 'stty size' in get_console_width().

This silences the 'stty: standard input: Inappropriate ioctl for device' errors.
Idea for how to fix this problem shamelessly copied from https://github.com/cmihai/compose/commit/b40104870039763a4f7fce2ca2e37529acad7811

Signed-off-by: Aaron Curley<EMAIL_ADDRESS>

I'm terrible at Python, so if you see an easier way to implement the test, feel free to let me know or of course, make edits.

Also, I'm having problems with running the build locally due to (I think) the recently-added test case for the push typo issue.  Plus, it looks like the travis-ci build failed.  Any ideas?

Thanks @accwebs - the code LGTM!
Not sure why travis is failing for this, but I've pushed a few updates that should skip the offending tests when you run them locally. I'll try merging this with those changes and see if it fixes the problems.

Aside from some py2/py3 issues, all looks good. Thanks!


[Ameba] Pass in RSSI to NetworkCommissioningDriver

Problem
During scan-network command, RSSI is not passed to matter application.
Change overview
Pass RSSI to matter application.
Testing
Tested using scan-network command, checked for correct RSSI

Fast tracking platform changes.


after click nuxt-link ,route doesn't change.

for example , now i am at localhost:3000 ,when i click an a tag (generate by nuxt-link) to localhost:3000/benefits/security ,the route is  sitll at localhost:3000

which version of Nuxt ?
and please share your source code of index.vue

I met the same problem, and jump directly the page 500. i want to know what happened before entering nuxt-render.js

@koalaqinqin  I faced the same issue,but it is due to the logic error in asyncData method.In my case I called a service in asyncData , while it throws error in catch block it redirects to 500


Need a PyPI release

In order to integrate with pip's vendoring mechanism, we need to be able to pip install this package. Ultimately, this means a pip release. In the short term, we can't vendor from github, because prior to the adoption of PEP 517, pip can only install setup.py based projects from source...
This is a short term issue during the development of pip's PEP 517 support, but I wanted to note it here so that it doesn't get forgotten.

I'm happy to make a release whenever suits you. You're also a maintainer on PyPI, so you can cut a release yourself if you like: flit publish should do it.

(After updating the version number in pep517/__init__.py)

My only problem with releasing to PyPI is that I'm not very clear on the "project admin" side of PyPI, but I'm happy to give it a go and add you as an owner, if that's all that's needed.

There's already a version 0.1 on PyPI, so it shouldn't need any special admin actions: https://pypi.org/project/pep517/

Huh. My mistake - I'd checked (multiple times) and not seen that. Ah, it appears that if you search for the explicit string "pep517", the project with that name is displayed on the second pages of the search results. Looks like warehouse search is still as flaky as the old PyPI version :-(
I'll release a new version in that case, to capture the changes we've put in.

Done. That was easy :-)


better layout support

thanks for this awesome monitor.
it'd be nice if i can customize layout easier. for now i can only override styles for container div, but i'd like to override styles for each child monitor to have a better layout.

Currently, there is no wrapper around every child, you just have to override the style of your monitors. But if you have a concrete example when a wrapper is needed, I'm interested. :)

for example, i want to have slider monitor on the bottom, while log and diff monitor share the upper part. the structure may look like this:
<container style={{display: flex; flex-flow: column wrap;}}>
  <upperContainer style={{display: flex; flex: 1;}}>
    <LogMonitor style={{flex: 1;}} />
    <DiffMonitor style={{flex: 1;}} />
  </upperContainer>
  <SliderMonitor style={{flex: 1;}} />
</container>

i'm very new to redux-devtools, so there may be better way to achieve that. i found subdivide few days ago but haven't tried it. it may solve my problem.


Drop Qt 5.12 and 5.14

We have 32 packages that depend on pre-5.15 Qt. Those are (as determined by rg '\s+(.*) = libsForQt51[24]\.callPackage' --no-line-number -o -r '$1'):

[x] antimony (upstream, see https://github.com/mkeeter/antimony/pull/235)
[x] apmplanner2 https://github.com/NixOS/nixpkgs/pull/203064
[x] bitcoin-classic https://github.com/NixOS/nixpkgs/pull/202664
[x] bitcoin-gold https://github.com/NixOS/nixpkgs/pull/202664
[x] bitcoin-unlimited https://github.com/NixOS/nixpkgs/pull/202664
[ ] boomerang
[x] brewtarget https://github.com/NixOS/nixpkgs/pull/203064
[x] cb2bib https://github.com/NixOS/nixpkgs/pull/203064
[x] digibyte https://github.com/NixOS/nixpkgs/pull/202664
[x] digitalbitbox https://github.com/NixOS/nixpkgs/pull/203064
[ ] fontmatrix
[ ] foxitreader
[x] graphia https://github.com/NixOS/nixpkgs/pull/203057
[x] ipe https://github.com/NixOS/nixpkgs/pull/203064
[ ] kexi
[x] kvirc #201771
[ ] mythtv
[x] notepadqq #202075
[ ] olive-editor
[x] polyphone #201974
[ ] pulseview (upstream, see https://github.com/NixOS/nixpkgs/issues/201765#issuecomment-1320084833)
[ ] quiterss
[x] rosegarden https://github.com/NixOS/nixpkgs/pull/203064
[x] sayonara #202142
[x] smtube: https://github.com/NixOS/nixpkgs/pull/201770
[x] subsurface #202145
[ ] swift-im
[ ] tony
[x] vertcoin https://github.com/NixOS/nixpkgs/pull/202664
[x] wkhtmltopdf https://github.com/NixOS/nixpkgs/pull/203064
[x] xygrib https://github.com/NixOS/nixpkgs/pull/203058

The old Qt versions are a big maintenance burden, as evidenced by them breaking yet again with https://github.com/NixOS/nixpkgs/pull/200872, and we should really get rid of them.
Ping @NixOS/qt-kde
Also general ping to all the maintainers of affected packages:

antimony: @rnhmjoj
apmplanner2: @wucke13
bitcoin-classic: @jefdaj
bitcoin-gold: @mmahut
bitcoin-unlimited: @DmitryTsygankov
boomerang: @dtzWill
brewtarget: @mmahut
cb2bib: @edwtjo
digibyte: @mmahut
digitalbitbox: @vidbina
foxitreader: @p-h, @rhoriguchi
graphia: @bgamari
ipe: @ttuegel
kexi: @zraexy
kvirc: @suhr
mythtv: @titanous
notepadqq: @rszibele
olive-editor: @balsoft
polyphone: @Maxdamantus
pulseview: @bjornfor
quiterss: @primeos
rosegarden: @lebastr
sayonara: @deepfire
smtube: @vbgl
subsurface: @mguentner, @adisbladis
swift-im: @orivej
tony: @orivej
vertcoin: @mmahut
wkhtmltopdf: @jb55
xygrib: @johannesloetzsch, @SuperSandro2000

smtube: #201770

Re: pulseview. I tried updating to default qt version and it failed to build. Then I pinged upstream: https://sourceforge.net/p/sigrok/mailman/message/37736944/.

Antimony is on very low maintenance but I should be able to fix it and get a patch merged, not so soon though. Do you intend to drop Qt <5.15 for 22.11 or a later release?

I think it's too late for 22.11, but I want to do it early in the 23.05 cycle.

polyphone: #201974

There seems to already be an issue about that: https://github.com/NixOS/nixpkgs/issues/53079
Can we check if something important is still missing from there?

That issue is about deprecating the QtWebKit module from all Qt versions (5.15 included). This one is about deprecating the older versions entirely. There's some overlap, but it's not all.

notepadqq: #202075

Tried updating mythtv, v32 should be buildable with Qt 5.15, but it fails to link its own vendored ffmpeg and I don't want to dig into 15k lines of bash that are their build system. WIP patch if anyone wants to continue: https://termbin.com/e1o6

Doing a quick audit on the remaining packages:

Package
Builds on 5.15
Dead
Notes

apmplanner2
yes
no

boomerang
no
very

brewtarget
yes
no
had a 3.0 release recently, update?

cb2bib
yes
yes

digitalbitbox
yes
yes

fontmatrix
no
slightly alive
ours is very old, update?

foxitreader
?
no
can't fetch the source, package hasn't been updated for over a year

graphia
no
no
latest is 3.2, ours is 2.2, update?

ipe
yes
no
slightly out of date

mythtv
no
no
god help me

olive-editor
no
?
upstream is active, but last numbered release in 2019 - update to unstable?

pulseview
no
yes?
deadness of upstream needs confirmation

quiterss
yes
yes

rosegarden
yes
no
ours is very outdated

swift-im
no
very

tony
no
very

wkhtmltopdf
yes
maybe?

xygrib
no
no
upstream is active, but no stable release - update to unstable?

I think it might be worth trying to save graphia, mythtv and xygrib, and the rest should be good to drop.

@K900, there is an open PR for the mythtv update already that seems to work: #197930

Awesome, I must have missed it. So, should we get all of this merged and rip off the bandaid?


[#111] Remove unused fields

These were removed in opentrials/api@f6d087f730ab46fd17fa51cf65a39084486ded82
opentrials/opentrials#111
I wrote these changes by going to all extractors.py files and looking over what should be removed. Are there other places I should look as well?
While doing this, I was thinking that it would be useful to only specify fields that are used in each extractor, avoiding things like explicitly settings 'role': None. That way, it's easier for us to change our DB later.

The most important change is writers - actual call to db.
Also it looks like you've forgot about some role and context.

While doing this, I was thinking that it would be useful to only specify fields that are used in each extractor, avoiding things like explicitly settings 'role': None. That way, it's easier for us to change our DB later.

I've started with this approach writing like intervention.get(data, {}) in writers but then found current way is more explicit (when extractors provide fully compliant to ideal model data). Let's think about it on the next iteration.

@roll Went through the extractors again deleting the remaining role and context fields. Thanks for the hint on the_silver_searcher, didn't know it (I just use grep). Ideally, I would like a search tool that worked on Python's AST. ASTSearch looks interesting, but haven't tried it yet.
About the implicit VS explicit, I do prefer to be as explicit as possible, and using defensive programming techniques (e.g. assert) to fail as soon as we get something unexpected. However, that should be used only for data we care about. In other words, my code shouldn't break if some value, that I don't care about in the first place, was changed. Specifically about these extra attributes, if they're not valid for all extractors, they should be optional in the DB. If that changes (and they become required), we should simply migrate the DB and fix whatever fails in our code. This makes our code as coupled as needed, but not more.

@vitorbaptista
Yea I agree some changes could be added here. So explicit technique was important when all parts was moving so just to see the same things in every extractor was useful. But de-couple changes of base and extractors will be useful now.

@roll Please ping me when this PR is good to go :v:

@vitorbaptista
also users data from extractors - there is some things we're removing (again it uses here some strict tech with some duplication to have more stable code on early stages)
https://github.com/opentrials/processors/tree/master/processors/base/processors
https://github.com/opentrials/processors/tree/master/processors/base/writers

@roll should be done now :+1:

:+1:


Sign up. Error message is not updated after entering an incorrect password

Environment:
Windows 11 Pro version 22H2
Google Chrome version 116.0.5845.97 (Official Build) (64-bit)
Reproducible:
Always
Build found:
last commit from https://github.com/ita-social-projects/GreenCityClient/tree/dev "2bc5ed4"
Preconditions:
Go to the page https://www.greencity.social/#/ubs and click the button 'Sing up'
Steps to reproduce:

Click on the field to enter the password
Click on any other field (User name, email, etc.)
Enter an incorrect password

Actual result

Expected result:

Epic link
Epic #908

Not relevant


[Code Stash] ENV and Properties languages

Extension
https://www.raycast.com/ben-greenwood/code-stash
Description
Add env and Properties to the languages list.
Who will benefit from this feature?
Sometimes I save configs which are environment variables, so this absolutely won't be redundant.
Anything else?
No response

Hi @danulqua, happy to add env but can you expand on the use of Properties?

@ben-greenwood saw Properties in the VSCode languages list, and usually it's also being used for some kinds of configuration files. Thought it would be useful to share it along with env.


feat: add Solis inverter

Added support for Solis
Description
This should not be a breaking change.
Some code were refactored, specifically regarding the hardcoded inverter brand strings.
Motivation and Context
Adds support for the solis, it also introduces a new grid_voltage to automatically mark grid offline when the voltage is 0, since solis does not provide the status. There is also a new battery_current_direction, which seems to be unique to solis.
How has this been tested
On my own system
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[X] This change requires a documentation update

Checklist

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[X] Any dependent changes have been merged and published in downstream modules
[X] I have updated the version in package.json following semver

Thanks for this. What did you use to reformat all the code?

Thanks for this. What did you use to reformat all the code?

It might have been the combination of eslint and intellij


Randomize cards

This PR randomizes ecosystem cards on build. Attaching 2 previews to show randomization.
Preview 1: https://602fbc783856f3059010e5bc--shiftlab-pytorch-github-io.netlify.app/ecosystem/
Preview 2: https://602fc0e7c136b91074858bb7--shiftlab-pytorch-github-io.netlify.app/ecosystem/

Jekyll has a sample filter that selects a random value from an array but it only triggers to run during a build, not on page load. I'm not sure if that will be an issue but it looks like the main repo has daily commits. If a new build gets triggered every commit, then the sample filter will run and shuffle the cards at least once a day.


using vmamba detection in my owm model

If I want to use vmamba as the detection of my own model, What do I roughly need to do?
(I will simply run and use the mmdetction framework, can I use it without mmdetction?)

VMamba is simply a backbone which is not tightly bounded to mmdetection.
If you can use Swin or ResNet to be the backbone of your detection framework, then the same to VMamba.


Created a Separate folder for Java DSA Leetcode Code

Hi @msaimraz ,
Added a separate folder for Java DSA solutions and added two sorting and searching algorithms in it,
Thanks!

Thanks @msaimraz for merging,
fyi : this repo has been excluded from Hacktoberfest 2023


chore: re-enabel cjs build

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (df91aff) 24.49% compared to head (371af90) 24.49%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #608   +/-   ##
=======================================
  Coverage   24.49%   24.49%
=======================================
  Files         223      223
  Lines       12958    12958
  Branches      234      234
=======================================
  Hits         3174     3174
  Misses       9696     9696
  Partials       88       88

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


CBLDatabase_CreateQuery is not always initializing outErrorPos

The doc comment for CBLDatabase_CreateQuery says that outErrorPos is set to -1 when an error occurs and the position is not applicable.
With the error that is reported when the query is missing the FROM clause, outErrorPos contains random values.
I think this regression has been introduced by https://github.com/couchbase/couchbase-lite-core/commit/3e16568630a9ceea1fde071744ae97bb56331852.

Track : https://issues.couchbase.com/browse/CBL-2217

This issue has been fixed and merged in the master branch. The outErrorPos should be initialized with -1 if the outErrorPos is not applicable.


Ability to specify country code while invoking DGC Test Data Verification

With this, it is now possible to run DGC Test Data Verification for any given country. By default, it would run for all countries + common.

Much appreciated! I was not aware the test suite already supported country codes. Thank you!


Private api usage

Hey cool project, but is this suitable in a commercial application? i noticed private api usage in https://github.com/ole/OLEContainerScrollView/commit/2db7ddb82e5081f55ad5336f7bd47b4afdac8aa6
If i remove this code what defects/issues can i expect?
Maybe we could create a app store safe branch?

If you don't call swizzleUITableView() (and remove the related code), cell inserts or removals in table views will not animate correctly. That's the issue the override of the private API solves.
A branch that doesn't use private API is a good idea, but I don't think I'll be doing it, sorry. I just don't want the maintenance burden. Please see this project more like a proof of concept. You're welcome to use this in your own app, but it's not gonna be a perfect solution that works for everyone without changes.


Add support for Rails 7

As a temporary solution you can add this to your Gemfile:
gem "credit_card_validations", github: "MrEmelianenko/credit_card_validations", branch: "feature/rails-7-support"

Any news on getting this merged?

@Fivell anything blocking this from getting merged? Would be nice to have an official Rails7 release

@jnwaletzko, @jmortlock released 5.0.0


Ember Data model auto discover does not work with PODS model structure

At the moment Mirage tries to import Ember Data models from
let modelMatchRegex = new RegExp(`^${modulePrefix}/models`, 'i');

But if you are using POD project structure it won't work, because models are in: ${modulePrefix}/<modelName>/model.js

@yratanov could you try again with this commit? https://github.com/samselikoff/ember-cli-mirage/commit/1b7bf74f0670d2f741f28b11c57a92e1b975297f

Looks like this has been addressed, closing to clean up the issue fracker. Happy to re-open if needed

@samselikoff hi, sorry for delayed response, but I have an issue with your solution.
In my project podModulePrefix is empty and I don't think I need it.
So this line
let modelMatchRegex = new RegExp(`^(${modulePrefix}/models|${podModulePrefix}/.*/model$)`, 'i');

evaluates to ^my-project-name/models|/.*/model$, but what I need is
^my-project-name/.*/model$. I can set podModulePrefix to my-project-name and it fixes mirage, but all ember generators create files under /my-project-name/app/my-project-name/....
Can we change the regexp to?
^(${modulePrefix}/models|${isEmpty(podModulePrefix) ? modulePrefix : podModulePrefix}/.*/model$

I can send a PR if you agree with my approach.


setValue for NumberControllerSlider does not fire onFinishChange event

and since it is a slider it is somewhat important, since the user might only want to handle an onFinishChange event.
thanks for the great work on the project...

Is this related to this?
https://github.com/dataarts/dat.gui/pull/103


Strange issue on a SimpleBarChartComponent realized in code behind

In my Blazor WebAssembly solution I have these 2 files
CameraReliability.razor
@page "/CameraReliability"

CameraReliability

Current count: @currentCount

<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>

<Chart @ref="_barChart"
       Config="@_barChartConfig"
       TConfig="ChartJs.Blazor.ChartJS.BarChart.BarConfig"
       Width="600"
       Height="300" />

CameraReliability.razor.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using ChartJs.Blazor.ChartJS.BarChart;
using ChartJs.Blazor.ChartJS.BarChart.Axes;
using ChartJs.Blazor.ChartJS.Common.Axes;
using ChartJs.Blazor.ChartJS.Common.Axes.Ticks;
using ChartJs.Blazor.ChartJS.Common.Properties;
using ChartJs.Blazor.Charts;
using ChartJs.Blazor.Util;
using Microsoft.AspNetCore.Components;

namespace SincroADR_GUI.Client.Pages
{
    public partial class CameraReliability
    {
        private readonly HttpClient Http;
        private int currentCount = 0;

        private BarConfig _barChartConfig;
        private ChartJsBarChart _barChart;
        private BarDataset<double> _barDataSet;

        protected override void OnInitialized()
        {
            _barChartConfig = new BarConfig
            {
                Options = new BarOptions
                {
                    Title = new OptionsTitle
                    {
                        Display = true,
                        Text = "Simple Bar Chart"
                    },
                    Scales = new BarScales
                    {
                        XAxes = new List<CartesianAxis>
                    {
                        new BarCategoryAxis
                        {
                            BarPercentage = 0.5,
                            BarThickness = BarThickness.Flex
                        }
                    },
                        YAxes = new List<CartesianAxis>
                    {
                        new BarLinearCartesianAxis
                        {
                            Ticks = new LinearCartesianTicks
                            {
                                BeginAtZero = true
                            }
                        }
                    }
                    }
                }
            };

            _barChartConfig.Data.Labels.AddRange(new[] { "A", "B", "C", "D" });

            _barDataSet = new BarDataset<double>
            {
                Label = "My double dataset",
                BackgroundColor = new[] { ColorUtil.RandomColorString(), ColorUtil.RandomColorString(), ColorUtil.RandomColorString(), ColorUtil.RandomColorString() },
                BorderWidth = 0,
                HoverBackgroundColor = ColorUtil.RandomColorString(),
                HoverBorderColor = ColorUtil.RandomColorString(),
                HoverBorderWidth = 1,
                BorderColor = "#ffffff"
            };

            _barDataSet.AddRange(new double[] { 8, 5, 3, 7 });
            _barChartConfig.Data.Datasets.Add(_barDataSet);

            _barChart.Config = _barChartConfig;
        }

        public CameraReliability()
        {
        }

        public CameraReliability(HttpClient httpClient) : this()
        {
            Http = httpClient;
        }

        public void IncrementCount()
        {
            currentCount++;
        }
    }
}

which are extracted (separeted into code behind) from the SimpleBarChartComponent.razor of the examples of your ChartsJs.Blazor library. If I try to compile the code I get these 2 errors:

Error	CS0452	The type 'double' must be a reference type in order to use it as parameter 'TData' in the generic type or method 'BarDataset'	SincroADR_GUI.Client	C:\Users\dimarco\source\repos\SincroADR\SincroADR_GUI\Client\Pages\CameraReliability.razor.cs	23	Active
Error	CS1503	Argument 1: cannot convert from 'ChartJs.Blazor.ChartJS.BarChart.BarDataset' to 'ChartJs.Blazor.ChartJS.MixedChart.IMixableDataset'	SincroADR_GUI.Client	C:\Users\dimarco\source\repos\SincroADR\SincroADR_GUI\Client\Pages\CameraReliability.razor.cs	74	Active

For the first problem if you check the class BarDataset it requires a class in the generic type (hence double is not possible), however I am wondering why if you use it in a pure razor file it compiles and works fine.  For the second problem it's again the same reason.
Can anybody tell me why this happens ?

Ok the problem was that the latest released Nuget package (1.1.0) was not updated, I switched to the prerelease v.2.0.0-preview1 and the errors are gone (now BarDataset accept also non class types). I close the issue.

I closed the issue too early. With the prerelease package the previous compilation errors are gone, however I have now this error:

Error	TS18003	No inputs were found in config file 'C:/Users/dimarco/.nuget/packages/chartjs.blazor/2.0.0-preview1/contentFiles/any/netstandard2.1/tsbuild/release/tsconfig.json'. Specified 'include' paths were '["../../wwwroot/ts/*.ts"]' and 'exclude' paths were '[]'.	C:\Users\dimarco.nuget\packages\chartjs.blazor\2.0.0-preview1\contentFiles\any\netstandard2.1\tsbuild\release\tsconfig.json		1	Active

The content of tsconfig.json (inside .nuget folder, not a file of my solution)
{
    "compilerOptions": {
        "allowJs": true,
        "module": "none",
        "target": "es2018",
        "lib": [
            "dom",
            "es2018"
        ],
        "outFile": "../../wwwroot/ChartJsBlazorInterop.js",
        "sourceMap": false,
        "typeRoots": [
            "../../wwwroot/ts/types/"
        ],
        "alwaysStrict": true
    },
    "include": [
        "../../wwwroot/ts/*.ts"
    ],
    "compileOnSave": true
}

It seems that VisualStudio is trying to compile TypeScript files, why ? Since there are no typescript files, I am wondering why it returns an error.

I have also tried to add the package Microsoft.TypeScript.MSBuild as suggested by VisualStudio, however the error remains.

There is already an issue about my problem, I close again this one and I'll continue there.


feat: flexible table cell width

Pull Request Template
Use this template to quickly create a well written pull request. Delete all quotes before creating the pull request.

Description
Current Table widget assume the last cell to have flexible width and take the remaining screen. This PR would allow user to choose the cells that they want to have flexible width, instead of the last cell.

user can select one or multiple cells. Cells with flexible width enable will share the remaining width.
if no cells set, it will default to last cell

Fixes # (issue)
Type of change

New feature (non-breaking change which adds functionality)

How Has This Been Tested?
Tested manually

Drag Table widget
In each cell, there will be a Flexible Width options.
Enable the option on the cell that you want to span across the screen. E.g task cell for default Table Data.

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

can we reopen this?


Quickbooks weirdly unaccessible on 2 different networks

Hello,
I am hosting quickbooks inside of a container on a server (linux) and developing on my local windows machine.
This is the error I get in the container:

This is what opening those URLs look like on my windows machine
https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer looks like this

http error 405
https://quickbooks.api.intuit.com looks like this

http error 401.
I also notice the sandbox-quickbooks.api.intuit.com url works perfectly fine sometimes and then results back into this error

Please let me know if this is an issue on my end or on quickbooks end.
This is 2 different machines on 2 different networks with 2 different ISPS and 2 different network types.
One is running on linux containerized with metronet as ISP and fiber optic
One is running on windows, with xfinity as isp and cable.
This shouldn't be a me-issue but it may still be. Please let me know what I can do.

Resolved - for some reason wrong credentials were being used (sandbox instead of prod).
Sorry for the disturbance!


Can we validate Bitcoin SV addresses using this?

I tried to validate the BSV address using the wallet-address-validator. It succeed when I passed the BTC as currency.
So, it is to confirm, Will it work for all the BSV addresses or there are some technical differences in these 2?
Can you please update the readme like it will work for BSV also?

BSV is a fork of BCH which uses the BTC address format.

thank you


Can i train model with 1 laptop gpu?

Hi, can i train the model with i laptop gpu? when i run the script it outputs the error:
[1]    26075 segmentation fault (core dumped)
i have rtx 3060 (laptop version) with 6gb vram

Hi, you will not be able to train with the original hyperparams, but you can probably try training with a lower batch size. Reducing the sequence length might also be necessary. Remember you will need to change the batch size for both the vision and language datasets. You can override with something like datamodule.datasets.vision_dataset.batch_size=5 datamodule.datasets.lang_dataset.batch_size=5


failed to run custom build command for wayland-sys v0.29.4 on linux mint

Hello, i can not compile , i have intel microprocesseur with nvidia graphic card on linux mint.
i also tried this :
sudo apt install libxcb-shape0-dev libxcb-xfixes0-dev
i have already most recent packets.
here is the error message:
...
Compiling lewton v0.10.2
error: failed to run custom build command for wayland-sys v0.29.4
Caused by:
process didn't exit successfully: /media/USERNAME/824EE6CA4EE6B5D7/_0_rust_games/nodus-main/target/debug/build/wayland-sys-8c33ab3da59f0eaf/build-script-build (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=WAYLAND_CLIENT_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=WAYLAND_CLIENT_STATIC
cargo:rerun-if-env-changed=WAYLAND_CLIENT_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
--- stderr
thread 'main' panicked at 'called Result::unwrap() on an Err value: "pkg-config" "--libs" "--cflags" "wayland-client" did not exit successfully: exit status: 1
error: could not find system library 'wayland-client' required by the 'wayland-sys' crate
--- stderr
Package wayland-client was not found in the pkg-config search path.
Perhaps you should add the directory containing wayland-client.pc'   to the PKG_CONFIG_PATH environment variable   No package 'wayland-client' found   ', /home/USERNAME/.cargo/registry/src/github.com-1ecc6299db9ec823/wayland-sys-0.29.4/build.rs:10:47   note: run with RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed
=============== > FIX
in [dependencies]  just add this line:
winit = "0.26.1"

Thanks for the notice.
That's odd, did you install all dependencies as mentioned here?

from linux_dependencies.md:
sudo apt-get install g++ pkg-config libx11-dev libasound2-dev libudev-dev

if using Wayland, you will also need to install
sudo apt-get install libwayland-dev libxkbcommon-dev

No reply for a month.
could not find system library 'wayland-client' required by the 'wayland-sys' crate

looks like a missing dependency. Should be fixable by installing all required dependencies as mentioned above.


Tooltip hover bug

Tooltip shows up when hovering over the invisible content, and not just the button.
In the example, https://daisyui.com/components/tooltip if we approach the button from the top, the tooltip will pop up before reaching the button.
This is problematic as we were using tooltip where the tip content would overlap with other elements, so the elements underneath cannot be accessed.

Currently we are using this workaround. https://stackoverflow.com/a/30104683

That was very quick!
Thanks a lot @saadeghi. Love using DaisyUI.


added plugin for Kirby CLI

Kirby is an easy to use file based CMS (https://github.com/getkirby). This plugin adds basic autocompletion and aliases for the Kirby CLI (https://github.com/getkirby/cli)

Has no interest.


WIP: implementing type family for computing generic demand type

Let's not merge yet, we need to figure out what to do with K1

To play around with it for the moment, just define a type like this in ghci
data Foo = Foo Int Bool Int Boo
                | Bar Foo
  deriving Generic

and ask ghci :kind! (Demand (Rep Foo))


Cannot overwrite status field

Hi,
when trying to constrain the choices for the status field in conf.py like this:
def _status_choices(argument):
    """Choices for status needs property."""
    return directives.choice(argument, ('open', 'approved', 'implemented'))

needs_extra_options = {
    'status': _status_choices,
}

I get the following error:
Exception occurred:
  File "/home/marco/proj/.venv/lib/python3.8/site-packages/sphinxcontrib/needs/directives/need.py", line 120, in run
    return add_need(env.app, self.state, self.docname, self.lineno,
TypeError: add_need() got multiple values for keyword argument 'status'

That's because of the handling of need_extra_options in https://github.com/useblocks/sphinxcontrib-needs/blob/master/sphinxcontrib/needs/directives/need.py#L120.
This used to work, at least in version 0.3.10.
My proposal is to let users overwrite the field and take the overwritten field. Our usecase is to constrain the field so a need (e.g. requirement/spec) cannot have an arbitrary status.

I see there is also the option https://sphinxcontrib-needs.readthedocs.io/en/latest/configuration.html#needs-statuses.
Is that equivalent to my approach?

Yes, please use needs_statuses or the new needs_constraints.
I think there is no use case, where status-field configuration must be overwritten, if the above solutions are also available.


Maximum four elements?

Is there a max four limit on the number of quick actions allowed? I can't seem to be able to show more.

RTFM 😄

💃


Install plugin from URL

Is your feature request related to a problem? Please describe.
I am developing a plugin, and had change the URL in load_volts in plugin.rs to a JSON that includes this new plugin to be able to install it.
Describe the solution you'd like
A way to enter the URL of a plugin (could be its git repo or directly to its plugin.json) to install it would probably make sense.

I once contributed such setting and it was decided to not support it.
You can copy the plugin to plugins directory to test it.

Ah yes I just found info for that: https://github.com/lapce/lapce/issues/1232
I guess it's an ok temporary solution, but longer term URL based install makes sense to facilitate a plugin ecosystem...

Once we have defined plugin format for plugins and their distribution, we can add option to install plugin straight from URL

(I was confused because I found an old ~./lapce/plugins directory and tried copying my plugin there, but Lapce is now using a different directory.

You can open plugins directory via palette command


Focus is inconsistent on buttons

Describe the bug
The focus outline is thin on input type button but small on html buttons.

closed by #81


Cut profiler noc look up table size

Currently, noc_xy_to_profiler_flat_id is using int32. This can be dropped to uint16 or uint8.

Was done as part #8672


Update to the latest version of the Almond platform

Let's update everything so we have plenty of time to test before the release.
Marking as draft because some dependent PRs have not been merged yet, and the libraries need releases.

Pull Request Test Coverage Report for Build 2312

40 of 47 (85.11%)  changed or added relevant lines in 10 files are covered.
4 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.04%) to 69.597%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

training/tasks/evaluate.js
8
9
88.89%

util/validation.js
2
3
66.67%

training/sandboxed_synthetic_gen.js
4
6
66.67%

nlp/nlu.js
9
12
75.0%

Files with Coverage Reduction
New Missed Lines
%

almond/almond_api.js
1
44.75%

nlp/query.js
1
80.77%

nlp/nlu.js
2
68.94%

Totals

Change from base Build 2311:
-0.04%

Covered Lines:
7820

Relevant Lines:
10584

💛  - Coveralls


Remove files that are causing conflicts

This PR is an attempt to remove some problematic files that are causing merge conflicts in several of Margaux's PRs (#58 and #65).
If this PR does not resolve merge conflicts in the two PRs mentioned above, we will roll it back.

Margaux and I reviewed this together on a Teams call.


[FEATURE REQ] App Insights / Log Analytics SDK major version

Library or service name.
Microsoft.Azure.ApplicationInsights
Microsoft.Azure.OperationalInsights
Is your feature request related to a problem? Please describe.
Is it planned to release a major version for these packages ?
We have a good use of these but because of only having preview versions, it is a mess for our internal library versioning.

Thank you for your feedback.  Tagging and routing to the team best able to assist.

//cc: @nonik0

Hi @jsquire @nonik0 , do you have any news ?
I also saw that there was a Microsoft.Azure.ApplicationInsights.Query package with maybe some updates, and maybe an upcoming major version (with preview at least).
Didn't see anything about new package (or version) for Microsoft.Azure.OperationalInsights package.
If needed, I could see to submit a PR for these versions ?

@geneh - Do you have any insight that you can share?

Microsoft.Azure.ApplicationInsights.Query should be used instead of Microsoft.Azure.ApplicationInsights which is going to be deprecated.
There is no plan to release 1.x versions but non-preview versions can be released, for example 0.9.1. Would that help?

Non-preview releases would be great yes !
Is there any plan concerning Microsoft.Azure.OperationalInsights package to have a non-preview release ?

Is there any plan concerning Microsoft.Azure.OperationalInsights package to have a non-preview release ?

Yes, non-preview versions are going to be released for both.

Well, that's good news !
May I ask if there is an ETA ?


Data messages not sending in subscribe only mood

In my case I wanted user can only participants without sharing microphone or webcam. It's like subscribe only/listen only mood. But in that mood data messages aren't sending. I'm getting this error in my JS client:
Uncaught (in promise) DOMException: An attempt was made to use an object that is not, or is no longer, usable
Am I misunderstanding somewhere? But if that user connect with webcam then messages are sending as expected.

I'm not able to reproduce this.. can you reproduce with our sample app?

@davidzhao thanks for reply. This is how I'm trying:
const textEncoder = new TextEncoder();

let room: Room;
try {
    room = await connect(url, token, {
        logLevel: LogLevel.debug,
        audio: false,
        video: false
    });
    currentRoom = room;
} catch (error) {
    console.error(error);
    return;
}

room
    .on(RoomEvent.ParticipantConnected, handleParticipantConnected)
    .on(RoomEvent.ParticipantDisconnected, handleParticipantDisconnected)
    .on(RoomEvent.DataReceived, handleDataReceived)

const msg = textEncoder.encode("Test");
currentRoom.localParticipant.publishData(msg, DataPacket_Kind.RELIABLE);

I found a reproducible setup for the example app.
Just add one line of data publishing to the example.ts at ~ line 256
   ...
    .on(RoomEvent.MediaDevicesError, (e: Error) => {
      const failure = MediaDeviceFailure.getFailure(e);
      appendLog('media device failure', failure);
    });

  room.localParticipant.publishData(encoder.encode('my test message'), DataPacket_Kind.RELIABLE);

  appendLog('room participants', room.participants.keys());
  room.participants.forEach((participant) => {
    participantConnected(participant);
  });

There must be some other state change that happens depending on the browser.
I think we should switch the publishData awaiter to check readyState instead. Let me know if either of you have time to create a PR. It's ok if not, I can get to it later this week.

@davidzhao yes, I think if we check status & wait around 1 seconds then should be fine. Something here:
https://github.com/livekit/client-sdk-js/blob/2995a22f9b948699c629df910c163eb846ccb72c/src/room/RTCEngine.ts#L394
if (kind === DataPacket_Kind.LOSSY && this.lossyDC) {
   if (this.lossyDC.readyState === 'connecting') {
     await sleep(1000);
   }
   this.lossyDC.send(msg);
 } else if (kind === DataPacket_Kind.RELIABLE && this.reliableDC) {
   if (this.reliableDC.readyState === 'connecting') {
     await sleep(1000);
   }
   this.reliableDC.send(msg);
 }


Fix(Advert): Overflow in web advert page

Close #293

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (ea99eb6) 56.46% compared to head (8c2c90c) 56.46%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #296   +/-   ##
=======================================
  Coverage   56.46%   56.46%
=======================================
  Files         159      159
  Lines        3482     3482
=======================================
  Hits         1966     1966
  Misses       1516     1516

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Change logic for locating working dir for package installations.

Current dependencies on/for this PR:

main

PR #197   👈

This stack of pull requests is managed by Graphite.


Fail on WaitCondition Creation

First, if we can get this running it will be a great help for us, so thank you for creating this!
However:
Trying to create the stack through CloudFormation. All goes along nicely and EC2 is started, but when it tries to create the WaitCondition it fail;s with the following message:

The following resource(s) failed to create: [WaitCondition]. . Rollback requested by user.
11:01:22 UTC-0400	CREATE_FAILED	AWS::CloudFormation::WaitCondition
WaitCondition
WaitCondition received failed message: 'Failed to start dynamic-dynamodb service. Check /etc/dynamic-dynamodb/logs/service.log' for uniqueId: i-e4d4911b
I cannot open the log file referenced in the message because the EC2 is automatically terminated.
I took the supplied CloudFormation file and ran as is.
Any ideas?
Thanks!

I fixed it by removing all the ami region mappings and only leaving us-east1. Reran it and now it created the stack.


Fix code action preview

This should fix #1405.

need util.is_ten check because it only in nightly in 0.9x there still need a false field.

Thanks; I notice you pushed an update that fixes this, so it seems I can close the PR and also the related issue.


Add the possibility to retrieve latest log in mobile app

https://ledgerhq.atlassian.net/browse/LL-4626
Retrieve last N log in mobile app.
Currently, just for demo, I display the last N log when the button "Display latest logs" button is clicked in "Debug Logs" page.
But this logic can be integrated into any other place in the app

current screenshot

assigning @nabil-brn and tagging QA based on this comment


fix: prevent endless feedback loops

This PR adds the output scheme to the default shellcheck.ignoreFileSchemes list.
If shellcheck.run is set to onType (the default), writing to the log may cause an endless feedback loop: VS Code treats the output channel as a text document, and will emit a document-change event for every single line logged to any output channel, which in turn may lead to our handler logging even more lines, and so on.
This new check is arguably redundant: the language of the channel can never be Shell, which means the existing isAllowedTextDocument check happens to cover this case already, albeit by accident.
I still feel that there’s value in declaring this explicitly rather than relying on accidental behavior.

[09:39:35] → Response code 503 (Egress is over the account limit.)

This error seems to come from Azure, and I think it’s GitHub’s job to fix it.
See also: https://github.com/community/community/discussions/8535


fix(legacy): support implicit extensions

closes https://github.com/privatenumber/pkg-entry-points/issues/1

:tada: This PR is included in version 1.0.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Naming inconsistency between docs and version 0.1.0

Howdy 👋
I was delighted and surprised to see Swift support in Test Analytics 🎉 🙇♂ Thank you very much for that. It's not every day that I found a CI tool with early support for Apple-platform tooling.
I've been trying to setup Test Analytics in one of our libraries at Automattic and noticed a minor issue.
Issue
The docs, which I assume are code-generated from the README.md say to use BuildkiteTestCollector as the package name, but in version 0.1.0 the name is BuildkiteCollector.
This will result in errors along the lines of:
error: product 'BuildkiteTestCollector' required by package '...' target '...' not found.

Proposed Solution
I think tagging a new version should be enough to solve this issue, given that BuildkiteTestCollector is the current name of the package.
Thanks ✨

Hey @mokagio!
Thanks for bringing this up. I've just created v0.1.1, can you confirm it's working as expected.
Also, would love to get your feedback on the collector after you've had a chance to test it out :)

Hey @iampatbrown 👋 Thank you for the super quick followup 🎖
The name update worked:

However, xcodebuild failed to compile the package 🤔
▸ Compiling Tracer+Live.swift
--
  |
  | ❌  /usr/local/var/buildkite-agent/builds/builder/automattic/tracks-ios/.build/derived-data/SourcePackages/checkouts/test-collector-swift/Sources/Core/Tracer/Tracer+Live.swift:32:38: cannot assign value of type 'Double?' to type 'TimeInterval' (aka 'Double')
  |
  | span.duration = span.startAt.map { endAt - $0 }
  | ^~~~~~~~~~~~~~~~~~~~~~
  |
  |
  |
  | ❌  /usr/local/var/buildkite-agent/builds/builder/automattic/tracks-ios/.build/derived-data/SourcePackages/checkouts/test-collector-swift/Sources/Core/Tracer/Tracer+Live.swift:19:88: missing argument for parameter 'duration' in call
  |
  | let span = Trace.Span(section: section, startAt: systemUptime(), detail: detail)
  | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
  |
  |
  | ▸ Compiling Tracer.swift
  |
  | ❌  /usr/local/var/buildkite-agent/builds/builder/automattic/tracks-ios/.build/derived-data/SourcePackages/checkouts/test-collector-swift/Sources/Core/Tracer/Tracer+Live.swift:32:38: cannot assign value of type 'Double?' to type 'TimeInterval' (aka 'Double')
  |
  | span.duration = span.startAt.map { endAt - $0 }
  | ^
  |
  |
  |
  | ❌  /usr/local/var/buildkite-agent/builds/builder/automattic/tracks-ios/.build/derived-data/SourcePackages/checkouts/test-collector-swift/Sources/Core/Tracer/Tracer+Live.swift:19:88: missing argument for parameter 'duration' in call
  |
  | let span = Trace.Span(section: section, startAt: systemUptime(), detail: detail)
  | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
  |
  |
  |
  | ⚠  /usr/local/var/buildkite-agent/builds/builder/automattic/tracks-ios/.build/derived-data/Build/Intermediates.noindex/BuildkiteTestCollector.build/Debug-iphonesimulator/Core.build/Objects-normal/x86_64/Tracer.dia:1:1: Could not read serialized diagnostics file: error("Invalid diagnostics signature") (in target 'Core' from project 'BuildkiteTestCollector')
  |
  | Command CompileSwift failed with a nonzero exit code
  | ^
  |
  |
  | ▸ Compiling UploadClient+Live.swift
  |
  | ❌  /usr/local/var/buildkite-agent/builds/builder/automattic/tracks-ios/.build/derived-data/SourcePackages/checkouts/test-collector-swift/Sources/Core/Tracer/Tracer+Live.swift:32:38: cannot assign value of type 'Double?' to type 'TimeInterval' (aka 'Double')
  |
  | span.duration = span.startAt.map { endAt - $0 }
  | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
  |
  |
  |
  | ❌  /usr/local/var/buildkite-agent/builds/builder/automattic/tracks-ios/.build/derived-data/SourcePackages/checkouts/test-collector-swift/Sources/Core/Tracer/Tracer+Live.swift:19:88: missing argument for parameter 'duration' in call
  |
  | let span = Trace.Span(section: section, startAt: systemUptime(), detail: detail)
  | ^
  |
  |
  |
  | ⚠  /usr/local/var/buildkite-agent/builds/builder/automattic/tracks-ios/.build/derived-data/Build/Intermediates.noindex/BuildkiteTestCollector.build/Debug-iphonesimulator/Core.build/Objects-normal/x86_64/UploadClient+Live.dia:1:1: Could not read serialized diagnostics file: error("Invalid diagnostics signature") (in target 'Core' from project 'BuildkiteTestCollector')
  |
  | Command CompileSwift failed with a nonzero exit code
  | ^
  |
  |
  | ▸ Compiling UploadClient.swift
  |
  | ❌  /usr/local/var/buildkite-agent/builds/builder/automattic/tracks-ios/.build/derived-data/SourcePackages/checkouts/test-collector-swift/Sources/Core/Tracer/Tracer+Live.swift:32:38: cannot assign value of type 'Double?' to type 'TimeInterval' (aka 'Double')
  |
  | span.duration = span.startAt.map { endAt - $0 }
  | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
  |
  |
  |
  | ❌  /usr/local/var/buildkite-agent/builds/builder/automattic/tracks-ios/.build/derived-data/SourcePackages/checkouts/test-collector-swift/Sources/Core/Tracer/Tracer+Live.swift:19:88: missing argument for parameter 'duration' in call
  |
  | let span = Trace.Span(section: section, startAt: systemUptime(), detail: detail)
  | ^
  |
  |
  |
  | ⚠  /usr/local/var/buildkite-agent/builds/builder/automattic/tracks-ios/.build/derived-data/Build/Intermediates.noindex/BuildkiteTestCollector.build/Debug-iphonesimulator/Core.build/Objects-normal/x86_64/UploadClient.dia:1:1: Could not read serialized diagnostics file: error("Invalid diagnostics signature") (in target 'Core' from project 'BuildkiteTestCollector')
  |
  | Command CompileSwift failed with a nonzero exit code
  | ^
  |
  |
  | ▸ Compiling DispatchGroup.swift
  |
  | ❌  /usr/local/var/buildkite-agent/builds/builder/automattic/tracks-ios/.build/derived-data/SourcePackages/checkouts/test-collector-swift/Sources/Core/Tracer/Tracer+Live.swift:32:38: cannot assign value of type 'Double?' to type 'TimeInterval' (aka 'Double')
  |
  | span.duration = span.startAt.map { endAt - $0 }
  | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
  |
  |
  |
  | ❌  /usr/local/var/buildkite-agent/builds/builder/automattic/tracks-ios/.build/derived-data/SourcePackages/checkouts/test-collector-swift/Sources/Core/Tracer/Tracer+Live.swift:19:88: missing argument for parameter 'duration' in call
  |
  | let span = Trace.Span(section: section, startAt: systemUptime(), detail: detail)
  | ^
  |
  |
  |
  | ⚠  /usr/local/var/buildkite-agent/builds/builder/automattic/tracks-ios/.build/derived-data/Build/Intermediates.noindex/BuildkiteTestCollector.build/Debug-iphonesimulator/Core.build/Objects-normal/x86_64/DispatchGroup.dia:1:1: Could not read serialized diagnostics file: error("Invalid diagnostics signature") (in target 'Core' from project 'BuildkiteTestCollector')

I get the same errors when trying on my local machine.

Also, would love to get your feedback on the collector after you've had a chance to test it out :)

I'm just going through the setup steps. I haven't been able to see any analytics yet 🤔 Even when using version 0.1.0 with the appropriate name, I don't see any results coming through in the tests analytics UI. That is, it still shows the "Complete setup" flow.
One thing I noticed is that the examples in the repo use swift test. So far, I tried to include it in the WordPress iOS repo, using SPM from Xcode, and the repo linked above, which is an internal library. Neither of them uses swift to run the tests, actually, both use Fastlane, which uses xcodebuild under the hood. I'm pointing this out in case swift test is the only supported way in which the integration works.

@mokagio I'll fix that asap. That was a mistake on my end :) It should work fine with xcodebuild I believe 0.1.0 had an old endpoint as well. I'll get back yo you in more detail shortly. Wan't to fix the duration bug quickly.

@mokagio I re-released it as v0.1.1. Sorry about that. I had included a change from a dev branch unintentionally.

No worries. I'll try it out right now 👍

@iampatbrown Happy to report that the fixed 0.1.1 version resulted in a green build... and I now have access to the Test Analytics 🎉

I wonder why it didn't work before with version 0.1.0? 🤔
I'm going to be trying on WordPress iOS between today and tomorrow. WordPress iOS uses Nimble here and there, which should answer the question from #12.
As far as I'm concerned, this issue can be closed. Thanks again 🙇♂

Regarding swift test and xcodebuild both should work. I have been using GitHub workflows during development and would test across all platforms. Here is a workflow that uses xcodebuild. I haven't tested with Fastlane myself, but will look at setting something up.
The plan is to use Buildkite pipelines (see Configure Buildkite pipelines (#2)) for the main branch as well as provide more comprehensive examples. We didn't have enough time to get this set up before launch but it's in the works.
There is also a bit undocumented/wip so if you have anymore questions just ask and I can help fill in the gaps :)

@mokagio Awesome thanks for your patience :)
I noticed you were using it with an ObjC test target. I never actually tested this myself. I'll make a note to add an ObjC test case/example as well.
Let me know if there are any more issues.
Thanks for giving it a test drive! :)


Can't hear voice from calling.

hi, I use RasPBX + E156G, the sms is works very well.
but both calling or receive calling, I can't hear the sounds.
After I plug in the E156G, I got USB0 and 1.
root@raspbx:~# ls /dev/ttyUSB
ttyUSB0  ttyUSB1

SO, I changed my config to (vi /etc/asterisk/dongle.conf)
[dongle0]
audio=/dev/ttyUSB0
data=/dev/ttyUSB1

then both send and receive sms works very well, but when calling, I met an error.
raspbx*CLI> channel originate dongle/dongle0/+86137****7**9 application MusicOnHold
    -- Called dongle0/+86137****7**9
    -- Dongle/dongle0-0100000009 is making progress
**[2022-04-21 12:56:54] ERROR[18647]: at_response.c:473 at_response_error: [dongle0] AT^DDSETEX failed**
    -- Dongle/dongle0-0100000009 answered
    -- Started music on hold, class 'default', on channel 'Dongle/dongle0-0100000009'
    -- Stopped music on hold on Dongle/dongle0-0100000009

I guess PIN is disabled, so make sure that VOICE mode is activated on your USB dongle. Also, make sure the firmware of your USB dongle supports VOICE mode - if not, maybe you can flash it with the appropriate firmware?

Thanks. fixed, I flash the firmware of the dongle to 11.6<IP_ADDRESS>2 by https://phil.lavin.me.uk/2016/04/enabling-voice-on-a-huawei-e160-atddsetex-failed/.

password(Flash code) from https://a-zgsm.com/freecode/huawei/submit/


Use s3 for backups

Migrated from PR #432.  See that one for a walk through of what the PR changes and why.

@magikid Issue with make db-restore but maybe I'm missing something?
./scripts/db-restore.sh: line 38: s3cmd: command not found
make: *** [db-restore] Error 1

Notes from chat:

[ ] add inputs to restore script so we can more easily restore a db from one bot/bucket to another
[ ] Rather than putting a link to the resource, add a link to the DO UI: https://cloud.digitalocean.com/spaces/lal-brain-backups?path=2024-06-12/


Remove deprecated AdMob SDK (in favor of new GMA SDK).

Description

Provide details of the change, and generalize the change in the PR title above.

This PR removes the entire deprecated AdMob SDK, including source, headers, and packaging.
(Rather than just removing AdMob from the packaged SDK, it's easier to remove it completely as otherwise we will need to create another 'cppsdk' iOS dependency when iOS SDK 11.x.x is released.)

Testing

Describe how you've tested these changes. Link any manually triggered Integration tests or CPP binary SDK Packaging Github Action workflows, if applicable.

Running integration tests and then also packaging + integration tests, followed by manual examination of packaged SDK.

Type of Change
Place an x the applicable box:

[ ] Bug fix. Add the issue # below if applicable.
[ ] New feature. A non-breaking change which adds functionality.
[X] Other, such as a build process or documentation change.

Notes

Bug fixes and feature changes require an update to the Release Notes section of release_build_files/readme.md.
Read the contribution guidelines CONTRIBUTING.md.
Changes to the public API require an internal API review. If you'd like to help us make Firebase APIs better, please propose your change in a feature request so that we can discuss it together.

Another line I spotted: https://github.com/firebase/firebase-cpp-sdk/blob/main/scripts/update_android_ios_dependencies.py#L174

Another line I spotted: https://github.com/firebase/firebase-cpp-sdk/blob/main/scripts/update_android_ios_dependencies.py#L174
Nice catch!