Encrypted Credentials

Hi,
Iam using "HttpBasicAuthenticator" to connect to a Rest-API.
Therefore, the username and password is decrypted in the sourcecode.
Same with credentials for the Proxy. Decrypted IP, Username and password here too.
Am i doing something wrong or is it normal to write passwords without encryption in the source code?

@Bazuum the most secure method would be to not store the password at all and have the user enter the password in a userform with a password field. I personally keep them out of the workbooks in a separate txt file so that I don't accidentally check them in to Github, but this is probably the least secure method so I wouldn't necessarily recommend it. Another option along the same lines is to store them in environment variables on trusted computers and then load them via Environ in VBA. There are some encryption functions available to VBA so you could store encrypted passwords and decrypt with a user-supplied key, but I don't have experience with this and haven't found any tutorials on securely doing this. As for proxy credentials, you may be able to use Client.EnableAutoProxy so that they are loaded automatically from the system so that there is one less password to store. Generally, I would try to keep passwords out of Workbooks/VBA.
Password field:
https://support.microsoft.com/en-us/kb/830258
Here are some links to other approaches:
http://programmers.stackexchange.com/questions/147254/security-concerns-with-password-storage-in-scripting-languages-vba
http://stackoverflow.com/questions/3217014/how-to-securely-store-connection-string-details-in-vba
This seems like a secure and interesting approach, but it's pretty labor intensive:
http://vba4all.com/how-to-securely-store-my-connection-string/
Possible encryption route:
(I previously used System.Security.Cryptography for hashing and it appears there are methods available for AES encryption/decryption, so an approach like the following might work)
https://github.com/VBA-tools/VBA-Web/blob/fd24a0b898cca2e50ac53e105306e7f167fbb9b0/src/RestHelpers.bas#L1054
https://msdn.microsoft.com/en-us/library/System.Security.Cryptography(v=vs.110).aspx


Add support for reporting ELF variables in various APIs

Please see individual commits for descriptions.

The test failures seem interesting. I verified the numbers we see (alas, this is only reproducible in CI at this point and I can't easily download the binary...) and it seems as if they suggest that the logic introduced with 4b305030d3cdfc9083ce55d53a266cce8e3efdc5 is b0rked.

Superseded by https://github.com/libbpf/blazesym/pull/499


docs: add some documentation on how to implement a cloud provider

Based on our recent experience at Veepee, we decided to contribute back some documentations to help people to implement Cloud Provider interface, as some examples are not complete for a real case, or too oriented to some cloud APIs.
Fixes #N/A
Description
How was this change tested?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

. Please share a link if its open source

Hello @Bryce-Soghigian and @jonathan-innis
thanks for your amazing feedback, i'll try to answer asap , as i'm not a kubecon conferences but working today :)
Idea is to help people to port their cloud implementations showing the pre-requisites they need.
i'll try to take some of your comments and re-test some things on our implementation (like the hydrated creation using original claim).
For the implementation, as it's a private cloud with its own APIs i don't think i can opensource it, as no one needs to use it. Also we are trying to have multi tenant compromise on our side as on our current node controllers we have multi client model where anyone can use namespaced CRD to define a node pool they want to populate, with their own credentials and account on our internal cloud (here i see a limitation on karpenter, as i don't see a way to do a Get or a List call with some client context, anyway it's out of PR scope :) )

/assign @jmdeal


Add OPA policy support

Purpose
This PR resolves https://github.com/wso2/apk/issues/1164 by adding OPA policy config for API Policies. An OPA policy can be added by defining oPAPolicy property in APIPolicy kind. Following is an sample APIPolicy kind which includes a OPA policy.
apiVersion: dp.wso2.com/v1alpha1
kind: APIPolicy
metadata:
  name: sample-api-policy
  namespace: apk
spec:
  override:
    oPAPolicy:
      serverURL: http://opa-svc.apk:8181/v1/data
      policy: opa/test
      rule: allow
  targetRef:
    group: dp.wso2.com
    kind: API
    name: http-bin-api
    namespace: apk

Codecov Report
Patch coverage has no change and project coverage change: +48.26 :tada:

Comparison is base (18d1cbd) 31.84% compared to head (db1d6aa) 80.10%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1193       +/-   ##
===========================================
+ Coverage   31.84%   80.10%   +48.26%
===========================================
  Files         376        9      -367
  Lines       42868      548    -42320
  Branches    13690      246    -13444
===========================================
- Hits        13650      439    -13211
+ Misses      28968      109    -28859
+ Partials      250        0      -250

Flag
Coverage Δ

adapter
?

admin-domain-service
?

backoffice-domain-service
?

devportal-domain-service
?

idp-domain-service
80.10% <ø> (ø)

runtime-domain-service
?

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

we will be reopening this PR with the mediation app implementation. Hence we will be closing as we are expecting changes to these CRs in future


Build a "version" string into the runtime options, available during execution

This issue was originally filed by @chrisbu

To help with diagnosing issues with third party scripts, it would be useful if those third party scripts could report the version of Dart they are being run with.
Something like (or maybe included in) the RuntimeOptions() class, this would provide information about the dart (or js) runtime being used. I envisage that Frog JS would contain the version of frog that was used to convert to JS.
Eg:
var info = new DartDiags();
print(info.version);   //eg: 4567
print(info.envt);      //eg: FrogJS, Dartium, DartVM

We have 'Platform.version' – for a while now...


SP4 Datalogger: Fix support for DateTime axes

Data arrives at 250ms, the XAxis has XMin Limit = 0,   XMax limit = 1(mins). When the plot reaches the right most  tick and has to jump  left, the XAxis gets rescaled . Please see video. This video is for XMaxLimit = 1 . I trie dit for 30 mis interval as well, with same outcome.
I tried using DateTimeFormat - same thing happens.
Could you please advise on how can I ensure that the xaxis is not rescaled on a 'jump' ?
Thanks !
https://github.com/ScottPlot/ScottPlot/assets/15835871/582a17e7-538c-474b-a497-124e71705322
ScottPlot Version: 4.1.65
Operating System: Windows 11
Application Type:  WinForms

Hi @p4pravin, it is difficult to offer advice because you did not share the code necessary to reproduce this issue
I suspect the problem relates to how far the plot is jumping when the plot runs off the screen.
Try something like:
var logger = formsPlot1.Plot.AddDataLogger();

logger.ViewJump(TimeSpan.FromMinutes(60).TotalDays);

The way Microsoft handles dates is very confusing. Basically the ViewJump() number is days forward to jump after new data runs off the screen.
Let me know if this doesn't do the trick! 👍

Hi @swharden  Thank you for your reply! I was trying to use ViewJump to jump by 'minutes' instead of 'days'.   In the meantime, based on an example in the documentation, I used SignalPlot to plot the continuous data with sample rate=4 and jump left after new data runs off the screen. It is working well for a 1 min interval so far. Will test for 30 mins interval.   SignalPlot seems like the right plot type to use.
Will try out what you have suggested. Thanks again!


fix(58801): "Move to file" on global code unnecessarily imports/exports, generates invalid code

Fixes #58801

@andrewbranch The moveToFile refactoring adds the same symbol to each declaration...

targetFileImportsFromOldFile.set(symbol, isValidTypeOnlyUseSite);

https://github.com/microsoft/TypeScript/blob/d8086f14b6b97c0df34a0cc2f56d4b5926a0c299/src/services/refactors/moveToFile.ts#L901-L912

It looks like these changes fix the crash mentioned in https://github.com/microsoft/TypeScript/issues/58806., the moveToNewFile_global3.ts test covers this case.

Good to merge as soon as @navya9singh signs off!

@typescript-bot cherry-pick this to release-5.5 and LKG


Cannot solve primitive type

Exception in thread "main" UnsolvedSymbolException{context='unknown', name='int', typeSolver=null}

I would like to get the qualified name "java.lang.Integer" but unfortunately I can't do so using:
JavaParserFacade.get(AndroidAnalyzer.combinedTypeSolver).getTypeSolver().solveType(((PrimitiveType)node).getElementType().toString()).getQualifiedName()

int and java.lang.Integer are not the same thing. You may want to look into com.github.javaparser.symbolsolver.model.typesystem.PrimitiveType.
Also, you could call:
convertToUsage
JavaParserFacade.get(AndroidAnalyzer.combinedTypeSolver).convertToUsage(node.getElementType(), node)
and get an instance of the JSS PrimitiveType.
A TypeSolver is used to resolve reference types, while primitive types are part of the language definition, so the TypeSolver has nothing to do with them.
Does this help?

I see! Thanks for the explanation.
I have modified my code as such:
public String getType(Node n) {
	if (.....)

	else if (node instanceof FieldAccessExpr) {
		if (((FieldAccessExpr) node).getScope().isPresent()) {
			return ((FieldAccessExpr) node).getScope().get().toString();
		}
	}

	else if (node instanceof PrimitiveType) {
		return ((PrimitiveType) node).getElementType().toString();
	}

	else if (node instanceof ArrayType) {
		return ((ArrayType) node).getElementType().toString();
	}
}


Add remove files at worker exit

When Gunicorn is used as multiple processes,
Added code to delete the actual generated Guage file when the worker exits.
guage_all_{pid}.db
histogram_{pid}.db
counter_{pid}.db

The current behaviour is correct, you don't want counters going backwards.

Every time the worker restarts, the PID changes and a new guage file is created with the changed PID. The more the number of guage files in multiprocs_directory, the slower the metrics collection rate when collecting.
This PR has solved this problem for me, but I'm sorry it was not what you want. :)

Removing these files would break your metrics.


how to download

idk how to download

@connor11016

go here https://github.com/dz333n/wcecl/actions/workflows/build.yml
choose the very first row
you will see artifacts section at the bottom, download any you want


Change is_active to Enum

close #202

