wxGTK31-gtk2: 3.1.5 -> 3.2.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/wxWidgets/wxWidgets/releases.
meta.description for wxGTK31-gtk2 is: "A Cross-Platform C++ GUI Library"
meta.homepage for wxGTK31-gtk2 is: "https://www.wxwidgets.org/"
meta.changelog for wxGTK31-gtk2 is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 3.2.0 with grep in /nix/store/djiib0ac3smzq7y1cq1c5dcr6hqvd540-wxwidgets-3.2.0
found 3.2.0 in filename of file in /nix/store/djiib0ac3smzq7y1cq1c5dcr6hqvd540-wxwidgets-3.2.0

Rebuild report (if merged into master) (click to expand)

33 total rebuild path(s)

33 package rebuild(s)

First fifty rebuilds by attrpath
aegisub
audacity
audacity-gtk2
audacity-gtk3
codeblocks
codeblocksFull
cubicsdr
diff-pdf
freedv
freqtweak
gnudatalanguage
grandorgue
grass
kicad-small
kicad-unstable-small
opencpn
pcem
python310Packages.kicad
python39Packages.kicad
qgis
qgis-ltr
rehex
saga
super-slicer
super-slicer-latest
tenacity
treesheets
wxGTK31
wxGTK31-gtk2
wxGTK31-gtk3
wxformbuilder
wxhexeditor
zeroadPackages.zeroad-unwrapped

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/djiib0ac3smzq7y1cq1c5dcr6hqvd540-wxwidgets-3.2.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A wxGTK31-gtk2 https://github.com/r-ryantm/nixpkgs/archive/c0ce2f3070210e38d1883f250584eb4f70462d86.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/djiib0ac3smzq7y1cq1c5dcr6hqvd540-wxwidgets-3.2.0
ls -la /nix/store/djiib0ac3smzq7y1cq1c5dcr6hqvd540-wxwidgets-3.2.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings
cc @tfmoraes for testing.

I reverted this. I think merging this was a mistake, but it seems like the attrpath has a version pin in it. Please correct me if I'm wrong @tfmoraes

What do you mean by attrpath? Because of wxGTK31 but should be wxGTK32?


Refactor/code refresh 2022

Codecov Report

Merging #44 (e1e7084) into master (8812910) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #44   +/-   ##
=======================================
  Coverage   59.36%   59.36%
=======================================
  Files           6        6
  Lines        1105     1105
=======================================
  Hits          656      656
  Misses        321      321
  Partials      128      128

Flag
Coverage Δ

unittests
59.36% <100.00%> (ø)

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

Impacted Files
Coverage Δ

kdf/kdf.go
100.00% <ø> (ø)

model/headers/headers.go
48.25% <100.00%> (ø)

streaming/out.go
70.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


atbash-cipher:  verify ordering of actual/expected

In the Jasmine testing framework, it is convention to:
expect(actual).fn(expected)

But some test suites have the following:
expect(expected).fn(actual)

This causes the error messages to be confusing.
Please verify the atbash-cipher exercise to make sure that the expectations are ordered correctly. If they are, then this can be closed.
This issue will help to close #111

I've got this one

This one is OK and can be closed

Great job @ireddick!


Transcription Not Working in C#

Transcription logging in PS7 is not working when hosted in C#/ASP.Net Core app.  I turned on central transcripting via the registry.  Interactive PS sessions work fine, but the hosted app running PS code does not generate any transcription logs.
Steps to reproduce
Turn on transcripting in registry or group policy.
Set up a .Net core 3.1 app and add PS7 SDK.
Expected behavior
I'd expect that any PS code running on the system, even in C# hosted app, would get transcription logged.
Actual behavior
No logs being created for PS code running in .NetCore app
Environment data
PS 7.03
.NetCore 3.1
Blazor server app
Hosted in IIS on Windows 2019 Core

@pcarnella Can you give output of $host inside your runspace ? transcription need the Console Host.

Hi, I just figured out it was a config issue.  I was putting the transcription reg keys under HKCU for the IIS app pool service account, but didn't have the app pool set to "load user profile".  Once I set load profile to true the logging started working as expected.


Display incomplete warnings from aXe in component guide

In some cases, aXe is unable to definitely say whether there has been an accessibility error/violation. In these cases, it reports the potential error as 'incomplete', meaning it requires a manual check (see more info here). We want to show these underneath the relevant component so that developers are aware of what might require a manual check.

Should we include the reason why it needs a manual check?

This is awesome, thanks so much @vanitabarrett 👍  🙌


Initial checkin of telemetry ops guide pages.

This copies Doug's updated metric doc into markdown.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: geeknoid
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [geeknoid]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

PTAL.

@geeknoid this looks good once the minor grammar error is fixed.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: geeknoid, sdake
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

content/OWNERS [geeknoid,sdake]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Fix minor issues in Helm chart

When deploying the Helm chart to our cluster we found a few minor things that could be improved in the Helm chart to make it more consistent with most upstream Helm charts.
If I should update the README accordingly to match with the chart version please inform me.

/LGTM

Hi @tongpu,
I've merged your changes in #2, as I wanted to keep the namespace creation optional for the rendered manifest (helm-less installations)
Thank you for your contribution !


how to use the timeout method?

How do we use Unirest timeout method, I have this code but its not working

 public function __construct($api_key, $additional_headers = array()) {
        Unirest::timeout(200);
        AbcClass::$api_key = $api_key;
        Unirest::defaultHeader("Content-Type", "application/x-www-form-urlencoded");
        Unirest::defaultHeader("key", AbcClass::$api_key);
        foreach ($additional_headers as $key => $value) {
        Unirest::defaultHeader($key, $value);

        }
    }

I also try
    function getCost($origin, $destination = array(),$weight, $courier = NULL) {
    Unirest::timeout(200);
    $params = array(
        'origin' => $origin,
        'destination' => $destination,
        'weight' => $weight
    );
    if (!is_null($courier)) {
        $params['courier'] = $courier;
    }

    return Unirest::post(AbcClass::$base_url . "cost", array(), http_build_query($params));
}

}

I suggest you review the README docs again, your code for making a POST request is wrong.

