[Snyk] Security upgrade golang from 1.18.6 to 1.19.11

This PR was automatically created by Snyk using the credentials of a real user.Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Changes included in this PR

Dockerfile

We recommend upgrading to golang:1.19.11, as this image has only 68 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.
Some of the most important vulnerabilities in your base image include:

Severity
Priority Score / 1000
Issue
Exploit Maturity

714
Exposure of Resource to Wrong Sphere SNYK-DEBIAN11-CURL-3065656
No Known Exploit

714
Integer Overflow or Wraparound SNYK-DEBIAN11-GIT-3232722
No Known Exploit

714
Integer Overflow or Wraparound SNYK-DEBIAN11-GIT-3232724
No Known Exploit

614
Directory Traversal SNYK-DEBIAN11-GIT-3319756
No Known Exploit

714
Out-of-bounds Read SNYK-DEBIAN11-LIBTASN16-3061097
No Known Exploit

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Directory Traversal

Already fixed as 1.20.x


address comments from ID for operator bundle.

ref: https://github.com/stolostron/backlog/issues/24608#issuecomment-1276869501
Signed-off-by: morvencao<EMAIL_ADDRESS>

/lgtm


Webhooks on default fallbacks seem to break the default fallback responses.

Issues

If you're having trouble with Articulate we definitely want to help you. If you can provide a little bit of information it will make our troubleshooting job easier.

Please describe the issue you are having here and answer the question below.

Did you download a release or pull from Master? Which release?
From Master as of August 15th morning
What operating system are you running?
Ubuntu 18.04 - Docker compose
Are you running locally or in the cloud?
Locally
Which browser are you using?
Chrome

Great job guys! I've been playing around with articulate for a while and I'm quite impressed!
Now for the report:
When a webhook is set on the default fallback, no answer will be resolved and an error will appear:
{ error: ReferenceError: MODEL_AGENT is not defined at AgentService.MODEL_AGENT (/usr/src/app/lib/services/agent/agent.converse-generate-response-fallback.service.js:12:28) at Generator.next (<anonymous>) at asyncGeneratorStep (/usr/src/app/lib/services/agent/agent.converse-generate-response-fallback.service.js:7:103) at _next (/usr/src/app/lib/services/agent/agent.converse-generate-response-fallback.service.js:9:194) at /usr/src/app/lib/services/agent/agent.converse-generate-response-fallback.service.js:9:364 at new Promise (<anonymous>) at AgentService.<anonymous> (/usr/src/app/lib/services/agent/agent.converse-generate-response-fallback.service.js:9:97) at AgentService.<anonymous> (/usr/src/app/lib/services/agent/agent.converse-generate-response-fallback.service.js:1:1) at apply (/usr/src/app/lib/services/agent.services.js:260:55) at Generator.next (<anonymous>), message: null } Debug: handler, error

Thanks for your report. We are going to check what is happening

@cesarandreslopez I think this https://github.com/samtecspg/articulate/commit/a6dc1781f84f98df627cad71c8772b2721aa7830 will fix it.
Could you try again and report back

@dcalvom I can confirm that this issue was resolved. Thank you!
Looking forward to contributing to this project as I gain more understanding of it.


Can't install plug-in into WSL

Type: Bug

VS Code Version:
Version: 1.79.2 (system setup)
Commit: 695af097c7bd098fbf017ce3ac85e09bbc5dda06
Date: 2023-06-14T08:57:04.379Z
Electron: 22.5.7
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19042
OS Version:
Edition	Windows 10 Enterprise
Version	20H2
Installed on	8/13/2022
OS build	19042.1889
Experience	Windows Feature Experience Pack 120.2212.4180.0
Plug-ins installed:
Visual Studio Code Remote Development Extension Pack that include ms-vscode-remote.remote-wsl v0.79.5
WSL:
wsl version 1 (as virtualization is not supported)

uname -a && cat /etc/os-release
Linux seliiwvdec51893 4.4.0-19041-Microsoft #1237-Microsoft Sat Sep 11 14:32:00 PST 2021 x86_64 x86_64 x86_64 GNU/Linux
NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Steps to Reproduce:

Freshly installed WSL and VSCode with a Visual Studio Code Remote Development Extension Pack
Trying to install plugins that require installation is vscode-server (WSL in my particular case) and got a message This extension is disabled in this workspace because it is defined to run in the Remote Extension Host. Please install the extension in 'WSL: Ubuntu' to enable. Learn More, even plug-in ms-vscode-remote.remote-wsl v0.79.5 is installed

In my case it's a eamodio.gitlens

Trying to rm -rf ~/.vscode-server, disable and enable again ms-vscode-remote.remote-wsl plug-in, remove and reinstall plug-in, completely remove and reinstall VSCode. Result is the same.

VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:57:04.379Z)
OS version: Windows_NT x64 10.0.19042
Modes:
Remote OS version: Linux x64 4.4.0-19041-Microsoft
Remote OS version: Linux x64 4.4.0-19041-Microsoft

During debug session I found following error in logs:
EACCES: permission denied, rename '/home/<username>/.vscode-server/extensions/.1b8a525e-e32f-4abd-b021-c376c1351a6e' -> '/home/<username>/.vscode-server/extensions/eamodio.gitlens-2023.6.1705'

I used WA from here https://github.com/microsoft/WSL/issues/3395#issuecomment-667411421 and add a line  "remote.WSL.fileWatcher.polling": true into my setting.json and restart VSCode, than plug-in installed successfully.
Going to close this issue


[DPTOOLS-708] Airflow UI needs to gracefully handle DAGs that raise E…

In webserver only mode, UI shows DAG import errors encountered on the webserver side.
Add a button to reload the dagbag.

Details:
In a normal setup where we have webserver and scheduler running side by side, we won't have this issue. When scheduler cannot import a DAG, it will save the (filepath, stacktrace) into the database and webserver queries the db and show the import error if any. However, since we are running webserver only on TARS, the ImportError table is always empty in db. Thus, this PR allows the webserver to show the import error on webserver side.

Codecov Report

Merging #86 into data-platform-upgrade will increase coverage by 0.13%.
The diff coverage is 50%.

@@                    Coverage Diff                    @@
##           data-platform-upgrade      #86      +/-   ##
=========================================================
+ Coverage                  68.72%   68.85%   +0.13%
=========================================================
  Files                        142      142
  Lines                      11127    11136       +9
=========================================================
+ Hits                        7647     7668      +21
+ Misses                      3480     3468      -12

Impacted Files
Coverage Δ

airflow/configuration.py
84.42% <ø> (ø)
:arrow_up:

airflow/models.py
86.37% <50%> (-0.03%)
:arrow_down:

airflow/www/views.py
68.75% <50%> (-0.11%)
:arrow_down:

airflow/utils/helpers.py
51.48% <0%> (+7.92%)
:arrow_up:

Continue to review full report at Codecov.

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

@lyft/dp-tools-viz

👍  lgtm


Posenet accuracy is too low

Hello,
I am trying to use Posenet using Flutter tflite plugin,  however the the accuracy is pretty low. I had used use Posenet with ml5.js and it works very well. I am not sure if I am trying something wrong as I am new to this or there's a problem with the ported model itself.  The points plotted on the Camera screen (i.e. Nose, Left Eye etc) are also too vague - They are plotted anywhere on the screen & sometimes almost overlaps each other.
Is anyone else facing similar issue? I have tried with different tflite available models found on Internet, some crashes some works but the accuracy is still a issue.
Can some help please?

AB

Try a posenet model whose backbone is resnet. It provides better accuracy taking a hit at speed.
https://github.com/google-coral/project-posenet/tree/master/models/resnet

In the end, I found that I am using too low resolution (320x240) of stream of images from the camera. I change that to FHD and it is working fine now.
Maybe this Info will help someone.


Reorder getOrCreateSqlServer parameter to make name as last one. Fix #124

Codecov Report

Merging #125 into master will not change coverage.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master     #125   +/-   ##
=========================================
  Coverage     41.76%   41.76%
  Complexity      146      146
=========================================
  Files            59       59
  Lines           771      771
  Branches         45       45
=========================================
  Hits            322      322
  Misses          419      419
  Partials         30       30

Impacted Files
Coverage Δ
Complexity Δ

.../sql/SqlServerJdbcDataSourcePropertiesUpdater.java
83.33% <100%> (ø)
3 <0> (ø)
:arrow_down:

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 5849377...bb1aa01. Read the comment docs.


Gini_Spatialand TheilD disagree on whether within/between inequality is larger?

Hi there, thanks so much for making the computing of inequality indices easy. I'm using the package (example code below) to compare within vs between groups inequality and noticed that the Spatial Gini and the Theil decomposition measures tend to disagree on whether the within or between group inequality is larger.
Here is the preamble to prep the data:
import libpysal
import numpy as np
from inequality.theil import TheilD
from inequality.gini import Gini_Spatial
import pandas as pd

f = libpysal.io.open(libpysal.examples.get_path('mexico.csv'))
periods = ["".join(["yr", str(ix)]) for ix in range(1,13)]

df = (
    pd.DataFrame(f, columns=["area", *periods])
    .assign(regime=np.array(f.by_col('hanson98')).astype(int))
)
df

area
yr1
yr2
yr3
yr4
yr5
yr6
yr7
yr8
yr9
yr10
yr11
yr12
regime

0
Aguascalientes
10384
6234
8714
16078
21022
20787
27782
2
2
3
4
4
2

1
Baja California
22361
20977
17865
25321
29283
26839
29855
1
1
5
1
1
1

2
Baja California Sur
9573
16013
16707
24384
29038
25842
26103
2
2
6
1
1
2

3
Campeche
3758
4929
5925
10274
12166
51123
36163
6
5
4
5
5
5

4
Chiapas
2934
4138
5280
7015
16200
8637
8684
5
5
7
5
5
5

5
Chihuahua
8578
13997
16265
19178
23399
25332
30735
1
1
5
1
2
1

6
Coahuila
8537
9673
12318
20562
25688
26084
28460
1
1
5
2
2
1

7
Colima
6909
6049
6036
12551
17427
18313
21358
3
3
6
4
4
3

8
Distrito Federal
17816
17119
23174
32386
42028
43810
54349
4
4
1
3
3
4

9
Durango
12132
8859
9323
12700
16726
17353
17379
2
2
3
1
2
2

10
Guanajuato
4359
5686
8209
11635
13864
13607
15585
3
3
3
4
4
3

11
Guerrero
2181
3629
4991
6497
8727
9084
11820
5
5
7
5
5
5

12
Hidalgo
4414
5194
6399
7767
12391
13091
12348
3
3
2
3
3
3

13
Jalisco
5309
8232
9953
16288
20659
20133
21610
3
3
6
4
4
3

14
Mexico
3408
4972
9053
17164
20165
18547
16322
4
4
1
3
3
4

15
Michoacan
3327
5272
5244
8109
11206
10980
11838
3
3
7
4
4
3

16
Morelos
6936
8962
10499
13892
16513
17701
18170
3
3
2
3
3
3

17
Nayarit
4836
7515
7621
10880
13354
12757
11478
2
2
6
4
4
2

18
Nuevo Leon
9073
11490
20117
28206
34856
34726
38672
1
1
5
2
2
1

19
Oaxaca
1892
4538
4140
5230
7730
8465
9010
5
5
7
5
5
5

20
Puebla
3569
6415
6542
9775
13374
11895
15685
3
3
2
3
5
3

21
Quertaro
11016
5560
7110
14073
20088
22441
26149
3
3
3
3
4
3

22
Quintana Roo
21965
28747
9677
17046
26695
25049
33442
6
5
4
5
5
5