test failed because change is needed in the tag package (https://github.com/EscolaLMS/Tags/pull/21)


Doesn't work in Redmine 3.4.6

Hi!
This plugin doesn't work in the following environment:
Redmine version             3.4.6.stable
Ruby version                   2.4.4-p296 (2018-03-28) [x86_64-linux]
Rails version                    4.2.8
Environment                   production
Database adapter           Mysql2
Problem - after choosing field type (see below), the browser shows - "Internal error.
An error occurred on the page you were trying to access. If you continue to experience problems please contact your Redmine administrator for assistance. If you are the Redmine administrator, check your log files for details about the error."

log:
Started POST "/ajax_counters/counters" for <IP_ADDRESS> at 2018-09-26 11:41:38 +0300
Processing by AjaxCountersController#counters as JSON
Parameters: {"counters"=>["17e931ec4650adbf9dd1e740717854fc", "8afabb878df82ab70b90895578e6c8e8", "3086ee8126035e5e23490275a08f0258"]}
Current user: XXX (id=XXX)
Completed 200 OK in 44ms (Views: 0.3ms | ActiveRecord: 19.0ms)
Started GET "/custom_fields/new?utf8=%E2%9C%93&type=IssueCustomField" for XXX at 2018-09-26 11:43:18 +0300
Processing by CustomFieldsController#new as HTML
Parameters: {"utf8"=>"вњ“", "type"=>"IssueCustomField"}
Current user: efimov.s (id=191)
Rendered custom_fields/formats/_regexp.html.erb (0.8ms)
Rendered custom_fields/formats/_string.html.erb (2.3ms)
Rendered plugins/a_common_libs/app/views/hooks/a_common_libs/_view_custom_fields_form_upper_box.html.erb (0.1ms)
Rendered plugins/computed_custom_field/app/views/hooks/_view_custom_fields_form_upper_box.html.erb (31.8ms)
Rendered custom_fields/_form.html.erb (37.7ms)
Rendered custom_fields/new.html.erb within layouts/admin (39.0ms)
Completed 500 Internal Server Error in 68ms (ActiveRecord: 21.4ms)
ActionView::Template::Error (undefined method is_computed' for #<IssueCustomField:0x000000000704eb68> Did you mean?  is_computed=):     1: <% if custom_field.new_record? || custom_field.is_computed? %>     2:
<%= form.check_box :is_computed,     3:                         data: { enables: '#custom_field_formula, #available_cfs' },     4:                         disabled: !custom_field.new_record? %>
     5:
<%= form.text_area :formula, rows: 7 %>
   lib/redmine/views/labelled_form_builder.rb:34:in check_box'
plugins/computed_custom_field/app/views/hooks/_view_custom_fields_form_upper_box.html.erb:2:in _plugins_computed_custom_field_app_views_hooks__view_custom_fields_form_upper_box_html_erb__2259488051550925668_70055330692280'   lib/redmine/hook/view_listener.rb:59:in block (2 levels) in render_on'
lib/redmine/hook/view_listener.rb:57:in map'   lib/redmine/hook/view_listener.rb:57:in block in render_on'
lib/redmine/hook.rb:61:in block (2 levels) in call_hook'   lib/redmine/hook.rb:61:in each'
lib/redmine/hook.rb:61:in block in call_hook'   lib/redmine/hook.rb:58:in tap'
lib/redmine/hook.rb:58:in call_hook'   lib/redmine/hook.rb:96:in call_hook'
app/views/custom_fields/_form.html.erb:20:in _app_views_custom_fields__form_html_erb__1633238306386876193_70055331494540'   app/views/custom_fields/new.html.erb:4:in block in _app_views_custom_fields_new_html_erb___771732804853340808_70055331631540'
app/helpers/application_helper.rb:1190:in labelled_form_for'   app/views/custom_fields/new.html.erb:3:in _app_views_custom_fields_new_html_erb___771732804853340808_70055331631540'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Cool.  After migration all is right. But I don't understand how it works. I want to sum all values of the custom field in child issues. But if I create the new field and sign "computed" then I don't see this field in my issue. What is wrong?

Computed feilds are hidden, you should write some code in formula field and resave issues to apply calculations. There are some examples in readme file and closed issues.


NETOBSERV-1447 : Added a check to log a warning if some labels are used in metric defi…

Description
Added a check to log a warning if some labels are used in metric definition
Dependencies
n/a
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.

[X] Is this PR backed with a JIRA ticket? If so, make sure it is written as a title prefix (in general, PRs affecting the NetObserv/Network Observability product should be backed with a JIRA ticket - especially if they bring user facing changes).
[ ] Does this PR require product documentation?

[ ] If so, make sure the JIRA epic is labelled with "documentation" and provides a description relevant for doc writers, such as use cases or scenarios. Any required step to activate or configure the feature should be documented there, such as new CRD knobs.

[X] Does this PR require a product release notes entry?

[X] If so, fill in "Release Note Text" in the JIRA.

[ ] Is there anything else the QE team should know before testing? E.g: configuration changes, environment setup, etc.

[ ] If so, make sure it is described in the JIRA ticket.

QE requirements (check 1 from the list):

[X] Standard QE validation, with pre-merge tests unless stated otherwise.
[ ] Regression tests only (e.g. refactoring with no user-facing change).
[ ] No QE (e.g. trivial change with high reviewer's confidence, or per agreement with the QE team).

/retest

Codecov Report
Attention: Patch coverage is 62.50000% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 67.00%. Comparing base (e19e733) to head (09d5d4b).

Files
Patch %
Lines

apis/flowmetrics/v1alpha1/flowmetric_webhook.go
50.00%
2 Missing and 1 partial :warning:

pkg/helper/helpers.go
70.00%
2 Missing and 1 partial :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #629      +/-   ##
==========================================
- Coverage   67.01%   67.00%   -0.01%
==========================================
  Files          68       68
  Lines        7783     7799      +16
==========================================
+ Hits         5216     5226      +10
- Misses       2192     2196       +4
- Partials      375      377       +2

Flag
Coverage Δ

unittests
67.00% <62.50%> (-0.01%)
:arrow_down:

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

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

/lgtm

building cluster with this change for testing.

I was able to see warning in Operator logs:
2024-05-07T16:47:43.402Z	INFO	flowmetric-resource	Warning: metric label has high cardinality, please limit it by using some filters	{"labelName": "DstAddr"}

I have some feedback for this warning to be more visible, we can have this PR merged.
/label qe-approved

/approve


Deduplicate Idp emails before indexing.

Coverage increased (+0.002%) to 89.758% when pulling cb9aaaa35c682c62f38fae254dbaa76f9ae1cb64 on akatsoulas:unique-idp-emails-search into 775bafeb0f812d07c5fd180a62bd48fa172c5d7f on mozilla:master.


streaming paste to stdout

Hi! I'm trying to use piknik in tandem with wl-clipboard to be able to sycn my clipboard between my laptop and my linux phone. Everything works smooth and dandy, but piknik -paste does not seem to have a way to stream the data to stdout (so I can pipe them to wl-copy). Am I missing something obvious or is this a missing feature you would like to consider?

Hi!
I'm a little bit confused here. picnic -paste sends the output to stdout. And stdout can be a pipe or anything else:
piknik -pastę | gzip -9 > /tmp/xyz
What exactly doesn't work in your case? Do you get an error message?

yes that's what I mean, continuous paste :)


fix: copy xcdatamodeld resources

Our team is integrating the SuperwallKit, which uses Core Data and requires copying resource models. The current BazelPods version doesn't support this, causing an issue. Posted about it here: https://github.com/superwall/Superwall-iOS/issues/228

@jwthanh thanks!


"Scan error on column" when scanning DATETIME values

Hi,
I'm having this error while scanning an mssql server table:
Scan error on column index 8: unsupported Scan, storing driver.Value type time.Time into type *sql.RawBytes
Is it common? Does anyone knows of a solution for this?
The MSSQL server is in a container, https://hub.docker.com/r/microsoft/mssql-server-linux/ and the version is Microsoft SQL Server 2017 (RC2) - 14.0.900.75 (X64)
The table field is a DATETIME.
The code I'm using to scan:
vals := make([]interface{}, len(cols))
for i := range cols {
	vals[i] = new(sql.RawBytes)
}

for rows.Next() {
	err := rows.Scan(vals...)
	if err != nil {
		return nil, fmt.Errorf("Scan failed: %s", err.Error())
	}
 }

Thanks

Found a solution, looks like in order to read a DATETIME field I need to use a time.Time field.
Thanks

This will be possible in go1.10 FYI.


Add 'Organisation settings' page to Manage

Context
As part of the ongoing work which will allow users of accredited bodies to set up organisational permissions, we are changing where users and permissions are managed. We will need an 'Organisation settings' page, which will be linked to from the navbar and contain links letting users manage users and organisational permissions.
All of this needs to be behind the :accredited_provider_setting_permissions feature flag.
Changes proposed in this pull request

The Users link points to the existing users index, but for now the Organisation Permissions section does not link anywhere. If the feature flag is on, then the breadcrumbs on users index say 'Organisation settings > Users'.
I have adjusted the navbar and the active state of its links according to the new location of Users etc.
Guidance to review
There is no reason to use the new query for 'Organisation settings', as providers_that_actor_can_manage_organisations_for already takes into account both training and ratifying providers. I've added a reusable can_manage_users_or_organisations_for_at_least_one_setup_provider? for determining access to 'Organisation settings'.
Link to Trello card
https://trello.com/c/4ONBacGc
https://trello.com/c/WPYVFCMn
Things to check

[x] This code does not rely on migrations in the same Pull Request
[x] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[x] API release notes have been updated if necessary
[x] Required environment variables have been updated added to the Azure KeyVault

Added a commit to address PR feedback: https://github.com/DFE-Digital/apply-for-teacher-training/pull/5112/commits/0de7e0c752c89702d7683d84d178754a1b515436


Add require.getModules

In order to aid with debugging inline requires we add a method that
will give us the modules.
Summary
I was looking for a way to see what modules had been loaded when I was working with inline requires. I had tried using beginEvent on Systrace, but I was worried that there were modules that I might have missed (I'm not certain if all the loaded files are polyfills before the entryFile is invoked for instance). By adding getModules() it simplifies seeing what modules are loaded.
Test plan
At the root of my app index.ios.js:

import App from './App';
import { AppRegistry } from 'react-native';

AppRegistry.registerComponent('App', () => App);

// after 3 seconds the initial app data should have loaded, so lets take a look:
setTimeout(() => {
  console.log(require.getModules());
}, 3000);

NOTE
If there is a way to get to this easily (via the debugger or some other mechanism) I would be happy to use that instead and add documentation for it.

@jeanlauliac what do you you think of adding this?


x/sys/unix: missing socket constants

What version of Go are you using (go version)?

$ go version 1.18.2

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/alonz/.cache/go-build"
GOENV="/home/alonz/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/alonz/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/alonz/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18.2"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/alonz/go/src/libbpfgo/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1901468926=/tmp/go-build -gno-record-gcc-switches"

What did you do?
I am using the x/sys/unix pacakge.
I want to support all possible socket level and optname values for the setsocketopt syscall, but some of the values have no constants (because they are from newer kernel versions).
The following values are missing:

level:

SOL_MCTCP
SOL_MCTP
SOL_SMC

optname:

SO_NETNS_COOKIE
SO_BUF_LOCK
SO_RESERVE_MEM
SO_TXREHASH

What did you expect to see?
I want to use the values like the following - unix.SOL_MCTCP.

From https://pkg.go.dev/golang.org/x/sys/unix the only ones I see missing are "SOL_MCTCP" and "SOL_SMC", but I also don't see "SOL_MCTCP" mentioned anywhere on the internet at all?

You are right, it seems that the optname values are available in the newest version.
About the missing level values - you can see that they are supported by the newest kernel in the following source code page - https://elixir.bootlin.com/linux/latest/source/include/linux/socket.h#L330

Do the following source code pages support the missing optname?  I send a cl according to the following code.

https://elixir.bootlin.com/linux/latest/source/include/uapi/asm-generic/socket.h#L125

I assume you meant SOL_MPTCP, not SOL_MCTCP?
All but SOL_SMC should be in latest tip of the package:
% git grep -E "SOL_(MPTCP|MCTP|SMC)"
zerrors_linux.go:2583:  SOL_MCTP                                    = 0x11d
zerrors_linux.go:2584:  SOL_MPTCP                                   = 0x11c

It seems we generate these constants from glibc's sys/socket.h, and glibc 2.35 which we currently use to generate the constants doesn't seem to have SOL_SMC yet. If we want SOL_SMC now, without waiting for a glibc version providing it, we could probably add it similarly to how SOL_NETLINK is defined: https://cs.opensource.google/go/x/sys/+/87e55d71:unix/mkerrors.sh;l=294-296

the level add to glibc at the following commit

https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=6488f4d00653b489e7969c0a489dc665c26514a8;hp=81e7fdd7ccff3745db0b0d8ffa1ec9fab6dcee67
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=fdc1ae67fef27eea1445bab4bdfe2f0fb3bc7aa1;hp=2c0915cbf570cb9c8a65f1d20a55c5a7238e5b63

glibc 2.35 not contain these commit. So glibc 2.35 which we currently use to generate the constants doesn't have SOL_SMC SOL_MPTCP and SOL_MCTP yet.
Do we need to wait for glibc to release?
@ianlancetaylor

We don't have to wait for glibc.  But we do need to ensure that anything we do is correct for all supported operating systems.  I'm frankly pretty skeptical about the SOL_NETLINK code mentioned above.

Argh, I totally missed that.  Thanks.  This approach seems fine.


Allow DHCP configuration of static ip addresses for network resource

Libvirt DHCP can configure static ip address assignements. This
commit adds support to read resource config with extended dhcp
settings with dhcp host-ip-mac assignements.
Example:
```
resource "libvirt_network" "my_network" {
  name = "my_network"
  mode = "nat"
  domain = "example.org"
  addresses = [ "<IP_ADDRESS>/24" ]
  dhcp = {
      enabled = true
      hosts = [
        {
          host = "host1"
          ip = "<IP_ADDRESS>"
          mac = "00:11:22:33:44:55"
        },
        {
          host = "host2"
          ip = "<IP_ADDRESS>"
          mac = "00:11:22:33:44:56"
        },
        {
          host = "host3"
          ip = "<IP_ADDRESS>"
          mac = "00:11:22:33:44:57"
        }
      ]
  }
}
```

@dmacvicar good catch. Yop we implemented the datasource here.
https://github.com/dmacvicar/terraform-provider-libvirt/blob/master/libvirt/data_source_libvirt_network.go
I think the data_source here make more sense.

Sure, I will redo it as a datasource then. Thanks for feedback.
Just to be clear, both datasource and network schema approach is desirable, right? As I see DNSSRV parsing in resource network schema as well.

Added documentation and possibility to use datasource (I hope I understood the concept correctly). Also fixed the testsuite since apparently 11:22:33:44:55:66 MAC address is reserved multicast MAC.
@MalloZup make testacc passes my tests, though I have failure for TestAccLibvirtDomain_NetworkInterface and sometimes TestAccLibvirtDomain_Consoles. But I have these failures even without my changes. Can be due to a test server being SLE12SP3 with older libvirt?
About the update. This version forces resource recreation, I did not yet implement update mechanism. So modification of static entries and subsequent terraform apply destroys the network and recreates it.

@aaannz thank much for this PR! :guitar: :guitar:  i don't have time today for having deep look, i will do it during the week.
For datasource, take inspiration from this commit: https://github.com/dmacvicar/terraform-provider-libvirt/commit/a4d0ba6a319d8728cb5d6c10aae593bdd27da516
I think you are missing one step on provider.go.
For TestAccLibvirtDomain_Consoles. failure this is kind a issues we have from time to time, depending on which pts we are running the test.
for TestAccLibvirtDomain_NetworkInterface if don't remember to have seen it recently,  feel free to add the failure here. :sunflower: cu

I think you are missing one step on provider.go.

I am not sure what I missed. I already added datasource parsing there and for dhcp I have only one datasource (instead of two options for DNS)

For the update mechanism i know for sure we have issues on the whole networking part, see issue #389.
We could create a follow-up issue on this, for fixing it separately, since i think it might need some works.
Of course if you implement the update mechanism would be extra +1

I prefer to tackle update mechanism in separate issue.
Is there anything else to do?

The update mechanism need to be handled in this pr for not introducing bugs

hi,
i have been playing around with your branch as i have the demand of fixed ip addresses and hostnames via DHCP and it works quite well.
There is however one thing im not quite sure if its a issue others will hit aswell: if one updates the network, all running clients will loose connectivity because the MAC address of the virtual bridge changes.
Lets assume you have a host list which creates a subset of hosts and dns entries for the network ressource, and you add one, your terraform plan ends up like this:

-/+ libvirt_network.qa_network (new resource required)
id:                                 "652dfe06-79e3-4ad2-9862-341a581a6cb6" =>  (forces new resource)
addresses.#:                        "1" => "1"
addresses.0:                        "<IP_ADDRESS>/24" => "<IP_ADDRESS>/24"
bridge:                             "virbr3" =>
dhcp.#:                             "1" => "1"
dhcp.0.enabled:                     "true" => "true"
dhcp.0.hosts.#:                     "3" => "4" (forces new resource)
dhcp.0.hosts.0.ip:                  "<IP_ADDRESS>" => "<IP_ADDRESS>"
dhcp.0.hosts.0.mac:                 "52:54:01:6c:3c:50" => "52:54:01:6c:3c:50"
dhcp.0.hosts.0.name:                "ma-setup-rds1" => "ma-setup-rds1"
dhcp.0.hosts.1.ip:                  "<IP_ADDRESS>" => "<IP_ADDRESS>"
dhcp.0.hosts.1.mac:                 "52:54:01:6c:3c:80" => "52:54:01:6c:3c:80"
dhcp.0.hosts.1.name:                "ma-setup-server1" => "ma-setup-server1"
dhcp.0.hosts.2.ip:                  "<IP_ADDRESS>" => "<IP_ADDRESS>"
dhcp.0.hosts.2.mac:                 "52:54:01:6c:3c:01" => "52:54:01:6c:3c:01"
dhcp.0.hosts.2.name:                "ma-setup-client1" => "ma-setup-client1"
dhcp.0.hosts.3.ip:                  "" => "<IP_ADDRESS>" (forces new resource)
dhcp.0.hosts.3.mac:                 "" => "52:54:01:6c:3c:02" (forces new resource)
dhcp.0.hosts.3.name:                "" => "ma-setup-client2" (forces new resource)

the last hosts entry (dhcp.0.hosts.3) is the client i have added to the resource.
After appyling it, the underlying libvirt network changes its mac address, the bridge however stays the same:
before apply the libvirt network definition looks like:

after apply:

this means that all already existing clients will loose their network connectivity, only the host
which was added to the resource will be reachable.

@abbbi Yes, that is a known issue I have to fix. Currently any change forces resource recreation instead of update. I do not think I'll have time this week, but next one I should have a slot to look into it.

Closing fee' free to reopen in case you want to prove

@aaannz any chance you are going to look at this again? it would be really helpful if the plugin would support this.

@abbbi open an issue referring to this pr and we might finish this

I m reopening this pr but I think we need to signale that somebldy need to take over on this pr

i have opened an issue with a link to this pr. work can be continued, discussed ther with a new pr. closing as stale


Usage is confusing me

you said on the polymer-paper-rails repo that polymer-paper-rails is not a valid gem anymore, but it's still part of the usage.
So what i really need to do?

If you're using polymer v1.0.x, simply remove those gems from your Gemfile and add polymer-elements-rails to it.

Ok. Thanks man :)


Collect requirements around Seiso authentication

This issue collects initial requirements concerning Seiso authentication.

See
https://spring.io/blog/2015/01/12/spring-and-angular-js-a-secure-single-page-application
https://spring.io/blog/2015/01/12/the-login-page-angular-js-and-spring-security-part-ii
https://spring.io/blog/2015/01/20/the-resource-server-angular-js-and-spring-security-part-iii
https://spring.io/blog/2015/01/28/the-api-gateway-pattern-angular-js-and-spring-security-part-iv
https://spring.io/blog/2015/02/03/sso-with-oauth2-angular-js-and-spring-security-part-v
https://spring.io/blog/2015/03/23/multiple-ui-applications-and-a-gateway-single-page-application-with-spring-and-angular-js-part-vi
I haven't read through these yet, but they deal precisely with Spring Security/AngularJS integration, so we want to take a look.

Growing this organically according to Expedia needs (e.g. AD-backed authentication).


Class tokens are weirdly assigned

Hey all, sorry if this has already been reported. Couldn't find it if so.
class A {}
class B {}

const a = new A();
const b = new B();

becomes
class c{}class c{}const a=new c,b=new c;
This of course breaks stuff, as the same token is declared twice. I thought at first that this could be caused by some attempt to dedupe classes, but even if you flesh them out to be unique, the problem persists.

Wow definetely a bug (assuming in the name mangler/scoping).

Fixed by d8c7ebe6e27f768e9f459e574e08ba74de0cd686, looks like?

Yes!.


[CORE] [UT] Ensure GlutenBroadcastJoinSuite run with Gluten enabled

@PHILO-HE please help take a look, thank you!


Change the Compass runtime label

Description
Changes proposed in this pull request:

change the invalid Compass label from global_account_id to global_subaccount_id

As this new label seems to be part of the contract, would it make sense to update compassmanager_controller_test.go so it will cover a scenario if this label is missing and fail in such case?


Regarding Char offset

I cannot understand the char offset included in the BERT-BASELINE code. Why HTML tokens were not considered while calculating the offset values. Can you please elaborate?

Hi Tahmid, it might be better to ask this question on the BERT baseline repository, rather than this dataset repository.
I believe that the original BERT baseline ignored HTML tokens, but I'm not sure how that was implemented.


JsonSchema does not work with REST endpoint returning a String

Describe the bug
Not able to use Json Schema handler with endpoint that returns a string.
To Reproduce
  - name: REST API
    handler:
      jsonSchema:
        baseUrl: https://this-endpoint-returns-a-string-with-200-status-code
        operations:
          - type: Query
            field: product_extension_attribute
            path: /product-extension-attribute
            method: GET
            responseTypeName: String

Mesh starts successfully, however the following query fails with the error.
{
	product_extension_attribute
}

{
  "errors": [
    {
      "message": "Unexpected error value: \"extra product field value 0.41599265771201765\"",
      "locations": [],
      "path": [
        "product_extension_attribute"
      ],
      "name": "GraphQLError",
      "nodes": [
        {
          "kind": "Field",
          "arguments": [],
          "name": {
            "kind": "Name",
            "value": "product_extension_attribute"
          },
          "alias": {
            "kind": "Name",
            "value": "graphqlTools0_product_extension_attribute"
          }
        }
      ],
      "originalError": {
        "name": "Error",
        "message": "Unexpected error value: \"extra product field value 0.41599265771201765\"",
        "stack": [
          "Error: Unexpected error value: \"extra product field value 0.41599265771201765\"",
          "    at locatedError (<root>/graphql-mesh/examples/grpc-example/node_modules/graphql/error/locatedError.js:23:78)",
          "    at <root>/graphql-mesh/examples/grpc-example/node_modules/graphql/execution/execute.js:481:52",
          "    at processTicksAndRejections (internal/process/task_queues.js:95:5)",
          "    at async Promise.all (index 0)",
          "    at async Promise.all (index 0)"
        ]
      },
      "source": {
        "locationOffset": {}
      },
      "stack": [
        "Error: Unexpected error value: \"extra product field value 0.41599265771201765\"",
        "    at locatedError (<root>/graphql-mesh/examples/grpc-example/node_modules/graphql/error/locatedError.js:23:78)",
        "    at <root>/graphql-mesh/examples/grpc-example/node_modules/graphql/execution/execute.js:481:52",
        "    at processTicksAndRejections (internal/process/task_queues.js:95:5)",
        "    at async Promise.all (index 0)",
        "    at async Promise.all (index 0)"
      ]
    }
  ],
  "data": {
    "product_extension_attribute": null
  }
}

Environment:

OS: OSX 11.4
NodeJS: 14.17.0

  "dependencies": {
    "@graphql-mesh/cli": "0.30.2",
    "@graphql-mesh/grpc": "0.14.9",
    "@graphql-mesh/transform-naming-convention": "0.6.49",
    "@grpc/proto-loader": "0.5.5",
    "google-protobuf": "3.14.0",
    "graphql": "15.4.0",
    "@grpc/grpc-js": "1.1.7",
    "@graphql-mesh/graphql": "0.17.10",
    "@graphql-mesh/merger-federation": "0.9.0",
    "@graphql-mesh/transform-federation": "0.5.15",
    "apollo-server": "2.21.0",
    "@graphql-mesh/json-schema": "0.16.1"
  },

Additional context
Also tried to use responseSchema like {type: String}, same results.

Had to wrap the REST response string in quotes. Everything works now, thanks!

@ardatan maybe error message can be improved in this case, it is rather confusing at the moment.


pyautogui.size() on OS X Retina Macbook Pro

Hello,
I was going through basic usage of pyautogui and I found that the command
 pyautogui.size()

causes my python interpreter to freeze. I tried using it in a file and that also hung. Is this a problem with Retina, OS X, laptops, etc?
Note: the other commands seem to be working properly -- only size is giving me trouble
Thanks

Related, not sure if you'd like a separate issue for this: On Mac 10.9.5 with a retina display 1440 x 900, I get screenshot() sizes that are exactly twice as large as expected. This appears to carry through to the locate() family of functions, and return coordinates that are off by a factor of 2.
>>>> pyautogui.screenshot()
<PIL.PngImagePlugin.PngImageFile image mode=RGB size=2880x1800 at 0x106CFCF80>

I ran a tracer to follow the interpretation of pyautogui and apparently it gets stuck here:
pyautogui/__init__.py:122   line          return platformModule._size()

I also experienced the same issue (MacBook Pro 10.10.3 (Retina, 13-inch, Late 2013)). Though I remedied the issue by replace 0 with Quartz.CGMainDisplayID() in the _size function. Further investigation is required to determine why exactly this issue arose in the first place.
def _size():
    return Quartz.CGDisplayPixelsWide(Quartz.CGMainDisplayID()), Quartz.CGDisplayPixelsHigh(Quartz.CGMainDisplayID())

Pyautogui uses screencaps to find the location of stuff on the screen. The problem on macs with a retina display is that the screen output have double the number of pixels, to take advantage of the system’s greater pixel density for a crisper image.Therefore, when you take a screenshot, you get an image containing double the number of pixels than the same image from a non-retina Mac. I'm currently looking into whether it is possible to resize the image and still be able to find a match (one pixel off and theres no match if not using cv2's fuzzy search)
source


Longhorn Chart for Dashboard

Actual implementation of the chart will be tracked here: https://github.com/longhorn/longhorn/issues/1043#issuecomment-649144876

Chart PR at https://github.com/rancher/dev-charts/pull/35

Chart PR is now at rancher/charts#526 instead.

Verified the basic longhorn flow on rancher master-head ec04f78.
The app is available and the basic scenario of longhorn is working. Below scenarios are verified.

Install longhorn v1.0.2.
Default settings.
Create a PV/PVC for a volume.
Create deployment/stateful set with existing PVC.
Create deployment/stateful set with existing PVC with multiple replica.
Create stateful set with volume claim template(using longhorn storage class)
Create stateful set/deployment with the option create a new PVC using storage class - https://github.com/rancher/dashboard/issues/1459
Create stateful set/deployment with option create a new pvc with existing pv. - https://github.com/rancher/dashboard/issues/1460
Create a secret for longhorn backup store.
Basic operation of longhorn - snapshot, backup
Uninstall longhorn


Metadata remove all issue

Matadata removal all reported to not work

Cant reproduce, please reraise if you see this yourself

fixed for next release


MSAL authentication

Due to issues with Expo Auth, we have to move to MSAL. We will use react-native-msal to replace Expo authsession. For testing the implementation, we will use Expense and pay.

@ntorsen This is available to test now in Expense and pay test and qa on testflight.
You should be able to login, and get a list of travel expenses from SAP on the next screen. If you instead get a bunch of weird JSON, that means the authentication did not work properly.
The sign out button is in the settings screen.
Once you've logged in, and close the app, you should automatically log in the next time you open the app (if the accesstoken/refreshtoken is still valid). If you sign out, you have to login manually next time you open the app.
The web version of the authentication also has to be tested, but we haven't deployed the web version of expense and pay yet. Hopefully that will be fixed next week.
Let me know if you have any questions!

@tormodAase I get a bunch of weird JSON after login and looking at travel expenses for both test and qa.

Also I get text msauth.com.equinor. employee.test://auth (Test) and msauth.com.equinor.employee.qa://auth (Qa) under "Login" button.


Element Inspector Hooks

The Element Inspector is written in terms of StateValue and StateManager, and only knows how to show state from StateValue and StateManager.
We should update the Element Inspector to show state from the State Hooks.
Then I think we can finally delete StateValue and StateManager.

Done in v0.4.4.


Updating goldstone-server with compliance submodule pointing to issue…

…-274

Current coverage is 70.43%

Merging #306 into master will not affect coverage as of 8001b98

@@            master    #306   diff @@
======================================
  Files           84      84
  Stmts         2709    2709
  Branches         0       0
  Methods          0       0
======================================
  Hit           1908    1908
  Partial          0       0
  Missed         801     801

Review entire Coverage Diff as of 8001b98

Uncovered Suggestions

+0.62% via goldstone/views.py#30...46
+0.59% via ...stone/drfes/views.py#134...149
+0.37% via .../drfes/pagination.py#34...43
See 7 more...

Powered by Codecov. Updated on successful CI builds.

:+1:


Generate JWT token from v2_key

Backported to radjabov in commit f0bdcb83b68b08e23f81bd09393c93ff9aaaa8ae.
commit f0bdcb83b68b08e23f81bd09393c93ff9aaaa8ae
Author: Brandon Dunne<EMAIL_ADDRESS>Date:   Tue Jun 4 11:05:13 2024 -0400

    Merge pull request #56 from agrare/opentofu_runner_server_token

    Generate JWT token from v2_key

    (cherry picked from commit f051ec815d287c99522effd40aca19fbb2222b68)


[ Nextcloud ] Last update php-fpm high number of threads

Hi,
Since today, my  server faced a really high load average :
root@aragog:# top -b -n 1 | head
top - 18:36:02 up  2:13,  1 user,  load average: **17,00, 15,81, 11,89**
Tasks: 222 total,   1 running, 221 sleeping,   0 stopped,   0 zombie
%Cpu(s):  1,5 us,  0,4 sy,  0,0 ni, **96,4 id**,  1,7 wa,  0,0 hi,  0,1 si,  0,0 st
KiB Mem:   8179716 total,  5321888 used,  2857828 free,   115024 buffers
KiB Swap:  5103612 total,        0 used,  5103612 free.  3841176 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 3040 root      20   0<PHONE_NUMBER>52   7176 S  12,6  1,4   0:09.74 guacd
 3077 root      20   0   25760   2852   2404 R   6,3  0,0   0:00.01 top
    1 root      20   0   29416   5200   3100 S   0,0  0,1   0:00.69 systemd

While throubleshooting, I noticed that :
1/ My CPUs were idle
2/ There was a large number of php-fpm processes in nextcloud's container :
/ # ps auxf
PID   USER     TIME   COMMAND
    1 1000       0:00 /bin/s6-svscan /etc/s6.d
   52 1000       0:00 s6-supervise php
   53 1000       0:00 s6-supervise nginx
   54 1000       0:00 s6-supervise cron
   55 1000       0:00 php-fpm: master process (/php/etc/php-fpm.conf)
   56 1000       0:00 nginx: master process nginx
   57 1000       0:00 {run} /bin/sh ./run
   58 1000       0:00 php -d memory_limit=1g -f /nextcloud/cron.php
   59 1000       0:00 nginx: worker process
   60 1000       0:00 nginx: worker process
  125 1000       0:00 php-fpm: pool www
  126 1000       0:00 php-fpm: pool www
  127 1000       0:00 php-fpm: pool www
  128 1000       0:00 php-fpm: pool www
  129 1000       0:00 php-fpm: pool www
  130 1000       0:00 php-fpm: pool www
  134 1000       0:00 php-fpm: pool www
  137 1000       0:00 php-fpm: pool www
  138 1000       0:00 php-fpm: pool www
  139 1000       0:00 php-fpm: pool www
  142 1000       0:00 php-fpm: pool www
  143 1000       0:00 php-fpm: pool www
  147 root       0:00 sh
  152 1000       0:00 php-fpm: pool www
  153 1000       0:00 php-fpm: pool www
  154 1000       0:00 php-fpm: pool www

(I only have 2 cores on this server)
Looking at php-fpm's conf, I noticed that :
/ # cat /php/etc/php-fpm.conf
[global]
daemonize = no
error_log = /php/logs/error.log

[www]
listen = /php/run/php-fpm.sock
pm = dynamic
pm.max_children = **15**
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 6
chdir = /
request_terminate_timeout = 0
env[PATH] = /usr/local/bin:/usr/bin:/bin
php_admin_value[post_max_size] = 30G
php_admin_value[upload_max_filesize] = 30G
php_admin_value[max_execution_time] = 10800
php_admin_value[max_input_time] = 3600
php_admin_value[expose_php] = Off
php_admin_value[memory_limit] = 512M
php_admin_value[session.save_path] = "/php/session"

I changed "15" by "2", restarted the container and everything went fine.
Will you please update your image or do I have to share php-fpm.conf with my host in order to keep the good setting ?
Regards,
z.

Would dropping the number of workers slow things down? It's my understanding that in dynamic mode, the max children are only reached if the other children are already overloaded.
Given that, I'm thinking you're correct that the best way to modify this would be to share in the config file from your host as a mount.

@zerpex I have the same issue on a brand new nextcloud 14 installed an debian 9 (no docker)
https://help.nextcloud.com/t/how-many-max-children-do-you-have/38340


awesome_bot issues fixed, ignoring dupes

Fixes #27
Now:
$ awesome_bot README.md --allow-dupe
...
No issues :-)

You may want to reconsider running this on Travis-CI or similar in the future... a good example is that the Eagle link was pointing to a possibly unsafe site (looks like eagle was bought by AutoDesk).

We could run in periodically in travis on the master branch. I just don't want to run it on PRs as it will  bother people with trailing or no trailing slashes and http vs https.


⚠ Processors has degraded performance

In 34197f7, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 79 ms

Resolved: Processors performance has improved in 48ada33.


Simple Java Mail should optionally be able to read properties from a Spring context

It should be possible to optionally include a Spring bean from Simple Java Mail that can read properties from a Spring context and use these to configure Simple Java Mail (using the ConfigLoader).

Released in 4.1.3.

What about encrypting the password?
I really love the feature of reading the mailer configuration from the application.properties / yaml, but I find annoying that I cannot make my password encrypted in any way.

I think I have read about that API before. I will try to use it and I'll let you know if it does work properly with SimpleJavaMail. Thank you. :)

Hi bbottema!
I just wanted to share with you my discoveries, just in case you want to share the knowledge in the FAQ so other people know that it can be done easily. :)
I have a Spring Boot application, in order to make Jasypt work with the SimpleJavaMail password I just needed to do the following.
Encrypting the password with Jasypt
The first thing you would want to do is to encrypt the password.
It seems Jasypt provides some easy tools for encrypting a password using command line:
http://www.jasypt.org/cli.html
http://www.jasypt.org/download.html
After downloading and unziping the tool, just go to your terminal and execute either the bat or the sh just like this:
encrypt.bat input=<password_to_encrypt> password=<master_password_for_encryption>