Hi, Thank you again @ahmadnassri,  i've try to put the timeout method in the constructor and it doesn't work and then actually I have no idea where to put the timeout method again,
maybe this code is not good practice but check this out (i'm using laravel)
    // get all shipping cost from one city to every city
    Route::get('/{origin}/{courier}', function ($origin,$courier) {

    $client = new AbcClass("apikey");

    $cities = $client->getCity();
    $body = $cities->body;
    //get allcity array
    $allCity = $body->abcapi->results;
    //make new post request for each city
    foreach ($allCity as $city) {
$costs = $client->getCost($origin, $city->city_id, 1000, $courier);
    $value = $costs->body;
$cost = $value->abcapi->results[0]->costs[0]->cost[0]->value;

echo $city->city_id . "," . $city->city_name . "," . $cost . "<br/>";
 }

the code is working but it stops in the middle because of maximum exceed 60 sec.
Do you have suggestion?
Sorry for asking this in here.

https://github.com/Mashape/unirest-php#form-requests-applicationx-www-form-urlencoded

sounds like the time out on the PHP level is still triggering, not unirest.


Only one track playing if random generated

I'm Trying to have two tracks, set on note in the layout page, with random generated notes on one, and euclidean gates on the other.
When I press Play, just one is actually playing. The other stay still

Update solved, Sorry


Read GeoParquet files using parquet reader

Let GeoParquet files with the file extension *.geoparquet or *.gpq be readable by the default parquet reader.
Those two file extensions are the ones most commonly used for GeoParquet files, and is included in the gpq validator tool at https://github.com/planetlabs/gpq/blob/e5576b4ee7306b4d2259d56c879465a9364dab90/cmd/gpq/command/convert.go#L73-L75
Addresses https://github.com/huggingface/datasets/issues/6438

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Cool ! Do you mind writing a test using a geoparquet file in tests/io/test_parquet.py ?
I'm not too familiar with geoparquet, does it use e.g. pyarrow extension types ? or schema metadata ?

Geometry columns MUST be stored using the BYTE_ARRAY parquet type. They MUST be encoded as WKB.

https://github.com/opengeospatial/geoparquet/blob/main/format-specs/geoparquet.md#geometry-columns
It has metadata:

File metadata indicating things like the version of this specification used
Column metadata with additional metadata for each geometry column

https://github.com/opengeospatial/geoparquet/blob/main/format-specs/geoparquet.md#metadata

The specification is very short by the way:
https://github.com/opengeospatial/geoparquet/blob/main/format-specs/geoparquet.md

https://github.com/opengeospatial/geoparquet/blob/main/format-specs/compatible-parquet.md is also worth reading for this PR

Cool ! Do you mind writing a test using a geoparquet file in tests/io/test_parquet.py ?

Yep, let me do that do that later today!

I'm not too familiar with geoparquet, does it use e.g. pyarrow extension types ? or schema metadata ?

GeoParquet is a Parquet file with a geometry column that is encoded in a Binary format (technically WKB as @severo mentioned above). It is not a pyarrow extension type (though that would be cool). Regular parquet readers such as pyarrow would thus see the column as a binary column, while libraries such geopandas which implement a GeoParquet reader would look at the schema metadata.
E.g. taking this file as an example, this is how the 'geo' schema looks like:
import pyarrow.parquet as pq

schema = pq.read_schema(where="32VLM_v01.gpq")
print(schema.metadata[b"geo"])

{
    "primary_column": "geometry",
    "columns": {
        "geometry": {
            "encoding": "WKB",
            "crs": {
                "$schema": "https://proj.org/schemas/v0.7/projjson.schema.json",
                "type": "GeographicCRS",
                "name": "WGS 84 (CRS84)",
                "datum_ensemble": {
                    "name": "World Geodetic System 1984 ensemble",
                    "members": [
                        {"name": "World Geodetic System 1984 (Transit)"},
                        {"name": "World Geodetic System 1984 (G730)"},
                        {"name": "World Geodetic System 1984 (G873)"},
                        {"name": "World Geodetic System 1984 (G1150)"},
                        {"name": "World Geodetic System 1984 (G1674)"},
                        {"name": "World Geodetic System 1984 (G1762)"},
                        {"name": "World Geodetic System 1984 (G2139)"},
                    ],
                    "ellipsoid": {
                        "name": "WGS 84",
                        "semi_major_axis": 6378137,
                        "inverse_flattening":<PHONE_NUMBER>63,
                    },
                    "accuracy": "2.0",
                    "id": {"authority": "EPSG", "code": 6326},
                },
                "coordinate_system": {
                    "subtype": "ellipsoidal",
                    "axis": [
                        {
                            "name": "Geodetic longitude",
                            "abbreviation": "Lon",
                            "direction": "east",
                            "unit": "degree",
                        },
                        {
                            "name": "Geodetic latitude",
                            "abbreviation": "Lat",
                            "direction": "north",
                            "unit": "degree",
                        },
                    ],
                },
                "scope": "Not known.",
                "area": "World.",
                "bbox": {
                    "south_latitude": -90,
                    "west_longitude": -180,
                    "north_latitude": 90,
                    "east_longitude": 180,
                },
                "id": {"authority": "OGC", "code": "CRS84"},
            },
            "geometry_types": ["Polygon"],
            "bbox": [
                5.370542846111244,
                59.42344573656881,
                7.368267282586697,
                60.42591328670696,
            ],
        }
    },
    "version": "1.0.0",
    "creator": {"library": "geopandas", "version": "0.14.1"},
}

Thanks ! Also if you can make sure that doing ds.to_parquet("path/to/output.geoparquet") also saves as a valid geoparquet files (including the schema metadata) that would be awesome.
It would also enable push_to_hub to save geoparquet files

Thanks ! Also if you can make sure that doing ds.to_parquet("path/to/output.geoparquet") also saves as a valid geoparquet files (including the schema metadata) that would be awesome.
It would also enable push_to_hub to save geoparquet files

Hmm, it should be possible to let PyArrow save a Parquet file with a geometry WKB column, but saving the GeoParquet schema metadata won't be easy without introducing geopandas as a dependency. Does this need to be done in this PR, or can it be a separate one?

I see, then let's keep it like this for now.
I just checked and it would require to add support for keeping the schema metadata in Features anyway.
Feel free to fix your code formatting using
make style

and we can merge this PR :)

Cool, linted to remove the extra blank line at 7088f585557807a63673cdc58900d7ce56146cf7. :rocket:

The previous CI failure at https://github.com/huggingface/datasets/actions/runs/7482863299/job/20668381959#step:6:5299 says datasets.exceptions.DefunctDatasetError: Dataset 'eli5' is defunct and no longer accessible due to unavailability of the source data which seems unrelated, might be to do with https://github.com/huggingface/datasets/issues/6605. I've updated the PR branch with changes from main again, could someone re-run the tests and merge if ok? Thanks!

sorry, it took me some time to fix the CI on the main branch
will merge once it's green :)


Issue #71 - Allow Relating units together with Multipliers

This PR serves to close Issue #71.
However, instead of allowing the user to specify a multiplier against each observations, we are allowing the user to define a new unit which is related to an existing one by a multiplying factor. This has the same effect of allowing us to define the inter-relationships between units which vary only by their magnitude.
See here for an example of how the new units can be defined relative to existing units.
See here for an example of the RDF which is output.
Uses some qudt along with the om2 ontology since the qudt ontology itself isn't sufficient to specify the multiplying factor relationship between two units in a low-maintenance way.

I don't see that we need to choose between OM2 and QUDT, it seems reasonable we could make use of both.
For units like MillionGBP I'd still like to specify a qudt:converstionFactor. It feels inconvenient to have to go via the base unit. (Though MillionGBP is one we'd end up defining centrally anyway).
How would a user specify something like "megalitres per day"?

I don't see that we need to choose between OM2 and QUDT, it seems reasonable we could make use of both.

I'm not entirely sure what you're suggesting here... I think we are using both.

For units like MillionGBP I'd still like to specify a qudt:converstionFactor. It feels inconvenient to have to go via the base unit. (Though MillionGBP is one we'd end up defining centrally anyway).

I think if we take this approach we might want to take a more organised and systematic approach to the QUDT ontology and ensure we define all the related quantityKinds, etc. that we think we should be doing. It's probably something we would want to do more thoroughly than the quick-and-dirty approach that we're taking here to make it easy for users to do something as expressive as possible quite quickly.

How would a user specify something like "megalitres per day"?

i think they'd base it off the m^3 per day qudt unit (http://qudt.org/vocab/unit/M3-PER-DAY) and provide the conversion factor of 10^3.
1 megalitre = 10^6 litres = 10^6 * 10^-3 m^3 = 10^3 m^3


StaticBitmap tooltip does not display

Love the project, coming from react land into wx world has never been easier!
I'm having trouble getting the tooltip to show up on a StaticBitmap. Seems to work fine on Block and Button. I tested it alone and with other components, no luck getting it to display:
    element = wsx(
        [
            c.Frame,
            {"title": "Tooltip demo", "show": True},
            [
                c.Block,
                {"tooltip": "Testing tooltip block..."},
                [c.Button, {"label": "Button", "tooltip": "Test button tooltip"}],
                [c.StaticBitmap, {"uri": "help.png", "tooltip": "Test tooltip image"}],
            ],
        ]

This is fixed in PR #12
You can use my re-wx fork until the PR is merged. https://github.com/xc-jp/re-wx

Thank you, @jamesdbrock - I was just looking at your stuff. Appreciate you taking this forward. Looking forward to using the new components in your PR as well.


Documentation on how to install kudoctl

Updating old docs and/or writing new docs.

Entails:

Thinking about how kudoctl should be shipped.
Thinking about how to install it.

should be closed with https://github.com/kudobuilder/kudo/pull/138


Unable to cast object of type 'Npgsql.NpgsqlConnection' to type 'Microsoft.Data.SqlClient.SqlConnection'

Hi guys, we are using .NET5 and https://www.npgsql.org/efcore/. We are trying to use BulkInsertAsync, but that's what we get. What are we missing?

It actually works with .NET 6 using the version 6.3.0 of your library. When using the version 5.4.2, I get the error mentioned in the title. You can check it out here: EFCore.BulkExtensions.Evaluation.zip

v5 is not actively maintained.

Actually Postgres support was added in v6, prior it was not supported at all.

Cool, then we will use it as soon as we upgrade to .NET 6, looking forward 😊


RootRef Error on Menu on routing with react-router-dom

[x] This is not a v0.x issue.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔
Not to throw error.
Current Behavior 😯
In codesandbox we can't get the full error details, but locally it's the stack-trace:
Uncaught Error: Unable to find node on an unmounted component.
    at invariant (react-dom.development.js:57)
    at findCurrentFiberUsingSlowPath (react-dom.development.js:4382)
    at findCurrentHostFiber (react-dom.development.js:4394)
    at findHostInstanceWithWarning (react-dom.development.js:20467)
    at Object.findDOMNode (react-dom.development.js:21021)
    at RootRef.componentDidUpdate (RootRef.js:80)
    at commitLifeCycles (react-dom.development.js:17000)
    at commitAllLifeCycles (react-dom.development.js:18503)
    at HTMLUnknownElement.callCallback (react-dom.development.js:147)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:196)
    at invokeGuardedCallback (react-dom.development.js:250)
    at commitRoot (react-dom.development.js:18708)
    at completeRoot (react-dom.development.js:20238)
    at performWorkOnRoot (react-dom.development.js:20161)
    at performWork (react-dom.development.js:20066)
    at performSyncWork (react-dom.development.js:20040)
    at interactiveUpdates$1 (react-dom.development.js:20328)
    at interactiveUpdates (react-dom.development.js:2267)
    at dispatchInteractiveEvent (react-dom.development.js:5073)
invariant @ react-dom.development.js:57
findCurrentFiberUsingSlowPath @ react-dom.development.js:4382
findCurrentHostFiber @ react-dom.development.js:4394
findHostInstanceWithWarning @ react-dom.development.js:20467
findDOMNode @ react-dom.development.js:21021
componentDidUpdate @ RootRef.js:80
commitLifeCycles @ react-dom.development.js:17000
commitAllLifeCycles @ react-dom.development.js:18503
callCallback @ react-dom.development.js:147
invokeGuardedCallbackDev @ react-dom.development.js:196
invokeGuardedCallback @ react-dom.development.js:250
commitRoot @ react-dom.development.js:18708
completeRoot @ react-dom.development.js:20238
performWorkOnRoot @ react-dom.development.js:20161
performWork @ react-dom.development.js:20066
performSyncWork @ react-dom.development.js:20040
interactiveUpdates$1 @ react-dom.development.js:20328
interactiveUpdates @ react-dom.development.js:2267
dispatchInteractiveEvent @ react-dom.development.js:5073
index.js:1446 The above error occurred in the <RootRef> component:
    in RootRef (created by Modal)
    in div (created by Modal)
    in Portal (created by Modal)
    in Modal (created by WithStyles(Modal))
    in WithStyles(Modal) (created by Popover)
    in Popover (created by WithStyles(Popover))
    in WithStyles(Popover) (created by Menu)
    in Menu (created by WithStyles(Menu))
    in WithStyles(Menu) (at application-header.jsx:47)
    in header (created by Paper)
    in Paper (created by WithStyles(Paper))
    in WithStyles(Paper) (created by AppBar)
    in AppBar (created by WithStyles(AppBar))
    in WithStyles(AppBar) (at application-header.jsx:39)
    in ApplicationHeader (created by Context.Consumer)
    in Route (created by withRouter(ApplicationHeader))
    in withRouter(ApplicationHeader) (at App.jsx:79)
    in Suspense (at App.jsx:78)
    in Router (created by BrowserRouter)
    in BrowserRouter (at App.jsx:77)
    in CheckUser (created by Context.Consumer)
    in Connect(CheckUser) (at App.jsx:76)
    in IntlProvider (at App.jsx:75)
    in Provider (at App.jsx:74)
    in ErrorPage (at App.jsx:72)
    in App (at src/index.js:7)