23
San Luis Potosi
4372
7533
6440
9721
12691
15436
15866
2
2
3
4
4
2

24
Sinaloa
4840
6663
9613
14477
15312
15823
15242
2
2
6
1
1
2

25
Sonora
6399
10345
12134
22662
23181
24784
24068
1
1
5
1
1
1

26
Tabasco
2459
3857
6494
9367
42361
16055
13360
6
5
4
5
5
5

27
Tamaulipas
7508
8536
8383
17128
21937
19983
23546
1
1
5
2
2
1

28
Tlaxcala
3605
4178
4357
6245
9882
10339
11701
3
3
2
3
3
3

29
Veracruz
5203
10143
11404
12240
14252
13796
12191
3
3
4
5
5
3

30
Yucatan
7990
8428
10067
11665
15239
13979
17509
6
5
4
5
5
5

31
Zacatecas
3734
6435
5821
7426
8876
11656
11130
2
2
3
4
4
2

Decomposing within vs between inequality:
With Theil:
theil = TheilD(df["yr1"], df["regime"])
theil.wg.item(), theil.bg.item()

(0.17435454225688188, 0.03458890004670406)
With Spatial Gini:
w = libpysal.weights.block_weights(df["regime"], silence_warnings=True)
np.random.seed(0)
gs = Gini_Spatial(df["yr1"], w)

(gs.g - gs.wcg_share), gs.wcg_share

(0.05970572377548328, 0.2940179879590452)
Based on the above, Theil suggests the within-group inequality is larger, but the Spatial Gini suggests the between-group inequality is larger. Is this interpretation correct? Sorry if I missed something obvious that will help clear my confusion.

The Gini_Spatial and TheilD indices measure different types of decompositions and are based on distinct mathematical formulations. The Theil index is an entropy-based measure, while the Gini index is based on the relative mean absolute difference between all pairs of economies. In the case of the Gini index, the decomposition categorizes pairs  of economies into two groups: those that are "neighbors" and those pairs that are not neighbors. Conversely, the TheilD decomposition categorizes the economies (not the pairs) into different groups based on regional definitions. Due to the distinct underlying logic of these two decompositions, their results are not directly comparable, as they measure different aspects of spatial inequality.
For further information see:

Rey, S. J., & Smith, R. J. (2013). "A spatial decomposition of the Gini coefficient." Letters in Spatial and Resource Sciences, 6(2), 55-70.
Rey, Sergio J., and Myrna L Sastré-Gutiérrez. “Interregional Inequality Dynamics in Mexico.” Spatial Economic Analysis 5, no. 3 (2010): 277–98.

hi @sjsrey, thanks so much for the quick response. I've worked out basic technical details of each's spatial decomposition, so I'm aware they are computed differently and are not directly comparable. I just found it strange that using the same weights (the regime clusters) led to such distinct disagreement (in direction, nevermind magnitudes of the coefficients).
But thanks for sharing those two papers! Maybe they will shed some light for me. Closing this for now.
Thanks for developing so many OSS packages :)


Safeguarding app silo

First draft after receiving Ryan's input.

Why is this incompatible? Because these policies only apply to UWP applications? Will they be compatible with Win32 in the future?

Thank you, @tiangao-ms. I have made changes according to your suggestions.


PackageNotFound when creating conda env from file

The following packages are not available from curren channels:

nvidia/label/cuda-11.7.1

Some other person reached out to me with a similar error. However, I cannot reproduce it on my side. This is probably due to some CUDA driver mismatch. I would encourage you to do some plain Torch+CUDA installation and install all other packages.


removed lock on file after upload

This should fix the issue with the file lock after the upload is finished.

Hello timoage, I am reviewing the changes today and merge everything once the tests are all green 😄
thanks for you for your contribution!


Test Troubleshoot Issue feature

[ ] mac @kieferrm
[ ] linux @jrieken
[ ] win @dbaeumer

Complexity: 3
Create Issue

You can now troubleshoot an issue in VS Code and find out what is causing this. A new command >Help: Troubleshoot Issue is introduced to determine if an issue is with

VS Code
VS Code Settings
an Extension

Test this feature in insiders and stable. Please download the latest unreleased stable build to test stable version
Test running above command and check if the troubleshooting flow will help you in determining where the issue is. It uses vscode profiles feature to check if the issue is with VS Code or VS Code settings. This will help to un-touch your current setup. To find the problematic extension, this flow uses extension bisect. At the end, you would be asked to report an issue by adding necessary troubleshooting context in the description.
If you are in stable release, the flow will also ask if the issue exists in insiders or not. Please test this flow too.
Once troubleshooting is done, you will be back to your original setup/profile.
Explore the feature and test any other scenarios you can think of.

Stable build is not available yet. I am building it. I will announce here once it is available.

Stable build is available

Realizar trasferencia paypal $ 5,79993

@jrieken Extensions are indeed getting disabled. Please check the extensions view / running extensions editor. What you are seeing is a bug in status bar.

@kieferrm I assume you are done with testing here because you unassigned yourself. @jrieken might have assigned you back  by mistake. Hence unassigning you and closing this.
If I am wrong, please reopen and continue testing.


Read latex

This PR adds a new module, space_latex, that parses tables created in LaTeX containing annotations of space weather models.
Tests for checking the parsing are added in test_sympy_dimensions.py

Thanks, @kkaris! I changed the script to work on  individual model text files but when trying to run it on the current state of the latex files, I ran into issues. I debugged a couple but wasn't sure if I should keep going. Is the script expected to work as is (maybe I'm not running it right) or are there known issues?