The encrypted password will be shown at the output of the command.
Project configuration

pom.xml - Add the following dependency:

<dependency>
    <groupId>com.github.ulisesbocchio</groupId>
    <artifactId>jasypt-spring-boot-starter</artifactId>
    <version>2.1.0</version>
</dependency>

Properties file - Configure the master password for Jasypt:

jasypt:
  encryptor:
    password: <master_password_for_encryption>

Properties file - Configure the encrypted password for SimpleJavaMail:

simplejavamail:
  smtp:
    password: ENC(<encrypted_password>)

Spring Boot Application class - Add the following annotation:

@EnableEncryptableProperties

And that's it! I didn't have to modify a single line of code, besides the annotation itself. Everything is pretty well configurable using just YAML properties.
Additional comments
I was a bit bugged that I stopped showing the SimpleJavaMail password and then started displaying the Jasypt password, so I researched a little bit further.
If you don't want to expose the jasypt encrypt password in the properties file, you can add the password as a VM argument:
java -Djasypt.encryptor.password=password -jar target/jasypt-spring-boot-demo-0.0.1-SNAPSHOT.jar

Or just as a Environment System variable in the YAML:
jasypt:
    encryptor:
        password: ${JASYPT_ENCRYPTOR_PASSWORD:}


WIP: Move editor API back to editor plugin