React will try to recreate this component tree from scratch using the error boundary you provided, ErrorPage.

Steps to Reproduce 🕹
Link: https://codesandbox.io/s/62y9n1xw7w

Click on the AppBar icon button
Try navigate to a different page you are in
The error is thrown

Context 🔦
I'm trying to use Material-UI together with react-router-dom but can't make the simplest thing that is navigate to other routes to work.
Your Environment 🌎

Tech
Version

Material-UI
v3.9.1

React
16.7.0

React Router
4.3.1

I have tried the code sandbox you posted @DanilloCorvalan and I see you use <Route exact path="/" component={props => <Index {...props} />} /> when you actually need <Route exact path="/" render={props => <Index {...props} />} />
Lazy components won't work using the component render, you either need to render them as children or with render prop.  Not sure if the issue is going in that direction.

I tried @oliviertassinari codesandbox and removed the actual RootRef and it worked... so we can see the issue is still present in RootRef
https://codesandbox.io/s/k2kojyy74r

@jcperez-ch So, are we good? We will deprecate RootRef in v4.1.0.

Guys even I am facing the same issue. the issue is happening in the tool tip. Is there any solution found....? are else do we have to wait till v4.1.0


Early Exit NDT Rollout

Objective:
Monitor the phased rollout of early-exit NDT.
Steps:

[x] Release ndt-server changes.
[x] Release Locate probability changes set to 1%.
[x] Release client changes.
[ ] Confirm metrics/analyses look as expected and increase Locate probability to 10%.
[ ] Confirm metrics/analyses look as expected and increase Locate probability to 30%.
[ ] Confirm metrics/analyses look as expected and increase Locate probability to 50%.
[ ] Confirm metrics/analyses look as expected and increase Locate probability to 100%.

Rollout dashboard:
https://grafana.mlab-oti.measurementlab.net/d/W8JPPzzIz/ndt-early-exit?orgId=1
Criteria before progressing:

Download performance and bytes sent graphs match expectations.
No increase in client- or server-side errors.
Global test rates are unaffected.
No alerts are firing due to the rollout.

Rollback criteria:

If there is any change to the global test rates or any alerts that fire due to the rollout, we should immediately roll back.
If there is any increase in client- or server-side errors, we should immediately roll back.
If any of the dashboard panels do not match expectations, we should consider rolling back.

Things we expect to change:

Number of bytes sent per test.

Checks for 1% of traffic:

Download performance closely matches the full test.

Bytes sent top out at about 250MB.

Stable number of client-side errors over the past week.

Stable number of ndt7 download errors.

Global NDT test rate also stable.

Alerts firing unrelated to launch.

GardenerFailureRateTooHighOrMissing: related to the pipeline.
DataQuality_TooManyNdtS2cTestsWithDiscards: specific to MIA and DFW.
PlatformCluster_IPv6AtSiteDownForTooLong: specific to TUN01.

Checks for 10% of traffic:

Download performance (last 7 days) closely matches the full test.

Bytes sent (last 7 days) top out at about 250MB.

Stable number of client-side errors over the past week.

Stable number of ndt7 download errors (last 15 days).

Global NDT test rate also stable (last 15 days).

Alerts firing unrelated to launch.

SwitchUnpingableAtSite: specific to lim03.
DataQuality_TooManyNdtS2cTestsWithDiscards: specific to MIA and DFW.
PlatformCluster_IPv6AtSiteDownForTooLong: specific to TUN01.

Checks for 30% of traffic:

Download performance (last 7 days) closely matches the full test. Slight variations around 200-300 Mbps.

Bytes sent (last 7 days) top out at about 250MB.

Stable number of client-side errors over the past week.

Increasing number of ndt7+wss download measurer-closed-early errors in ndt7 (expected). Other errors seem stable (last 15 days).

Global NDT test rate also stable (last 15 days).

Granular performance comparisons at the site/metro/AS level show comparable ndt7 download performance for early-exit ("short") and full tests.

CDFs

Checks for 50% of traffic:

Download performance (last 7 days) closely matches the full test.

Bytes sent (last 7 days) top out at about 250MB.

Stable number of client-side errors over the past week.

Stable number of ndt7 download errors (last 15 days).

Global NDT test rate stable (last 15 days).

Alerts firing unrelated to launch.

DataQuality_TooManyNdtS2cTestsWithDiscards: specific to BOM and DWF.
GardenerFailureRateTooHighOrMissing: specific to the pipeline.

Granular performance comparisons (CDFs/geometric distance) at the site/metro/AS level show comparable ndt7 download performance for early-exit ("short") and full tests.

Colab


Certificate file name should reflect concerning domain

When I download the ca certificate I get a file called 'root.cert.pem'. I'd prefer to see what the certificate is for by looking at the filename like 'my-domain.local.cert.pem' and 'my-domain.local.intermediate.cert.pem'.

Done. Filename of CA Cert Download reflects CA Name.


Remove empty labels from being candidates for overlap checking

Bug Fix: This PR is intended to update the hideOverlap functionality to prevent empty labels ("") from being considered as candidates for the overlap checking.

Perhaps there is a better way of ignoring labels with no text, such as setting them to ignore = true in the label creation process and then checking if a label is ignored before doing the overlapping comparison check, but I was unsure if that was the right way to go. I am open to suggestions!

Details
Before: What was the problem?
Empty labels cause non-empty labels to be hidden
hideOverlap = true

hideOverlap = false

After: How does it behave after the fixing?
Empty labels no longer cause non-empty labels to be hidden
hideOverlap = true

hideOverlap = false

Document Info

[x] This PR doesn't relate to document changes

Others
Merging options

[x] Please squash the commits into a single one when merging.

Please fix the lint problem first.

[x] Lint problem fixed

I don't think it's the correct way to fix this problem by hiding the empty text. It's better to find out why empty labelItem.rect is overlapping with others.

