Add time-based install/upgrade policy

Follow-on to #235
Based on #232
Background
As a user, I want to restrict when upgrades and installations occur. For instance, to off-hours (e.g. after 9pm) or on specific days (e.g. Sundays). This should be flexible enough to specify multiple days and hours.
Acceptance Criteria

Add a time/day entry into the OperatorPolicy CR
Add code to support the time/day entry, kicking off operator resolution when a valid time is reached.
Unit/e2e-tests that verify desired behavior.
Demonstrate that upgrades do not occur except when the

Can I work on this one?

No intent to do this.


NIFI-7243 Upgraded com.hierynomus.sshj to 0.30.0

Description of PR
NIFI-7243 Upgrades com.hierynomus.sshj to version 0.30.0 to address an authentication race condition present in version 0.27.0.  The race condition can result in protocol errors when attempting authentication to some SSH servers.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[X] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[X] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[X] Has your PR been rebased against the latest commit within the target branch (typically main)?

[X] Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not squash or use --force when pushing to allow for clean monitoring of changes.

For code changes:

[X] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[ ] Have you written or updated unit tests to verify your changes?
[X] Have you verified that the full build is successful on JDK 8?
[ ] Have you verified that the full build is successful on JDK 11?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[ ] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check GitHub Actions CI for build issues and submit an update to your PR as soon as possible.

Merged, thanks @exceptionfactory !

Merged, thanks @exceptionfactory !


Error when calling DeleteAsync() on a query that uses Sql Server HierarchyId type as a column type

Thanks for the great library, we have just done an upgrade to .Net6 and are seeing the following error.
1. Description
When calling DeleteAsync() on a query that uses Sql Server HierarchyId type as a column type, we get an error (see below)
e.g.  (divisionId is type Microsoft.EntityFrameworkCore.HierarchyId)
  await _dbContext.TableName
                       .Where(table => table.DivisionId == divisionId)
                       .DeleteAsync();

2. Exception Stacktrace (trimmed to only include library component)
MetaType.GetMetaTypeFromValue(Type dataType, Object value, Boolean inferLen, Boolean streamAllowed)
MetaType.GetMetaTypeFromType(Type dataType)
SqlParameter.GetMetaTypeOnly()
SqlParameter.Validate(Int32 index, Boolean isCommandProc)
SqlCommand.BuildParamList(TdsParser parser, SqlParameterCollection parameters, Boolean includeReturnValue)
SqlCommand.BuildExecuteSql(CommandBehavior behavior, String commandText, SqlParameterCollection parameters, _SqlRPC& rpc)
SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean isAsync, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry, String method) SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) SqlCommand.ExecuteScalar() <>c.(DbCommand ) BatchDelete.Execute[T](IQueryable1 query)
BatchDeleteExtensions.Delete[T](IQueryable1 query, Action1 batchDeleteBuilder)
<>c__DisplayClass2_01.<DeleteAsync>b__0() Task1.InnerInvoke()
<.cctor>b__272_0(Object obj)
ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
Exception message:
"No mapping exists from object type Microsoft.EntityFrameworkCore.HierarchyId to a known managed provider native type."

4. Any further technical details
This was working fine until a recent upgrade to .Net 6 (from 3.1)
Using EF core 6.0.16

Hello @lsrigel ,
Just to give you an update: My developer has fixed this issue. The fix will be part of the next release, that will happen in 1 or 2 weeks.
Best Regards,
Jon

Thank you, appreciate the effort

Hello @lsrigel ,
Sorry for the delay, the fix has been finally been released today. If you are using EF Core 6, the fix should be available in the version v6.22.4
Best Regards,
Jon


Set readOnlyRootFilesystem as true for PAC resources

Setting Controller, Webhook and Watcher Deployments
securityContext readOnlyRootFilesystem to true
to increase the security and to avoid being flagged
by the security scanner.
Signed-off-by: Savita Ashture<EMAIL_ADDRESS>Changes

Submitter Checklist

[ ] 📝 Please ensure your commit message is clear and informative. For guidance on crafting effective commit messages, refer to the How to write a git commit message guide. We prefer the commit message to be included in the PR body itself rather than a link to an external website (ie: Jira ticket).

[ ] ♽ Before submitting a PR, run make test lint to avoid unnecessary CI processing. For an even more efficient workflow, consider installing pre-commit and running pre-commit install in the root of this repository.

[ ] ✨ We use linters to maintain clean and consistent code. Please ensure you've run make lint before submitting a PR. Some linters offer a --fix mode, which can be executed with the command make fix-linters (ensure markdownlint and golangci-lint tools are installed first).

[ ] 📖 If you're introducing a user-facing feature or changing existing behavior, please ensure it's properly documented.

[ ] 🧪 While 100% coverage isn't a requirement, we encourage unit tests for any code changes where possible.

[ ] 🎁 If feasible, please check if an end-to-end test can be added. See README for more details.

[ ] 🔎 If there's any flakiness in the CI tests, don't necessarily ignore it. It's better to address the issue before merging, or provide a valid reason to bypass it if fixing isn't possible (e.g., token rate limitations).

/lgtm

/test


Add support for region storage to the archive class