This PR starts the transition of the Editor to the new API structure by moving global APIs back to the editor. This will be needed for the test that will check for circular dependencies among plugins (separate PR)
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: @goanpeca

Closing as superseded by #21210.


Highlight Letters which match with search input in search results

Hey , can you assign me this task ? I am familiar with html , css but not java script so I haven't learnt reactjs yet , but I can try my best to learn in the least possible time and try to work on this issue ? So can you assign me this ?

Hey , can you assign me this task ? I am familiar with html , css but not java script so I haven't learnt reactjs yet , but I can try my best to learn in the least possible time and try to work on this issue ? So can you assign me this ?

Please join on discord. Will be sharing details over there

So can you assign me this task?

Can I work on this feature @shelcia?

@shelcia I've made a pull request adding this feature, please review it.


refactor: validator manager genserver removal

Motivation
This is part of the ongoing effort of removing all GenServers to redefine the distributed design of the node.
Description
This PR did the following:

Remove the Clock completely
Remove the ValidatorManager Genserver and make it just a collection of setup functions

To minimize changes in the execution of validators, this PR does not deal with the well-needed state management refactor, it just moves the current way of managing state from ValidatorManager to LibP2P
To avoid storing the state in the DB (which may be decided in the validator state management refactor) we added a quick workarround for LibP2P to notify blocks thorugh :handle_info, this will probably be removed in the future.
LambdaEthereumConsensus.Validator.Setup was the previous LambdaEthereumConsensus.Validator.ValidatorManager,  it's not a Genserver anymore and the notify functions were moved, but the setup code (functions still there) are the same, it hasn't changed but the rename shows everything as new.