If empty labels are not hidden, they will still be considered in the overlapping process (labelLayoutHelper#L311-L364):

Empty labels still have a bounding rect, it is just a bounding rect with zero width and zero height - i.e. a point
Since they still have a bounding rect, you can still check if they are overlapping - i.e. does a non-empty label have a bounding rect that encompasses the empty labels point?

yes -> overlapping
no -> not overlapping

Taking 1 and 2 together gives us: if an empty label point gets added to the displayedLabels list (see labelLayoutHelper.ts#L328) and a subsequent non-empty label has a bounding rect that encompasses the empty label, it will not be displayed for no reason other then that the empty label got added to the list before it and that there is no check to prevent empty labels from being added to the displayedLabels list

See my graphic below for visual context:

Thanks for the detailed explanation! It helped a lot.
Could we change the code of overlapping check algorithm to take special account for those text with zero width or zero height so that they always return false when overlapping checking.
The reason whiy I think we should update the checking algorithm instead of avoid adding text is that we need to make sure this problem fixed in a lower level so that in other places there won't be such cases if we forget to avoid adding empty text, or when the text content is dynamic.

Could we change the code of overlapping check algorithm to take special account for those text with zero width or zero height so that they always return false when overlapping checking.
The reason whiy I think we should update the checking algorithm instead of avoid adding text is that we need to make sure this problem fixed in a lower level so that in other places there won't be such cases if we forget to avoid adding empty text, or when the text content is dynamic.

I created a corresponding PR in the ZRender repository, where the overlapping check algorithm is.

https://github.com/ecomfe/zrender/pull/1081

Would you mind taking a look at that new PR and let me know if this was the kind of fix you were thinking of?


Bump to event-listener v3.0.0

Testing to make sure that event-listener v3.0.0 actually works before we release smol-rs/event-listener#58

@zeenix Are you fine with a breaking change? If so I can make Send and Recv !Unpin, which would allow us to not need to box the EventListener and save a heap allocation.

@zeenix Are you fine with a breaking change?

Yes. I'm breaking API in my using crate (zbus) anyway. :)

If so I can make Send and Recv !Unpin, which would allow us to not need to box the EventListener and save a heap allocation.

That would be nice but I suspect a lot of users will want them to be Unpin. Can we provide API to created  Pin<Box<..>> to make the transition easier?

@zeenix Any chance you can review this?


Empty CpSolverResponse in LogSearchProgress

What version of OR-tools and what language are you using?
Version: v7.8
Language: Java
Which solver are you using?
CP-SAT
What operating system and version?
Windows 10
What did you do?

Loaded unknown-infeasible.zip
Set LogSearchProgress(true)
Solved with SolutionCallback
Saw empty CpSolverResponse:

*** starting Search at 73.05s with 8 workers and subsolvers: [ auto, lp_br, pseudo_cost, no_lp, max_lp, core, feasibility_pump, rnd_lns_auto, var_lns_auto, cst_lns_auto, scheduling_time_window_lns_auto, scheduling_random_lns_auto, rins_lns_auto, rens_lns_auto ]
#Bound  80.50s best:inf   next:[0,249000] init
#Done   82.87s  core
CpSolverResponse:
status: UNKNOWN
objective: 0
best_bound: 0
booleans: 0
conflicts: 0
branches: 0
propagations: 0
integer_propagations: 0
walltime: 0
usertime: 0
deterministic_time: 0
primal_integral: 0

Called System.out.println(cpSolver.responseStats()); and got:

CpSolverResponse:
status: INFEASIBLE
objective: NA
best_bound: NA
booleans: 207687
conflicts: 1409
branches: 56362
propagations: 11098615
integer_propagations: 5488186
walltime: 87.028
usertime: 87.028
deterministic_time: 51.7466
primal_integral: 0

What did you expect to see?
The same stats in logSearchProgress.
What did you see instead?
Both status: UNKNOWN and status: INFEASIBLE.

IIRC there is a race cond between solution callback workers and solver response
maybe laurent will have more info...

Yes. There is a race.  The returned reponse is always right.
Le mer. 7 oct. 2020 à 11:44, Mizux<EMAIL_ADDRESS>a écrit :

IIRC there is a race cond between solution callback workers and solver
response
maybe laurent will have more info...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/2189#issuecomment-704821581,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3LM7ISEFNEGQC2GESTSJQZ6NANCNFSM4SHEQICQ
.

I reproduced it also in c++ so it has probably nothing to do with java or swig.

Do you have a small code that exhibits it ?
Le mer. 7 oct. 2020 à 13:04, gregy4<EMAIL_ADDRESS>a écrit :

I reproduced it also in c++ so it has probably nothing to do with java or
swig.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/2189#issuecomment-704861548,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3JAFCW5RHSGS3ZQRULSJRDMFANCNFSM4SHEQICQ
.

Sorry I don't have it, I executed given proto file in c++. But I know how was proto file created in java so I can try to create some subset of given problem in c++ if it can help you.

Is this easy to reproduce ? I have run this proto tens of time on our code, and it never happens.

Ok, I cannot reproduce it on the master branch. Thus I am closing the bug.
Thanks for the report, and please reopen if it still happens in 8.0

I can reproduce it on master branch from Saturday, build on current master branch doesn't work in visual studio due to update of absl library.
I can reproduce it in every run on windows, it seems that the problem is not present in linux.
Did you try it on windows ?  You didn't answer my question about smaller example.

current master branch doesn't work in visual studio due to update of absl library

I guess, it is fixed, otherwise, don't hesitate to open an issue ! Thx

No, it is not fixed. To be sure I tried to build master branch not only with VS (sometimes randomly reports nonexisting errors) but also with clion that seems much better but now with same error with application of patch absl-populate.

I just pushed the fix.
A compiler bug.

I just pushed the fix.
A compiler bug.


Query about nested structures

Hello, I have a problem when using storm, please help answer, thank you
Below is my code
`type Base struct {
uid int
sid string
}
type Account struct {
ID     int storm:"id,increment"
Amount int64
Ba     Base storm:"unique"
}
func simpletest(db *storm.DB) {
var account Account
account.Amount = 12
account.Ba.uid = 10
account.Ba.sid = "adi2rr"
err = db.Save(&account)
if err != nil {
	log.Fatal(err)
}

var tmp Account
err = db.One("ID", 1, &tmp)
if err != nil {
	log.Fatal(err)
}
fmt.Println(tmp)  // {1 12 {0 }}

var base Base
base.sid = "adi2rr"
base.uid = 10

var user Account
err = db.One("Ba", base, &user)
if err != nil {
	log.Fatal(err)
}
fmt.Println(user)   //  {1 12 {0 }}

}`
I want to use db.One to find the same result as when I saved it, but the result is not consistent with what I think, please help me.

Sorry, there is a problem with my environment.


ci(release.yaml): add cross-compiled aarch64 config

Adds a cross-compiled linux aarch64 entry (and add'l logic) into the GH release workflow

Approach derived from the Krustlet project.
Ref https://github.com/deislabs/wagi/issues/141
Question: Do we want to update the rust.yaml action to add build/compile of this target as well?  Changes would be more impactful to that file, so I wanted to ask first.
Tested release job on fork via https://github.com/vdice/wagi/actions/runs/1752378468 and resulting aarch64 binary on arm64 linux VM:
ubuntu@ip-172-31-95-42:~$ uname -a
Linux ip-172-31-95-42 #30~20.04.1-Ubuntu SMP Thu Jan 13 11:49:06 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@ip-172-31-95-42:~$ ./wagi --version
WAGI Server 0.4.0

@bacongobbler I noticed an unused field that I've removed in 4fb7dfd.
Also, I can push a commit adding the same cross-compiled aarch64 config to the rust.yaml (which runs build/test on PRs/CI) -- or would it be better to issue a follow-up?

I noticed an unused field that I've removed in 4fb7dfd.

Good call... Looks like the --target flag is specified in the args field so everything should be fine there.

Also, I can push a commit adding the same cross-compiled aarch64 config to the rust.yaml (which runs build/test on PRs/CI) -- or would it be better to issue a follow-up?

I'd do it in the same PR IMO, however I'd let the wagi maintainers chime in here - I haven't contributed much code to this project to say whether a change like that may impact something else

That being said I don't see how compiling to aarch64 in a PR would give the project much benefit other than verifying that it does compile on different machine targets. Is that what you're looking to achieve with that change?

That being said I don't see how compiling to aarch64 in a PR would give the project much benefit other than verifying that it successfully compiles on different machine targets. Is that what you're looking to achieve with that change?

Right, the benefit would just be to ensure cross-compilation doesn't break on any PR, thus giving assurance that the same logic during release events should succeed as well... but, agreed, it doesn't add a lot to the existing CI that insures build/test succeeds on Linux/Mac/Windows.

I'll merge this as it stands, but we can revisit https://github.com/deislabs/wagi/pull/147#issuecomment-1022647858 as needed in a follow-up.


Review use of presigned urls

The initial idea behind using presigned urls, was to avoid having the file pass by the server and upload it directly to the storage system instead, but since most of the files will need to be processed in some way, they need to be downloaded nonetheless.
Proposal:

Files are always uploaded to the server. It then processes the files as needed (like converting osm into iD compatible format) and uploads a copy to the storage.

This assumes the server has some temporarily available storage space and capacity to do light processing (I assume iD conversion is lightweight)
Changes required:

Upload endpoints on the backend
Updating the test
Upload functionality on the frontend

Wins:

Full compatibility with minio and s3
Laying the grounds for good file processing

Effort: 1 day
Possible enhancements:

Use sockets to be able to return progress update messages.

The aforementioned changes would also ensure a full compatibility with S3 which is not the case right now. The system is using minio which also works as a proxy for the S3 client. Right now the file upload works in the following way:

user get's presigned url
user uploads file
storage notifies server that file has uploaded
server stores changes in db

We failed to notice that the notification part of this is a minio only api (S3 also has notifications but require a lot more setup). Therefore and although the file is uploaded an entry is never added to the database.

File processing happens differently than originally planned (for the better), making the suggestions here obsolete. The changes required for the S3 compatibility are still needed and are implemented in PR #131. Closing


feat(pdf417): port from Java ZXing

Port pdf417 format with unit, browser tests and documentation.

I've converted this guy to an issue, so we can track future sub-tasks and add this to a milestone (eg. v1.0).


Bugfix: This could not be interpreted by spring

When trying to use the parameter from the application.yaml, the worker could not be started.
Convention is to use - instead of camelCase for application.yaml files. Usually, spring can resolve this when mapping yaml values to Java classes, but it seems that for an expression, the - way is required.

Awesome - thx!


ng test with @angular-builders/jest

Hello,
I have an angular project, but I don't use karma, I use @angular-builders/jest.
Is there anyway I can start the tests with the angular starter (ng test) without the karma test runner?
Thanks in advance

Hi @miguel-leon 👋  Thanks for your interest.
We actually didn't have time yet to implement this feature. Do you have any idea how @angular-builders/jest works? Is it just calling jest? Or adding some more magic. Once we know that, we should be able to support it with our jest-runner stryker-mutator plugin.

Hello @nicojs ! Thanks for your response.
I know it uses a recent angular-cli api called builders which was a replacement for ng eject. To make it work one only has to plug out the builder @angular-devkit/build-angular:karma in the angular.json and plug in @angular-builders/jest:run after installing jest and @types/jest.
It has to be ran with ng test, actually just calling jest won't work because there is no jest.config.js or further configuration.
I checked out some of the stryker's source code because I saw it can be configured to run with ng test, but it seems to be hard coded to karma, hence my question. How can the angular starter be separated from karma and run independently?
Thanks again!

Yeah, the current implementation is hardcoded to karma. We use ng test from inside a sandbox process (worker process) and hook up to it by supplying our very own karma.conf.js, which in turn loads your custom karma config. This way of working is need to plug our own karma reporter which reports the test results back to Stryker. This is also how the webstorm karma runner plugin hooks into angular cli (https://github.com/karma-runner/karma-intellij).
We might be able to do something similar for jest with ng cli and our jest-runner stryker plugin. Do you think you would be able to implement something like this? Or investigate if this is possible?

Hi @nicojs,
I see what you mean. I think it may be possible doing something similar with jest since ng test can be used with the argument --config-path instead of using --karma-config. The argument --progress is unknown though.
The thing is I know little about how test runners and reporters work. I didn't realize you had to do that config wrapping to specify your custom reporter. I'd have to dig deeper into it.
But I didn't find such a reporter for jest or where the jest command is executed (in fact the ensamble is sorta different from karma's). Do you think that if ng test can be called with a custom jest config the rest of the jest-runner stryker plugin can be used as is?

The jest-runner plugin doesn't use a custom reporter to retrieve the test results, no. However, I do think you need it in the case of ng test, since running the ng test command only results in an "exitCode" (which is pretty much useless).
As you can see, the jest-runner relies on the RunResult which is retrieved from running jest programmatically
This might be a good time to create a separate angular-cli-runner plugin that supports both karma and jest, instead of rewriting each test runner to support different project types. More thinking is needed for this... 🤷♀

Hey folks,
@nicojs thanks for all your work with stryker.
I'm happy to announce that I've made a PR to support mutation testing on nrwl/nx workspaces.
The package includes the mutate builder and configuration schematics that will help scaffold stryker easily with the config file.
This works for jest and karma.

@SebasG22 I've seen the PR, but they are not going to implement it because it is out of scope of nrwl/nx. Is it possible to have a look at adding nrwl/nx to the wizard when installing stryker-mutator?

Can somebody help what I need to configure in order to be able to run stryker in an nx workspace?


Problem referencing JUnit annotations and assertions in translated classes

I have a TestContracts Java module in my project that has abstract classes which have JUnit 4 style tests with the @Test annotation as well as JUnit assertions. I'd like to translate these abstract classes containing JUnit style tests and reference them in the tests target of my iOS module. The build.gradle file of my TestContracts module is as follows:
plugins {
    id 'java'
    id 'com.github.j2objccontrib.j2objcgradle' version '0.6.0-alpha'
}

dependencies {
    compile project(':SharedCode')
    compile 'junit:junit:4.12' // this is compile scope deliberately
    compile 'org.hamcrest:hamcrest-core:1.3' // this is compile scope deliberately
}

j2objcConfig {
    autoConfigureDeps true
    minVersionIos '8.4'
    supportedArchs += ['ios_i386']
    translateArgs '--no-package-directories'
    translateArgs '--prefixes', 'prefixes.properties'
    xcodeProjectDir '../iOS'
    xcodeTargetsIos 'RetailSDKTests'
    finalConfigure()
}

The Java to Objective-C translation step of the Gradle build completes but the :iOS:xcodebuild step fails with a linking error. It can't make sense of the JUnit annotations and assertions. The problem I've discovered is that the 'junit' library is missing from the podspec files created in the TestContracts/build/j2objcOutputs folder.
So question is: how can I specify the JUnit and Hamcrest dependencies so that they're included in the generated podspec file?

I've updated the description of the issue above as I've discovered the root of the problem... but still don't know how to solve the issue so I haven't closed it yet.


[QST] filtercandidate opt not working for multi-stage workflow

❓ Questions & Help
Details

Hi,
I am trying to build up a multi-stage workflow as in the example , only with an additional filtering operation (filter out those candidates interacted with users already). The workflow on Triton Inference Server looks like this:
+---------------------------+---------+--------+
| Model                     | Version | Status |
+---------------------------+---------+--------+
| 0_queryfeast              | 1       | READY  |
| 1_predicttensorflowtriton | 1       | READY  |
| 2_queryfaiss              | 1       | READY  |
| 3_filtercandidates        | 1       | READY  |
| 4_queryfeast              | 1       | READY  |
| 5_unrollfeatures          | 1       | READY  |
| 6_predicttensorflowtriton | 1       | READY  |
| 7_softmaxsampling         | 1       | READY  |
| ensemble_model            | 1       | READY  |
+---------------------------+---------+--------+
The TIS server is running, but throwing following error:

InferenceServerException                  Traceback (most recent call last)
----> response = send_triton_request(request_schema, request, outputs)
File /usr/local/lib/python3.8/dist-packages/merlin/systems/triton/utils.py:193, in send_triton_request(schema, df, outputs_list, client, endpoint, request_id, triton_model)
191 outputs = [grpcclient.InferRequestedOutput(col) for col in outputs_list]
192 with client:
--> 193     response = client.infer(triton_model, inputs, request_id=request_id, outputs=outputs)
195 results = {}
196 for col in outputs_list:
File /usr/local/lib/python3.8/dist-packages/tritonclient/grpc/init.py:1431, in InferenceServerClient.infer(self, model_name, inputs, model_version, outputs, request_id, sequence_id, sequence_start, sequence_end, priority, timeout, client_timeout, headers, compression_algorithm)
1429     return result
1430 except grpc.RpcError as rpc_error:
-> 1431     raise_error_grpc(rpc_error)
File /usr/local/lib/python3.8/dist-packages/tritonclient/grpc/init.py:62, in raise_error_grpc(rpc_error)
61 def raise_error_grpc(rpc_error):
---> 62     raise get_error_grpc(rpc_error) from None
InferenceServerException: [StatusCode.INVALID_ARGUMENT] in ensemble 'ensemble_model', [request id: 1] unexpected shape for input 'filtered_ids' for model '4_queryfeast'. Expected [-1,1], got [100]

The only code-change in the original example notebooks is like following:
`
filtering = retrieval["candidate_ids"] >> FilterCandidates(
filter_out=user_features["user_id"]
)
item_features = filtering >> QueryFeast.from_feature_view(
store=feature_store, view="item_features", column="filtered_ids", output_prefix="item",
include_id=True,
)
`
Could anyone help me out, what did I do wrong?

@Tselmeg-C thanks for reporting the issue.FilterCandidates functionality does not currently work as expected, and it is being worked on. Once it is completed we will create an example.


fmt(.github/workflows): fix release-nightly

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

Comparison is base (59d4f4c) 10.75% compared to head (cdf5ce7) 10.75%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master       #6   +/-   ##
=======================================
  Coverage   10.75%   10.75%
=======================================
  Files           3        3
  Lines         911      911
=======================================
  Hits           98       98
  Misses        813      813

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


various packages: new maintainer

Maintainer change for:

{harfbuzz-,}icu
nano
isync
nmap

Thanks :+1:

Glad to help!


Add method built rust code that enables flushing denormals to zero to

improve performance in some cases

Where is enable_flush_denormals_to_zero actually used ? Is housed be added in the process code, before the call to compute.

Where is enable_flush_denormals_to_zero actually used ? Is housed be added in the process code, before the call to compute.

One has to call it manually. We are not really parsing the faust code, we are just embedding it with simple search/replace.

But you could add the enable_flush_denormals_to_zerocall in the architecture file , just before calling compute. We routinely do that in audio code with C++.

In update_and_compute maybe ?


Containers OpenSCAP

Table of Contents
Introduction
Components
Pull Requests

## Introduction
TBD

## Components
Image Inspector
- During container image smart state analysis image-inspector runs an OpenSCAP scan on the mounted image. The scan content is the latest CVE content from redhat. Example: https://www.redhat.com/security/data/metrics/ds/com.redhat.rhsa-RHEL7.ds.xml.bz2
ManageIQ Smart State Analysis and OpenSCAP results

ManageIQ gets the results in the ARF format parses the results and saves them in the database with the following data model
container_images have at most one openscap_result.
openscap_results have have a date and a list of openscap_rule_results.
openscap_rule_results have a name, result and severity.

The UI Shows this data as well as provides the OpenSCAP formatted html file

ManageIQ Compliance And Openshift

Container Images have been added to the control subsystem so both control and compliance policies against them can be defined.
Compliance checks are available in the container images ui
Policies against images can be attached to both images and providers through the UI. Policies attached to a provider apply to all the provider's images.
Compliance failure/success events can be triggers to other policies
Compliance status and history for images are available in the UI.
Image compliance can be scheduled in the schedules screen.
New action allows tagging images as non-secure at openshift. Openshift should not allow tagged images to run containers.
Container image smart state analysis can be both scheduled and executed as an action.
Events are raise when: container images smart state analysis completes and when new containers are discovered
Out of the box support has been added to: policies, policy profiles, conditions and policy content so a fresh system should have these defaults listed
The out of the box container policies should be attached to every container provider. It should be possible to remove those too.
There are two default container image policies:

when a new image is discoverd, run an ssa on it
when an ssa completes, if there is more then one high severity scap failure fail image compliance (mark it and raise approproate event) and tag the image at openshift

Currently the user has to schedule a periodic scan on the provider to discover new scap infrigments.
#7682 is needed to get complete out of the box support (no need to schedule anything)
UI Widgets: TBD

## Pull requests
Not Yet Merged:
- https://github.com/ManageIQ/manageiq/pull/6839 Persist and show openscap data
- https://github.com/ManageIQ/manageiq/pull/7132 Allow policies defined against container image openscap results
- https://github.com/ManageIQ/manageiq/pull/7413 Enable Seed for policies, policy sets, policy contents and conditions
- https://github.com/ManageIQ/manageiq/pull/7536 [WIP] New action: tag container images as non secure at openshift
- https://github.com/ManageIQ/manageiq/pull/7549 Allow scheduling container ssa as an action #7549
- https://github.com/ManageIQ/manageiq/pull/7558 [WIP] Default policies for container images
- https://github.com/ManageIQ/manageiq/pull/7567 Add default policy profiles to new container providers #7567
- https://github.com/ManageIQ/manageiq/pull/7685 Allow scheduling image ssa
- https://github.com/ManageIQ/manageiq/pull/7686 New events after container ssa completes and when a new image is created
- https://github.com/simon3z/image-inspector/pull/3 oscap: add oscap scanning of inspected image
- https://github.com/moolitayer/image-inspector-client/pull/6 function to fetch openscap data from image-inspector
Merged:

https://github.com/ManageIQ/manageiq-appliance-build/pull/116 Add an rpm dependency on openscap-scanner
https://github.com/abonas/openshift_client/pull/22 Add support for image and image stream entities
https://github.com/abonas/kubeclient/pull/161 Add support for Patch method

@miq-bot add_label providers/containers, control, enhancement

Additional screenshots
Executing Smart State Analysis
Option 1:

Option 2:

Viewing OpenSCAP results:

Manually check compliance of images based on policy:

View results:

Defining custom control policies against scan results:

Create a policy profile:

policy.log
Discovering images:
[----] I, [2016-05-19T16:26:51.832550 #11803:fd1998] INFO -- : MIQ(policy-enforce_policy): Event: [containerimage_created], To: [openshift/mysql-55-centos7]
[----] I, [2016-05-19T16:26:51.845137 #11803:fd1998] INFO -- : MIQ(policy-enforce_policy): Resolving policy [Analyse incoming container images]...
[----] I, [2016-05-19T16:26:51.864795 #11803:fd1998] INFO -- : MIQ(action-invoke) Invoking action [Initiate SmartState Analysis for Container Image] for successful policy [Analyse incoming container images], ev
ent: [Container Image Discovered], entity name: [openshift/mysql-55-centos7], entity type: [Image], sequence: [1], synchronous? [true]
[----] I, [2016-05-19T16:26:51.864829 #11803:fd1998] INFO -- : MIQ(action_container_image_analyze): Now executing [Initiate SmartState Analysis for Container Image] of Container Image [openshift/mysql-55-centos
7]
After ssa of non compliant images:
[----] I, [2016-05-19T16:36:57.409280 #14152:fd1998] INFO -- : MIQ(policy-enforce_policy): Event: [containerimage_scan_complete], To: [openshift3/metrics-hawkular-metrics]
[----] I, [2016-05-19T16:36:57.421010 #14152:fd1998] INFO -- : MIQ(policy-enforce_policy): Resolving policy [Schedule compliance after smart state analysis]...
[----] I, [2016-05-19T16:36:57.470396 #14152:fd1998] INFO -- : MIQ(action-invoke) Invoking action [Check Host or VM Compliance] for successful policy [Schedule compliance after smart state analysis], event: [Container Image Analysis Complete], entity name: [openshift3/metrics-hawkular-metrics], entity type: [Image], sequence: [1], synchronous? [true]
[----] I, [2016-05-19T16:36:57.470481 #14152:fd1998] INFO -- : MIQ(action_check_compliance): Now executing [Check Host or VM Compliance] of ContainerImage [openshift3/metrics-hawkular-metrics]
[----] I, [2016-05-19T16:36:57.474115 #14152:fd1998] INFO -- : MIQ(policy-enforce_policy): Event: [containerimage_compliance_check], To: [openshift3/metrics-hawkular-metrics]
[----] I, [2016-05-19T16:36:57.481996 #14152:fd1998] INFO -- : MIQ(policy-enforce_policy): Resolving policy [OpenSCAP]...
[----] I, [2016-05-19T16:36:57.517988 #14152:fd1998] INFO -- : MIQ(condition-eval): Name: Has high severity OpenSCAP rule results, Expression evaluation result: [true]
[----] I, [2016-05-19T16:36:57.521660 #14152:fd1998] INFO -- : MIQ(action-invoke) Invoking action [Mark as Non-Compliant] for failed policy [OpenSCAP], event: [Container Image Compliance Check], entity name: [openshift3/metrics-hawkular-metrics], entity type: [Image], sequence: [1], synchronous? [true]
[----] I, [2016-05-19T16:36:57.521703 #14152:fd1998] INFO -- : MIQ(action_compliance_failed): Now executing [Mark as Non-Compliant] of ContainerImage [openshift3/metrics-hawkular-metrics]
[----] I, [2016-05-19T16:36:57.521793 #14152:fd1998] INFO -- : MIQ(action-invoke) Invoking action [Prevent container image from running on OpenShift] for failed policy [OpenSCAP], event: [Container Image Compliance Check], entity name: [openshift3/metrics-hawkular-metrics], entity type: [Image], sequence: [2], synchronous? [true]
[----] E, [2016-05-19T16:36:57.521917 #14152:fd1998] ERROR -- : MIQ(action_container_image_annotate_deny_execution): Unable to perform action [Prevent container image from running on OpenShift], ContainerImage is not linked with an OpenShift image
After ssa of compliant images (or that have no compliance data):
[----] I, [2016-05-19T16:37:31.097341 #14283:fd1998] INFO -- : MIQ(policy-enforce_policy): Event: [containerimage_scan_complete], To: [test/origin-ruby-sample]
[----] I, [2016-05-19T16:37:31.124961 #14283:fd1998] INFO -- : MIQ(policy-enforce_policy): Resolving policy [Schedule compliance after smart state analysis]...
[----] I, [2016-05-19T16:37:31.172872 #14283:fd1998] INFO -- : MIQ(action-invoke) Invoking action [Check Host or VM Compliance] for successful policy [Schedule compliance after smart state analysis], event: [Container Image Analysis Complete], entity name: [test/origin-ruby-sample], entity type: [Image], sequence: [1], synchronous? [true]
[----] I, [2016-05-19T16:37:31.172940 #14283:fd1998] INFO -- : MIQ(action_check_compliance): Now executing [Check Host or VM Compliance] of ContainerImage [test/origin-ruby-sample]
[----] I, [2016-05-19T16:37:31.176822 #14283:fd1998] INFO -- : MIQ(policy-enforce_policy): Event: [containerimage_compliance_check], To: [test/origin-ruby-sample]
[----] I, [2016-05-19T16:37:31.185843 #14283:fd1998] INFO -- : MIQ(policy-enforce_policy): Resolving policy [OpenSCAP]...
[----] I, [2016-05-19T16:37:31.225760 #14283:fd1998] INFO -- : MIQ(condition-eval): Name: Has high severity OpenSCAP rule results, Expression evaluation result: [false]
[----] I, [2016-05-19T16:37:41.671446 #14293:fd1998] INFO -- : MIQ(policy-enforce_policy): Event: [containerimage_compliance_passed], To: [test/origin-ruby-sample]

@moolitayer can we close this?


pin dependency versions

Please pin the dependency versions in META6.json to specific known-to-work versions.

Currently everything is at the most recent update on all modules.

Yes, instead of "latest", we should specify the version we know works explicitly.

I agree, but its not at the top of my priority list at present.

partially complete

The only dependencies currently not pinned are Perl6::Typegraph. This is because I think there are Modules that have been updated / renamed to Raku. I intended to change to the updated versions, but was offline travelling when I implemented the typegraph plugin and have not had time to revise.

completed


Support different languages

The API supports differente languages.
Is there any plan to support it in the library as well?

Sounds good - if I have time ill have a look at it :)

Issue closed, new version released. Thanks @mariomurrent-softwaresolutions for the PR.
https://pub.dev/packages/open_weather_client/versions/2.2.0

Thx 😊


This and https://github.com/jmolivas/phpqa/

I've been researching this kind of tools, and I found that these two share the exact same name.
Is there any relationship between the two, or it is just a coincidence?
Thanks.

Just a coincidence. There are even more phpqa packages...


Maven

Maven?

ProtocolBurrito relies on userdev which is a gradle only olugin. So maven cannot be supported sorry


bot is not connecting with latest version of rocket.chat

After a clean clone of both chat and bot, the bot will not response to anything
[Tue Jul 28 2015 15:11:53 GMT+0000 (UTC)] WARNING No services ROCKETCHAT_URL provided to Hubot, using <IP_ADDRESS>:3000

[Tue Jul 28 2015 15:11:53 GMT+0000 (UTC)] WARNING No services ROCKETCHAT_ROOM provided to Hubot, using general

[Tue Jul 28 2015 15:11:53 GMT+0000 (UTC)] WARNING No services ROCKETCHAT_USER provided to Hubot, using rocketbot

[Tue Jul 28 2015 15:11:53 GMT+0000 (UTC)] INFO running rocketchat
[Tue Jul 28 2015 15:11:53 GMT+0000 (UTC)] INFO login
[Tue Jul 28 2015 15:11:54 GMT+0000 (UTC)] INFO logged in
[Tue Jul 28 2015 15:11:54 GMT+0000 (UTC)] INFO joined room
[Tue Jul 28 2015 15:11:54 GMT+0000 (UTC)] INFO prepare meteor subscriptions

Yes.  I think we're out of sync with the latest schema.  Might you be able to help with a fix?

I don't know how to submit a change request, but I fixed the issue:
on rocketchat_driver.coffee, line 7 change from
_messageCollection = 'data.ChatMessage'
to
_messageCollection = 'rocketchat_message'

@bryanbecker -  awesome!    If you would like to submit a PR, please:

Fork this repo (top right button)
In your forked copy, follow these instructions to edit the code and create the Pull Request.

@oinirio  - please try the proposed fix and let us know if everything works for you again.

@Sing-Li Thanks for the instructions!  I think I submitted the change correctly

@bryanbecker @Sing-Li it works flawlessly thanks

@oiniro - thx   :smile:
@byanbecker - great!  Your changes are now in the master of the forked repo.  Just a couple of clicks away to PR.  Please see the main page of your cloned repos.  Note Pull Request on the right side, and click it.

Then just click the green "Create pull request" button, and follow through.

Alright, done.
Why is it called a 'pull request'?  That's confusing to me, when it seems like I'm pushing the changes

Because a 'contributor' proposes a change, and pushes from his/her fork to the original master branch; then the owner(s) of the original project considers the proposed changes and optionally pull the contributor's changes into his/her code.   In this sense, a contributor creates a pull request.

ahh, ok... that clears it up


Add Init and Empty constructors to response.

Fix #144
This PR adds in two new constructors to our response variant in reason-urql – Init and Empty. These address the following conditions and cases in urql.
Init
Matches the case where a hook has been initialized but no requests have been made for data. This happens in a few cases:

Using the useQuery and useSubscription hooks with pause. Operations won't be sent until pause becomes true.
Using useMutation and useDynamicMutation. Since mutations don't get executed until the returned executeMutation function gets called, we need a state to signal that data hasn't been fetched yet.

Empty
Matches the case where, for whatever reason, a hook has made a request for data but neither data nor error have been returned (or are both null / undefined). This situation happens w/ headless CMSes frequently, especially when you perform a search in your API request (I've seen this with Contentful, for example). data is null but no errors were returned.
Previously, the two above cases were handled by NotFound, which wasn't very descriptive and confused a lot of users. With these two additions, we give more flexibility to users for how to represent different states of their UI.
The one piece I'm unsure of is how we track hasExecuted (see diff). I currently use a ref to track whether or not the request has been executed – this is what allows us to differentiate between Init and Empty states. Would love feedback on this piece!

Just a thought before I dive into a review, hopefully by find time tomorrow. We have not opted to add any state charts in the main library since all states are distinct by the presence of every state field on our hooks; so the states are:

No data, no error, but fetching
No data, no error, stopped fetching (paused or cancelled)
Data and no error, not fetching
Null data, no error, not fetching (technically the null case which is distinct from no data, but means we got an empty response)
Data and error (the presence of errors does not mean there’ll be no data)
Data and error / Data and no error, and fetching (this is outdated data due to a refetch of any kind)
Additionally: A stale flag can be set to true to indicate that more data is being fetched in the background, which will mean that fetching is false unless a refetch has changed the query and the state hasn’t reset

So there’s a lot of unrepresented cases in our state diagram / type variants here. I was just wondering how far we want to go 😅 so I’m just throwing them out here. If we go for a simplified   version, that’s fine and intended, but I’ll think about whether there are edge cases where the user would then accidentally obscure state for themselves that’d lead to unexpected UI behaviour

Thanks for the comment @kitten. Let me see if I can break this down w/ my read on state -> variant constructor.

No data, no error, but fetching = Fetching
No data, no error, stopped fetching (paused or cancelled) = Init (I'm not familiar with the cancelled case, would Init semantically cover that in your mind, or is that a different case).
Data and no error, not fetching = Data
Null data, no error, not fetching (technically the null case which is distinct from no data, but means we got an empty response)= Empty
Data and error (the presence of errors does not mean there’ll be no data) = good shout on this one, maybe we need DataAndError(d, e)?
Data and error / Data and no error, and fetching (this is outdated data due to a refetch of any kind) = interesting, didn't think about this case. Would Fetching work here, or do you think we need another case?

I think a complete variant type would be:
type stateT('data) =
  | Fetching
  | Error(CombinedError.t)
  | PartialResult('data, array(GraphQLError.t))
  | PartialStaleResult('data, array(GraphQLError.t))
  | Result('data)
  | StaleResult('data)
  | StaleEmpty
  | Empty;

I'd actually ignore Init and Inactive; It should sufficiently be covered by the other cases. If I get this right, Init is when we'd otherwise use Empty but !fetching applies? I'd argue that no UI would be interested in that usually, as they'd already be displaying data. This would also only happen when an exchange actively sends a teardown back, which currently only happens for subscriptions in a default environment.
I'd argue that stale is important, but we could also encourage people to not use the variant version of the result, if they have to deal with stale, partial Graphcache data, or cache-and-network updates 🤔
That brings us to errors and data. This is actually pretty common and I'd consider that most people would either have an API that sends them as metadata (e.g. "the user doesn't have permissions for this field") or as unexpected errors (e.g. TypeError on a deep resolver so the next optional parent is nulled out)
That means that, imho, Error(NetworkError.t) would be an interesting case, but the problem is that there can also be "catastrophic" GraphQLErrors, so it must still be CombinedError.t there.
So all in all for me that amounts to this:
type stateT('data) =
  | Fetching
  | Error(CombinedError.t)
  | PartialResult('data, array(GraphQLError.t))
  | Result('data)
  | Empty;

Without an Init state since it shouldn't usually happen, but an Empty state, and a PartialResult, where the Data is complemented by errors, which could then also circumvent the CombinedError.t stuff 🤔  The migration path then would be to use PartialResult(data, _) | Result(data) together in a case.

Closing this pull request in favor of a new one that I hope to put up this weekend!


"Unknown Author" user name showed when an user tries to access the pad using the "userName" GET parameter

Environment:
OS: Ubuntu 18.04
Browser: I tried with both Chrome and Firefox
Issue:
When a new user join a pad using the GET parameter "userName=exampleUserName" to set the username, all the people with the pad already open see "Unknown Author" next to the line the new user is editing.
Expected behavior:
The username of the new user is displayed correctly.
Steps to reproduce:

User A open a new pad at "https://etherpad.example.com/p/padName"
User B open the same pad using the "userName" GET parameter at "https://etherpad.example.com/p/padName?userName=B"
User B write some text
User A will see "Unknown Author" next to the text B just edited instead of "B" (note that in the Etherpad user list of A, B's user name is displayed correctly)

Note: if either user A or B enter in the Timeslider, "Unknown Author" will be changed to the correct value of "B" in the pad of A.

What version of Etherpad? Does the problem still exist if you run the latest commit on the develop branch?

I'm running on a docker image that I built from the latest commit 1d7a41f in develop. Sorry for not having specified it.
The issue arose while I was testing multiple Etherpad sessions using the same machine (I tried both with Chrome, user A in a normal tab and user B in a  "Private" mode tab and also by opening one session in Chrome and the other in Firefox).
Now that I had the chance to test it using 2 different PCs it works correctly.
I am wondering if this could be a corner case that could also show up in a normal use scenario or if it is simply related to the fact that I was using the same machine to open multiple sessions (and in the latter case I think this bug report can be closed).

Same machine but different browser/private mode should have different cookies so they should behave as if they were on different machines. There might be a race condition where it attempts to render the author name before it receives the author name from the Etherpad server.

Race condition confirmed.
I tried to put all the content of the exports.aceSetAuthorStyle function inside a setTimeout() with a timer of 500ms to delay the execution of the function, and indeed like this it works correctly.


EvseManager attempt to address errors seen with clearing events

Describe your changes
The following has been observed
Mar 06 08:31:16 manager[3415]: 2024-03-06 08:31:16.613914 [INFO] evse_manager:Ev  :: All errors cleared
Mar 06 08:31:16 manager[3415]: 2024-03-06 08:31:16.635325 [INFO] evse_manager:Ev  :: Cleared error evse_board_support/VendorError: Vendor specific error code. Will stop charging session. (FAULT_CT_CLAMP)
Mar 06 08:31:16 manager[3415]: 2024-03-06 08:31:16.636143 [INFO] evse_manager:Ev  :: All errors cleared
Mar 06 08:31:16 manager[3415]: 2024-03-06 08:31:16.669671 [INFO] evse_manager:Ev  :: Cleared error evse_board_support/VendorError: Vendor specific error code. Will stop charging session. (FAULT_CT_CLAMP)
Mar 06 08:31:16 manager[3415]: 2024-03-06 08:31:16.670540 [INFO] evse_manager:Ev  :: All errors cleared

This problem has been difficult to reproduce so unit tests were added and code reviewed to identify potential issues.

VendorError was missing from the all_cleared() check
the threads used to update shared_context in Charger.cpp. If both were blocked on state_machine_mutex then the ordering of events may not be maintained

Bit flags are used to replace individual boolean values since this makes the method all_cleared() trivial (is the value of the bit flags equal to 0) and should be easier to maintain should additional error types be added.
An event queue was used for pending updates to shared_context to ensure that event order is maintained.
Unit tests added for the new classes and to ensure correct operation of event handling.
Issue ticket number and link
Checklist before requesting a review

[X] I have performed a self-review of my code
[X] I have made corresponding changes to the documentation
[X] I read the contribution documentation and made sure that my changes meet its requirements

Can you have a look at the commit I added?

The change looks good to me.

I added a commit to fix the three lines that it always prints on start up and unplug ("All errors cleared" along with an error that the error could not be cleared because it was not raised earlier). This was broken for a long time and I though if we touch this now anyway.

This probably fixes https://github.com/EVerest/everest-framework/issues/156, right? I had tracked it down to everest-framework and assumed it needed to be fixed there.
In other words: Very welcome additional fix!

I added a commit to fix the three lines that it always prints on start up and unplug ("All errors cleared" along with an error that the error could not be cleared because it was not raised earlier). This was broken for a long time and I though if we touch this now anyway.

This probably fixes EVerest/everest-framework#156, right? I had tracked it down to everest-framework and assumed it needed to be fixed there.
In other words: Very welcome additional fix!

yes it fixes that


Improve PWA Support

Would you be open to improving PWA support?
At the least, adding support for caching the images/styles would be nice.
There could be a world where new items can be added "offline" and pushed when online.
My request mainly comes from  the pain of using the site on very slow (basically 3g) mobile data.
I don't have much experience with next or pwas but did some research and it seems like this tool is the current go-to for the combo and wouldn't be too hard to setup. https://serwist.pages.dev/

@scastiel inspired by the recent blog post and how much I use this app I was wondering again if you'd be interested in a PR for local-first support. Ofcourse trying to keep the changes minimal but I think it's doable.

Hey @RayBB, it turns out I'm starting to implement a tRPC API in #246. Feel free to review :)
I think it's a first good step to arrive to an offline-usable app :)

I'll have to do a little research on tRPC and how the changes work but I certainly think it's a step in the right direction.
In the mean time if anyone else wants to work on this feel free to!


Use anchor npm library rather than @solana/solidity

This removes all usages of the @solana/solidity npm library, and uses the anchor npm library instead.
This makes the @solana/solidity library obsolete.

I'm not very a very proficient typescript practitioner, but LGTM overall!


Request: Warn when ignored lines are actually reached

I use // istanbul ignore next and friends only to mark code that
should never be reached—for instance, internal assertion failures. In
the event that one of these ignored elements is reached, this
indicates a bug in my code. Ideally, a unit test would catch this, but
there are cases when it might not (e.g., an expect-to-throw unit test
that throws for the wrong reason, or code that attempts to gracefully
recover from the unexpected condition).
It would be nice for the CLI or lcov-report or other interface to
indicate to the user when an ignored element is reached. Currently, it
is not even possible to discern this from the lcov-report: if a line is
marked istanbul ignore if, then it has no execution count annotation
even if it was executed.
The docs indicate that an accepted use of ignore-directives, at at least
one point in time, was to inflate test coverage numbers by marking
reachable code that people simply don’t feel like testing. If
this is still the case, then this functionality should presumably raise
only a warning, or be opt-in/opt-out.

To be honest I'm not sure how this would be accomplished without major work to istanbul-lib-instrument.  In my own expect-to-throw tests I would test for a specific exception type so for example a test would only pass if a TypeError was thrown.  This is how I would differentiate between expected and unexpected exceptions.
I use the istanbul ignore directives to deal with situations that cannot be reasonably tested, usually where my code has to deal with an error that could be received from an external server.

If I may be so bold, it sounds like dead code is being kept around. My 2c would be to delete that code and if things break, you find your issue.
I'm going to close this issue for now, since I don't foresee this being a maintainable addition to istanbul. Please correct me if I'm wrong.

Hi @JaKXz—thanks for your response.

If I may be so bold, it sounds like dead code is being kept around. My
2c would be to delete that code and if things break, you find your
issue.

No, I definitely disagree with this statement. Assertions that verify
inline that the code is correct can be immensely valuable. For instance,
the implementation of CPython’s TimSort algorithm has 58 assert
statements by my count, which, assuming that the code is correct, can
not be hit no matter what inputs are provided. This does not make them
any less valuable: they help readers understand the code.
When Josh Bloch ported TimSort to the Java standard libraries,
these assertions were critical in helping him understand the code and
gain confidence that his implementation was correct. He says that even
with his unit tests, “Tim Peters' assertions were instrumental in
finding and fixing at least one bug in [his] port that would otherwise
have gone undetected”.
Here is a simple, self-contained example. Suppose that we implement a
binary search function, which includes an invariant check:
/** Return an index of `target` in sorted `arr`, or `-1` if none exists. */
function binarySearch(arr, target) {
    let lo = 0;  // lower bound, inclusive
    let hi = arr.length;  // upper bound, exclusive
    while (lo < hi) {
        const mid = lo + Math.floor((hi - lo) / 2);
        const here = arr[mid];
        if (here === target) {
            return mid;
        } else if (here < target) {
            lo = mid + 1;
        } else if (here > target) {
            hi = mid - 1;
        }
        // istanbul ignore next
        if (lo > hi) {
            throw new Error("Invariant violation!");
        }
    }
    return -1;
}

If the implementation is correct, that if-statement will never be
reached. This is a mathematical property: it’s not like there’s some
dependency that we can mock out to simulate a failure at a lower level
of the stack. And, indeed, we might write some small test cases and see
that they pass. Following your advice, we might remove the “dead” check.
But that implementation is in fact incorrect, and the invariant can be
hit on some slightly larger inputs: ([2, 4, 6], 1) returns the right
answer, but ([2, 4, 6, 8], 1) throws!
Now, we might have some code that exercises this, but catches the error:
try {
    loadPlugin(foo);  // transitively calls `binarySearch`
} catch (e) {
    useFallbackBehavior();
}

If the assertion were still around, Istanbul would be able to tell that
it was hit, and alert us that our invariant had been violated, even
though the calling code itself did not fail because the exception was
caught. Removing the assertion only makes the code less robust.
Does this make sense?

I think I see what you're saying @wchargin. It would be cool to replace //istanbul ignore next with //istanbul warn next.
//istanbul warn next could do the same thing as //istanbul ignore next (not count that line towards the coverage totals) but also throw a warning if coverage is collected.

@stale[bot]: This issue has not been resolved.

I'd added a label to prevent stale bot from touching this issue in the future.

Thank you!


How to assign dynamic value to TextInput using react native

In my scenario, while focus on TextInput i am moving to another scene using navigator (using push)there i populate list,in that list selecting one value that value should be populated to the previous scene of TextInput In this case I am unable to set the selected value to the previous scene of TextInput.

you can use EventEmitter, in previous scene addListener, and in another scene emit the event.

you could add it to your route object and send it along to the navigator

I am sending the route object through out the navigator,But in my scenario selected value should be reassign to the previous scene of TextInput .Here TextInput event structure is like the below
nativeEvent:
{ target: 2175,
pageY: 164.5,
locationX: 131,
changedTouches: [ [Circular] ],
locationY: 16.5,
identifier: 1,
pageX: 146,
touches: [],
timestamp: 6887223.188515 },
target: undefined,
currentTarget: null,
path: undefined,
type: undefined,
eventPhase: undefined,
bubbles: undefined,
cancelable: undefined,
timeStamp:<PHONE_NUMBER>722,
defaultPrevented: undefined,
isTrusted: undefined,
isDefaultPrevented: [Function],
isPropagationStopped: [Function],
_dispatchListeners: null,
_dispatchIDs: null }
Here i am assignnig like
this.nativeEvent.target = "myvalue"
this.nativeEvent.target .text= "myvalue" // Here ' this ' is route object
Both of this not working .What is the correct way to assign the value to the textinput.
The current object getting is ok, my problem is assigning the  selected value to the TextInput.

The way to assign a value to TextInput is <TextInput value={yourValue} />. This is covered in the TextInput documentation: https://facebook.github.io/react-native/docs/textinput.html#value
In the future please use Stack Overflow to ask questions and tag them with react-native: http://stackoverflow.com/questions/tagged/react-native
Many people from the community hang out on Stack Overflow and will be able to see your question. Using Stack Overflow for questions also helps us use Github issues to keep track of bugs that need to be fixed.

 This is  static assignment,but i want to set the value dynamically  to the TextInput.
Thanks.

It's not static: yourValue in ` is a variable.

'yourValue' is a variable ,i am passing that variable through out the navigator ,while selcting the list of value ,that value should be assigned to this variable like
yourValue="selectedvalue" this is not happened in my scenario.

var FirstComponent = React.createClass({
render:function(){
return()
}
})
function getData(ev){
var target = ev;
this.props.navigator.push({
id:'SecondComponent',
name:'SecondComponent'',
target:target,
})
}
var SecondComponent = React.createClass({
render:function(){
return(<TouchableHighlight onPress={fillData.bind(this,target, self.props.navigator,selectedText)}>sample)
}
});
function fillData(target,nav,selectedText,ev){
target =selectedText;
//Here target is root component this
//how to fill selectedText in FirstComponent TextInput value
}


updated for bevy 0.8

Thanks for the contribution! However, I will properly close this in favor of #15 (See the 0.8 branch)

Closing this as #15 is merged


Fixing links to common-data-types chapter (#272)

Fixes #272.

Good catch. Thanks.

👍

:+1:

:+1:


Using close button to dismiss

Can we add the close button at the top right corner?

Yes, you need install SparrowKit and see SPCircleCloseButton. I am added it button in pod now (version 1.5).


I try to get AP per class. And I have 14 categories, Why does it output only 12 category AP?

The label_list is correctly set, and the output of the AP score is missing the last two classes.
And, I tested the missing score category, the model correctly detect the object, so Where went wrong when accumulating the AP


ddicts not actually thread safe.

The thread safety check in tests/data/ddict.rkt is bogus. Increasing the number of elements (N) to 1000000 causes race conditions to become obvious on my computer.

Although a CAS is used in the implementation, the value to be replaced is extracted once in a function like ddict-set! — and used there to derive a new value — and then extracted again in try-update-mddict-content! for the CAS. To implement the intended atomic update, the content vector originally extracted in a function like ddict-set! needs to be used for the CAS.
Related to racket/racket#3457.


add Inflection Pi

#144
havent figured out how to make submit work

thank you! will merge after i fix conflicts


[BUG] Don't require .ready from spec players

Hello,
We've discovered a bug here. When a player came from a team to Spec he needed to type .ready to start the match. I set 'required players to be ready" to 0 because sometimes we play 3v3, 4v4, and 5v5 so 0 is the best option for us but Spec players shouldn't be forced to be ready, they are just viewers.

你好，
我们在这里发现了一个错误。当一名球员从一个球队来到 Spec 时，他需要输入 .ready 来开始比赛。我将“要求玩家做好准备”设置为 0，因为有时我们会玩 3v3、4v4 和 5v5，所以 0 对我们来说是最好的选择，但不应该强迫 Spec 玩家做好准备，他们只是观众。

Yes, this is very common. In future versions, I would like to add the option to calculate Spec or not

Hey!
Spec players can be admins as well, hence matchzy_minimum_ready_required 0 requires all the connected players to be ready. You can anytime adjust matchzy_minimum_ready_required using RCON or use .start to force-start the match.
Thanks!


[BUG] CTD when trying to start a new game

Describe the bug
i try to start a new game, but it crashes after loading screen. game dosent crash when loading previous saves so idk what could be the issue, error is recent and no recent changes or downloaded mods. no prior crashing like this when making new games in the past too.
To Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):

OS: windows 11

** FSMP**

tested on 2.0.3 beta , 2.1.3 , and latest 2.2.1
CUDA: No_CUDA
AVX: tested No_AVX,  AVX , and AVX2

SKSE

2.0.20

Skyrim

1.5.97

Required files

Join your configs.xml
Join your hdtSMP64.log

Additional context
Add any other context about the problem here.

no crashlog, no hdtSMP64.log, no configs.xml

no crashlog, no hdtSMP64.log, no configs.xml
my bad, new to using github. figuring out how to do things :_:

Crash_2024_2_26_7-21-21.txt
hdtSMP64.log

your configs.xml has no values in it. that's why the game CTDs
you also have no-esp.dll loaded, which does not work in anything except 1.5.97
get the FSMP MCM esp instead, which may fix your problem.

Not a FSMP bug.


strict() on zod objects within union

Description
Adding '.strict()' to the Zod objects within a union type, which appears to keep Zod from stripping properties via non-matching elements of the union.
Not sure if there are reasons to avoid strict here. If so, this PR may not be an appropriate solution for the problem. Additionally, this seems like questionable behavior on Zod's part and thus the "real fix" may be within Zod.
References
Fixes https://github.com/omar-dulaimi/prisma-zod-generator/issues/16

Thank you for the PR @kristinlindquist
I tested it both as a schema and through tRPC context, haven't faced any problems with it. The docs of Zod say that this method only disallows unrecognized keys, by throwing an error. I think this behavior is caused due to the recursive types we generate.
At any rate, this solution works for now. Until further research.