I always said that DAXA wouldn't do region detection itself, and I do stand by that as I view it as a separate problem to the acquisition and processing of X-ray data, but some generation steps for missions (like the creation of background maps for XMM for instance) require that regions be present so that known sources can be removed from the data.
As such, DAXA archives will have properties for storing and accessing regions (possibly on a mission by mission, and a global basis for when I start combining mission's data) - no source finding methods will be implemented in DAXA itself, but it might call some at  some point.

Definitely going to start off just letting each mission have its own set of region files, as I don't know what form combining missions is going to take yet.


Cluster-pod-args: Reuse struct types

Fixes https://github.com/google/clspv/issues/104

Tested on Release and Debug builds.

LGTM


Remove framework/base/Object.php

This is a suggestion for yii2. As Yii2 Object class is deprecated, I think this file should be removed from the repository in order to force the usage of BaseObject.

That would break every project that hasn't updated to BaseObject yet. That's the reason it's there.


PostgreSQL versions & platform support updates

Follow-up to https://github.com/ome/ansible-role-postgresql-client/pull/5 and related to the investigation of #27, this PR:

adds Ubuntu 20.04 to the platforms tested by Molecule and supported by the role
adds PostgreSQL 13 to the list of versions tested by Molecule
drops the usage of the deprecated postgresql_distribution_redhat variable as the RedHat variables can be constructed from the version directly like on Debian
simplify the Molecule tests to make use of built-in testinfra features (host.system_info, host.ansible) and remove the maintaining of a dictionary mapping hostnames to versions/distributions

db4a1d54ae097262071362c2a2260473470d32db removes a special handling of the psycopg2 installation which caused the installation of PSQL 13 to fail (see https://github.com/sbesson/ansible-role-postgresql/runs/6525049967?check_suite_focus=true) with
    fatal: [postgresql-13-c7]: FAILED! => {"changed": false, "msg": "No package matching 'python2-psycopg2' found available, installed or updated", "rc": 126, "results": ["No package matching 'python2-psycopg2' found available, installed or updated"]}

This workaround was introduced in https://github.com/ome/ansible-role-postgresql/pull/17. Looking at the original issue posted on the mailing list, it was an upstream suggestion applicable toversions PSQL 9.6 and earlier made in https://www.postgresql.org/message-id/9a97200b9bc167297e88f7be482634ddfb340ccf.camel%40gunduz.org and should be unncessary now that only PSQL 10+ are available in the RedHat repositories.
The addition of PSQL 14 to the Molecule scenarios  currently fails the idempotence tests. This is quite possibly related to #27  and I will investigate separately.

Is the proposal 5.2 or 6.0?

Let's meet in the middle at 5.2.0 🤝


🔧 fix: deprecate (#835)

Checklist

[ ] The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
[ ] I have read the Contributor Guide and followed the process outlined for submitting PRs.
[ ] I have updated/added tests for new/updated/fixed functionality.
[ ] I have updated/added dartdoc comments with ///.

Breaking Change

[ ] Yes, this is a breaking change.
[ ] No, this is not a breaking change.

Related Issues

Codecov Report

Merging #842 (a7861ab) into main (7ab5ed5) will increase coverage by 5.59%.
The diff coverage is n/a.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@            Coverage Diff             @@
##             main     #842      +/-   ##
==========================================
+ Coverage   81.37%   86.97%   +5.59%
==========================================
  Files         244       10     -234
  Lines        3093      238    -2855
==========================================
- Hits         2517      207    -2310
+ Misses        576       31     -545

see 234 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Adds ability to specify JSON prettified

Makes reading the JSON configuration a lot easier
Adds specs for both the function itself, and the parameter to enable
it on the defined type

Closing out old PR's, this is many years after the fact so I'm assuming it's super out of date! Closing 👍


feat: implement tars symlinks

fixes https://github.com/bazel-contrib/rules_oci/issues/508, needs https://github.com/bazel-contrib/rules_oci/pull/558 first.

@gregmagolan is case you are interested, this is the one that will make RBE go fast.

Seeing a lot of very similar errors when testing this one. At the surface, it looks like this broke all of our images that we pass tars to (built with pkg_tar in our case).

That is interesting, do you have more information on this? eg which service are you using?

This could be a Bazel bug!

That is interesting, do you have more information on this? eg which service are you using?

We use Buildbarn. As far as I can tell, from looking at what got scheduled remotely, this never hit the build cluster at all.


OLS-1031: Use buildah-10g

Description
Use buildah-10g
Type of change

[ ] Refactor
[ ] New feature
[ ] Bug fix
[ ] CVE fix
[ ] Optimization
[ ] Documentation Update
[x] Configuration Update
[ ] Bump-up dependent library
[ ] Bump-up library or tool used for development (does not change the final image)

Related Tickets & Documents

Related Issue #OLS-1031

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

Project coverage is 94.83%. Comparing base (3bc1fb5) to head (b3c458b).
Report is 6 commits behind head on main.

Additional details and impacted files

@@           Coverage Diff           @@
##             main    #1561   +/-   ##
=======================================
  Coverage   94.83%   94.83%
=======================================
  Files          60       60
  Lines        2671     2671
=======================================
  Hits         2533     2533
  Misses        138      138

/lgtm

/approve

/override "Red Hat Konflux / ols-enterprise-contract / lightspeed-service"

/override "ci/prow/unit"
/override "ci/prow/integration"


DOC-6964: Fix an issue where advisories wouldn't appear in the sidenav

Fixes DOC-6964

Something seems wrong in the preview. When I tried to view the Docs homepage, I am shown the / even though it looks like I am in /docs/. Then when I expand and click on Releases / Advisories, I am immediately taken to https://deploy-preview-16279--cockroachdb-docs.netlify.app/docs/advisories/a30821.html rather than the index. PTAL.


Recommendation for a installed extension

have a dev container with docker installed on remote but not locally
close the window and open it from the recent history again

My guess is that the recommendation is for local

My guess is that the recommendation is for local

Yes, Exe based recommendations should not be shown in remote window.

Yes, Exe based recommendations should not be shown in remote window.


⚠ gorzdrav.org has degraded performance

In 1859260, gorzdrav.org (https://gorzdrav.org) experienced degraded performance:

HTTP code: 200
Response time: 1658 ms

Resolved: gorzdrav.org performance has improved in f55cafd.


Switching to User privilege level

Hello,
I am simulating the SoC in bare-metal mode and trying to switch to the user privilege level.
This is the code I am using:
`    if (cpuId == 0) {
 uint64_t curr_pc ;
 asm volatile ( "auipc %0, 0x0 \n\t"
              : "=r"(curr_pc) );

 curr_pc = curr_pc + 24 ;

 asm volatile ( "csrw mepc, %0 \n\t"
           :
       : "r"(curr_pc) );

 uint64_t x = 0x00001800 ;

 asm volatile ( "csrc mstatus, %0 \n\t"
       :
       : "r"(x) );

 asm volatile ( "mret \n\t" );

`
But, I get the following assertion violation in the trace when I run this program:
`C0:       4158 [1][0] pc=[0080001048] W[r15=0000000080001048][1] R[r 0=0000000000000000] R[r 0=0000000000000000] inst=[00000797] [05] [0000000000] [3]
C0:       4159 [1][0] pc=[008000104c] W[r15=0000000080001060][1] R[r15=0000000080001048] R[r24=0000000000000003] inst=[000007e1] [05] [0000000000] [3]
C0:       4160 [1][0] pc=[008000104e] W[r 0=ffffffc6632117c6][1] R[r15=0000000080001060] R[r 1=0000000000000003] inst=[34179073] [05] [0000000000] [3]
C0:       4161 [1][0] pc=[0080001052] W[r15=0000000000002000][1] R[r 0=0000000080001060] R[r 0=0000000000000003] inst=[00006789] [05] [0000000000] [3]
C0:       4162 [1][0] pc=[0080001054] W[r15=0000000000001800][1] R[r15=0000000000002000] R[r 0=0000000000000000] inst=[80078793] [05] [0000000000] [3]
C0:       4163 [1][0] pc=[0080001058] W[r 0=8000000a00007800][1] R[r15=0000000000001800] R[r 0=0000000000000000] inst=[3007b073] [05] [0000000000] [3]
C0:       4164 [0][0] pc=[0080001058] W[r 0=8000000a00006000][0] R[r15=0000000000000000] R[r 0=0000000000000003] inst=[3007b073] [05] [0000000000] [3]
C0:       4165 [0][0] pc=[0080001058] W[r 0=8000000a00006000][0] R[r15=0000000000000000] R[r 0=0000000000000000] inst=[3007b073] [05] [0000000000] [3]
C0:       4166 [0][0] pc=[0080001058] W[r 0=8000000a00006000][0] R[r15=0000000000000000] R[r 0=0000000000000000] inst=[3007b073] [05] [0000000000] [3]
C0:       4167 [0][0] pc=[0080001058] W[r 0=8000000a00006000][0] R[r15=0000000000000000] R[r 0=0000000000000000] inst=[3007b073] [05] [0000000000] [3]
C0:       4168 [1][0] pc=[008000105c] W[r 0=4cc995994cc99599][0] R[r 0=0000000000000000] R[r 2=0000000000000003] inst=[30200073] [05] [0000000000] [3]
C0:       4169 [0][0] pc=[008000105c] W[r 0=4cc995994cc99599][0] R[r 0=0000000000000000] R[r 2=0000000000000000] inst=[30200073] [05] [0000000000] [0]
C0:       4170 [0][0] pc=[008000105c] W[r 0=4cc995994cc99599][0] R[r 0=0000000000000000] R[r 2=0000000000000000] inst=[30200073] [05] [0000000000] [0]
C0:       4171 [0][0] pc=[008000105c] W[r 0=4cc995994cc99599][0] R[r 0=0000000000000000] R[r 2=0000000000000000] inst=[30200073] [05] [0000000000] [0]
C0:       4172 [0][0] pc=[008000105c] W[r 0=4cc995994cc99599][0] R[r 0=0000000000000000] R[r 2=0000000000000000] inst=[30200073] [05] [0000000000] [0]
C0:       4173 [0][0] pc=[008000105c] W[r 0=4cc995994cc99599][0] R[r 0=0000000000000000] R[r 2=0000000000000000] inst=[30200073] [05] [0000000000] [0]
C0:       4174 [0][0] pc=[008000105c] W[r 0=4cc995994cc99599][0] R[r 0=0000000000000000] R[r 2=0000000000000000] inst=[30200073] [05] [0000000000] [0]
C0:       4175 [0][0] pc=[008000105c] W[r 0=4cc995994cc99599][0] R[r 0=0000000000000000] R[r 2=0000000000000000] inst=[30200073] [05] [0000000000] [0]
C0:       4176 [0][0] pc=[008000105c] W[r 0=4cc995994cc99599][0] R[r 0=0000000000000000] R[r 2=0000000000000000] inst=[30200073] [05] [0000000000] [0]
C0:       4177 [0][0] pc=[008000105c] W[r 0=4cc995994cc99599][0] R[r 0=0000000000000000] R[r 2=0000000000000000] inst=[30200073] [05] [0000000000] [0]
Assertion failed: 'A' channel carries Get type unsupported by manager (connected at Frontend.scala:341:21)
at Monitor.scala:72 assert (edge.manager.supportsGetSafe(edge.address(bundle), bundle.size), "'A' channel carries Get type unsupported by manager" + extra)
Note: The trace format is a little different, but I don't think that should be an issue (     printf("C%d: %d [%d][%d] pc=[%x] W[r%d=%x][%d] R[r%d=%x] R[r%d=%x] inst=[%x] [%x] [%x] [%d]\n",           coreMonitorBundle.hartid, coreMonitorBundle.time,           coreMonitorBundle.valid, csr.io.trace(0).exception,           coreMonitorBundle.pc,           coreMonitorBundle.wrdst, coreMonitorBundle.wrdata, coreMonitorBundle.wren,           coreMonitorBundle.rd0src, coreMonitorBundle.rd0val,           coreMonitorBundle.rd1src, coreMonitorBundle.rd1val,           coreMonitorBundle.inst, csr.io.trace(0).cause, csr.io.trace(0).tval,           csr.io.status.prv           ))
`

This is being processed within the rocket-chip (https://github.com/chipsalliance/rocket-chip.git) of which the CEP uses a fairly old version (Oct 2018).   While we have plans to upgrade, I cannot estimate exactly when that will occur.
I suggest looking into the rocket-chip repo to see if there is any info on the issue you are seeing.

Rocket Chip upgrade with CEP v2.6 release in September 2020.  I don't know if you are still working on this effort, but it would be good to hear if the problem is gone now.


firewall weekdays doesn't work

Hi Jo, others,
It looks like there is a problem with my implementation of the firewall time-based restrictions.  The UCi correctly contains option weekdays 'wed', but rule doesn't fire.  From re-reading the iptables extensions documentation it appears the issue may be that the weekday has  to have an initial capital letter (e.g. Wed).
Regards,
Daniel

Reading libxt_time.c confirmed that, should be fixed in 75b462f - thanks for the report


Some issues in Blog Page!

Hello @ANSHIKA-26,
This is Sneha, a contributor in GSSoC and also a  part of hacktoberfest.
feature request

In the blog page, neither the navbar is fixed nor there is any scroll back to top button, so there there is no way going back to other pages quickly.
The comment section can be made better by adding more css features.

The solution
A clear and concise description of what you want to happen.

I would like to add a scroll back to top button to quickly move to top from the end of the page.
Set the navbar fixed to move to other pages.
Enhance the comment section to make it more readable and beautiful.

I would like to work on this. Please assign this task to me and add the labels(gssoc-ext, hacktoberfest-accepted, level1/2/3).
Thank you!

all the 3 features you have listed are raised as individual issues


Detect new activity and do something with it

Can this integration detect when a new activity is uploaded.  So that I might iterate over each point to send to an http service.
I guess I need to to detect a new activity created.  And have all the gps points exposed.
By using the lat/long etc.  I've worked i of t a url for traccar to post as a device update.  I'd like to get all location information into traccar.  Along with my car and phone .  Because why not

dito, would be great to switch on the hot water on activity start...


:see_no_evil: fix: remove public from gitignore

Removed /public from gitignore, since these are necessary for examples to work.

Codecov Report

Merging #18 (7dcc906) into main (b8c4a10) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #18   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            7         8    +1
  Lines          196       200    +4
  Branches        56        58    +2
=========================================
+ Hits           196       200    +4

Impacted Files
Coverage Δ

packages/react-move-hook/src/util.ts
100.00% <ø> (ø)

packages/react-move-hook/src/index.ts
100.00% <100.00%> (ø)

packages/react-move-hook/src/useMovable.ts
100.00% <100.00%> (ø)

packages/react-move-hook/src/useMovableActions.ts
100.00% <100.00%> (ø)

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 aeb0081...7dcc906. Read the comment docs.


No Data Governance visible

Any info on how to make Data governance appear in the reports section, I'm a global admin and this article just "assumes" it's there already

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

ID: bd05a015-115f-0e1d-e607-64a0c08a77a1
Version Independent ID: 6ac538e0-2010-34db-7b06-d31272bfae28
Content: Data access governance reports for SharePoint sites - SharePoint in Microsoft 365
Content Source: SharePoint/SharePointOnline/data-access-governance-reports.md
Service: sharepoint-online
GitHub Login: @MachelleTranMSFT
Microsoft Alias: mactra

Hello @JamesMClinton
Do you refer to the menu option?
I tested and it is there for me in multiple tenants.

I'm happy for you, but how do I get it?

From: Andres Mariano Gorzelany @.>
Sent: 09 June 2023 18:20
To: MicrosoftDocs/OfficeDocs-SharePoint @.>
Cc: James Clinton @.>; Mention @.>
Subject: Re: [MicrosoftDocs/OfficeDocs-SharePoint] No Data Governance visible (Issue #3863)
Hello @JamesMClintonhttps://github.com/JamesMClinton
Do you refer to the menu option?
I tested and it is there for me in multiple tenants.
—
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/OfficeDocs-SharePoint/issues/3863#issuecomment-1584910137, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7EZZWBUCABZW2EQQCUDDITXKNLMBANCNFSM6AAAAAAY2XPCDU.
You are receiving this because you were mentioned.Message ID: @.***>
ESP Utilities Group
Bluebird House, Mole Business Park, Leatherhead, KT22 7BA
01372 587500
01372 377996
http://www.espug.com
The information in this email is confidential and may be legally privileged. It is intended solely for the addressee.
Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.

I'm reviewing the requirements, please let me know if you comply with

This feature requires a Microsoft Syntex - SharePoint Advanced Management license.

We appreciate any feedback that improves the content in the Microsoft docs but we haven't had any response from you so we are going to close this issue.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.


Run CI on Linux

I'm not sure if its as easy as this:
https://swiftenv.fuller.li/en/latest/integrations/travis-ci.html

Him, I have no idea what that's about

I also get weird errors in https://github.com/JohnSundell/Marathon/pull/127

Yeah, I have no idea what these errors are from. I'll keep looking into this

@orta Our Swift.package requires a Swift tools version of 4.0 but we have Swift 3 declared under swiftLanaguageVersions. Is this accurate?

I guess it depends on your perspective, Swift 4 has both Swift 3 and 4 inside the compiler. TBH though, 4 is a better call there

Maybe try stealing  this: https://github.com/vapor/vapor/blob/master/circle.yml

Thanks for picking up my slack 😅 ❤

Warnings

:warning:

No CHANGELOG entry added.

Messages

:book:

Just verifying this continues to work.

  Generated by :no_entry_sign: dangerJS

Heyyyy, that's it working 👍


Cannot modify frontmatter image path

Description
I'm running a Gridsome project and using Netlify CMS to manage my content. I've noticed that Netlify CMS stores images in the frontmatter of my markdown as a "relative" url. For example, a markdown file may look like this (several examples included with their states):
---
title: Initial Blog Post
# BROKEN: Error because of GraphQL "width" argument
cover_image: 2019-03-11-sample-image.png

# MISSING: Image is listed as "null"
cover_image: ./2019-03-11-sample-image.png

# WORKS
cover_image: /2019-03-11-sample-image.png
---

However, this (the first one) does not get parsed properly by Gridsome and will actually break the build, due to a GraphQL error when attempting to resize the image with the width argument. It seems that the frontmatter parser isn't handling the relative image path? I do not believe that Netlify CMS path can be changed to be "absolute", so is there a way to "hook into" the parsing and change the path for the frontmatter (and still have it interpreted by Gridsome)?
Steps to reproduce

Setup a basic Gridsome project (Gridsome Starter Blog works well)
Move the content/posts/images to static/images
Delete all blog posts except the one with a cover image
Change the remaining blog post cover image frontmatter path to an absolute path

Should be cover_image: /images/alexandr-podvalny-220262-unsplash.jpg

Build should work successfully
Remove the /images from the cover image path and update the Blog page and template image paths

src should be :src="/images/${$page.post.coverImage}"`
Frontmatter should be cover_image: /alexandr-podvalny-220262-unsplash.jpg

Build should work successfully
Update the cover image frontmatter path to start with ./

Frontmatter should be cover_image: ./alexandr-podvalny-220262-unsplash.jpg

Build should succeed but image is no longer there
Update the cover image frontmatter path to remove preceding path

Frontmatter should be cover_image: alexandr-podvalny-220262-unsplash.jpg

Build should fail

Expected result
I should be able to hook into the frontmatter parsing and change the image URL accordingly
Actual result
No way to make the relative image path work
Environment

Libs:
- gridsome version: 0.5.5
- @gridsome/cli version: 0.0.8

Browser:
- [x ] Chrome (desktop) version 72
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:
- Node version: 10.14.0
- Platform:  Windows

Others:

Something similar has been discussed for Gatsby [here](https://github.com/gatsbyjs/gatsby/issues/4753)

The error when using a frontmatter path starting without / or ./ is mentioned here: GitHub - Gridsome Starter Blog - #8

Gridsome will only process image paths which are relative to the file (eg. starts with ./ or ../). But you can try to set resolveAbsolutePaths: true as an option for the source to process absolute paths too. It's not documented yet, but should be pretty stable. Move your images from /static/images/* to /images/* and have /images/alexandr-podvalny-220262-unsplash.jpg as the field value. The images should be processed with this setup.
We might include hooks for modifying fields in 0.6.

Hm, it is already working with the absolute paths, without the option deliberately set anywhere. The problem I'm having is when using with another provider that does not use relative paths (ie. ./ or ../) or absolute paths. However, I'm not using them for images anymore as I couldn't get this working. Looking forward to 0.6!


ERROR [ 'Update job status exception, error is No such file' ], where to find trail log?

Hi,
After the following trail failed, where can I find the trail log to debug?(maybe some logging or Tensorboard code)
Thanks in advance.
[2020-1-7 23:25:06] INFO [ 'Datastore initialization done' ]
[2020-1-7 23:25:06] INFO [ 'RestServer start' ]
[2020-1-7 23:25:06] INFO [ 'Construct remote machine training service.' ]
[2020-1-7 23:25:06] INFO [ 'RestServer base port is 8086' ]
[2020-1-7 23:25:06] INFO [ 'Rest server listening on: http://<IP_ADDRESS>:8086' ]
[2020-1-7 23:25:09] INFO [ 'NNIManager setClusterMetadata, key: machine_list, value: [{"ip":"<IP_ADDRESS>","username":"simon","passwd":"1","port":22},{"ip":"<IP_ADDRESS>","username":"simon","passwd":"1","port":22}]' ]
[2020-1-7 23:25:09] INFO [ 'NNIManager setClusterMetadata, key: nni_manager_ip, value: {"nniManagerIp":"<IP_ADDRESS>"}' ]
[2020-1-7 23:25:09] INFO [ 'NNIManager setClusterMetadata, key: trial_config, value: {"command":"python3 -m torch.distributed.launch examples_ddppo.py","codeDir":"/tmp/simon/nni/annotation/tmpnfm717xs"}' ]
[2020-1-7 23:25:09] INFO [ 'Starting experiment: Cl1EzCKe' ]
[2020-1-7 23:25:09] INFO [ 'Change NNIManager status from: INITIALIZED to: RUNNING' ]
[2020-1-7 23:25:09] INFO [ 'Add event listeners' ]
[2020-1-7 23:25:09] INFO [ 'RestServer start' ]
[2020-1-7 23:25:09] INFO [ 'RestServer base port is 8087' ]
[2020-1-7 23:25:09] INFO [ 'Run remote machine training service.' ]
[2020-1-7 23:25:10] INFO [ 'NNIManager received command from dispatcher: ID, ' ]
[2020-1-7 23:25:10] INFO [ 'NNIManager received command from dispatcher: TR, {"parameter_id": 0, "parameter_source": "algorithm", "parameters": {"examples_ddppo/config.num_workers/choice": 8}, "parameter_index": 0}' ]
[2020-1-7 23:25:14] INFO [ 'submitTrialJob: form: {"sequenceId":0,"hyperParameters":{"value":"{\\"parameter_id\\": 0, \\"parameter_source\\": \\"algorithm\\", \\"parameters\\": {\\"examples_ddppo/config.num_workers/choice\\": 8}, \\"parameter_index\\": 0}","index":0}}' ]
[2020-1-7 23:25:19] INFO [ 'Trial job AdfZm status changed from WAITING to FAILED' ]
[2020-1-7 23:25:19] INFO [ 'NNIManager received command from dispatcher: TR, {"parameter_id": 1, "parameter_source": "algorithm", "parameters": {"examples_ddppo/config.num_workers/choice": 16}, "parameter_index": 0}' ]
[2020-1-7 23:25:24] INFO [ 'submitTrialJob: form: {"sequenceId":1,"hyperParameters":{"value":"{\\"parameter_id\\": 1, \\"parameter_source\\": \\"algorithm\\", \\"parameters\\": {\\"examples_ddppo/config.num_workers/choice\\": 16}, \\"parameter_index\\": 0}","index":0}}' ]
[2020-1-7 23:25:29] ERROR [ 'Update job status exception, error is No such file' ]
[2020-1-7 23:25:29] INFO [ 'Trial job KaaU1 status changed from WAITING to RUNNING' ]
[2020-1-7 23:25:29] INFO [ 'Change NNIManager status from: RUNNING to: NO_MORE_TRIAL' ]
[2020-1-7 23:25:34] ERROR [ 'Update job status exception, error is No such file' ]

Hi. Thanks for raising this issue. You can find the log path here:

Since you are running in remote training service mode, you might need to login to check.


optimized the search engine

In some cases we don't get a result if we're using the advanced title search method.
In that case we're switching to the normale search engine.
To reduce the false positive ones, if we're using the normale search engine 'all'... it will first check the 'movie' ones, after that the 'tv' ones. Each result will be compared with keyword and the most accurate one will be fetched.
For Example: Peoples Republic of Desire 2018

@bla0r Shouldn't we set the original search as default and the new one as optional? Frankly, we had one user complaining about that. But if we set the new search as default, we make so much requests to IMDb that are basically useless for most people out there... I don't know.

In most cases we find the right title with the advanced search. So i think its the best way.
Or we set an option
const IMDB_DEFAULT_SEARCH = true/false


Filling out the PrunedLiveness utility for composition with other OSSA utilities

This small collection of liveness utilities each does one only thing and makes no unnecessary assumptions about the client.
It is meant to compose cleanly with other utilities. It is flexible enough to represent any SIL lifetime or scope, characterized by a set of dominating points. It can handle a lifetime or scope with multiple SSA values just as efficiently as it handles a single SSA value.
All of the above makes it extremely useful as a building block for simple and efficient OSSA utilities.
This will also allow CanonicalOSSALifetime (CopyPropagation) to be cleaned up and extended for other purposes. It was originally meant to do only one thing, but now has logic for multiple modes embedded within it and would need callbacks for diagnostics. Instead the OSSA analysis and "copy propagation" logic need to be decoupled.

@swift-ci smoke test


Total Edits (Fiddler Warning/Ending and Start Error Message)

After 2 hours of the game the bot will send a request in chat for a fiddler to be implemented. After 3 hours of the game the bot will remind the ST that they have to implement a fiddler. These messages only send if the ST is active. Additionally made the re-rack timer only send if the ST it is for is active. (also switched a " pair for a ' pair on L393 because my bot didnt like it)

I dont know why the merge pull requests are in here :P

Added the Start Error Message change to this PR so it includes both changes at once (and changed the title appropriately)


deleter: handle non-openpilot created files

Description
deleter.py can't delete top-level files.
For #30102
Verification
There is a new unit test in system/loggerd/tests/test_deleter.py.
Partially based on previous PR

Can someone check my attempt?


Test fail when run using Visual Studio 15.7.5 and Resharper 2018.1.3 but not from build.cmd for net45

When running test inside Visual Studio using Resharper I noticed that 13 tests are failing. However when I run the test from build.cmd everything passes. I just updated my Visual Studio and Resharper today and noticed this to be the case.

An example of a test that fails is:
https://github.com/castleproject/Windsor/blob/81fbdf084d3b6e235ff54c4f29bbc8d93fd408ec/src/Castle.Windsor.Tests/Lifecycle/DisposeTestCase.cs#L95-L112
Assert.IsFalse(weak.IsAlive); appear to be having a problem.

Did you have dotMemory and dotTrace installed before this started failing? I've run the tests with them installed before but maybe something has changed with their instrumentation that is causing the short lived objects not to get garbage collected when asked.
Could you try some of the suggestions in this StackOverflow thread to see what fixes it:
https://stackoverflow.com/questions/15205891/garbage-collection-should-have-removed-object-but-weakreference-isalive-still-re

@jonorossi You are right. Today I started profiling some integration tests on another project and file locks were kicking in and failing tests. I will re-post this on the JB issue tracker.

The answer is upgrade, and upgrade often. Works for ...

@fir3pho3nixx I'm afraid it doesn't. Maybe related to some setting (in VS or R#), or installed components?
I have the exact same versions in either case.

Are you opening the solution with elevated privileges? Which tests are failing for you?

Are you opening the solution with elevated privileges?

I am. My Visual Studio is set to always run as Administrator. Now that I mention it: I am on 2017 Professional whereas you are using Community.

Which tests are failing for you?

13 tests, so assuming the same ones as did for you earlier.
TXT export of the run here.

@mario-d-s
Have you taken the latest updates from Visual Studio? Quite a few got barreled out over the past few days.

@fir3pho3nixx I just did, still 13 tests are failing. I'm thinking this must be related to the compiler. For example I have the .NET 4.7.2 SDK installed and these are the properties of CSC.exe:

@mario-d-s can you please try with the latest VS/RS updates and tell me if anything changes? I have not seen any problems.

Marking this as abandoned. I don't have this issue at work or on BYOD.

Reproing on VS 15.8.7 and ReSharper 2018.2.3 which are current as of today.
In every case, the problem is that the WeakReference the test creates is alive when the test expects it not to be.
In particular, this trivial test (which follows the same pattern that the real tests depend on) fails:
		[Test]
		public void Test()
		{
			var weak = new WeakReference(new object());
			GC.Collect();
			Assert.IsFalse(weak.IsAlive);
		}

Therefore, all the real tests have some hidden assumptions about the timeframe in which GC will certainly happen. There should probably be a test helper which actually ensures GC.

Discovered that the problem disappears when the solution configuration is switched to Release. In Debug, this test never completes. In Release, it completes instantly:
			var weak = new WeakReference(new object());

			while (weak.IsAlive)
			{
				GC.Collect();
			}

In Debug mode, this is the IL:
  .method public hidebysig instance void
    SimpleRepro() cil managed
  {
    .custom instance void [nunit.framework]NUnit.Framework.TestAttribute::.ctor()
      = (01 00 00 00 )
    .maxstack 1
    .locals init (
      [0] class [mscorlib]System.WeakReference weak
    )

    IL_0000: nop

    IL_0001: newobj       instance void [mscorlib]System.Object::.ctor()
    IL_0006: newobj       instance void [mscorlib]System.WeakReference::.ctor(object)
    IL_000b: stloc.0      // weak

    IL_000c: call         void [mscorlib]System.GC::Collect()
    IL_0011: nop

    IL_0012: ldloc.0      // weak
    IL_0013: callvirt     instance bool [mscorlib]System.WeakReference::get_IsAlive()
    IL_0018: call         void [nunit.framework]NUnit.Framework.Assert::IsFalse(bool)
    IL_001d: nop

    IL_001e: ret
  }

Release mode uses the evaluation stack instead of storing and loading from a local:
  .method public hidebysig instance void
    SimpleRepro() cil managed
  {
    .custom instance void [nunit.framework]NUnit.Framework.TestAttribute::.ctor()
      = (01 00 00 00 )
    .maxstack 8

    IL_0000: newobj       instance void [mscorlib]System.Object::.ctor()
    IL_0005: newobj       instance void [mscorlib]System.WeakReference::.ctor(object)

    IL_000a: call         void [mscorlib]System.GC::Collect()

    IL_000f: callvirt     instance bool [mscorlib]System.WeakReference::get_IsAlive()
    IL_0014: call         void [nunit.framework]NUnit.Framework.Assert::IsFalse(bool)

    IL_0019: ret
  }

ReSharper is behaving as you'd expect for a .NET assembly compiled in debug mode. You'd get the same behavior if the test was a console app. The oddball is VSTest; these tests wouldn't normally pass if the project is compiled in debug mode.
Good answer here: https://stackoverflow.com/questions/37462378/why-c-sharp-garbage-collection-behavior-differs-for-release-and-debug-executable

What works is this pattern, never evaluating the expression that returns the tracked instance within the method but rather within a call that returns:
		[Test]
		public void Managed_externally_factory_component_transient_is_not_tracked_by_the_container()
		{
			Kernel.Register(Component.For<DisposableComponent>()
			                	.LifeStyle.Transient
			                	.UsingFactoryMethod(() => new DisposableComponent(), managedExternally: true));

			var weak = GetWeakReferenceForTesting(Kernel.Resolve<DisposableComponent>());
			GC.Collect();

			Assert.IsFalse(weak.IsAlive);
		}

		private static WeakReference GetWeakReferenceForTesting(Func<object> getInstanceToTrack)
		{
			return new WeakReference(getInstanceToTrack.Invoke());
		}

Hey, while refactoring all the WekReference tests to use a new helper API, I discovered that @ivan-danilov had run into (and documented) this exact same issue on a single test:
https://github.com/castleproject/Windsor/blob/07e4b667c1826decdba1724642d6d68c2080c64e/src/Castle.Windsor.Tests/Lifestyle/ScopedLifestyleTestCase.cs#L179-L201
See https://github.com/castleproject/Windsor/pull/138 for that pull request.

This exact issue was also discovered on two other tests by @alinapopa and discussed here: https://github.com/castleproject/Windsor/pull/235#discussion_r117166843
https://github.com/castleproject/Windsor/blob/07e4b667c1826decdba1724642d6d68c2080c64e/src/Castle.Facilities.WcfIntegration.Tests/Client/WcfClientFixture.cs#L268-L272
https://github.com/castleproject/Windsor/blob/07e4b667c1826decdba1724642d6d68c2080c64e/src/Castle.Facilities.WcfIntegration.Tests/Client/WcfClientFixture.cs#L351-L355


Import-Module fails with error "ParserError: Missing expression after ','."

Full error message:

ParserError: Missing expression after ','.
Import-Module: The module to process 'Pslogg.psm1', listed in field 'ModuleToProcess/RootModule' of module manifest 'C:\Temp\Pslogg\2.0.0\Pslogg.psd1' was not processed because no valid module was found in any module directory.

Import-Module with verbose flag shows the import process appears to be parsing the Pslogg.psd1 file okay but failing when loading Pslogg.psm1.
Opening Pslogg.psm1 in Visual Studio Code shows several lines where the Parameter attribute wraps onto a new line have Unicode character U+fffd at the start of the second line.

Fixed in v2.1.1.

Fixed in v2.1.1.


count_scalar gone from prometheus 1.8.2

In prometheus 1.8.2's change log， it said that the function count_scalar is removed，so, some dashboards which use this function may cause an error. which function i can use to replace? maybe 'absent'?
error thrown is "grafana unknown function with name count_scalar" for one of the graphs.
solution is to replace count_scalar(...) with scalar(count(...))
credit: https://github.com/grafana/grafana-plugins/issues/45

The solution was merged time ago. Thanks for the report.


gha: fix waiting for images in conformance-gingko

Let's add an explicit dependency to the wait-for-images job, so that subsequent jobs are not started until the images are actually available. This also prevents starting the full matrix jobs if the images don't get ready in time.
Example run after the fix (with reduce timeout to trigger failure): https://github.com/cilium/cilium/actions/runs/5812104573/job/15756825851

/ci-ginkgo

/ci-ginkgo

/test


Crash Mahapps In Release

Hello When I Run Project On My PC It's Work
But When I Run It On Client PC It's Crashed
Here is the Message:
Problem signature:
Problem Event Name:  CLR20r3
Problem Signature 01:  DoctorNobatDehi.exe
Problem Signature 02:  <IP_ADDRESS>
Problem Signature 03:  58a712cd
Problem Signature 04:  MahApps.Metro
Problem Signature 05:  <IP_ADDRESS>
Problem Signature 06:  5893a46a
Problem Signature 07:  372
Problem Signature 08:  127
Problem Signature 09:  System.NullReferenceException
OS Version:  6.3.96<IP_ADDRESS>.256.48
Locale ID:  1033
Additional Information 1:  5861
Additional Information 2:  5861822e1919d7c014bbb064c64908b2
Additional Information 3:  f0d1
Additional Information 4:  f0d1dbd1567564468dabe2f29efc18be
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=280262
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
The Client Has .net Framework4 and 4.5
the program target is .net framework4 client
i use vs 2015 and mahapps version is 1.4.0
I test it first on 1.3.0 the update it but the issue did not fix

@HashemKalan That's odd. Can you try catch all exceptions? So maybe you can see what's really happen. Is this running on a normal pc? Or is it running over remote desktop? Has the user really the same .Net Framework? And hat about the user rights?
Found this, but don't know if it can help http://hasstoppedworking.com/fix-clr20r3-event-issues/

@HashemKalan Any news for your issue? Did you tried to get more information for this exception?


Setting dynamic post login redirect url

Explain your changes

Added post_login_redirect_url as a query param in the login URL, so the user can set dynamic post login/register redirect in the direct URL. Naming post_login_redirect_url is a must.
Stored the post_login_redirect_url into sessionStorage for later redirect on a callback from kinde.

Checklist

[x] I have read the “Pull requests” section in the contributing guidelines.
[x] I agree to the terms within the code of conduct.

🛟 If you need help, consider asking for advice over in the Kinde community.

Summary by CodeRabbit

New Features

Added the ability to store and retrieve a post-login redirect URL, improving user experience by directing them to a specific page after login.

I will test this out properly tomorrow and merge once checked over.  Code looks good though

All tested looks good, once I realised that the PR description was out of date .. I have updated!


contrib: names: update field boosts and mapping

Fixes: https://github.com/inveniosoftware/invenio-app-rdm/issues/2756
The names in the database and index are inverted, therefore the suggest API first tries to search on the last name and prioritizes that due to how edge ngram works for the suggest API.
This solution add suggest API for given name for better results.

can you add a test like https://github.com/inveniosoftware/invenio-vocabularies/blob/master/tests/contrib/funders/test_funders_resource.py#L124 :)

ES tests are failing

@jrcastro2 ES tests are removed in #372 😅
Didn't wanna duplicate it here to prevent merge conflicts


FIX #54: Handled skipped status so that dashboard could show current status

Codecov Report

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

@@           Coverage Diff           @@
##           master      #55   +/-   ##
=======================================
  Coverage   60.95%   60.95%
=======================================
  Files          13       13
  Lines         356      356
  Branches       73       73
=======================================
  Hits          217      217
  Misses        116      116
  Partials       23       23

Impacted Files
Coverage Δ

src/utils.js
90.9% <100%> (ø)
: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 3e5322a...c336594. Read the comment docs.


Update the supported Language/platforms list

The default image supports now more languages and platforms.
https://github.com/microsoft/vscode-dev-containers/tree/master/containers/codespaces-linux

Why: having up-to-date supported language list is good.

What's being changed: List of supported language. Copy-and-pasted from the codespaces-linux readme.

Check off the following:

[x] All of the tests are passing.
[x] I have reviewed my changes in staging. (look for the deploy-to-heroku link in your pull request, then click View deployment)
[x] For content changes, I have reviewed the localization checklist
[x] For content changes, I have reviewed the Content style guide for GitHub Docs.

Thanks so much for opening a pull request @hyangah! These changes look great ⚡ I'll update the branch and get this merged once tests are passing 🍏


[Event Request] table 37 "Sales Line" - OnInsertFreightLineOnAfterCheckDocumentNo

Can you add Rec as reference to event OnInsertFreightLineOnAfterCheckDocumentNo?
I need to transfer SuspendStatusCheck from Rec to SalesLine, like this:
SalesLine.SuspendStatusCheck(Rec.GetSuspendedStatusCheck());
        SalesSetup.Get();
        SalesSetup.TestField("Freight G/L Acc. No.");

        TestField("Document No.");
        // >>>>>>>>>>>>>>>
        //OnInsertFreightLineOnAfterCheckDocumentNo(SalesLine);
        OnInsertFreightLineOnAfterCheckDocumentNo(SalesLine, Rec);
        // <<<<<<<<<<<<<<<

        SalesLine.SetRange("Document Type", "Document Type");

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


⚠ Mobitopup has degraded performance

In 5605400, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 9776 ms

Resolved: Mobitopup performance has improved in 379744a.


What the desc_act actually means?

just curious, I can't figure exactly that what the meaning of desc_act parameter?

From this source,

Finally, the desc_act (also called act order) is a tricky parameter. It allows you to process rows based on decreasing activation, meaning the most important or impactful rows (determined by sampled inputs and outputs) are processed first. This method aims to place most of the quantization error (inevitably introduced during quantization) on less significant weights. This approach improves the overall accuracy of the quantization process by ensuring the most significant weights are processed with greater precision. However, when used alongside group size, desc_act can lead to performance slowdowns due to the need to frequently reload quantization parameters.


Support Swift Package Manager

Hey there! Thanks for putting out something new with support for Swift 5, etc.. Any chance this could be made available with the new SPM?

@crashoverride777 I'm about ready to integrate with this. I'll checkout your branch this weekend if you haven't made it around to testing & merging. Thanks.

Hey,
I am so sorry, I did get around to test this yet. I believe it should be ready, just want to double check that it did not break cocoa pods. Sorry first time integrating swift package manager. I’ll try to get it done this weekend.

Hey,
I got the swift package manager working, just tested with a sample app and it works as expected. Will just check the cocoa pods and the update should be out latest tomorrow.
Thanks for your patience.

Hey,
I just pushed v6.1.0 with the swift package manager support. If you have any problems please do not hesitate to open another issue.


Could you tell me a function?

How do you get the cost through wirelength and area?
Thank you!

add wirelength,congestion and Density together,you will get the result

See cost_info_function for how cost is calculated.


Setup GitHub Code Scanning

Author checklist

[ ] Include primary ticket number in title - e.g. "#123 New styling for widget" - and any additional tickets in description
[ ] Fill in the details below and delete as appropriate
[ ] Be proactive in getting your work approved 💪

What's included?
A script that enables GitHub Code Scanning to run on a schedule.
Who should test?
✅ Developers
How to test?
Once the code has been merged, GitHub should start scanning the main branch every day and alerting us when it finds vulnerabilities in code, i.e. code that could allow remote code injection attacks, unsanitised inputs to be maniuplated, etc.
Risk - how likely is this to impact other areas?
🟢 No risk - this is a self-contained piece of work
Additional context
Include screen grabs, notes etc.

PREVIEW:DEVELOP
can be OFF, DEVELOP or STAGING

What do we need to do to test this PR? - Please check the template when creating the PR and fill in the information. Thanks.

What do we need to do to test this PR? - Please check the template when creating the PR and fill in the information. Thanks.

Yes, good point. I have filled in the test script now. I don't think there is any testing required for this branch as such. The Code Scanning should become active once this PR is merged into main.

@HalcyonJAC thank you for the reply. The ideal is to have tickets for every code that we commit to the repositories. This helps to look back into the code into the future and have some documentation (the ticket) about the rationale for changing code. - (btw this was merged without approvals)


feat: implement custom orm on top of knex.js

Description
This PR implements a custom ORM for Lux built on top of Knex.js.
Since the inception of Lux, there have been multiple attempts to have a Model API consistent with the rest of Lux. We have previously gone through Sequelize which was removed due to poor perf and unnecessary complexity and most recently node-orm2 which was removed due to a poor api, stagnant/dated code base, and a lack of support for polymorphism.
Other ORMs have been observed (such as Bookshelf) but none have really revealed themselves to be a good fit for Lux. The biggest issue being the lack of ES6 Class support.
--
Benefits
With our own ORM we now have a stable model layer built specifically for Lux, allowing us to take full advantage of ES6 classes, get/set property descriptors for attributes and relationships, etc.
A few features from this PR include:

Implicit attribute definitions based on the state of your database schema during the application's boot
Rails style db seeding and migrations
Optimized SQL calls for nested relationships (sparse field-sets of included resources filter what we SELECT on a related table)
Better relationship declarations
General perf improvements

--
Pending Items

[x] Dirty Attribute Checking
[x] Migrations
[x] Seeding
[X] Minor Optimizations
[x] Validations

--
Post Merge Items

Update guides and example apps
Add support for polymorphic relationships
Add support for join tables/has many through relationships
Better test coverage for the standalone functionality of the Database, Model, and other orm related modules

lux destroy does not remove the line from the generate command
resource('models');

@jhliberty that's fixed in ecb94aa 👍


tick local executor

Objective

#4466 broke local tasks running.
Fixes https://github.com/bevyengine/bevy/issues/6120

Solution

Add ticking local executor back into scope
add ticking local executors into thread executors

Changelog

tick all thread local executors in task pool.

Notes

Not 100% sure about this PR. Ticking the local executor for the main thread in scope feels a little kludgy as it requires users of bevy_tasks to be calling scope periodically for those tasks to make progress.
This PR doesn't help if you use AsyncTaskPool::get().spawn_local() or IoTaskPool::get().spawn_local(), since the scope for those is never called.

Can we add an integration test with this PR? This code is clearly tricky to reason about and we were caught totally off-guard by the regression.

I'm not that acquainted with async to what a better state would look like tbh.
AFAIK #4466 was our only option to defer system task spawning, given the constraint that the system executor has to be a "can run anywhere task" to not block/get blocked by systems that access thread-local resources.

This PR doesn't help if you use AsyncTaskPool::get().spawn_local() or IoTaskPool::get().spawn_local(), since the scope for those is never called.

I think #4740 would fix this, but I'm not too familiar with the details. Is it fair to say the issue here is that thread-local executors should be ticked regardless, whether in a scope or not, but currently it's only happening inside a scope?

Is it fair to say the issue here is that all LocalExecutors should be ticked whether or not we're in a scope, but this whole time it's only been happening inside a scope?

yeah. The issue is that the LocalExecutor needs to be ticked on the main thread and so has to cooperate with everything else the main thread has to do. It might make more sense to tick all the global task pools inside the app runner instead of the scope and add some docs to the TaskPools that "it might be up to the user to tick the local executor on the main thread" for situations where the user isn't using app or using a custom runner.

I still want to add a test for ticking the local executors, so please wait on that before merging.

@hymm can you rebase this? :)


Context menu is slow to show up

I don't know why, but there is always significant delay when I right click to get the context menu. It may be querying the database and looping though all annotations or something, but it's definitely much slower to respond than would be needed in a high-throughput project. Not a high priority issue, but would definitely be great if we can pinpoint and eliminate the cause for the delay. Thanks!

I'm closing this again.  Even with thousands of elements, the context menu seems snappy.


Improve listsinceblock RPC results

Include the last block hash in the listsinceblock RPC results. It is used in the go BGL bridge service module.
Background
I am working on fixing some issues in the gobglbridge code base. However, I discovered that it doesn't even build out of the box because the github.com/toorop/go-bitcoind module it depends on (the base repository for this fork) doesn't return the lastblock string in its ListSinceBlock RPC method results, but the bridge module seems to be expecting that it does. This makes me think that the go-bitcoind module must have been modified locally in the developer's machine to make it work.
This PR adds the fix to this fork of the module so that it can be included in the bridge module properly. I will update the bridge module accordingly and post a PR in its repository when this PR has been merged.
Notes
I've also renamed the module to reflect the official GitHub repository, and updated the readme and example code to reflect that. In addition, I've updated the dependencies and fixed the tests that broke as a result. Test suite has been updated to work with the updated API.

Hello @0xdevolution :wave: ,
This is is indeed great, I worked on this library. Would be great to Review this PR and add more insights.

Indeed, a patched version of go-bitcoind was used,
As this is now used in bridge implementation, checked updates and merging this. Good job.


Powershell Guidelines

It would be nice to expand out our guidelines to include PowerShell as well. People with input on ideas or willing to help build it out feel free to comment here.

Agreed... I would welcome the opportunity to participate.


New version: ForgQi.biliup-app version 0.5.2

Created by 🥟 Dumplings in workflow run #5376.
Logs
Updated: 0.5.1 → 0.5.2
Submitting WinGet manifests

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Installation failed with exit code -1978335187
2024-05-25 17:19:04.818 [FAIL] Installer failed security check. Url: https://github.com/biliup/biliup-app/releases/download/app-v0.5.2/biliup-app_0.5.2_x64_en-US.msi Result: 0x80004005

Automated error analysis suggests -1978335187 may mean Installer failed security check. Another script should retry this every 18 hours.
(Automated response - build 881.)

@wingetbot run


[launching-pad] Find a home for the Community Localization Team

This is a tracking issue for finding a long-term home for the Community Localization team.
Leads:

@vertexclique
@Manishearth

Hey there all, I'm James, the Leadership Council member for the Launching Pad Team, and as part of https://github.com/rust-lang/leadership-council/issues/118, I'm starting the triage process of trying to find permanent homes for teams currently under the launching pad.
In this first pass, I'm making tracking issues for each of the teams, starting the discussion on whether y'all think there is a reasonable team you think would make sense to move under, and in general checking whether the members of these teams are still actively working on things related to these teams.
There is also a separate tracking issue for the top level community team here: https://github.com/rust-lang/leadership-council/issues/128
Could anyone help me enumerate the current activities and responsibilities of the Community Localization subteam, and whether this subteam is generally still active?
Thank you!

The team hasn't been doing anything for a while since the community team was shut down. There is work for the team to do: forming translation teams for rustc and building out that process would be great. I'm happy to provide guidance on what work needs to be done there, but I cannot do it myself at this time.
So we're not active, but such a team would be good to have if we can find someone to help run it.

Thank you @Manishearth - that helps a lot! I've noticed the start of a theme (and sort of expect it to continue as I work down the launching pad teams), of team members that are no longer able to be active, but the work is still needed and desirable for the project. I've taken note of this and started discussing with the Council how we can support this.
I'll come back when I have more to share, feel free to add anything else you think is relevant!

Another relevant thing is that rustc has support for i18n but the lack of anyone willing to coordinate this work: specifically, building up translation teams led by trusted individuals, has led to that work being unused and in danger of being ripped out. It would be really nice if some resources could be allocated to this work to get it started, the Chinese community in particular really wants translated rustc.


Return outside function is allowed

Example
Moose Interpreter (https://github.com/flofriday/Moose)
Written with <3 by Jozott00 and flofriday.
> return 23
ReturnSignal(value: 23)

This sholdn't be allowed and catched by the typechekcer.

This is now fixed.
I will add some tests to assure that it won't break in the future.


[Question] meteor_autoupdate_clientVersions and meteor.loginServiceConfiguration

Hi.
Thank you for your great package.
Finally I am suffering with waiting time for meteor_autoupdate_clientVersions and meteor.loginServiceConfiguration.
Can I avoid them by your method?

I'm getting this same issue actually in my production app... huge wait times on both of these, mostly on meteor.loginServiceConfiguration.  Did you ever find a solution to this?


[libssh] disable gssapi

What does your PR fix?
The .pc file of libssh does not add the appropriate linking flags for gssapi when it is found as a system library on linux or osx. This patch disables the feature so libssh can still be linked against on those platforms. Potential fix for Fixes #18166.

Which triplets are supported/not supported? Have you updated the CI baseline?
No changes.

Does your PR follow the maintainer guide?
Yes, to the best of my knowledge.

Yes.

Thanks for your fixing @mcmtroffaes.

Thanks @mcmtroffaes !


Testing

https://www.mathworks.com/help/releases/R2020a/matlab/script-based-unit-tests.html?s_tid=CRUX_lftnav


Login fails

I am unable to log in to the iSmart application account. The credentials are triple-checked, no issues there. I get the following error messages:
Failed to authenticate or fetch vehicle data: return code: 1000036, message: The account is not registered.
I tried with both email and phone number, as well as a different location. But there doesn't seem to be a difference.

Here you are the complete log entry:
This error originated from a custom integration.
Logger: custom_components.mg_saic
Source: custom_components/mg_saic/config_flow.py:76
integration: MG SAIC Integration (documentation, issues)
First occurred: 1:22:14 AM (4 occurrences)
Last logged: 1:59:15 AM
Failed to authenticate or fetch vehicle data: return code: 1000036, message: The account is not registered.

Hi,
Can it be that you hace special characters on your password?
The API, for some reason, only accepts alphanumeric passwords.
Although, looking at the log, seems like the response is that the account is not registered. Are you using the right server? Did the integration work before or is this a new deployment? It might be an issue with MG, but I would need more info on that.

Thanks for looking at the issue. I read the previous issue reports and I made sure that I use only alphanumeric characters. A combination of small and capital letters and numbers.
I tested with all the three servers: Asia, China, EU. Same response with all of them. Could it be that there is a new location to use? FYI I'm located in Australia.
For reference, let me paste here another error log. This is fired at the same time as the one reported earlier.
This error originated from a custom integration.
Logger: saic_ismart_client_ng.api.base
Source: custom_components/mg_saic/config_flow.py:153
integration: MG SAIC Integration (documentation, issues)
First occurred: 1:22:14 AM (7 occurrences)
Last logged: 7:30:49 AM
API call return code is not acceptable: 1000036: {"code":1000036,"message":"The account is not registered."}. Headers: Headers({'date': 'Wed, 13 Nov 2024 15:23:01 GMT', 'content-type': 'application/x-www-form-urlencoded', 'connection': 'keep-alive', 'x-content-type-options': 'nosniff', 'x-xss-protection': '1; mode=block', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'pragma': 'no-cache', 'expires': '0', 'x-frame-options': 'DENY', 'app-content-encrypted': '1', 'original-content-type': 'application/x-www-form-urlencoded', 'app-send-date': '1731511381401', 'app-verification-string': '15d7642a8264b22921eb86e565ff3cd1317f045db278f98410f8b9d86cf1ab05', 'content-length': '59'})
API call return code is not acceptable: 1000036: {"code":1000036,"message":"The account is not registered."}. Headers: Headers({'date': 'Wed, 13 Nov 2024 15:59:15 GMT', 'content-type': 'application/x-www-form-urlencoded', 'connection': 'keep-alive', 'x-content-type-options': 'nosniff', 'x-xss-protection': '1; mode=block', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'pragma': 'no-cache', 'expires': '0', 'x-frame-options': 'DENY', 'app-content-encrypted': '1', 'original-content-type': 'application/x-www-form-urlencoded', 'app-send-date': '1731513555621', 'app-verification-string': 'e37da7c7eb7a7a739df3cc6a615facd572baea2497df9e0fa0830ac9ddcf4a7c', 'content-length': '59'})
API call return code is not acceptable: 1000036: {"code":1000036,"message":"The account is not registered."}. Headers: Headers({'date': 'Wed, 13 Nov 2024 21:29:36 GMT', 'content-type': 'application/x-www-form-urlencoded', 'connection': 'keep-alive', 'x-content-type-options': 'nosniff', 'x-xss-protection': '1; mode=block', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'pragma': 'no-cache', 'expires': '0', 'x-frame-options': 'DENY', 'app-content-encrypted': '1', 'original-content-type': 'application/x-www-form-urlencoded', 'app-send-date': '1731533376919', 'app-verification-string': '0e0d49a1f7bd60bfeab7a67c9a355e08492d07134f1c13835146b1e7554e67e9', 'content-length': '59'})
API call return code is not acceptable: 1000036: {"code":1000036,"message":"The account is not registered."}. Headers: Headers({'date': 'Wed, 13 Nov 2024 21:30:30 GMT', 'content-type': 'application/x-www-form-urlencoded', 'connection': 'keep-alive', 'x-content-type-options': 'nosniff', 'x-xss-protection': '1; mode=block', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'pragma': 'no-cache', 'expires': '0', 'x-frame-options': 'DENY', 'app-content-encrypted': '1', 'original-content-type': 'application/x-www-form-urlencoded', 'app-send-date': '1731533430649', 'app-verification-string': '3575156b469c5ceccf173bf796e48136f18e391d799aebcb9963787afa372f7e', 'content-length': '59'})
API call return code is not acceptable: 1000036: {"code":1000036,"message":"The account is not registered."}. Headers: Headers({'date': 'Wed, 13 Nov 2024 21:30:48 GMT', 'content-type': 'application/x-www-form-urlencoded', 'connection': 'keep-alive', 'x-content-type-options': 'nosniff', 'x-xss-protection': '1; mode=block', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'pragma': 'no-cache', 'expires': '0', 'x-frame-options': 'DENY', 'app-content-encrypted': '1', 'original-content-type': 'application/x-www-form-urlencoded', 'app-send-date': '1731533448938', 'app-verification-string': 'c385e2f8210c3acd23cb2a332729b278273306413260c435d2509f429bdd62f8', 'content-length': '59'})

Thanks for the feedback.
That's quite weird. I tried to login and it worked without any issue on my end.
Are you able to get the full debug logs? You need to activate the debug logs on configuration.yaml. Check here https://github.com/ad-ha/mg-saic-ha/issues/3#issuecomment-2288824987
Cheers

Thanks for investigating it with me!
Here is the warning log item after enabling debug logging:
Logger: homeassistant.util.loop
Source: util/loop.py:136
First occurred: 5:45:44 PM (1 occurrences)
Last logged: 5:45:44 PM
Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0xffff5aa94f50>,) inside the event loop by custom integration 'mg_saic' at custom_components/mg_saic/config_flow.py, line 150: saic_api = SaicApi(config) (offender: /usr/local/lib/python3.12/site-packages/httpx/_config.py, line 149: context.load_verify_locations(cafile=cafile)), please create a bug report at https://github.com/ad-ha/mg-saic-ha/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_verify_locations Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in  sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 556, in start task = asyncio.Task(coro, loop=loop, eager_start=True) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 477, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 559, in _handle return await handler(request) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 85, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware response = await handler(request) File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle result = await handler(request, **request.match_info) File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin return await func(self, request, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 222, in post return await super().post(request, flow_id) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper return await method(view, request, data, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 122, in post result = await self._flow_mgr.async_configure(flow_id, data) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 370, in async_configure result = await self._async_configure(flow_id, user_input) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 417, in _async_configure result = await self._async_handle_step( File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 520, in _async_handle_step result: _FlowResultT = await getattr(flow, method)(user_input) File "/config/custom_components/mg_saic/config_flow.py", line 72, in async_step_login_data await self.fetch_vehicle_data(username_is_email) File "/config/custom_components/mg_saic/config_flow.py", line 150, in fetch_vehicle_data saic_api = SaicApi(config)

Thanks.
Could you please post the whole debug log for the mg_saic integration? You should be getting something similar to this while trying to get the integration added:
DEBUG (MainThread) [custom_components.mg_saic] Logging in with username<EMAIL_ADDRESS>country_code: None, is_email: True, region: EU

If you login with the phone it shall be something like:
DEBUG (MainThread) [custom_components.mg_saic] Logging in with username: 123456789, country_code: 34, is_email: False, region: EU

Where 123456789 is you rphone number without the country code.
Attach also any further messages related to the integration, please.

I am trying to log in using email. Based on the logs, it looks like that it fails at the region resolution. You can see below that the region is set to Asia, however in the connection paramters the hostname is set to 'gateway-mg-eu.soimt.com'. Which is clearly not in Asia. I'm not sure what difference the hostname makes - if any.
Here you are the relevant trace from the logs after setting the log level to debug:
2024-11-14 22:56:38.754 DEBUG (MainThread) [custom_components.mg_saic] Logging in with username<EMAIL_ADDRESS>country_code: None, is_email: True, region: Asia
2024-11-14 22:56:38.786 DEBUG (MainThread) [homeassistant.util.loop] Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0xffff83633ad0>,) inside the event loop by custom integration 'mg_saic' at custom_components/mg_saic/config_flow.py, line 150: saic_api = SaicApi(config) (offender: /usr/local/lib/python3.12/site-packages/httpx/_config.py, line 149: context.load_verify_locations(cafile=cafile)), please create a bug report at https://github.com/ad-ha/mg-saic-ha/issues
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_verify_locations
2024-11-14 22:56:38.796 DEBUG (MainThread) [saic_ismart_client_ng.net.crypto] headerInterceptor apiName--->>> /oauth/token
encryptURI --->>> /oauth/token
origin_key_part_one --->>> /oauth/token459771app
encrypt_key_part_one --->>> c66c8df28cc708a69543403b47a5106c
origin_key_part_two --->>><PHONE_NUMBER>7961application/x-www-form-urlencoded
完整的加密Key encrypt_key --->>> f49efd9a776e21ed8f820c34feb14f28
加密IV encrypt_iv --->>> 635654c0a9c926ea34e779823b274c6e
原始params paramsStr --->>> grant_type=password&username=email%email.com&password=redacted&scope=all&deviceId=cqSHOMG1SmK4k-fzAeK6hr%3AAPA91bGtGihOG5SEQ9hPx3Dtr9o9mQguNiKZrQzboa-1C_UBlRZYdFcMmdfLvh9Q_xA8A0dGFIjkMhZbdIXOYnKfHCeWafAfLXOrxBS3N18T4Slr-x9qpV6FHLMhE9s7I6s89k9lU7DD%23%23%23europecar&deviceType=1&loginType=2&countryCode=
加密params encrypt_req --->>> cf567aa3e839e0f3390dfdc93c91e41377af2a8da0209a8dd352cc1a87047581d83cebd5e409f061473b8f589e1008b3dfd9b78627f8d4b0ebf73008c73f6cb37d051c7f10b987a157690dbc7c16a2119fa5568f561de37b180138aba0b665b04409d955e03fb1face88d23d4bd1531a2435638979e5f4464535cf29b832a45e7937d033119ec9df48eac64f67c35a838c2de1f60b793fc12488af546a3588497d0f837f1fccc14b5770fa55c41225e94993717ea9fbdba6bd3f137091202449a089673a20f538b33a8cca0c1a2fd373f1d063bb10a0801455e39a7add9118a672ce25971bbaeb7bb7c3844be91c425ed263a18181ed8419387aa268344bade82788ec203dc237e78e734f9f882c81d0ef2e7ee51c018fca07e5717d92f88a33d8001951687175bf9c214b4b252a4cd3325a42ca4e812789baee891c965dee461d93b3ead8d6390933227bd7872a76aba0dee25448c22dff38b8132a50d951db
hmac_sha256_value --->>> /oauth/token459771app17315889987961application/x-www-form-urlencodedcf567aa3e839e0f3390dfdc93c91e41377af2a8da0209a8dd352cc1a87047581d83cebd5e409f061473b8f589e1008b3dfd9b78627f8d4b0ebf73008c73f6cb37d051c7f10b987a157690dbc7c16a2119fa5568f561de37b180138aba0b665b04409d955e03fb1face88d23d4bd1531a2435638979e5f4464535cf29b832a45e7937d033119ec9df48eac64f67c35a838c2de1f60b793fc12488af546a3588497d0f837f1fccc14b5770fa55c41225e94993717ea9fbdba6bd3f137091202449a089673a20f538b33a8cca0c1a2fd373f1d063bb10a0801455e39a7add9118a672ce25971bbaeb7bb7c3844be91c425ed263a18181ed8419387aa268344bade82788ec203dc237e78e734f9f882c81d0ef2e7ee51c018fca07e5717d92f88a33d8001951687175bf9c214b4b252a4cd3325a42ca4e812789baee891c965dee461d93b3ead8d6390933227bd7872a76aba0dee25448c22dff38b8132a50d951db
origin hmacKey --->>> f49efd9a776e21ed8f820c34feb14f281731588998796
hmacSha256Key --->>> 7d9d377e46805833338d62e69785818f
APP-VERIFICATION-STRING --->>> 469ca8826f7f4f66cc19029af95aa506d74881482b8569570f237b542e2d0d75
2024-11-14 22:56:38.797 DEBUG (MainThread) [httpcore.connection] connect_tcp.started host='gateway-mg-eu.soimt.com' port=443 local_address=None timeout=5.0 socket_options=None
2024-11-14 22:56:39.094 DEBUG (MainThread) [httpcore.connection] connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0xffff836cc290>
2024-11-14 22:56:39.095 DEBUG (MainThread) [httpcore.connection] start_tls.started ssl_context=<ssl.SSLContext object at 0xffff83633ad0> server_hostname='gateway-mg-eu.soimt.com' timeout=5.0
2024-11-14 22:56:39.655 DEBUG (MainThread) [httpcore.connection] start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0xffff836cc3e0>
2024-11-14 22:56:39.656 DEBUG (MainThread) [httpcore.http11] send_request_headers.started request=<Request [b'POST']>
2024-11-14 22:56:39.658 DEBUG (MainThread) [httpcore.http11] send_request_headers.complete
2024-11-14 22:56:39.658 DEBUG (MainThread) [httpcore.http11] send_request_body.started request=<Request [b'POST']>
2024-11-14 22:56:39.659 DEBUG (MainThread) [httpcore.http11] send_request_body.complete
2024-11-14 22:56:39.659 DEBUG (MainThread) [httpcore.http11] receive_response_headers.started request=<Request [b'POST']>
2024-11-14 22:56:39.958 DEBUG (MainThread) [httpcore.http11] receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Thu, 14 Nov 2024 12:56:39 GMT'), (b'Content-Type', b'application/x-www-form-urlencoded'), (b'Content-Length', b'128'), (b'Connection', b'keep-alive'), (b'X-Content-Type-Options', b'nosniff'), (b'X-XSS-Protection', b'1; mode=block'), (b'Cache-Control', b'no-cache, no-store, max-age=0, must-revalidate'), (b'Pragma', b'no-cache'), (b'Expires', b'0'), (b'X-Frame-Options', b'DENY'), (b'APP-CONTENT-ENCRYPTED', b'1'), (b'ORIGINAL-CONTENT-TYPE', b'application/x-www-form-urlencoded'), (b'APP-SEND-DATE', b'1731588999829'), (b'APP-VERIFICATION-STRING', b'63ef64eef11254fa98298af6933f3a9118b41622a7c26d7ed04f9e0f77323a7a')])
2024-11-14 22:56:39.960 DEBUG (MainThread) [httpcore.http11] receive_response_body.started request=<Request [b'POST']>
2024-11-14 22:56:39.961 DEBUG (MainThread) [httpcore.http11] receive_response_body.complete
2024-11-14 22:56:39.961 DEBUG (MainThread) [httpcore.http11] response_closed.started
2024-11-14 22:56:39.961 DEBUG (MainThread) [httpcore.http11] response_closed.complete
2024-11-14 22:56:39.963 DEBUG (MainThread) [saic_ismart_client_ng.api.base] Response code: 1000036 {"code":1000036,"message":"The account is not registered."}
2024-11-14 22:56:39.963 ERROR (MainThread) [saic_ismart_client_ng.api.base] API call return code is not acceptable: 1000036: {"code":1000036,"message":"The account is not registered."}. Headers: Headers({'date': 'Thu, 14 Nov 2024 12:56:39 GMT', 'content-type': 'application/x-www-form-urlencoded', 'connection': 'keep-alive', 'x-content-type-options': 'nosniff', 'x-xss-protection': '1; mode=block', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'pragma': 'no-cache', 'expires': '0', 'x-frame-options': 'DENY', 'app-content-encrypted': '1', 'original-content-type': 'application/x-www-form-urlencoded', 'app-send-date': '1731588999829', 'app-verification-string': '63ef64eef11254fa98298af6933f3a9118b41622a7c26d7ed04f9e0f77323a7a', 'content-length': '59'})
2024-11-14 22:56:39.964 ERROR (MainThread) [custom_components.mg_saic] Error fetching vehicle data: return code: 1000036, message: The account is not registered.
2024-11-14 22:56:39.964 ERROR (MainThread) [custom_components.mg_saic] Failed to authenticate or fetch vehicle data: return code: 1000036, message: The account is not registered.

I tried to reverse engineer the code to find where the BASE_URLS resolution to the wrong region occurs. But I couldn't find it yet.

Sorry @vidotom you're fully right.
I was checking the API code and seems like they are always forwarding to the European endpoint. I just figured that there's one for Australia and New Zealand, which can be accessed.
Let me see if I find a workaround for it. I may take sometime to get it sorted, as it seems that I may need to change a lot of mechanics, but let me try and I will get back to you
Cheers

Thanks. I am looking forward to the fixed version. Good luck!

Hi @vidotom
Can you please try 0.4.7-beta1 and see if this solves the issue? https://github.com/ad-ha/mg-saic-ha/releases/tag/0.4.7-beta1
Here are the instructions to install a beta version: https://github.com/ad-ha/mg-saic-ha/issues/16#issuecomment-2454246239

Hi @ad-ha,
Thank you for figuring this out and fixing the bug so quickly! It works fine now. I was able to connect to the server and fetch the vehicle data. Some data seems to be way off, but I will look into it later and in a different thread if need be.
Thanks again!

Glad it did work out.
I will keep this for the final version 0.4.7
In the meanwhile, let me know the issues with the sensors that you may have. I hope that the response from both servers is the same and you should be getting reliable data (as with the EU server that I'm using), but with MG you never know. Any issue, just pop up and let me know, along with the logs, so I may look into.
Cheers

The incorrect sensor readings are as follows:

Charging Current
It says 19.9 Amp, but it is only on an 8 Amps trickle charger. And measured with an multimeter, it is pulling approximately 8 Amps indeed. Which is in line with the power reading from the utility meter and another independent power meter IoT device.
 The charging power on the car's dashboard is only 1.3-1.4 kW, which is aligned with the 8A trickle charger.
Charging switch is off, while the car is charging and the "Charging Status" sensor's reading is Charging (AC) as expected. What is this switch for? I would have thought it is to start or stop the charging session. But in this case the switch's state does not correspond to the charging status.
Added Electric Range is always 0.0 km - despite of charging the vehicle for a long while
Charging Duration is 92:11:00, which I have no idea what it corresponds to. It makes no sense.
Charging Voltage 202.855 V, which doesn't seem to be aligned with any voltage really.

And what I am missing the most, is the action for setting the charging current. I am not sure why it is not available. It can be set on the car's dashboard (6A, 8A, 16A, no limit). And in the previous version of the MG iSmart app it was possible too. However, in the latest version of the app (2.0 released just a week ago) this functionality seems to be gone.

So let me try to get this as clarified as I can.
We could expect MG to return sensible values for all those kind of sensors, but the truth is that it doesn't. A lot of sensors need to be converted in order to show readable values. As an example, tyre pressure needs to be multiplied by 0.04 to get bar pressure.
There«s also data on the server reply for some vehicles that are incorrect. In my case, for a BEV, the MG data does not have the boolean active for ELECTRIC (seen a similar response on other models as well). I have sunroof, but MG seems to disagree and says on the data that they have that my vehicle did not come with sunroof. And so on... there are some more examples.
There's also the case where the API sends generic data, which is being now discarded, but as an example, sometimes it sends: SOC = 102.3%, Mileage = 0, Exterior Temperature = -128 Celsius. So the data is not fully reliable as one would expect. I've implemented mechanisms to discard these generic responses as far as I found them.
The same happens with some of the charging sensors. In order to translate the values into something that was usable, I needed to factorize all values in order to get the Current and Voltage working. The Charging Power is an equation between Current and Voltage,
With EU 220v, in my case at least, the values match the charger and vehicle data.
Would you be able to show your sensor readings for Voltage, Current and Power Charging? Also, can you share the debug logs for Vehicle Status and Vehicle Charging Data, so I may try to understand the differences?
Now on the remaining points.
3. Let me have a look. For sure I can solve this easily and show the switch as ON when the vehicle is charging.
4. That's a value being sent by the API. MG does not send that value for all vehicles.
5. The same as above. It's a translation of the time sent by the API for the charging duration. Sometimes the API sends abnormal data.
6. Might be some issue with the formulas, but if you have the logs, we may find the root cause for it.
At last. There are still some services/actions missing on the integration. I started this a few weeks ago and did not implemented everything, basically I've prioritized what I could try and used and am adding more features as I can. Setting charging current is something that I do not see as available on the API.
Thanks for the feedback and your help.


Fails for singular author

https://github.com/Colonial-Dev/vcard-qr
❯ cargo aur
:: Error: TOML parse error at line 1, column 1
  |
1 | [package]
  | ^^^^^^^^^
missing field `authors`
```
I had to rename `author` and turn it into an array, maybe that can be supported?

The official field name is a plural authors: https://doc.rust-lang.org/cargo/reference/manifest.html#the-authors-field

You are correct, adjusted the package


Fixed frustum culling.

Was crashing when enabling it.
Refactored the code in renderer.cpp.
Also ran the code formatter on a number of files.
GearVRf-DCO-1.0-Signed-off-by: Thomas Flynn
<EMAIL_ADDRESS>

defaulting to LINEAR_MIPMAP_LINEAR broke cubemap support.  in fact, i think we'll fix that sooner and i'll rebase this change against that fix.  we'll expose some apis next week that'll allow an application to choose min and mag filters and other texture options.

Tested with solar system and model viewer. Worked as expected. Any other comments?

There are so many whitespace changes, I didn't really spot the code changes, beyond the hoisting large blocks into private methods in renderer.cpp.
Beyond that: I didn't see anything obviously wrong; Chao has tested it.
I sure hope that this can auto-merge with 2.0 (or vice versa) - I don't seem to have done much this week except get back to status quo ante ...

if it helps, all the real changes are in renderer.cpp and mesh.cpp/mesh.h.  The rest are all white-space / formatting changes to bring the code in-line with our formatting.

if it helps, all the real changes are in renderer.cpp and mesh.cpp/mesh.h.

Yeah. I did my lint-thing on that code; didn't see any issues.

ok, rebased onto the 2.0 merge.  i think i didn't screw it up.  please pull, compile and test.  thanks.

Tested with solar system. Works as expected.


Update migration-v1-to-v2.md

typo

@Kaiqb - Would you sign-off on the proposed change? Thanks
Cc @v-geberr

sign-off

@tsahi - The content in this topic has moved to https://docs.microsoft.com/en-us/azure/cognitive-services/LUIS/luis-migration-api-v1-to-v2. To propose changes, please submit a new request.  Thank you.
@diberry - Would you correct the typo in the redirected file?

@GitHubber17 Yes, thank you for letting me know.


[Tracking]  v1 Mainnet Release Requirements

These are the following issues, group according to categories, that need to be resolved before we can make officially launch v1 on the mainnet.

Priority Ranking
:star: :star: :star: High priority

Primary issues to commit and test asap
Mainnet release will not occur without these issues resolved

:star: :star: Medium priority

Secondary issues to fix and test
Mainnet release possible, not but advisable without these issues resolved

:star: Low priority
Peripheral issues; save for last

Mainnet release not ideal, but not too bad without these issues resolved

Reputation

[ ] #283 Calculate and cache the aggregate rating data for a user's store

:star: :star:

[x] #271 Enable Buyer ratings for disputes that they win

:star: :star: :star:

[x] #270 Modify rating api to optionally include GUID

:star: :star: :star:

Listings

[x] #280 When a moderator is added to a store, resave all listings with the new moderator

:star: :star: :star:

[x] #181 Save unconfirmed txs to db

:star: :star: :star:

[x] #285 Create a Bitcoin conversation API

:star: :star: :star:

[x] #286 Republish listings after keywords expire from DHT

:star:

Dispute Resolution

[X] #273 Moderation Fee is not saved

:star: :star: :star:

Database

[ ] #186 Option to backup database

:star:

Ok, all the 'can't launch without' issues have been resolved for the server.


Add opacity / disabled effect to slider part which is out of range

Hello,
first thing, great package! Simple and effective. I have just one thing which came up to my mind when looking and trying it:
It would be really nice if the parts, which are out of range, would have some sort of opacity added to show user that that part is not currently selected.
On the image, the parts i am talking about are highlighted with yellow underline:

Thank you for your answer.

Hi @frankykubo, thank you for the feedback! Unfortunately the way that this is setup is actually two different range inputs right next to one another to give the appearance of a single range selector input. This means that I cannot style only the yellow portions from your image above, I could instead style the left half or the right half of the range selectors, but not what is "outside" of the range.


Investigate currency unit discrepancies in various models

IOrderFeeModel
The IOrderFeeModel documentation clearly states that order fees are to be returned in unit of the account currency. Likewse, the Order.GetValue(Security) documentation states the same requirement. Upon a quick glance, it appears no IOrderFeeModel implementations actually guarantee that we convert to the account currency before returning the fees. This is paramount in accurate modeling of any securities with a non-account currency quote currency (mostly forex/cfd/crypto).
ISecurityMarginModel
The security margin model is used in such a way that it requires the results from certain methods to be in the same units under similar conditions. Specifically, the GetInitialMarginRequiredForOrder and GetMarginRemaining are expected to be in the same units as they're directly compared in SecurityTransactionManager.GetSufficientCapitalForOrder. This hidden coupling provides an argument for moving sufficient capital checks into the margin models themselves, which would make the units dependency between methods much more explicit while also potentially reducing the overall interface size.
The Big Picture
The issue of managing currency units in the code is becoming increasingly burdensome and error prone. I'm beginning to think that such implementations should return a Cash object (or similar) which would indicate an amount, the currency unit used, as well as a conversion to the account currency. This would remove the ambiguity while also allowing implementations to require fees be paid with certain currencies. I think this new pattern could effectively be applied anywhere we're returning opaque price data from models. Off the top of my head this includes IOrderFeeModel and ISecurityMarginModel -- possibly even IMarginCallModel.
Honorable Mention
Another issue noted was that margin calculations always seem to view all currencies as equivalent, but many brokerages aren't as kind as IB and actually require you to have the proper currencies available. Still, even other brokerages require paying fees in specific currencies (sometimes the quote currency and other times the account currency). Our model interface definitions and invocation patterns should be robust enough to support these cases, preferably by burying the technical details in the implementations of specific models themselves, thereby preventing the leaky abstraction.

Closing as 99% complete. Missing fees on currency conversions for internal transactions.


NavLink active ignores exact (by design or bug?)

Hi, I am not sure if this is something hat happens by design or if it is a bug, or if I am doing something (probably most likely):
Scenario
Lets assume the following page layout (with navigation in the header):
/ <--- root / home page
/first
/second
/second/1
/second/2

I modelled this with Switch, Route and NavLinks using exact matching for:
/, /first, /second/1, /second2

but not for:
/second

The routing to /second/[12] is done inside the component that renders /second.
Expected Behaviour
An exact matching NavLink is only considered to be active if and only if it matches the complete URL, also considering strict (not tested). With strict you're required to handle / differently as most (all?) browser remove it from the URL if not additional path is specified after the 'domain': https://google.com/ always becomes https://google.com.
Actual Behaviour
The NavLink for / is always considered to be active even if exact mating is enabled.
/second will also be active if one of its subpages is active but this is something I have expected as  I didn't specify exact on /second.
Test Case
A test case is available at: https://codesandbox.io/s/p9v05k68oq

okay it's getting late and I should go to bed!
I forgot to specify excat on the NavLink and assumed it would automatically pick this up from Route
Sorry for the noise.


Cannot use if/else statement in message

I was trying to send a message to my Echos using if/else statement to change message depending on certain factors - like you can using the notify services. I assumed it would work with your custom alexa media player but it does not. Not sure if it can be worked in or not.
Example:
media_player.alexa_tts
{
"entity_id":"echo"
"message": "{% if ('sensor.somesensor', true) %}this{% else %}that{% endif %}"
}

Templating does work. Test it in the dev tools. For a working example, look at the wiki.

Closing given the wiki examples. Please reopen if that doesn't work.

It does not work for me. As a simple example (that works under dev info)...
{
"entity_id":"media_player.living_room_echo_dot",
"message":"{% if 1 == 1%}hello{% else %}bye{% endif %}"
}

It announces "if 1 1 hellow else bye endif"

Call services will not process the template. You need to use a data_template per the automation or script examples for HA to actually process the template.


[doc](stream load json) modify enable_simdjson_reader since it's de…

…fault open
Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall