[refactor] output formatters, type hints, report types

A new common output module was created for the output formats.
The output formatters should depend on the common Report type
and not use the thrift ReportData type so they can be shared
between multiple parts of the source code.
There is one case in the server command line client
where the json format uses the ReportData and that is
converted to json. For backward compatibility that is
kept for now.
The common module can be extended with additional output formats
later so they can be shared between the analyzer and the web parts.
The twodim format functions were moved that module too together
with the codeclimate and gerrit formatters.
Additionaly the cmd_line_client file was refactored.
Multiple smaller functions were factored out not
to depend on function internal variables where
they were. It is easier to test them like that.
A new report type converter was added for the
type conversion betwen the Report and ReportData
types. Should be needed only at the web part.
The common and analyzer parts use only the Report type.
Type hints were added to multiple functions for
better understanding what type is expected where.
The plist parser module was changed because the
comments and the actual source code assumed different types.
Instead of the list of files a dict of files is used there.
The order is important! The key is the index of the source
file where it was in the list of files in the plist report.
The main section in the Report type does not reference the
source file as an index anymore to simplify the usage.
The source file path is stored there.
For the bug path sections this replacement was not done.

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 3

Complexity increasing per file
==============================
- codechecker_common/plist_parser.py  2
- codechecker_common/output/twodim.py  14
- codechecker_common/output/codeclimate.py  4
- codechecker_common/output/gerrit.py  11
- web/client/codechecker_client/report_converter.py  4
- web/client/tests/unit/test_report_converter.py  1

Clones added
============
- web/client/tests/unit/__init__.py  3
- web/client/codechecker_client/cmd_line_client.py  3
- codechecker_common/output/twodim.py  3
- analyzer/codechecker_analyzer/cmd/parse.py  1

Clones removed
==============
+ analyzer/tests/functional/analyze/test_analyze.py  -3

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 3

Complexity increasing per file
==============================
- codechecker_common/output/gerrit.py  11
- codechecker_common/output/twodim.py  14
- web/client/tests/unit/test_report_converter.py  1
- web/client/codechecker_client/report_converter.py  4
- codechecker_common/output/codeclimate.py  4
- codechecker_common/plist_parser.py  2

Clones added
============
- web/client/tests/unit/__init__.py  3
- codechecker_common/output/twodim.py  3
- web/client/codechecker_client/cmd_line_client.py  3
- analyzer/codechecker_analyzer/cmd/parse.py  1

Clones removed
==============
+ analyzer/tests/functional/analyze/test_analyze.py  -3

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 3

Complexity increasing per file
==============================
- codechecker_common/output/twodim.py  14
- web/client/codechecker_client/report_converter.py  4
- codechecker_common/output/codeclimate.py  4
- codechecker_common/plist_parser.py  2
- codechecker_common/output/gerrit.py  11
- web/client/tests/unit/test_report_converter.py  1

Clones added
============
- codechecker_common/output/twodim.py  3
- web/client/tests/unit/__init__.py  3
- analyzer/codechecker_analyzer/cmd/parse.py  1
- web/client/codechecker_client/cmd_line_client.py  3

Clones removed
==============
+ analyzer/tests/functional/analyze/test_analyze.py  -3

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 3

Complexity increasing per file
==============================
- codechecker_common/output/gerrit.py  11
- codechecker_common/output/twodim.py  14
- codechecker_common/output/json.py  2
- web/client/codechecker_client/report_type_converter.py  4
- codechecker_common/plist_parser.py  2
- web/client/tests/unit/test_report_converter.py  1
- codechecker_common/output/codeclimate.py  4

Clones added
============
- web/client/tests/unit/__init__.py  3
- web/client/codechecker_client/cmd_line_client.py  3
- codechecker_common/output/twodim.py  3
- analyzer/codechecker_analyzer/cmd/parse.py  1

Clones removed
==============
+ analyzer/tests/functional/analyze/test_analyze.py  -3

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- codechecker_common/plist_parser.py  2
- codechecker_common/output/twodim.py  14
- web/client/tests/unit/test_report_converter.py  1
- codechecker_common/output/codeclimate.py  3
- web/client/codechecker_client/report_type_converter.py  4
- codechecker_common/output/json.py  2
- codechecker_common/output/gerrit.py  10

Clones added
============
- web/client/codechecker_client/cmd_line_client.py  3
- web/client/tests/unit/__init__.py  3
- codechecker_common/output/twodim.py  3
- analyzer/codechecker_analyzer/cmd/parse.py  1

Clones removed
==============
+ analyzer/tests/functional/analyze/test_analyze.py  -3

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- web/client/codechecker_client/report_type_converter.py  4
- codechecker_common/plist_parser.py  2
- codechecker_common/output/twodim.py  14
- codechecker_common/output/codeclimate.py  3
- codechecker_common/output/json.py  2
- web/client/tests/unit/test_report_converter.py  1
- codechecker_common/output/gerrit.py  10

Clones added
============
- codechecker_common/output/twodim.py  3
- analyzer/codechecker_analyzer/cmd/parse.py  1
- web/client/codechecker_client/cmd_line_client.py  3
- web/client/tests/unit/__init__.py  3

Clones removed
==============
+ analyzer/tests/functional/analyze/test_analyze.py  -3

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- codechecker_common/output/json.py  2
- codechecker_common/output/twodim.py  14
- codechecker_common/output/gerrit.py  10
- codechecker_common/output/codeclimate.py  3
- web/client/codechecker_client/report_type_converter.py  4
- codechecker_common/plist_parser.py  1
- web/client/tests/unit/test_report_converter.py  1

Clones added
============
- web/client/codechecker_client/cmd_line_client.py  3
- web/client/tests/unit/__init__.py  3
- codechecker_common/output/twodim.py  3
- analyzer/codechecker_analyzer/cmd/parse.py  1

Clones removed
==============
+ analyzer/tests/functional/analyze/test_analyze.py  -3

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- codechecker_common/output/gerrit.py  10
- web/client/codechecker_client/report_type_converter.py  4
- web/client/tests/unit/test_report_converter.py  1
- codechecker_common/plist_parser.py  1
- codechecker_common/output/codeclimate.py  3
- codechecker_common/output/json.py  2
- codechecker_common/output/twodim.py  14

Clones added
============
- analyzer/codechecker_analyzer/cmd/parse.py  1
- web/client/codechecker_client/cmd_line_client.py  3
- codechecker_common/output/twodim.py  3
- web/client/tests/unit/__init__.py  3

Clones removed
==============
+ analyzer/tests/functional/analyze/test_analyze.py  -3

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- codechecker_common/output/twodim.py  14
- web/client/codechecker_client/report_type_converter.py  4
- codechecker_common/output/json.py  2
- codechecker_common/output/codeclimate.py  3
- web/client/tests/unit/test_report_converter.py  1
- codechecker_common/output/gerrit.py  10
- codechecker_common/plist_parser.py  1

Clones added
============
- web/client/tests/unit/__init__.py  3
- codechecker_common/output/twodim.py  3
- analyzer/codechecker_analyzer/cmd/parse.py  1
- web/client/codechecker_client/cmd_line_client.py  3

Clones removed
==============
+ analyzer/tests/functional/analyze/test_analyze.py  -3

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- web/client/codechecker_client/report_type_converter.py  4
- codechecker_common/output/codeclimate.py  3
- codechecker_common/output/gerrit.py  10
- codechecker_common/output/twodim.py  14
- codechecker_common/output/json.py  2
- web/client/tests/unit/test_report_converter.py  1
- codechecker_common/plist_parser.py  1

Clones added
============
- web/client/codechecker_client/cmd_line_client.py  3
- web/client/tests/unit/__init__.py  3
- codechecker_common/output/twodim.py  3
- analyzer/codechecker_analyzer/cmd/parse.py  1

Clones removed
==============
+ analyzer/tests/functional/analyze/test_analyze.py  -3

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- web/client/tests/unit/test_report_converter.py  1
- codechecker_common/output/json.py  2
- codechecker_common/output/twodim.py  14
- codechecker_common/plist_parser.py  1
- codechecker_common/output/gerrit.py  10
- codechecker_common/output/codeclimate.py  3
- web/client/codechecker_client/report_type_converter.py  4

Clones added
============
- analyzer/codechecker_analyzer/cmd/parse.py  1
- codechecker_common/output/twodim.py  3
- web/client/tests/unit/__init__.py  3
- web/client/codechecker_client/cmd_line_client.py  3

Clones removed
==============
+ analyzer/tests/functional/analyze/test_analyze.py  -3

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- codechecker_common/plist_parser.py  1
- codechecker_common/output/codeclimate.py  3
- web/client/tests/unit/test_report_converter.py  1
- codechecker_common/output/twodim.py  14
- web/client/codechecker_client/report_type_converter.py  4
- codechecker_common/output/gerrit.py  10
- codechecker_common/output/json.py  2

Clones added
============
- analyzer/codechecker_analyzer/cmd/parse.py  1
- web/client/codechecker_client/cmd_line_client.py  3
- web/client/tests/unit/__init__.py  2
- codechecker_common/output/twodim.py  3

Clones removed
==============
+ analyzer/codechecker_analyzer/cmd/analyzer_version.py  -1
+ web/codechecker_web/cmd/web_version.py  -1
+ analyzer/tests/functional/analyze/test_analyze.py  -3

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- codechecker_common/plist_parser.py  1
- codechecker_common/output/twodim.py  14
- web/client/tests/unit/test_report_converter.py  1
- web/client/codechecker_client/report_type_converter.py  4
- codechecker_common/output/json.py  2
- codechecker_common/output/codeclimate.py  3
- codechecker_common/output/gerrit.py  10

Clones added
============
- web/client/tests/unit/__init__.py  2
- codechecker_common/output/twodim.py  3
- web/client/codechecker_client/cmd_line_client.py  3
- analyzer/codechecker_analyzer/cmd/parse.py  1

Clones removed
==============
+ analyzer/tests/functional/analyze/test_analyze.py  -3
+ web/codechecker_web/cmd/web_version.py  -1
+ analyzer/codechecker_analyzer/cmd/analyzer_version.py  -1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- codechecker_common/plist_parser.py  1
- codechecker_common/output/json.py  2
- codechecker_common/output/codeclimate.py  3
- codechecker_common/output/gerrit.py  10
- web/client/codechecker_client/report_type_converter.py  4
- web/client/tests/unit/test_report_converter.py  1
- codechecker_common/output/twodim.py  14