Some fixes for the Validators execution

Recalculate duties just at the end of an epoch instead of at any new block
workaround implemented to deal with the duplicated attestations generated by the syncroneous execution (when removing casts from the ValidatorManager)

Resolves #1230

HOW TO TEST
Undortunately right now testing validators is a manual endevour, so to make sure this works as expected, after following the initial setup of kurtosis explained in the README a simple make kurtosis.clean-start should start kurtosis with the default config.
Kurtosis comes with the Dora explorer, check the ports in Docker and got to http://localhost:{dora port}/slots, this should show the following:

If our node is green at proposals, the chain progress, and we can see attestation there, everything is fine. There are still a couple of things to check (like Sync Aggregate being 0, or duplicate aggregates), but that was the current behavior before the GenServer removal and will be tackled in a follow-up PRs.


Platform nest does not generate unique IDs - Nest

Home Assistant release with the issue:
0.89.2
Operating environment (Hass.io/Docker/Windows/etc.):
Raspberry Pi : Hassbian -  New Install.
**System Health**
arch | armv7l
-- | --
dev | false
docker | false
hassio | false
os_name | Linux
python_version | 3.5.3
timezone | America/New_York
version | 0.89.2
virtualenv | true

Component/platform:
https://www.home-assistant.io/components/nest/
Description of problem:
Error generated in Logs.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
This is in my  \package\nest.yaml.
nest:
  client_id: !secret nest_id
  client_secret: !secret nest_secret
  sensors:
    monitored_conditions:
      - 'operation_mode'
      - 'co_status'
      - 'smoke_status'
      - 'battery_health'
      - 'humidity'
      - 'operation_mode'
      - 'temperature'
      - 'target'
      - 'hvac_state'

group:
  1stFloorTemp_card:
    name: 1st Floor Temp
    entities:
      - climate.dining_room
      - binary_sensor.dining_room_thermostat_online
      - sensor.dining_room_thermostat_target
      - sensor.dining_room_thermostat_temperature
      - sensor.dining_room_thermostat_humidity

Traceback (if applicable):
Home-assistant.log
2019-03-15 16:34:53 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 344, in _async_add_entity
    raise HomeAssistantError(msg)
homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.dining_room_thermostat_operation_mode. Platform nest does not generate unique IDs

Syslog - Including lines before and after
Mar 15 16:34:53 hassbian hass[29422]: #033[32m2019-03-15 16:34:53 INFO (MainThread) [homeassistant.loader] Loaded envisalink.sensor from homeassistant.components.envisalink.sensor#033[0m
Mar 15 16:34:53 hassbian hass[29422]: #033[32m2019-03-15 16:34:53 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.amcrest#033[0m
Mar 15 16:34:53 hassbian hass[29422]: #033[32m2019-03-15 16:34:53 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.amcrest#033[0m
Mar 15 16:34:53 hassbian hass[29422]: #033[32m2019-03-15 16:34:53 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.nest#033[0m
Mar 15 16:34:53 hassbian hass[29422]: #033[32m2019-03-15 16:34:53 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.upnp#033[0m
Mar 15 16:34:53 hassbian hass[29422]: #033[32m2019-03-15 16:34:53 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.envisalink#033[0m
Mar 15 16:34:53 hassbian hass[29422]: #033[31m2019-03-15 16:34:53 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved#033[0m
Mar 15 16:34:53 hassbian hass[29422]: Traceback (most recent call last):
Mar 15 16:34:53 hassbian hass[29422]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Mar 15 16:34:53 hassbian hass[29422]:     result = coro.send(None)
Mar 15 16:34:53 hassbian hass[29422]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 344, in _async_add_entity
Mar 15 16:34:53 hassbian hass[29422]:     raise HomeAssistantError(msg)
Mar 15 16:34:53 hassbian hass[29422]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.dining_room_thermostat_operation_mode. Platform nest does not generate unique IDs#033[0m
Mar 15 16:34:53 hassbian hass[29422]: #033[32m2019-03-15 16:34:53 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 10.94s#033[0m
Mar 15 16:34:53 hassbian hass[29422]: #033[32m2019-03-15 16:34:53 INFO (MainThread) [homeassistant.core] Starting Home Assistant#033[0m
Mar 15 16:34:53 hassbian hass[29422]: #033[32m2019-03-15 16:34:53 INFO (Thread-21) [homeassistant.components.zwave] Starting Z-Wave network...#033[0m
Mar 15 16:34:53 hassbian hass[29422]: #033[32m2019-03-15 16:34:53 INFO (Thread-21) [openzwave] Start Openzwave network.#033[0m
Mar 15 16:34:53 hassbian hass[29422]: #033[32m2019-03-15 16:34:53 INFO (MainThread) [homeassistant.core] Timer:starting#033[0m

Quick Troubleshooting:
Based on this Forum post  I stopped HA,  deleted ALL references to nest in file .storage/core.config_entries, and also removed the nest component from my config.  Restarted HA to verify it was working.   Stopped HA,  Re-added nest component to rediscover,  Same error returned.

You have duplicated operation_mode in your configuration file. Remove one should resolve your issue


Ingestion failed to complete, or completed with errors.

Describe the bug
Ingestion failed to complete, or completed with errors.
To Reproduce
Steps to reproduce the behavior:

Manager data sources-> create new source
Add postgres recipe
config the params
click the finish and run button
See error

Expected behavior
running
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
OS: [e.g. ubuntu]
Browser [e.g. chrome]
Version [e.g. 22] chrome version: 120.0.6099.216, docker version: Docker version 24.0.7, build afdd53b, ubuntu version: Ubuntu 20.04.1 LTS
Additional context

image version for docker

$ docker ps
CONTAINER ID   IMAGE                                   COMMAND                   CREATED          STATUS                    PORTS                                                           NAMES
825442db2545   acryldata/datahub-actions:head          "/bin/sh -c 'dockeri…"   27 minutes ago   Up 24 minutes                                                                             datahub-datahub-actions-1
0a506f30bae8   acryldata/datahub-frontend-react:head   "/bin/sh -c ./start.…"   27 minutes ago   Up 24 minutes (healthy)   <IP_ADDRESS>:9002->9002/tcp, :::9002->9002/tcp                       datahub-datahub-frontend-react-1
082308b01892   acryldata/datahub-gms:head              "/bin/sh -c /datahub…"   27 minutes ago   Up 25 minutes (healthy)   <IP_ADDRESS>:8080->8080/tcp, :::8080->8080/tcp                       datahub-datahub-gms-1
dcc0724722b1   confluentinc/cp-schema-registry:7.4.0   "/etc/confluent/dock…"   27 minutes ago   Up 26 minutes (healthy)   <IP_ADDRESS>:8081->8081/tcp, :::8081->8081/tcp                       datahub-schema-registry-1
9776819c3c96   confluentinc/cp-kafka:7.4.0             "/etc/confluent/dock…"   27 minutes ago   Up 27 minutes (healthy)   <IP_ADDRESS>:9092->9092/tcp, :::9092->9092/tcp                       datahub-broker-1
5f54e55bb366   confluentinc/cp-zookeeper:7.4.0         "/etc/confluent/dock…"   27 minutes ago   Up 27 minutes (healthy)   2888/tcp, <IP_ADDRESS>:2181->2181/tcp, :::2181->2181/tcp, 3888/tcp   datahub-zookeeper-1
4e1de58297e5   elasticsearch:7.10.1                    "/tini -- /usr/local…"   27 minutes ago   Up 27 minutes (healthy)   <IP_ADDRESS>:9200->9200/tcp, :::9200->9200/tcp, 9300/tcp             datahub-elasticsearch-1
13332a162d11   mysql:8.2                               "docker-entrypoint.s…"   27 minutes ago   Up 27 minutes (healthy)   <IP_ADDRESS>:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp            datahub-mysql-1

** logs **
~~~~ Execution Summary - RUN_INGEST ~~~~
Execution finished with errors.
{'exec_id': 'c2584159-d0ad-483f-bceb-d2f664ea1fc5',
 'infos': ['2024-10-11 09:46:32.792952 INFO: Starting execution for task with name=RUN_INGEST',
           "2024-10-11 09:46:38.929017 INFO: Failed to execute 'datahub ingest', exit code 1",
           '2024-10-11 09:46:38.929279 INFO: Caught exception EXECUTING task_id=c2584159-d0ad-483f-bceb-d2f664ea1fc5, name=RUN_INGEST, '
           'stacktrace=Traceback (most recent call last):\n'
           '  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/acryl/executor/execution/default_executor.py", line 139, in execute_task\n'
           '    task_event_loop.run_until_complete(task_future)\n'
           '  File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete\n'
           '    return future.result()\n'
           '  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/acryl/executor/execution/sub_process_ingestion_task.py", line 400, in '
           'execute\n'
           '    raise TaskError("Failed to execute \'datahub ingest\'")\n'
           "acryl.executor.execution.task.TaskError: Failed to execute 'datahub ingest'\n"],
 'errors': []}

~~~~ Ingestion Logs ~~~~
Obtaining venv creation lock...
Acquired venv creation lock
venv is already set up
venv setup time = 0 sec
This version of datahub supports report-to functionality
+ exec datahub ingest run -c /tmp/datahub/ingest/c2584159-d0ad-483f-bceb-d2f664ea1fc5/recipe.yml --report-to /tmp/datahub/logs/c2584159-d0ad-483f-bceb-d2f664ea1fc5/artifacts/ingestion_report.json
[2024-10-11 09:46:37,997] INFO     {datahub.cli.ingest_cli:149} - DataHub CLI version: <IP_ADDRESS>
[2024-10-11 09:46:38,007] INFO     {datahub.ingestion.run.pipeline:255} - No sink configured, attempting to use the default datahub-rest sink.
[2024-10-11 09:46:38,032] INFO     {datahub.ingestion.run.pipeline:272} - Sink configured successfully. DataHubRestEmitter: configured to talk to http://datahub-gms:8080
[2024-10-11 09:46:38,424] ERROR    {datahub.entrypoints:218} - Command failed: Failed to find a registered source for type postgres: postgres is disabled; try running: pip install 'acryl-datahub[postgres]'
Traceback (most recent call last):
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/datahub/ingestion/api/registry.py", line 126, in _ensure_not_lazy
    plugin_class = import_path(path)
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/datahub/ingestion/api/registry.py", line 56, in import_path
    item = importlib.import_module(module_name)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/datahub/ingestion/source/sql/postgres.py", line 6, in <module>
    import psycopg2  # noqa: F401