I had some local code note yet pushed (didn't see it until this morning when I started pycharm after having to restart my laptop). I downloaded the latest overleaf tex-files and it works for me locally.


US locale

I'm guessing this was just for the sake of unit tests?  if that is the case, we should probably override environment in parent/pom.xml instead of sprinkling Locale.US and/or Locale.ENGLISH around.  If we really need to use a specific locale for String.format, we should probably make a small convenience function Text.fmt() and use that instead of String.format everywhere - that's easier to keep consistent.

I'm guessing this was just for the sake of unit tests?

correct - unit test failed on my non-US laptop. I run a full build now and then, once a quarter we need to add this, so not a big problem - but I am find with either

We should always pass locale in the code itself.


Move the trivial_numeric_casts lint to allow-by-default

This lint was recently added in https://github.com/rust-lang/rust/pull/23630 as part of https://github.com/rust-lang/rfcs/pull/803 and it disallows casts such as foo as i64 when foo has the type i64.
In theory this does sound like a lint which is nice to have, but I've found that in the context of FFI it's doesn't always play out so well. Because libc::c_int is simply an alias of some concrete primitive type, it is typically casted out into a known integer to be worked with in Rust. In this specific case the target type of i32 is frequently chosen, triggering this lint. Having to annotate crates with #[allow(trivial_numeric_casts)] is somewhat annoying for this common use case, and the broader lint (trivial_casts) seems more relevant to remain as warn-by-default.
cc @nrc

I do not oppose this change. I think we ended up with warn by default by miscommunication, rather than intention.
I marginally prefer warn by default because I think that ought to be the default behaviour for most integer casts, but I think I have a much higher tolerance for allows in my code than others and I see the merit of allow by default for the sake of FFI.

See also rust-lang/rust#23734

If only someone had mentioned this exact problem during the RFC discussion.

At the risk of sounding repetitive, what about an attribute (maybe #[allow(trivial_numeric_casts)] itself, but that might not work) on the types aliases which may vary between compilations?

I would much prefer to have the lint simply not warn if casting between type aliases. Warning me by default when I say something like 42i32 as i32 is reasonable; warning me by default when I say something like 42i32 as c_int is not. If we make this lint allow-by-default I'm not sure who would ever actually turn it on.
Note that this isn't just an issue with type aliases that may vary by configuration, it's also an issue with type aliases where the programmer simply doesn't necessarily know which concrete type the type alias is an alias for (and isn't required to know either; if they were then why would I be using a type alias?) or does know but simply wants to make it clear to any potential readers that they're intentionally using the type alias because it carries some semantic meaning.

This appears to have happened: https://play.rust-lang.org/?gist=227c8025f371351c94cc404a57765c23&version=stable


Close down buckets

This fixes #115
Replace the permissive bucket policies with object ACLs.
Instead of having bucket policies that permit reading all objects in the buckets, upload the objects with ACLs that permit reading.
The primary motivation is that most security tools will complain loudly when you have permissive bucket policies. Even S3's console points out buckets with policies that allow anyone to read the contents.
By instead using object ACLs the intention is made more clear that these objects are in fact public – and it adds the possibility of uploading non-public objects, should that need arise in the future.
An alternative to this would be to use an origin access identity to restrict the contents of the buckets to CloudFront, but with the object ACL method the S3 website hosting still works, which is nice.

I have not yet attempted to set up an installation from this version, I will do that as soon as I have figured out how to.

Thank you for the awesome PR. The object ACLs sounds the better option than the origin access identity, as it's better to hide some S3 objects (like non-published metrics data) from users of status page.
I will try out this PR tomorrow.

One problem I noticed is that simply removing the bucket policy makes the existing s3 objects inaccessible.

Yes, that is a good point. Have you had some kind of update strategy for previous breaking changes?
I haven't figured out how to test this myself actually, I came as far as realising that to test it I would have to build release zips and get the update to load my zips instead of your zips and I ran out of time, unfortunately.

I've avoided breaking changes as possible so far. In this issue's case, it's possible to write a migration code to add 'public-read' ACL into every existing S3 objects, but the situation will be very complicated if the migration code fails. Now I think an origin access identity looks simpler and safer option.
This doc may be helpful for testing. Basically you can directly update the lambda functions with the npm run deploy command.

I've merged this PR which fixes the issue with Origin Access Identity approach. So let me close this PR. Thank you again for your contribution.

As long as it resolves the issue I'm happy. Thank you for taking your time with this.


should have generic staking contract

[x] copy from branch https://github.com/GoodDollar/GoodContracts/tree/193-Integrating-library-with-staking-contract/stakingModel/contracts
the staking contracts AbstractGoodStaking,SimpleStaking,GoodCompoundStaking and the simplestaking test files
[ ] adapt openzeppelin dependencies, use DAOContract for onlyAvatar + onlyFundmanager (maybe refactor to DAOContract to receive nameService also in setDAO?)
[ ] withdraw should accept parameter _amount (how much of stake to withdraw)
[ ] adapt test files to hardhat/waffle

NameService is inheriting from DAOContract


Trying notebook with elements/liquid

Hello, can you add example on how to get UTXOs from elements or liquid? It would be appreciated! Thank you!

Hi, basic support for liquid has been added in RGB but it's not yet complete, so at the moment rgb-lib only works on bitcoin.


Missing Python 3.5/3.6 build for Windows (vc14)

It looks like this feedstock isn't doing builds for Windows + Python 3.6:
https://anaconda.org/conda-forge/lp_solve/files
https://ci.appveyor.com/project/conda-forge/lp-solve-feedstock/branch/master
I had a similar attempt at a feedstock for lpsolve here: https://github.com/conda-forge/staged-recipes/pull/2501/files
I'll have a look through and see if there is anything worth porting.
@jschueller / @mictadlo, any idea why this build config is missing? The recipe looks sensible to me.

thats only a lib, there are no bindings, you can checkout cvxopt

I see, there's no vc14 libs, the title was misleading.

https://github.com/conda-forge/lp_solve-feedstock/pull/5


Publish 2.1.0 to support Dart 2.0

It looks like you've updated the SDK constraints to allow for version 2.1.0 to be used with Dart 2.0. Would you mind publishing a new version with the updated constraints to Pub? Otherwise it's not possible to use for those on the latest Dart revision.

Friendly bump. Can the latest version be published on pub?

Should be published now. Let me know if there are any problems with it.


WARNING

http://pastebin.com/NiD6NhqS

Upstream issue

this will be fixed?

Create an issue in https://github.com/SpigotMC/BungeeCord


Method to extract stream/region from ARN

Hi,
In my AWS-SDK-CPP client code i am having the full ARN value, like
arn:aws:kinesis:us-east-1:528719264515:stream/atream
from this i need to extract stream/region and need to update in kinesis client.
is there a method already available in AWS-SDK-CPP?

There isn't anything available specific to kinesis, but it should be straightforward to write one yourself using regular expressions.  For an example, see AccessManagementClient::ExtractAccountIdFromArn, which pulls out an account id from the IAM User arn.  The kinesis stream arn looks to have a different format (no '::' to easily key off) but that shouldn't make things significantly harder.

Thank You. I tried this code and it works for region,
char karn[256];
char region[10];
strcpy(karn, ShmPTR->kiarn);
char* kregion = strtok(karn, ":");
for(int Rcount = 0; kregion && Rcount <3; Rcount ++) {
std::cout<<kregion<<std::endl;
kregion = strtok(NULL, ":");
}
strcpy(region,kregion);


Question about whitelist multibranch pipeline

I want to track some of my multibranch pipeline job. but i'm not sure how to write the job name in the Whilelist box of Jenkins Configuration Page. I tried to type only the job name (ex: Android PR Checker)or with pr-number (ex: Android PR Checker/pr-111) but then no jobs is tracked to datadog.
So, How to write the whitelist job properly for multibranch pipeline job?
I also try to filter jobs by adding tags, i add this line to Global Jobs Tags
Android PR Checker(*?), owner:adx
But i don't know how to use the tag to set filter inside the datadog dashboard.

@fahmisdk6 Please open a support ticket and someone will walk you through this.


Support for checkout blocks

Support for new checkout blocks
https://woocommerce.com/document/cart-checkout-blocks-support-status/
https://github.com/woocommerce/woocommerce-blocks/tree/trunk/docs#third-party-developers
https://github.com/woocommerce/woocommerce-blocks/tree/trunk/docs#developer-resources

https://developer.woocommerce.com/2022/07/07/exposing-payment-options-in-the-checkout-block/
https://github.com/woocommerce/woocommerce-gateway-dummy

Fixed by #32


Key ID

The key ID should use the same encoding as an IPFS peer ID.  This allows the peer's key to be imported as self in the keystore and allow's automated decrypting of data when a recipient is the peer's ID.

https://github.com/libp2p/js-peer-id

A Peer ID is the SHA-256 multihash of a public key.
The public key is a base64 encoded string of a protobuf containing an RSA DER buffer. This uses a node buffer to pass the base64 encoded public key protobuf to the multihash for ID generation.


Development for FUT 19

Join my discord so we can help each other with the new web app:
https://discord.gg/f7ytm8

Hello @KristianSv - The invite is expired. I'm not really working on that project anymore, but I want to keep it up-to-date - Do you have anything for a PR?

https://discord.gg/fEKaq8a sorry - this link should not expire. Thanks for the notice

Hello,
Is anybody succeed in logging to the app?
I still get the 503 error...


runtime(doc): Fix enum example syntax

An ex-colon is not allowed before endenum.  As no other examples in the
file use an ex-colon remove them both.

thanks

included as of 49a35f67ebf3042b18fa4325b5c27ae25533afe5


Why is SymbolId 64 bit?

Why is SymbolId 64 bit long while cache only supports 24 bits? Shouldn't it be 32 bit long??
UHDM::SymbolFactory::ID is 32 bits but SURELOG::RawSymbolId is 64 bit.

That might be an oversight.
To test with 32 bit, you need to run the largest design that are blacklisted (BlackParrot...)
We should also print the highest SymbolId created to measure what is the range.


V1 - Rebranding - Tool tip issues for any link or logo or drop down item in header

Launch V1 landing page
Login
Click Proceed for Project Console card or Corporate Console card
Issue1
Mouser hover on logo or any link, or any drop down item
Observed that current page name is displayed as tool tip

Issue2
6. Tool tip is not displayed in Landing page. Not sure if tool tip is required, since the behavior was inconsistent between landing page and consoles, mentioned the issue here

@nirupamav please confirm with @amolsontakke3576 that this is an issue with the lfx-header team and not EasyCLA.  If so, please document the issue there and help close this ticket.

Logged https://jira.linuxfoundation.org/browse/PMM-847 to track this issue and hence closing this ticket


set_overlay() for all outputs

Please only include one suggestion or features request per issue!
Is your feature request related to a problem? Please describe.
The set_overlay() function only seems to work for previews and not for any actual output.
This is not clearly documented and also feels illogical to new user that it would not just generally be an overlay no matter the output.
Describe the solution you'd like
overlays should be taken into account in all outputs, wether it's just a file or FileOutput or FfmpegOutput is used.
Describe alternatives you've considered
in ffmpeg in general you can add things like overlays, so being able to specify more inputs to a single ffmpegoutput in ffmpeg format would work, but currently ffmpegoutput does not seem to work with input in the command.
Additional context
Add any other context or screenshots about the feature request here.

Yes, the overlay feature is very deliberately only something for use on preview windows, for example for doing little bits of UI such as crosshairs, buttons or rectangles. It's not intended to be part of the final image.
If you want something on the final image, I'd recommend using the pre_callback to draw text or other graphics onto your images. There are examples of this kind of thing, for example here.

Thank you for pointing me in the right direction!


fix: fix pb manager receive error

Changes

#1323  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @MasterPtato and the rest of your teammates on  Graphite


implement DO model with explicit metabolism representation

Implement the changes proposed here https://github.com/USGS-R/drb-do-ml/discussions/47#discussioncomment-2083081 to explicitly represent metabolism within the DO model.

Diagram of those equations

And here's what the loss function would look like


Azure Open AI - Resource Not Found and Chunk Mismatch

I am trying to integrate Azure Open AI and using these below environment variables for the verba and weaviate but getting 404 error: Resource not found. Also in UI: Embedding not successful: Chunk mismatch for 51** 0 != 14 ,
verba:
environment:
- WEAVIATE_URL_VERBA=http://weaviate:8080
- OPENAI_API_TYPE="azure"
- OPENAI_API_KEY=c*
- OPENAI_BASE_URL=https://rr.openai.azure.com/
- AZURE_OPENAI_RESOURCE_NAME=rr
- AZURE_OPENAI_EMBEDDING_MODEL="text-embedding-ada-002"
- OPENAI_MODEL="gpt-35-turbo"
- OPENAI_API_VERSION="2023-03-15-preview"
- WAIT_TIME_BETWEEN_INGESTION_QUERIES_MS=100
weaviate:
environment:
QUERY_DEFAULTS_LIMIT: 25
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
ENABLE_MODULES: 'text2vec-openai, generative-openai, qna-openai, text2vec-cohere'
CLUSTER_HOSTNAME: 'node1'
Did anyone face the same issue?

Thanks for the issue! Did you install Verba from source?

I can confirm the same issue on my end.  This what I see in the log

Thanks for the issue! Did you install Verba from source?

I am using Docker for the deployment.

Thanks for the issue! Did you install Verba from source?

I am using Docker for the deployment.

Thanks for the issue! there seems to be an issue with the azure implementation, we're looking into it

Running into the same error, using Docker, Weaviate Embedded and OPENAI API KEY (Not Azure):
(INFO) Importing...
(INFO) Importing 1 files with BasicReader
(INFO) Importing Test .pdf
(SUCCESS) Loaded 1 documents in 0.87s
(INFO) Starting Chunking with TokenChunker
(SUCCESS) Chunking completed with 104 chunks in 0.05s
(INFO) Starting Embedding with ADAEmbedder
(ERROR) Embedding not successful: Chunk mismatch for ec0d2ac5-c733-4f1d-ae2f-f1b227a9ffac 0 != 104
(ERROR) Chunk mismatch for ec0d2ac5-c733-4f1d-ae2f-f1b227a9ffac 0 != 104

Has the problem been solved? @Tansif
I had the same problem，Below is a screenshot of my journal
dial tcp: lookup https on xx.xx.xx.xx:53: no such host'}]}, 'status':
'FAILED'}

Has the problem been solved? @Tansif
I had the same problem，Below is a screenshot of my journal
dial tcp: lookup https on xx.xx.xx.xx:53: no such host'}]}, 'status': 'FAILED'}

not yet @liqingqing562