Clones added
============
- web/client/codechecker_client/cmd_line_client.py  3
- web/client/tests/unit/__init__.py  2
- codechecker_common/output/twodim.py  3
- analyzer/codechecker_analyzer/cmd/parse.py  1

Clones removed
==============
+ analyzer/codechecker_analyzer/cmd/analyzer_version.py  -1
+ web/codechecker_web/cmd/web_version.py  -1
+ analyzer/tests/functional/analyze/test_analyze.py  -3

See the complete overview on Codacy


[FEATURE] Ensure Image and ImageContent can be created from all possible sources (url, local file, base64 content) only in a correct state

Make sure created Image (from all possible sources) can be used as inputs in all places:

*ChatModel (wrapped as ImageContent)
*ImageModel
etc

Make sure mime type is provided/detected consistently across all places.

Is this the same feature as allowing Image Input in AI Services ?

@mmacphail no, this is undelated.


feat(monitor): make simple-query API adapting victoriametrics and add monitor-unified-monitor-query command

What this PR does / why we need it:

Does this PR need to be backport to the previous release branch?:

3.10
/area monitor

/area climc


Fix encoding issues with colorized output

Closes #86

Codecov Report

Merging #87 (457d752) into main (09c4fcd) will increase coverage by 0.00%.
The diff coverage is 100.00%.

:exclamation: Current head 457d752 differs from pull request most recent head c58cb74. Consider uploading reports for the commit c58cb74 to get more accurate results

@@           Coverage Diff           @@
##             main      #87   +/-   ##
=======================================
  Coverage   96.89%   96.90%
=======================================
  Files          20       20
  Lines         870      871    +1
=======================================
+ Hits          843      844    +1
  Misses         27       27

Impacted Files
Coverage Δ

robotidy/app.py
93.33% <100.00%> (ø)

robotidy/utils.py
95.83% <100.00%> (+0.04%)
: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 09c4fcd...c58cb74. Read the comment docs.


Feature Request: Ability to remove default tooltips

Dear Mod Authour,
Firstly apologies if this is the wrong place to post this.
I am looking to use your mod on a server I manage on behalf of the Sheffield MineCraft Society. However, we will not be using your default currency denominations as we operate an optional roleplaying component, and this uses different default currency values (most notably, a base 8 system of currency values).
I am altering the looks of the currency to be what we require by using a texture pack, and I am altering the crafting using MineTweaker, but unfortunately there is no way for me to remove the tooltips on the currency as I can tell.
We are using the 1.7.10 version of the mod. Would it be possible to get a config option or similar that removes these tooltips?
I have attached a screenshot of what I am referring to below (note I have added my own tooltip using MineTweaker to indicate the wrong tooltip to our players).

Many thanks,
-Alex W, President and Server Administrator of the Sheffield MineCraft Society

Thank you for your suggestion, yes this is the right place to post them. :+1:
What you're doing with the currency sounds very interesting, cool stuff.
I can see how an option to enable/disable the tooltips would be useful, I'll work on that.


How to prevent data leakage

Hi,
From what I read here the current approval flow only requires approval from the service provider side. But what is there to stop a malicious insider to set up a storage account or DB in their private Azure environment, create a private link service provider and then create a private end point in her/his employers enterprise azure environment and start copying company data via the private endpoint to her/his private environment? Thus stealing company data, unnoticed.
Can I prevent, for instance via a policy, or detect private link connections being made to services outside our tenant? If not I'm not so sure this service is actually enhancing security.
Rgds,
Dennis

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

ID: e83a737e-6585-b9e0-2a43-e834b09687db
Version Independent ID: 3887a517-ad52-5634-995b-b2a4183c7601
Content: Manage a Private Endpoint connection in Azure
Content Source: articles/private-link/manage-private-endpoint.md
Service: private-link
GitHub Login: @malopMSFT
Microsoft Alias: allensu

@Nimleth , We are looking into this query and will update you as soon as possible.

@Nimleth , Appreciate your patience. In Azure Defense in depth can be visualized as a set of concentric rings, with the data to be secured at the center. Each ring adds an additional layer of security around the data. This approach removes reliance on any single layer of protection and acts to slow down an attack and provide alert telemetry that can be acted upon, either automatically or manually.

So, here in this case of compromised infrastructure You can control the exposure using the visibility configuration on Private Link service. Visibility supports three settings:
None - Only subscriptions with RBAC access can locate the service.
Restrictive - Only subscriptions that are whitelisted and with RBAC access can locate the service.
All - Everyone can locate the service.

I'm very well acquainted with the concept of defense in depth. But if I understand correctly your answer still doesn't address my concern because these visibility settings are on the service provider side. In the scenario that concerns me the service provider side is under control of a malicious insider.
What I need is a way to prevent a malicious insider from creating a Private Endpoint in our Enterprise network (VNET in Azure) that links to a Private Link service in another tenant. Or are you saying that I can restrict the visibility of Private Link Services which are not in our tenant with this setting? It seems this setting is specific for the Private Link service and not the endpoint.
Rgds,
Dennis

@Nimleth , Agree with your point. So here by design Azure private link In the event of any security incident within your network, only the mapped resource would be accessible, eliminating the threat of data exfiltration.

Hi,
No it doesn't. I'm afraid we are not understanding each other, or maybe I'm not understanding you correctly.
So, as a picture is worth a thousand words I made a drawing to see if I can make my concern clear:

This is the situation I'm concerned with. So a malicious insider, lets say a DevOps engineer, who has  access to corporate data because of his/her normal duties. This data is for instance stored in a SQL DB or a Storage Account, doesn't matter.
This person can create a storage account and Private Link service in a subscription of their own private azure account, then create a private endpoint in the corporate VNET (because he/she is a DevOps engineer) and link it to the the private link service of their own storage account.
Once this is in place the malicious insider can copy data from any source they have access to, to their own Storage Account outside the corporate environment. And I'm not sure it would be detectable.
So far, the only thing I see stopping this scenario is 4-eye control in the CI/CD pipeline. Which is not that strong a control, and can be circumvented with PIM.
What I think I need is a way, maybe through a policy, to disable the possibility to make Private Link connections outside of the corporate tenant. Since this is something that we will probably never use I can make this mandatory at the highest MG level.
Hope my concern is clear now.
Rgds,
Dennis

@Nimleth , Appreciate your efforts in elaborating the scenario further. Private link provides an extra security solution for your infrastructure. The scenario you were referring to here is depends on the network design done on your infrastructure. You can fully design your network to block it and incase of isolation you can use VNET solutions. You can place the PE's in a isolated VNET and connect to those VNETS using peering solutions where you can restrict peering to those VNET's from non corporate networks. We are still reviewing to implement NSG on destination PL feature.

Ok, forget it. I see this is leading nowhere. I'll try to get in contact with the product group via the official channels.
Rgds,
Dennis


[MEV milestone 1] produce a blind unsigned block that contains an execution payload header

Support the production of blinded beacon blocks under bellatrix
https://hackmd.io/@paulhauner/H1XifIQ_t#Change-1-Blind-Transaction-Signing
Blinded blocks have some context but only an execution_payload_header, not a full execution payload.
Ultimately this needs to be on a new rest api endpoint, so that full blocks can still be produced from the existing endpoint, and blinded blocks can be retrieved from the new endpoint.
There are currently no rest endpoints defined for use with this feature.

there is a new PR in beacon REST API to follow: https://github.com/ethereum/beacon-APIs/pull/194


Add documentation for status command

I'm submitting a

[ ] bug fix
[ ] feature
[x] documentation addition

What is the current behaviour?
No documentation or mention exists in the documentation.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
Some documentation for feature in docs.
What is the motivation / use case for changing the behavior?
#423
Please tell us about your environment:
Version (comtrya --version): v0.8.9
Operating system: macOS 14.6.1

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 26.75%. Comparing base (b574682) to head (638ca40).
Report is 41 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #460      +/-   ##
==========================================
- Coverage   28.59%   26.75%   -1.85%
==========================================
  Files          85       83       -2
  Lines        2301     2284      -17
==========================================
- Hits          658      611      -47
- Misses       1643     1673      +30

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


Test encoding of chords

Write a midi fixture including chords of various densities.
Write a vmf file of the expected result.

See #12 for updated spec.


Errors on realm when run app

error: Multiple commands produce '/Users/ST22956/Library/Developer/Xcode/DerivedData/demo-dhbuwwmhnykrrcakkwemvgtkdzep/Build/Products/Debug-iphonesimulator/Realm/Realm.framework.dSYM':
1) That command depends on command in Target 'Realm' (project 'Pods'): script phase “[CP] Copy dSYMs”
2) That command depends on command in Target 'Realm' (project 'Pods'): script phase “[CP] Copy dSYMs”

$ bundle exec pod env | egrep 'CocoaPods |Xcode|cocoapods-binary'
   CocoaPods : 1.10.1
       Xcode : 12.4 (12D4e)
Executable Path: /Users/ST22956/Documents/workspace/cocoapods-binary/demo/.bundler_cache/ruby/2.7.0/bin/pod
cocoapods-binary      : 0.4.4
plugin 'cocoapods-binary'

This problem happens because you may be using another dependency that depended on and build a different realm version. For example, RxRealm.
You can also as a hack do: https://github.com/leavez/cocoapods-binary/issues/136


Consider reporting DM multiplier in some spots, not just theta

Report multiplier for DM parameters in some spots (maybe just text) as theta itself is not very informative.  Theta is the parameter being estimated so it still seems worthy of keeping it in parameter reporting tables.

Value is now reported in r4ss so just need to reference that column.

if
replist <- SS_output()

