AWS Lambda errors with classcast exception

Describe the bug
SCF version: 2023.0.0
Runtime: Java 21
{
  "errorMessage": "class [B cannot be cast to class poc.ids.streams.Source ([B is in module java.base of loader 'bootstrap'; poc.ids.streams.Source is in unnamed module of loader com.amazonaws.services.lambda.runtime.api.client.CustomerClassLoader @4dd8dc3)",
  "errorType": "java.lang.ClassCastException",
  "stackTrace": [
    "org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry$FunctionInvocationWrapper.invokeConsumer(SimpleFunctionRegistry.java:1039)",
    "org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry$FunctionInvocationWrapper.doApply(SimpleFunctionRegistry.java:737)",
    "org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry$FunctionInvocationWrapper.apply(SimpleFunctionRegistry.java:580)",
    "org.springframework.cloud.function.adapter.aws.FunctionInvoker.handleRequest(FunctionInvoker.java:91)"
  ]
}

2024-03-17T05:07:37.614Z  INFO 8 --- [stream-poc] [container-0-C-1] org.apache.kafka.clients.NetworkClient   : [Consumer clientId=consumer-standalone-2, groupId=standalone] Disconnecting from node 30 due to request timeout.
2024-03-17T05:07:37.615Z  INFO 8 --- [stream-poc] [container-0-C-1] org.apache.kafka.clients.NetworkClient   : [Consumer clientId=consumer-standalone-2, groupId=standalone] Cancelled in-flight FETCH request with correlation id 115 due to node 30 being disconnected (elapsed time since creation: 126361ms, elapsed time since send: 126361ms, request timeout: 30000ms)
2024-03-17T05:07:37.615Z  INFO 8 --- [stream-poc] [container-0-C-1] o.a.kafka.clients.FetchSessionHandler    : [Consumer clientId=consumer-standalone-2, groupId=standalone] Error sending fetch request (sessionId=1112209334, epoch=1) to node 30:
org.apache.kafka.common.errors.DisconnectException: null
START RequestId: 71cffb8b-7347-4fbd-8651-7804e4367edb Version: $LATEST
2024-03-17T05:07:37.616Z  INFO 8 --- [stream-poc] [ad | standalone] o.a.k.c.c.internals.ConsumerCoordinator  : [Consumer clientId=consumer-standalone-2, groupId=standalone] Group coordinator b7-**.confluent.cloud:9092 (id:<PHONE_NUMBER> rack: null) is unavailable or invalid due to cause: session timed out without receiving a heartbeat response. isDisconnected: false. Rediscovery will be attempted.
2024-03-17T05:07:37.617Z  INFO 8 --- [stream-poc] [ad | standalone] o.a.k.c.c.internals.ConsumerCoordinator  : [Consumer clientId=consumer-standalone-2, groupId=standalone] Requesting disconnect from last known coordinator b7-**.confluent.cloud:9092 (id:<PHONE_NUMBER> rack: null)
2024-03-17T05:07:37.617Z  INFO 8 --- [stream-poc] [ad | standalone] org.apache.kafka.clients.NetworkClient   : [Consumer clientId=consumer-standalone-2, groupId=standalone] Client requested disconnect from node<PHONE_NUMBER>
2024-03-17T05:07:37.617Z  INFO 8 --- [stream-poc] [           main] o.s.c.f.adapter.aws.AWSLambdaUtils       : Received: {"eventSource":"SelfManagedKafka","bootstrapServers":"**.confluent.cloud:9092","records":{"streamsource-0":[{"topic":"streamsource","partition":0,"offset":3,"timestamp":1710651267516,"timestampType":"CREATE_TIME","value":"AAABiQsCSDgwMTU2OWQ4LWQ0OTctNGVhNy1hMTAwLTUzOTdlYmJiMTgwOQLi5pasyWMCAo4CAgpTTzI1NQIC","headers":[]},{"topic":"streamsource","partition":0,"offset":4,"timestamp":1710651269241,"timestampType":"CREATE_TIME","value":"AAABiQsCSGI1MzY4MzVlLTIxYWItNGNjYi05YWQ4LTgxZWZkZmE0ZTk0NALwgZesyWMCAqgCAgpTTzI4NwIC","headers":[]}]}}
class [B cannot be cast to class poc.ids.streams.Source ([B is in module java.base of loader 'bootstrap'; poc.ids.streams.Source is in unnamed module of loader com.amazonaws.services.lambda.runtime.api.client.CustomerClassLoader @4dd8dc3): java.lang.ClassCastException
java.lang.ClassCastException: class [B cannot be cast to class poc.ids.streams.Source ([B is in module java.base of loader 'bootstrap'; poc.ids.streams.Source is in unnamed module of loader com.amazonaws.services.lambda.runtime.api.client.CustomerClassLoader @4dd8dc3)
	at org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry$FunctionInvocationWrapper.invokeConsumer(SimpleFunctionRegistry.java:1039)
	at org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry$FunctionInvocationWrapper.doApply(SimpleFunctionRegistry.java:737)
	at org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry$FunctionInvocationWrapper.apply(SimpleFunctionRegistry.java:580)
	at org.springframework.cloud.function.adapter.aws.FunctionInvoker.handleRequest(FunctionInvoker.java:91)

END RequestId: 71cffb8b-7347-4fbd-8651-7804e4367edb
REPORT RequestId: 71cffb8b-7347-4fbd-8651-7804e4367edb	Duration: 10.73 ms	Billed Duration: 11 ms	Memory Size: 512 MB	Max Memory Used: 281 MB

sample code repo: https://github.com/mohanraj00/stream

Why do you need to use stream? You can bind Lambda directly to Kafka MSK. Just curious?

It is not in production. We are considering rehosting streams commute from k8s to lambda. This issue we faced during the discovery, trying to port with minimal effort.
We worked around the issue using a native image, and eventually, the figure stream is not as suitable as lambda.  Still haven't quite cracked how to invoke a function that involves AVRO deserialization using lambda kafka trigger

You can't deploy stream app as Lambda. It is counter to AWS lambda architecturally. Stream is a long running process where AWS Lambda life cycle ends with its invocation, hence my comment about bonding lambda directly to the MSK cluster events. There are plenty of AWS material out there to explain how to do that. Here is one example - https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html.
So there is nothing that we can do on either function side or stream side. Basically switching from stream to lambda is an architectural switch.
I'll close this issue as there is nothing that we can do.


Providing service status by replaying a user transaction

⚠ Please verify that this feature request has NOT been suggested before.

[X] I checked and didn't find similar feature request

🏷 Feature Request Type
UI Feature, Other
🔖 Feature description
Just because you are able to get a status 2xx from a site, doesn't mean that the service is up. Especially if the service is hosted in cloudflare.
Unless you know that you are able to login and replaying certain web transactions, it's not going to be an accurate uptime monitoring.
Datadog, Kentik and Thousandeyes have this feature. ThousandEyes uses an IDE recorder that generates a script based on an interaction that you would simulate.
Reference: https://docs.thousandeyes.com/product-documentation/browser-synthetics/transaction-tests/getting-started/thousandeyes-recorder
But these are all subscription based services and they violate data privacy principles.
✔ Solution
Integration of Katalon or Selenium to provide that solution:
Katalon: https://chrome.google.com/webstore/detail/katalon-recorder-selenium/ljdobmomdgdljniojadhoplhkpialdid?hl=en-US
Selenium: https://www.guru99.com/introduction-selenuim-ide.html
❓ Alternatives
Manually setup a 2nd app to monitor the user transactions which is a tedious approach.
📝 Additional Context
No response

I assume you can do that by calling a rest url to run the check (hosted on another server)
in my work project we use perl scripts that are called externally, some could also work with curl (in a shell script)


Add support for event specific password protection

This adds the necessary backend and frontend implementations to allow event specific authentication as done by the ETH.
For technical information, see commit messages. @LukasKalbertodt to test this, you can use this DB command:
update all_events
set credentials = row(
    'sha1:9D4E1E23BD5B727046A9E3B4B7DB57BD8D6EE684',
    'sha1:3CBCD90ADC4B192A87A625850B7F231CADDF0EB3'
)::credentials
where title = 'Beyond Elasticsearch: user-facing search engines';

Of course you can use any other event. This will give the event the password user pass and the password word.
Closes #1186

@oas777 you can test this (or at least see it in action) with https://pr1244.tobira.opencast.org/test-videos/pw-proc.
User is "user" and password is "password" (...I know, very imaginative).

Thanks, @owi92, access does work as expected. And Bitwarden seems to identify this as access information it can store ... Two remarks on wording:

in German, it shouldn't be "Name" because it usually isn't a name,  but an ... "identifier"? We call it "Kennung" in German at ETH, but I'm open to other suggestions.
Similar in English, "Username" is very unlikely to be the username a system provides and not for one user in particular but an ... "identifier"?

Agree 100% on "Name"/"Username" being weird in this context. "Kennung"/"Identifier" is good! Thank you for the suggestion.

I agree we switch to "Kennung"/"Identifier". But what about the explanation text then? It's currently this:

Please enter the username and the password you have received to access this series; please note that these are not your login credentials.

 Beachten Sie, dass diese nicht Ihren Logindaten für dieses Portal entsprechen.

Is the second sentence still necessary then? Also the first sentence: it's incorrect in our general Tobira implementation as the password is not necessarily associated with the series. Also: yeah I'm presented with a id/password prompt, obviously I should enter username and password to access the video. So maybe just completely remove the note?

Thanks for chiming in, @LukasKalbertodt. Obviously, the explanation text should be modified accordingly:
"Please enter the identifier and the password you have received to access this video; please note that these are not your login credentials."
 Beachten Sie, dass diese nicht Ihren Logindaten für dieses Portal entsprechen."
As for the second sentence, this is to differentiate the approach from authenticating "the right way" and very important here at ETH for the confusion this causes. But I see how this is not relevant for everyone else. Can we add this "locally"?

For the latest changes of this PR please see Lukas's commit messages and my comment in his PR.

Since this PR has been around for a while and many discussions took place, let me summarize a bit:
Thumbnails are now treated as not-protected by the password. This is in line with the current video portal of the ETH (which is the main reason we are developing this feature). There are use cases and arguments for both options, making the thumbnail protected or not protected, so we might make this more flexible in the future. Having the thumbnail not-protected solved one of the major technical hurdles for us.
The current PR lacks some goodies compared to Ole's initial version of this PR (as mentioned here). This was my decision to ignore this for now to be able to move on with this and also tackle other, more important issues.

Unlocking a video in a video block on a realm does not rerender/unlock other video blocks on the page. So the user either has to reload or unlock them manually. This can be fixed later, if we want.
Videos uploaded via the Tobira uploader into a password-protected series will not always inherit the password protection. This will be solved by https://github.com/elan-ev/tobira/issues/1006. The problem is simply that the uploader always attaches event ACLs. Without a properly configured merge mode in Opencast, that means that the ACLs of the series are not used by the event at all. The linked issue will change the uploader to not attach ACLs, if configured like that.

But with that, after the last minor remarks above are fixed, this is finally ready.


Nested LazyHydrate

Currently it seems not possible to next .
I have a scenario where it makes sense to LazyHydrate a component, but if the parent component is also lazy hydrated, it won't work properly. Either it should be possible to nest LazyHydrate or I could apply a setting like: <LazyHydrate only-if="shouldHydrate"> where shouldHydrate is a boolean, I could define on the parent component, to whether or not the child components should be hydrated.
Say I have a ProductDisplay, ProductSlider and ProductList. The product list will have a lot of ProductDisplay, here I call  on the ProductDisplay. It works. However, when I use my ProductSlider, which is also lazy hydrated, its child components (ProductDisplay) will not get rendered properly.

I don't think it is a good practice to nest <LazyHydrate>. But apart from that:
Please provide an easy way to reproduce the problem or otherwise I can't help you.

Close because of inactivity.

Close because of inactivity.


Put occlusion culling behind a feature flag.

As mentioned in https://github.com/CesiumGS/cesium-unreal/pull/928#issuecomment-1200835178, this puts the occlusion culling feature behind a feature flag, which is found in Project Settings. The reason is:

I'm nervous to have occlusion culling "on by default" currently given the deep renderer integration and last-minute changes. While it's working well in our tests, it wouldn't be surprising to run into issues on some platforms or in some environments, or even to run into visual artifacts with certain tilesets in certain cases.
If we do the simple thing of just defaulting the "Enable Occlusion Culling" property on Cesium3DTileset to off, then later, when we do want it to be on by default, people with existing levels will need to re-enable it manually. We won't be able to easily distinguish "intentionally disabled" from "disabled just because that used to be the default."

By adding a "feature flag" at the project level, we can disable the entire feature by default, but let people enable it to try it out. And once we have more confidence in the feature (which doesn't need to wait until September), we can remove the feature flag and make the plugin act as if it's always enabled (subject to the Tileset setting).
Unfortunately, Unreal made this a little harder than I anticipated, because UPROPERTY EditCondition is so limited, but this should be a workable template for future feature flags if we need them as well.

Thanks for the pull request @kring!

:heavy_check_mark: Signed CLA found.

Reviewers, don't forget to make sure that:

[ ] Cesium for Unreal Samples works.


[Bug]: Not Supported for Netbox 3.7

NetBox access-list plugin version
v1.3.0
NetBox version
v3.7.2
Steps to Reproduce
Install the Plugin, as described in your docs
Expected Behavior
Normal Installation
Observed Behavior
Python error with the text, that it isnt supported for Versions above 3.5

I spent some time chasing down this breakage as an exercise to learn something related to plugin development.
After bumping max_version from 3.5.99 to 3.7.99 in netbox_acls/__init__.py and rebuilding, NetBox failed to answer web requests and produced the following exception stack trace, which quickly goes circular:
[2024-03-19 17:24:37 +0000] [3023] [ERROR] Error handling request /favicon.ico
Traceback (most recent call last):
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/handlers/base.py", line 181, in _get_response
    callback, callback_args, callback_kwargs = self.resolve_request(request)
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/handlers/base.py", line 313, in resolve_request
    resolver_match = resolver.resolve(request.path_info)
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/urls/resolvers.py", line 663, in resolve
    for pattern in self.url_patterns:
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/utils/functional.py", line 57, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/urls/resolvers.py", line 715, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/utils/functional.py", line 57, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/urls/resolvers.py", line 708, in urlconf_module
    return import_module(self.urlconf_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 "/opt/netbox/netbox/netbox/urls.py", line 12, in <module>
    from netbox.plugins.urls import plugin_admin_patterns, plugin_patterns, plugin_api_patterns
  File "/opt/netbox/netbox/netbox/plugins/urls.py", line 31, in <module>
    urlpatterns = import_string(f"{plugin_path}.urls.urlpatterns")
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/utils/module_loading.py", line 30, in import_string
    return cached_import(module_path, class_name)
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/utils/module_loading.py", line 15, in cached_import
    module = import_module(module_path)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/opt/netbox/venv/lib/python3.10/site-packages/netbox_acls/urls.py", line 8, in <module>
    from . import views
  File "/opt/netbox/venv/lib/python3.10/site-packages/netbox_acls/views.py", line 12, in <module>
    from . import choices, filtersets, forms, models, tables
  File "/opt/netbox/venv/lib/python3.10/site-packages/netbox_acls/forms/__init__.py", line 11, in <module>
    from .filtersets import *
  File "/opt/netbox/venv/lib/python3.10/site-packages/netbox_acls/forms/filtersets.py", line 9, in <module>
    from utilities.forms.fields import (
ImportError: cannot import name 'ChoiceField' from 'utilities.forms.fields' (/opt/netbox/netbox/utilities/forms/fields/__init__.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/utils/deprecation.py", line 134, in __call__
    response = response or self.get_response(request)
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 57, in inner
    response = response_for_exception(request, exc)
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 140, in response_for_exception
    response = handle_uncaught_exception(
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 184, in handle_uncaught_exception
    callback = resolver.resolve_error_handler(500)
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/urls/resolvers.py", line 729, in resolve_error_handler
    callback = getattr(self.urlconf_module, "handler%s" % view_type, None)
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/utils/functional.py", line 57, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/urls/resolvers.py", line 708, in urlconf_module
    return import_module(self.urlconf_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 "/opt/netbox/netbox/netbox/urls.py", line 12, in <module>
    from netbox.plugins.urls import plugin_admin_patterns, plugin_patterns, plugin_api_patterns
  File "/opt/netbox/netbox/netbox/plugins/urls.py", line 31, in <module>
    urlpatterns = import_string(f"{plugin_path}.urls.urlpatterns")
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/utils/module_loading.py", line 30, in import_string
    return cached_import(module_path, class_name)
  File "/opt/netbox/venv/lib/python3.10/site-packages/django/utils/module_loading.py", line 15, in cached_import
    module = import_module(module_path)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/opt/netbox/venv/lib/python3.10/site-packages/netbox_acls/urls.py", line 8, in <module>
    from . import views
  File "/opt/netbox/venv/lib/python3.10/site-packages/netbox_acls/views.py", line 12, in <module>
    from . import choices, filtersets, forms, models, tables
  File "/opt/netbox/venv/lib/python3.10/site-packages/netbox_acls/forms/__init__.py", line 11, in <module>
    from .filtersets import *
  File "/opt/netbox/venv/lib/python3.10/site-packages/netbox_acls/forms/filtersets.py", line 9, in <module>
    from utilities.forms.fields import (
ImportError: cannot import name 'ChoiceField' from 'utilities.forms.fields' (/opt/netbox/netbox/utilities/forms/fields/__init__.py)
...

I chased the ImportError for a while, but I'm a product manager with scant Python development experience and just not that effective yet in this area. I did get the plugin to load and display its top-level menu item on a NetBox 3.7.4 system by making the following changes against v1.3.0 of the plugin, rebuilding the plugin, and installing the resulting .whl:
diff --git a/netbox_acls/__init__.py b/netbox_acls/__init__.py
index 4898b59..e220878 100644
--- a/netbox_acls/__init__.py
+++ b/netbox_acls/__init__.py
@@ -18,7 +18,7 @@ class NetBoxACLsConfig(PluginConfig):
     description = "Manage simple ACLs in NetBox"
     base_url = "access-lists"
     min_version = "3.5.0"
-    max_version = "3.5.99"
+    max_version = "3.7.99"

 config = NetBoxACLsConfig
diff --git a/netbox_acls/forms/filtersets.py b/netbox_acls/forms/filtersets.py
index 37f20df..907adaf 100644
--- a/netbox_acls/forms/filtersets.py
+++ b/netbox_acls/forms/filtersets.py
@@ -4,10 +4,10 @@ Defines each django model's GUI filter/search options.

 from dcim.models import Device, Interface, Region, Site, SiteGroup, VirtualChassis
 from django import forms
+from django.forms import ChoiceField
 from ipam.models import Prefix
 from netbox.forms import NetBoxModelFilterSetForm
 from utilities.forms.fields import (
-    ChoiceField,
     DynamicModelChoiceField,
     DynamicModelMultipleChoiceField,
     TagFilterField,

Still, none of the plugin's views render successfully. I think there may be other NetBox import issues left to resolve, and the following message in the logs leads me to suspect that there have also been some changes in one or more of the Django artifacts:
ModuleNotFoundError: No module named 'django.template.loaders'

There's also probably work to do on the plugin's tests, which I see reference device_role (deprecated in 3.6 and removed in favor of just role in 3.7).
This is where I sign off and hand this over to someone better equipped to identify and implement the remaining changes.

I had another run at this with NetBox 3.6.9 and hit the same initial problem; fielding the same hack-around got me exactly as far down the road. I surmise that the primary breakage happened in NetBox 3.6, not 3.7.

@jeffgdotorg yes 3.6 broke many things for plugins. But looks like this PR might fix your issue: https://github.com/netbox-community/netbox-acls/pull/175
Can you try installing the plugin from that branch and testing?


Separate Weibull adstock into CDF & PDF

Description

@cetagostini was right with having them separated. Sorry, I didn't agree at first!
I changed the priors of both... seems like they might be able to be the same if reasonable enough.
However, having the separated classes allows for user to have weibull_pdf and weilbull_cdf upon MMM init which I guess will be the most used route
Related Issue

[x] Closes #732 closes #755
[ ] Related to #

Checklist

[ ] Checked that the pre-commit linting/style checks pass
[ ] Included tests that prove the fix is effective or that the new feature works
[ ] Added necessary documentation (docstrings and/or example notebooks)
[ ] If you are a pro: each commit corresponds to a relevant logical change

Modules affected

[x] MMM
[ ] CLV

Type of change

[x] New feature / enhancement
[ ] Bug fix
[ ] Documentation
[ ] Maintenance
[ ] Other (please specify):

🎆


FEA: new subcommand import to import tasks from any specified md file

FEA: new subcommand import to import tasks from any specified md file

completed by PR #13


fix: pass dirs to built-in watcher to avoid issues

Closes: #540

:tada: This PR is included in version 6.0.4 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


update(besu, quorum): ansible playbooks and roles to use the new standalone helm charts

Description
As a developer I want to cleanup, update and test ansible playbooks and roles that the Besu and Quorum networks can be deployed using the new standalone helm charts
Acceptance Criteria

Network deployed using ansible playbook (No Proxy No Vault and with Proxy and Vault)
Network cleanup using ansible playbook

I'lle working on this


cts files emitting cjs files with ES module syntax

🔎 Search Terms
cts
cjs
.cts
.cjs
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about cts files

⏯ Playground Link
https://github.com/PythonCoderAS/typescript-bug-repro
💻 Code
File config.ts:
import { resolve } from "path";

const config = resolve(__dirname, "config.cts")

module.exports = config;

🙁 Actual behavior
config.cjs:
import { resolve } from "path";
const config = resolve(__dirname, "config.cts");
module.exports = config;
//# sourceMappingURL=config.cjs.map

🙂 Expected behavior
const { resolve } = require("path");
const config = resolve(__dirname, "config.cts");
module.exports = config;
//# sourceMappingURL=config.cjs.map

This is correct because cjs files cannot use ESM things like import.
Additional information about the issue
This might be an error to use but it should throw an error instead of failing silently.

Duplicate #50647


Release 0.0.12

@rultor release it, tag is 0.0.12.

@rultor release it, tag is 0.0.12.

@rafamizes OK, I will release it now. Please check the progress here


Integration new code structure - part 1

Includes initial Stage 1 and Stage 2 migration to new emulator infrastructure
Central CMSSW PR: cms-sw#36337

Associated PRs

PFCal-dev#465
PFCal-dev#479
PFCal-dev#476
PFCal-dev#484
PFCal-dev#486
PFCal-dev#483
PFCal-dev#492
PFCal-dev#485
PFCal-dev#503
PFCal-dev#500
PFCal-dev#508
PFCal-dev#507

Merged 17/02/2022


Object is possibly 'undefined' error when using typed map value in closure

TypeScript Version:  4.0.3

Search Terms: "Object is possibly 'undefined' map"
Code
type Thing = { data: any };

const things: Map<string, Thing> = new Map();

function add_thing (id: string, data: any) {
    let thing = things.get(id);

    if (typeof thing === 'undefined') {
        thing = { data };
        things.set(id, thing);
    }

    return () => thing.data;
}

Expected behavior:
No errors - it is not possible for "thing" to be undefined based on the above code.
Actual behavior:
Object is possibly 'undefined' error.
If things is instead defined as const things = new Map(); then there is no error.
If it is assigned to another constant like this const thing2 = thing; and that is used in the closure then there is also no error.
Playground Link: https://www.typescriptlang.org/play?#code/C4TwDgpgBAKgFgSwHYHMoF4oG8oBMCGw+AXFPkiFAL4DcAUHQMYD2SAzsFMIqm6QLL4wAHg4AnZCgA0sHigB8GKEggB3KILAAKAJT06AMwCuSRsASsyuXAH1ukqFoS5S4yTIJFS5EDux0oQKgAGwhOe1QlCJQ2ADoUMKdcPQYgqAQDR1BIZkzojHRMAHITXAgDZAhcIr8sALSg-MwcT3xqegbGuTi2ROcZaJS0qlSgsTCjMSRHP3RFaNjW+iogA
Related Issues: #7719

Duplicate of #9998.
Quick workaround: Store it in a new const variable:
const cthing = thing;
return () => cthing.data;

@MartinJohns thanks I am aware of this workaround - edited the description.

It's still a duplicate of #9998. :-)

If things is instead defined as const things = new Map(); then there is no error.

If you declare it like this, then the type is inferred to be Map<any, any>. As a result the type of thing is any, and you opted out of all type-safety checks. That's why you don't get an error in this case.

Another nasty workaround:
const thing = things.get(id) ?? (things.set(id, { data }), things.get(id)!);

return () => thing.data;

(Please don't use this.)

I guess my objection to 9998 is the "discussion" label there when this is clearly a bug IMHO. That and my example looks way more RWC to me than the code in that ticket, although I did simplify it a bit for brevity. ;-)

The least ugly workaround seems to be this: return () => thing!.data;

That's why we need Map.prototype.emplace. You might consider using a polyfill of it.
function add_thing (id: string, data: any) {
    return things.emplace(id, {insert: () => ({ data })});
}

This should work without the need of a new const
return () => thing!.data;

I would do like this:
`
interface IMap<K, V> extends Map<K, V> {
get(key: K): V;
}
type Thing = { data: any };
const things: IMap<string, Thing> = new Map();
`


[Enhancement]: remove WETH from default tokens in token selector

Requirements
Currently, the token selector shows the Ambient and Uniswap-listed tokens in the token selector when the user has not entered any search input. We should manually remove WETH from the DOM in this workflow.

Figma
No response
Assumptions
We're suppressing WETH on mainnet as the ERC-20 wrapped equivalent of the native token of the chain, ETH. It may not make sense to suppress WETH on other networks that utilize a different native token.

Although this issue originally is specific to mainnet and goerli WETH, it's extensible to handle the wrapped native tokens of other chains as defined in the file wrappedNatives.ts


What docker command did you use to start up your main server?
On Tue, Feb 21, 2017 at 11:52 AM udiromano<EMAIL_ADDRESS>wrote:

`root@bf4c31c6aca5:/# omp -h localhost -u admin -w admin -i -X - << EOF
<create_slave>
worker-1
worker-1
<IP_ADDRESS>
9390
admin
admin
</create_slave>
EOF
<omp_response status_text="Bogus command name"
status="400"></omp_response>`
Any idea why?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mikesplain/openvas-docker/issues/110, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AA11LTm0o2J_SmWGMoOL05bJuyiDLUDTks5rexZmgaJpZM4MHk1r
.

I'm using a docker compose file:
  ovas-manager:     image: localhost:5000/openvas:latest     ports:       - "4000:4000"       - "9390:9390"     deploy:       mode: replicated       replicas: 1       restart_policy:         condition: on-failure         delay: 10s         max_attempts: 3         window: 120s       placement:         constraints:           - node.role == manager
It should be the same as starting it like this:
docker run -d -p 4000:4000 -p 9390:9390 --name openvas mikesplain/openvas:9
Anyway i have openvas 8 installed on another machine (regular installation not docker) and the same command works.

I believe the create_slave command has been removed from openvas 9 - it has been replaced with scanners. See: https://wald.intevation.org/scm/viewvc.php?view=revision&root=openvas&revision=26445

@udiromano could you please share your composer file?

@mcree I'm sorry i wish i could but i'm not allowed to do so /: If you need help or guidance on specifics feel free to ask...

@mcree Have you managed to create a functional slave scanner?

This is likely fixed in https://github.com/mikesplain/openvas-docker/pull/109 since 9390 wasn't exposed before.
Please reopen if you see any issues!


Handle the new version of HydroQuebec website

Description:
HydroQuébec updated their website, this patch update the hydroquebec component to use the last version of pyhydroquebec
Also, this patch disabled the update on startup (this is useless) and set the default scan interval to 1 hour
Please merge also in the 0.58.1 (if this version is planned, Thanks !)
Checklist:
If the code communicates with devices, web services, or third-party tools:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[x] New dependencies have been added to the REQUIREMENTS variable (example).
[x] New dependencies are only imported inside functions that use them (example).
[x] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[x] New files were added to .coveragerc.

If you need help please use our help channels:
https://home-assistant.io/help/#communication-channels
Merged PRs should not be used for support or bug reports. Thanks!


Update yarn dependencies

Closes #
Changes proposed in this pull request

Incremental updates to fix https://github.com/sanger/sequencescape/pull/4032

Instructions for Reviewers
[All PRs] - Confirm PR template filled
[Feature Branches] - Review code
[Production Merges to main]
    - Check story numbers included
    - Check for debug code
    - Check version

There are multiple issues. I will try a different approach.


server side retry

Expose retry policy to enable server side retry.

Coverage decreased (-0.3%) to 68.464% when pulling a44852ebeb92763dc010e24972bdfc4ae743996b on yiminc:retry into 8dc168916cb68c5236397ceb187c5d306bd78bcd on uber-go:master.


06c Monitor a data warehouse in Microsoft Fabric

Module: 06c Monitor a data warehouse in Microsoft Fabric
Lab/Demo: 06c
Task: Explore query insights
Step: 00
Description of issue
Before Step 2-6 may be add instruction to wait for 5 Minutes before continuing the steps, if not then nothing will show in the results

Running the queries in steps 2-6 should show the desired result straight away since their outputs are all based on the history of previously executed queries already stored. It could have been a connectivity issue that caused this delay/lack of output after running the SQL codes.


feat: add react-native-quick-crypto for ed25519

Add react-native-quick-crypto library for faster ed25519 sign & verify functions.
Also WIP, trying to remove Expo from jazz-react-native as much as possible.

https://github.com/boorad/jazz/pull/1/files is just a throw-away PR to show you guys what else is helping me get further in my app.  It's based on the branch for this PR, but wanted to get your thoughts on it.


Comment module is a dependency of a bunch of Islandora modules

Looks like the core Comment module is a dependency for the following modules:

Which makes it difficult to uninstall it. Looking at the .info.yml files for the modules listed above, it's there for Islandora Defaults and ... Solr Search Defaults (not one of ours).
So I guess the only way to not have comments on a site is to not configure any permissions for it? Here's the policy of the Solr Search Defaults maintainers: https://www.drupal.org/project/search_api_solr/issues/2938102.

I think if we want to avoid that then we're saddled with maintaining our own solr config and not using anything from search_api_solr_default (which may not be a bad thing?).

Since defaults provides standard fields on repository objects, it might be nice to provide a corresponding set of search configs. As it is, admins still need to configure all the "islandora" fields at admin/config/search/search-api/index/default_solr_index/fields.

Totally.  And facets.  We should provide reasonable defaults for those, too.

Now that we're not relying on search_api_solr_default can we remove the dependency on the comment module?

Bumping this... now that we have islandora_search, does the comment module still need to be a dependency of islandora_defaults, islandora_oaipmh, and islandora_search? comment is a dependency of search_api_solr_defaults, which in turn is a dependency of islandora_search. If we can get rid of that last dependency, we can get rid of the comment module (I think).

So, a quick grep shows that the only reference to search_api_solr_defaults is in the islandora_search info file. Removing that reference should allow us to remove comment from the islandora_defaults info file.

I have a branch for this, but I need to build a fresh box from scratch to test it before I issue the PR.

Actually, it will be a lot easier to test this as a branch on islandora_defaults itself...

Okay, I've tested my branch and it does remove the dependency on Comment. HOWEVER, it will still appear on a standard Drupal install because it is used by the Article content type. To truly remove Comment you have to delete the comment field from the Article content type and then uninstall the module.
PR incoming.

All resolved, thanks very much @seth-shaw-unlv!


Fix JAnsi bug in Gradle

This PR fix https://github.com/fusesource/jansi/issues/69 directly in Gradle by duplicating the required code and applying our patch to the code. This also fix https://github.com/gradle/gradle/issues/882 and related issues.
Note the console.flush() was moved down to prevent event replay if an exception is thrown during the flush.

Is there a way to use this from my gradle-wrapper.properties file? Specifically, what would I replace:
distributionUrl=https://services.gradle.org/distributions/gradle-3.3-bin.zip
with? Thanks.

@BruceEckel This would need to be merged and then built into a nightly, which are available here.

LGTM, can you paste a link to a nightly that contains this change once it's merged?

@big-guy This nightly contains the change: https://services.gradle.org/distributions-snapshots/gradle-3.4-20170116000026+0000-bin.zip


v1.4 Documentation: Finalize content and design of UG

Also, under ### Saving the data: :

Recipes are saved in a ***[JSON](link)** file at this location:
. (Location where your Recipe Book JAR File `recipebook.jar` is)
├── data
│   └── recipebook.json
├── preferences.json
└── recipebook.jar


failed to run the code one machine

As the title. I can run it on one machine but on another machine
it failed with the following message. Do you see why this happened?
Many thanks
$ python3 train.py

============================== Normal Train Mode ==============================

------------------------------------ Params -----------------------------------
[('batch_size', 64), ('cache_path', 'cache'), ('measure', 'p@1'), ('sequence_length', 500)]
-------------------------------------------------------------------------------

--------------------------------- Hyper Params --------------------------------
[('d_max_pool_p', [125, 128, 128]), ('filter_channels', 128), ('filter_sizes', [2, 4, 8]), ('hidden_dims', 512), ('learning_rate', 0.0005099137446356937), ('stride', [2, 1, 1])]
-------------------------------------------------------------------------------

Loading data...  /home/cjlin/.local/lib/python3.6/site-packages/torchtext/data/field.py:36: UserWarning: RawField class will be retired soon and moved to torchtext.legacy. Please see the most recent release notes for further information.
  warnings.warn('{} class will be retired soon and moved to torchtext.legacy. Please see the most recent release notes for further information.'.format(self.__class__.__name__), UserWarning)
/home/cjlin/.local/lib/python3.6/site-packages/torchtext/data/field.py:150: UserWarning: Field class will be retired soon and moved to torchtext.legacy. Please see the most recent release notes for further information.
  warnings.warn('{} class will be retired soon and moved to torchtext.legacy. Please see the most recent release notes for further information.'.format(self.__class__.__name__), UserWarning)
/home/cjlin/.local/lib/python3.6/site-packages/torchtext/data/example.py:68: UserWarning: Example class will be retired soon and moved to torchtext.legacy. Please see the most recent release notes for further information.
  warnings.warn('Example class will be retired soon and moved to torchtext.legacy. Please see the most recent release notes for further information.', UserWarning)
/home/cjlin/.local/lib/python3.6/site-packages/torchtext/data/example.py:78: UserWarning: Example class will be retired soon and moved to torchtext.legacy. Please see the most recent release notes for further information.
  warnings.warn('Example class will be retired soon and moved to torchtext.legacy. Please see the most recent release notes for further information.', UserWarning)
Done.
Converting text to ID...  Traceback (most recent call last):
  File "train.py", line 129, in <module>
    main()
  File "train.py", line 106, in main
    trainer.preprocess()
  File "/home/cjlin/xml-cnn/build_problem.py", line 151, in preprocess
    self.TEXT.vocab.load_vectors("glove.6B.300d")
  File "/home/cjlin/.local/lib/python3.6/site-packages/torchtext/vocab.py", line 184, in load_vectors
    vectors[idx] = pretrained_aliases[vector](**kwargs)
  File "/home/cjlin/.local/lib/python3.6/site-packages/torchtext/vocab.py", line 487, in __init__
    super(GloVe, self).__init__(name, url=url, **kwargs)
  File "/home/cjlin/.local/lib/python3.6/site-packages/torchtext/vocab.py", line 326, in __init__
    self.cache(name, cache, url=url, max_vectors=max_vectors)
  File "/home/cjlin/.local/lib/python3.6/site-packages/torchtext/vocab.py", line 368, in cache
    with zipfile.ZipFile(dest, "r") as zf:
  File "/usr/lib/python3.6/zipfile.py", line 1131, in __init__
    self._RealGetContents()
  File "/usr/lib/python3.6/zipfile.py", line 1198, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

It looks to me like the error is caused by the library.
Are you running this program in the recommended environment (using Anaconda and requirements.yml)?

No, I am not using conda as it's not available in our system.
The code reported some packages are missing and then I pip install them.
By this it works on one machine but not the other.
Thanks
On 2021-02-13 20:51, Yusaku Goto wrote:

It looks to me like the error is caused by the library.
Are you running this program in the recommended environment (using
Anaconda and requirements.yml)?
--
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2]. [ { "@context": "http://schema.org", "@type": "EmailMessage",
"potentialAction": { "@type": "ViewAction", "target":
"https://github.com/yu54ku/xml-cnn/issues/4#issuecomment-778614649",
"url":
"https://github.com/yu54ku/xml-cnn/issues/4#issuecomment-778614649",
"name": "View Issue" }, "description": "View this Issue on GitHub",
"publisher": { "@type": "Organization", "name": "GitHub", "url":
"https://github.com" } } ]
Links:
[1] https://github.com/yu54ku/xml-cnn/issues/4#issuecomment-778614649
[2]
https://github.com/notifications/unsubscribe-auth/ABI3BHSUIFSAAPOOFNYCHXTS6ZYTJANCNFSM4XRZI6JQ

I havn't tested it in any environment other than Anaconda, which was created using requirements.yml.
We can't guarantee that it will work outside of this environment.
You are responsible for that.


Hashtags in URLs are broken

Good day,
When I try to request an URL containing an (encoded) hashtag character, Nancy routes my request incorrectly.
The route I use is a GET to /Users/{userGuid}/{ItemId}/Something
The Url I use is
/Users/id-C2FA7B9C3D591B35D0282E60EF00F652/id-B71E36CFFAD17AC819AF7B5CB9551825#2003-08-01#null#inod_e02577fdba737f7c71523e3550a73cc0/Something

Obviously, I URLEncode them to %23, this makes the URL
/Users/id-C2FA7B9C3D591B35D0282E60EF00F652/id-
B71E36CFFAD17AC819AF7B5CB9551825%232003-08-01%23null%23inod_e02577fdba737f7c71523e3550a73cc0/Something

While debugging, I used the IPipelines.onBeforeRequest pipeline to check out the Url received by Nancy. The new pipeline is placed at the start. The context received in this pipe contains an Url looking like this:
http://localhost:80/Kluwer/Api/Endpoint/Users/id-C2FA7B9C3D591B35D0282E60EF00F652/id-B71E36CFFAD17AC819AF7B5CB9551825##2003-08-01%23null%23inod_e02577fdba737f7c71523e3550a73cc0/Something

The path where Nancy tries to route my request to is
/Api/Endpoint/Users/id-C2FA7B9C3D591B35D0282E60EF00F652/id-B71E36CFFAD17AC819AF7B5CB9551825

This path doesn't exist, there is only a /users/{}/{}/something path so Nancy returns a 404.
This is obviously not the right behaviour, just look at the two hashtags. Somehow, somewhere, the single %23 is changed to ##. These characters break the Url resolving.
I worked around this problem by replacing the # character at the client with a placeholder (pile of poo) and replacing all placeholders with # characters at the server.
I do hope I've made my problem clear.

I'm observing the same problem with self hosting.

...and I am encoding the #'s as %23

Right now I'm working around it by using the Korean for "hash" as a replacement "해시". :stuck_out_tongue_winking_eye:


call recording not working with this enabler

The recovery.zip does not work under LOS21 (lineage-21.0-20240820-nightly-FP5-signed). The update in LOS recovery runs without errors, but the recording button does not appear in the dialer when an incoming call is accepted.

 I can't reproduce this issue on my device with Lineage 21. We can keep this issue open for now.

hi,
after the error I used the magisk module and it worked straight away.
I can't help you troubleshooting right now. You can close the issue.
Thanks

closed


Add option to deploy a HTTP server for the metrics endpoint

Motivation
I want to use GKE Managed Prometheus to get the data from falcosidekick's /metrics endpoint. I also want to use the TLS server option.
However I ran into the issue that the Prometheus server wants to authenticate the falcosidekick server based on IP address, and the certificate can't be issued for that.
One solution would be to tell Prometheus to skip verification, there is an issue for that opened a year ago: https://github.com/GoogleCloudPlatform/prometheus-engine/issues/238
Until that issue is closed, the other solution is deploying an HTTP server on falcosidekick for the /metrics endpoint.

Feature
Add option in configuration to deploy a HTTP server serving the metrics endpoint. Example config:
tlsserver:
  metricshttp: false # if true, a separate http server will be deployed for the Prometheus metrics endpoint
  metricsport: 2802 # port to serve metrics http server if deployed (default: 2802)

Alternatives
I was wondering if serving only the /metrics endpoint is enough or serving all of the endpoints on HTTP as well would make more sense. (Is there a use case for that?)

Additional context

I don't understand your alternative, using http for all endpoints, it's pretty much the default behaviors til now. I think anyway, we could have more endpoints without TLS even when it's enabled, for example /healthz.
My proposal is a bit different so. I would prefer something like:
tlsserver:
  notlsport: 2810
  notlspaths:
    - /metrics
    - /healthz

To list the paths to exclude from TLS, if the list != empty, we start the httpserver aside with the port notlsport.
Anyway, you can't reuse the port 2802 as it's already mapped to the webserver with TLS.
WDYT

For alternative I meant that all the endpoints are served on HTTP on the second port while the TLS server also runs.
But your proposal is more flexible, I'll make the updates soon according to it and also change the default port to 2810.

Having all endpoints responding to TLS and non-TLS at same time destroys the whole logic to have a secured connection. Keep me updated, I'm releasing the 2.28.0 in few days.


Execute jimiFlows or actions within containers

To provide isolation it would be great if you could execute an entire flow or given action within a container.

I can have a look this if you want?

As well as running part of a flow within a container maybe this could also be used to autoscale the cluster to make better use of the available resource given python is single threaded - doing this would reduce the need for the threaded option that can be set on a flow.


Switch to full text search inside jsonb

This requires Postgresql 10, which is not available on Nanobox (yet).
This would allow removing the search index materialized view and related triggers, as we could search directly inside entries.

Closed by #10


docs(ledger-plugin): fix some minor errors on documentation

Describe the bug
The some documentation includes minor errors on launching ledger docker containers. These may confuse Cactus users.
To Reproduce
To provide a pull-request to correct the above points.

@takeutak Can this one be closed now that the PR is merged?


Updated JMESPath sample. Solves #2553

Updated JMESPath sample. Solves #2553
Related to #2292 and #2543

Should be a tad more readable now. Thanks for keeping me sharp!

Since this PR targets the changes for v4, I redirected the PR to the v4 branch rather than main

Good point, totally forgot about that 👍

Merged manually. Thank you! 👍


Fix for Github CI to publish HF trainer image

arm64 is removed now due to low resource availability in GIthub required for building the images

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.05%) to 42.839%

Totals

Change from base Build<PHONE_NUMBER>:
-0.05%

Covered Lines:
3751

Relevant Lines:
8756

💛  - Coveralls


⚠ AGEG website (redirect) has degraded performance

In a169dd4, AGEG website (redirect) (https://ageg.ca/) experienced degraded performance:

HTTP code: 200
Response time: 2565 ms

Resolved: AGEG website (redirect) performance has improved in 8eae23c.


pre-push hook runs twice

i set a simple pre-push hook that plays an audio file. when pushing from git-plus the script is run twice. while this does not affect me terribly i can imagine a situation where somebody might not want a more important hook to be run twice

Is this still a recurring issue? I can't reproduce it. I'm going to close it and if it is still a problem we can reopen it.


Web Player Linux Support

Great seing Tibco supporting Docker, really nice move!
We have our environment set on EKS, though, so no support for Windows nodes yet. And even if it's supported, we have no Windows workload, so Spotfire will be paying for this node alone, which increases Spotfire solution cost quite significantly.

I have two answers to this question.  The Spotfire Server is supported on Linux, but Web Player and Automation Services are not.  I would recommend voting and commenting on the idea in the TIBCO Ideas portal for this:  https://ideas.tibco.com/ideas/TS-I-5300
Kubernetes added support for Windows containers in the Spring,  It looks like Amazon EKS started a public preview of Windows containers in the spring, but I didn't see any other announcement since then: https://aws.amazon.com/about-aws/whats-new/2019/03/amazon-eks-opens-public-preview-of-windows-container-support/  From your note, this sounds like it doesn't work for you since Spotfire would be the only Windows node.


plyr, youtube links do not work

Hi guys, I hope you're fine ...
I have a problem with the PLYR html reader, I installed it via Bower on my xampp server. at the beginning it worked very well but after the youtube links no longer worked and the reader remains frozen.
Thank you for your help.

@spencer237 see issue here: https://github.com/sampotts/plyr/issues/709

@sweethoneycode thanks

Fixed in #709

#709 problem solved using this method
https://github.com/sampotts/plyr/blob/master/src/js/plyr.js#L1771


New to the open source  and your organisation

I am new to the fascinating open source community .I have not attended any of your meetings but wish to contribute to your community.I know less time is remaining so kindly give me an overview and guidance.
Thank you.

@theexplorist, If you are interested in participating in the GSoC through the CHAOSS project, you should visit the following links. They will give you a better idea of how we are proceeding.
https://wiki.linuxfoundation.org/chaoss/gsoc-ideas
https://lists.linuxfoundation.org/pipermail/oss-health-metrics/2018-February/000517.html
I suggest that you participate directly in the GitHub repositories to which you are hoping to work.

GSoC applications are complete.


feat: trim city name before taking unique values for partner profile header

This PR trim city name to show only unique values.
Discussed here - https://github.com/artsy/force/pull/7190#discussion_r598694527
JIRA - https://artsyproduct.atlassian.net/browse/PX-3824
Old:

New:

Woo! Looks great. 🙌


Only call ViewManager::performRootShadowTreeLayout from resetAfterCom…

…mit hook.
Following olidacombes excellent performance improvements to the
ShadowView layout code it appears we had some unnecessary calls
to performRootShadowTreeLayout in the likes of
ViewManager::addChild and ViewManager::removeChild. We should
only need to peform a single root layout pass in the
reconciler's resetAfterCommit hook and when the
ReactRootApplicationInstance itself is resized. Removing these
extra calls results in a massive performance improvement.

Love it, thank you! And this is totally made possible thanks to @olidacombe's initial work spotting the resetAfterCommit improvement. Cheers to you both!

Yeah. I really just popped a cheery on top and stood on the shoulder of a giant there @olidacombe. The performance improvement is sliiiiick now.

Thanks @nick-thompson , @JoshMarler this is a really nice project you have here!


Select resources types for AWS Config to record

https://docs.aws.amazon.com/config/latest/developerguide/select-resources.html
The plan will look like this
aws_config_configuration_recorder.main[0] will be updated in-place
  ~ resource "aws_config_configuration_recorder" "main" {
        id       = "config-eu-west-1"
        name     = "config-eu-west-1"
        # (1 unchanged attribute hidden)

      ~ recording_group {
          ~ all_supported                 = true -> false
          ~ include_global_resource_types = true -> false
          ~ resource_types                = [
              + "AWS::CloudTrail::Trail",
              + "AWS::EC2::EIP",
              + "AWS::EC2::Instance",
              + "AWS::EC2::NetworkAcl",
              + "AWS::EC2::SecurityGroup",
              + "AWS::EC2::VPC",
              + "AWS::EC2::Volume",
              + "AWS::IAM::Policy",
              + "AWS::IAM::User",
            ]
        }
    }

I'm curious how you plan to use this in a real world scenario as we haven't come across a need for it yet. But it does look interesting. Finally, can you make an example of how it could be used in examples/?


chore: enforce consistency in material-examples

This:

Enables ViewEncapsulation;
Ensures that all css classes are initialized with .example-;
Ensures all spaces between curly braces are ommitted (in component [objects] and html);
Replaces redundant syntax for boolean @Inputs, like: <mat-horizontal-stepper linear="true"> with  sugar syntax <mat-horizontal-stepper linear>;
Replaces all any usages with more expressive types;
Replaces classes with interfaces;
Creates interfaces for complex examples (generally arrays);
Removes unnecessary type assertions;
Indents files correctly (some were indented with 4 spaces);

@crisbeto Ready for another review round.

@crisbeto is there something that I can do to speed up this PR?


Memory allocation failed `Success' @ fatal/tiff.c/UnregisterTIFFImage/2378.

display:
weed: Memory allocation failed Success' @ fatal/tiff.c/UnregisterTIFFImage/2378.`

Need more reproducible details here.


Notation sections

changed all math environments to align instead of $$
added notation sections
minor fixes regarding inconsistencies

@ebatty

Was too difficult to merge through git but I manually added all changes and notation sections!


"the server has asked for the client to provide credentials"

What happened:
When using a kubeconfig that contains many clusters, contexts and users, if the current context does not match the current env, ksonnet returns ERROR the server has asked for the client to provide credentials
What you expected to happen:
Applying ksonnet envs shouldn't rely on the context being set with kubectl
How to reproduce it (as minimally and precisely as possible):

Add two envs, X and Y
Set the current context to Y
ks apply x

Anything else we need to know?:
This may be just a misunderstanding on my part, but if ks has the ability to know about servers, namespaces and other things, when creating an env, it should have enough information to apply the changes. Perhaps if ks stored the user as well, it would be more useful.
The reason I think this is important is because in a CI pipeline, it would be useful to not have to specify kubectl set-context every time for each environment.
Environment:

ksonnet version (use ks version): ksonnet version: v0.8.0
Kubernetes version (use kubectl version): Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.4", GitCommit:"9befc2b8928a9426501d3bf62f72849d5cbcd5a3", GitTreeState:"clean", BuildDate:"2017-11-20T05:28:34Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"darwin/amd64"} Server Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.4", GitCommit:"9befc2b8928a9426501d3bf62f72849d5cbcd5a3", GitTreeState:"clean", BuildDate:"2017-11-20T05:17:43Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

@jaxxstorm I'd like to review what we have here. If I understand correctly, it looks like you are having issues with ksonnet determining the correct context to run with. As it stands right now, we store the cluster's API server URL and a namespace. This is not optimal. In a better world, we should expose multiple ways of identifying a cluster (including specifying a context). This task isn't trivial, but should be straight forward.
In the mean time, does specifying the --context flag work? I could see this working in every case except for diff since there are cases where you could be using two contexts.
The next steps are to:

figure out a better way to describe clusters in app.yaml
account for multiple contexts in git
possibly think of other ways to override contexts

@jaxxstorm I'm closing this issue due to age. Please reopen if needed.


Interact with collision event ?

Collision is ok in our game.
But, I want to go to other scene (start a new one) when colliding on a house (for example).
How can I detect it using grid engine ?
Is it possible ?
I see some of yours answers about position changed, but I don't like this approch.
But maybe it's the only way ?

hey there I think this also goes a bit in the direction of what I've asked here https://github.com/Annoraaq/grid-engine/issues/227
currently my workaround is also tile based where I check the position and according to that react based on the tile

Hey, so the short answer is that there is currently no other way to detect that. To evaluate on a new feature for that, it would be interesting to know what exactly 'colliding' means in your case. In GridEngine it simply means that a tile position is "blocked" for a character. So it is kept from moving to that position.
So one possible definition of collision in your example could be:
Character A collides with position X if

the character is on adjacent position of X
the character "tried to move" to position X

"tried to move" would mean that move() was called towards position X.
But there might be more interpretations for that.
Maybe you can describe the exact case and what you dislike about using positionChanged. That might help finding a good solution.

I think in a pixel based phyiscs engine the problem is a bit easier. As far as I know it will see something as colliding if it oberlaps or at least "touches".
However in a tile/grid based world overlapping means both objects are on the exact same position and "touching" means you they are at neighboring positions. Both options are probably not what you want, correct?

Today, I'm trying to add new Layer on my game.
This layer will present all specifics objects I added :
The purpose of these objects : add custom areas to decide when I can detect objects collision.

I'm not interested about position : I just want when my player collider specifics objects, to emit events, that I can attach from it.

@Annoraaq and @evan-boissonnot I think this now exactly goes in the direction of what we've been talking before with letting the gridEngine "understand" objects and than later on have events for "touching" ( neighbor) and "overlapping" (same tile) which could be two different observables so the user can chose whatever he prefers.

Hi,
to be more precise :
Today, I have tried to use :
this.map.objects.forEach(element => {
this.doors = this.map.createFromObjects(element.name, {
name: 'door'
});
});
And with these objects (from object layer), I have tried to add a collision detection, to go to other scene ...
doesn't work :(
The door sprite (created from Phaser), was not where I have created it on Tiled.

I think there are two different problems here:

GridEngine objects that have observables you can subscribe. These could tell you whether some character entered a neighboring position or entered their position. That is part of #229 and can already done in a less convenient way by using the positionChanged observables of the characters.

Creating sprites from Tiled object layer objects in Phaser. That is something I can't give a lot of advice, because I've never done this. I think there are some Phaser examples handling this: https://labs.phaser.io/view.html?src=src/tilemap/create from objects.js

Just a clarification for the object layers and GridEngine:
GridEngine does not (and probably will not) support object layers from Tiled because they are - to my knowlege - pixel-based and not tile-based. GridEngine only deals with tile-based positions.
As far as I understood you want to achieve the following:

Place objects on pixel positions on an object layer in Tiled
Create sprites for those objects with phaser
Detect GridEngine characters next to (or on top of) of a tile that contains one of these objects

Step 3 is a bit tricky because you have to define a way to determine the tile position for your object. How you do that depends heavily on the type and shape of your objects. For a square you could get the center and use https://photonstorm.github.io/phaser3-docs/Phaser.Tilemaps.Tilemap.html#worldToTileXY__anchor to get the tile position. Then you could use https://annoraaq.github.io/grid-engine/api/methods.html#positionchangefinished to check whether your character is on the corresponding field. You can also use https://annoraaq.github.io/grid-engine/api/methods.html#getfacingposition to get the position, the character is facing.

Many thanks @zewa666 and @Annoraaq
What you say both is the other way I will try.
As you said, it's the only way with grid engine motor.
But, I don't like the idea to check position.
Collision events are better performance.

I don't think that collision events necessarily have better performance. The above getFacingObjects() implementation runs in O(c*o) where c is the number of characters and o the number of objects. But you could optimize it by not checking all the objects every time. Instead you can keep a hash map that stores all objects for a certain position. Then after every position change of a character you need constant time to check for a facing object (assuming you only need one object per position). That would bring you down to O(c). There are some similarities to this file:  https://github.com/Annoraaq/grid-engine/blob/master/src/GridTilemap/CharBlockCache/CharBlockCache.ts. It is an efficient implementation to check whether a certain position is blocked by a character.
Collision events would basically do the same. On every character position change, the engine has to check whether there is a collision. So I don't see how you can gain any performance advantage by using collision events.

yes very good point. please dont take my example for prod ready. it was merely to depict the idea of how and where to grab data. of course as @Annoraaq suggested you would want to optimize the object retrival plus. plus, if objects are static, one could also memoize lookups for a given facing position and thus even further reduce lookup time.


Kb management

First batch of issues, may lead to separate issues:

Add and import button to close to each other.
After group adding or modyfing, it does not return to Search tab.
Tooltips missing.

Missing leading text to the Autodetect button, also move it immediately after the (now missing) description from the far right where it can be easily overlooked.

The valid values in Method are Exact, Fulltext and Substring. With Fulltext as the default. (I have added this to the REST specs.

Hi, another one:

When implementing defaults, I have noticed that there is no general rule that all parts (class types, property predicates,...) in a group must have at least one entry, some of these are often left empty actually. So please relax this restriction, as I have done on the server. Also @JanVana might chime in to tell us, which of the "enum" properties must be always present (or if the rule is that at least one of the enums has to "cover" the part), if any.

The advanced properties comments should be read only. They are defined within the advanced type definition along the default values. Basically the key-value display should pre-display the keys defined within the the advanced type, and their default values, if present (editable), and the comments (if present) as read only. Hope it is clear now. I will create some testing advanced type for you to test, because the SPARQL one will not have any.

Most  of them done; as for tooltips, I do not understand - there already are tooltips over the action icons. Where else would you like to have them?


Examples for resources without claims

What problem are you facing?
We have some resources that do not have a corresponding claims such as network, subnetwork etc. Only end to end tutorials expose them to the users as ready-to-use yaml files.

How could Crossplane help solve your problem?
Add examples for those resources.

Done https://github.com/crossplane/provider-gcp/tree/master/examples


Drop FreeBSD support

FreeBSD is not supported by the Otel collector. As an Otel distribution, it makes sense to align on the platforms that Otel supports, or else we end up making build exceptions for components that bring dependencies that are not supported on FreeBSD (for example: datadog exporter).
On this day, the number of reported Alloy instances running on FreeBSD is very small.

We also plan on using Grafana Alloy instead of building Otel collector as an agent as it supports FreeBSD(lot of hosts) natively.

The decision is not final and the next major release is still far in the future. It will depend on how much effort it is to keep it and how many people want us to keep it

We're working on deploying Alloy at scale on FreeBSD-based systems. +1 for keeping FreeBSD.

Adding build exceptions for components that don't work with FreeBSD doesn't sound like a lot of effort. If that's all we need to do, IMO we can keep the FreeBSD builds.

Perhaps it is possible to keep support for FreeBSD and mark it as a "Tier 2" or "non-supported" platform? By showing a warning in the documentation and when starting the application?
Dropping FreeBSD support basically means not supporting anything which isn't Linux, macOS or Windows. Because FreeBSD is the most well supported of all non-Linux *nix'es. If FreeBSD can't be in Alloy then more niche stuff (like for example Solaris, illumos, OpenBSD, NetBSD, etc.) sure can't. I was actually looking into doing some porting work to Solaris / illumos for Alloy.

I agree with @ptodev, as long as there is no massive blocker coming from an upstream update (Prometheus or Otel), then it should be fine to keep the FreeBSD builds

Closing the issue because we decided to keep FreeBSD support


query return no exist series

prometheus version 2.23.0
if i run a pod

then, one of containers restart

query  will  return old container series

but the metrics return from kubelet is right

this cause wrong result when use "sum"

It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided.


[vue-composition-api] must call Vue.use(VueCompositionAPI) before using any function.

I am getting this error after updading apollo-composable to the latest version.
[vue-composition-api] must call Vue.use(VueCompositionAPI) before using any function.
I am using VueCompositionAPI as a Nuxt plugin.
import Vue from "vue";
import VueCompositionApi from "@vue/composition-api";

Vue.use(VueCompositionApi);

To Reproduce
1 - Upgrade from @vue/apollo-composable v 4.0.0-alpha.8 to v 4.0.0-alpha.10.
2 - Run npm run dev
3 - Go the browser
Versions
nuxt: 2.13.3
@nuxtjs/apollo: 4.0.1-rc.1
@vue/composition-api: v1.0.0-beta.8

I've got same issue, but with the quasar framework.

@szvest I've had a similar issue with nuxt, what I did was the following:

Create a folder /composition with the following content
index.ts

import Vue from "vue";
import VueCompositionApi from "@vue/composition-api";

Vue.use(VueCompositionApi);

export * from "@vue/composition-api"

Change composition references from "@vue/composition-api" to "@/composition"

Possible duplicate of https://github.com/vuejs/vue-apollo/issues/1029

Thanks, @dietergoetelen. These are the steps I followed:

Upgrade from @vue/apollo-composable v 4.0.0-alpha.8 to v 4.0.0-alpha.10.

Remove the composition-api plugin from nuxt.config

plugins: [
// { src: "@/plugins/composition-api" },
]

Create /composition folder and transfer composition-api.js from the plugin folder to the new folder with the following export added.

export * from "@vue/composition-api"

Find and replace all occurrences of from "@vue/composition-api" to from "@/composition"

Same issue. Nothing fixed.

I've got same issue, but with the quasar framework.

Maybe my answer on StackOverflow might help you.

See https://github.com/antfu/vue-demi/issues/7


contrib: add basic database creator

Hey, I just made a Pull Request!

I created a basic database creator for PostgreSQL and thought I could add that to the contrib folder if someone else is interested.
:heavy_check_mark: Checklist

[X] All tests are passing yarn test
[ ] Screenshots attached (for UI changes)
[X] Relevant documentation updated
[X] Prettier run on changed files
[ ] Tests added for new functionality
[ ] Regression tests added for bug fixes

@mfrinnstrom - It might be good to chime into #1598 as the discussion is very related.

@andrewthauer & @benjdlambert thanks for you comments. I totally missed the discussion in #1598 but have heard it mentioned in Discord that you will look into this.
This was just a quick hack that I threw together that I thought could be useful for other people. I can see now that @lowjoel has started to work on this in #2674 and I think it is better to continue the work there then since it seems to have a bigger goal than this. I will add some comments to that instead.


style(eslint): no unused imports

Swap out @typescript-eslint/no-unused-vars for eslint-plugin-unused-imports
This allows setting the levels differently for unused imports vs. unused vars. Unused imports are now set to error and will autofix.

Does this work in jsx files? According to their readme this plugin needs eslint-plugin-react to function correctly, which we're not using

Does this work in jsx files? According to their readme this plugin needs eslint-plugin-react to function correctly, which we're not using

JSX is the past.


Is an 8x NVIDIA RTX 3090 GPU Setup Sufficient for Training Models in the Predictive World Model 2024 Competition?

I am excited about participating in the Predictive World Model 2024 competition and have been preparing my environment accordingly. My current setup includes a system with 8 NVIDIA RTX 3090 GPUs, which I believed would be more than capable of handling the training demands of the competition's models.
However, even after adjusting the configuration settings to the minimum requirements as per the competition guidelines, I'm encountering a persistent issue where I run out of memory. The error I receive is as follows:
RuntimeError: CUDA out of memory. Tried to allocate 60.00 MiB (GPU 7; 23.70 GiB total capacity; 21.79 GiB already allocated; 18.81 MiB free; 21.97 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
Is an 8x RTX 3090 GPU setup insufficient for training the competition models, or might there be an issue with my configuration or approach?

Hi,
You can try using smaller image scale, set supervise_all_future to False, larger voxel size for reducing number of points for supervision, or other backbones.
Hope these work for you. ViDAR indeed requires a large GPU memory cost and OpenScene dataset has 8 input cameras.
Thanks,
Zetong

In the past few days, I have been trying to use a single 3090 running vidar to reproduce on nuscenes. How can I reduce the memory of the nuscenes data set?
I have tried using mem_efficient_vidar_1_8_nusc_3future.py, future_queue_length_train=1, future_pred_frame_num_train=1, future_queue_length_test=1, future_pred_frame_num_test=1, queue_length=1, but still not working

Hi,
You can try using smaller image scale, set supervise_all_future to False, larger voxel size for reducing number of points for supervision, other backbones, or with_cp to True in backbone to reduce memory cost.
Hope these work for you. ViDAR indeed requires a large GPU memory cost and OpenScene dataset has 8 input cameras.
Thanks, Zetong

In the past few days, I have been trying to use a single 3090 running vidar to reproduce on nuscenes. How can I reduce the memory of the nuscenes data set?
I have tried using mem_efficient_vidar_1_8_nusc_3future.py, future_queue_length_train=1, future_pred_frame_num_train=1, future_queue_length_test=1, future_pred_frame_num_test=1, queue_length=1, but still not working

Hi,
You can try using smaller image scale, set supervise_all_future to False, larger voxel size for reducing number of points for supervision, other backbones, or with_cp to True in backbone to reduce memory cost.
Hope these work for you. ViDAR indeed requires a large GPU memory cost and OpenScene dataset has 8 input cameras.
Thanks, Zetong

In the past few days, I have been trying to use a single 3090 running vidar to reproduce on nuscenes. How can I reduce the memory of the nuscenes data set? I have tried using mem_efficient_vidar_1_8_nusc_3future.py, future_queue_length_train=1, future_pred_frame_num_train=1, future_queue_length_test=1, future_pred_frame_num_test=1, queue_length=1, but still not working

我修改了image scale，在config里面加入了一行

即可解决

Great to here. I think reducing the computational & GPU memory cost of ViDAR is of great importance :_).

我修改了image scale，在config里面加入了一行  即可解决

After you added this code, did you report any errors in the subsequent operation?


Support MongoDB

Need a MongoDB Docker container.

MongoDB is a little more fiddly as you need to remember you need the client installed with php and also the php extension. There was some issues last year getting it to compile in limited images, so one to watch for

+1

+1

#f3eb6a5fc4fd11016e0fb157ea28ab5b3033d3a1


Linting

Use Standard to lint, and get everything in line for that.
Also throwing in an npmignore as we get closer to publishing.

Sweet
On Sunday, February 14, 2016, maxmechanic<EMAIL_ADDRESS>wrote:

Use Standard to lint, and get everything in line for that.
Also throwing in an npmignore as we get closer to publishing.
You can view, comment on, or merge this pull request online at:
https://github.com/high-5/restful-mbta/pull/5
Commit Summary

Add Standard for linting, conform code to it
Add npmignore

File Changes

A .npmignore
https://github.com/high-5/restful-mbta/pull/5/files#diff-0 (5)
M package.json
https://github.com/high-5/restful-mbta/pull/5/files#diff-1 (10)
M src/index.js
https://github.com/high-5/restful-mbta/pull/5/files#diff-2 (33)

Patch Links:

https://github.com/high-5/restful-mbta/pull/5.patch
https://github.com/high-5/restful-mbta/pull/5.diff

—
Reply to this email directly or view it on GitHub
https://github.com/high-5/restful-mbta/pull/5.


Logging format based on NODE_ENV not working as documented

Bug Report
Current Behavior
When following the advice on the Logging documentation page to set NODE_ENV to production the default logger continues to pretty print logs.

When NODE_ENV is set (as it should be in production), the log output is structured JSON, which can then be drained to a logging service that allows querying by various attributes.
Logging - Log Formats

I've searched the Probot codebase and couldn't find where this switch based on NODE_ENV would happen.
I'm aware that there are a few ways to create a Probot, for testing this behaviour I've used:
  const server = new Server({
    Probot: Probot.defaults({
      appId: ...,
      privateKey: ...,
      secret: ...,
      logLevel: ...,
    }),
  });

Expected behavior/code
Based on the above linked documentation I'd expect the default logFormat to be set to "json" when I set NODE_ENV.  However, ideally I'd just like to set logFormat directly in the above linked code example. Either way would be good, I'm enjoying having minimal boilerplate so I'd prefer not to have to create my own logger which I understand is possible as-well.
I can see that Pino passes through an object of getTransformStreamOptions in get-log.ts#L33. I can confirm in testing if I pass through logFormat: "json" in options the log changes to the intended json format.
However, when calling getLog from probot.ts#L54 passes through level, logMessageKey and no other fields.
Environment

Probot version(s): v12.1.0
Node/npm version: Node 14, npm v6
OS: OSX

Possible Solution
I'd have two suggestions:

Allow logFormat to be passed into Probot constructor.
Elaborate in Logging - Log Formats about how to set to "json" format when using the above method.

Alternatively, if I've just missed something obvious I'd really appreciate calling it out, ultimately I just want to have JSON log format used when running in production.
Thank-you so much for this great project. Up until I hit the above issue I've hit very few hurdles and things have "just worked" so often, it's been great.

Did we chat about this before or was it with someone else?
I think the current implementation of defaulting to the JSON output when NODE_ENV is set to staging or production got lost as part of the big refactoring that happened with v10.0.0. Unfortunately Probot's tests did not cover all of its features and that seems to have not been.
We could bring the behavior back as it used to be and document it well, it seems like a reasonable default behavior for a framework such as Probot.
We should still permit to set the JSON output explicitly, and I think we do via the LOG_FORMAT environment variable?
When you use the Probot constructor directly, then you can pass your own pino instance as the log option in the constructor.

It would be good to have a reference to LOG_FORMAT in log-formatting documenation. Whether NODE_ENV changes the default is less important then (though probably still nice).
Now that I realise I probably should just create Probot using the run Node API LOG_FORMAT works for me.

Did we chat about this before or was it with someone else?

Must have been someone else. But glad to hear others are discussing it, sorry if I missed a duplicate issue.
For anyone else who comes across this issue:
I don't believe LOG_FORMAT works currently when calling Probot constructor directly. I tried that during debugging before raising the issue.
However it does work when using run.
https://probot.github.io/docs/development/#use-run
Just not when using Probot.defaults.
https://probot.github.io/docs/development/#use-server
I think the take away from me is creating the Server directly as I was is more cumbersome and means I have to recreate a bunch of behaviour.
So personally I can just change my code that was previously:
import { Probot, Server } from 'probot';
...
const server = new Server({
  Probot: Probot.defaults({
    appId: process.env.APP_ID,
    privateKey: process.env.PRIVATE_KEY,
    secret: process.env.WEBHOOK_SECRET,
    logLevel: process.env.LOG_LEVEL,
    // logFormat: process.env.LOG_FORMAT, // logFormat not supported
  }),
});
await server.load(appFn);

to
import { run } from 'probot';
...
return run(appFn);

I see this only now, but I have created a PR to fix this: #1598

Did we chat about this before or was it with someone else?

@gr2m we have discussed this previously in slack :) It just took me some time to get to this


feat(Auth): Rename resendConfirmationCode API for User Attributes to sendVerificationCode

Description

To make API behaviour consistent across Amplify Libraries. Auth.resendConfirmationCode is being renamed to Auth.sendVerificationCode.  Changes:

Deprecated Auth.resendConfirmationCode
Added new API Auth.sendVerificationCode which is the same as the API being deprecated
Updated unit and integration tests.

General Checklist

[ ] Added new tests to cover change, if needed
[ ] Build succeeds with all target using Swift Package Manager
[ ] All unit tests pass
[ ] All integration tests pass
[ ] Security oriented best practices and standards are followed (e.g. using input sanitization, principle of least privilege, etc)
[ ] Documentation update for the change if required
[ ] PR title conforms to conventional commit style
[ ] New or updated tests include Given When Then inline code documentation and are named accordingly testThing_condition_expectation()
[ ] If breaking change, documentation/changelog update with migration instructions

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report
Attention: 14 lines in your changes are missing coverage. Please review.

Comparison is base (b9b5918) 68.17% compared to head (f202b7e) 68.08%.

Files
Patch %
Lines

...est/AuthAttributeSendVerificationCodeRequest.swift
0.00%
5 Missing :warning:

...AWSAuthSendUserAttributeVerificationCodeTask.swift
84.84%
5 Missing :warning:

...fy/Categories/Auth/AuthCategory+UserBehavior.swift
0.00%
3 Missing :warning:

...ntBehavior/AWSCognitoAuthPlugin+UserBehavior.swift
90.90%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3384      +/-   ##
==========================================
- Coverage   68.17%   68.08%   -0.09%
==========================================
  Files        1077     1080       +3
  Lines       35973    36025      +52
==========================================
+ Hits        24523    24528       +5
- Misses      11450    11497      +47

Flag
Coverage Δ

API_plugin_unit_test
67.07% <ø> (ø)

AWSPluginsCore
64.59% <ø> (ø)

Amplify
47.75% <0.00%> (-0.06%)
:arrow_down:

Analytics_plugin_unit_test
81.16% <ø> (ø)

Auth_plugin_unit_test
79.16% <86.95%> (-0.30%)
:arrow_down:

CoreMLPredictions_plugin_unit_test
59.44% <ø> (ø)

DataStore_plugin_unit_test
80.97% <ø> (ø)

Geo_plugin_unit_test
70.75% <ø> (ø)

Logging_plugin_unit_test
63.09% <ø> (ø)

Predictions_plugin_unit_test
37.29% <ø> (ø)

PushNotifications_plugin_unit_test
87.03% <ø> (ø)

Storage_plugin_unit_test
78.00% <ø> (ø)

unit_tests
68.08% <74.07%> (-0.09%)
: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.


Doesn't work for mongoose

For other libraries it's OK but I have problems with clearing mongoose.
OS: Mac OS X 10.12.6
Node.js: 10.13.0
clear-module: 3.0.0
mongoose: 5.3.13
const mongoose = require('mongoose');
const clearModule = require('clear-module');

clearModule('mongoose');
console.log(require('mongoose') === mongoose); // I expect false but it's true

this https://github.com/sindresorhus/clear-module/pull/7 should fix

@issuehunt has funded $40.00 to this issue.

Submit pull request via IssueHunt to receive this reward.
Want to contribute? Chip in to this issue via IssueHunt.
Checkout the IssueHunt Issue Explorer to see more funded issues.
Need help from developers? Add your repository on IssueHunt to raise funds.

@IssuehuntBot
I opened this PR https://github.com/sindresorhus/clear-module/pull/7 but it was rejected.

@oprogramador #7 was not the correct way to fix the issue. I commented that in the PR.


The alerts are not working when we expect zero results?

As you have mentioned with a query right now I am having issues to trigger alerts.
I have set the criteria to zero still the trigger is not triggered.
https://imgur.com/a/Ouj2Nqf
I waited for 10 minutes and no triggers
Enabled targets
https://imgur.com/a/QkMgLU9
Nothing gets triggered
https://imgur.com/a/qOzRz9W

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

ID: 28360a4e-c758-66f0-39fd-518e480d80d9
Version Independent ID: 52f4d95e-627c-07d7-a4a3-95b31fc616d4
Content: How to trigger complex actions with Azure Monitor alerts
Content Source: articles/monitoring-and-diagnostics/monitoring-action-groups-logic-app.md
Service: azure-monitor
GitHub Login: @dkamstra
Microsoft Alias: dukek

@rifaterdemsahin thanks for bringing this to our attention. We are investigating and will get back to you shortly.

If issue persists, please send mail to<EMAIL_ADDRESS>with your subscription ID and link to this GitHub thread (for context ) and we will gladly work with you to engage the Azure Monitor support team for further investigation.
Closing this GH issue for now and I look fwd to your mail assuming you require further investigation.


config sprite filename

I want to split css file for each html page and I use gulp with less and postcss, so I have multi less entries. And the result generating sprite for each less entry which is correct, but the filename for the sprite is no readable, as shown below, there is anywhere to config it?

You can use Skip Prefix example to change the name of sprite. Also see
issue #47.

thanks, it solved my problem


[AppUpdate] Add support for iOS

Is there any solution for in-APP Update for iOS?
I saw online some solutions about WebService/API for checking the version, but it would really check the APP Store for the logged user.
As happens on Android, it depends on the Play Store cache, the user might not see the update because the cache is out of date, in come point Android updates the cache and our APP shows up the PopUp for updating.
Is there any way for checking the APP Store doing something like Android does? Based on the APP Store cache for the current Device or something alike

There's a way of checking what the current version of your app is from within your app - it involves making an HTTP request to iTunes, e.g: to a URL of: https://itunes.apple.com/lookup?bundleId=com.example.yourapp, where you would replace com.example.yourapp with the bundle identifier (CFBundleIdentifier in the version info in Project Options) with the value for your app.
The result is JSON, which you could parse to find the version value. This is a very truncated result for the app I have on App Store:
{
  "resultCount":1,
  "results":[
    {
      "fileSizeBytes":"55140352",
      "sellerUrl":"https://www.delphiworlds.com/Memorizor",
      "formattedPrice":"Free",
      "contentAdvisoryRating":"4+",
      "averageUserRatingForCurrentVersion":0,
      "userRatingCountForCurrentVersion":0,
      "averageUserRating":0,
      "trackViewUrl":"https://apps.apple.com/us/app/memorizor/id1303293864?uo=4",
      "trackContentRating":"4+",
      "version":"1.0.0",
      "wrapperType":"software",
      "userRatingCount":0
    }
  ]
}

Unfortunately iOS does not provide any means for an app to update itself, and there is also no way of checking if auto-updates are turned on, however if you do the check described above, and the version does not match, it's very likely that the user does not have auto-updates turned on

Ty, I'll try it out


Inserts may not be working

Newly created /assigned chores are not appearing in assigned lis

t

Still not seeing all the chore assignments appearing that I think I should. I have some, but not all appearing that I assign.

Please check if the startDate has been set.

List of created chores can be found here

New chores and assignments are working better, but not quite right. I'm going to try to make a video to demonstrate.

Here's a video demo of the issue
https://user-images.githubusercontent.com/1213646/148108460-d4d641d9-e66f-4cbe-9096-6500ae256c97.mp4

I'll reuse this issue. The concept of recurrence might be working better - at least the UI makes it looks that way for setting up the chores. But still the chore assignments don't seem to "stick" (insert?) when I create them. Or at least reliably. I created some daily chores, assigned to children starting today, but they didn't appear to either the parent or the child. I tried to edit (db update in this case, not insert) but the values wouldn't update. Sequence for editing attached. Would you like another video of the problem
![1](https://user-ima  ges.githubusercontent.com/1213646/150596597-b256db9e-a1f6-4aef-a3d4-8716fa76a025.png) ?

Hi @johnzastrow,
I would like to summary of current problems:

The recurrent functionality is not working properly
Unable to update a Chore
Unable to save other new Chore after successfully created a Chore.

Hi @johnzastrow,
https://github.com/johnzastrow/choreme/commit/27143aa377f55281067434ba58829a2281ce5a1c should resolve these above problems. Please check again!
Note: There is a cron tab which will be executed every midnight in order to handle the recurring tasks. it mean that the next daily task only available after midnight.

I'll test the functionality as you built it. But I'd rather use some other event to trigger the recurring functionality. Maybe something the user does in the UI - like visit the Assigned page and check to see if all chore recurrences are assigned based on the config. Especially if the parent sets up a daily chore to start on a Tuesday, then looks at the assigned chores for the rest of the week and doesn't see them all right away for the week.


Question: How ef converts guid to blob to store into sqlite database?

Hey guys, so I'm using sqlite with ef core and using System.Guid for PK.
I need to execute sqlite scrips with SqliteCommand so I have CLR type Guid it needs to be converted to blob as ef converters because ef stored it.
How can I convert Guid to blob?

The workload for this is BitConverter.ToString(guid.ToByteArray()).ToLower().Replace("-","") this worked for me :-)


Allowing usage of Kubernetes ingress in existing owncloud chart

With this PR we would like to add the option of using the Kubernetes' ingresses within the already existing owncloud chart. This is useful when load balancers are not available but an ingress controller is running in a Kubernetes cluster.

The CI errors seem to be unrelated to what we have modified:
Linting the Chart.yaml and values.yaml files at stable/owncloud
stable/owncloud/values.yaml
  56:3      error    wrong indentation: expected 4 but found 2  (indentation)
  57:5      error    wrong indentation: expected 6 but found 4  (indentation)
  78:3      error    wrong indentation: expected 4 but found 2  (indentation)
  88:5      error    wrong indentation: expected 6 but found 4  (indentation)
  99:5      error    wrong indentation: expected 6 but found 4  (indentation)
  106:3     error    wrong indentation: expected 4 but found 2  (indentation)
  107:5     error    wrong indentation: expected 6 but found 4  (indentation)

Please let me know if I am wrong and whether I could correct the above lines anyway. Thanks!

@carmat88 @unguiculus I fixed requested edits, versioning, and linting problems. It should be ready to go now!

Please indent with two spaces.

@unguiculus maybe I am missing something, but when indenting with 2 spaces the CI complains:
  106:3     error    wrong indentation: expected 4 but found 2  (indentation)

/ok-to-test

/lgtm

Thanks for fixing the last things!


NoFlo runtime implementation

Implement a runtime for Flowhub / NoFlo-UI using the FBP Network Protocol and WebSockets.

I'm very interested in using Go + Flowhub so I would love to see an implementation of this. Could you point out the exact status of this issue and what still needs to be done?
Thank you

@pierrebeaucamp Currently implemented:

Runtime discovery
Graph protocol (complete)
Component protocol (listing)

Todo:

More tests for component protocol
Network protocol
Runtime protocol (talking to main graph)


chore(workflow-v2.0.0): releasing workflow-v2.0.0

It's the big one! :tada:

chart has been updated to reference official images. Just waiting on those to be published before doing a sanity check.

sanity check complete:
><> kd get po
NAME                          READY     STATUS    RESTARTS   AGE
deis-builder-mmsdf            1/1       Running   3          4m
deis-controller-5bqwb         1/1       Running   1          4m
deis-database-n6a1f           1/1       Running   0          4m
deis-logger-feodf             1/1       Running   0          4m
deis-logger-fluentd-om739     1/1       Running   0          3m
deis-minio-bvw5a              1/1       Running   0          4m
deis-monitor-grafana-1doxz    1/1       Running   0          4m
deis-monitor-influxdb-otah0   1/1       Running   0          4m
deis-monitor-stdout-uzri5     1/1       Running   0          4m
deis-monitor-telegraf-ev2lp   1/1       Running   0          3m
deis-registry-1oky6           1/1       Running   1          4m
deis-router-icbc9             1/1       Running   0          4m
deis-workflow-manager-htcd4   1/1       Running   0          4m
><> deis init
Registered bacongobbler
Logged in as bacongobbler
Uploading id_rsa.pub to deis... done


What does "planned to be unswapped" mean?

The section "Settings that are swapped", includes the text "Features marked with an asterisk (*) are planned to be unswapped."
What does "planned to be unswapped" mean? Does it mean that those networking features are currently swapped during a slot swap operation, but a future planned App Service feature release will mean those networking features will no longer be slot swapped? Or does it mean something else?

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

ID: f6e09089-1ae2-8943-5ce2-9d48f458c81f
Version Independent ID: ba780cba-f604-b0a4-a81a-23c7d2384762
Content: Set up staging environments - Azure App Service
Content Source: articles/app-service/deploy-staging-slots.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

@tonesandtones, Thanks for the question! We are taking a look into this and will get back to you soon.

@tonesandtones, Your understanding is correct. Yes, we have planned work to make these settings slot sticky by default. As you mentioned, those networking features (with *) are currently swapped during a slot swap operation, a future planned App Service feature release will mean those networking features will no longer be slot swapped.
Thanks for taking time to share your feedback.


[USABILITY] Change the wording of message for Vaccination Status Change

When a user's vaccination status is verified, Safer Illinois displays these "status change" messages:

(1) Your vaccine is already effective.
(2) Your status changed to Green because your vaccination is already effective.

See screenshot at end.
Could we change these messages as follows? They would describe the circumstances more accurately.

(1) Your COVID-19 vaccination has been verified.
(2) We have a verified record of your completed COVID-19 vaccination on file; your status has changed to Green.

(General Note: use the word "vaccination" to refer to the immunization procedure, and "vaccine" to refer to the substance in the bottle.)

The first string is part of application resources. Safer builds versions 2.10.37+ will have this value embedded in application resources. In order this update to take effect on the live Safer application we need to override the relevant strings in 2.10 production assets. I have requested @pascoem to update them as I do not have rights to do this.

The second string is part of health.rules.json. It is currently updated on dev, prod and test environments.

CC @pmarkhennessy.