ModuleNotFoundError: No module named 'psycopg2'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/datahub/ingestion/run/pipeline.py", line 136, in _add_init_error_context
    yield
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/datahub/ingestion/run/pipeline.py", line 287, in __init__
    source_class = source_registry.get(self.source_type)
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/datahub/ingestion/api/registry.py", line 176, in get
    raise ConfigurationError(
datahub.configuration.common.ConfigurationError: postgres is disabled; try running: pip install 'acryl-datahub[postgres]'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/datahub/entrypoints.py", line 205, in main
    sys.exit(datahub(standalone_mode=False, **kwargs))
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/datahub/telemetry/telemetry.py", line 462, in wrapper
    raise e
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/datahub/telemetry/telemetry.py", line 411, in wrapper
    res = func(*args, **kwargs)
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/datahub/cli/ingest_cli.py", line 203, in run
    ret = loop.run_until_complete(run_ingestion_and_check_upgrade())
  File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/datahub/cli/ingest_cli.py", line 172, in run_ingestion_and_check_upgrade
    pipeline = Pipeline.create(
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/datahub/ingestion/run/pipeline.py", line 417, in create
    return cls(
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/datahub/ingestion/run/pipeline.py", line 284, in __init__
    with _add_init_error_context(
  File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/datahub/ingestion/run/pipeline.py", line 140, in _add_init_error_context
    raise PipelineInitError(f"Failed to {step}: {e}") from e
datahub.ingestion.run.pipeline.PipelineInitError: Failed to find a registered source for type postgres: postgres is disabled; try running: pip install 'acryl-datahub[postgres]'

** Recipe**
run_id: 'urn:li:dataHubExecutionRequest:c2584159-d0ad-483f-bceb-d2f664ea1fc5'
source:
  type: postgres
  config:
    include_tables: true
    database: timeseries
    password: '${timeseries_188}'
    profiling:
      enabled: true
      profile_table_level_only: true
    host_port: '<IP_ADDRESS>:5432'
    include_views: true
    stateful_ingestion:
      enabled: true
    username: postgres
pipeline_name: 'urn:li:dataHubIngestionSource:89372b09-06a3-482f-8724-b0188479d56b'

another log
~~~~ Execution Summary - RUN_INGEST ~~~~
Execution finished with errors.
{'exec_id': 'cbfb6c8f-082b-49c5-9235-0487a0b7075d',
 'infos': ['2024-10-11 10:13:43.339194 INFO: Starting execution for task with name=RUN_INGEST',
           "2024-10-11 10:21:58.047478 INFO: Failed to execute 'datahub ingest', exit code 2",
           '2024-10-11 10:21:58.048656 INFO: Caught exception EXECUTING task_id=cbfb6c8f-082b-49c5-9235-0487a0b7075d, name=RUN_INGEST, '
           'stacktrace=Traceback (most recent call last):\n'
           '  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/acryl/executor/execution/default_executor.py", line 139, in execute_task\n'
           '    task_event_loop.run_until_complete(task_future)\n'
           '  File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete\n'
           '    return future.result()\n'
           '  File "/datahub-ingestion/.venv/lib/python3.10/site-packages/acryl/executor/execution/sub_process_ingestion_task.py", line 400, in '
           'execute\n'
           '    raise TaskError("Failed to execute \'datahub ingest\'")\n'
           "acryl.executor.execution.task.TaskError: Failed to execute 'datahub ingest'\n"],
 'errors': []}

~~~~ Ingestion Logs ~~~~
Obtaining venv creation lock...
Acquired venv creation lock
venv doesn't exist.. minting..
Using Python 3.10.12 interpreter at: /usr/bin/python3
Creating virtualenv at: /tmp/datahub/ingest/venv-postgres-3cbb1ad0ed8a0388
Resolved 3 packages in 3.87s
Prepared 3 packages in 42.25s
Installed 3 packages in 774ms
 + pip==24.2
 + setuptools==75.1.0
 + wheel==0.44.0
+ uv pip install 'acryl-datahub[datahub-rest,datahub-kafka,postgres]==0.14.1'
Resolved 170 packages in 1m 14s
error: Failed to prepare distributions
  Caused by: Failed to fetch wheel: pandas==2.2.3
  Caused by: Failed to extract archive
  Caused by: Failed to download distribution due to network timeout. Try increasing UV_HTTP_TIMEOUT (current value: 30s).

Please restart the actions pod and retry after checking your networking for access to the pypi repo.
Caused by: Failed to download distribution due to network timeout.

docker容器无法访问pypi仓库导致，可以通过
1、docker exec -it (datahub-actions:head的容器ID)  /bin/bash 进入容器
2、手动执行：pip3 install psycopg2-binary -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple

Hi folks - did this end up working? If yes I'll go ahead and close the ticket.


Write an account of the effort spent and prepare links to files for each member

Write an overview of how much time was spent for different tasks and prepare four links to documents where each member can include a complete account of how they spent their time throughout the project.

Instead of having individual files for each member we decided to add a single linked google sheet for the sake of clarity.

This was closed in #35


onagre 1.1.0: crashes on start with "called Option::unwrap() on a None value"

Describe the bug
Running onagre 1.1.0 crashes on start with the following output:
2024-04-19T17:09:50.193906Z  INFO onagre: Starting onagre
2024-04-19T17:09:50.193990Z ERROR onagre::app::style: Failed to parse theme "/home/user/.config/onagre/theme.scss":
 Failed to open config file
2024-04-19T17:09:50.194000Z  WARN onagre::app::style: Failing back to default theme
thread 'main' panicked at /home/kuroko/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-core-0.19.3/src/inst
ance.rs:521:39:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Here is the full log:
RUST_BACKTRACE=full ./target/debug/onagre &> onagre.log -> onagre.log
Config
No config/theme. Putting a theme removes the Failed to parse theme error, but the program still crashes.
To Reproduce

cargo build --release --locked
./target/release/onagre

Expected behavior
The program opens.
System Information

Window manager: Gnome (Wayland)
Distro: NixOS, 24.05 (Uakari)

Additional context
Tried running 1.0.0 and that version opens normally.

wgpu requires you to put vulkan-loader from nixpkgs in your LD_LIBRARY_PATH


Maximum rows to insert

Is there a limit to the maximum number of rows that can be inserted from a CSV at a time?  I am trying to insert ~300,000 rows, and it is only inserting a maximum of 1,000.

@michaeldiguiseppi There is no limit to the line that can be inserted.


useRef initial value required?

For functional components, useRef can be preferred for retaining initial state over createRef, but unfortunately Slinky requires an initial value and my ref isn't supposed to be set until the HTML Element is rendered:
Currrent workaround:
val inputRef = useRef[ReactRef[HTMLInputElement]](React.createRef[HTMLInputElement])

println(inputRef.current.current.value)   // lil' awkward :)

input(`type` := "number", ref := inputRef.current)

Preferred:
val inputRef = useRef[HTMLInputElement]()

println(inputRef.current.value)

input(`type` := "number", ref := inputRef)

The second block of code should work if you pass in null as the default ref value (as in https://reactjs.org/docs/hooks-reference.html#useref). I want to avoid deviating from the official React APIs, which is why there's no shorthand for useRef with a null default value.

@shadaj how should I set it to null initially?
I tried the following:
val inputRef = useRef[HTMLInputElement](null)
input(`type` := "number", ref := inputRef)

But for slinky 0.6.2+6-cc9d534e that gives:
overloaded method value := with alternatives:
[error]   [T <: slinky.core.TagElement, E <: T#RefType](v: slinky.core.RefAttr[E])(implicit supported: slinky.core.AttrPair[slinky.web.html.ref.attrType] => slinky.core.AttrPair[T])slinky.core.AttrPair[T] <and>
[error]   [T <: slinky.core.TagElement](v: T#RefType => Unit)(implicit supported: slinky.core.AttrPair[slinky.web.html.ref.attrType] => slinky.core.AttrPair[T])slinky.core.AttrPair[T]
[error]  cannot be applied to (org.scalajs.dom.raw.HTMLInputElement)
[error]           input(`type` := "number", ref := inputRef)

bingo!

Hi all,
with this example doesn't work, Any suggestion?

    val refTag = useRef[HTMLParagraphElement](null)

    useLayoutEffect(() => println(refTag.current.getBoundingClientRect()))

    p(className := "mb-0", ref := refTag)


4165 Support for futures contract instrument for orderbook, trades and orders

in okex v5 api

please fix the merge conflicts.

Hi @timmolter sorry as it was open a while a conflict emerged, i promise it was clean when I submitted PR, should be good now.

yeah, that happens when other PRs get merged before yours. No worries.


adding isExecutableFile to Filesystem interface

added corresponding implementations to existing filesystems
added tests to validate new logic

@aciidb0mb3r @ddunbar updated per feedback and rebased, extended to tests to cover Git FS interface as well

I merged a slightly modified version ff6d53dfc166d9ec959ddaddbe36a4e8503c4188
Thanks!

Thanks @aciidb0mb3r  - possibly dumb question, I see the merge, but wasn't clear on what you changed as you merged it. The github UI makes it a bit tricky to do a diff/compare (at least on just an iPad)

Nothing major, just added a guard and removed _ =:
https://github.com/apple/swift-package-manager/commit/6b1fbda6ac9ea0e201a5d7fc3dabedb57a47eb28#diff-26620e33e99e9ec3d647a9d67f9f0bbfR163
https://github.com/apple/swift-package-manager/commit/6b1fbda6ac9ea0e201a5d7fc3dabedb57a47eb28#diff-4de01dbd184557db35b2de03723ae3e6R180


[MINT-1727] Model Plan Change History

EASI-2771, MINT-1727
Description
This PR represents the entirety of the model plan change history feature. This work has previously gone through PRs to get to feature, the goal of this PR is to do a high level review.
Please take your time reviewing figma, the ticket in JIRA, and the code.

How to test this change

Bring up the backend scripts/dev up:backend:debug
Bring up the front end yarn && yarn start
Run the db seed utility tool in interactive mode go run ./cmd/dbseed/*go alternatively, run go run ./cmd/dbseed/*go translate whenever you want data to translate
Go through the application and make some changes (can also translate seed data)
Explore the front end change history pages to make sure they make sense

Please also take your time to go through the architecture.
Areas to focus on

Shared Mappings
Translation Job
Translated Audit Package
Database table updates
Frontend field groupings
Documentation

PR Author Checklist

[x] I have provided a detailed description of the changes in this PR.
[x] I have provided clear instructions on how to test the changes in this PR.
[x] I have updated tests or written new tests as appropriate in this PR.
[x] Updated the Postman Collection if necessary.

PR Reviewer Guidelines

It's best to pull the branch locally and test it, rather than just looking at the code online!
When approving a PR, provide a reason why you're approving it

e.g. "Approving because I tested it locally and all functionality works as expected"
e.g. "Approving because the change is simple and matches the Figma design"

Don't be afraid to leave comments or ask questions, especially if you don't understand why something was done! (This is often a great time to suggest code comments or documentation updates)
Check that all code is adequately covered by tests - if it isn't feel free to suggest the addition of tests.

duplicate assertions resolved in 789c276

@OddTomBrooks , I added all fixes in https://github.com/CMSgov/mint-app/pull/1248.


fields validation function by-passed

I have encountered an issue in fields of webargs such as fields.Number() and fields.Str(), when passing tabs to the Str and 00 in the start to the Number, it bypass the validate function of that field even if it is a custom function.
here  is an example params and output error:
Input:
 "number": "+3553637	007"

Output error:
   { "messages": { "user_id": [ "Missing data for required field." ] } }

Here you can see, invalid values are given to the number field where as error was given about the user_id field.

@yasirz Can you post code to reproduce this problem?

here are the example args i'm parsing
the validation on number in field2 fails validation on user_id
args = {
    'user_id': fields.Int(required=True),
    'field1': fields.Nested({
          # some fields
    }),
    'field2': fields.Nested({
        'first_field': fields.Str(required=True, validate=custom_func),
        'scnd_field': fields.Str(required=True, validate=lambda p: len(p) > 10),
        'number': fields.Str(required=True, validate=custom_func),
        'email': fields.Email(required=True)
    }),
    'field3': fields.Nested({
        'f3f1': fields.Str(required=True, validate=lambda p: 1 < len(p) < 20),
        'f3f2': fields.Str(required=True, validate=lambda p: len(p) > 1),
        'f3f3': fields.Str(required=True, validate=lambda p: len(p) > 3)
    })
}

I don't think it has anything to do with webargs. This is a marshmallow question.
Anyway, please post the whole code to reproduce the issue.
Since user_id is required, the "Missing data for required field." message is normal.

Closing for now. Feel free to re-open if this is still an issue.


Add fullscreen support

Linux: done

windows: done. Linux needs to be re-done.

machos: done

linux: done

ios and android: not done yet

done on all desktop OSes. Mobile OSes are draft currently. closing the issue


chore: enable nullable compiling option

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

61 of 82 (74.39%)  changed or added relevant lines in 14 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-1.8%) to 85.997%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

DuckDB.NET.Data/DuckDBCommand.cs
14
15
93.33%

DuckDB.NET.Data/DuckDBParameter.cs
7
8
87.5%

DuckDB.NET.Data/Internal/ConnectionReference.cs
0
1
0.0%

DuckDB.NET.Data/VectorDataReader.cs
4
5
80.0%

DuckDB.NET.Data/Internal/ConnectionManager.cs
6
8
75.0%

DuckDB.NET.Data/DuckDBDataReader.cs
9
12
75.0%

DuckDB.NET.Data/DuckDBConnection.cs
10
22
45.45%

Totals

Change from base Build<PHONE_NUMBER>:
-1.8%

Covered Lines:
900

Relevant Lines:
1024

💛  - Coveralls

I updated GetList not to use dynamic anymore. Can you resolve the conflicts? Thanks


Added a Cursor Offset to the TapToPlace script

Adds an offset to the placement position for situations where the centre of a mesh is not the same as the centre of the GameObject.
(Should I have opened an Issue first btw? Wasn't sure if it mattered since it's such a small feature)

@HattMarris1,
Thanks for having already signed the Contribution License Agreement. Your agreement has not been validated yet. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

That requires the GameObject to have a Mesh, which, in one of the projects I'm working on at the moment the GameObject doesn't have due to a unity plugin I'm using.
It does have a box collider, which I get the bounds from elsewhere but I didn't think that would be appropriate here.
I suppose it could check if the GameObject has a mesh, then if it does use the bounds from that, and if it doesn't use the bounds from the collider? (not sure how many other ways there are to calculate the bounds of an object)

Yes, the component requires a box collider, so calculate from it's size.

Wasn't sure if the collider bounds should be calculated every frame or just once at the beginning, do we need to account for if colliders get added at runtime?

That what you meant? Now GetcomponentsInChildren isn't called every frame

Looking great so far @HattMarris1

...Unless you want to meet me half way with this 😄

It was done the way it was with the get components in children.  I just wanted you to make the position field private. Sorry for the confusion.

Is that the kind of thing you meant? Should it be in it's own extension class or is it alright there?

Should we check if the transform actually has a collider? We would get a null pointer exception right now if you would try to get bounds on a transform without a collider.

Should we check if the transform actually has a collider?

No because the class requires the component.

No because the class requires the component.

He moved the method into TransformExtensions


coconut: 1.6.0 → 2.1.0

Description of changes
https://github.com/evhub/coconut/releases/tag/v2.0.0
https://github.com/evhub/coconut/releases/tag/v2.1.0
Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

Can still make it before breaking changes get restricted

Result of nixpkgs-review pr 198155 run on x86_64-linux 1

2 packages built:

coconut (python310Packages.coconut)
python39Packages.coconut


Unable load SVG in production build while using ngx tree dnd

I have follow same step to resolve this issue as mentioned in this closed issue https://github.com/Zicrael/ngx-tree-dnd/issues/46 but i am still not able to resolve this.
I am using <lib-ngx-tree-component [treeData]='youTree' (ondragend)='onDragEnd($event)'>  in my component and i have also import the fortawesome in my module and component but still i don't know where we use this import fortawesome(import { faEdit,faMinus,faPlus,faTimes } from '@fortawesome/free-solid-svg-icons';) because i am using <lib-ngx-tree-component [treeData]='youTree' (ondragend)='onDragEnd($event)'>  instead of <fa-icon [icon]="faCoffee">.
So, Please provide more clarity to resolve this issue.

Hi, any solution?


Upgrade window UDF api

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
datafusion is in process of removing their built-in window-functions, which our current window function relies on. sum has already been removed which brakes the q11_important_stock_identification.py tpch example.
Additional context
AggregateFunction::Sum enum variant is still defined, but can not be used.
I suspect that the proper solution is to register the new UDAFs with the function registry.
As a workaround for releasing 39, I explicitly match on name == "sum" and redirect to the UDAF.
UDAF Migration Epic: https://github.com/apache/datafusion/issues/8709

@timsaucer could you take a look at this once #728 is merged?

I’ll be happy to but on vacation so it will be a couple weeksOn Jun 14, 2024, at 1:49 PM, Michael J Ward @.***> wrote:
@timsaucer could you take a look at this once #728 is merged?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

@Michael-J-Ward I know this issue was already closed but I have proposed a method to remove the work around.


Update commons-io to 2.11.0

Updates commons-io:commons-io from 2.10.0 to 2.11.0.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "commons-io", artifactId = "commons-io" } ]

labels: library-update, semver-minor

+1

[X] Do all automated continuous integration checks pass?
Yes
[X] Is the update a patch, minor, or major update?
Minor update, see release notes. Bug fixes/minor changes that do not affect Daffodil
[X] Is the license still compatible with ASF License Policy?
Yes, still ALv2
[X] Have any changes been made to LICENSE/NOTICE files that need to be incorporated?
No
[X] Have any transitive dependencies been added or changed?
No


Release contains Spark 3.5 extension

Why are the changes needed?

As we already added support for Spark 3.5, we should publish it to Maven Central in 1.8.0
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[ ] Run test locally before make a pull request

Was this patch authored or co-authored using generative AI tooling?

No

Merged to master/1.8


Dry run mode

Support dry run mode where migrations aren't actually executed, instead sql of migrations that would have been executed is logged.
FYI, this will probably be my last PR for a while

@azax42 thank you!


search-api: add error

getting the following error upon adding
DEBUG:urllib3.connectionpool:http://es01-test:9200 "PUT /bcrf/_doc/461bbfdc353a2673e3814444665553 HTTP/1.1" 400 188
ERROR:libs.es_writer:Failed to write doc of uuid: 461bbfdc353a2673e3814444665553 to index: bcrf
ERROR:libs.es_writer:Error Message: {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse"}],"type":"mapper_parsing_exception","reason":"failed to parse","caused_by":{"type":"not_x_content_exception","reason":"Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"}},"status":400}

Resolved issue by using json.dumps prior to indexing document


[UNDER-DISCUSSION] Internal network issues

Under Discussion Topic
Internal networking issues are preventing windows from cloning SRAW.

For Change Control Board: Issue Review
This review should occur before any development is performed as a response to this issue.

[x] 1. Is it tagged with the under_discussion type?
[x] 2. If implemented, it will add a new requirement?
[x] 3. Is a rationale provided? (Such as explaining why the improvement is needed )

For Change Control Board: Issue Closure
This review should occur when the issue is imminently going to be closed.

[x] 1. The discussion determined the addition of a new task issue?

Issue closure checklist is good.


Add [Node.js]

Here is the link to download node.is[https://nodejs.org/en/download/]

Piston already supports node.js


Flutter Crashes every time when I run "flutter run" command

I installed flutter 4th time, but this error is not solved. Please help me to solve this error

My "flutter doctor -v" command is running successfully. there is not showing any errors in "flutter doctor -v" command
flutter doctor -v
[√] Flutter (Channel stable, v1.7.8+hotfix.4, on Microsoft Windows
    [Version 10.0.18362.356], locale en-US)
    • Flutter version 1.7.8+hotfix.4 at C:\flutter
    • Framework revision 20e59316b8 (10 weeks ago), 2019-07-18 20:04:33
      -0700
    • Engine revision fee001c93f
    • Dart version 2.4.0

[√] Android toolchain - develop for Android devices (Android SDK version
    29.0.2)
    • Android SDK at D:\Android\Sdk
    • Android NDK location not configured (optional; useful for native
      profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_SDK_ROOT = D:\Android\Sdk\tools\bin
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.4)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 39.0.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1343-b01)

[√] VS Code (version 1.38.1)
    • VS Code at C:\Users\DELL\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.4.1

[√] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9
      (API 28) (emulator)

• No issues found!

@zoechi  sir, Please help me

I'm having the same issue, maybe these logs will help
System: Ubuntu 18.04.3
flutter_01.log

flutter_01.log
flutter_02.log

@darshanpatel44 Is this still an issue for you with 1.12 on the stable channel? If so, it suggests something about your configuration, I think.


Support cop stream iterator

support cop stream iterator
fallback to use cop rpc if cop stream is not implemented

/run-all-tests

/run-all-tests


latest Canary breaks theme

this has already been fixed, reinstall the theme.

it has not.
https://i.imgur.com/QFfwXIH.png
Canary ver. aeec87b
Theme ver. d4ff06c

What client mod are you using?

~What client mod are you using?~ i am blind
Doesn't make sense on why it's not working, I just reinstalled the theme myself and it's working perfectly fine. Are there any errors in console relating to the theme?

not that I can see, there's one error that may be a possibility:
https://i.imgur.com/0tN783G.png
I feel like that'd be my client mod acting up, if it's the cause of the theme not loading.

It's either that, or somehow you're cloning a version without the ./src/theme folder.
Can you show me what's inside the src folder of the theme?

It's either that, or somehow you're cloning a version without the ./src/theme folder.
Can you show me what's inside the src folder of the theme?

sure, here you go. I apologize for the late replies.

Interesting, the folder is there so I have no clue why it's not working properly.


Keyv serializing values irrespective of storage medium.

I guess this  is probably more an investigative question.
Is your feature request related to a problem? Please describe.
I was analyzing performance metrics in an application that uses this library and noticed the serialization/deserialization routines were getting executed for an in-memory store without compression.
I was surprised. Is there a reason the value must be serialized when storing in memory, specifically when compression is NOT configured?
https://github.com/jaredwray/keyv/blob/main/packages/keyv/src/index.ts#L317
Describe the solution you'd like
I see areas where there is an if-statement checking if compression is turned on before doing the deserialization routines (which is what I was expecting).
https://github.com/jaredwray/keyv/blob/main/packages/keyv/src/index.ts#L220
Am I  missing something in the framework that causes serialization of the values to be a requirement when compression is NOT enabled?
To be clear, I'm currently testing "turning off" serialization by overriding the serialization/deserialization functions with no-op functions. (thank y'all for putting those configuration overrides in to make this easy to do) So I'm not actively worried about this. I am just curious if I am missing something.
I can also throw a PR out there for patching if this is deemed as something that should be patched.

@mmillies - thanks for sending this out and yes we know that this is an issue and we plan to resolve it soon by adding in a better way to handle in-memory solutions. We are currently working on thew new @keyv/redis adapter but in the future will be doing the following:

KeyvGenericAdapter - We will be introducing a generic adapter that will take any Map compatible in-memory and wrap it so Keyv doesn't do the heavy lifting and will just pass back to the storage adapter the object. This will help a ton and we plan to have this out by end of year.
Updates to Compression and Serialization - We will be updating compression to only do that work and not the serialization part. This will help with how we handle serialization and make it so for in-memory such as the KeyvGenericAdapter it can just not use it.

Hope this helps and appreciate that you already figured out a work around for things like this. Also, if you just want to do in-memory I would highly suggest using CacheableMemory which is the next generation caching library. 🎉

yep, using your CacheableMemory package at the moment. We're a recent migration from the old cache-manager (pre-v4) up to ya'lls latest.
I'm just troubleshooting some performance stuff, hoping the serialization tweak gets me past the finish line.


Update ruby version for travisCI tests

Updates Ruby version for the Travis CI tests

Updating to be more specific, rvm 2.2.2

More sigh... This needs some work! It should really only run chefspec and not try and use vagrant etc.

PR #40 upgrades RVM and fixes other dependency issues that unblock the testing now. I also agree on the Vagrant comment, but I've added a native install of Vagrant for now to keep the current setup happy.


117hd settings in screenshots

Hello can you please provide what 117hd settings you use in the screenshots for the 2010 hd overhaul pack? Your game looks so great and I want to copy those settings.. please and thank you.

This isn't an issue for github, you can ask the author in game or discord.

This isn't an issue for github, you can ask the author in game or discord.

I understand, but do not know how to contact the author. Do you happen to have their discord?


Identity updates - usage outside of ASP.NET Core

@guardrex  it's a P3 so I wouldn't worry about it. I think it had to do with using Identity outside ASP.NET Core. Maybe we should close for now. I think it came from a product announcement list or road map.

@Rick-Anderson Can you elaborate on this one?

In case we reopen this, this pertains to using ASP.NET Core Identity in UWP apps. They made changes to Identity [split into (1) Extensions Identity (provides Identity without the signin manager) and (2) ASP.NET Core Identity] to accommodate the UWP scenario specifically.


support TensorRT people detection and segmentation by mmdetection models

This pull request adds function to support TensorRT people detection and segmentation by mmdetection models.
Following .env options are used for new people detection models.

CABOT_DETECT_VERSION (4-6) : detect people by bounding box using mmdetection model
CABOT_DETECT_VERSION (7-9) : detect people by segmentation using mmdetection model

This depends on following two other pull request.

https://github.com/CMU-cabot/cabot/pull/174
https://github.com/CMU-cabot/cabot-common/pull/9

Thank you for your comment. I clean up setup-model.sh and removed docker compose file for setup model.
Please check following comments.
https://github.com/CMU-cabot/cabot-people/pull/12#discussion_r1678760543
https://github.com/CMU-cabot/cabot-people/pull/12#discussion_r1678951067

I modified to call script "docker/people/setup-model.sh" before building workspace. Please review changes.


[jsonConfig]: allowDeactivate invalid for object instance

No existing issues.

[X] There is no existing issue for my request.

Problem location
IDE
Warning message
awtrix-light has an invalid jsonConfig: [{"instancePath":"/items/_customApps/items/foreignSettingsInstance","schemaPath":"#/patternProperties/%5E.%2B/allOf/33/then/additionalProperties","keyword":"additionalProperties","params":{"additionalProperty":"allowDeactivate"},"message":"must NOT have additional properties"},{"instancePath":"/items/_customApps","schemaPath":"#/properties/items/patternProperties/%5E.%2B/allOf/8/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match "then" schema"}]
Source link
https://github.com/klein0r/ioBroker.awtrix-light/blob/master/admin/jsonConfig.json
Additional information
No response

Same here !

allowDeactivateseems to work in tests and also no fail about this from test when checked against awtrix light config