then
replist[["Dirichelt_Multinomial_pars'']]

has the following column names: Value, Phase, Min, Max, Theta, and Theta/(1+Theta), where the last column is the multiplier.

Note that this existing table in the list output of SS_output() would be MLE DM, not the MCMC DM values. I don't see anywhere in the text that we report actual theta values. I think we should just leave things the way they are because the equation is in the document.

Note that this existing table in the list output of SS_output() would be MLE DM, not the MCMC DM values. I don't see anywhere in the text that we report actual theta values. I think we should just leave things the way they are because the equation is in the document.

Agree with Kelli that we don't report values in text and equation is in there.


Switch from deprecated tokio_core::io to tokio_io::io

Fixes all the warnings that were present on master when using an up to
date tokio-core.

👍


Jdp debugger client tests

@martijnthe, when I just said jest.mock('ws') that worked up until this last test I'm trying to write, but I'm wanting to emit events on the websocket to get the on('open') handler called and such. Here is my not working attempt so far...

Ah sorry I missed this PR and it's conflicting with the changes I made w.r.t. switching to the nicer CLI arg parser. Mind rebasing / updating this?

Yeah, I'll try to get back to this at some point.

I tried and failed to mock stuff like on() and emit() in the WebSocket module to test additional the 'open' and 'error' cases etc, but just couldn't make it work. Part of the difficulty I think is that the WebSocket module is a constructor. Maybe later I'll have learned enough about Jest to make it work, but moving on to other things.

Realized lint was failing - fixed two issues but the third one requires me to return the promise - if I do I realize it's not getting resolved, and I'm back to that problem where I can't figure out how to override functions in the WebSocket mock to provide this functionality. @martijnthe, any insight?


incompactable with conda 4.6

environments:
conda 4.6
This throws an exception as follows.

Probable causation:
conda 4.6 has a different logic of loading activate SOME_VIRTUAL_ENV

Can you give me more information? How do you reproduce this?

visual studio 2017 community edition v15.9.2
PTVS 15.9.18254.1-15.0
active environment : spacy
active env location : C:\Users\**\Anaconda3\envs\spacy
shell level : 2
user config file : C:\Users\**\.condarc
populated config files : C:\Users\**\.condarc
conda version : 4.6.4
conda-build version : not installed
python version : 3.6.5.final.0
base environment : C:\Users\**\Anaconda3  (writable)
channel URLs : https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64
          https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
          https://repo.anaconda.com/pkgs/main/win-64
          https://repo.anaconda.com/pkgs/main/noarch
          https://repo.anaconda.com/pkgs/free/win-64
          https://repo.anaconda.com/pkgs/free/noarch
          https://repo.anaconda.com/pkgs/r/win-64
          https://repo.anaconda.com/pkgs/r/noarch
          https://repo.anaconda.com/pkgs/msys2/win-64
          https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\Users\**\Anaconda3\pkgs
          C:\Users\**\Dropbox\emacs-24.4-bin-i686-pc-mingw32\.conda\pkgs
          C:\Users\**\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\**\Anaconda3\envs
          C:\Users\**\Dropbox\emacs-24.4-bin-i686-pc-mingw32\.conda\envs
          C:\Users\**\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.6.4 requests/2.21.0 CPython/3.6.5 Windows/10 Windows/10.0.17763
administrator : True
netrc file : None
offline mode : False

I also include the yml file of my environment
ENV.yml.txt

I found a workaround solving the BadSourceException by conda config --set changeps1 false following this
However there still exists a problem when loading numpy.
Traceback (most recent call last):
  File "C:\Users\**\Anaconda3\envs\spacy\lib\site-packages\numpy\core\__init__.py", line 16, in <module>
    from . import multiarray
ImportError: DLL load failed: 找不到指定的模块。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\**\Anaconda3\envs\spacy\lib\site-packages\spacy\__init__.py", line 8, in <module>
    from thinc.neural.util import prefer_gpu, require_gpu
  File "C:\Users\**\Anaconda3\envs\spacy\lib\site-packages\thinc\neural\__init__.py", line 1, in <module>
    from ._classes.model import Model
  File "C:\Users\**\Anaconda3\envs\spacy\lib\site-packages\thinc\neural\_classes\model.py", line 2, in <module>
    from numpy import prod
  File "C:\Users\**\Anaconda3\envs\spacy\lib\site-packages\numpy\__init__.py", line 142, in <module>
    from . import add_newdocs
  File "C:\Users\**\Anaconda3\envs\spacy\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "C:\Users\**\Anaconda3\envs\spacy\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
    from .type_check import *
  File "C:\Users\**\Anaconda3\envs\spacy\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "C:\Users\**\Anaconda3\envs\spacy\lib\site-packages\numpy\core\__init__.py", line 26, in <module>
    raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed.  Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control).  Otherwise reinstall numpy.

Original error was: DLL load failed: 找不到指定的模块。

where 找不到指定的模块 means cannot find the module.

Thanks for the additional info.
There's a workaround of activating the environment from command prompt and starting VS from that prompt. See #4874 for details.

Thanks very much for the quick response and solution!
It now works fine.

Great. I'll keep this open for now until I try conda 4.6.


Misleading detection on Galaxy S8

I found out that on my Galaxy S8 the device type detection returns the following report:
deviceType: hybrid
passiveEvents: true
hasMouse: true
hasTouch: true
primaryInput: mouse
I don't know if it's due to Dex support, but hasMouse and primaryInput could mislead.
Thanks

Just checked the S8 and other Samsung devices with both Chrome and the Samsung internet browsers and was not able to reproduce your issue. All the devices registered as primaryInput touch. So I’m closing this issue. If you are still having this issue please provide more contex and I can reopen. Thanks.

@rafrex I am able to reproduce this on Samsung S9, where chrome detects primary input as mouse.
Do you need any more information? I can provide them.
Chrome
Chrome Screenshot
Samsung Internet
Samsung Internet Screenshot

@cusxio what version of Chrome are you using?

@rafrex
Chrome 65.0.3325.109
Operating System
Android 8.0.0

@RByers it appears that Chrome v65 on the Samsung S8 and S9 devices (and probably others) registers that the primary pointing device can hover (via the hover media query). In previous versions of Chrome it did not. Is this change intentional? Or a bug? Thanks.
See this screenshot - the Detect Hover section shows the results of the hover and any-hover media queries.
cc: @darktears

@fiadone @cusxio I just released v3.0.5, this should fix the primaryInput issue. It should now be touch. Please confirm, thanks.

@rafrex primaryInput is now indeed touch!
Since the Detect Hover result is still different for both Chrome(hover: true) and Samsung Internet(hover: false), I assume hover media query detection is the culprit?

I will have a look. I didn't change anything for quite some time so I'm guessing it's something else.


Set random seed for gridsearch

I'll test this to make sure a) it is now the same each time, and b) it is different if you use a different seed.

I can confirm that fixing the seed stops results from changing each time.
I have removed the ability for uses to change the seed easily – unlike other hyper parameters, users shouldn't need to change this (a large enough number of derangements should stop them from having to).


Fixing the no token bug

Bug Fix
This fixes the bug where no context layers draw if there is no Maplibre token for the 3D data.

Looks good! BTW We will need to remove the console.log statements at some point, I noticed you left few of them in other places.

Good point. I wonder if we can put that in the linting rules. :thinking:

I am sure we could, I wouldn't spend time on it as it is a nice to have :-)


autopep8 not working in VSCode

I am new to using VS Code and trying to use autopep8 in order to format my python notebooks. I have come across this page Editing Python in Visual Studio Code but am unable to implement it. Please can you show me how to do this.
My latest attempt led me to this error message
Command 'autopep8' resulted in an error (Running the contributed command: 'extension.sayHello' failed.)
Please can you help me get autopep8 working for python notebooks.

What operating system are you using?

Hi @NotWearingPants  I am using Ubuntu 18.04 as my operating system.

Try running sudo pip install autopep8, and then checking if the command autopip8 exists

Please file this issue against the Python extension.


parser multiline generating fluentd config with escape characters

Bugs should be filed for issues encountered whilst operating logging-operator.
You should first attempt to resolve your issues through the community support
channels, e.g. Slack, in order to rule out individual configuration errors. #logging-operator
Please provide as much detail as possible.

Describe the bug:
When using parser multiline, the logging operator generates the format_firstline parameter with escape characteres. This seems to disturb the parser, since only the firstline seems to be parsed.
I'm using the following ClusterFlow:
apiVersion: logging.banzaicloud.io/v1beta1
kind: ClusterFlow
metadata:
  name: java
  namespace: cattle-logging-system
spec:
  filters:
    - parser:
        parse:
          type: multiline
          # Reference: https://docs.fluentd.org/parser/multiline#java-stacktrace-log
          format_firstline: /^\S+\d{2}:\d{2}:\d{2},\d{3}/
          multiline:
            - /^\S+\d{2}:\d{2}:\d{2},\d{3} (?<level>\S+) \s*\[(?<class>.*)\] \((?<thread>.*)\) (?<message>.*)/
        reserve_data: true
        remove_key_name_field: true
        reserve_time: true
    - record_transformer:
        records:
        - flow: "java"
    - tag_normaliser:
        format: k8s.${namespace_name}.${labels.app}
  globalOutputRefs:
    - ssr-es
  match:
    - select:
        namespaces:
          - some-namespace

The log entry:
03:31:59,449 WARN  [com.arjuna.ats.jta] (Periodic Recovery) ARJUNA016009: Caught:: java.lang.NullPointerException
	at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.xaRecoverySecondPass(XARecoveryModule.java:738)
	at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.bottomUpRecovery(XARecoveryModule.java:519)
	at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.periodicWorkSecondPass(XARecoveryModule.java:270)
	at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.doWorkInternal(PeriodicRecovery.java:816)
	at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.run(PeriodicRecovery.java:382)

Expected behaviour:
The parser should result these key/values:

Key
Value

level
WARN

class
com.arjuna.ats.jta

thread
Periodic Recovery

message
ARJUNA016009: Caught:: java.lang.NullPointerException at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.xaRecoverySecondPass(XARecoveryModule.java:738) at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.bottomUpRecovery(XARecoveryModule.java:519) at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.periodicWorkSecondPass(XARecoveryModule.java:270) at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.doWorkInternal(PeriodicRecovery.java:816) at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.run(PeriodicRecovery.java:382)

Steps to reproduce the bug:

Use clusterflow yml and log entry of the Describe the bug section;
See the log parsed with these key/values.

Key
Value

level
WARN

class
com.arjuna.ats.jta

thread
Periodic Recovery

message
ARJUNA016009: Caught:: java.lang.NullPointerException

Additional context:
The config snnipet generated by operator, with escape characters in format_firstline parameter:
    <filter **>
      @type parser
      @id clusterflow:cattle-logging-system:java:0
      key_name "log"
      remove_key_name_field true
      reserve_data true
      reserve_time true
      <parse>
        @type "multiline"
        format1 /^\S+\d{2}:\d{2}:\d{2},\d{3} (?<level>\S+) \s*\[(?<class>.*)\] \((?<thread>.*)\) (?<message>.*)/
        format_firstline "/^\\S+\\d{2}:\\d{2}:\\d{2},\\d{3}/"
      </parse>
    </filter>

Environment details:

Kubernetes version: v1.20.9
Cloud-provider/provisioner: Rancher 2.5.9 in vSphere 6.5 on premise
logging-operator version: rancher/mirrored-banzaicloud-logging-operator:3.9.4
Install method: Helm on Rancher Apps & Marketplace
Logs from the misbehaving component (and any other relevant logs): there is no errors on logs
Resource definition (possibly in YAML format) that caused the issue, without sensitive data: shown on Describe the bug:
section.

/kind bug

I think the problem are the quotes generated on format_firstline parameter. I tried the yaml below (snipet) to avoid the double slash \\:
spec:
  filters:
    - parser:
        parse:
          type: multiline
          format_firstline: /[0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3}/
          multiline:
            - /^\S+\d{2}:\d{2}:\d{2},\d{3} (?<level>\S+) \s*\[(?<class>.*)\] \((?<thread>.*)\) (?<message>.*)/

Which generates the following fluentd config:
    <filter **>
      @type parser
      @id clusterflow:cattle-logging-system:java:0
      key_name "log"
      remove_key_name_field true
      reserve_data true
      reserve_time true
      <parse>
        @type "multiline"
        format1 /^\S+\d{2}:\d{2}:\d{2},\d{3} (?<level>\S+) \s*\[(?<class>.*)\] \((?<thread>.*)\) (?<message>.*)/
        format_firstline "/[0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3}/"
      </parse>
    </filter>

Unfortunally doesn't work. I get the same behaviour.

This isse can be closed because I realize that the file /fluentd/app-config/fluentd.conf on pod rancher-logging-fluentd-0 is actually generated correct.
I see the double slashs \\ only when I do a kubectl -n cattle-logging-system logs rancher-logging-fluentd-configcheck-5d5e51e2
Althoug I'm still interested to know why the multiline is not working with those parameters. Can anyone help please?

This issue can be closed because I realize that the file /fluentd/app-config/fluentd.conf on pod rancher-logging-fluentd-0 is actually generated correct.
I see the double slashs \\ only when I do a kubectl -n cattle-logging-system logs rancher-logging-fluentd-configcheck-5d5e51e2
Although I'm still interested to know why the multiline is not working with those parameters. Can anyone help please?

@mfbrj just out of curiosity. how did you manage to find out the config of multiline parser? ive look in all the docs for logging-operator and on github but had to come to issues to see your config to have an idea how it was configured for logging operator. Would love for more docs to be added, or to be able to pass in raw fluentd config instead of a yaml middle layer


Enh: Allow predefined tags, attributes and non-ASCII characters

Alternative for #43 but also allows for non-ASCII characters to be used when translating in other languages.
resolves #49

@ArchBlood Thanks, let's try :-)


nbt.display.color not work

type=armor
items=leather_chestplate
texture.leather_layer_1=school_uniform_layer_1
texture.leather_layer_1_overlay=school_uniform_layer_1
nbt.display.color=#ffff0c
It's not work, but in case "nbt.display.Name " was work well.
minecraft version: 1.17
mod version: 0.8.1

This is a hotfix(hex integers are checked only for nbt.display.color), this will be implemented properly in the condition rewrite.

Will be available with v0.8.2


Changed CI compiler to<EMAIL_ADDRESS>

The next version of ROCM required minimum gcc version 9.  This upgrades the CI scripts to use this version so that we can later upgrade the ROCM on the CI image.

OK, in that case I'm OK with merging it now.


Feature request: Proper output for PSM 2

2    Automatic page segmentation, but no OSD, or OCR.

Should be implemented with a new renderer, that will include full page analysis info: Page dims, blocks bboxes, lines bboxes.
Output format: xml / json / yaml / tsv.

Related issue: #2148.


404 error from GitHub pages on fonts and vendor.js

I'm getting a 404 error on a few files served from the https://dai-shi.github.io/excalidraw-claymate/ link.

Looking in the GitHub pages branch, the files exist, so I'm unsure about the cause.
As a result, some of the fonts won't render, and I'm not sure what's in vendor.js :-) as the site seems to work otherwise.
Thx

Oh, no. Thanks for reporting.
It's trying to load https://dai-shi.github.io/excalidraw-assets/FG_Virgil.woff2 instead of https://dai-shi.github.io/excalidraw-claymate/excalidraw-assets/FG_Virgil.woff2.
This issue is somewhat related with https://github.com/excalidraw/excalidraw/issues/2605

@dai-shi as mentioned https://github.com/excalidraw/excalidraw/tree/master/src/packages/excalidraw#installation you will have to copy the folder excalidraw-assets to the path where you are serving your assets and it should be fine.

@ad1992 Please note the assets folder is placed alongside index.html. Hoewever, it's the link that points to the asset with the absolute path. How can you make it relative like <font src="./excalidraw-assets/..." ?

@dai-shi looks like the assets are being served from https://dai-shi.github.io/excalidraw-claymate/
so the correct path would be https://dai-shi.github.io/excalidraw-claymate/excalidraw-assets/i18n-ca-ES-json.js instead of https://dai-shi.github.io/excalidraw-assets/i18n-ca-ES-json.js
If that's fixed it would work fine. Can you verify that once ?

@ad1992 Yes, that's the correct path. Is there an option to specify the prefix in @excalidraw/excalidraw package? I don't specify the excalidraw-assets path anywhere in my code. It works just fine with yarn start on localhost.
By the way, the code is pretty small for you to take a look as an application of your effort.

@dai-shi no there is no option to specify the prefix and there shouldn't be any need as well as it should always append the /excalidraw-assets to whatever the base path is.  I am not sure if its an issue with gh-pages  as it's not adding the repo name in the URL, can you try setting the base URL or the base tag so all assets load from the correct path?
If it still doesn't work out let's sync up on discord. I will also try it out in one of my non-CRA apps.

it should always append the /excalidraw-assets to whatever the base path is.

Does it take care of the base path? The index.html is served at https://dai-shi.github.io/excalidraw-claymate/

can you try setting the base URL or the base tag so all assets load from the correct path?

Oh, do you mean <base href="/excalidraw-claymate"> in the index.html?

@dai-shi could you try out the version<EMAIL_ADDRESS>?, I am serving the assets straight from the CDN so you need not copy the assets anymore.

Looks like working. Thanks!


Saved Views: User and Global Defaults

As a Nautobot Admin, I want to be able to set a predefined saved view as the default for all users, so that these users do not have to select the view for themselves.
AC:
I know this is complete when a user with adequate permissions is able to assign existing saved views to be the global default for all users for a given model list view.
Individual users can still create their own views and set their own, specific default which then overrides the global default.

An order of precedence will be defined as:

User-specific default saved view
Globally defined default saved view
No default saved view

As a "shared" boolean to the view model to specify if the view is private to a user or shared for all users.

Per #5774 when this is implemented, the permissions need to then allow for "views I own, or shared views."

For setting the global default, that should be an operation that can happen only from the saved view list view, not for the normal, user facing management of saved views.
When a global has already been set for a given content type, allow the admin user to set a new global and display in a message: "Global default saved view for devices has been changed from A to B"

Setting a global default view when a global default view already exists should display a message informing the users that the global default view is changing from saved view 1 to saved view 2.
Setting a global default view should only be available to admin users with users.change_savedview from the SavedViewListView


fix(Card): more TS

not sure about that TS magic

Thank you !

Little review https://github.com/codegouvfr/react-dsfr/commit/5d01c97cce7bfdb8a531b8e5a4bcb959b33e7cab


Automate the 'precheck' validation step using semantic similarity scores

This task involves automating the current 'precheck' stage which currently involves a human 'triage-er' to validate whether the student model already knows the information which a user is trying to teach the model.
Similar to the steps used in a standard RAG workflow, the sentences could be converted to vectors using embeddings and then could be compared using metrics like cosine similarity scores. Based on these scores, the 'precheck' stage can either be marked as a 'success' (✅ ) or a 'failure' (❎ ).
This can be included with the precheck call to the @instructlab-bot GH bot.
References:

https://huggingface.co/tasks/sentence-similarity
https://www.sbert.net/docs/usage/semantic_textual_similarity.html

Let me know if I am off the mark here but this seems similar to the work im doing in #356, its just that the suggested implementation seems different. This issue seems to suggest using a RAG / vector + embeding for a similarity score vs my implementation which a 1 shot model evaluation natural language prompt (with the teacher model being used for precheck and the trained model used for evaluation). cc @mingxzhao, thoughts on this evaluation method?


BACKLOG-21980 Introduce async lifecycle hooks

JIRA

https://jira.jahia.org/browse/BACKLOG-21980
Description
Introduce async lifecycle hooks

Had discussion with @AKarmanov regarding adding new entrypoint for resolving richtext editor vs using https://github.com/Jahia/jcontent/blob/master/src/javascript/ContentEditor/SelectorTypes/resolveSelectorType.js#L7:

This would only work if I could hardcode richtext5 mixin related info in jcontent pass it down to that selector and create a resolution function on RichText selector which would use all that info and conditionally return selector from richtext 5 module.
either do it backend (via some form of form/field interceptor and replace selector) or front end before we even load the editor to avoid flickering and issues with async nature of the check. I had backend working but then it seemed too much and there is no other use for that interceptor.
another issue is that our resolution is sync so any call we do would do something after initial loading, changing it to async is quite a task as it is used in a few places and is kind of critical

Not to mention registry is lacking lifecycle phases for us to do clean up when ckeditor5 module is uninstalled. So we'll go with this option for now.


Added the ability to eat organs, mmm tastes like people

About the PR
I added the ability to eat basically all organs in the game.
Why / Balance
Issue 20163
Some organs already have a food attribute (e.x. BaseHumanOrgan), which gives them the option in game to be eaten, but nothing happens when it is pressed.
As for balance, one concern is that this makes it very easy to hide bodies that have been gibbed.
Technical details
Updated all .yml files under Resources/Prototypes/Body/Organs/<thing>.yml so that the things respective organs are now edible. Every organ is comprised of 5u nutriment. It would be cool if stomachs were comprised of what ever the individual had been eating, but this can be iterated on.
Additionally, I had to update some values in the cargo livestock catalog to prevent arbitrage. The additional nutrients per organ increased the animals value.
Media
https://streamable.com/4y4dqc

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes
No breaking changes.
Changelog

:cl:

add: You can now eat most organs. Bon appetit!

As for balance, one concern is that this makes it very easy to hide bodies that have been gibbed.

you can already juice organs so it isnt much easier as youll have to wait for your own stomach to empty before eating the victims one

@metalgearsloth @deltanedas could one of you rerun the checks? I am unable to.

git commit --allow-empty -m test; git push


meta information getting dropped from json requests.

I've been trying to use a meta block when building a payload for a json response, but when the response is transmitted the meta block gets stripped away. I saw this line in the json payload wondering why this is not working and dug around a little.
Seems the reason is this line in mockjax, the JSON.stringify call is stripping the meta block. It may be possible to craft a string and pass this as the responseText which would take the else path and skip this conversion.

Whoa .. it has been way too long since I visited this meta issue .. but glad you did .. so happy to dig in to it again.
Can you do us both a favor and write a failing test:
Where you set up your meta info
and then expect to see it later in payload
and it fails ( in other words )
than we have a basis to stand on and work on.
The JSON.stringify thing has to happen because its a json payload. The whole payload concept / class is built upon that assumption. . so not sure if that is avoidable.  But .. I could always be wrong about that.

Howdy partner, any word on this? I would love to get this fixed / cleared up/ tossed in the dumpster ??  I don't mind helping. If you want to screen share, and show me what is going on I can do the rest.

@danielspaniel I did look a little more into this and like you feared changing it would be major surgery and I've worked around it for now. When I get a minute I will put together a test case to capture the issue.

Oooo .. ok .. thanks for the update.  Look forward to seeing if I can figure out what is going on ( and you nice test case as well )

Based on @jeobrien test and PR I am closing this issue because meta seems to work pretty well, and I added a test case in user-search-test ( besides the one already in shared behaviour tests for mockQuery ) to prove it
https://github.com/danielspaniel/ember-data-factory-guy/blob/master/tests/acceptance/user-search-test.js#L86


Unable to uninstall Jupyter Lab Desktop on Windows

Hi, I have not been able to fully uninstall the past versions of Jupyter Lab Desktop on Windows as the JupyterLabDesktopAppServer application does not appear in my windows uninstaller. I have tried using third-party uninstallers as well and it is the same. Is there any other way to go about the uninstallation on Windows? Thanks much.

If you see invalid records in Windows Uninstaller you can clean using the instructions here. If you have installation directories still around, you can manually delete.
After doing these, you can install a new version and your installation records should be corrected.


build fails all of a sudden with Deprecated Gradle errors

Hai there,
i have a React Native app configured with react-native-google-fit version ^0.16.2 which used build fine earlier, after a week here i am build fails saying Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. i am attaching whole log below.
> Task :react-native-google-fit:compileDebugJavaWithJavac FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
337 actionable tasks: 2 executed, 335 up-to-date
/Users/Work/avos/avosnewclone/node_modules/react-native-google-fit/android/src/main/java/com/reactnative/googlefit/GoogleFitManager.java:199: error: cannot find symbol
        GoogleSignInAccount gsa = GoogleSignIn.getAccountForScopes(mReactContext, new Scope(Scopes.FITNESS_ACTIVITY_READ));
                                                                                ^
  symbol:   variable FITNESS_ACTIVITY_READ
  location: class Scopes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-google-fit:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

I am using node version 13 tried out almost all tricks found and exhausted .
Thanks in advance.

same issue with ^0.17.0

the latest version (v0.18.2) seems to work.

Thanks for the super fast ⚡  response.
yes updating to version 0.18.2 worked like a charm but the question still stays the same why did it break all of sudden, i think i worked like 10-15 days with ^0.16.2.
and does 0.18.2 breaks/deprecates any functionalities for from ^0.16.2?

Seems to be related to com.google.android.gms:play-services-basement:18.0.0 getting pulled in, but I've no idea why this update has occurred.

There are suggested fixes in https://github.com/StasDoskalenko/react-native-google-fit/issues/268

Thanks for the super fast ⚡ response. yes updating to version 0.18.2 worked like a charm but the question still stays the same why did it break all of sudden, i think i worked like 10-15 days with ^0.16.2. and does 0.18.2 breaks/deprecates any functionalities for from ^0.16.2?

https://github.com/StasDoskalenko/react-native-google-fit/issues/268#issuecomment-991304855

Thanks for the quick response and awesome support, upgrading the package worked fine and i did not see any side effects as of now.
so closing this issue.


No Build in Locations

My friend, I created a world with this configuration. But even with this tag of NoBuild: true it is still possible to build in the region. Another question, would it be possible to specify the size of this NoBuild area?

prefab: StoneCircle
biome: Meadows, BlackForest
quantity: 75
minAltitude: 5
minDistanceFromSimilar: 500
randomRotation: true
maxTerrainDelta: 2
forestTresholdMin: 1
forestTresholdMax: 8
exteriorRadius: 16
prioritized: true
clearArea: true
noBuild: true

I'm actually currently working on this. I didn't realize no build requires data sync between the client and the server.
The size should be same as the exteriorRadius.

In my case, Client and Server have these settings, but it didn't work. I will wait for your updates.
Thanks for the extra information.


[fix][sql] Remove useless configuration for Pulsar SQL

Motivation
In PR https://github.com/apache/pulsar/pull/14506, we remove the useless config managedLedgerNumWorkerThreads
but we didn't remove the config from the config file, if users use this configuration, the Pulsar SQL can't startup due to strictConfig mode, remove this useless configuration for Pulsar SQL.

// at this point all config file properties should be used
// so we can calculate the unused properties
unusedProperties.keySet().removeAll(configurationFactory.getUsedProperties());

for (String key : unusedProperties.keySet()) {
    Message message = new Message(format("Configuration property '%s' was not used", key));
    (strictConfig ? errors : warnings).add(message);
}

// If there are configuration errors, fail-fast to keep output clean
if (!errors.isEmpty()) {
    throw new ApplicationConfigurationException(errors, warnings);
}

Modifications
Remove useless configuration pulsar.managed-ledger-num-worker-threads from the config file.
Verifying this change
Add tests for the annotated configurations.
Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

[ ] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[ ] The default values of configurations
[ ] The threading model
[ ] The binary protocol
[ ] The REST endpoints
[ ] The admin CLI options
[ ] The metrics
[ ] Anything that affects deployment

Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository: https://github.com/gaoran10/pulsar/pull/28

Codecov Report

Merging #20605 (d5b172f) into master (8125d1f) will increase coverage by 0.80%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master   #20605      +/-   ##
============================================
+ Coverage     72.29%   73.09%   +0.80%
- Complexity    31951    32032      +81
============================================
  Files          1854     1867      +13
  Lines        138462   138670     +208
  Branches      15221    15238      +17
============================================
+ Hits         100095   101367    +1272
+ Misses        30384    29275    -1109
- Partials       7983     8028      +45

Flag
Coverage Δ

inttests
24.20% <ø> (?)

systests
24.98% <ø> (?)

unittests
72.39% <ø> (+0.10%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.
see 205 files with indirect coverage changes


The App uses an insecure Random Number Generator.

Expected behavior
MobSF should not report any issue saying that, these below classes are using insecure-random-number-generator.
io\netty\handler\ssl\util\ThreadLocalInsecureRandom.java
io\netty\util\internal\PlatformDependent.java
io\netty\util\internal\ThreadLocalRandom.java
Actual behavior
MobSF is reporting any issue saying that, these below classes are using insecure-random-number-generator.
io\netty\handler\ssl\util\ThreadLocalInsecureRandom.java
io\netty\util\internal\PlatformDependent.java
io\netty\util\internal\ThreadLocalRandom.java
Steps to reproduce

include io.netty into any of your android project
build an apk
Scan in MobSF

Minimal yet complete reproducer code (or URL to code)
io\netty\handler\ssl\util\ThreadLocalInsecureRandom.java
io\netty\util\internal\PlatformDependent.java
io\netty\util\internal\ThreadLocalRandom.java
Netty version
Latest
JVM version (e.g. java -version)
Java 8
OS version (e.g. uname -a)
Android - any version

That's a MobSF issue that reports a false positive, not a Netty one.

Aah ..! This MobSF is freaking me out.
Thank you Landelle.

I want to repoen this issue. I checked the source code of these class, Netty is using Random (Insecure) from the package "import java.util.Random;"

Those classes are not used for cryptography so there's no need to use a SecureRandom and pay the extra performance penalty. It's used for example for generating self signed certificates, multipart delimiter and WebSocket challenges.
You should reach out to MobSF so they whitelist those classes. It's a MobSF issue.

Hi @slandelle , this is just for my understanding,
Is this package "import io.netty.handler.ssl.SslContext" and the above false positive(above 3 classed) are anyway related?
Please help me understand.

Hi @slandelle , this is just for my understanding,
Is this package "import io.netty.handler.ssl.SslContext" and the above false positive(above 3 classed) are anyway related?
Please help me understand.

No, they are not.


Aerospike Vector Search(AVS) Bedrock integration example

Issue #, if available:
Description of changes:
This pull request add example on how to use Aerospike Vector Search(AVS) with Bedrock. Please refer to AVS page for more information.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

4. Please add a screenshot highlighting the context from raw data, and then print two variables 1/ response without context and 2/ response with context. This will help users to understand the value Aerospike is bringing with RAG.

Can you please further expand on the "response without context" and "response with context". Not quite sure how would I achieve it.  Can you point me to any example in the repo where the above mentioned variables are printed.


Error: Could not find or load main class edu.stanford.nlp.pipeline.StanfordCoreNLPServer

Hello, I am trying to use the Chinese example but I keep getting the following error. I tried executing the following in terminal after setting the directory to the folder where stanford-corenlp is installed:
java -Xmx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer \
-serverProperties StanfordCoreNLP-chinese.properties \
-preload tokenize,ssplit,pos,lemma,ner,parse \
-status_port 9001  -port 9001 -timeout 15000

But I get the following error:
[main] INFO CoreNLP - --- StanfordCoreNLPServer#main() called ---
Exception in thread "main" edu.stanford.nlp.io.RuntimeIOException: argsToProperties could not read properties file: StanfordCoreNLP-chinese.properties
	at edu.stanford.nlp.util.StringUtils.argsToProperties(StringUtils.java:1060)
	at edu.stanford.nlp.util.StringUtils.argsToProperties(StringUtils.java:973)
	at edu.stanford.nlp.pipeline.StanfordCoreNLPServer.<init>(StanfordCoreNLPServer.java:183)
	at edu.stanford.nlp.pipeline.StanfordCoreNLPServer.launchServer(StanfordCoreNLPServer.java:1590)
	at edu.stanford.nlp.pipeline.StanfordCoreNLPServer.main(StanfordCoreNLPServer.java:1644)
Caused by: java.io.IOException: Unable to open "StanfordCoreNLP-chinese.properties" as class path, filename or URL
	at edu.stanford.nlp.io.IOUtils.getInputStreamFromURLOrClasspathOrFileSystem(IOUtils.java:501)
	at edu.stanford.nlp.io.IOUtils.readerFromString(IOUtils.java:634)
	at edu.stanford.nlp.util.StringUtils.argsToProperties(StringUtils.java:1051)
	... 4 more
[Thread-0] INFO CoreNLP - CoreNLP Server is shutting down.

Because I cannot execute the above, StanfordCoreNLP does not work for Chinese:
with CoreNLPServer() as server:
    parser = CoreNLPParser(server.url)

    # sentence = "This is my sentence, which I'd like to get parsed."
    sentence = '这是斯坦福中文分词器测试'
    tokenized = list(parser.tokenize(sentence))
    print(tokenized)

['这是斯坦福中文分词器测试']

Make sure that you're running that java command from the right folder. See https://github.com/smilli/py-corenlp/issues/11 for more information. (Based on your edit, I see that you now are). I also want to refer you to the following pages of documentation:

https://stanfordnlp.github.io/CoreNLP/download.html
https://stanfordnlp.github.io/CoreNLP/human-languages.html
https://stanfordnlp.github.io/CoreNLP/corenlp-server.html

Note also that if you run the server with java directly, then you do not need to also start it with NLTK: CoreNLPServer simply sets up an English variant of the CoreNLP server, which you do not need if you're also running it directly yourself.
parser = CoreNLPParser(server.url)
sentence = '这是斯坦福中文分词器测试'
tokenized = list(parser.tokenize(sentence))
print(tokenized)

As for your most recent edit, it seems that you don't have the chinese model. The documentation of CoreNLP states "Other languages: For working with another (human) language, you need additional model files."


Quickstep-63 Fix PlanVisualizer's crashes on physical plans unsupported by StarSchemaSimpleCostModel.

PlanVisualizer would result in crashes on some queries (i.e., CreateTable) which do not have corresponding physical plan support in StarSchemaSimpleCostModel::estimateCardinality.
This PR fixes this problem by:
(1) Let the cost models throw UnsupportedPhysicalPlan exception for unsupported plans.
(2) PlanVisualizer simply catches the exceptions and omits the cardinality info for unsupported physical nodes.
Assigned to @zuyu

LGTM.


Use simplem2mclient instead of simple cloud client

Given that there's Simple Cloud Client has failed to gain attention internally, switching connected lights over to simplem2mclient (the one found in mbed-cloud-client-example-restricted, but with some additions for type safety in callbacks, and some extra overloads to add_resource). Also updated the text in the document, as simplem2mclient does not support non-numeric lwm2m resources, and updated screenshots accordingly. Also updated the styling of the webapp to match new layout (see lights15.png for a screenshot).
I'm still having simplem2mclient located in simple-cloud-client repo, because I think it's weird to be copying all the tools/bootloaders/simplem2mclient code over between every single project. One shared repo that has everything for an Mbed OS 5 project to connect to cloud makes much more sense.
Depends on #19, and is only tested on K64F so far. Would be good to have someone run through this and see if I missed something.
Note that we can still merge #19 and publish before landing this. This is something on top of that.
@peknis01 @iriark01 @AnotherButler

Closing as SimpleM2MClient is now deprecated, if you are interested please see my updates for the neweset cloud client on the docs-refresh branch

Closing as SimpleM2MClient is now deprecated, if you are interested please see my updates for the neweset cloud client on the docs-refresh branch


Changed fragment_upload_list.xml from Relative to Constraint layout

What this PR does
Changed fragment_upload_list.xml from Relative layout to Constraint layout
Reference
[Sub issue] #148
Screenshots
User interface remains the same

Thanks @Anniekobia ! Congrats on your first PR to the project.

Thank you @ujjwalagrawal17


Use async db driver

It'd be ideal to use an async driver to fetch data from the database, that'll work well with the async coroutines of tornado's handlerS.

It would, and sqlachemy nowadays can do asynchronous stuff as well (it didn't when the models were written in pinnwand).

The main issue i see with this is click.
Since it does not offer async support, we'd basically need to have to sort of packages for db related stuff, one sync and one async
It is either that or we will need to write some wrapper for click that it will enable it to run in an asynchronous context.

What is the issue you see with click? It's only involved before we actually start an event loop right?

I don't know anymore, it has been too long since I did whatever it is that I had done.

Haha I can give it a try and see if I run into problems.


Crash when using clickable area without defining key

Lemonbar's clickable areas support not defining the key to listen for, in which case it defaults to left click:
%{A:reboot:}Test{%A}

In lemonbuddy, this instead results in a crash with the error:
Error in `lemonbuddy': double free or corruption (out)

If you define the key to listen for, it works fine:
%{A1:reboot:}Test{%A}

Relevant configuration:
[module/test]
type = custom/script
exec = echo "%{A:reboot:}Test%{A}"

Full error (minus memory map):
*** Error in `lemonbuddy': double free or corruption (out): 0x00007fa710000f40 ***
======= Backtrace: =========
/usr/lib/libc.so.6(+0x70c4b)[0x7fa72718dc4b]
/usr/lib/libc.so.6(+0x76fe6)[0x7fa727193fe6]
/usr/lib/libc.so.6(+0x777de)[0x7fa7271947de]
lemonbuddy(_ZN10lemonbuddy6v2_0_03bar5parseENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb+0x249)[0x496259]
lemonbuddy(_ZN10lemonbuddy6v2_0_010controller16on_module_updateENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0xa2d)[0x49730d]
lemonbuddy(_ZNK8delegate7Signal1INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE4emitES6_+0xb1)[0x47cde1]
lemonbuddy(_ZN10lemonbuddy6v2_0_07modules12timer_moduleINS1_13script_moduleEE6runnerEv+0x15b6)[0x4b7546]
/usr/lib/libstdc++.so.6(+0xbb31f)[0x7fa7279aa31f]
/usr/lib/libpthread.so.0(+0x7454)[0x7fa7274c2454]
/usr/lib/libc.so.6(clone+0x5f)[0x7fa7272057df]
======= Memory map: ========
...

Thanks for reporting it.. Seems like you found two bugs in one there, so that's nice! I noticed in the code that I forgot to implement the default fallback when rewriting 2.0... So the error is caused by the app trying to close a non-existing action. I'll push a fix in a few minutes.

Fixed in de0c3eb46adc78a901f6fcfbba727e41b7f51098, please verify.


Use pathlib to determine location of module

Description
Allows for relocatable caches.
Thanks to @mcgibbon for the contribution!
Blocked by: #647.

borg try

bors try

bors try

This build passed, but it failed to propagate the success back to github. It just needs your re-review to merge.


fix overflow comments for APR - from audit

although over flow that is pointed to has very low risk...

merged to master.
now in staging


The duplicated network is actually configured

[Enter feedback here]
The Remarks section states "The new network isn't configured", but that isn't true, as the network was duplicated from an already-configured one.  Looks like a copy/paste error from WifiConfig_AddNetwork().

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

ID: c6346b23-c2fa-b5b0-eab6-fab397f35f51
Version Independent ID: 634d6a9e-bace-b0b6-93f2-31be1edf29a6
Content: WifiConfig_AddDuplicateNetwork function - Azure Sphere
Content Source: AzureSphere/articles/reference/applibs-reference/applibs-wificonfig/function-wificonfig-addduplicatenetwork.md
Product: azure-sphere
GitHub Login: @esalc
Microsoft Alias: azurespheredocs

@BarryBo
Thanks for your feedback! We will investigate and update as appropriate.


Suggestion: Set Language for specific Posts

Currently, the project only supports a single global language setting. However, I would like to propose a solution for users like myself who wish to publish posts in multiple languages, specifically Chinese and English.
I suggest adding a "language" field as optional frontmatter for each post. Users could then specify the language of their posts using tags such as "en" for English, "zh" for Chinese (also "zh_TW", "zh_HK", etc.), and "jp" for Japanese.
Also, thanks for the amazing project :3

By default, the starting tag of <html> contains lang which defines the global language of the entire webpage. According to my test, this was reflected by the value lang set in SiteConfig (/src/config.ts).
In my expectation, the example frontmatter of a post should be like this:
---
title: Hello World
description: Here goes the description
published: 2024-08-12
draft: false
category: Casual
tags: []
language: en
---

Where the language field defines the language of the post, and overwrites the value in <html lang="">.
For bloggers who have the need to write articles in multiple languages, being able to set language for a single post offers a better advantage for search engine crawling, which is also a type of SEO.

Closed as #151 has been merged.


.aoc leaderboard show when last updated

Description

Currently, the .aoc leaderboard command says "Here's our current top 9! :christmas_tree::christmas_tree::christmas_tree:". This is confusing because it is actually not the current top 9, because the leaderboard only updates every 30 minutes. This already led to a bit of confusion in the #advent-of-code channel. The leaderboard command should make it clear that it updates every 30 minutes so what it shows may not be accurate.
Reasoning

Less confusion over the leaderboard.
Proposed Implementation

Change "Here's our current top 9! :christmas_tree::christmas_tree::christmas_tree:" to "Here's our top 9 as of 30 minutes ago! :christmas_tree::christmas_tree::christmas_tree:"
Would you like to implement this yourself?

[x] I'd like to implement this feature myself
[ ] Anyone can implement this feature

I understand if I don't get to implement this as it is only a small text change and a pr may not be necessary.

The info embed does already show you the last time the leaderboard has been updated:

Oh completely missed that. Closing issue.


The screen don't display everything in mobile

Tested versions
4.2.1 The screen don't display everything in mobile
System information
Mobile
Issue description
The screen don't display everything in mobile
Steps to reproduce
The screen don't display everything in mobile
Minimal reproduction project (MRP)
The screen don't display everything in mobile

You need to fill in the information we ask for in the issue template, otherwise we can't do anything.

When I export in godot and put android it go out of the screen

That's solved, see:

https://github.com/godotengine/godot/issues/85551

Try 4.2.2.rc1

Thanks 👍😊
On Sat, Mar 2, 2024, 5:04 PM A Thousand Ships @.***>
wrote:

That's solved, see:

#85551 https://github.com/godotengine/godot/issues/85551

Try 4.2.2.rc1
https://godotengine.org/article/release-candidate-godot-4-1-4-and-4-2-2-rc-1/
—
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/89080#issuecomment-1974804668,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BGTRY4I6YT4Q3XJBIY47U43YWHL7ZAVCNFSM6AAAAABEDC6OOGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZUHAYDINRWHA
.
You are receiving this because you authored the thread.Message ID:
@.***>


[windows] Various improvements in build.ps1

This PR contains the combined patch-set from the following individual reviews:

https://github.com/swiftlang/swift/pull/77875
https://github.com/swiftlang/swift/pull/77874
https://github.com/swiftlang/swift/pull/77945
https://github.com/weliveindetail/swift/pull/2

Once LLDB testing landed, this needs additions from https://github.com/weliveindetail/swift/commit/buildps1-consolidate-deps-infos-with-lldb-testing

@swift-ci please test

@swift-ci please test Windows Platform
I hope this is a transient issue.
[2024-12-04 17:36:51] Building 'C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\swift' to 'T:\101' for arch 'x86_64'...
Error: The term 'if' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    at Get-BuiltToolchainTool, C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\swift\utils\build.ps1: line 897
    at Get-ToolchainTool, C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\swift\utils\build.ps1: line 973
    at <ScriptBlock>, C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\swift\utils\build.ps1: line 1122
    at Isolate-EnvVars, C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\swift\utils\build.ps1: line 623
    at Build-CMakeProject, C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\swift\utils\build.ps1: line 1010
    at <ScriptBlock>, C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\swift\utils\build.ps1: line 1893
    at Isolate-EnvVars, C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\swift\utils\build.ps1: line 623
    at Build-Runtime, C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\swift\utils\build.ps1: line 1863
    at Invoke-BuildStep, C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\swift\utils\build.ps1: line 457
    at <ScriptBlock>, C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\swift\utils\build.ps1: line 2878
  From System.Management.Automation.CommandNotFoundException: The term 'if' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
      at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
      at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
      at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
      at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
      at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
      at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
      at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess)
      at System.Management.Automation.PSScriptCmdlet.DoEndProcessing()
      at System.Management.Automation.CommandProcessorBase.Complete()

@swift-ci please test Windows Platform

@swift-ci please smoke test


isOpen naming convention is inconsistent with other boolean props.

Issue description
The props naming convention of isOpen appears to be inconsistent with other boolean props - all other props in all components avoid the is prefix. Examples:
<Button block>
<Card inverse>
We're seeing this in an internal project when using Reactstrap as a base - there's a lot of confusion about whether to prefix is for existing props or not.
Is this something which makes sense to change, or is it a more specific convention than just the typical "boolean vs. other props" use of "is"?

It was a convention the react docs used. I'm not sure it's worth the breaking change for consistency and I think it's important to have some distinction for this prop that controls visibility vs a modifier prop that changes how something looks.

Fine by me - it'd be a painful deprecation, and it's simple enough for us to map to the different name.


Failure creating self-signed certificate with the x509 package

I'm attempting to use vault-signer to generate a self-signed x509 certificate for an RSA key held in the vault transit secrets engine. A simplified test program can be found at https://gist.github.com/sforshee/f6f1bef6148240929a334d9d867cdc39. When I run the program, it fails trying to verify the signature:
2022/03/15 19:43:45 Error creating certificate: x509: signature over certificate returned by signer is invalid: crypto/rsa: verification error

The crypto.Signer interface expects a digest, which is what the x509 package supplies. But vault-signer does not set prehashed=true in the signing request, so the digest is treated as a plaintext. If I modify vault-signer to set prehashed=true the certificate verification is successful. This causes the vault-signer tests to fail, however.

I vaguely recall this coming up in Vault and a prehashed parameter was added to support this case. It seems like we'll need another toggle in the signer configuration to handle this scenario. Thanks for the reproduction and the gist. I'll try and take a look at this shortly.

@sforshee I believe #2 will resolve your issue. Can you give me a quick review and let me know what you think?

Thanks for the quick response! I tested the changes, and they fix the problem I'm having with the x509 package.

I tweaked the implementation slightly in #3 but also explored a way to infer if the data passed to Sign is hashed or not in https://github.com/chrishoffman/vault-signer/compare/prehash-from-signeropts. I looked at some Sign implementations and can't tell for sure if this is the appropriate approach or if this approach is consistently applied. Any insight would be helpful but I believe the explicit implementation in #3 will work just fine.

I'm afraid I can't really offer any insight. I don't have any expertise about golang crypto.Signer. I'd never even written more than a few lines of go before last week.
What I can tell you is that the implementations in #3 and in your prehash-from-signeropts branch both seem to work fine for my use case.

Thanks again. I ended up going with the third options since I found a few reference implementations that did the right things with SignerOpts. So this ended up being a bug that should require no changes to your original code to work. I added tests for x509 and JWT signing https://github.com/chrishoffman/vault-signer/blob/main/vault_signer_test.go#L121-L190.


preventOpenDuplicates does not take into account the title

I am trying to pop up two toasts with the same text but different titles. When preventOpenDuplicates is true the second toast is not displayed.
As I am unable to override preventOpenDuplicates when creating the toast there is no work around for this issue at the moment.
I also question why I can't override preventOpenDuplicates in the create call??

The title thing is a legit request. I would need to change lot of things tho to make that work (perhaps for that 2.0.0 release that seems to be never close).
I remove preventOpenDuplicates for being used per toast basis. It is more a generic option, more than a toast option. Still, I think it makes sense to be able to disable the rule once. I will research that option too.

@Foxandxss
OK, I am a bit concerned that my pull request is overly simply then as I didn't think there was that much to change...
What did I miss?


PHP: Fix logic setting roots pem

Same as #21651 but for the v1.26.x branch

The tests failure are all unrelated.


Bosun complaining about actionBodyForceClose, actionBodyDelayedClo and actionBodyCancelClose

Bosun complaining about actionBodyForceClose, actionBodyDelayedClose, and actionBodyCancelClose intermediately and causing crash with error couldn't read rules: unknown key actionBodyDelayedClose after looking at the code cmd/bosun/conf/rule/loaders.go#L442 we found strings.HasSuffix sometime getting matched with 'Close' rather then 'DelayedClose, ForceClose or CancelClose' and later it breaks in the switch statement cmd/bosun/conf/rule/loaders.go#L462 due to invalid template type
Debug log:
2017/11/29 11:27:26 enabling syslog
2017/11/29 11:27:26 info: loaders.go:439: Key was: actionBodyDelayedClose
2017/11/29 11:27:26 info: loaders.go:442: Key after trim action: BodyDelayedClose
2017/11/29 11:27:26 info: loaders.go:448: ActionType: Closed
2017/11/29 11:27:26 info: loaders.go:450: Template keyType: BodyDelayed
2017/11/29 11:27:26 fatal: main.go:119: couldn't read rules: conf: test01.conf:34:3: at <actionBodyDelayedClo...>: unknown key actionBodyDelayedClose

In this patch, we try to match the actionType explicitly with strings.Compare

lopping @captncraig for a review :)


rename @pure decorator to @optimized

"pure" name is misleading: it could be applied to a component which is not pure. the decorator simply states that the component will be optimized with a default shouldComponentUpdate method relying on references

Minor concern: @optimized suggests a benefit, but it's not clear in the requirements.
At least with @pure you were hinted that the component should've been "pure", i.e. depending exclusively on an (immutable) set of input (i.e. the props)
As I understand it, there are a few caveats for using it without shooting yourself in a foot, namely:

no mutable props
no RouteHandler

others?
Do we have any way of asserting those away?

no mutable props
no RouteHandler
no mutable state

the more I think about this decorator the more I find it dangerous...

It's potentially dangerous, but the design encourages the use of tcomb structs.
I'm fine with this, if we state the requirements clearly


Q: It downloads the font in each build?

Hello!
I'm checking this plugin to use in my project, but I can see each time the build is launched download all the fonts time after time. Is it right?
If so, do you plan to implement a possible cache?
Thanks!

Hi @antoniogiroz!
Actually that's a pretty good idea, thank you!
I'll research this topic! 😉

I've just released v3.6.0 with a file-based persistent cache feature. 😉


[How to] : Use this with aws lambda

I am pretty new to graph db and node ... so might be silly question.
However would be great how I can use this with aws lambdas.
Do I need nestjs to work with  drivine  ?
Is it possible to publish a sample aws lambda with drivine ?

Don't necessarily need NestJS, however:

As yet there isn't an example of using without NestJS.
Some features are NestJS specific.
Dependencies haven't been split into separate npms - at the moment, the main one will pull in NestJS, at the moment, even if it is not used.

Don't necessarily need NestJS, however:

As yet there isn't an example of using without NestJS.
Some features are NestJS specific.
Dependencies haven't been split into separate npms - at the moment, the main one will pull in NestJS, at the moment, even if it is not used.

Thanks @jasperblues  ... do you plan to package deps accordingly in near future ? I am trying one to build for aws hope it works out . :)