Hi, looks like its calling the old API's, could be due to using the retired version of of the OpenAI Python package
Current == openai 1.34.0
Verba == openai-0.27.9
"https://XXXXXXXXXXXXXX-XXXXXX-XXX/openai/deployments/text-embedding-ada-002/embeddings?_**api-version=2022-12-01":**_
dial tcp: lookup XXXXXXXXXXXXXX-XXXXXX-XXX.openai.azure.com on <IP_ADDRESS>:53: no such
host'}]}, 'status': 'FAILED'}
[https://learn.microsoft.com/en-us/azure/ai-services/openai/reference]
2023-03-15-preview (retiring July 1, 2024) Swagger spec
2023-05-15 Swagger spec
2023-06-01-preview Swagger spec
2023-07-01-preview (retiring July 1, 2024) Swagger spec
2023-08-01-preview (retiring July 1, 2024) Swagger spec
2023-09-01-preview (retiring July 1, 2024) Swagger spec
2023-10-01-preview Swagger spec
2023-12-01-preview (retiring July 1, 2024) Swagger spec
2024-02-15-previewSwagger spec
2024-03-01-preview Swagger spec
2024-04-01-preview Swagger spec
2024-05-01-preview Swagger spec
2024-02-01 Swagger spec


Issue Mounting and Using Workspaces in Git Bash/CMD on Windows

Checklist

[X] I've looked through the issues and pull requests for similar reports

Describe your issue
When using docker or podman on a Windows machine (run from Git bash or CMD, likely also Powershell), the container engine fails to change directories to the mounted project directory. Although the mount directories for the same locations are properly mounted, the -w flag fails. This is an issue if using /mnt/c or C:\ for the provided path. The attempted workdir attempted to be found relative to Git bash.
On CMD, the workpath is properly found, so the CMD, and CMD is properly mounted, however other issues still seem to exist, since it produces the same error.
None of these issues manifest with cargo directly.
The simplest example is to do:
$ git clone https://github.com/cross-rs/test-workspace
$ cd test-workspace/workspace
$ crossbuild --target x

Oddly, this does not fail with the following invocation:

```bash
$ cross build --target x86_64-unknown-linux-gnu -v --manifest-path="./workspace/Cargo.toml" --workspace

What target(s) are you cross-compiling for?
No response
Which operating system is the host (e.g computer cross is on) running?

[ ] macOS
[X] Windows
[ ] Linux / BSD
[ ] other OS (specify in description)

What architecture is the host?

[X] x86_64 / AMD64
[ ] arm32
[ ] arm64 (including Mac M1)

What container engine is cross using?

[X] docker
[X] podman
[ ] other container engine (specify in description)

cross version
cross 0.2.4 (b238b21 2022-10-12)
Example
Note that this also reproduces on Windows CMD as well as Git bash, so it's not exclusively a Git bash problem.
$ /c/Users/ahusz/git/cross/target/debug/cross.exe build --target x86_64-unknown-linux-gnu --workspace -v
+ cargo metadata --format-version 1 --filter-platform x86_64-unknown-linux-gnu
+ rustc --print sysroot
+ "C:\Program Files\Docker\Docker\resources\bin\docker.exe"
+ "C:\Program Files\Docker\Docker\resources\bin\docker.exe" version -f '{{ .Server.Os }},,,{{ .Server.Arch }}'
+ rustup toolchain list
+ rustup target list --toolchain stable-x86_64-unknown-linux-gnu
+ rustup component list --toolchain stable-x86_64-unknown-linux-gnu
+ "C:\Program Files\Docker\Docker\resources\bin\docker.exe" run --userns host -e 'PKG_CONFIG_ALLOW_CROSS=1' -e 'XARGO_HOME=/mnt/c/Users/ahusz/.xargo' -e 'CARGO_HOME=/mnt/c/Users/ahusz/.cargo' -e 'CROSS_RUST_SYSROOT=/mnt/c/Users/ahusz/.rustup/toolchains/stable-x86_64-unknown-linux-gnu' -e 'CARGO_TARGET_DIR=/target' -e 'CROSS_RUNNER=' -e TERM -e 'USER=ahusz' -e 'CROSS_RUSTC_MAJOR_VERSION=1' -e 'CROSS_RUSTC_MINOR_VERSION=64' -e 'CROSS_RUSTC_PATCH_VERSION=0' -v 'C:\Users\ahusz\git\cross\target\tmp\tmp.5z26cWTEes\external\external_lib:/mnt/c/mnt/c/Users/ahusz/git/cross/target/tmp/tmp.5z26cWTEes/external/external_lib:z' --name cross-stable-x86_64-unknown-linux-gnu-9de56-a55dd71d5-x86_64-unknown-linux-gnu-12695-1669472749478 --rm --user 1000:1000 -v 'C:\Users\ahusz\.xargo:/mnt/c/Users/ahusz/.xargo:z' -v 'C:\Users\ahusz\.cargo:/mnt/c/Users/ahusz/.cargo:z' -v /mnt/c/Users/ahusz/.cargo/bin -v 'C:\Users\ahusz\git\cross\target\tmp\tmp.5z26cWTEes\workspace:/mnt/c/Users/ahusz/git/cross/target/tmp/tmp.5z26cWTEes/workspace:z' -v 'C:\Users\ahusz\.rustup\toolchains\stable-x86_64-unknown-linux-gnu:/mnt/c/Users/ahusz/.rustup/toolchains/stable-x86_64-unknown-linux-gnu:z,ro' -v 'C:\Users\ahusz\git\cross\target\tmp\tmp.5z26cWTEes\workspace\target:/target:z' -w /mnt/c/Users/ahusz/git/cross/target/tmp/tmp.5z26cWTEes/workspace -t ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main sh -c 'PATH="$PATH":"/mnt/c/Users/ahusz/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin" cargo build --target x86_64-unknown-linux-gnu --workspace -v'
error: failed to load manifest for workspace member `/mnt/c/Users/ahusz/git/cross/target/tmp/tmp.5z26cWTEes/workspace/binary`

Caused by:
  failed to load manifest for dependency `test-workspace`

Caused by:
  failed to load manifest for dependency `external_lib`

Caused by:
  failed to read `/mnt/c/Users/ahusz/git/cross/target/tmp/tmp.5z26cWTEes/external/external_lib/Cargo.toml`

Caused by:
  No such file or directory (os error 2)
+ rustup component list --toolchain stable-x86_64-unknown-linux-gnu

Note that running the following works:
$ "C:\Program Files\Docker\Docker\resources\bin\docker.exe" run --userns host \
    -v 'C:\Users\ahusz\git\cross\target\tmp\tmp.5z26cWTEes\external\external_lib:/mnt/c/mnt/c/Users/ahusz/git/cross/target/tmp/tmp.5z26cWTEes/external/external_lib:z' \
    -it ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main bash
$  ls /mnt/c/mnt/c/Users/ahusz/git/cross/target/tmp/tmp.5z26cWTEes/external/external_lib
Cargo.toml  src

As does:
$ "C:\Program Files\Docker\Docker\resources\bin\docker.exe" run --userns host \
    -v 'C:\Users\ahusz\git\cross\target\tmp\tmp.5z26cWTEes\workspace:/mnt/c/Users/ahusz/git/cross/target/tmp/tmp.5z26cWTEes/workspace:z' \
    -it ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main bash
$  ls /mnt/c/Users/ahusz/git/cross/target/tmp/tmp.5z26cWTEes/workspace/binary/
Cargo.toml  src

So clearly, the issue extends a bit past just the basic error messages reported.
See 'docker run --help'.

Meanwhile, a similar issue occurs when using Podman:
$ podman run --userns host     -v 'C:\Users\ahusz\git\cross\target\tmp\tmp.5z26cWTEes\workspace:/mnt/c/Users/ahusz/git/cross/target/tmp/tmp.5z26cWTEes/workspace:z'     -w '/mnt/c/Users/ahusz/git/cross/target/tmp/tmp.5z26cWTEes/workspace'     -it ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main bash
Error: error preparing container f2ad9a0ac2a0aa6666f69ea52311f7cef253d8e489bcff6909cad98152d2bac7 for attach: workdir "C:/Program Files/Git/mnt/c/Users/ahusz/git/cross/target/tmp/tmp.5z26cWTEes/workspace" does not exist on container f2ad9a0ac2a0aa6666f69ea52311f7cef253d8e489bcff6909cad98152d2bac7

However, when using CMD, the above command works perfectly fine:
> docker run --userns host -v "C:\Users\ahusz\git\cross\target\tmp\tmp.5z26cWTEes\workspace:/mnt/c/Users/ahusz/git/cross/target/tmp/tmp.5z26cWTEes/workspace:z"  -w "/mnt/c/Users/ahusz/git/cross/target/tmp/tmp.5z26cWTEes/workspace"  -it ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main bash
$ exit

Additional information / notes
Presumably this also affects other engines, such as lima.

EDIT: The relative paths seem to be invalid, it just seems to be an artifact of using Git bash. The major issue, however, remains.

we can't use the test suite on windows and mac due to missing functionality, related #610

we can't use the test suite on windows and macos due to missing functionality, related #610

Ah right. Ok, at least I can fix this locally.


fixing hostname issue

There was an issue with RHEV machines with invalid hostname, changed it to ip.

@gmcculloug please merge thanks!

@alongoldboim Is there a BZ reference for this change?  It like to have a better understanding of the issue forcing this change.
Is the bug something that can be fixed on RHEV?  Could this change have negative impacts?

@gmcculloug This was caused by a bad template in RHEV, i think we can ignore it because the problem was caused by the template.
Lets see if there are more incidents before we get this in.


Email notification for new MSME application

When an MSME submits an application, I want to receive an email to notify me with a link to the login screen for Credere. so I can start to process the application.

Email to be sent to a group email address for the FI selected by the MSME
No data for the MSME or their application to be included in the email content
Team at FI to arrange themselves how the application is processed
[ ] Send overdue reminder if past SLA time frame

https://www.figma.com/file/mQqkGtTfNEBdfk4QdfNYIO/OCP-Data-Registry-Design?type=design&node-id=424-2388&t=ZGzh5x7zMAwvmP8g-4
https://www.figma.com/file/mQqkGtTfNEBdfk4QdfNYIO/OCP-Data-Registry-Design?type=design&node-id=440-2492&t=ZGzh5x7zMAwvmP8g-4

The last item hasn't been implemented yet but closing this one in favor of #7


search in single project in multi-root workspace

VSCode Version: 1.18.1
OS Version: Win 10

Steps to Reproduce:
I use the new multi-root workspace feature to be able to look into multiple similar projects I'm working at at the same time.
The documentation  says to use the files to include input to filter a single project. It's a lot of work to enter the folder name every time I want to search.
I'd like to start the search with a mouse click on the context menu of the single root to select the single project I want to search.
In eclipse for example I can select multiple roots with the mouse STRG + click to select the different  roots and then hit search to limit search over a few projects.

You can, if you right click click and select "Find in Folder". Only single selection is supported at the moment.


Should provide haptic feedback during OP lane departure events

We have control of this in HCA_01/HCA_1, just haven't used it yet. Would be nice to provide this as additional feedback, esp. in combination with the new "unsafe mode" weak steering to provide an OEM-like lane guidance while disengaged.

Yeah, for what it's worth, this would be awesome! The gentile nudge when you start to stray on long drives is handy.

I may do this at some point, it won't be hard, but it would diverge from the typical openpilot experience for other cars, and as such, probably wouldn't be upstreamed. The stock openpilot experience is my primary focus right now.


Add Regal linting in CI pipeline

Hello kubescape friends!
Regal integration in CI just made simpler thanks to the new setup-regal GitHub Action, so I figured I'd check back :)
The new-ish --format github flag will also annotate PRs with any violation encountered in the code at the location of the violation, making it really easy to spot.
Also fix some style violations from more recent Regal rules, like excessive whitespace or comments without whitespace. That made the PR a little noisy, but it should be fairly quick to skim through.
Let me know what you all think, and have a great weekend!

Hi @anderseknert, welcome back!
Thanks for your contribution, this is really appreciated.
I pushed your changes into a branch of mine to run the tests that make use of internal organization secrets.
PR here: https://github.com/kubescape/regolibrary/pull/516
Once all the tests passed, we can merge your PR! ;)

Fantastic! Thanks @alegrey91 👍 Would love to hear about your experience with Regal later. Until then, take care!


GSWA 3 additions

Addition of 3 Drilling Methods by the Geological Survey of Western Australia.

Coiled Tubing Drilling
Rotary Mud
Vacuum

A generic method of rotary has also been added as a parent of the existing Hydraulic Rotary Drilling and the new Rotary Mud Drilling.
All additions have definitions and sources.
After addition, the RDF has been validated using the VocPub profile validator (used for all CGI vocabs) at: http://rdftools.kurrawong.net/validate and it is valid.
This vocabulary, with these additions, is test presented online at http://<IP_ADDRESS>/vocab/boreholedrillingmethod

Voting for this change proposal concluded positively on 2022-10-25 as notified to the GTWG by the Chair on email, therefore these changes should be merged - I'll notify GA to do this.


Still active?

Could you confirm if the repo is still active and needed? To do so, just close this issue by end of Feb 2024. If not, we'll archive the repo. The repo can still be unarchived, so it's not a destructive action.

I don't think this repo is active, but I am retired from HCL. It's not up to me. You might want to contact someone at HCL (perhaps @hcldan) before archiving.
I'll leave the issue open for now. Let me know if I should close it.

@paulswithers please avoid archiving this.  The owner will likely need to move to someone still employed at HCL (you can assign to me for now).
These apis are still in Domino, so I think the specs here should be kept available.

Done


🤖 CI: master failures

Seems CI is stuck: https://github.com/kairos-io/kairos/actions/runs/4344658101/jobs/7588507000

Possibly fixed by: https://github.com/kairos-io/kairos/pull/1052


AY mode is "none" by default, but "mono" is listed as default in --help

--help option shows that default value for --ay should be mono, but in reality it's like none: no AY sound.
This is because ay_enabled is set to false by default
https://github.com/pacmancoder/rustzx/blob/dd40dc4c865987772aa96d96435446c768b6aee3/src/settings.rs#L39
Then, if option is not specified, it stays false
https://github.com/pacmancoder/rustzx/blob/dd40dc4c865987772aa96d96435446c768b6aee3/src/settings.rs#L168-L176

Turns out it's more complex, it becomes enabled only in 128k mode
https://github.com/pacmancoder/rustzx/blob/dd40dc4c865987772aa96d96435446c768b6aee3/src/settings.rs#L194-L197
So, it works as expected, just --help is slightly unclear.

fixed in #38


Bug 924405 - Replace bz.js/bzAPI usage with native Bugzilla REST API

This switches all of the bzAPI uses but the /configuration call to use the native REST API.

Pull request #8 replaces this. I guess it doesn't like that I merged this and want to continue using it.


Fix CHANGELOG formatting

After today's merges, the Added section of unreleased contains extra blank lines between some entries. They should be removed.

Fixed


feat: prevent serialisation of private component fields

Contains
This pull request adds a new ComponentTypeHandlerFactory type specifcally for serialising components. It is mostly the same as ObjectFieldMapTypeHandlerFactory (from TypeHandlerFactory) but with an additional check for private fields. It might be possible to merge the two classes instead, this is just a first attempt to see how it behaves.
It is not possible to exclude private field serialiation from ObjectFieldMapTypeHandlerFactory completely since NUI depends on this behaviour extensively for UI widgets.
This pull request removes the ability to serialise private fields in TypeHandlerLibrary, apart from in a few special cases (mainly NUI). It changes the generic ObjectFieldMapHandler to use getter and setter methods where available instead.
How to test

Create a new game
Play around for a bit (destroying blocks, loading chunks, etc.)
Save the game
Restart the game and load that save
The world and surrounding entities should be similar to how you left it
There should also not be any additional exceptions thrown due to these changes

cross-post from Discord for the record:
I tested this branch with JS and ran into the following: https://pastebin.com/raw/rxsj7xWr
18:07:13.961 [parallel-1] ERROR reactor.core.publisher.Operators - Operator called default onErrorDropped
reactor.core.Exceptions$ErrorCallbackNotImplemented: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.lang.Class java.lang.Class.componentType accessible: module java.base does not "opens java.lang" to unnamed module @75eeccf5
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.lang.Class java.lang.Class.componentType accessible: module java.base does not "opens java.lang" to unnamed module @75eeccf5
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
[...]

	at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
	at org.terasology.persistence.typeHandling.coreTypes.factories.ObjectFieldMapTypeHandlerFactory.lambda$getResolvedFields$1(ObjectFieldMapTypeHandlerFactory.java:80)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
	at org.terasology.persistence.typeHandling.coreTypes.factories.ObjectFieldMapTypeHandlerFactory.getResolvedFields(ObjectFieldMapTypeHandlerFactory.java:68)
	at org.terasology.persistence.typeHandling.coreTypes.factories.ObjectFieldMapTypeHandlerFactory.create(ObjectFieldMapTypeHandlerFactory.java:40)
	at org.terasology.persistence.typeHandling.TypeHandlerLibrary.getTypeHandler(TypeHandlerLibrary.java:274)

what I did in JS: I gave myself a chest and some furnaces and sifting tables, placed them, put some stuff in them and then tried to exit to main menu (and it was a fresh TS workspace with JS recursed)
@BenjaminAmos responded:

Yep, I knew about that issue. It's down to https://github.com/MovingBlocks/Terasology/blob/14937d24b851b300b3b8f569cfb86205a29626f2/engine/src/main/java/org/terasology/engine/logic/common/RetainComponentsComponent.java#L20. Technically it's a public field, so we try to serialise it. The actual serialiser then still looks at private fields inside of the public field value. It needs more thought.

a lot better than before. with joshuasworld i get, and i seem recall that i had this before and it was my setup, some module missing isn't it?
19:26:59.664 [main] ERROR o.t.e.world.generation.WorldBuilder - Facet provider for class org.terasology.caves.CaveFacet is missing. It is required by class org.terasology.caves.CaveLocationProvider
19:26:59.664 [main] ERROR o.t.engine.core.modes.StateLoading - Error while loading org.terasology.engine.core.modes.loadProcesses.InitialiseWorldGenerator@28466003
java.lang.IllegalStateException: Missing facet provider
        at org.terasology.engine.world.generation.WorldBuilder.determineProviderChains(WorldBuilder.java:188)
        at org.terasology.engine.world.generation.WorldBuilder.build(WorldBuilder.java:95)
        at org.terasology.engine.world.generation.BaseFacetedWorldGenerator.getWorld(BaseFacetedWorldGenerator.java:83)
        at org.terasology.engine.world.generation.BaseFacetedWorldGenerator.initialize(BaseFacetedWorldGenerator.java:58)
        at org.terasology.engine.core.modes.loadProcesses.InitialiseWorldGenerator.step(InitialiseWorldGenerator.java:34)

@soloturn yes you faced that before: https://github.com/Terasology/JoshariasSurvival/issues/76
and I also noticed it sporadically happening (actually relatively often), but it's also happening with develop, so it seems unrelated to this change.
@BenjaminAmos IIRC you wanted to have a look at adding some test cases, right?
should we hold off merging until then or do you want to add them with a follow-up PR?


fix: Show Data panel on resize

SUMMARY
Show data panel on resize chart view
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
BEFORE

AFTER

TEST PLAN
Select any chart
Resize vertically window
ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API
[x] Fix: https://github.com/apache/incubator-superset/issues/12102

Codecov Report

Merging #12250 (96724cc) into master (f3ab1f4) will decrease coverage by 2.90%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #12250      +/-   ##
==========================================
- Coverage   66.20%   63.29%   -2.91%
==========================================
  Files         996      485     -511
  Lines       49174    29782   -19392
  Branches     4993        0    -4993
==========================================
- Hits        32554    18851   -13703
+ Misses      16476    10931    -5545
+ Partials      144        0     -144

Flag
Coverage Δ

cypress
?

javascript
?

python
63.29% <ø> (-0.93%)
:arrow_down:

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

Impacted Files
Coverage Δ

superset/db_engines/hive.py
0.00% <0.00%> (-85.72%)
:arrow_down:

superset/databases/commands/create.py
32.65% <0.00%> (-59.19%)
:arrow_down:

superset/sql_validators/postgres.py
50.00% <0.00%> (-50.00%)
:arrow_down:

superset/db_engine_specs/hive.py
54.61% <0.00%> (-29.62%)
:arrow_down:

superset/views/database/mixins.py
59.64% <0.00%> (-22.81%)
:arrow_down:

superset/db_engine_specs/presto.py
70.56% <0.00%> (-12.78%)
:arrow_down:

superset/db_engine_specs/mysql.py
79.59% <0.00%> (-12.25%)
:arrow_down:

superset/databases/commands/update.py
85.71% <0.00%> (-8.17%)
:arrow_down:

superset/databases/dao.py
94.11% <0.00%> (-5.89%)
:arrow_down:

superset/views/database/validators.py
78.94% <0.00%> (-5.27%)
:arrow_down:

... and 530 more

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 7cc0de1...96724cc. Read the comment docs.

Codecov Report

Merging #12250 (96724cc) into master (f3ab1f4) will decrease coverage by 2.90%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #12250      +/-   ##
==========================================
- Coverage   66.20%   63.29%   -2.91%
==========================================
  Files         996      485     -511
  Lines       49174    29782   -19392
  Branches     4993        0    -4993
==========================================
- Hits        32554    18851   -13703
+ Misses      16476    10931    -5545
+ Partials      144        0     -144

Flag
Coverage Δ

cypress
?

javascript
?

python
63.29% <ø> (-0.93%)
:arrow_down:

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

Impacted Files
Coverage Δ

superset/db_engines/hive.py
0.00% <0.00%> (-85.72%)
:arrow_down:

superset/databases/commands/create.py
32.65% <0.00%> (-59.19%)
:arrow_down:

superset/sql_validators/postgres.py
50.00% <0.00%> (-50.00%)
:arrow_down:

superset/db_engine_specs/hive.py
54.61% <0.00%> (-29.62%)
:arrow_down:

superset/views/database/mixins.py
59.64% <0.00%> (-22.81%)
:arrow_down:

superset/db_engine_specs/presto.py
70.56% <0.00%> (-12.78%)
:arrow_down:

superset/db_engine_specs/mysql.py
79.59% <0.00%> (-12.25%)
:arrow_down:

superset/databases/commands/update.py
85.71% <0.00%> (-8.17%)
:arrow_down:

superset/databases/dao.py
94.11% <0.00%> (-5.89%)
:arrow_down:

superset/views/database/validators.py
78.94% <0.00%> (-5.27%)
:arrow_down:

... and 530 more

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 7cc0de1...96724cc. Read the comment docs.

@junlincc up to you (and @maloun96) if you want to merge this, since it DOES solve the acute problem (thanks!), but I see that the Data table is not adjusting its height on window resize, which leads to two other problems. We should tackle these problems in a follow-up PR, or (preferably, I think) address it in this one.

Start with a TALL window and open the data pane. Shorten the window. You'll see that the entire chart+table area scrolls due to the lack of table resize. Collapse and re-open the Data area, and you'll see the height is adjusted (no more scrollbar).

https://user-images.githubusercontent.com/812905/103616825-fdf17500-4ee1-11eb-9970-919755364505.mp4

Start with a SHORT window an open the data pane. Lengthen the window. You'll see that the table is unnecessarily cropped off. Collapse and re-open the Data area, and you'll see the height is adjusted (no more cropping).

https://user-images.githubusercontent.com/812905/103616970-38f3a880-4ee2-11eb-86ba-40314038af30.mp4

@junlincc up to you (and @maloun96) if you want to merge this, since it DOES solve the acute problem (thanks!), but I see that the Data table is not adjusting its height on window resize, which leads to two other problems. We should tackle these problems in a follow-up PR, or (preferably, I think) address it in this one.

Start with a TALL window and open the data pane. Shorten the window. You'll see that the entire chart+table area scrolls due to the lack of table resize. Collapse and re-open the Data area, and you'll see the height is adjusted (no more scrollbar).

https://user-images.githubusercontent.com/812905/103616825-fdf17500-4ee1-11eb-9970-919755364505.mp4

Start with a SHORT window an open the data pane. Lengthen the window. You'll see that the table is unnecessarily cropped off. Collapse and re-open the Data area, and you'll see the height is adjusted (no more cropping).

https://user-images.githubusercontent.com/812905/103616970-38f3a880-4ee2-11eb-86ba-40314038af30.mp4

@maloun96 let's address those secondary issues with the Data panel height in a new PR when you're able. This PR makes things better, so I'm merging it!

@maloun96 let's address those secondary issues with the Data panel height in a new PR when you're able. This PR makes things better, so I'm merging it!


Update GalvanizeInc.GalvanizeCirrus to 2.1.6 on 02/04/2024

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.5 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

/AzurePipelines run

Need to change installer architecture.


Cannot run flutter test integration on web, it fails with not supported for integration tests yet

Description
Flutter Integration tests were not allowed for web and causing exception, at the same time Flutter Drive works. are there any plans on bringing in support for Flutter Integration test? since we could see document talks about migration to Flutter Test Integration & not the Flutter Drive.
Flutter Test Integration:

flutter test integration_test/test/sampleIT.dart --flavor qa --dart-define=environment=qa --dart-define=listenForOtp=false --no-sound-null-safety -d web-server --no-headless

Flutter Drive Test:

flutter drive --driver=test_driver/integration_test.dart --target=integration_test/test/sampleIT.dart -d web-server --no-sound-null-safety --no-headless

Hello @iam-kj. Can you provide code sample so that I may verify the issue? Also provide the output to flutter doctor -v

Hi @exaby73 , you can make use of this demo project available at this repo: [Flutter demo project: (https://github.com/cedvdb/flutter_repros/tree/integration_test_failing_imports)
Flutter Integration Test command example:
flutter test integration_test/test/sampleIT.dart --flavor qa --dart-define=environment=qa --dart-define=listenForOtp=false --no-sound-null-safety -d web-server --no-headless
Flutter Doctor:

Triage report
I can reproduce the issue with the steps above. flutter drive seems to support web, but not integration_test. Labeling as a proposal

If Flutter web is considered to be stable, then integration tests should be supported.

@iam-kj @exaby73
I tried to use flutter drive and add breakpoints in inspect(sources) but it's terrible, the dart files there are not really dart files, and putting a breakpoint puts me in an HTML file

is there a possibilities in future this Flutter Test start support for web? Documentation says Flutter Driver is deprecated & move to Integration test. but doesn't have enough documentation for web support.

Yes, we are currently facing issue after issue with flutter drive for web. Is there any update on integration_test supporting web in the near future?

Wow, lot of activity in such a short time about it.
@iam-kj I will try to provide that code and the output of flutter doctor -v (I overlooked that in the issue template). I first need an answer from our security office if I am allowed to upload the full sample code to Gitlab from my company notebook for you to easier reproduce and see what my issues are.

If Flutter web is considered to be stable, then integration tests should be supported.

this?

any update here?

Any update?

any one get the update?

Any updates on this is expected in some reasonable future?

It's been 2 years since this issue was created, still flutter test is not available yet for it's flutter website.
Is that the flutter test wasn't considered by developers? If not how to test the application which was developed by flutter?

@AhmedAlyDev  - it works fine for everything except web. Please read the actual discussion

@jaxnz It works on web! make sure to follow this
you could see this example for inspiration.

@AhmedAlyDev you use flutter drive in your example for web. But this thread is to have "flutter test" web support, which is still not in place as for now.

facing same issue


Putting a class on a markdown heading

I'm building a site with Contentful and I'm trying to put a class on a heading.
My code looks like the below
<vue-markdown class="f3">
  ### {{ hello.fields.heading }}
</vue-markdown>

And renders out to

Hello

What I would really like to render out is

  Hello

Is putting a class on a markdown heading possible? Sorry if this has been covered already.

Is looks like is impossible to achieve, but you can write HTML in markdown string like this:

Hello

I'm very sorry because this is not a good idea.


Maximum recursion depth exceeded in comparison error

I have this definition
@state_trigger("sensor.grid_consumed_energy_hour")
def accumulate_purchased_cost_daily(value,old_value):
    log.info(f"got arguments {value} {sensor.electricity_price}"  )
    temp = float(input_number.accumulate_purchased_cost) \
        + (float(sensor.electricity_price)*(abs(float(value)-float(old_value))))
    state.set('input_number.accumulate_purchased_cost',temp)

This works for a while but after 1-2h I get "maximum recursion depth exceeded in comparison". I can't find the place where I have introduced a recursion call.
I have also tried
 input_number.accumulate_purchased_cost = float(input_number.accumulate_purchased_cost) \
      + (float(sensor.electricity_price)*(abs(float(value)-float(old_value))))

but the result is the same. Any insight what I have done wrong is appreciated.
Pyscript version: 0.32
debug log:
2020-11-09 18:40:00 DEBUG (MainThread) [custom_components.pyscript.state] state.update({'sensor.grid_consumed_energy_hour': '0.90', 'sensor.grid_consumed_energy_hour.old': '0.89'}, {'trigger_type': 'state', 'var_name': 'sensor.grid_consumed_energy_hour', 'value': '0.90', 'old_value': '0.89'})
2020-11-09 18:40:00 DEBUG (MainThread) [custom_components.pyscript.trigger] trigger file.energy.accumulate_purchased_cost_daily got state trigger, running action (kwargs = {'trigger_type': 'state', 'var_name': 'sensor.grid_consumed_energy_hour', 'value': '0.90', 'old_value': '0.89'})
2020-11-09 18:40:00 DEBUG (MainThread) [custom_components.pyscript.trigger] trigger file.energy.accumulate_purchased_cost_daily waiting for state change or event
2020-11-09 18:40:00 DEBUG (MainThread) [custom_components.pyscript.eval] file.energy.accumulate_purchased_cost_daily: calling info("got arguments 0.90 1.059", {})
2020-11-09 18:40:00 INFO (MainThread) [custom_components.pyscript.file.energy.accumulate_purchased_cost_daily] got arguments 0.90 1.059
2020-11-09 18:40:00 DEBUG (MainThread) [custom_components.pyscript.eval] file.energy.accumulate_purchased_cost_daily: calling float("5.332900000000042", {})
2020-11-09 18:40:00 DEBUG (MainThread) [custom_components.pyscript.eval] file.energy.accumulate_purchased_cost_daily: calling float("1.059", {})
2020-11-09 18:40:00 DEBUG (MainThread) [custom_components.pyscript.eval] file.energy.accumulate_purchased_cost_daily: calling float("0.90", {})
2020-11-09 18:40:00 DEBUG (MainThread) [custom_components.pyscript.eval] file.energy.accumulate_purchased_cost_daily: calling float("0.89", {})
2020-11-09 18:40:00 DEBUG (MainThread) [custom_components.pyscript.eval] file.energy.accumulate_purchased_cost_daily: calling abs(0.010000000000000009, {})
2020-11-09 18:40:00 DEBUG (MainThread) [custom_components.pyscript.eval] file.energy.accumulate_purchased_cost_daily: calling set("input_number.accumulate_purchased_cost", 5.343490000000042, {})
2020-11-09 18:40:00 DEBUG (MainThread) [custom_components.pyscript.state] setting input_number.accumulate_purchased_cost = 5.343490000000042, attr = {'initial': None, 'editable': False, 'min': 0.0, 'max': 10000000.0, 'step': 1.0, 'mode': 'slider', 'unit_of_measurement': 'SEK', 'icon': 'mdi:cash'}
2020-11-09 18:40:00 ERROR (MainThread) [custom_components.pyscript.file.energy.accumulate_purchased_cost_daily] Exception in <file.energy.accumulate_purchased_cost_daily> line 14:
state.set('input_number.accumulate_purchased_cost',temp)
^
RecursionError: maximum recursion depth exceeded in comparison

That's not good.  I can't see a problem with the code you posted.  However, there are ways recursion can happen, for example if you set a state variable (eg,  input_number.accumulate_purchased_cost) that in turn causes a trigger that ends up causing that variable to be set again. But I would expect to see a lot of log messages before the recursion exception. It might be helpful to look at all your code; could you post to gist?
Also, in 0.32 there is a bug that the "trigger on any change" form of @state_trigger (like you are using for sensor.grid_consumed_energy_hour) will also trigger on any attribute change too.  That's fixed in master.  You could try the master version.
Or it could be a bug in pyscript. If so, trying to recreate the bug with as simple a test case as possible would be the goal. If you are willing to edit the code for pyscript, the first thing to do would be to get more information about where the internal error occurs.  In custom_components/pyscript/eval.py add import traceback near the top of the file, and at the end of the format_exc function (here for 0.32), replace:
return mesg

with
return mesg + "\n" + traceback.format_exc(10)

I did the change in the core py file and run test with both 0.32 and the new 1.0 and I get the same result. I have put the definitions for the part that are included in this scenario. If we need more deep dive I can see if I can clone my HA instance and create a small test case.
input_number:
  accumulate_purchased_cost:
    min: 0
    max: 10000000
    icon: mdi:cash
    unit_of_measurement: "SEK"

platform: integration
    source: sensor.real_time_consumption
    name: energy_grid_consumed
    unit_prefix: k
    unit_time: h
    round: 2
    method: left

utility_meter:
  # calculate hourly energy consumed from grid
  grid_consumed_energy_hour:
    source: sensor.energy_grid_consumed
    cycle: hourly

2020-11-10 13:13:04 DEBUG (MainThread) [custom_components.pyscript.state] state.update({'sensor.grid_consumed_energy_hour': '0.55', 'sensor.grid_consumed_energy_hour.old': '0.54'}, {'trigger_type': 'state', 'var_name': 'sensor.grid_consumed_energy_hour', 'value': '0.55', 'old_value': '0.54', 'context': Context(user_id=None, parent_id=None, id='77d06ca904b78bf1fb81c1aefe5f99d9')})
2020-11-10 13:13:04 DEBUG (MainThread) [custom_components.pyscript.trigger] trigger file.energy.accumulate_purchased_cost_daily got state trigger, running action (kwargs = {'trigger_type': 'state', 'var_name': 'sensor.grid_consumed_energy_hour', 'value': '0.55', 'old_value': '0.54', 'context': Context(user_id=None, parent_id=None, id='77d06ca904b78bf1fb81c1aefe5f99d9')})
2020-11-10 13:13:04 DEBUG (MainThread) [custom_components.pyscript.trigger] trigger file.energy.accumulate_purchased_cost_daily waiting for state change or event
2020-11-10 13:13:04 DEBUG (MainThread) [custom_components.pyscript.eval] file.energy.accumulate_purchased_cost_daily: calling info("got arguments 0.55 0.967", {})
2020-11-10 13:13:04 INFO (MainThread) [custom_components.pyscript.file.energy.accumulate_purchased_cost_daily] got arguments 0.55 0.967
2020-11-10 13:13:04 DEBUG (MainThread) [custom_components.pyscript.eval] file.energy.accumulate_purchased_cost_daily: calling float("31.681950000000104", {})
2020-11-10 13:13:04 DEBUG (MainThread) [custom_components.pyscript.eval] file.energy.accumulate_purchased_cost_daily: calling float("0.967", {})
2020-11-10 13:13:04 DEBUG (MainThread) [custom_components.pyscript.eval] file.energy.accumulate_purchased_cost_daily: calling float("0.55", {})
2020-11-10 13:13:04 DEBUG (MainThread) [custom_components.pyscript.eval] file.energy.accumulate_purchased_cost_daily: calling float("0.54", {})
2020-11-10 13:13:04 DEBUG (MainThread) [custom_components.pyscript.eval] file.energy.accumulate_purchased_cost_daily: calling abs(0.010000000000000009, {})
2020-11-10 13:13:04 DEBUG (MainThread) [custom_components.pyscript.eval] file.energy.accumulate_purchased_cost_daily: calling set("input_number.accumulate_purchased_cost", 31.691620000000103, {})
2020-11-10 13:13:04 DEBUG (MainThread) [custom_components.pyscript.state] setting input_number.accumulate_purchased_cost = 31.691620000000103, attr = {'initial': None, 'editable': False, 'min': 0.0, 'max': 10000000.0, 'step': 1.0, 'mode': 'slider', 'unit_of_measurement': 'SEK', 'icon': 'mdi:cash'}
2020-11-10 13:13:04 ERROR (MainThread) [custom_components.pyscript.file.energy.accumulate_purchased_cost_daily] Exception in <file.energy.accumulate_purchased_cost_daily> line 14:
state.set('input_number.accumulate_purchased_cost',temp)
^
RecursionError: maximum recursion depth exceeded in comparison
Traceback (most recent call last):
File "/config/custom_components/pyscript/eval.py", line 802, in aeval
val = await getattr(self, name, self.ast_not_implemented)(arg)
File "/config/custom_components/pyscript/eval.py", line 1691, in ast_call
return await self.call_func(func, func_name, *args, **kwargs)
File "/config/custom_components/pyscript/eval.py", line 1711, in call_func
return await func(*args, **kwargs)
File "/config/custom_components/pyscript/state.py", line 190, in set
cls.hass.states.async_set(var_name, value, new_attributes, context=context)
File "/usr/src/homeassistant/homeassistant/core.py", line 1174, in async_set
same_attr = old_state.attributes == MappingProxyType(attributes)
RecursionError: maximum recursion depth exceeded in comparison

This won't likely fix the issue, but the debugging data it provides might help resolve this.
Instead of using state.set on the input_number, can you use the service call designed for updating an input_number?
In PyScript 1.0.0, do this:
# state.set('input_number.accumulate_purchased_cost',temp)
input_number.accumulate_purchased_cost.set_value(value=temp)

Thanks for the trace information.  The recursion error appears to be inside MappingProxyType in HASS core.py when it is called with the attributes from state.set().  I'm not familiar with MappingProxyType but I just read a bit about it.
This issue reports the same error from python_scripts.  While it wasn't fixed or resolved, the workaround was to copy the attributes and use that copy when calling state.set.  However, from the log message the attributes look benign (I was thinking there could be some strange circular reference in the attributes):
setting input_number.accumulate_purchased_cost = 31.691620000000103, attr = {'initial': None, 'editable': False, 'min': 0.0, 'max': 10000000.0, 'step': 1.0, 'mode': 'slider', 'unit_of_measurement': 'SEK', 'icon': 'mdi:cash'}

As @dlashua points out, the better way to set an input_number value is via a service call, rather than setting the entity_id directly. In 0.32 it would just be this service call:
input_number.set_value(entity_id="input_number.accumulate_purchased_cost", value=temp)

This works in 1.0.0 too, and as @dlashua notes, in 1.0.0 you can also use the new short-form service-as-method call instead.  The input_number service call will also do error checking on the value against min and max.
Setting aside the service call workaround, I don't yet see what attributes can cause MappingProxyType to get a recursion error.  Based on the issue referenced above, it is possible this fix to state.py will solve the problem, although I don't yet know why.  For 1.0.0, it's line 174; replace this:
new_attributes = state_value.attributes

with this:
new_attributes = state_value.attributes.copy()

For 0.32, it's at line 108.

Just a short feedback. input_number.accumulate_purchased_cost.set_value(value=temp) works ok. It has now running for more then 16h without any issue. I will do the change above and rerun the old way and see what will happen.

I have now done the change in state.py and rerun the test and below statements now works ok.
input_number.accumulate_purchased_cost = temp
state.set('input_number.accumulate_purchased_cost',temp)

Either should be fine, but for input_number it's better to use the service call instead.
Thanks for checking that the attribute copy avoids the issue.  I don't know what the root cause is.  It's some sort of interaction between HASS and Python related to MappingProxyType acting on the attributes, and from the issue above, people have experienced it with python_scripts too.  I looked at the Python source code (I'm not familiar with Python internals), and tried some tests, but wasn't able to replicate the problem or even see how it could happen.
I'll commit a fix to add the attribute copy.


abstract running subsystem

define an interface that abstracts the running of workflows. the aim is to allow swapping the interfaces when needed.

in particular, all temporary artifacts should be placed in a well defined place, e.g., a folder whose name is the fractal job id


Convert Point to Kotlin

PTAL @shobhitagarwal1612

Codecov Report

Merging #1211 (94ac33c) into master (f62ae22) will increase coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #1211      +/-   ##
============================================
+ Coverage     28.85%   28.86%   +0.01%
  Complexity      771      771
============================================
  Files           291      291
  Lines          7483     7473      -10
  Branches        341      342       +1
============================================
- Hits           2159     2157       -2
+ Misses         5221     5213       -8
  Partials        103      103

Impacted Files
Coverage Δ

...com/google/android/ground/ui/map/CameraPosition.kt
0.00% <0.00%> (ø)

...nd/ui/home/mapcontainer/MapContainerViewModel.java
0.00% <0.00%> (ø)

...android/ground/model/locationofinterest/Point.java

...del/locationofinterest/LocationOfInterestType.java

...e/android/ground/model/locationofinterest/Point.kt
77.77% <0.00%> (ø)

...model/locationofinterest/LocationOfInterestType.kt
100.00% <0.00%> (ø)

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


consul: 1.11.2 -> 1.11.3

Motivation for this change
New release of consul: https://github.com/hashicorp/consul/releases/tag/v1.11.3
Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 159406 run on x86_64-darwin 1

1 package built:

consul


iPXE filename support in network booting options

iPXE has a lot of extra options which simplify provisioning servers in a datacenter, and when you can't (or don't want to) flash your network card, you have to chainload ipxe from pxe.
To avoid infinite loop (pxe loads ipxe that again requests boot parameters and loads itself), you either need to compile ipxe with an embedded script which contains a static chainload (http://ipxe.org/howto/chainloading), or be able to differentiate ipxe requests in dhcp parameters from regular pxe ones.
--- a/usr/local/etc/inc/services.inc 2018-03-22 19:30:37.637717000 +0100
+++ b/usr/local/etc/inc/services.inc 2018-03-22 19:35:45.577577000 +0100
@@ -811,7 +811,9 @@
                 $dhcpdconf .= "  next-server {$dhcpifconf['nextserver']};\n";
             }
             if (!empty($dhcpifconf['filename']) && !empty($dhcpifconf['filename32']) && !empty($dhcpifconf['filename64'])) {
-                $dhcpdconf .= "  if option arch = 00:06 {\n";
+                $dhcpdconf .= "  if exists user-class and option user-class = \"iPXE\" {\n";
+                $dhcpdconf .= "    filename \"http://mb.local.lan/boot.ipxe\";\n";
+                $dhcpdconf .= "  } else if option arch = 00:06 {\n";
                 $dhcpdconf .= "    filename \"{$dhcpifconf['filename32']}\";\n";
                 $dhcpdconf .= "  } else if option arch = 00:07 {\n";
                 $dhcpdconf .= "    filename \"{$dhcpifconf['filename64']}\";\n";

It would be nice to have an option field $dhcpifconf['filenameipxe'] to deal with this user case.

Not using a ticket template.


Add announcement for aruba 0.14.0

This adds an announcement for aruba 0.14.0.

@mattwynne Is it possible, that only @dg-ratiodata has write access to the website repository?


Move content-type, colon prefixed metadata to new system

Builds on #28198

@nicolasnoble

/easycla


Googleyolo in firebase-auth?!

Can one-tap sign-up and auto sign-in also function within firebase-auth?
https://developers.google.com/identity/one-tap/web/

Please separate auth lib...

Try the FirebaseUI library (https://github.com/firebase/firebaseui-web/#one-tap-sign-up)

@tjmonsi PTAL.


Fixes #1482 Complete runnel usage for all messages between client and servers

Responses using runnel
Passive sync using runnel
Clean up obsolete methods on messages
Move passive replication message handling to be purely on the server side

@albinsuresh Adressed the sync -> replication mistake

Raised #1645 for the question about serialized exceptions.

LGTM


KeyError: ((1, 1, 1), '<f8')

I'm trying to run the example provided here but using the methods presented here.  However, at this line:
img = utils.draw_text(img, 'Filter {}'.format('output_idx'))
I get errors:

KeyError: ((1, 1, 1), '<f8')

I'm trying to find a solution for this issue.
Thank you.

What channel_format are you using?


Code Action Idea: Reorder If/Else Branches

if (cond1) {
    body1
} el|se if (cond2) {
    body2
} else {
    body3
}

(| cursor)
-- Move Item Up ->
|if (cond2) {
    body2
} else if (cond1) {
    body1
} else {
    body3
}

Could use the same shortcut for reordering parameters/members etc.

Great idea! I'm thinking about introducing a "move" class of refactorings for reordering and moving parts of the code without changing it. This could fall into that category.

I've introduced a "swap if-else-if branches" refactoring in P42 v1.131.0:

Thanks again for hte refactoring idea!

Nice work!
What does swap branches do exactly though?
I think a reactoring "move branch up" and "move branch down" would be more intuitive...

in between elements: swap

This I don't understand. Why not move down/up here too?

My current interpretation is that when you are on the "else", you are not on an if element, so it is not clear what you would move "down". But this might be too technical of a notion (based on the AST). I'll think a bit more about this - I agree that having an intuitive and unified system is desirable.

Here is my current thinking:

I wouldn't distinguish between el|se if and else i|f.
I wonder what swap would do on the last else in start3?
Personally, I find the description "Move branch 3" up easier than "Swap branch 3 (with branch 2)".

I wonder what swap would do on the last else in start3? Personally, I find the description "Move branch 3" up easier than "Swap branch 3 (with branch 2 or branch 1?)".

This is the current implementation:
Start 4:
if (cond1) {
    body1
} else if (cond2) {
    body2
} el|se if (cond3) {
    body3
}

Start 4 --- Swap -->
if (cond1) {
    body1
} else if (cond3) {
    body3
} else if (cond2) {
    body2
}

One challenge is the action label - to distinguish the branches in the action label, I could include e.g. the condition, but this will lead to issues with long conditions.

I think swap is also a more mentally complex operation: "Swap" exchanges the upper element with the lower element - so mentally, you have to think about both elements.
However, "move up" focuses only on the current element.
Effectively, they would do the same though.

Yeah, I agree that's a good point. My main concern is the ambiguity of what up/down means for the space in between two elements. I'll think about it - for e.g. statements up/down is the best option for sure, and for if/else I could add it as well with different activation zones. I'll re-open this issue to keep track of it.

My main concern is the ambiguity of what up/down means for the space in between two elements. I'll think about it

Ask some users what they would expect to happen with move up/down when the cursor is on the else branch.

I changed the refactoring to move up / move down:

Available in v1.132.0


Unable to build project via Travis CI

Current configuration uses "dotnet": "2.0.0-preview1-005977"
So Travis CI cannot build project.
E: Unable to locate package dotnet-sdk-2.0.0-preview1-005977
The command "sudo apt-get install -qq dotnet-sdk-2.0.0-preview1-005977"
failed and exited with 100 during

Current #51 issue was successfully fixed by PR #52


Cannot read property 'get' of undefined – file.pragmas.get("jsximportsource") in getJSXImplicitImportBase

Bug Report

🔎 Search Terms

Typescript Cannot read property 'get' of undefined
TypeError: Cannot read property 'get' of undefined
Typescript getJSXImplicitImportBase fails in CI

🕗 Version & Regression Information

4.2.3 & nightly

This is the behavior in every version I tried, and I reviewed the FAQ for entries about everything but it hasn't been covered.

⏯ Playground Link

This is happening on the CI only. And sometimes when I change the jsx property of my tsconfig.json but it's very intermittent.
💻 Code
The codebase is react-spring and you can see the CI failing in this PR https://github.com/pmndrs/react-spring/pull/1361.
Link to specific message here
This is the test I'm currently running locally using https://github.com/nektos/act to debug locally the action as it only fails consistently in the CI. Running tests locally do not throw an error.
describe('animated component', () => {
  it('should pass ', () => {
    expect(true).toBeTruthy()
  })
})

My TSConfig for the web package is:
{
  "include": ["./src"],
  "compilerOptions": {
    "baseUrl": ".",
    "forceConsistentCasingInFileNames": true,
    "jsx": "react",
    "lib": ["dom", "es2017"],
    "moduleResolution": "node",
    "noEmitOnError": true,
    "noFallthroughCasesInSwitch": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "preserveSymlinks": true,
    "sourceMap": true,
    "strict": true,
    "esModuleInterop": true,
    "target": "esnext"
  }
}

🙁 Actual behavior

The test only fail when using a CI either in github or using https://github.com/nektos/act
As seen in the error message from the CI:
TypeError: Cannot read property 'get' of undefined

      at Object.getJSXImplicitImportBase (../../node_modules/typescript/lib/typescript.js:19174:95)
      at transformSourceFile (../../node_modules/typescript/lib/typescript.js:88621:51)
      at transformSourceFileOrBundle (../../node_modules/typescript/lib/typescript.js:82537:57)
      at transformation (../../node_modules/typescript/lib/typescript.js:100187:24)
      at transformRoot (../../node_modules/typescript/lib/typescript.js:100214:82)
      at Object.transformNodes (../../node_modules/typescript/lib/typescript.js:100198:78)
      at emitJsFileOrBundle (../../node_modules/typescript/lib/typescript.js:100849:32)
      at emitSourceFileOrBundle (../../node_modules/typescript/lib/typescript.js:100796:13)
      at forEachEmittedFile (../../node_modules/typescript/lib/typescript.js:100517:34)
      at Object.emitFiles (../../node_modules/typescript/lib/typescript.js:100776:9)

Looking closer at the error message and looking at the src it looks like this function is throwing:
function getJSXImplicitImportBase(compilerOptions, file) {
        var jsxImportSourcePragmas = file === null || file === void 0 ? void 0 : file.pragmas.get("jsximportsource");
        var jsxImportSourcePragma = ts.isArray(jsxImportSourcePragmas) ? jsxImportSourcePragmas[0] : jsxImportSourcePragmas;
        return compilerOptions.jsx === 4 /* ReactJSX */ ||
            compilerOptions.jsx === 5 /* ReactJSXDev */ ||
            compilerOptions.jsxImportSource ||
            jsxImportSourcePragma ?
            (jsxImportSourcePragma === null || jsxImportSourcePragma === void 0 ? void 0 : jsxImportSourcePragma.arguments.factory) || compilerOptions.jsxImportSource || "react" :
            undefined;
    }

I presume it's specifically having an issue with file.pragmas.
It's really difficult to debug this in the CI and I'm really hoping its something really simple that I'm overlooking. I asked for help in the Discord but I think this is a bit too wild. Please let me know if there's any more information I can give to help.
🙂 Expected behavior
It should pass in the CI.

So after some console logging - console.log('TS', file.pragmas) - it's definite it fails because of file.pragmas being undefined, but I don't understand why this would be the case... here's a snippet of the jest log:
PASS  packages/core/src/helpers.test.ts
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS Map(0) {}
TS undefined
 FAIL  targets/web/src/web.test.ts
  ● Test suite failed to run

    TypeError: Cannot read property 'get' of undefined

      at Object.getJSXImplicitImportBase (../../node_modules/typescript/lib/typescript.js:19175:95)
      at transformSourceFile (../../node_modules/typescript/lib/typescript.js:88622:51)
      at transformSourceFileOrBundle (../../node_modules/typescript/lib/typescript.js:82538:57)
      at transformation (../../node_modules/typescript/lib/typescript.js:100188:24)
      at transformRoot (../../node_modules/typescript/lib/typescript.js:100215:82)
      at Object.transformNodes (../../node_modules/typescript/lib/typescript.js:100199:78)
      at emitJsFileOrBundle (../../node_modules/typescript/lib/typescript.js:100850:32)
      at emitSourceFileOrBundle (../../node_modules/typescript/lib/typescript.js:100797:13)
      at forEachEmittedFile (../../node_modules/typescript/lib/typescript.js:100518:34)
      at Object.emitFiles (../../node_modules/typescript/lib/typescript.js:100777:9)

Context: react-spring is a monorepo, the test setup file was in a package called core and was importing the files it needed from the root of that package (presumably proxied by the main key of the package.json) like so:
File structure
packages
-core
--package.json
--test
---setup
--src
---index

Test setup:
import { Globals, Controller, FrameValue, SpringValue } from '..' // so this was looking at pkg.json not src/index directly

I'm gonna leave this open incase this is still a bug in TS compiler - as in it should be able to handle this kind of import. If it's not a bug, then please just close it 👍🏼

I've been trying to repro this locally, even with act, but can't manage to repro this crash locally at all. Can you manage to get a reduced repro?

Sure, I'll have a look at making a branch on react-spring and revert changes that fixed it. I have a strong suspicion the architecture of the repo has an impact on this bug, I'll let you know where I get with it.

I've reverted a branch on react-spring to before i managed to find my fix, but it isn't failing anymore so lets just put this to rest?

I'm having the exact same error, for me it happens when compiling this file from baseui.
Stack trace:
TypeError: Cannot read property 'get' of undefined
    at Object.getJSXImplicitImportBase (x/node_modules/typescript/lib/typescript.js:19392:95)
    at transformSourceFile (x/node_modules/typescript/lib/typescript.js:91326:51)
    at transformSourceFileOrBundle (x/node_modules/typescript/lib/typescript.js:84912:57)
    at transformation (x/node_modules/typescript/lib/typescript.js:102921:27)
    at transformRoot (x/node_modules/typescript/lib/typescript.js:102952:82)
    at Object.transformNodes (x/node_modules/typescript/lib/typescript.js:102936:78)
    at emitJsFileOrBundle (x/node_modules/typescript/lib/typescript.js:103621:32)
    at emitSourceFileOrBundle (x/node_modules/typescript/lib/typescript.js:103568:13)
    at forEachEmittedFile (x/node_modules/typescript/lib/typescript.js:103289:34)
    at Object.emitFiles (x/node_modules/typescript/lib/typescript.js:103548:9)
✖ ｢wdm｣: caused by plugins in Compilation.hooks.processAssets

I tried to backtrack to where file.pragmas becomes undefined, it happened after the second call to transformSourceFileOrBundle in transformTypeScript, more specifically, in the cloneSourceFileWithChanges function. The pragmas is neither an own property of node nor source.
Below is the console.log output of the pragmas value, before and after the transform function call here
---- Map(0) {} -> Map(0) {} [Function: transformSourceFileOrBundle] [Function: transformTypeScript]
---- Map(0) {} -> Map(0) {} [Function: transformSourceFileOrBundle] [Function: transformClassFields]
---- Map(0) {} -> Map(0) {} [Function: transformSourceFileOrBundle] [Function: transformJsx]
---- Map(0) {} -> Map(0) {} [Function: transformSourceFileOrBundle] [Function: transformESNext]
---- Map(0) {} -> Map(0) {} [Function: transformSourceFileOrBundle] [Function: transformES2021]
---- Map(0) {} -> Map(0) {} [Function: transformSourceFileOrBundle] [Function: transformES2020]
---- Map(0) {} -> Map(0) {} [Function: transformSourceFileOrBundle] [Function: transformES2019]
---- Map(0) {} -> Map(0) {} [Function: transformSourceFileOrBundle] [Function: transformES2018]
---- Map(0) {} -> Map(0) {} [Function: transformSourceFileOrBundle] [Function: transformES2017]
---- Map(0) {} -> Map(0) {} [Function: transformSourceFileOrBundle] [Function: transformES2016]
---- Map(0) {} -> Map(0) {} [Function: transformSourceFileOrBundle] [Function: transformECMAScriptModule]
---- Map(0) {} -> undefined [Function: transformSourceFileOrBundle] [Function: transformTypeScript]
---- undefined -> undefined [Function: transformSourceFileOrBundle] [Function: transformClassFields]

My tsconfig
{
  "compilerOptions": {
    "target": "ES6",
    "module": "ESNext",
    "moduleResolution": "node",
    "lib": [
      "DOM",
      "DOM.Iterable",
      "ESNext"
    ],
    "allowJs": true,
    "allowSyntheticDefaultImports": true,
    "forceConsistentCasingInFileNames": true,
    "strict": false,
    "skipLibCheck": true,
    "jsx": "react",
    "outDir": "./dist/"
  },
  "exclude": [
    "node_modules"
  ],
  "include": [
    "types.d.ts",
    "src/**/*.ts",
    "src/**/*.tsx"
  ]
}

Dependencies
  "dependencies": {
    "baseui": "^9.116.2",
    "styletron-engine-atomic": "^1.4.8",
    "styletron-react": "^6.0.1"
  },
  "peerDependencies": {
    "react": "^17.0.2",
    "react-dom": "^17.0.2"
  },
  "devDependencies": {
    "@types/react": "^17.0.11",
    "@types/react-dom": "^17.0.8",
    "typescript": "^4.3.4"
  },

This bug is tricky, I have an App package and a components package, both depend on baseui, App also depends on components, when I don't import stuff from components, baseui in App works fine, but when App imports from components, this error appears.
I tried to create a minimal repro but failed, I have no idea what the root cause is so not sure what to keep in the repro.

opened a new issue with a reproduction: https://github.com/microsoft/TypeScript/issues/48039


Fails on schema inside mod

Please make it work with this:
pub mod foo {
    table! {
        ...
    }
}

Currently, it panics:

thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 1'

can you give me a full example?
test for mod is passed using test_data/schema_localmodded.rs

i made a fix on 0.3.4. can you try it again?

Thanks for being so helpful :)
I just tried with 0.3.4 and I got the same panic.
But looking at test_data/schema_localmodded.rs I think I know why:
We have this format:
pub mod tenant {
    table! {
        use crate::diesel_types::org::*;

        asd (id) {
            id -> Int4,
            ...
        }
    }

    table! {
            ...
    }
}

but schema_localmodded.rs has the format tenant.asd (id) {.
Why do we have this format?
We are post-processing the output of diesel print-schema with | sed -e 's/my_schema\.//g' -e 's/my_schema/tenant/g' because we have a multi-tenant system where each tenant has a different schema in postgres at runtime, but they all use the same structural "schema", so we don't want to have a statically fixed tenant.asd table, because asd's model structs get used with different schemas at runtime, depending on which tenant we're dealing (we set the search_path accordingly).
I think the easiest way to make our use case work is if diesel_cli_ext worked when it gets an indented normal schema, because then, we could pre-process our schema file with sed (removing pub mod tenant { and } at the end, before piping it into diesel_cli_ext and it would work.
It would pass input in this format:
    table! {
        use crate::diesel_types::org::*;

        asd (id) {
            id -> Int4,
            ...
        }
    }

    table! {
            ...
    }

Currently it doesn't work for two reasons:

diesel_cli_ext doesn't accept stdin. It could be supported with -s -
When the schema is indented, it currently generates models like this:

#[derive(Debug, Queryable, QueryableByName, Insertable, PartialEq, Eq, Serialize, Deserialize, TypeName, Identifiable)]
#[primary_key(, , , access_controls, id)]
#[table_name = ""]
pub struct  {
    pub : /* TODO: unknown type  */,
    pub : /* TODO: unknown type  */,
    pub : /* TODO: unknown type  */,
    pub : /* TODO: unknown type  */,
    pub : /* TODO: unknown type  */,
    pub : /* TODO: unknown type  */,
}

Ideally, diesel_cli_ext would be completely indentation-invariant, just like Rust code is..
What do you think? :)

I have updated this to 0.3.5 so that
pub mod tenant {
    table! {
        use crate::diesel_types::org::*;

        asd (id) {
            id -> Int4,
            some_field -> Text,
        }
    }

    table! {
        my_other_schema.my_table (my_pk) {
            my_pk -> Int4,
            some_field -> Text,
        }
    }
}

will output
pub mod tenant {

    #[derive(Queryable, Debug, Identifiable)]
    pub struct Asd {
        pub id: i32,
        pub some_field: String,
    }

    #[derive(Queryable, Debug, Identifiable)]
    #[primary_key(my_pk)]
    pub struct myTable {
        pub my_pk: i32,
        pub some_field: String,
    }

}

Does it make sense to you?

We need this but without the surrounding pub mod tenant { } because it will already be piped into a file named tenant.rs.
But if it outputs this, we can work around it by stripping the first and last line by piping it through unix tools before piping it into the file..

but without surrounding with pub mod, schema like schema_localmodded.rs in test_data may have naming collision.