I could do it when time permits, however have you thought about using NestJS from Lambda?
https://github.com/rdlabo/serverless-nestjs

I read that however i feel its an over head..  most of the things are taken care by API Gw.. and the package size gets added.

@jasperblues  I am trying to get the Drivine running in aws lambda without nestjs.
For that have using a global function like this.
I am not so good with node world and learning as I age... so forgive for my grave mistakes in case.
    return inDrivineContext().run(async () => {
        DbRegistry.buildOrResolveFromEnv();
    });
}

export class BomRepositoryImpl implements BomRepository {
    private logger = getLogger(BomRepositoryImpl.name);
    private persistenceManager: PersistenceManager;

    constructor() {
        this.persistenceManager = new TransactionalPersistenceManager(TransactionContextHolder.getInstance(),
            ServiceConfig.db.name);
    }

    @Transactional()
    async getAllBoms(id: string): Promise<Tenant> {
        this.logger.debug(`Start getting bom ${id}`);
        const spec = new QuerySpecification<Tenant>()
            .withStatement(
                `MATCH (Tenant{_id:$1}) return Tenant`
            )
            .bind([id])
            .transform(Tenant);

        return this.persistenceManager.getOne(spec);
    }
}

This has 2 issues which i am not able to solve

the class-transformer is not able to map the values returns me always a null object.

rec.txt

When i re-run the api i get below error

  Error: No context available. ns.run() or ns.bind() must be called first.
      at Namespace.set (/opt/glabbr/code/infniti/ms/bom-service-node/node_modules/cls-hooked/context.js:36:11)
      at o.set (/opt/glabbr/code/infniti/ms/bom-service-node/.webpack/service/src/api/webpack:/src/db/transaction/TransactonContextHolder.ts:66:24)
      at o.currentTransaction (/opt/glabbr/code/infniti/ms/bom-service-node/.webpack/service/src/api/webpack:/src/db/transaction/TransactonContextHolder.ts:50:14)
      at new u (/opt/glabbr/code/infniti/ms/bom-service-node/.webpack/service/src/api/webpack:/src/db/transaction/Transaction.ts:28:28)
      at runInTransaction (/opt/glabbr/code/infniti/ms/bom-service-node/.webpack/service/src/api/webpack:/src/db/transaction/Transactional.ts:35:61)
      at n.getAllBoms (/opt/glabbr/code/infniti/ms/bom-service-node/.webpack/service/src/api/webpack:/src/db/transaction/Transactional.ts:15:20)
      at c.getAllBoms (/opt/glabbr/code/infniti/ms/bom-service-node/.webpack/service/src/api/webpack:/src/service/bom-service-impl.ts:12:19)
      at e.getBOM (/opt/glabbr/code/infniti/ms/bom-service-node/.webpack/service/src/api/webpack:/src/api/get-bom.ts:47:35)```

Let's solve the 2nd problem first. Transactions need to be called in a Drivine context. You can do this manually or set up a middleware. Here's the NestJS middleware:
@Injectable()
export class TransactionContextMiddleware implements NestMiddleware {
    constructor(readonly transactionContext: TransactionContextHolder, readonly databaseRegistry: DatabaseRegistry) {}

    async use(req: express.Request, res: express.Response, next: express.NextFunction): Promise<any> {
        return inDrivineContext().run(async () => {
            this.transactionContext.databaseRegistry = this.databaseRegistry;
            return Promise.resolve(next());
        });
    }
}

Let's solve the 2nd problem first. Transactions need to be called in a Drivine context. You can do this manually or set up a middleware. Here's the NestJS middleware:
@Injectable()
export class TransactionContextMiddleware implements NestMiddleware {
    constructor(readonly transactionContext: TransactionContextHolder, readonly databaseRegistry: DatabaseRegistry) {}

    async use(req: express.Request, res: express.Response, next: express.NextFunction): Promise<any> {
        return inDrivineContext().run(async () => {
            this.transactionContext.databaseRegistry = this.databaseRegistry;
            return Promise.resolve(next());
        });
    }
}

Yes if this is what I did in first stamement.
inDrivineContext().run(async () => {
DbRegistry.buildOrResolveFromEnv();
});
this works for me but only once next time i hit the api again. it gives me the error.

You run your queries in context, not the setting up of drivine.
The middleware above means that any endpoint invocation is already in context.
Need to set up the equivalent for AWS.

ok while i figure out the way for this in AWS ... can you help me with the data to class issue ?

What happens when you use NonTransactionalPersistenceManager ? Can you log the output without a mapper? Let's see if it is something compatible for mapping.

No luck with NonTxPresistMgr
output of query before mapQueryResult
[

    {
        "keys":[
            "Tenant"
        ],
        "length":1,
        "_fields":[
            {
                "identity":{
                    "low":0,
                    "high":0
                },
                "labels":[
                    "Tenant"
                ],
                "properties":{
                    "_id":"amZXSkaZsX",
                    "usr":"amZXSkaZsX",
                    "passwd":"amZXSkaZsX",
                    "uri":"neo4j://localhost:7687",
                    "dbName":"bom-service-WTGVmpb",
<EMAIL_ADDRESS>                }
            }
        ],
        "_fieldLookup":{
            "Tenant":0
        }
    }

]

Output for   const results = this.mapToNative(records); before
plainToClass(spec.transformType, results);
[

    {
        "Tenant":{
            "_id":"amZXSkaZsX",
            "usr":"amZXSkaZsX",
            "passwd":"amZXSkaZsX",
            "uri":"neo4j://localhost:7687",
            "dbName":"bom-service-WTGVmpb",
<EMAIL_ADDRESS>        }
    }

]

I think the  this.mapToNative(records) should return only
[

    {
        "_id":"amZXSkaZsX",
            "usr":"amZXSkaZsX",
            "passwd":"amZXSkaZsX",
            "uri":"neo4j://localhost:7687",
            "dbName":"bom-service-WTGVmpb",
<EMAIL_ADDRESS>    }

]

My Tenant class
export class Tenant {
    _id: string;
    usr: string;
    passwd: string;
    uri: string;
    dbName: string;
    ownerEmail: string;
}

If it was me I would call JSON.strinfigy on the result, and then create a unit test that class plainToClass on that - to debug the mapping.

Yes that what i did  called JSON.strinfigy  on result, i could understand that in current code you are mapping all the properties against the lable/key due to which the plainToClass is not working.
When i removed the key it started working.
I was trying to run the test cases however they are not working on my laptop not sure why. the change i made was
           const item = {};
            for (let j = 0; j < record.keys.length; j++) {
                const key = record.keys[j];
                item[key] = toNative(record.get(j));
            }
            data[i] = item;

to
            let item = {};
            for (let j = 0; j < record.keys.length; j++) {
              //  const key = record.keys[j];
                // @ts-ignore
                item = toNative(record.get(j));
            }
            data[i] = item;

You should not need to change that.

What do you suggest how should we fix it ?

Seems like there are two issues:

New to learning how Drivine works.
Converting to AWS Lambda, despite there being no sample/howto for this yet.

Are you able to submit a failing test case using standard drivine (with NestJS)  ? Or if it works on standard setup, it is clear the problem is in the AWS assembly.

I feel the query is not working which i have shown below is a simple query.
Not sure if it changes something specific to AWS / Nest.
 const spec = new QuerySpecification<Tenant>()
            .withStatement(
                `MATCH (Tenant{_id:$1}) return Tenant`
            )
            .bind([id])
            .transform(Tenant);

Can you try:
MATCH (t:Tenant{_id:$1}) with t return {t.firstPropertyOfInterest, t.secondProp, t.anotherProp}

Can you try:
MATCH (t:Tenant{_id:$1}) with t return {
   t.firstPropertyOfInterest,
   t.secondProp,
   t.anotherProp
}

I forgot to mention that with drivine's performance goals, we pluck what we like from the results.
(I also forgot that it works like this, as I was working on something completely different for 10+ weeks)

Hey @jasperblues thanks , I will try this and let you ASAP.

It will surely work. Sorry that this wasn't obvious to me earlier (it should have been) - I got a bit sidetracked in that we were also converting for NestJS-less and Lambda.
We can also easily support mapping without having to push the results into a JS object compatible structure in the query. Just will require a few considerations.


[FEATURE] Improve UI of search bar for search page

Description
Improved Search bar section by added some CSS properties on it to look it good.
Add search icon embedded on search bar
Make it responsive in all devices.
here is demo

Screenshots

@narayan954 I would like to contribute on this  project under GSSOC'23 !!
Additional information
No response
Record

[X] I agree to follow this project's Code of Conduct
[X] I have checked the existing issues
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

Sure, you can go ahead! :)


5.11.9

There is 1 CI failure coming from api docs: https://circleci.com/gh/mui/material-ui/484659

It's solved now.


URGENT - Site Application Error During Board Meeting

Hi Team!
The site will not load and errors out with an Application error. Can we please look into this ASAP?

We'll estimate the cost for autoscaling in Heroku (using Performance tier dynos).

We'll track future site optimization work in the related milestone.


Provide a way to start Alluxio processes in foreground for process supervisors

Is your feature request related to a problem? Please describe.
In many Linux-based distributions such as Debian, Ubuntu, CentOS, RHEL, etc.. process supervisors like systemd are utilized to launch processes and track the life of a process, and automatically restart the process if it fails.
To function properly these process supervisors expect a program which runs in the foreground when launched in a terminal. This is because supervisors like systemd takes care of daemonizing and tracking the status of the process.
Currently, our start script only starts processes via a command in the form(nohup ${args} 2>&1 ${log_path}) &. We provide no options which leaves out the & that forces the process into the background.
It might also be useful to provide a "default" set of system service files so that users can install Alluxio as a service through systemd.
Describe the solution you'd like
It would be useful to add an option to our alluxio-start.sh script that will force the Alluxio java process to run in the foreground. This would allow process supervisors to properly track Alluxio (job) masters, (job) workers, and possibly restart, or report when these processes crash or fail.
Describe alternatives you've considered
None so far
Urgency
Low
Additional context

@apc999 what do you think?

+1


[Feature] support star mgr worker info sync with fe be/cn info (backport #27647)

change ShardDeleter to StarMgrMetaSyncer
change shard_deleter_run_interval_sec to star_mgr_meta_sync_interval_sec
support worker diff

Fixes #issue
What type of PR is this:

[ ] BugFix
[x] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto-backported to the target branch

[ ] 3.1
[ ] 3.0
[ ] 2.5
[ ] 2.4

[FE PR Coverage Check]
:heart_eyes: pass : 39 / 42 (92.86%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/server/GlobalStateMgr.java
1
2
50.00%
[1357]

:large_blue_circle:
com/starrocks/lake/StarOSAgent.java
10
12
83.33%
[702, 703]

:large_blue_circle:
com/starrocks/common/Config.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/alter/LakeTableSchemaChangeJob.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/lake/StarMgrMetaSyncer.java
26
26
100.00%
[]